opencode-swarm 7.126.1 → 7.126.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.
Files changed (41) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +5 -2
  2. package/.opencode/skills/swarm-pr-review/SKILL.md +1 -1
  3. package/dist/cli/{config-doctor-23jxdqwv.js → config-doctor-mfx27331.js} +2 -2
  4. package/dist/cli/{curation-policy-0t6hny6g.js → curation-policy-n944aq62.js} +2 -2
  5. package/dist/cli/{curator-llm-factory-36psae60.js → curator-llm-factory-0rf29gfq.js} +12 -12
  6. package/dist/cli/{curator-g8rggzbk.js → curator-qfh9xty4.js} +12 -12
  7. package/dist/cli/{guardrail-explain-6ffgrjx9.js → guardrail-explain-jsrjqps1.js} +13 -13
  8. package/dist/cli/{guardrail-log-57sczn5h.js → guardrail-log-61gya05m.js} +3 -3
  9. package/dist/cli/{hive-promoter-c458rgp5.js → hive-promoter-ktt17fyf.js} +12 -12
  10. package/dist/cli/{index-w0yztxgq.js → index-3xd9a2g7.js} +1 -1
  11. package/dist/cli/{index-yf4kvhrn.js → index-5nq8dp63.js} +14 -14
  12. package/dist/cli/{index-k5xh81c9.js → index-7bxw3v5w.js} +3 -3
  13. package/dist/cli/{index-6j9p0c40.js → index-88dt7c9z.js} +2 -2
  14. package/dist/cli/{index-1p9z8cc4.js → index-bf76q8q7.js} +1 -1
  15. package/dist/cli/{index-vvwf9ark.js → index-c48dvb6j.js} +2 -2
  16. package/dist/cli/{index-y9t766sw.js → index-d88y17ht.js} +45 -42
  17. package/dist/cli/{index-nkhp7j16.js → index-f97dm6tz.js} +5 -5
  18. package/dist/cli/{index-abw10n3f.js → index-gf9cxvp0.js} +1 -1
  19. package/dist/cli/{index-kx3533dm.js → index-gwss5btk.js} +1 -1
  20. package/dist/cli/{index-echdpdhy.js → index-gxw20m1d.js} +1 -1
  21. package/dist/cli/{index-cnhp6c0k.js → index-nqp13m5a.js} +1 -1
  22. package/dist/cli/{index-nmyg9b7v.js → index-pb8ag9vg.js} +4 -4
  23. package/dist/cli/{index-3hkbegq2.js → index-pf3xae4s.js} +1 -1
  24. package/dist/cli/{index-c8sqc3nh.js → index-vcqwhe9d.js} +4 -0
  25. package/dist/cli/{index-x1w4cx3n.js → index-z8ftpav0.js} +2 -2
  26. package/dist/cli/index.js +12 -12
  27. package/dist/cli/{knowledge-escalator-kd80m9vp.js → knowledge-escalator-nna0zec3.js} +3 -3
  28. package/dist/cli/{knowledge-events-j7jfwm1d.js → knowledge-events-7k82xk36.js} +1 -1
  29. package/dist/cli/{knowledge-store-1d4byc7y.js → knowledge-store-efvtng9t.js} +1 -1
  30. package/dist/cli/{knowledge-validator-63mkgt9x.js → knowledge-validator-jh93eagj.js} +4 -4
  31. package/dist/cli/{scan-cursor-qzn5jmbe.js → scan-cursor-cydz8d9q.js} +2 -2
  32. package/dist/cli/{schema-2j92wnns.js → schema-fa033pqw.js} +1 -1
  33. package/dist/cli/{skill-generator-sv6zvdvz.js → skill-generator-8v463kj7.js} +5 -5
  34. package/dist/hooks/delegation-gate.d.ts +14 -2
  35. package/dist/hooks/pr-workflow-gate.d.ts +18 -0
  36. package/dist/index.js +41 -38
  37. package/dist/tools/index.d.ts +1 -0
  38. package/dist/tools/manifest.d.ts +1 -0
  39. package/dist/tools/prepare-pr-workflow-checkout.d.ts +25 -0
  40. package/dist/tools/tool-metadata.d.ts +4 -0
  41. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import * as fsp from 'node:fs/promises';
