craig-cli 0.13.2 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +18 -4
  2. package/dist/cli.js +147 -140
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -162,8 +162,18 @@ craig task wait [<task-id>] --state <states> [--tab <tab-id>] [--timeout <durati
162
162
  craig events list [--task <task-id>] [--type <glob>] [--after <cursor>] --json
163
163
  craig events watch [--task <task-id>] [--type <glob>] [--after <cursor>] [--format jsonl]
164
164
 
165
- craig swarm validate <file> --json
166
- craig swarm plan <file> [--input key=value] --json
165
+ craig fury validate <file> --json
166
+ craig fury plan <file> [--root-task <task-id>] [--input key=value] --json
167
+ craig fury approve <plan-id> --json
168
+ craig fury run <plan-id> --json
169
+ craig fury status <run-id> --json
170
+ craig fury watch <run-id> [--after <cursor>] [--format jsonl]
171
+ craig fury cancel <run-id> --json
172
+ craig fury resume <run-id> --json
173
+ craig fury step complete --run <run-id> --step <step-id> [--output <json> | --output-file <path> | --stdin] --json
174
+ craig fury step fail --run <run-id> --step <step-id> --reason <text> --json
175
+ craig fury reviews list [--run <run-id>] [--state <state>] --json
176
+ craig fury review show|approve|reject|request-changes|resubmit <review-id> --json
167
177
 
168
178
  craig command show <command-id> --json
169
179
  craig command list [--task <task-id>] --json
@@ -201,9 +211,13 @@ Optional workspace-local config at `.craig/config.json`:
201
211
 
202
212
  Feature previews are experimental, workspace-local, and off by default. They can also be toggled from Options > Feature Previews in the TUI.
203
213
 
204
- Event commands, new prompt dispatch creation, child-task creation, and swarm validation/planning require the `agentOrchestration` preview. Preview-enabled agent PTYs receive an opaque workspace-local capability token scoped to their own task, the delegation command families, an expiry, and bounded child/depth/concurrency/prompt limits; only a non-authorizing reference is stored on the task. `task children` and idempotent `task cancel-tree` remain available when the preview is disabled so existing lineage can be inspected and safely stopped. Craig may still maintain durable semantic events internally for stable daemon services such as pull request synchronization. Disabling the preview stops new dispatch and child creation but leaves command inspection, waiting, cancellation, and safe reconciliation available for existing durable work. Prompt delivery defaults to `when-ready`; `immediate` explicitly interrupts a busy target.
214
+ An interactive Craig launched from inside an agent session will not implicitly attach to that agent's live workspace. Pass `--workspace-root <live-root>` to confirm that attachment, or create and pass a different directory for an isolated blank workspace. A client also refuses to replace a live PTY daemon that uses an incompatible protocol; exit the other Craig instance before restarting explicitly.
205
215
 
206
- Swarm definitions are strict, versioned YAML DAGs. `swarm validate` checks the schema, limits, templates, references, dependencies, output schemas, and human-review checkpoints. `swarm plan` resolves declared inputs and returns deterministic execution waves without creating tasks, commands, capabilities, events, definitions, or run state. Runtime execution remains unavailable until the next preview phase.
216
+ Event commands, new prompt dispatch creation, child-task creation, and fury validation/planning require the `agentOrchestration` preview. Preview-enabled agent PTYs receive an opaque workspace-local capability token scoped to their own task, the stable delegation command families, an expiry, and bounded child/depth/concurrency/prompt limits; only a non-authorizing reference is stored on the task. Fury operations reuse that scoped token according to each command's preview and recovery policy without persisting preview-only command families into the base capability record, so stable Craig can still read the workspace after preview use. `task children` and idempotent `task cancel-tree` remain available when the preview is disabled so existing lineage can be inspected and safely stopped. Craig may still maintain durable semantic events internally for stable daemon services such as pull request synchronization. Disabling the preview stops new dispatch and child creation but leaves command inspection, waiting, cancellation, and safe reconciliation available for existing durable work. Prompt delivery defaults to `when-ready`; `immediate` explicitly interrupts a busy target.
217
+
218
+ Fury definitions are strict, versioned YAML DAGs stored under `.craig/fury/`. `fury validate` checks the schema, limits, templates, references, dependencies, output schemas, and human-review checkpoints without mutating runtime state. `fury plan` resolves declared inputs, binds the graph to a planning task, persists an immutable content-hashed plan, and requests human sign-off.
219
+
220
+ Only a human can `fury approve` the exact plan hash. `fury run` accepts only an approved plan id, creates at most one run for that approval, and schedules every new task as a direct child of the planning task; graph dependencies never create visual grandchildren. Every agent step must explicitly call `fury step complete` or `fury step fail`; terminal silence is never success. Declared outputs are JSON-schema validated before dependents can run. Human-review steps remain blocked until an attributable human approval, while request-changes routes durable feedback to the declared task and requires an explicit resubmission. The sidebar shows one flat Fury attention row when plan or review approvals are waiting. The heartbeat reconciles interrupted dispatch, deadlines, missing agent sessions, and pending work. Retries, conditions, fan-out, and recursive Fury runs remain deferred.
207
221
 
208
222
  ```yaml
209
223
  version: 1