opencode-swarm 7.145.2 → 7.146.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 (57) hide show
  1. package/dist/cli/{config-doctor-j1r33f4q.js → config-doctor-vs6hvbew.js} +2 -2
  2. package/dist/cli/{core-c2zrd384.js → core-jvvm935f.js} +1 -1
  3. package/dist/cli/{curator-gk2kmrk1.js → curator-5bxh1djq.js} +17 -17
  4. package/dist/cli/{curator-llm-factory-sat3mn5n.js → curator-llm-factory-pe6skby4.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-0mhx0t0v.js → evidence-summary-service-6m9jmzk8.js} +6 -6
  6. package/dist/cli/{gate-evidence-a5adh55x.js → gate-evidence-84sfx6g8.js} +2 -2
  7. package/dist/cli/{guardrail-explain-r50fery8.js → guardrail-explain-jhbxq8yb.js} +18 -18
  8. package/dist/cli/{guardrail-log-p69eys6d.js → guardrail-log-vpbp3rm4.js} +3 -3
  9. package/dist/cli/{hive-promoter-ay8a7sct.js → hive-promoter-mmmfszv8.js} +17 -17
  10. package/dist/cli/{index-2vefr1f8.js → index-5qwmpamg.js} +1 -1
  11. package/dist/cli/{index-n55a28zr.js → index-92cxd0r1.js} +1 -1
  12. package/dist/cli/{index-612rr70a.js → index-bma2wrqx.js} +1 -1
  13. package/dist/cli/{index-917z76qr.js → index-d4e6wpkg.js} +3 -3
  14. package/dist/cli/{index-ncfjxz9n.js → index-f17j50dx.js} +5 -5
  15. package/dist/cli/{index-gpnv14kq.js → index-fay8h6v8.js} +24 -4
  16. package/dist/cli/{index-b9kxxd6k.js → index-fyr2wbvz.js} +2 -2
  17. package/dist/cli/{index-673axbjx.js → index-fzqhn96z.js} +1 -1
  18. package/dist/cli/{index-jgb7mq2y.js → index-g3xt1d16.js} +3 -3
  19. package/dist/cli/{index-np4ytvvv.js → index-gxbhp7sx.js} +1 -1
  20. package/dist/cli/{index-9080b3de.js → index-j43qndgc.js} +19 -19
  21. package/dist/cli/{index-czde45km.js → index-jfcgnvg6.js} +2 -2
  22. package/dist/cli/{index-6wf75rcm.js → index-kfmee1cr.js} +4 -4
  23. package/dist/cli/{index-vav705md.js → index-kwxp0z0n.js} +2 -2
  24. package/dist/cli/{index-9gt8g2qj.js → index-n6ke10ck.js} +3 -3
  25. package/dist/cli/{index-cb2qtetk.js → index-pz2py5v7.js} +1489 -1041
  26. package/dist/cli/{index-jpppcckq.js → index-q2mvacjr.js} +1 -1
  27. package/dist/cli/{index-7y5akvc9.js → index-s8qyaqs2.js} +1 -1
  28. package/dist/cli/{index-1g87esfp.js → index-vk15nbh4.js} +1 -1
  29. package/dist/cli/{index-cxn95n7q.js → index-zd1mfygt.js} +3 -3
  30. package/dist/cli/{index-rk80jhef.js → index-zsmsy1dh.js} +1 -1
  31. package/dist/cli/index.js +17 -17
  32. package/dist/cli/{knowledge-escalator-22apj3dj.js → knowledge-escalator-c9p3w12b.js} +6 -6
  33. package/dist/cli/{knowledge-events-bx8xba9z.js → knowledge-events-d201414m.js} +4 -4
  34. package/dist/cli/{knowledge-store-nc71kfsg.js → knowledge-store-ds45k9th.js} +1 -1
  35. package/dist/cli/{knowledge-validator-g8ne80v6.js → knowledge-validator-707vsncy.js} +2 -2
  36. package/dist/cli/{scan-cursor-6ksgv514.js → scan-cursor-znhqb8xa.js} +2 -2
  37. package/dist/cli/{schema-mpcm7nje.js → schema-dnnm0p40.js} +1 -1
  38. package/dist/cli/{scope-persistence-mj1w3hqw.js → scope-persistence-4n24a1e2.js} +4 -4
  39. package/dist/cli/{skill-generator-gsa6qwwt.js → skill-generator-5s0p3y8k.js} +7 -7
  40. package/dist/cli/{worktree-isolation-ajzyp2gm.js → worktree-isolation-1v2mythh.js} +17 -17
  41. package/dist/commands/memory.d.ts +8 -0
  42. package/dist/commands/registry.d.ts +8 -0
  43. package/dist/config/schema.d.ts +14 -0
  44. package/dist/index.js +401 -351
  45. package/dist/memory/config.d.ts +20 -0
  46. package/dist/memory/errors.d.ts +14 -0
  47. package/dist/memory/gateway.d.ts +32 -0
  48. package/dist/memory/index.d.ts +3 -2
  49. package/dist/memory/pii.d.ts +66 -0
  50. package/dist/memory/prompt-block.d.ts +1 -1
  51. package/dist/memory/provider.d.ts +15 -0
  52. package/dist/memory/redaction.d.ts +31 -8
  53. package/dist/memory/schema.d.ts +18 -0
  54. package/dist/memory/sentinel.d.ts +12 -0
  55. package/dist/memory/sqlite-provider.d.ts +93 -0
  56. package/dist/memory/types.d.ts +9 -0
  57. package/package.json +12 -2
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-6wf75rcm.js";
12
+ } from "./index-kfmee1cr.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-x8pm918t.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-1g87esfp.js";
5
+ } from "./index-vk15nbh4.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-gpnv14kq.js";
14
+ } from "./index-fay8h6v8.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-cpg98bh1.js";
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPluginConfigWithMeta
4
- } from "./index-2vefr1f8.js";
4
+ } from "./index-5qwmpamg.js";
5
5
  import {
6
6
  KnowledgeConfigSchema,
7
7
  init_schema
8
- } from "./index-gpnv14kq.js";
8
+ } from "./index-fay8h6v8.js";
9
9
  import {
10
10
  validateSwarmPath
11
11
  } from "./index-w8pgjr75.js";
