feat: setup command + workspace build scripts (#216) #219
Reference in New Issue
Block a user
Delete Branch "feat/216-setup-and-build-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two improvements to the workspace init + onboarding flow:
Workspace build scripts —
init workspacenow generatesscripts/bundle.ts+scripts.bundlein package.json.bun run bundlescansworkflows/*-entry.ts, producesdist/*.esm.js+dist/*.d.tsviaBun.build().Setup command — new
uncaged-workflow setupconfiguresworkflow.yamlproviders and models.--provider --base-url --api-key --default-model [--init-workspace]Why
init workspaceproduced scaffolding that couldn't build bundles. No setup command existed for configuringworkflow.yaml, making it impossible for new users or agents to run workflows.Changes
packages/cli-workflow/src/commands/init/workspace.ts— add bundle script generationpackages/cli-workflow/src/commands/setup/— new setup command (types, setup, dispatch, index)packages/cli-workflow/src/cli-dispatch.ts— wire setup commandpackages/cli-workflow/src/cli-registry.ts— register setup in command groupspackages/cli-workflow/__tests__/setup-cli.test.ts— CLI mode + idempotency testspackages/cli-workflow/__tests__/init-workspace.test.ts— verify bundle script generationpackages/cli-workflow/__tests__/help.test.ts— help output coverageRef
New command: uncaged-workflow setup CLI mode (agent-friendly): uncaged-workflow setup \ --provider <name> --base-url <url> --api-key <key> \ --default-model <provider/model> [--init-workspace <name>] Interactive mode: prompts for each value when no flags given. - Reads/writes workflow.yaml config section - Idempotent: updates provider without losing workflows - Sets maxDepth=3, supervisorInterval=3 on fresh config - Optional --init-workspace creates workspace in cwd Testing: #218 Ref: #216Review: feat: setup command + workspace build scripts (#216)
LGTM — clean implementation of both phases.
Strengths
Minor observations (non-blocking)
All tests pass (102, known flaky #209). Architecture is clean, changes well-scoped to RFC.