opencode-swarm 7.20.0 → 7.20.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/dist/cli/index.js CHANGED
@@ -34,7 +34,7 @@ var package_default;
34
34
  var init_package = __esm(() => {
35
35
  package_default = {
36
36
  name: "opencode-swarm",
37
- version: "7.20.0",
37
+ version: "7.20.2",
38
38
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
39
39
  main: "dist/index.js",
40
40
  types: "dist/index.d.ts",
@@ -7,8 +7,16 @@
7
7
  * - Layer 2 (Hard Block @ 100%): Throws error in toolBefore to block further calls, injects STOP message
8
8
  */
9
9
  import * as path from 'node:path';
10
+ import { getSwarmAgents, resolveFallbackModel } from '../agents/index';
10
11
  import { type AuthorityConfig, type GuardrailsConfig } from '../config/schema';
11
12
  import { type FileZone } from '../context/zone-classifier';
13
+ export declare const _internals: {
14
+ getSwarmAgents: typeof getSwarmAgents;
15
+ getMostRecentAssistantText: typeof getMostRecentAssistantText;
16
+ getProviderFailureFingerprint: typeof getProviderFailureFingerprint;
17
+ isTransientProviderFailureText: typeof isTransientProviderFailureText;
18
+ resolveFallbackModel: typeof resolveFallbackModel;
19
+ };
12
20
  /**
13
21
  * Issue #853 Layer B: tools that are structurally blocked while
14
22
  * `.swarm/spec-staleness.json` exists. Every blocked tool mutates plan
@@ -30,6 +38,19 @@ export declare const SPEC_DRIFT_BLOCKED_TOOLS: Set<string>;
30
38
  * immediately on the next tool call.
31
39
  */
32
40
  export declare function enforceSpecDriftGate(directory: string | undefined, toolName: string): void;
41
+ type ChatMessageLike = {
42
+ info?: {
43
+ role?: string;
44
+ sessionID?: string;
45
+ };
46
+ parts?: Array<{
47
+ type?: string;
48
+ text?: unknown;
49
+ }>;
50
+ };
51
+ declare function getMostRecentAssistantText(messages: ChatMessageLike[]): string;
52
+ declare function isTransientProviderFailureText(text: string): boolean;
53
+ declare function getProviderFailureFingerprint(text: string): string;
33
54
  /**
34
55
  * Retrieves stored input args for a given callID.
35
56
  * Used by other hooks (e.g., delegation-gate) to access tool input args.