opencode-swarm 7.7.0 → 7.8.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.
- package/README.md +3 -1
- package/dist/agents/index.d.ts +11 -3
- package/dist/cli/index.js +788 -358
- package/dist/commands/full-auto.d.ts +13 -2
- package/dist/config/evidence-schema.d.ts +3 -3
- package/dist/config/schema.d.ts +82 -9
- package/dist/full-auto/cadence.d.ts +64 -0
- package/dist/full-auto/input-probe.d.ts +22 -0
- package/dist/full-auto/oversight.d.ts +93 -0
- package/dist/full-auto/phase-approval.d.ts +7 -0
- package/dist/full-auto/policy.d.ts +85 -0
- package/dist/full-auto/state.d.ts +121 -0
- package/dist/hooks/full-auto-delegation.d.ts +28 -0
- package/dist/hooks/full-auto-input-probe.d.ts +27 -0
- package/dist/hooks/full-auto-intercept.d.ts +1 -1
- package/dist/hooks/full-auto-permission.d.ts +39 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/utils.d.ts +40 -0
- package/dist/index.js +4014 -1267
- package/dist/lang/runtime.d.ts +10 -0
- package/dist/state.d.ts +8 -0
- package/package.json +1 -1
package/dist/lang/runtime.d.ts
CHANGED
|
@@ -4,6 +4,16 @@ export type Parser = ParserType;
|
|
|
4
4
|
* Parser cache to avoid reloading grammars multiple times per session
|
|
5
5
|
*/
|
|
6
6
|
export declare const parserCache: Map<string, ParserType>;
|
|
7
|
+
/**
|
|
8
|
+
* DI seam for testing — overridable reference to TreeSitterParser.init.
|
|
9
|
+
* Tests can replace this with a spy/mock to observe init calls without
|
|
10
|
+
* mock.module leakage. Restore the original reference in afterEach.
|
|
11
|
+
*/
|
|
12
|
+
export declare const _internals: {
|
|
13
|
+
parserInit: (opts?: {
|
|
14
|
+
locateFile: (scriptName: string) => string;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
};
|
|
7
17
|
/**
|
|
8
18
|
* Initialize a parser for the given language
|
|
9
19
|
* Loads WASM from dist/lang/grammars/ (copied during build)
|
package/dist/state.d.ts
CHANGED
|
@@ -269,6 +269,14 @@ export declare const swarmState: {
|
|
|
269
269
|
* name at call time by matching the active session's agent prefix. */
|
|
270
270
|
curatorInitAgentNames: string[];
|
|
271
271
|
curatorPhaseAgentNames: string[];
|
|
272
|
+
/**
|
|
273
|
+
* All generated agent names registered with OpenCode at plugin init.
|
|
274
|
+
* Used by Full-Auto v2 delegation guard to apply strict registry-aware
|
|
275
|
+
* canonical-role extraction (so user-supplied prose like
|
|
276
|
+
* `not_an_architect` cannot collapse to `architect` via suffix-only
|
|
277
|
+
* matching). Populated by `src/index.ts` after `createAgents`.
|
|
278
|
+
*/
|
|
279
|
+
generatedAgentNames: string[];
|
|
272
280
|
/** Last known context budget percentage (0-100), updated by system-enhancer */
|
|
273
281
|
lastBudgetPct: number;
|
|
274
282
|
/** Per-session guardrail state — keyed by sessionID */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.1",
|
|
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",
|