opencode-swarm 7.98.1 → 7.99.0
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 +1 -0
- package/dist/cli/{config-doctor-7yrxfa6b.js → config-doctor-9fhfy6p7.js} +2 -2
- package/dist/cli/{evidence-summary-service-g4x5e3e3.js → evidence-summary-service-4hs44n2c.js} +6 -6
- package/dist/cli/{gate-evidence-nphg8hay.js → gate-evidence-ywys9vfs.js} +4 -4
- package/dist/cli/guardrail-explain-ktm6szbm.js +30 -0
- package/dist/cli/{guardrail-log-53z1cf46.js → guardrail-log-ya49kpwn.js} +3 -3
- package/dist/cli/{index-91qtsbce.js → index-3naa2ajc.js} +1 -1
- package/dist/cli/{index-attgb1ma.js → index-4pt2py5p.js} +17 -15
- package/dist/cli/{index-sf08zj91.js → index-5fxjagjt.js} +2 -2
- package/dist/cli/{index-471qxz9g.js → index-7hnwnw5g.js} +11 -1
- package/dist/cli/{index-kv4dd5c5.js → index-9b7qp18e.js} +1 -1
- package/dist/cli/{index-hb10a2g8.js → index-f7nma02k.js} +2 -2
- package/dist/cli/{index-0rgde8qc.js → index-ft4gehk1.js} +2 -2
- package/dist/cli/{index-gnd1280x.js → index-h9ptj4b1.js} +1 -1
- package/dist/cli/{index-zgba613y.js → index-hw8r3e5p.js} +1108 -792
- package/dist/cli/{index-mh1ej70w.js → index-r8f89sm9.js} +2 -2
- package/dist/cli/{index-zy22fg5h.js → index-svf2zjxs.js} +5 -1
- package/dist/cli/{index-xchgryg4.js → index-vn263hqt.js} +16 -2
- package/dist/cli/{index-fjxjb66n.js → index-vwyjkzgs.js} +3 -3
- package/dist/cli/{index-gn8n22th.js → index-we94wkty.js} +19 -3
- package/dist/cli/{index-4c5jpmn9.js → index-wwnjw0fb.js} +11 -11
- package/dist/cli/{index-5z2e78tv.js → index-xsswhy6k.js} +1 -1
- package/dist/cli/index.js +13 -13
- package/dist/cli/{knowledge-store-pa58msy5.js → knowledge-store-tsa8ezka.js} +4 -4
- package/dist/cli/{pending-delegations-shqbvfjc.js → pending-delegations-c785p5n2.js} +3 -3
- package/dist/cli/{pr-subscriptions-2565fpsc.js → pr-subscriptions-fqrzm0tv.js} +4 -4
- package/dist/cli/{schema-mygkbbe9.js → schema-nz638xc3.js} +5 -1
- package/dist/cli/{skill-generator-3tkwcg4x.js → skill-generator-99rrfwae.js} +5 -5
- package/dist/cli/{telemetry-aa1ma1dr.js → telemetry-jm7t8031.js} +1 -1
- package/dist/commands/close.d.ts +2 -1
- package/dist/commands/costs.d.ts +4 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +9 -2
- package/dist/config/evidence-schema.d.ts +44 -44
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema.d.ts +24 -0
- package/dist/hooks/system-enhancer.d.ts +1 -1
- package/dist/hooks/utils.d.ts +3 -1
- package/dist/index.js +2978 -2337
- package/dist/plan/manager.d.ts +1 -1
- package/dist/services/cost-accounting.d.ts +65 -0
- package/dist/state.d.ts +3 -3
- package/dist/telemetry.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-cm08h4mt.js +0 -30
package/dist/hooks/utils.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* including error handling, handler composition, file I/O, and
|
|
6
6
|
* token estimation for swarm-related operations.
|
|
7
7
|
*/
|
|
8
|
+
import { readCachedTextFile } from '../utils/swarm-artifact-cache';
|
|
8
9
|
/**
|
|
9
10
|
* Test-only dependency-injection seam. Production code calls
|
|
10
11
|
* `_internals.<fn>(...)` so tests can replace the function on this object
|
|
@@ -18,6 +19,7 @@ export declare const _internals: {
|
|
|
18
19
|
composeHandlers: typeof composeHandlers;
|
|
19
20
|
validateSwarmPath: typeof validateSwarmPath;
|
|
20
21
|
readSwarmFileAsync: typeof readSwarmFileAsync;
|
|
22
|
+
readCachedTextFile: typeof readCachedTextFile;
|
|
21
23
|
};
|
|
22
24
|
export declare function safeHook<I, O>(fn: (input: I, output: O) => Promise<void>): (input: I, output: O) => Promise<void>;
|
|
23
25
|
/**
|
|
@@ -70,5 +72,5 @@ export declare function composeBlockingHandlers<I, O>(...fns: Array<(input: I, o
|
|
|
70
72
|
* @throws Error if the filename is invalid or attempts path traversal
|
|
71
73
|
*/
|
|
72
74
|
export declare function validateSwarmPath(directory: string, filename: string): string;
|
|
73
|
-
export declare function readSwarmFileAsync(directory: string, filename: string): Promise<string | null>;
|
|
75
|
+
export declare function readSwarmFileAsync(directory: string, filename: string, cache?: Map<string, Promise<string | null>>): Promise<string | null>;
|
|
74
76
|
export declare function estimateTokens(text: string): number;
|