opencode-swarm 7.154.2 → 7.155.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 (79) hide show
  1. package/dist/cli/{coder-settlement-xqs49g07.js → coder-settlement-2kdtysrg.js} +7 -7
  2. package/dist/cli/{config-doctor-69eebk90.js → config-doctor-s6p9aqfv.js} +2 -2
  3. package/dist/cli/{core-dyp14hcb.js → core-ev2ebc4v.js} +1 -1
  4. package/dist/cli/{curation-policy-jm9jsxtt.js → curation-policy-jabphe51.js} +4 -4
  5. package/dist/cli/{curator-he8n9z9n.js → curator-adp0dsv4.js} +28 -28
  6. package/dist/cli/{curator-drift-h57z6tm3.js → curator-drift-g6w4ga1q.js} +1 -1
  7. package/dist/cli/{curator-llm-factory-5tq9c4v5.js → curator-llm-factory-kd8v16jj.js} +28 -28
  8. package/dist/cli/{evidence-summary-service-05s5y8d6.js → evidence-summary-service-kpjpd86j.js} +10 -10
  9. package/dist/cli/{gate-evidence-3ptr9af3.js → gate-evidence-etbcms2v.js} +5 -5
  10. package/dist/cli/{guardrail-explain-tebk344k.js → guardrail-explain-wqb5h7kk.js} +29 -29
  11. package/dist/cli/{guardrail-log-x3gz3x17.js → guardrail-log-614g1pta.js} +3 -3
  12. package/dist/cli/{guardrail-reset-716pdyf5.js → guardrail-reset-0wdj53cp.js} +28 -28
  13. package/dist/cli/{hive-promoter-nvwpj2t9.js → hive-promoter-b1wv52fs.js} +28 -28
  14. package/dist/cli/{index-4xqa0sgz.js → index-0q8kywcf.js} +2 -2
  15. package/dist/cli/{index-8v69hfpt.js → index-26cvxrym.js} +3 -3
  16. package/dist/cli/{index-bxvkn0ye.js → index-2gfe61qp.js} +345 -221
  17. package/dist/cli/{index-57t97rtr.js → index-34wn2ztk.js} +5 -2
  18. package/dist/cli/{index-kemxyzc0.js → index-6bqqzfbe.js} +2 -2
  19. package/dist/cli/{index-dm9tc6qb.js → index-79qymsxf.js} +1 -1
  20. package/dist/cli/{index-r0dactw2.js → index-85p1850w.js} +1 -1
  21. package/dist/cli/{index-14bz2t7b.js → index-aqg7c1z9.js} +1 -1
  22. package/dist/cli/{index-xq2v52tt.js → index-c590qxts.js} +1 -1
  23. package/dist/cli/{index-fv9ddfta.js → index-c9nabqzd.js} +1 -1
  24. package/dist/cli/{index-nh4axsxc.js → index-caqe8x14.js} +2 -2
  25. package/dist/cli/{index-n0gqre56.js → index-ctsct3hy.js} +6 -6
  26. package/dist/cli/{index-4cgee5vh.js → index-dtn0pne5.js} +20 -1
  27. package/dist/cli/{index-ynvw5kxc.js → index-dw2q720x.js} +2 -2
  28. package/dist/cli/{index-xt6jx41g.js → index-e90g4dsw.js} +4 -4
  29. package/dist/cli/{index-9avdncr2.js → index-egnpzfe3.js} +5 -5
  30. package/dist/cli/{index-j6q3k628.js → index-ew6fykvv.js} +1 -1
  31. package/dist/cli/{index-6rns7b2m.js → index-fjcm6wwf.js} +2 -2
  32. package/dist/cli/{index-mnxtkt8s.js → index-ketfp4rv.js} +3 -3
  33. package/dist/cli/{index-f6qmar4k.js → index-kgdbtwfm.js} +5 -5
  34. package/dist/cli/{index-399e8aze.js → index-kyc2c7hq.js} +1 -1
  35. package/dist/cli/{index-07n87ctw.js → index-mm7ase9k.js} +1 -1
  36. package/dist/cli/{index-p7ey2w90.js → index-qj9jrjvr.js} +6 -6
  37. package/dist/cli/{index-v2ryvr8k.js → index-qzqpq75z.js} +30 -30
  38. package/dist/cli/{index-v9585wjc.js → index-rb4t72we.js} +2 -2
  39. package/dist/cli/{index-2w6vy9a9.js → index-spbxf9vn.js} +1 -1
  40. package/dist/cli/{index-6qwp46k0.js → index-t3xqpece.js} +3 -3
  41. package/dist/cli/{index-pj2nycpg.js → index-veajr5x7.js} +1 -1
  42. package/dist/cli/{index-vhhdj49x.js → index-wwv3cbv1.js} +8 -9
  43. package/dist/cli/{index-7tw116n6.js → index-x9tbe9v7.js} +2 -2
  44. package/dist/cli/{index-6rcx6vr6.js → index-xn23xnnk.js} +4 -4
  45. package/dist/cli/{index-dsqat5pg.js → index-zvp68qx6.js} +1 -1
  46. package/dist/cli/index.js +28 -28
  47. package/dist/cli/{knowledge-escalator-s0tye368.js → knowledge-escalator-z09aqvfe.js} +10 -10
  48. package/dist/cli/{knowledge-events-eyy9yf6b.js → knowledge-events-03f1rwm8.js} +8 -8
  49. package/dist/cli/{knowledge-link-rb11f06y.js → knowledge-link-4frk38w8.js} +3 -3
  50. package/dist/cli/{knowledge-store-zjq5mz2d.js → knowledge-store-sn28k13f.js} +4 -4
  51. package/dist/cli/{knowledge-validator-yw5qqqpd.js → knowledge-validator-rwrt3yja.js} +6 -6
  52. package/dist/cli/{pending-delegations-rdzjq3nw.js → pending-delegations-qe16vfrj.js} +2 -2
  53. package/dist/cli/{pr-subscriptions-2f5fne6z.js → pr-subscriptions-00evnffe.js} +3 -3
  54. package/dist/cli/{runner-yaqrj388.js → runner-k1rkbjm8.js} +4 -4
  55. package/dist/cli/{scan-cursor-8f0s883y.js → scan-cursor-h3mfzjc9.js} +5 -5
  56. package/dist/cli/{schema-2xw94dh3.js → schema-c37h5xw4.js} +1 -1
  57. package/dist/cli/{scope-persistence-tap2q94x.js → scope-persistence-35z42pj5.js} +5 -5
  58. package/dist/cli/{skill-generator-2xbfryqb.js → skill-generator-60px2mvb.js} +12 -12
  59. package/dist/cli/{worktree-collision-ownership-5gwey8ms.js → worktree-collision-ownership-2pc20ypq.js} +4 -4
  60. package/dist/cli/{worktree-isolation-xsy14t5a.js → worktree-isolation-w4yamc3b.js} +28 -28
  61. package/dist/commands/close.d.ts +2 -0
  62. package/dist/config/schema.d.ts +8 -0
  63. package/dist/hooks/final-context-accounting.d.ts +60 -0
  64. package/dist/hooks/index.d.ts +1 -0
  65. package/dist/hooks/knowledge-injector.d.ts +1 -1
  66. package/dist/hooks/repo-graph-injection.d.ts +40 -0
  67. package/dist/hooks/system-enhancer.d.ts +13 -0
  68. package/dist/hooks/utils.d.ts +11 -0
  69. package/dist/index.js +414 -389
  70. package/dist/memory/reflection-service.d.ts +8 -2
  71. package/dist/memory/schema.d.ts +4 -4
  72. package/dist/services/compaction-service.d.ts +9 -3
  73. package/dist/services/context-budget-service.d.ts +7 -3
  74. package/dist/services/injection-budget.d.ts +103 -26
  75. package/dist/state.d.ts +69 -0
  76. package/dist/summaries/summarizer.d.ts +34 -3
  77. package/dist/tools/repo-graph/indexed-storage.d.ts +136 -0
  78. package/dist/tools/repo-graph/query.d.ts +7 -0
  79. package/package.json +3 -1
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-bxvkn0ye.js";
17
+ } from "./index-2gfe61qp.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-xq2v52tt.js";
24
+ } from "./index-c590qxts.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-xt6jx41g.js";
5
+ } from "./index-e90g4dsw.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-n0gqre56.js";
15
+ } from "./index-ctsct3hy.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-p7ey2w90.js";
19
+ } from "./index-qj9jrjvr.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  atomicWriteFileAnyRoot,
30
30
  atomicWriteSwarmFile
