@workflow-cannon/workspace-kit
v0.33.0
Published
AI agents: read **`./.ai/`** first for machine-oriented contracts (module build rules, principles). For **conflicts between** `.ai/`, `docs/maintainers/`, `.cursor/rules/`, and code, use the ordered **Source-of-truth** list in [`docs/maintainers/AGENTS.md
Readme
AI agents: read ./.ai/ first for machine-oriented contracts (module build rules, principles). For conflicts between .ai/, docs/maintainers/, .cursor/rules/, and code, use the ordered Source-of-truth list in docs/maintainers/AGENTS.md and the precedence note in docs/maintainers/ARCHITECTURE.md — do not rely on this README alone for governance precedence.
Workflow Cannon
@workflow-cannon/workspace-kit — CLI, task engine, and workflow contracts for repos that want deterministic, policy-governed automation with clear evidence.
Quick start (clone this repo)
Needs: Node.js 22+ (see CI), pnpm 10 (see packageManager in package.json).
git clone https://github.com/NJLaPrell/workflow-cannon.git
cd workflow-cannon
pnpm install
pnpm run buildWhere to start after build
| Step | Command | What you get |
| --- | --- | --- |
| 1 | pnpm run wk --help | Orientation: top-level commands, first-run path, doc pointers |
| 2 | pnpm run wk doctor | Confirms kit contract files and config resolve |
| 3 | pnpm run wk run | Command menu — every runnable workspace-kit run <cmd> |
| 4 | pnpm run wk run get-next-actions '{}' | Read-only suggestion for what to do next |
Developing: after edits, pnpm run build then pnpm test (or pnpm run pre-merge-gates / legacy pnpm run phase5-gates before larger changes). The published package exposes two equivalent bins — wk (short) and workspace-kit (explicit). In this repo, pnpm does not put the root package on pnpm exec’s path; use pnpm run wk … (script alias → dist/cli.js) or call node dist/cli.js directly. Pass module commands as pnpm run wk run <cmd> '<json>' (no extra -- before run — pnpm would forward a literal -- to the CLI).
| Situation | Example |
| --- | --- |
| This repo, after pnpm run build | pnpm run wk --help or node dist/cli.js --help |
| Global / linked install of the package | wk --help or workspace-kit --help |
| Another project with the package installed | npx wk --help or npx workspace-kit --help |
workspace-kit run with no subcommand is the full module command list — that is the usual “what can I run?” answer.
Try read-only task-engine queries:
pnpm run wk run list-tasks '{}'
pnpm run wk run get-next-actions '{}'Quick start (use the package in another project)
npm install @workflow-cannon/workspace-kit
npx workspace-kit --help
npx workspace-kit run--help prints the top-level guide; run with no subcommand lists every module command. In a repo that already contains maintainer docs, paths like docs/maintainers/AGENT-CLI-MAP.md match this repository; in a consumer project, use the copy shipped under node_modules/@workflow-cannon/workspace-kit/ or your own docs link.
Or with pnpm: pnpm add @workflow-cannon/workspace-kit then pnpm exec workspace-kit --help and pnpm exec workspace-kit run.
What this repo contains
| Area | What |
| --- | --- |
| CLI | workspace-kit — doctor, config, run <module-command> (see workspace-kit run with no args for the list). |
| Task engine | Canonical queue in SQLite by default (.workspace-kit/tasks/workspace-kit.db); set tasks.persistenceBackend: json to use .workspace-kit/tasks/state.json instead. Lifecycle via run-transition. Which task id to create (T### execution vs wishlist intake vs imp-*): one-page table in docs/maintainers/runbooks/wishlist-workflow.md. Persistence map: docs/maintainers/runbooks/task-persistence-operator.md. |
| Docs | Maintainer process, roadmap, and changelog under docs/maintainers/. |
| Cursor extension (optional) | Thin UI in extensions/cursor-workflow-cannon/ — build with pnpm run ui:prepare. |
There is no built-in IDE slash command like /qt from this package; editor integrations are your config (e.g. .cursor/commands/), while workspace-kit is the supported CLI.
New contributors — safe task transition (≤5 hops)
- README (this page) — install,
wk doctor,wk runmenu. docs/maintainers/AGENTS.md— source-of-truth order, tiers,/qtlimits.docs/maintainers/AGENT-CLI-MAP.md— Tier Arun-transitioncopy-paste JSON.docs/maintainers/POLICY-APPROVAL.md— when JSONpolicyApprovalis required vs env approval.- Run in a shell, e.g.
pnpm run wk run run-transition '{"taskId":"T###","action":"start","policyApproval":{"confirmed":true,"rationale":"your reason"}}'(replaceT###).
Policy and approvals (read this before mutating state)
Sensitive workspace-kit run commands require JSON policyApproval in the third CLI argument. Chat approval is not enough. Env-based approval applies to init / upgrade / config, not the run path.
- Human guide:
docs/maintainers/POLICY-APPROVAL.md - Copy-paste table:
docs/maintainers/AGENT-CLI-MAP.md
Project status and roadmap
Release cadence, phase history, and strategic decisions: docs/maintainers/ROADMAP.md. Live execution queue: the configured task store (default SQLite at .workspace-kit/tasks/workspace-kit.db; JSON at .workspace-kit/tasks/state.json when opted in). status and id are authoritative — not this README’s milestone bullets.
Snapshot: docs/maintainers/data/workspace-kit-status.yaml.
Where to go next
| Goal | Start here |
| --- | --- |
| Goals, trade-offs, gates | .ai/PRINCIPLES.md |
| Roadmap & versions | docs/maintainers/ROADMAP.md |
| Changelog | docs/maintainers/CHANGELOG.md |
| Release process | docs/maintainers/RELEASING.md |
| Glossary | docs/maintainers/TERMS.md |
| Architecture | docs/maintainers/ARCHITECTURE.md |
| Agent/CLI execution | docs/maintainers/AGENTS.md |
| CLI visual map (diagrams) | docs/maintainers/CLI-VISUAL-GUIDE.md |
License
MIT. See LICENSE.
