opencode-swarm 7.99.7 → 7.100.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.
Files changed (30) hide show
  1. package/dist/cli/{config-doctor-1j77p1jy.js → config-doctor-g29kxhek.js} +2 -2
  2. package/dist/cli/{evidence-summary-service-ch74hb16.js → evidence-summary-service-vgw9vw3n.js} +1 -1
  3. package/dist/cli/{guardrail-explain-dkh5f7nf.js → guardrail-explain-z37rtfz4.js} +6 -6
  4. package/dist/cli/{guardrail-log-ya49kpwn.js → guardrail-log-ywajkn46.js} +3 -3
  5. package/dist/cli/{index-y3x3gvy6.js → index-3emh7rny.js} +3 -2
  6. package/dist/cli/{index-zyhd4mnn.js → index-4xqnktvr.js} +2 -2
  7. package/dist/cli/{index-h9ptj4b1.js → index-5bstvpct.js} +1 -1
  8. package/dist/cli/{index-sz3kw59p.js → index-bcr2a549.js} +7 -7
  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-wpnam1jh.js → index-qvdxzjqt.js} +1069 -316
  12. package/dist/cli/{index-0d3pmjf9.js → index-rpb763g8.js} +1 -1
  13. package/dist/cli/index.js +5 -5
  14. package/dist/cli/{schema-nz638xc3.js → schema-n7pd65qq.js} +1 -1
  15. package/dist/config/schema.d.ts +40 -0
  16. package/dist/git/branch.d.ts +16 -0
  17. package/dist/index.js +2253 -1440
  18. package/dist/lang/runtime.d.ts +3 -0
  19. package/dist/memory/config.d.ts +38 -0
  20. package/dist/memory/embeddings/cache.d.ts +25 -0
  21. package/dist/memory/embeddings/fusion.d.ts +56 -0
  22. package/dist/memory/embeddings/local-provider.d.ts +57 -0
  23. package/dist/memory/embeddings/reranker.d.ts +42 -0
  24. package/dist/memory/embeddings/types.d.ts +27 -0
  25. package/dist/memory/scoring.d.ts +1 -0
  26. package/dist/memory/sqlite-provider.d.ts +19 -0
  27. package/package.json +1 -1
  28. package/tests/fixtures/memory-recall/paraphrase-auth.json +64 -0
  29. package/tests/fixtures/memory-recall/paraphrase-concurrency.json +64 -0
  30. 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,7 +6,7 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-y3x3gvy6.js";
9
+ } from "./index-3emh7rny.js";
10
10
  import"./index-r8f89sm9.js";
11
11
  import"./index-9b7qp18e.js";
12
12
  import"./index-7ztmmqpt.js";
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-zyhd4mnn.js";
5
- import"./index-wpnam1jh.js";
6
- import"./index-xsswhy6k.js";
4
+ } from "./index-4xqnktvr.js";
5
+ import"./index-qvdxzjqt.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-y3x3gvy6.js";
10
+ import"./index-rpb763g8.js";
11
+ import"./index-m0qshbr6.js";
12
+ import"./index-3emh7rny.js";
13
13
  import"./index-adz3nk9b.js";
14
14
  import"./index-v4fcn4tr.js";
15
15
  import"./index-r8f89sm9.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";
@@ -458,6 +458,7 @@ async function resetToRemoteBranch(cwd, options) {
458
458
  };
459
459
  }
460
460
  }
461
+ var GITIGNORED_BUILD_ARTIFACTS = ["dist"];
461
462
  async function resetToMainAfterMerge(cwd, options) {
462
463
  const warnings = [];
463
464
  try {
@@ -595,9 +596,9 @@ async function resetToMainAfterMerge(cwd, options) {
595
596
  changesDiscarded = discardSucceeded;
596
597
  }
597
598
  try {
598
- _internals.gitExec(["clean", "-fdX"], cwd);
599
+ _internals.gitExec(["clean", "-fdX", "--", ...GITIGNORED_BUILD_ARTIFACTS], cwd);
599
600
  } catch {
600
- warnings.push("Could not clean untracked files");
601
+ warnings.push("Could not clean build artifacts");
601
602
  }
602
603
  let branchDeleted = false;
603
604
  if (switchedBranch && previousBranch !== defaultBranch) {
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-wpnam1jh.js";
15
+ } from "./index-qvdxzjqt.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";
@@ -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";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-zyhd4mnn.js";
4
+ } from "./index-4xqnktvr.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,18 +79,18 @@ import {
79
79
  handleWriteRetroCommand,
80
80
  normalizeSwarmCommandInput,
81
81
  resolveCommand
82
- } from "./index-wpnam1jh.js";
83
- import"./index-xsswhy6k.js";
82
+ } from "./index-qvdxzjqt.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-y3x3gvy6.js";
92
+ } from "./index-m0qshbr6.js";
93
+ import"./index-3emh7rny.js";
94
94
  import"./index-adz3nk9b.js";
95
95
  import"./index-v4fcn4tr.js";
96
96
  import"./index-r8f89sm9.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