1
2
  import { resolveCommitCountSince, resolveCurrentGitHead, resolveCurrentUpstreamPushTarget, resolveCurrentUpstreamRemoteRef, resolveExactRemoteBranchHead, resolveIsExactSingleChildCommit, resolveIsWorkingTreeClean, resolvePrWorkflowRevisionDigest, resolveRemoteRefsContainingHead } from '../background/workspace-snapshot.js';
2
3
  export declare const PR_REVIEW_BASE_DIMENSION_IDS: readonly ["intent-architecture", "correctness-state", "tests-falsifiability", "security-trust", "reliability-performance", "compatibility-delivery"];
3
4
  export declare const PR_REVIEW_REQUIRED_MICRO_LANE_IDS: readonly ["auth-identity-secrets", "untrusted-input-boundaries", "subprocess-platform", "concurrency-state", "dependencies-build-release", "api-schema-migrations", "test-infrastructure", "ui-accessibility-i18n", "privacy-observability", "generated-provenance", "unclassified-risk"];
@@ -137,6 +138,15 @@ export declare function activatePrWorkflow(directory: string, sessionID: string,
137
138
  prHeadSha?: string;
138
139
  }): Promise<PrWorkflowGateState>;
139
140
  export declare function readPrWorkflowGateState(directory: string, sessionID: string): Promise<PrWorkflowGateState | null>;
141
+ /**
142
+ * Serialize a pre-bind checkout-preservation controller with every terminal
143
+ * PR-workflow transition for the raw parent session. The caller's action may
144
+ * perform the fixed Git preservation command while holding this lock; abort,
145
+ * bind, and a same-session reactivation cannot clear or replace the gate until
146
+ * it settles. The state passed to the action is schema-validated durable state,
147
+ * never a caller-supplied projection.
148
+ */
149
+ export declare function withPrWorkflowCheckoutPreparationLock<T>(directory: string, sessionID: string, action: (state: PrWorkflowGateState) => Promise<T>): Promise<T>;
140
150
  export declare function clearPrWorkflowGateState(directory: string, sessionID: string, expectedRevision?: number): Promise<void>;
141
151
  /**
142
152
  * Abort an active PR workflow gate without reaching terminal completion.
@@ -268,6 +278,7 @@ export declare const _test_exports: {
268
278
  resolveRemoteRefsContainingHead: typeof resolveRemoteRefsContainingHead;
269
279
  parseCriticVerdict: typeof parseCriticVerdict;
270
280
  isProcessAlive: typeof isProcessAlive;
281
+ rename: typeof fsp.rename;
271
282
  nowMs: () => number;
272
283
  };
273
284
  /** Require at least one real discovery row or a lane-bound CLEAN attestation. */
@@ -279,4 +290,11 @@ declare function parseCriticVerdict(text: string, itemId: string, reviewerSeveri
279
290
  declare function isProcessAlive(pid: number): boolean;
280
291
  declare function workflowGateStateLockRelativePath(sessionID: string): string;
281
292
  declare function workflowGateStateRelativePath(sessionID: string): string;
293
+ export declare function prWorkflowSessionFileStem(sessionID: string): string;
294
+ /**
295
+ * Write a PR-workflow artifact with the gate's Windows-safe atomic persistence
296
+ * contract. Checkout-preparation receipts must survive the same transient
297
+ * rename contention as canonical gate state.
298
+ */
299
+ export declare function writePrWorkflowAtomicJson(filePath: string, value: unknown): Promise<void>;
282
300
  export {};