@@ -2693,7 +2693,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2693
2693
  }
2694
2694
  let bumps = 0;
2695
2695
  if (deltas.length > 0) {
2696
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-nc71kfsg.js");
2696
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-ds45k9th.js");
2697
2697
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2698
2698
  }
2699
2699
  return {
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-mj1w3hqw.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-4n24a1e2.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
package/dist/cli/index.js CHANGED
@@ -11,48 +11,48 @@ import {
11
11
  readCachePackageVersion,
12
12
  resolveCommand,
13
13
  safeRealpathSync
14
- } from "./index-cb2qtetk.js";
14
+ } from "./index-pz2py5v7.js";
15
15
  import"./index-0a0asz2s.js";
16
- import"./index-1g87esfp.js";
17
- import"./index-612rr70a.js";
18
- import"./index-917z76qr.js";
16
+ import"./index-vk15nbh4.js";
17
+ import"./index-bma2wrqx.js";
18
+ import"./index-d4e6wpkg.js";
19
19
  import"./index-nsr5b69r.js";
20
20
  import"./index-134d35c1.js";
21
21
  import"./index-abtrcs16.js";
22
22
  import"./index-y8552snf.js";
23
- import"./index-ncfjxz9n.js";
24
- import"./index-np4ytvvv.js";
23
+ import"./index-f17j50dx.js";
24
+ import"./index-gxbhp7sx.js";
25
25
  import"./index-70ha9e09.js";
26
26
  import"./index-c8s9a3zh.js";
27
27
  import"./index-9ss2m4rs.js";
28
28
  import"./index-z9yhhk6q.js";
29
29
  import"./index-5e5a1y2r.js";
