Add lkr-project-helper skill, model auto-config on push, and create_developer_copy SDK method - #47
Conversation
…eveloper_copy SDK method
There was a problem hiding this comment.
Code Review
This pull request introduces a new Looker Project Helper skill (lkr-project-helper) along with a suite of helper scripts to automate LookML project creation, database connection verification, model configuration, validation, and deployment. It also updates the CLI push command to support workspace resetting and automatic model configuration, adds a new create_developer_copy method to the extended SDK, and implements safety checks in code-mode to block or warn about update_session calls. Feedback on the changes highlights several potential runtime errors in the newly added scripts due to accessing properties on Looker SDK objects as if they were dictionaries instead of class instances, as well as a recurring typo in the # type: ignore comments.
Summary
lkr-project-helper): Adds installable skill for creating, configuring, generating, synchronizing, and deploying LookML projects viauvx lkr-dev-cli,lkr code-mode sandbox --dev-mode, andgenerate_lookml_with_new_files.bq_view_lookml_generator.py), and natural language intent.--dev-modePython helper scripts for connection introspection, model binding, LookML generation, bare Git setup, asset uploads, and LookML dashboard-to-UDD conversion.lkr tools lookml push):--reset/--no-resetflag (defaultTrue) to reset developer workspace to production prior to pushing files..model.lkmlfiles are pushed with declaredconnection:names.create_developer_copy(anddeveloper_copyalias) toExtendedLooker40SDKforPOST /projects/{project_id}/developer_copy.update_sessionby default to prevent unintended mutations of shared OAuth tokens across CLI executions, with--allow-update-sessionavailable for explicit override.