31
- } from "./index-kemxyzc0.js";
31
+ } from "./index-6bqqzfbe.js";
32
32
  import {
33
33
  init_logger,
34
34
  log,
@@ -4,7 +4,7 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-dm9tc6qb.js";
7
+ } from "./index-79qymsxf.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
package/dist/cli/index.js CHANGED
@@ -11,53 +11,53 @@ import {
11
11
  readCachePackageVersion,
12
12
  resolveCommand,
13
13
  safeRealpathSync
14
- } from "./index-bxvkn0ye.js";
15
- import"./index-399e8aze.js";
16
- import"./index-xq2v52tt.js";
17
- import"./index-07n87ctw.js";
18
- import"./index-vhhdj49x.js";
19
- import"./index-fv9ddfta.js";
14
+ } from "./index-2gfe61qp.js";
15
+ import"./index-kyc2c7hq.js";
16
+ import"./index-c590qxts.js";
17
+ import"./index-mm7ase9k.js";
18
+ import"./index-wwv3cbv1.js";
19
+ import"./index-c9nabqzd.js";
20
20
  import"./index-134d35c1.js";
21
21
  import"./index-nj6rmyeh.js";
22
22
  import"./index-y8552snf.js";
23
- import"./index-f6qmar4k.js";
24
- import"./index-v9585wjc.js";
23
+ import"./index-kgdbtwfm.js";
24
+ import"./index-rb4t72we.js";
25
25
  import"./index-70ha9e09.js";