30
- import"./index-jgb7mq2y.js";
31
- import"./index-jpppcckq.js";
30
+ import"./index-g3xt1d16.js";
31
+ import"./index-q2mvacjr.js";
32
32
  import"./index-4p3qfb05.js";
33
33
  import"./index-rtry5xyf.js";
34
34
  import"./index-zsrtt42s.js";
35
35
  import"./index-97psh79d.js";
36
36
  import"./index-e1pxav9g.js";
37
- import"./index-n55a28zr.js";
38
- import"./index-rk80jhef.js";
39
- import"./index-vav705md.js";
40
- import"./index-673axbjx.js";
37
+ import"./index-92cxd0r1.js";
38
+ import"./index-zsmsy1dh.js";
39
+ import"./index-kwxp0z0n.js";
40
+ import"./index-fzqhn96z.js";
41
41
  import"./index-556ja8an.js";
42
42
  import"./index-7sy3aa9m.js";
43
43
  import"./index-wx8zdh4a.js";
44
44
  import"./index-3g0xk6tk.js";
45
45
  import"./index-85gkedsf.js";
46
- import"./index-6wf75rcm.js";
47
- import"./index-cxn95n7q.js";
48
- import"./index-czde45km.js";
46
+ import"./index-kfmee1cr.js";
47
+ import"./index-zd1mfygt.js";
48
+ import"./index-jfcgnvg6.js";
49
49
  import"./index-gprxjmm7.js";
50
50
  import"./index-n832052r.js";
51
- import"./index-2vefr1f8.js";
51
+ import"./index-5qwmpamg.js";
52
52
  import {
53
53
  init_package,
54
54
  package_default
55
- } from "./index-gpnv14kq.js";
55
+ } from "./index-fay8h6v8.js";
56
56
  import {
57
57
  DEFAULT_AGENT_CONFIGS,
58
58
  init_constants
@@ -9,14 +9,14 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-ncfjxz9n.js";
13
- import"./index-6wf75rcm.js";
14
- import"./index-cxn95n7q.js";
15
- import"./index-czde45km.js";
12
+ } from "./index-f17j50dx.js";
13
+ import"./index-kfmee1cr.js";
14
+ import"./index-zd1mfygt.js";
15
+ import"./index-jfcgnvg6.js";
16
16
  import"./index-gprxjmm7.js";
17
17
  import"./index-n832052r.js";
18
- import"./index-2vefr1f8.js";
19
- import"./index-gpnv14kq.js";
18
+ import"./index-5qwmpamg.js";
19
+ import"./index-fay8h6v8.js";
20
20
  import"./index-cpg98bh1.js";
21
21
  import"./index-9e6fdz2h.js";
22
22
  import"./index-4rhhvd1a.js";
@@ -29,12 +29,12 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-cxn95n7q.js";
33
- import"./index-czde45km.js";
32
+ } from "./index-zd1mfygt.js";
33
+ import"./index-jfcgnvg6.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-2vefr1f8.js";
37
- import"./index-gpnv14kq.js";
36
+ import"./index-5qwmpamg.js";
37
+ import"./index-fay8h6v8.js";
38
38
  import"./index-cpg98bh1.js";
39
39
  import"./index-9e6fdz2h.js";
40
40
  import"./index-4rhhvd1a.js";
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-6wf75rcm.js";
44
+ } from "./index-kfmee1cr.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -23,10 +23,10 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-jpppcckq.js";
26
+ } from "./index-q2mvacjr.js";
27
27
  import"./index-4p3qfb05.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-6wf75rcm.js";
29
+ import"./index-kfmee1cr.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-x8pm918t.js";
32
32
  import"./index-j20fzn0w.js";
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-np4ytvvv.js";
8
- import"./index-6wf75rcm.js";
7
+ } from "./index-gxbhp7sx.js";
8
+ import"./index-kfmee1cr.js";
9
9
  import"./index-9e6fdz2h.js";
10
10
  import"./index-4rhhvd1a.js";
11
11
  import"./index-ae75rja9.js";
