opencode-swarm 7.99.1 → 7.99.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.
@@ -1,8 +1,13 @@
1
+ export declare function derivePlanId(plan: {
2
+ swarm: string;
3
+ title: string;
4
+ }): string;
1
5
  /**
2
- * Derive plan identity string from plan object.
3
- * Canonical implementation all consumers must import from here.
6
+ * Collision-resistant binding for security-sensitive evidence that also stores
7
+ * the readable legacy plan_id. This preserves existing plan_id compatibility
8
+ * while giving gates a stable raw swarm/title fingerprint to compare.
4
9
  */
5
- export declare function derivePlanId(plan: {
10
+ export declare function derivePlanIdentityHash(plan: {
6
11
  swarm: string;
7
12
  title: string;
8
13
  }): string;
@@ -113,6 +113,10 @@ export interface CollectLaneResultsResult {
113
113
  }
114
114
  export interface SessionOps {
115
115
  create(args: {
116
+ body?: {
117
+ parentID?: string;
118
+ title?: string;
119
+ };
116
120
  query: {
117
121
  directory: string;
118
122
  };
@@ -215,6 +219,7 @@ export declare const _internals: {
215
219
  export declare const _test_exports: {
216
220
  applyCommonPrompt: typeof applyCommonPrompt;
217
221
  applyExplorerFormatSuffix: typeof applyExplorerFormatSuffix;
222
+ buildLaneSessionCreateArgs: typeof buildLaneSessionCreateArgs;
218
223
  extractAssistantTranscript: typeof extractAssistantTranscript;
219
224
  formatError: typeof formatError;
220
225
  nextCollectPollInterval: typeof nextCollectPollInterval;
@@ -295,6 +300,15 @@ type ApplyCommonPromptResult = {
295
300
  declare function applyCommonPrompt(lanes: DispatchLaneSpec[], commonPrompt: string | undefined): ApplyCommonPromptResult;
296
301
  declare function applyExplorerFormatSuffix(lanes: DispatchLaneSpec[]): DispatchLaneSpec[];
297
302
  declare function formatError(error: unknown): string;
303
+ declare function buildLaneSessionCreateArgs(directory: string, lane: DispatchLaneSpec, context: Pick<DispatchLanesExecutionContext, 'sessionID'>): {
304
+ body: {
305
+ parentID?: string;
306
+ title: string;
307
+ };
308
+ query: {
309
+ directory: string;
310
+ };
311
+ };
298
312
  declare function promptHash(lane: DispatchLaneSpec, directory: string, batchId: string): string;
299
313
  export declare const dispatch_lanes: ReturnType<typeof createSwarmTool>;
300
314
  export declare const dispatch_lanes_async: ReturnType<typeof createSwarmTool>;
@@ -22,6 +22,8 @@ import type { QaGates } from '../../../db/qa-gate-profile.js';
22
22
  export interface GatePreambleResult {
23
23
  resolved: boolean;
24
24
  plan?: RuntimePlan;
25
+ planId?: string;
26
+ planHash?: string;
25
27
  effectiveGates?: QaGates;
26
28
  }
27
29
  /**
@@ -36,4 +36,8 @@ export interface GateContext {
36
36
  agentsDispatched: string[];
37
37
  /** Non-blocking warning helper */
38
38
  safeWarn: (message: string, error: unknown) => void;
39
+ /** Retrospective bundle accepted for this phase, if the retro gate loaded one */
40
+ loadedRetroBundle?: import('../../../config/evidence-schema').EvidenceBundle | null;
41
+ /** Task id for the accepted retrospective bundle, if one was loaded */
42
+ loadedRetroTaskId?: string | null;
39
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.99.1",
3
+ "version": "7.99.2",
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",