Workspace Tooling
The AI can run workspace management commands for you — barrel regeneration, import cleanup, and registry updates.
Example Prompts
"Regenerate the hook barrels"
"Update the workspace"
"Fix the hook imports"
"Regenerate the interface registry"
What the AI Does
1. Identifies the right script
→ Matches your request to the correct workspace tool
2. Runs the command
→ Executes with --execute flag to apply changes
→ Shows you the output
3. Verifies the result
→ Checks for errors in the output
→ Confirms files were updated
Available Commands
| You say... | AI runs... |
|---|---|
| "Update the workspace" | npx tsx scripts/logic-bee-update-workspace.ts --execute |
| "Regenerate barrels" | npx tsx scripts/logic-bee-regenerate-hook-barrels.ts --execute |
| "Fix imports" | npx tsx scripts/logic-bee-standardize-hook-imports.ts --execute |
| "Regenerate interface registry" | npx tsx scripts/logic-bee-generate-interface-registry.ts --execute |
| "Search for calculate hooks" | npx tsx scripts/logic-bee-search-for-hook-pattern.ts --pattern calculate |
tip
"Update workspace" is the all-in-one command. It runs barrels + imports + registry in sequence. Use this when in doubt.
When You Need These
| Situation | Command |
|---|---|
| Added or deleted a hook file | Regenerate barrels |
| Hook imports look inconsistent | Fix imports |
| Added a new interface | Regenerate interface registry |
| Not sure what changed | Update workspace (does everything) |
Tips for Better Results
- Just say what you need — "regenerate barrels" is enough, you don't need to know the exact script
- Say "dry run" to preview — the AI will omit
--executeso you can see what would change