26
26
  import"./index-c8s9a3zh.js";
27
27
  import"./index-9ss2m4rs.js";
28
- import"./index-6rns7b2m.js";
28
+ import"./index-fjcm6wwf.js";
29
29
  import"./index-zsrtt42s.js";
30
- import"./index-9avdncr2.js";
31
- import"./index-4xqa0sgz.js";
32
- import"./index-6rcx6vr6.js";
33
- import"./index-xt6jx41g.js";
34
- import"./index-14bz2t7b.js";
30
+ import"./index-egnpzfe3.js";
31
+ import"./index-0q8kywcf.js";
32
+ import"./index-xn23xnnk.js";
33
+ import"./index-e90g4dsw.js";
34
+ import"./index-aqg7c1z9.js";
35
35
  import"./index-rtry5xyf.js";
36
- import"./index-8v69hfpt.js";
37
- import"./index-2w6vy9a9.js";
38
- import"./index-nh4axsxc.js";
36
+ import"./index-26cvxrym.js";
37
+ import"./index-spbxf9vn.js";
38
+ import"./index-caqe8x14.js";
39
39
  import"./index-ddszzne4.js";
40
40
  import"./index-vnn7qq8c.js";
41
- import"./index-6qwp46k0.js";
42
- import"./index-dsqat5pg.js";
41
+ import"./index-t3xqpece.js";
42
+ import"./index-zvp68qx6.js";
43
43
  import"./index-xdy28ngt.js";
44
44
  import"./index-556ja8an.js";
45
45
  import"./index-4fwbbad3.js";
46
46
  import"./index-b43rt5ph.js";
47
47
  import"./index-q7sjgr1y.js";
48
- import"./index-n0gqre56.js";
49
- import"./index-p7ey2w90.js";
50
- import"./index-ynvw5kxc.js";
48
+ import"./index-ctsct3hy.js";
49
+ import"./index-qj9jrjvr.js";
50
+ import"./index-dw2q720x.js";
51
51
  import"./index-gprxjmm7.js";
52
52
  import"./index-n832052r.js";
53
- import"./index-4cgee5vh.js";
53
+ import"./index-dtn0pne5.js";
54
54
  import"./index-z6xqpmqg.js";
55
55
  import"./index-r3mvsbtq.js";
56
- import"./index-dm9tc6qb.js";
56
+ import"./index-79qymsxf.js";
57
57
  import {
58
58
  init_package,
59
59
  package_default
60
- } from "./index-57t97rtr.js";
60
+ } from "./index-34wn2ztk.js";
61
61
  import {
62
62
  DEFAULT_AGENT_CONFIGS,
63
63
  init_constants
@@ -66,10 +66,10 @@ import"./index-zjygnfay.js";
66
66
  import"./index-9e6fdz2h.js";
67
67
  import"./index-4rhhvd1a.js";
68
68
  import"./index-ae75rja9.js";
69
- import"./index-r0dactw2.js";
70
- import"./index-j6q3k628.js";
69
+ import"./index-85p1850w.js";
70
+ import"./index-ew6fykvv.js";
71
71
  import"./index-bk5tah7q.js";
72
- import"./index-kemxyzc0.js";
72
+ import"./index-6bqqzfbe.js";
73
73
  import"./index-xagq35tf.js";
74
74
  import"./index-ed5ykebp.js";
75
75
  import"./index-h1g8w4v0.js";
@@ -9,26 +9,26 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-f6qmar4k.js";
13
- import"./index-n0gqre56.js";
14
- import"./index-p7ey2w90.js";
15
- import"./index-ynvw5kxc.js";
12
+ } from "./index-kgdbtwfm.js";
13
+ import"./index-ctsct3hy.js";
14
+ import"./index-qj9jrjvr.js";
15
+ import"./index-dw2q720x.js";
16
16
  import"./index-gprxjmm7.js";
