opencode-swarm 7.108.0 → 7.109.0
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/.opencode/skills/clarify-spec/SKILL.md +15 -9
- package/.opencode/skills/critic-gate/SKILL.md +10 -4
- package/.opencode/skills/phase-wrap/SKILL.md +2 -2
- package/.opencode/skills/plan/SKILL.md +23 -11
- package/.opencode/skills/specify/SKILL.md +27 -9
- package/dist/cli/{curator-js92gc8a.js → curator-3efwdf9x.js} +3 -3
- package/dist/cli/{curator-drift-fdfgj9qf.js → curator-drift-169wgaxn.js} +1 -1
- package/dist/cli/{curator-llm-factory-n70bxf40.js → curator-llm-factory-nttpcx4b.js} +3 -3
- package/dist/cli/{evidence-summary-service-bjhr75v0.js → evidence-summary-service-j7jwf20f.js} +2 -2
- package/dist/cli/{guardrail-explain-sn2a4pb7.js → guardrail-explain-e85gbj0r.js} +4 -4
- package/dist/cli/{hive-promoter-3hh8ph4a.js → hive-promoter-rc6z2x8f.js} +3 -3
- package/dist/cli/{index-x06d2qqm.js → index-1mjzvkzj.js} +4 -4
- package/dist/cli/{index-7jyndvsy.js → index-3e7jajwe.js} +1 -1
- package/dist/cli/{index-91j1sqzm.js → index-scww5b77.js} +47 -0
- package/dist/cli/{index-1emhz3zb.js → index-vb5t1kvs.js} +137 -70
- package/dist/cli/{index-48mc4d48.js → index-wfq4r95s.js} +1 -1
- package/dist/cli/index.js +3 -3
- package/dist/commands/registry.d.ts +2 -2
- package/dist/commands/sdd.d.ts +10 -0
- package/dist/index.js +104 -99
- package/dist/sdd/effective-spec.d.ts +21 -0
- package/package.json +1 -1
|
@@ -203,6 +203,21 @@ export interface ReadEffectiveSpecOpts {
|
|
|
203
203
|
* `.specify/` a non-competing source, matching both citations.
|
|
204
204
|
*/
|
|
205
205
|
export declare function readEffectiveSpecSync(directory: string, opts?: ReadEffectiveSpecOpts): EffectiveSpec | null;
|
|
206
|
+
/**
|
|
207
|
+
* Write an SDD projection to `.swarm/spec.md`.
|
|
208
|
+
*
|
|
209
|
+
* **Overwrite enforcement (FR-004, TOCTOU-safe):**
|
|
210
|
+
* When `overwrite` is `false` (default), the write uses `O_EXCL` exclusive
|
|
211
|
+
* creation (`fs.writeFileSync(target, data, { flag: 'wx' })`). If the
|
|
212
|
+
* target already exists the kernel returns `EEXIST` and the function
|
|
213
|
+
* returns `written: false` with an `error` field — no archive, no replace.
|
|
214
|
+
* This closes the TOCTOU race at the write boundary: a native spec that
|
|
215
|
+
* appears between a pre-check and this call cannot be silently replaced.
|
|
216
|
+
*
|
|
217
|
+
* When `overwrite` is `true`, the existing archive-then-replace path runs.
|
|
218
|
+
*
|
|
219
|
+
* The `--dry-run` early-return remains untouched (before any write).
|
|
220
|
+
*/
|
|
206
221
|
export declare function writeProjectedSpecSync(directory: string, options?: {
|
|
207
222
|
changeId?: string;
|
|
208
223
|
dryRun?: boolean;
|
|
@@ -210,11 +225,17 @@ export declare function writeProjectedSpecSync(directory: string, options?: {
|
|
|
210
225
|
source?: 'openspec' | 'speckit';
|
|
211
226
|
/** Feature selector forwarded to buildSpeckitProjectionSync when source is speckit. */
|
|
212
227
|
feature?: string;
|
|
228
|
+
/**
|
|
229
|
+
* When true, archive the existing spec and overwrite.
|
|
230
|
+
* When false (default), use O_EXCL (wx flag) — refuse if target exists.
|
|
231
|
+
*/
|
|
232
|
+
overwrite?: boolean;
|
|
213
233
|
}): {
|
|
214
234
|
written: boolean;
|
|
215
235
|
projection: EffectiveSpec | null;
|
|
216
236
|
archivePath?: string;
|
|
217
237
|
path: string;
|
|
238
|
+
error?: string;
|
|
218
239
|
};
|
|
219
240
|
/**
|
|
220
241
|
* Validate Spec-Kit artifacts READ-ONLY (FR-007, task 2.3).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.109.0",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|