ui_init
Inspect project files, auto-detect the framework, and write a starter .agy-ui-scope config for immediate use of UI implement and review tools.
Instructions
Auto-detect the stack and write a starter .agy-ui-scope config.
Zero-to-config helper for non-technical users: inspects the project's
manifests (package.json / pubspec.yaml / lockfiles), guesses the framework,
serve command, and edit-scope globs, and writes a .agy-ui-scope YAML at
the project root that the user can then tweak by hand. After this, the
ui_implement / ui_review tools run with no further setup.
Args:
project_dir: Path to the project root to scan and write into.
overwrite: When False (default) an existing .agy-ui-scope is left
untouched and status: "exists" is returned. Pass True to
regenerate it (clobbering the existing file).
Returns:
A dict describing the outcome: status (ok/exists/error),
scope_path (absolute), written (whether the file was written),
detected (framework/platform/serve/package-manager), allow and
deny globs, design_dir_found, next_steps, and warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | No | . | |
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||