17
17
  import"./index-n832052r.js";
18
- import"./index-4cgee5vh.js";
18
+ import"./index-dtn0pne5.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-r3mvsbtq.js";
21
- import"./index-dm9tc6qb.js";
22
- import"./index-57t97rtr.js";
21
+ import"./index-79qymsxf.js";
22
+ import"./index-34wn2ztk.js";
23
23
  import"./index-myt57pht.js";
24
24
  import"./index-zjygnfay.js";
25
25
  import"./index-9e6fdz2h.js";
26
26
  import"./index-4rhhvd1a.js";
27
27
  import"./index-ae75rja9.js";
28
- import"./index-r0dactw2.js";
29
- import"./index-j6q3k628.js";
28
+ import"./index-85p1850w.js";
29
+ import"./index-ew6fykvv.js";
30
30
  import"./index-bk5tah7q.js";
31
- import"./index-kemxyzc0.js";
31
+ import"./index-6bqqzfbe.js";
32
32
  import"./index-xagq35tf.js";
33
33
  import"./index-ed5ykebp.js";
34
34
  import"./index-h1g8w4v0.js";
@@ -29,24 +29,24 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-p7ey2w90.js";
33
- import"./index-ynvw5kxc.js";
32
+ } from "./index-qj9jrjvr.js";
33
+ import"./index-dw2q720x.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-4cgee5vh.js";
36
+ import"./index-dtn0pne5.js";
37
37
  import"./index-z6xqpmqg.js";
38
38
  import"./index-r3mvsbtq.js";
39
- import"./index-dm9tc6qb.js";
40
- import"./index-57t97rtr.js";
39
+ import"./index-79qymsxf.js";
40
+ import"./index-34wn2ztk.js";
41
41
  import"./index-myt57pht.js";
42
42
  import"./index-zjygnfay.js";
43
43
  import"./index-9e6fdz2h.js";
44
44
  import"./index-4rhhvd1a.js";
45
45
  import"./index-ae75rja9.js";
46
- import"./index-r0dactw2.js";
47
- import"./index-j6q3k628.js";
46
+ import"./index-85p1850w.js";
47
+ import"./index-ew6fykvv.js";
48
48
  import"./index-bk5tah7q.js";
49
- import"./index-kemxyzc0.js";
49
+ import"./index-6bqqzfbe.js";
50
50
  import"./index-xagq35tf.js";
51
51
  import"./index-ed5ykebp.js";
52
52
  import"./index-h1g8w4v0.js";
@@ -12,9 +12,9 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-r0dactw2.js";
16
- import"./index-j6q3k628.js";
17
- import"./index-kemxyzc0.js";
15
+ } from "./index-85p1850w.js";
16
+ import"./index-ew6fykvv.js";
17
+ import"./index-6bqqzfbe.js";
18
18
  import"./index-xagq35tf.js";
19
19
  import"./index-ed5ykebp.js";
20
20
  import"./index-h1g8w4v0.js";
@@ -42,14 +42,14 @@ import {
42
42
  transactKnowledge,
43
43
  transactKnowledgeWithCas,
44
44
  wordBigrams
45
- } from "./index-n0gqre56.js";
45
+ } from "./index-ctsct3hy.js";
46
46
  import {
47
47
  resolveHiveDataDir
48
48
  } from "./index-ae75rja9.js";
49
- import"./index-r0dactw2.js";
50
- import"./index-j6q3k628.js";
49
+ import"./index-85p1850w.js";
50
+ import"./index-ew6fykvv.js";
51
51
  import"./index-bk5tah7q.js";
52
- import"./index-kemxyzc0.js";
52
+ import"./index-6bqqzfbe.js";
53
53
  import"./index-xagq35tf.js";
54
54
  import"./index-ed5ykebp.js";
55
55
  import"./index-h1g8w4v0.js";
@@ -23,15 +23,15 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-xt6jx41g.js";
27
- import"./index-14bz2t7b.js";
26
+ } from "./index-e90g4dsw.js";
27
+ import"./index-aqg7c1z9.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-n0gqre56.js";
29
+ import"./index-ctsct3hy.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-r0dactw2.js";
32
- import"./index-j6q3k628.js";
31
+ import"./index-85p1850w.js";
32
+ import"./index-ew6fykvv.js";
33
33
  import"./index-bk5tah7q.js";