@@ -97,7 +97,7 @@ import {
97
97
  resolveGeneratedAgentRole,
98
98
  resolveGuardrailsConfig,
99
99
  stripKnownSwarmPrefix
100
- } from "./index-gpnv14kq.js";
100
+ } from "./index-fay8h6v8.js";
101
101
  import"./index-cpg98bh1.js";
102
102
  import"./index-zjygnfay.js";
103
103
  import"./index-bk5tah7q.js";
@@ -23,11 +23,11 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-vav705md.js";
27
- import"./index-673axbjx.js";
26
+ } from "./index-kwxp0z0n.js";
27
+ import"./index-fzqhn96z.js";
28
28
  import"./index-556ja8an.js";
29
- import"./index-2vefr1f8.js";
30
- import"./index-gpnv14kq.js";
29
+ import"./index-5qwmpamg.js";
30
+ import"./index-fay8h6v8.js";
31
31
  import"./index-cpg98bh1.js";
32
32
  import"./index-9e6fdz2h.js";
33
33
  import"./index-4rhhvd1a.js";
@@ -33,17 +33,17 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-jgb7mq2y.js";
37
- import"./index-jpppcckq.js";
36
+ } from "./index-g3xt1d16.js";
37
+ import"./index-q2mvacjr.js";
38
38
  import"./index-4p3qfb05.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-6wf75rcm.js";
41
- import"./index-cxn95n7q.js";
42
- import"./index-czde45km.js";
40
+ import"./index-kfmee1cr.js";
41
+ import"./index-zd1mfygt.js";
42
+ import"./index-jfcgnvg6.js";
43
43
  import"./index-gprxjmm7.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-2vefr1f8.js";
46
- import"./index-gpnv14kq.js";
45
+ import"./index-5qwmpamg.js";
46
+ import"./index-fay8h6v8.js";
47
47
  import"./index-cpg98bh1.js";
48
48
  import"./index-9e6fdz2h.js";
49
49
  import"./index-4rhhvd1a.js";
@@ -21,47 +21,47 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-cb2qtetk.js";
24
+ } from "./index-pz2py5v7.js";
25
25
  import"./index-0a0asz2s.js";
26
- import"./index-1g87esfp.js";
27
- import"./index-612rr70a.js";
28
- import"./index-917z76qr.js";
26
+ import"./index-vk15nbh4.js";
27
+ import"./index-bma2wrqx.js";
28
+ import"./index-d4e6wpkg.js";
29
29
  import"./index-nsr5b69r.js";
30
30
  import"./index-134d35c1.js";
31
31
  import"./index-abtrcs16.js";
32
32
  import"./index-y8552snf.js";
33
- import"./index-ncfjxz9n.js";
34
- import"./index-np4ytvvv.js";
33
+ import"./index-f17j50dx.js";
34
+ import"./index-gxbhp7sx.js";
35
35
  import"./index-70ha9e09.js";
36
36
  import"./index-c8s9a3zh.js";
37
37
  import"./index-9ss2m4rs.js";
38
38
  import"./index-z9yhhk6q.js";
39
39
  import"./index-5e5a1y2r.js";
40
- import"./index-jgb7mq2y.js";
41
- import"./index-jpppcckq.js";
40
+ import"./index-g3xt1d16.js";
41
+ import"./index-q2mvacjr.js";
42
42
  import"./index-4p3qfb05.js";
43
43
  import"./index-rtry5xyf.js";
44
44
  import"./index-zsrtt42s.js";
45
45
  import"./index-97psh79d.js";
46
46
  import"./index-e1pxav9g.js";
47
- import"./index-n55a28zr.js";
48
- import"./index-rk80jhef.js";
49
- import"./index-vav705md.js";
50
- import"./index-673axbjx.js";
47
+ import"./index-92cxd0r1.js";
48
+ import"./index-zsmsy1dh.js";
49
+ import"./index-kwxp0z0n.js";
50
+ import"./index-fzqhn96z.js";
51
51
  import"./index-556ja8an.js";
52
52
  import"./index-7sy3aa9m.js";
