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
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-0d3pmjf9.js";
16
- import"./index-7hnwnw5g.js";
15
+ } from "./index-rpb763g8.js";
16
+ import"./index-m0qshbr6.js";
17
17
  import"./index-5e4e2hvv.js";
18
18
  import"./index-p0arc26j.js";
19
19
  import"./index-zgwm4ryv.js";
@@ -6,10 +6,10 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-9twtnjkv.js";
9
+ } from "./index-y3x3gvy6.js";
10
10
  import"./index-r8f89sm9.js";
11
11
  import"./index-9b7qp18e.js";
12
- import"./index-94qwbx11.js";
12
+ import"./index-7ztmmqpt.js";
13
13
  import"./index-jtqkh8jf.js";
14
14
  import"./index-5e4e2hvv.js";
15
15
  import"./index-p0arc26j.js";
@@ -1,21 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-ksc4ftms.js";
5
- import"./index-1kcp4q4y.js";
6
- import"./index-xsswhy6k.js";
4
+ } from "./index-tj0jek4p.js";
5
+ import"./index-q5cae5d7.js";
6
+ import"./index-pj3a5fbt.js";
7
7
  import"./index-ydgy7vg5.js";
8
8
  import"./index-vwyjkzgs.js";
9
9
  import"./index-f7nma02k.js";
10
- import"./index-0d3pmjf9.js";
11
- import"./index-7hnwnw5g.js";
12
- import"./index-9twtnjkv.js";
10
+ import"./index-rpb763g8.js";
11
+ import"./index-m0qshbr6.js";
12
+ import"./index-y3x3gvy6.js";
13
13
  import"./index-adz3nk9b.js";
14
14
  import"./index-v4fcn4tr.js";
15
15
  import"./index-r8f89sm9.js";
16
16
  import"./index-9b7qp18e.js";
17
- import"./index-s3esnz7m.js";
18
- import"./index-94qwbx11.js";
17
+ import"./index-e9n3xsk0.js";
18
+ import"./index-7ztmmqpt.js";
19
19
  import"./index-jtqkh8jf.js";
20
20
  import"./index-5e4e2hvv.js";
21
21
  import"./index-p0arc26j.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-h9ptj4b1.js";
5
- import"./index-xsswhy6k.js";
6
- import"./index-7hnwnw5g.js";
4
+ } from "./index-5bstvpct.js";
5
+ import"./index-pj3a5fbt.js";
6
+ import"./index-m0qshbr6.js";
7
7
  import"./index-5e4e2hvv.js";
8
8
  import"./index-p0arc26j.js";
9
9
  import"./index-zgwm4ryv.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-xsswhy6k.js";
5
+ } from "./index-pj3a5fbt.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -22,6 +22,9 @@ var _internals = {
22
22
  readSwarmFileAsync,
23
23
  readCachedTextFile
24
24
  };
25
+ function isFailClosedHandler(value) {
26
+ return typeof value === "function" && Object.hasOwn(value, "__failClosed") && value.__failClosed === true;
27
+ }
25
28
  function safeHook(fn) {
26
29
  return async (input, output) => {
27
30
  try {
@@ -43,6 +46,9 @@ function composeHandlers(...fns) {
43
46
  }
44
47
  return async (input, output) => {
45
48
  for (const fn of fns) {
49
+ if (isFailClosedHandler(fn)) {
50
+ throw new Error("composeHandlers cannot wrap fail-closed handlers; use composeBlockingHandlers or await them directly");
51
+ }
46
52
  const safeFn = _internals.safeHook(fn);
47
53
  await safeFn(input, output);
48
54
  }
@@ -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 {
6
6
  log
7
7
  } from "./index-zgwm4ryv.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-ksc4ftms.js";
4
+ } from "./index-tj0jek4p.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-h9ptj4b1.js";
7
+ } from "./index-5bstvpct.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -79,24 +79,24 @@ import {
79
79
  handleWriteRetroCommand,
80
80
  normalizeSwarmCommandInput,
81
81
  resolveCommand
82
- } from "./index-1kcp4q4y.js";
83
- import"./index-xsswhy6k.js";
82
+ } from "./index-q5cae5d7.js";
83
+ import"./index-pj3a5fbt.js";
84
84
  import"./index-ydgy7vg5.js";
