opencode-swarm 7.108.0 → 7.109.1

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 (35) hide show
  1. package/.opencode/skills/clarify-spec/SKILL.md +15 -9
  2. package/.opencode/skills/critic-gate/SKILL.md +12 -4
  3. package/.opencode/skills/execute/SKILL.md +1 -0
  4. package/.opencode/skills/phase-wrap/SKILL.md +2 -2
  5. package/.opencode/skills/plan/SKILL.md +23 -11
  6. package/.opencode/skills/specify/SKILL.md +27 -9
  7. package/dist/cli/{core-vev13ej2.js → core-mbd2g302.js} +5 -1
  8. package/dist/cli/{curator-drift-fdfgj9qf.js → curator-drift-169wgaxn.js} +1 -1
  9. package/dist/cli/{curator-llm-factory-n70bxf40.js → curator-llm-factory-gtfhwnbr.js} +4 -4
  10. package/dist/cli/{curator-js92gc8a.js → curator-q4febs18.js} +4 -4
  11. package/dist/cli/{evidence-summary-service-bjhr75v0.js → evidence-summary-service-8tasw2tt.js} +2 -2
  12. package/dist/cli/{guardrail-explain-sn2a4pb7.js → guardrail-explain-r2d8ftkv.js} +5 -5
  13. package/dist/cli/{hive-promoter-3hh8ph4a.js → hive-promoter-mfd5p9f5.js} +4 -4
  14. package/dist/cli/{index-x06d2qqm.js → index-1capawwy.js} +5 -5
  15. package/dist/cli/{index-f1qyj61w.js → index-3yk9196e.js} +40 -3
  16. package/dist/cli/{index-48mc4d48.js → index-j2v3w1ds.js} +8 -2
  17. package/dist/cli/{index-1emhz3zb.js → index-nq9h2t3x.js} +137 -70
  18. package/dist/cli/{index-91j1sqzm.js → index-scww5b77.js} +47 -0
  19. package/dist/cli/{index-7jyndvsy.js → index-wsg3vkss.js} +1 -1
  20. package/dist/cli/index.js +4 -4
  21. package/dist/commands/registry.d.ts +2 -2
  22. package/dist/commands/sdd.d.ts +10 -0
  23. package/dist/config/index.d.ts +1 -0
  24. package/dist/config/worktree-isolation-config.d.ts +10 -0
  25. package/dist/hooks/delegation-gate/worktree-isolation.d.ts +4 -2
  26. package/dist/hooks/delegation-gate.d.ts +1 -0
  27. package/dist/hooks/guardrails/index.d.ts +1 -1
  28. package/dist/hooks/guardrails/tool-before.d.ts +5 -0
  29. package/dist/index.js +130 -121
  30. package/dist/plan/ledger.d.ts +60 -0
  31. package/dist/sdd/effective-spec.d.ts +21 -0
  32. package/dist/tools/save-plan.d.ts +24 -0
  33. package/dist/worktree/core.d.ts +58 -7
  34. package/dist/worktree/index.d.ts +1 -1
  35. package/package.json +1 -1
@@ -58,6 +58,8 @@ export interface StandardWorktreeDispatch {
58
58
  mergeStrategy: 'merge' | 'rebase' | 'cherry-pick';
59
59
  /** FR-201: 0-based lane index for runtime profile derivation. */
60
60
  laneIndex: number;
61
+ /** Configured worktree-dir override, so cleanup trusts the same base. */
62
+ worktree_dir?: string;
61
63
  }
62
64
  export interface AwaitingMergeRecord {
63
65
  callID: string;
@@ -103,7 +105,8 @@ export declare function checkStandardWorktreeSerializationRelease(sessionID: str
103
105
  */
104
106
  declare function rememberStandardWorktreeSerializationSession(sessionID: string): boolean;
105
107
  export declare function sanitizeWorktreeTaskId(raw: string): string;
106
- export declare function resolveWorktreeIsolationConfig(config: PluginConfig): WorktreeIsolationConfig;
108
+ import { resolveWorktreeIsolationConfig } from '../../config/worktree-isolation-config';
109
+ export { resolveWorktreeIsolationConfig };
107
110
  export declare function precreateStandardWorktreeSession(args: {
108
111
  config: PluginConfig;
109
112
  directory: string;
@@ -163,4 +166,3 @@ export declare const _internals: {
163
166
  startupOrphanRecovery: typeof startupOrphanRecovery;
164
167
  cleanupOrphanedBranches: typeof cleanupOrphanedBranches;
165
168
  };
166
- export {};
@@ -110,6 +110,7 @@ export declare const _internals: {
110
110
  buildParallelExecutionGuidance: typeof buildParallelExecutionGuidance;
111
111
  loadPlanJsonOnly: typeof loadPlanJsonOnly;
112
112
  resetStandardWorktreeIsolationState: typeof resetStandardWorktreeIsolationState;
113
+ PLAN_CRITIC_TASK_SIGNALS: readonly ["critic-gate", "plan critic", "review plan", "review the plan", "plan.md", "approve the plan", "plan approval"];
113
114
  provisionWorktree: typeof _wtiInternals.provisionWorktree;
114
115
  removeWorktree: typeof _wtiInternals.removeWorktree;
115
116
  attemptMergeBackFromDirty: typeof _wtiInternals.attemptMergeBackFromDirty;
@@ -47,7 +47,7 @@ export declare function redactShellCommand(cmd: string): string;
47
47
  * @param config Guardrails configuration (optional)
48
48
  * @returns Tool before/after hooks and messages transform hook
49
49
  */
50
- export declare function createGuardrailsHooks(directory: string, directoryOrConfig?: string | GuardrailsConfig, config?: GuardrailsConfig, authorityConfig?: AuthorityConfig): {
50
+ export declare function createGuardrailsHooks(directory: string, directoryOrConfig?: string | GuardrailsConfig, config?: GuardrailsConfig, authorityConfig?: AuthorityConfig, worktreeBaseDirOverrides?: string[]): {
51
51
  toolBefore: (input: {
52
52
  tool: string;
53
53
  sessionID: string;
@@ -32,6 +32,11 @@ export interface ToolBeforeContext {
32
32
  authorityConfig: AuthorityConfig | undefined;
33
33
  /** Shared consecutiveNoToolTurns Map (also used by messagesTransform) */
34
34
  consecutiveNoToolTurns: Map<string, number>;
35
+ /**
36
+ * Configured swarm worktree-dir override(s), if any. Treated as additional
37
+ * trusted roots when exempting `git worktree remove --force` (issue #1708).
38
+ */
39
+ worktreeBaseDirOverrides?: string[];
35
40
  }
36
41
  /**
37
42
  * Creates a toolBefore handler with the given shared context.