53
53
  import"./index-wx8zdh4a.js";
54
54
  import"./index-3g0xk6tk.js";
55
55
  import"./index-85gkedsf.js";
56
- import"./index-6wf75rcm.js";
57
- import"./index-cxn95n7q.js";
56
+ import"./index-kfmee1cr.js";
57
+ import"./index-zd1mfygt.js";
58
58
  import {
59
59
  resolveWorktreeIsolationConfig
60
- } from "./index-czde45km.js";
60
+ } from "./index-jfcgnvg6.js";
61
61
  import"./index-gprxjmm7.js";
62
62
  import"./index-n832052r.js";
63
- import"./index-2vefr1f8.js";
64
- import"./index-gpnv14kq.js";
63
+ import"./index-5qwmpamg.js";
64
+ import"./index-fay8h6v8.js";
65
65
  import"./index-cpg98bh1.js";
66
66
  import"./index-9e6fdz2h.js";
67
67
  import"./index-4rhhvd1a.js";
@@ -10,3 +10,11 @@ export declare function handleMemoryMigrateCommand(directory: string, _args: str
10
10
  export declare function handleMemoryImportCommand(directory: string, _args: string[]): Promise<string>;
11
11
  export declare function handleMemoryExportCommand(directory: string, _args: string[]): Promise<string>;
12
12
  export declare function handleMemoryEvaluateCommand(directory: string, args: string[]): Promise<string>;
13
+ /**
14
+ * #1466: `/swarm memory audit-verify` — lazily verify the memory_events
15
+ * hash chain (migration v13) and the _meta chain head. Tampering with any
16
+ * chained row, deleting a middle row, or editing the last row breaks the
17
+ * verification. Non-SQLite providers report the gap explicitly instead of
18
+ * pretending to verify.
19
+ */
20
+ export declare function handleMemoryAuditVerifyCommand(directory: string, args: string[]): Promise<string>;
@@ -1021,6 +1021,14 @@ export declare const COMMAND_REGISTRY: {
1021
1021
  readonly category: "diagnostics";
1022
1022
  readonly toolPolicy: "agent";
1023
1023
  };
1024
+ readonly 'memory audit-verify': {
1025
+ readonly handler: (ctx: CommandContext) => Promise<string>;
1026
+ readonly description: "Verify the memory audit-log hash chain (tamper detection)";
1027
+ readonly subcommandOf: "memory";
1028
+ readonly args: "--json";
1029
+ readonly category: "diagnostics";
1030
+ readonly toolPolicy: "agent";
1031
+ };
1024
1032
  readonly 'memory import': {
1025
1033
  readonly handler: (ctx: CommandContext) => Promise<string>;
1026
1034
  readonly description: "Import legacy JSONL memory into SQLite";
@@ -841,6 +841,13 @@ export declare const MemoryConfigSchema: z.ZodObject<{
841
841
  }, z.core.$strip>>;
842
842
  redaction: z.ZodDefault<z.ZodObject<{
843
843
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
844
+ detectPii: z.ZodDefault<z.ZodBoolean>;
845
+ piiDetector: z.ZodDefault<z.ZodEnum<{
846
+ regex: "regex";
847
+ ner: "ner";
848
+ }>>;
849
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
850
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
844
851
  }, z.core.$strip>>;
845
852
  maintenance: z.ZodDefault<z.ZodObject<{
846
853
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
@@ -2232,6 +2239,13 @@ export declare const PluginConfigSchema: z.ZodObject<{
2232
2239
  }, z.core.$strip>>;
2233
2240
  redaction: z.ZodDefault<z.ZodObject<{
2234
2241
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
2242
+ detectPii: z.ZodDefault<z.ZodBoolean>;
2243
+ piiDetector: z.ZodDefault<z.ZodEnum<{
2244
+ regex: "regex";
2245
+ ner: "ner";
2246
+ }>>;
2247
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
2248
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
2235
2249
  }, z.core.$strip>>;
2236
2250
  maintenance: z.ZodDefault<z.ZodObject<{
2237
2251
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;