opencode-swarm 7.105.0 → 7.106.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 (36) hide show
  1. package/dist/cli/{config-doctor-4dhkq5qe.js → config-doctor-cntnpyvj.js} +2 -2
  2. package/dist/cli/{guardrail-explain-9br76zh5.js → guardrail-explain-fvjc90wa.js} +5 -5
  3. package/dist/cli/{guardrail-log-peftzya3.js → guardrail-log-fsc85hwa.js} +3 -3
  4. package/dist/cli/{index-5qzchq7p.js → index-2560cctg.js} +27 -0
  5. package/dist/cli/{index-wg8ars51.js → index-7dtekwvd.js} +2 -2
  6. package/dist/cli/{index-hxnnp4qj.js → index-esg1554h.js} +1 -1
  7. package/dist/cli/{index-qnapygnz.js → index-f4yjypa4.js} +21193 -21085
  8. package/dist/cli/{index-50qqqbrb.js → index-fxtrk7y8.js} +1 -1
  9. package/dist/cli/{index-25bc7j87.js → index-w8dzxnx4.js} +1 -1
  10. package/dist/cli/{index-8mj10cds.js → index-z4t3w4xf.js} +6 -6
  11. package/dist/cli/index.js +4 -4
  12. package/dist/cli/{schema-3a02876y.js → schema-vw2ffhe9.js} +1 -1
  13. package/dist/commands/close.d.ts +2 -0
  14. package/dist/config/schema.d.ts +28 -0
  15. package/dist/index.js +532 -504
  16. package/dist/memory/config.d.ts +48 -0
  17. package/dist/memory/finalize-reward-sweep.d.ts +132 -0
  18. package/dist/memory/gateway.d.ts +0 -1
  19. package/dist/memory/index.d.ts +1 -2
  20. package/dist/memory/injector.d.ts +11 -0
  21. package/dist/memory/local-jsonl-provider.d.ts +3 -1
  22. package/dist/memory/maintenance.d.ts +16 -4
  23. package/dist/memory/provider.d.ts +42 -47
  24. package/dist/memory/q-learning.d.ts +62 -0
  25. package/dist/memory/reward-capture.d.ts +119 -0
  26. package/dist/memory/schema.d.ts +9 -9
  27. package/dist/memory/scoring.d.ts +60 -5
  28. package/dist/memory/sqlite-provider.d.ts +5 -53
  29. package/dist/memory/types.d.ts +25 -5
  30. package/dist/state.d.ts +9 -2
  31. package/dist/tools/convene-council.d.ts +0 -2
  32. package/dist/tools/submit-phase-council-verdicts.d.ts +0 -1
  33. package/dist/tools/swarm-memory-recall.d.ts +2 -0
  34. package/dist/tools/write-final-council-evidence.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/dist/memory/reward.d.ts +0 -39
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-hxnnp4qj.js";
16
- import"./index-5qzchq7p.js";
15
+ } from "./index-esg1554h.js";
16
+ import"./index-2560cctg.js";
17
17
  import"./index-5e4e2hvv.js";
18
18
  import"./index-p0arc26j.js";
19
19
  import"./index-zgwm4ryv.js";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-wg8ars51.js";
5
- import"./index-qnapygnz.js";
6
- import"./index-50qqqbrb.js";
4
+ } from "./index-7dtekwvd.js";
5
+ import"./index-f4yjypa4.js";
6
+ import"./index-fxtrk7y8.js";
7
7
  import"./index-ydgy7vg5.js";
8
8
  import"./index-vwyjkzgs.js";
9
9
  import"./index-f7nma02k.js";
10
- import"./index-hxnnp4qj.js";
11
- import"./index-5qzchq7p.js";
10
+ import"./index-esg1554h.js";
11
+ import"./index-2560cctg.js";
12
12
  import"./index-k2rmw9sz.js";
13
13
  import"./index-8w4d325g.js";
14
14
  import"./index-v4fcn4tr.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-25bc7j87.js";
5
- import"./index-50qqqbrb.js";
6
- import"./index-5qzchq7p.js";
4
+ } from "./index-w8dzxnx4.js";
5
+ import"./index-fxtrk7y8.js";
6
+ import"./index-2560cctg.js";
7
7
  import"./index-5e4e2hvv.js";
8
8
  import"./index-p0arc26j.js";
9
9
  import"./index-zgwm4ryv.js";
@@ -1631,6 +1631,33 @@ var MemoryConfigSchema = exports_external.object({
1631
1631
  threshold: 0.2
1632
1632
  }
1633
1633
  }),
1634
+ qLearning: exports_external.object({
1635
+ learningRate: exports_external.number().min(0).max(1).default(0.1),
1636
+ qValueBoostWeight: exports_external.number().min(0).max(1).default(0.1),
1637
+ suppressionThreshold: exports_external.number().min(0).max(1).default(0.15),
1638
+ promotionThreshold: exports_external.number().min(0).max(1).default(0.85),
1639
+ promotionMinRetrievals: exports_external.number().int().min(0).max(1e5).default(5),
1640
+ propagationFraction: exports_external.number().min(0).max(1).default(0.3),
1641
+ propagationFanoutCap: exports_external.number().int().min(0).max(1e4).default(20),
1642
+ propagationWindowDays: exports_external.number().int().min(0).max(3650).default(30),
1643
+ propagationRelatednessThreshold: exports_external.number().min(0).max(1).default(0.7),
1644
+ explorationRate: exports_external.number().min(0).max(1).default(0.05),
1645
+ verdictPayloadCapBytes: exports_external.number().int().min(0).max(1048576).default(8192),
1646
+ initialQValue: exports_external.number().min(0).max(1).default(0.5)
1647
+ }).default({
1648
+ learningRate: 0.1,
1649
+ qValueBoostWeight: 0.1,
1650
+ suppressionThreshold: 0.15,
1651
+ promotionThreshold: 0.85,
1652
+ promotionMinRetrievals: 5,
1653
+ propagationFraction: 0.3,
1654
+ propagationFanoutCap: 20,
1655
+ propagationWindowDays: 30,
1656
+ propagationRelatednessThreshold: 0.7,
1657
+ explorationRate: 0.05,
1658
+ verdictPayloadCapBytes: 8192,
1659
+ initialQValue: 0.5
1660
+ }),
1634
1661
  consolidation: exports_external.object({
1635
1662
  enabled: exports_external.boolean().default(false),
1636
1663
  maxClustersPerPass: exports_external.number().int().min(1).max(100).default(10),
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-qnapygnz.js";
15
+ } from "./index-f4yjypa4.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-50qqqbrb.js";
22
+ } from "./index-fxtrk7y8.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  PluginConfigSchema,
5
5
  stripKnownSwarmPrefix
6
- } from "./index-5qzchq7p.js";
6
+ } from "./index-2560cctg.js";
7
7
  import {
8
8
  log
9
9
  } from "./index-zgwm4ryv.js";