Skip to content

fix: CLI args-to-flags for claude-code compat + add jq to worker#298

Merged
zbigniewsobiecki merged 5 commits intodevfrom
fix/cli-args-to-flags-and-jq
Feb 16, 2026
Merged

fix: CLI args-to-flags for claude-code compat + add jq to worker#298
zbigniewsobiecki merged 5 commits intodevfrom
fix/cli-args-to-flags-and-jq

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • CLI positional args → flags: The claude-code backend generates --flag syntax for all tool parameters, but PM and GitHub CLI commands used oclif positional Args. Converted all 15 commands to use Flags so generated CLI invocations work correctly.
  • Tool manifest fixes: Parameter names now match actual CLI flags (includeCommentsinclude-comments, checkItemId/completecheck-item-id/state).
  • Add jq to worker Dockerfile: Missing from the Docker image, needed by agents.
  • Remove unused Args import from src/cli/dashboard/prompts/default.ts.

Test plan

  • TypeScript typecheck passes
  • All 1149 tests pass
  • Pre-commit hooks pass on all commits

🤖 Generated with Claude Code

zbigniewsobiecki and others added 5 commits February 16, 2026 16:59
The claude-code backend generates `--flag` syntax for all tool
parameters, but PM and GitHub CLI commands used oclif positional Args
which don't accept `--` prefix. Convert all positional args to Flags
so the generated CLI invocations work correctly.

Also fix tool manifest parameter names to match actual flag names
(includeComments → include-comments, checkItemId → check-item-id)
and remove unused Args import from dashboard prompts command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move agent system prompts and partials from disk-only .eta templates to
a database-backed system where admins can edit them via CLI/web without
deployments. The .eta files become bootstrap fallbacks.

Key changes:
- New prompt_partials DB table with migration and repository
- Pre-processing include resolution (DB partials → disk fallback → Eta rendering)
- Fixed prompt resolution chain: project → org/global DB → .eta file
- New prompts tRPC router with template introspection and partial CRUD
- 8 new CLI commands under `cascade prompts`
- Web UI prompt editor with reference panel (variables + partials)
- Template validation on save in agentConfigs mutations
- Seed script for bootstrapping DB from .eta files
- Refactored 6 functions to resolve all linter complexity warnings
- Added 85 new tests (prompts, modelResolution, prompts router, ADF)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add graceful fallback in partialsRepository when prompt_partials
  table doesn't exist yet (returns empty results instead of 500)
- Fix TypeScript error accessing 'id' on union type in PartialEditor
  reset mutation by using 'in' type guard

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 4232fe1 into dev Feb 16, 2026
8 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the fix/cli-args-to-flags-and-jq branch March 16, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant