opencode-swarm 7.99.6 → 7.100.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.
Files changed (34) hide show
  1. package/dist/cli/{config-doctor-1j77p1jy.js → config-doctor-g29kxhek.js} +2 -2
  2. package/dist/cli/{evidence-summary-service-5ww1npaa.js → evidence-summary-service-ch74hb16.js} +2 -2
  3. package/dist/cli/{guardrail-explain-s4c2h8mv.js → guardrail-explain-q8pj9691.js} +8 -8
  4. package/dist/cli/{guardrail-log-ya49kpwn.js → guardrail-log-ywajkn46.js} +3 -3
  5. package/dist/cli/{index-h9ptj4b1.js → index-5bstvpct.js} +1 -1
  6. package/dist/cli/{index-94qwbx11.js → index-7ztmmqpt.js} +6 -0
  7. package/dist/cli/{index-s3esnz7m.js → index-e9n3xsk0.js} +1 -1
  8. package/dist/cli/{index-etssqrff.js → index-jg6m72g7.js} +9 -9
  9. package/dist/cli/{index-7hnwnw5g.js → index-m0qshbr6.js} +41 -1
  10. package/dist/cli/{index-xsswhy6k.js → index-pj3a5fbt.js} +1 -1
  11. package/dist/cli/{index-1kcp4q4y.js → index-q5cae5d7.js} +1064 -332
  12. package/dist/cli/{index-0d3pmjf9.js → index-rpb763g8.js} +1 -1
  13. package/dist/cli/{index-ksc4ftms.js → index-tj0jek4p.js} +2 -2
  14. package/dist/cli/{index-9twtnjkv.js → index-y3x3gvy6.js} +1 -1
  15. package/dist/cli/index.js +7 -7
  16. package/dist/cli/{pending-delegations-vh2nae3n.js → pending-delegations-dvprsdfy.js} +1 -1
  17. package/dist/cli/{pr-subscriptions-d57tq0c0.js → pr-subscriptions-zfxjtyzw.js} +2 -2
  18. package/dist/cli/{schema-nz638xc3.js → schema-n7pd65qq.js} +1 -1
  19. package/dist/config/schema.d.ts +40 -0
  20. package/dist/hooks/utils.d.ts +8 -3
  21. package/dist/index.js +2258 -1455
  22. package/dist/memory/config.d.ts +38 -0
  23. package/dist/memory/embeddings/cache.d.ts +25 -0
  24. package/dist/memory/embeddings/fusion.d.ts +56 -0
  25. package/dist/memory/embeddings/local-provider.d.ts +57 -0
  26. package/dist/memory/embeddings/reranker.d.ts +42 -0
  27. package/dist/memory/embeddings/types.d.ts +27 -0
  28. package/dist/memory/scoring.d.ts +1 -0
  29. package/dist/memory/sqlite-provider.d.ts +19 -0
  30. package/dist/services/version-check.d.ts +0 -4
  31. package/package.json +1 -1
  32. package/tests/fixtures/memory-recall/paraphrase-auth.json +64 -0
  33. package/tests/fixtures/memory-recall/paraphrase-concurrency.json +64 -0
  34. package/tests/fixtures/memory-recall/paraphrase-deployment.json +64 -0
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  PluginConfigSchema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-7hnwnw5g.js";
6
+ } from "./index-m0qshbr6.js";
7
7
  import {
8
8
  log
9
9
  } from "./index-zgwm4ryv.js";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-1kcp4q4y.js";
15
+ } from "./index-q5cae5d7.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-xsswhy6k.js";
22
+ } from "./index-pj3a5fbt.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  readSwarmFileAsync,
10
10
  validateSwarmPath
11
- } from "./index-94qwbx11.js";
11
+ } from "./index-7ztmmqpt.js";
12
12
  import {
13
13
  readCachedParsedFile
14
14
  } from "./index-jtqkh8jf.js";
package/dist/cli/index.js CHANGED
@@ -7,22 +7,22 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-1kcp4q4y.js";
11
- import"./index-xsswhy6k.js";
10
+ } from "./index-q5cae5d7.js";
11
+ import"./index-pj3a5fbt.js";
12
12
  import"./index-ydgy7vg5.js";
