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
@@ -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";
package/dist/cli/index.js CHANGED
@@ -7,16 +7,16 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-wpnam1jh.js";
11
- import"./index-xsswhy6k.js";
10
+ } from "./index-qvdxzjqt.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-y3x3gvy6.js";
18
+ } from "./index-m0qshbr6.js";
19
+ import"./index-3emh7rny.js";
20
20
  import"./index-adz3nk9b.js";
21
21
  import"./index-v4fcn4tr.js";
22
22
  import"./index-r8f89sm9.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>;
@@ -119,6 +119,22 @@ export interface ResetToMainAfterMergeResult {
119
119
  changesDiscarded: boolean;
120
120
  warnings: string[];
121
121
  }
122
+ /**
123
+ * Gitignored build-artifact paths the post-merge alignment (`/swarm finalize`) is
124
+ * allowed to delete. Scoped to an explicit allowlist on purpose: `git clean -fdX`
125
+ * removes EVERY gitignored path under cwd — which in this repo also includes
126
+ * `.swarm/` (the cumulative runtime knowledge store), the gitignored
127
+ * `.claude/issue-traces/` directory (investigation traces), the gitignored files
128
+ * inside `.opencode/` (its `node_modules/`, `package.json`, lockfiles — via a
129
+ * nested `.opencode/.gitignore`), and root `node_modules/` (dependencies). A
130
+ * blanket `git clean -fdX` therefore silently destroyed `.swarm/knowledge.jsonl` —
131
+ * the exact file the finalize clean stage (`runCleanStage`) deliberately preserves.
132
+ * Restricting removal to this allowlist clears stale build output across the
133
+ * reset while leaving runtime/durable state and dependencies untouched.
134
+ * `dist/` is the repo's only committed build output (see the `clean`/`build`
135
+ * scripts in package.json); extend this list only with regenerable build output.
136
+ */
137
+ export declare const GITIGNORED_BUILD_ARTIFACTS: readonly string[];
122
138
  /**
123
139
  * Aggressive git reset for post-merge cleanup.
124
140
  * Handles the common scenario: feature branch PR merged, local has uncommitted artifacts.