34
- import"./index-kemxyzc0.js";
34
+ import"./index-6bqqzfbe.js";
35
35
  import"./index-xagq35tf.js";
36
36
  import"./index-ed5ykebp.js";
37
37
  import"./index-h1g8w4v0.js";
@@ -64,9 +64,9 @@ import {
64
64
  sweepStaleDelegations,
65
65
  updateCoderSettlement,
66
66
  writeDelegationFallback
67
- } from "./index-nh4axsxc.js";
67
+ } from "./index-caqe8x14.js";
68
68
  import"./index-ddszzne4.js";
69
- import"./index-4cgee5vh.js";
69
+ import"./index-dtn0pne5.js";
70
70
  import"./index-z6xqpmqg.js";
71
71
  import"./index-r3mvsbtq.js";
72
72
  import"./index-zjygnfay.js";
@@ -14,12 +14,12 @@ import {
14
14
  sweepStale,
15
15
  unsubscribe,
16
16
  updateSnapshot
17
- } from "./index-6rns7b2m.js";
18
- import"./index-4cgee5vh.js";
17
+ } from "./index-fjcm6wwf.js";
18
+ import"./index-dtn0pne5.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-r3mvsbtq.js";
21
21
  import"./index-zjygnfay.js";
22
- import"./index-kemxyzc0.js";
22
+ import"./index-6bqqzfbe.js";
23
23
  import"./index-xagq35tf.js";
24
24
  import"./index-ed5ykebp.js";
25
25
  import"./index-h1g8w4v0.js";
@@ -3,12 +3,12 @@ import {
3
3
  _internals,
4
4
  createModelEvaluationExecutor,
5
5
  runEvaluation
6
- } from "./index-399e8aze.js";
7
- import"./index-fv9ddfta.js";
6
+ } from "./index-kyc2c7hq.js";
7
+ import"./index-c9nabqzd.js";
8
8
  import"./index-y8552snf.js";
9
9
  import"./index-r3mvsbtq.js";
10
- import"./index-j6q3k628.js";
11
- import"./index-kemxyzc0.js";
10
+ import"./index-ew6fykvv.js";
11
+ import"./index-6bqqzfbe.js";
12
12
  import"./index-xagq35tf.js";
13
13
  import"./index-ed5ykebp.js";
14
14
  import"./index-h1g8w4v0.js";
@@ -4,15 +4,15 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-v9585wjc.js";
8
- import"./index-n0gqre56.js";
7
+ } from "./index-rb4t72we.js";
8
+ import"./index-ctsct3hy.js";
9
9
  import"./index-9e6fdz2h.js";
10
10
  import"./index-4rhhvd1a.js";
11
11
  import"./index-ae75rja9.js";
12
- import"./index-r0dactw2.js";
13
- import"./index-j6q3k628.js";
12
+ import"./index-85p1850w.js";
13
+ import"./index-ew6fykvv.js";
14
14
  import"./index-bk5tah7q.js";
15
- import"./index-kemxyzc0.js";
15
+ import"./index-6bqqzfbe.js";
16
16
  import"./index-xagq35tf.js";
17
17
  import"./index-ed5ykebp.js";
18
18
  import"./index-h1g8w4v0.js";
@@ -99,7 +99,7 @@ import {
99
99
  resolveGeneratedAgentRole,
100
100
  resolveGuardrailsConfig,
101
101
  stripKnownSwarmPrefix
102
- } from "./index-57t97rtr.js";
102
+ } from "./index-34wn2ztk.js";
103
103
  import"./index-myt57pht.js";
104
104
  import"./index-zjygnfay.js";
105
105
  import"./index-bk5tah7q.js";
@@ -23,18 +23,18 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-6qwp46k0.js";
27
- import"./index-dsqat5pg.js";
26
+ } from "./index-t3xqpece.js";
27
+ import"./index-zvp68qx6.js";
28
28
  import"./index-xdy28ngt.js";
29
29
  import"./index-556ja8an.js";
30
- import"./index-dm9tc6qb.js";
31
- import"./index-57t97rtr.js";
30
+ import"./index-79qymsxf.js";
31
+ import"./index-34wn2ztk.js";
32
32
  import"./index-myt57pht.js";
33
33
  import"./index-zjygnfay.js";
34
34
  import"./index-9e6fdz2h.js";
35
35
  import"./index-4rhhvd1a.js";
36
36
  import"./index-bk5tah7q.js";
37
- import"./index-kemxyzc0.js";
37
+ import"./index-6bqqzfbe.js";
38
38
  import"./index-xagq35tf.js";