13
13
  import"./index-vwyjkzgs.js";
14
14
  import"./index-f7nma02k.js";
15
- import"./index-0d3pmjf9.js";
15
+ import"./index-rpb763g8.js";
16
16
  import {
17
17
  DEFAULT_AGENT_CONFIGS
18
- } from "./index-7hnwnw5g.js";
19
- import"./index-9twtnjkv.js";
18
+ } from "./index-m0qshbr6.js";
19
+ import"./index-y3x3gvy6.js";
20
20
  import"./index-adz3nk9b.js";
21
21
  import"./index-v4fcn4tr.js";
22
22
  import"./index-r8f89sm9.js";
23
23
  import"./index-9b7qp18e.js";
24
- import"./index-s3esnz7m.js";
25
- import"./index-94qwbx11.js";
24
+ import"./index-e9n3xsk0.js";
25
+ import"./index-7ztmmqpt.js";
26
26
  import"./index-jtqkh8jf.js";
27
27
  import"./index-5e4e2hvv.js";
28
28
  import"./index-p0arc26j.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-94qwbx11.js";
4
+ } from "./index-7ztmmqpt.js";
5
5
  import"./index-jtqkh8jf.js";
6
6
  import"./index-5e4e2hvv.js";
7
7
  import"./index-p0arc26j.js";
@@ -9,8 +9,8 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-s3esnz7m.js";
13
- import"./index-94qwbx11.js";
12
+ } from "./index-e9n3xsk0.js";
13
+ import"./index-7ztmmqpt.js";
14
14
  import"./index-jtqkh8jf.js";
15
15
  import"./index-5e4e2hvv.js";
16
16
  import"./index-p0arc26j.js";
@@ -85,7 +85,7 @@ import {
85
85
  resolveGeneratedAgentRole,
86
86
  resolveGuardrailsConfig,
87
87
  stripKnownSwarmPrefix
88
- } from "./index-7hnwnw5g.js";
88
+ } from "./index-m0qshbr6.js";
89
89
  import"./index-p0arc26j.js";
90
90
  import"./index-293f68mj.js";
91
91
  import"./index-a76rekgs.js";
@@ -681,6 +681,26 @@ export declare const MemoryConfigSchema: z.ZodObject<{
681
681
  }, z.core.$strip>>;
682
682
  }, z.core.$strip>>;
683
683
  hardDelete: z.ZodDefault<z.ZodBoolean>;
684
+ embeddings: z.ZodDefault<z.ZodObject<{
685
+ enabled: z.ZodDefault<z.ZodBoolean>;
686
+ model: z.ZodDefault<z.ZodString>;
687
+ dimension: z.ZodDefault<z.ZodNumber>;
688
+ version: z.ZodOptional<z.ZodString>;
689
+ cacheSize: z.ZodDefault<z.ZodNumber>;
690
+ }, z.core.$strip>>;
691
+ retrieval: z.ZodDefault<z.ZodObject<{
692
+ rrfK: z.ZodDefault<z.ZodNumber>;
693
+ weights: z.ZodDefault<z.ZodObject<{
694
+ lexical: z.ZodDefault<z.ZodNumber>;
695
+ dense: z.ZodDefault<z.ZodNumber>;
696
+ metadata: z.ZodDefault<z.ZodNumber>;
697
+ }, z.core.$strip>>;
698
+ rerank: z.ZodDefault<z.ZodObject<{
699
+ enabled: z.ZodDefault<z.ZodBoolean>;
700
+ model: z.ZodOptional<z.ZodString>;
701
+ }, z.core.$strip>>;
702
+ latencyBudgetMs: z.ZodDefault<z.ZodNumber>;
703
+ }, z.core.$strip>>;
684
704
  }, z.core.$strip>;
685
705
  export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
686
706
  export declare const CuratorConfigSchema: z.ZodObject<{
@@ -1841,6 +1861,26 @@ export declare const PluginConfigSchema: z.ZodObject<{
1841
1861
  }, z.core.$strip>>;
1842
1862
  }, z.core.$strip>>;
1843
1863
  hardDelete: z.ZodDefault<z.ZodBoolean>;
1864
+ embeddings: z.ZodDefault<z.ZodObject<{
1865
+ enabled: z.ZodDefault<z.ZodBoolean>;
1866
+ model: z.ZodDefault<z.ZodString>;
1867
+ dimension: z.ZodDefault<z.ZodNumber>;
1868
+ version: z.ZodOptional<z.ZodString>;
1869
+ cacheSize: z.ZodDefault<z.ZodNumber>;
1870
+ }, z.core.$strip>>;
1871
+ retrieval: z.ZodDefault<z.ZodObject<{
1872
+ rrfK: z.ZodDefault<z.ZodNumber>;
1873
+ weights: z.ZodDefault<z.ZodObject<{
1874
+ lexical: z.ZodDefault<z.ZodNumber>;
1875
+ dense: z.ZodDefault<z.ZodNumber>;
1876
+ metadata: z.ZodDefault<z.ZodNumber>;
1877
+ }, z.core.$strip>>;
1878
+ rerank: z.ZodDefault<z.ZodObject<{
1879
+ enabled: z.ZodDefault<z.ZodBoolean>;
1880
+ model: z.ZodOptional<z.ZodString>;
1881
+ }, z.core.$strip>>;
1882
+ latencyBudgetMs: z.ZodDefault<z.ZodNumber>;
1883
+ }, z.core.$strip>>;
1844
1884
  }, z.core.$strip>>;
1845
1885
  curator: z.ZodOptional<z.ZodObject<{
1846
1886
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -21,7 +21,11 @@ export declare const _internals: {
21
21
  readSwarmFileAsync: typeof readSwarmFileAsync;
22
22
  readCachedTextFile: typeof readCachedTextFile;
23
23
  };
24
- export declare function safeHook<I, O>(fn: (input: I, output: O) => Promise<void>): (input: I, output: O) => Promise<void>;
24
+ type HookHandler<I, O> = (input: I, output: O) => Promise<void>;
25
+ export declare function markFailClosed<I, O>(fn: HookHandler<I, O>): HookHandler<I, O> & {
26
+ __failClosed?: true;
27
+ };
28
+ export declare function safeHook<I, O>(fn: HookHandler<I, O>): HookHandler<I, O>;
25
29
  /**
26
30
  * `composeHandlers` runs handlers sequentially, wrapping EACH handler in
27
31
  * `safeHook` so any thrown error is downgraded to a warning. Use this for
@@ -37,7 +41,7 @@ export declare function safeHook<I, O>(fn: (input: I, output: O) => Promise<void
37
41
  *
38
42
  * Reference: AGENTS.md invariant 11 + Full-Auto v2 fail-closed contract.
39
43
  */
40
- export declare function composeHandlers<I, O>(...fns: Array<(input: I, output: O) => Promise<void>>): (input: I, output: O) => Promise<void>;
44
+ export declare function composeHandlers<I, O>(...fns: Array<HookHandler<I, O>>): HookHandler<I, O>;
41
45
  /**
42
46
  * `composeBlockingHandlers` runs handlers sequentially WITHOUT `safeHook`,
43
47
  * so any thrown error propagates to the caller and stops the chain.
@@ -62,7 +66,7 @@ export declare function composeHandlers<I, O>(...fns: Array<(input: I, output: O
62
66
  * place — silently swallowing a Full-Auto denial would be a runtime
63
67
  * fail-open and is a critical regression.
64
68
  */
65
- export declare function composeBlockingHandlers<I, O>(...fns: Array<(input: I, output: O) => Promise<void>>): (input: I, output: O) => Promise<void>;
69
+ export declare function composeBlockingHandlers<I, O>(...fns: Array<HookHandler<I, O>>): HookHandler<I, O>;
66
70
  /**
67
71
  * Validates that a filename is safe to use within the .swarm directory
68
72
  *
@@ -74,3 +78,4 @@ export declare function composeBlockingHandlers<I, O>(...fns: Array<(input: I, o
74
78
  export declare function validateSwarmPath(directory: string, filename: string): string;
75
79
  export declare function readSwarmFileAsync(directory: string, filename: string, cache?: Map<string, Promise<string | null>>): Promise<string | null>;
76
80
  export declare function estimateTokens(text: string): number;
81
+ export {};