@swarmcraftai/cli 0.9.1 → 0.9.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to the SwarmCraft CLI are documented in this file.
4
4
 
5
+ ## 0.9.2
6
+
7
+ - Adds `swarmcraft packets sync --workspace <path>` to pull every task on the workspace's bound project into local packets. It previews counts with the project name and ID and asks before writing (`--yes`, `--dry-run`). It keeps local edits, never moves tasks or reseeds guidance, and adds remote links only with `--link`.
8
+ - Adds `swarmcraft packets links --project <id> --workspace-folder <name>` to list packet links on a project's tasks, and `--remove` to delete exactly those links after you confirm the project ID. Removal is audited and skips links that now point elsewhere.
9
+ - `swarmcraft init` and hosted `one-shot` now stop before writing when the requested project differs from the project the workspace's Deep Discovery created or its existing binding. Use `--force` to override. `init --dry-run` shows the project, binding result, and the packets and links it would change.
10
+ - `swarmcraft init` skips and reports a packet file owned by another task instead of stopping the whole run.
11
+ - Prepare Discovery Package now names the first invalid source entry, its path and the field that failed. Unselected unsupported entries accept any file format.
12
+ - Updates discovery guidance so generated project context is treated as unverified and the agent stops when it describes a different business.
13
+
5
14
  ## 0.9.1
6
15
 
7
16
  - Reads `dependsOn` written as a YAML flow sequence (for example `[uuid-a, uuid-b]`) or wrapped across lines with trailing commas by formatters such as Prettier, which previously failed to parse and blocked `one-shot --preview` and sync. Non-empty `dependsOn` is now written as a YAML block list, which formatters leave intact and 0.8.1 and later clients read.
package/README.md CHANGED
@@ -85,7 +85,27 @@ For preparation without running an agent:
85
85
  swarmcraft init --project <project-id> --workspace . --agent-provider codex
86
86
  ```
87
87
 
88
- `init` writes guidance and task files for review and leaves those changes uncommitted. Commit or otherwise resolve them before starting a run that requires a clean workspace. Updates preserve your edits to generated guidance and report conflicts that need attention.
88
+ Add `--dry-run` to print the project name and ID and the packets and links that would change, without writing anything. Before writing, `init` checks `--project` against the project the workspace's Deep Discovery created, or against `.swarmcraft/project.seed-state.json` when there is no discovery. A mismatch stops with nothing written; pass `--force` only when you intend to bind the workspace to a different project.
89
+
90
+ `init` writes guidance and task files for review and leaves those changes uncommitted.
91
+
92
+ To pull every unfinished task on the workspace's bound project into local packet files for inspection, preview first and then sync:
93
+
94
+ ```bash
95
+ swarmcraft packets sync --workspace . --dry-run
96
+ swarmcraft packets sync --workspace .
97
+ ```
98
+
99
+ The project comes from the workspace binding, so `--project` is optional and must match it. Sync keeps local packet edits, never moves tasks, and leaves remote packet links unchanged unless you pass `--link`. If the VS Code extension's packet sync is enabled for this repository, it links packets when it next syncs them. `--include-done` also writes packets for completed tasks.
100
+
101
+ To find remote packet links that point a project's tasks at a repository folder, for example after linking the wrong project, list them first and remove them only after reviewing the list:
102
+
103
+ ```bash
104
+ swarmcraft packets links --project <project-id> --workspace-folder <folder-name>
105
+ swarmcraft packets links --project <project-id> --workspace-folder <folder-name> --remove
106
+ ```
107
+
108
+ `--remove` asks you to type the project ID before deleting anything. It removes only the remote links; tasks and local packet files are unchanged. Commit or otherwise resolve them before starting a run that requires a clean workspace. Updates preserve your edits to generated guidance and report conflicts that need attention.
89
109
 
90
110
  ## Update repository guidance
91
111