39
39
  import"./index-ed5ykebp.js";
40
40
  import"./index-h1g8w4v0.js";
@@ -33,30 +33,30 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-6rcx6vr6.js";
37
- import"./index-xt6jx41g.js";
38
- import"./index-14bz2t7b.js";
36
+ } from "./index-xn23xnnk.js";
37
+ import"./index-e90g4dsw.js";
38
+ import"./index-aqg7c1z9.js";
39
39
  import"./index-rtry5xyf.js";
40
40
  import"./index-q7sjgr1y.js";
41
- import"./index-n0gqre56.js";
42
- import"./index-p7ey2w90.js";
43
- import"./index-ynvw5kxc.js";
41
+ import"./index-ctsct3hy.js";
42
+ import"./index-qj9jrjvr.js";
43
+ import"./index-dw2q720x.js";
44
44
  import"./index-gprxjmm7.js";
45
45
  import"./index-n832052r.js";
46
- import"./index-4cgee5vh.js";
46
+ import"./index-dtn0pne5.js";
47
47
  import"./index-z6xqpmqg.js";
48
48
  import"./index-r3mvsbtq.js";
49
- import"./index-dm9tc6qb.js";
50
- import"./index-57t97rtr.js";
49
+ import"./index-79qymsxf.js";
50
+ import"./index-34wn2ztk.js";
51
51
  import"./index-myt57pht.js";
52
52
  import"./index-zjygnfay.js";
53
53
  import"./index-9e6fdz2h.js";
54
54
  import"./index-4rhhvd1a.js";
55
55
  import"./index-ae75rja9.js";
56
- import"./index-r0dactw2.js";
57
- import"./index-j6q3k628.js";
56
+ import"./index-85p1850w.js";
57
+ import"./index-ew6fykvv.js";
58
58
  import"./index-bk5tah7q.js";
59
- import"./index-kemxyzc0.js";
59
+ import"./index-6bqqzfbe.js";
60
60
  import"./index-xagq35tf.js";
61
61
  import"./index-ed5ykebp.js";
62
62
  import"./index-h1g8w4v0.js";
@@ -6,13 +6,13 @@ import {
6
6
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
7
7
  removeWorktreeProvisioningOwner,
8
8
  scanWorktreeProvisioningOwnersForRecovery
9
- } from "./index-4xqa0sgz.js";
9
+ } from "./index-0q8kywcf.js";
10
10
  import {
11
11
  scanDelegationFallbacksForRecovery,
12
12
  scanDelegationsForRecovery
13
- } from "./index-nh4axsxc.js";
13
+ } from "./index-caqe8x14.js";
14
14
  import"./index-ddszzne4.js";
15
- import"./index-4cgee5vh.js";
15
+ import"./index-dtn0pne5.js";
16
16
  import"./index-z6xqpmqg.js";
17
17
  import {
18
18
  bunSpawn
@@ -23,7 +23,7 @@ import {
23
23
  resolveGitExecutable
24
24
  } from "./index-9e6fdz2h.js";
25
25
  import"./index-4rhhvd1a.js";
26
- import"./index-kemxyzc0.js";
26
+ import"./index-6bqqzfbe.js";
27
27
  import"./index-xagq35tf.js";
28
28
  import"./index-ed5ykebp.js";
29
29
  import"./index-h1g8w4v0.js";
@@ -21,61 +21,61 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-bxvkn0ye.js";
25
- import"./index-399e8aze.js";
26
- import"./index-xq2v52tt.js";
27
- import"./index-07n87ctw.js";
28
- import"./index-vhhdj49x.js";
29
- import"./index-fv9ddfta.js";
24
+ } from "./index-2gfe61qp.js";
25
+ import"./index-kyc2c7hq.js";
26
+ import"./index-c590qxts.js";
27
+ import"./index-mm7ase9k.js";
28
+ import"./index-wwv3cbv1.js";
29
+ import"./index-c9nabqzd.js";
30
30
  import"./index-134d35c1.js";
31
31
  import"./index-nj6rmyeh.js";
32
32
  import"./index-y8552snf.js";
33
- import"./index-f6qmar4k.js";
34
- import"./index-v9585wjc.js";
33
+ import"./index-kgdbtwfm.js";
34
+ import"./index-rb4t72we.js";
35
35
  import"./index-70ha9e09.js";
36
36
  import"./index-c8s9a3zh.js";
37
37
  import"./index-9ss2m4rs.js";
38
- import"./index-6rns7b2m.js";
38
+ import"./index-fjcm6wwf.js";
39
39
  import"./index-zsrtt42s.js";
40
- import"./index-9avdncr2.js";
41
- import"./index-4xqa0sgz.js";
42
- import"./index-6rcx6vr6.js";
43
- import"./index-xt6jx41g.js";
44
- import"./index-14bz2t7b.js";
40
+ import"./index-egnpzfe3.js";
41
+ import"./index-0q8kywcf.js";
42
+ import"./index-xn23xnnk.js";
43
+ import"./index-e90g4dsw.js";
44
+ import"./index-aqg7c1z9.js";
45
45
  import"./index-rtry5xyf.js";
46
- import"./index-8v69hfpt.js";
47
- import"./index-2w6vy9a9.js";
48
- import"./index-nh4axsxc.js";
46
+ import"./index-26cvxrym.js";
47
+ import"./index-spbxf9vn.js";
48
+ import"./index-caqe8x14.js";
49
49
  import"./index-ddszzne4.js";
50
50
  import"./index-vnn7qq8c.js";
51
- import"./index-6qwp46k0.js";
52
- import"./index-dsqat5pg.js";
51
+ import"./index-t3xqpece.js";
52
+ import"./index-zvp68qx6.js";
53
53
  import"./index-xdy28ngt.js";
54
54
  import"./index-556ja8an.js";
55
55
  import"./index-4fwbbad3.js";
56
56
  import"./index-b43rt5ph.js";
57
57
  import"./index-q7sjgr1y.js";
58
- import"./index-n0gqre56.js";
59
- import"./index-p7ey2w90.js";
58
+ import"./index-ctsct3hy.js";
59
+ import"./index-qj9jrjvr.js";
60
60
  import {
61
61
  resolveWorktreeIsolationConfig
62
- } from "./index-ynvw5kxc.js";
62
+ } from "./index-dw2q720x.js";
63
63
  import"./index-gprxjmm7.js";
64
64
  import"./index-n832052r.js";
65
- import"./index-4cgee5vh.js";
65
+ import"./index-dtn0pne5.js";
66
66
  import"./index-z6xqpmqg.js";
67
67
  import"./index-r3mvsbtq.js";
68
- import"./index-dm9tc6qb.js";
69
- import"./index-57t97rtr.js";
68
+ import"./index-79qymsxf.js";
69
+ import"./index-34wn2ztk.js";
70
70
  import"./index-myt57pht.js";
71
71
  import"./index-zjygnfay.js";
72
72
  import"./index-9e6fdz2h.js";
73
73
  import"./index-4rhhvd1a.js";
74
74
  import"./index-ae75rja9.js";
75
- import"./index-r0dactw2.js";
76
- import"./index-j6q3k628.js";
75
+ import"./index-85p1850w.js";
76
+ import"./index-ew6fykvv.js";
77
77
  import"./index-bk5tah7q.js";
78
- import"./index-kemxyzc0.js";
78
+ import"./index-6bqqzfbe.js";
79
79
  import"./index-xagq35tf.js";
80
80
  import"./index-ed5ykebp.js";
81
81
  import"./index-h1g8w4v0.js";
@@ -8,6 +8,7 @@ import { runCuratorPostMortem } from '../hooks/curator-postmortem';
8
8
  import { checkHivePromotions } from '../hooks/hive-promoter';
9
9
  import { curateAndStoreSwarm } from '../hooks/knowledge-curator';
10
10
  import { reconcilePhaseClose } from '../hooks/knowledge-receipt-ledger.js';
11
+ import { closeRepoMemory } from '../tools/repo-graph/indexed-storage';
11
12
  /** Narrow seam for receipt/plan ordering tests. */
12
13
  export declare const closeReceiptLifecycleInternals: {
13
14
  recordPhaseCloseIntent: (directory: string, phase: string, sessionId?: string, taskId?: string) => Promise<import("../hooks/knowledge-receipt-ledger.js").ReceiptLedgerResult<{
@@ -274,6 +275,7 @@ declare function acquireFinalizeLock(directory: string): Promise<{
274
275
  */
275
276
  declare function detectFullAuto(directory: string, sessionID: string): boolean;
276
277
  export declare const _internals: {
278
+ closeRepoMemory: typeof closeRepoMemory;
277
279
  ACTIVE_STATE_DIRS_TO_CLEAN: string[];
278
280
  countSessionKnowledgeEntries: typeof countSessionKnowledgeEntries;
279
281
  CLOSE_SKILL_REVIEW_TIMEOUT_MS: number;
@@ -630,6 +630,10 @@ export declare const RepoGraphConfigSchema: z.ZodObject<{
630
630
  walk_budget_ms: z.ZodDefault<z.ZodNumber>;
631
631
  max_files: z.ZodDefault<z.ZodNumber>;
632
632
  exclude_dirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
633
+ storage: z.ZodDefault<z.ZodEnum<{
634
+ json: "json";
635
+ indexed: "indexed";
636
+ }>>;
633
637
  }, z.core.$strip>;
634
638
  export type RepoGraphConfig = z.infer<typeof RepoGraphConfigSchema>;
635
639
  export declare const CheckpointConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
@@ -2089,6 +2093,10 @@ export declare const PluginConfigSchema: z.ZodObject<{
2089
2093
  walk_budget_ms: z.ZodDefault<z.ZodNumber>;
2090
2094
  max_files: z.ZodDefault<z.ZodNumber>;
2091
2095
  exclude_dirs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2096
+ storage: z.ZodDefault<z.ZodEnum<{
2097
+ json: "json";
2098
+ indexed: "indexed";
2099
+ }>>;
2092
2100
  }, z.core.$strip>>;
2093
2101
  evidence: z.ZodOptional<z.ZodObject<{
2094
2102
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Final context accounting (#2107 §3).
3
+ *
4
+ * ONE final accounting step, run after every injector has contributed and after
5
+ * `consolidateSystemMessagesInPlace` — the last structure-mutating handler in
6
+ * the `experimental.chat.messages.transform` chain. It measures the actual
7
+ * final model-visible surface exactly once:
8
+ *
9
+ * - `output.messages` (post-consolidation; carries every messages-chain
10
+ * injection: knowledge, memory recall, the advisory block) via
11
+ * `computeContextUsage`, which prefers provider-reported token usage when the
12
+ * latest assistant message carries it;
13
+ * - PLUS the system chain's `output.system` content (system-enhancer banners,
14
+ * context capsules, the swarm-command banner). Those bytes live in a separate
15
+ * output structure the messages chain never sees and consolidation never
16
+ * merges (docs/context-map.md; engineering-invariants § v6.85.1), so they are
17
+ * added from the per-turn injection ledger's `surface: 'system'` emissions.
18
+ * Messages-surface producers are attribution-only — their bytes are already
19
+ * inside the measurement and are NEVER added again.
20
+ *
21
+ * The limit is resolved through the exact same ladder physical pruning uses
22
+ * (`resolveModelLimit` with `context_budget.model_limits` overrides and the
23
+ * live `model.limit.context` relayed from the system.transform hook), so the
24
+ * warning/critical thresholds here are the same thresholds, against the same
25
+ * denominator, that `context-budget.ts` enforces. A 128K–1M-window model can
26
+ * no longer receive a warning computed against a phantom denominator.
27
+ *
28
+ * The warning this step emits is bounded, advisory-only (it never removes
29
+ * content and says so), suppressed to once per session per band, and its own
30
+ * token cost is included in the recorded total AND recorded as a ledger
31
+ * emission — it cannot escape accounting. Fail-open by design: an accounting
32
+ * failure must never break request composition. The step is registered
33
+ * inside the plugin's single composeHandlers chain for messages.transform
34
+ * (one handler per hook type is all the host allows), which wraps it in
35
+ * safeHook; the inner try/catch below is the intentional first-line
36
+ * fail-open and logs the failure itself, so the outer wrapper is only a
37
+ * redundant backstop, never the primary swallowing layer.
38
+ */
39
+ import type { PluginConfig } from '../config/index.js';
40
+ import type { MessageWithParts } from './knowledge-types.js';
41
+ interface FinalAccountingOptions {
42
+ config: PluginConfig;
43
+ /** Same seam createContextBudgetHandler uses: resolves the
44
+ * configured target model for an agent name. */
45
+ resolveAgentModelFn?: (agentName: string) => string | undefined;
46
+ }
47
+ /**
48
+ * One-shot-per-band warning suppression (#2107 §3), backed by the
49
+ * session-keyed `finalAccountingWarningBandsBySession` map in state.ts so
50
+ * `resetSwarmState` covers it (AGENTS.md invariant 8). Deliberately NOT
51
+ * reset on compaction: "once per session per band" mirrors the
52
+ * established contextPressureWarningSent one-shot pattern; the compaction
53
+ * tiers have their own per-session hysteresis.
54
+ */
55
+ /** Test seam: clear warning-suppression state. */
56
+ export declare function _resetFinalAccountingState(): void;
57
+ export declare function createFinalContextAccountingStep(options: FinalAccountingOptions): (input: unknown, output: {
58
+ messages?: MessageWithParts[];
59
+ }) => Promise<void>;
60
+ export {};