85
85
  import"./index-vwyjkzgs.js";
86
86
  import"./index-f7nma02k.js";
87
- import"./index-0d3pmjf9.js";
87
+ import"./index-rpb763g8.js";
88
88
  import {
89
89
  AGENT_TOOL_MAP,
90
90
  ORCHESTRATOR_NAME,
91
91
  stripKnownSwarmPrefix
92
- } from "./index-7hnwnw5g.js";
93
- import"./index-9twtnjkv.js";
92
+ } from "./index-m0qshbr6.js";
93
+ import"./index-y3x3gvy6.js";
94
94
  import"./index-adz3nk9b.js";
95
95
  import"./index-v4fcn4tr.js";
96
96
  import"./index-r8f89sm9.js";
97
97
  import"./index-9b7qp18e.js";
98
- import"./index-s3esnz7m.js";
99
- import"./index-94qwbx11.js";
98
+ import"./index-e9n3xsk0.js";
99
+ import"./index-7ztmmqpt.js";
100
100
  import"./index-jtqkh8jf.js";
101
101
  import"./index-5e4e2hvv.js";
102
102
  import"./index-p0arc26j.js";
@@ -1653,7 +1653,47 @@ var MemoryConfigSchema = exports_external.object({
1653
1653
  scratch: 7
1654
1654
  }
1655
1655
  }),
1656
- hardDelete: exports_external.boolean().default(false)
1656
+ hardDelete: exports_external.boolean().default(false),
1657
+ embeddings: exports_external.object({
1658
+ enabled: exports_external.boolean().default(false),
1659
+ model: exports_external.string().default("Xenova/all-MiniLM-L6-v2"),
1660
+ dimension: exports_external.number().int().min(1).default(384),
1661
+ version: exports_external.string().optional(),
1662
+ cacheSize: exports_external.number().int().min(1).default(256)
1663
+ }).default({
1664
+ enabled: false,
1665
+ model: "Xenova/all-MiniLM-L6-v2",
1666
+ dimension: 384,
1667
+ cacheSize: 256
1668
+ }),
1669
+ retrieval: exports_external.object({
1670
+ rrfK: exports_external.number().int().min(1).default(60),
1671
+ weights: exports_external.object({
1672
+ lexical: exports_external.number().min(0).max(1).default(0.5),
1673
+ dense: exports_external.number().min(0).max(1).default(0.4),
1674
+ metadata: exports_external.number().min(0).max(1).default(0.1)
1675
+ }).default({
1676
+ lexical: 0.5,
1677
+ dense: 0.4,
1678
+ metadata: 0.1
1679
+ }),
1680
+ rerank: exports_external.object({
1681
+ enabled: exports_external.boolean().default(false),
1682
+ model: exports_external.string().optional()
1683
+ }).default({ enabled: false }),
1684
+ latencyBudgetMs: exports_external.number().int().min(0).default(250)
1685
+ }).default({
1686
+ rrfK: 60,
1687
+ weights: {
1688
+ lexical: 0.5,
1689
+ dense: 0.4,
1690
+ metadata: 0.1
1691
+ },
1692
+ rerank: {
1693
+ enabled: false
1694
+ },
1695
+ latencyBudgetMs: 250
1696
+ })
1657
1697
  });
1658
1698
  var CuratorConfigSchema = exports_external.object({
1659
1699
  enabled: exports_external.boolean().default(true),
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  stripKnownSwarmPrefix
4
- } from "./index-7hnwnw5g.js";
4
+ } from "./index-m0qshbr6.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn