@remnic/core 9.62.2 → 9.63.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 (184) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-admin-ops-surface.js +13 -13
  3. package/dist/access-authorization-probe.d.ts +1 -1
  4. package/dist/access-authorization-probe.js +14 -14
  5. package/dist/access-boundary.d.ts +1 -1
  6. package/dist/access-boundary.js +13 -13
  7. package/dist/access-cli.js +43 -43
  8. package/dist/access-extraction-force-flush.d.ts +1 -1
  9. package/dist/access-extraction-force-flush.js +13 -13
  10. package/dist/access-http-lcm-compaction.d.ts +1 -1
  11. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  12. package/dist/access-http-offline-stream.d.ts +1 -1
  13. package/dist/access-http-query.js +13 -13
  14. package/dist/access-http.d.ts +2 -2
  15. package/dist/access-http.js +22 -22
  16. package/dist/access-identity-continuity-surface.js +13 -13
  17. package/dist/access-lcm-surface.d.ts +1 -1
  18. package/dist/access-lcm-surface.js +13 -13
  19. package/dist/access-mcp.d.ts +1 -1
  20. package/dist/access-mcp.js +18 -18
  21. package/dist/access-namespace-preflight.js +13 -13
  22. package/dist/access-observe-write-surface.d.ts +1 -1
  23. package/dist/access-observe-write-surface.js +13 -13
  24. package/dist/access-operations-batch.js +14 -14
  25. package/dist/access-operations.d.ts +4 -4
  26. package/dist/access-operations.js +17 -17
  27. package/dist/access-recall-concurrency.d.ts +1 -1
  28. package/dist/access-recall-concurrency.js +13 -13
  29. package/dist/access-recall-response.d.ts +1 -1
  30. package/dist/access-recall-response.js +13 -13
  31. package/dist/access-recall-surface.d.ts +1 -1
  32. package/dist/access-recall-surface.js +13 -13
  33. package/dist/access-schema.d.ts +88 -88
  34. package/dist/access-service-helpers.d.ts +1 -1
  35. package/dist/access-service.d.ts +1 -1
  36. package/dist/access-service.js +13 -13
  37. package/dist/access-surface-catalog.d.ts +1 -1
  38. package/dist/access-surface-catalog.js +15 -15
  39. package/dist/briefing.js +5 -5
  40. package/dist/buffer.js +3 -3
  41. package/dist/causal-consolidation.js +6 -6
  42. package/dist/{chunk-CH627RRV.js → chunk-2AZBPQLK.js} +3 -3
  43. package/dist/{chunk-WFLBP5GC.js → chunk-4NZHHGVL.js} +25 -6
  44. package/dist/chunk-4NZHHGVL.js.map +1 -0
  45. package/dist/{chunk-LTJTP5YQ.js → chunk-4WW5FMUD.js} +2 -2
  46. package/dist/{chunk-HSBQJRV2.js → chunk-5LVSFKQB.js} +2 -2
  47. package/dist/{chunk-RFH7U5LT.js → chunk-5S7Y7AC6.js} +2 -2
  48. package/dist/{chunk-7BJYTX6Q.js → chunk-6VX2ZZH2.js} +2 -2
  49. package/dist/{chunk-4FFROSFG.js → chunk-7CJO52ET.js} +8 -8
  50. package/dist/{chunk-JFLKSD5V.js → chunk-A5BYPCDI.js} +2 -2
  51. package/dist/{chunk-EFWHCTYJ.js → chunk-ALKRPLWB.js} +2 -2
  52. package/dist/{chunk-JDI7G6EA.js → chunk-AUIAHNO7.js} +2 -2
  53. package/dist/{chunk-BHO6RHE5.js → chunk-BE5SVRFC.js} +2 -2
  54. package/dist/{chunk-QCECHYZL.js → chunk-E2GYBTSP.js} +24 -4
  55. package/dist/chunk-E2GYBTSP.js.map +1 -0
  56. package/dist/{chunk-3MA7JVXN.js → chunk-EJYAE2U7.js} +4 -4
  57. package/dist/{chunk-IZRNVNPV.js → chunk-F2FZEVDE.js} +2 -2
  58. package/dist/{chunk-AYIHDC5S.js → chunk-FNYIMSKI.js} +2 -2
  59. package/dist/{chunk-ZPGHA7EO.js → chunk-FU7OICXE.js} +7 -7
  60. package/dist/{chunk-4Y2RHVCV.js → chunk-GL4RHVHX.js} +2 -2
  61. package/dist/{chunk-HVKMJAEF.js → chunk-GUBT77YC.js} +2 -2
  62. package/dist/{chunk-4IZ2IT7D.js → chunk-J5AFG5JN.js} +3 -3
  63. package/dist/{chunk-QCI73Z7C.js → chunk-KP36WQBJ.js} +2 -2
  64. package/dist/{chunk-H23GIXJC.js → chunk-LAX6S5WS.js} +2 -2
  65. package/dist/{chunk-DTLF2SLZ.js → chunk-MMM7SDOJ.js} +2 -2
  66. package/dist/{chunk-KPML4Q3M.js → chunk-MQFFR6QB.js} +2 -2
  67. package/dist/{chunk-BBHFAVMP.js → chunk-NVSTZ2PN.js} +7 -7
  68. package/dist/{chunk-CALURYWR.js → chunk-OF6KQJ35.js} +2 -2
  69. package/dist/{chunk-JCJGYNIS.js → chunk-ORB56L3Y.js} +3 -3
  70. package/dist/{chunk-YIIC5IDU.js → chunk-P2BT5ALE.js} +1 -1
  71. package/dist/{chunk-BP6WMYLP.js → chunk-R7R4FSV2.js} +2 -2
  72. package/dist/{chunk-CLJ5QS6J.js → chunk-RBBYKXXK.js} +30 -24
  73. package/dist/{chunk-CLJ5QS6J.js.map → chunk-RBBYKXXK.js.map} +1 -1
  74. package/dist/{chunk-FF6E6HOT.js → chunk-RBJKE5LV.js} +16 -16
  75. package/dist/{chunk-PSNN25DW.js → chunk-S4MF77NV.js} +2 -2
  76. package/dist/{chunk-4HO3542O.js → chunk-S52C2DEM.js} +2 -2
  77. package/dist/{chunk-WMOJIOIG.js → chunk-SHSJP4D6.js} +2 -2
  78. package/dist/{chunk-CK3NQUSQ.js → chunk-U4CCRHN6.js} +2 -2
  79. package/dist/{chunk-TGSMU3F2.js → chunk-U5LYM2NS.js} +2 -2
  80. package/dist/{chunk-X6E7TT3A.js → chunk-UDL4DNBM.js} +2 -2
  81. package/dist/{chunk-WR2YKUIW.js → chunk-UKBIB3FP.js} +2 -2
  82. package/dist/{chunk-347ZR6D4.js → chunk-UM7A4CPT.js} +2 -2
  83. package/dist/{chunk-TIRJV2LW.js → chunk-USKANB65.js} +2 -2
  84. package/dist/{chunk-UDTME32W.js → chunk-UW74LP76.js} +2 -2
  85. package/dist/{chunk-YSR3DXGC.js → chunk-WLITCQAC.js} +2 -2
  86. package/dist/{chunk-LLGDVG52.js → chunk-ZSH6GJ2V.js} +3 -3
  87. package/dist/{chunk-DROAPP6N.js → chunk-ZXMNT75M.js} +3 -3
  88. package/dist/{cli-Bw9z-KqX.d.ts → cli-DJwNNDL1.d.ts} +1 -1
  89. package/dist/cli.d.ts +2 -2
  90. package/dist/cli.js +32 -32
  91. package/dist/compounding/engine.js +5 -5
  92. package/dist/connectors/codex-materialize-runner.js +5 -5
  93. package/dist/connectors/index.js +5 -5
  94. package/dist/convergence-refresh.js +7 -7
  95. package/dist/corpus-watermark.js +7 -7
  96. package/dist/entity-retrieval.js +5 -5
  97. package/dist/external-wiki-access.d.ts +1 -1
  98. package/dist/external-wiki-access.js +14 -14
  99. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  100. package/dist/extraction.js +9 -9
  101. package/dist/harmonic-retrieval.js +1 -1
  102. package/dist/index.d.ts +681 -681
  103. package/dist/index.js +43 -43
  104. package/dist/maintenance/memory-governance.js +5 -5
  105. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
  106. package/dist/maintenance/rebuild-memory-projection.js +6 -6
  107. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  108. package/dist/namespaces/migrate.js +6 -6
  109. package/dist/namespaces/search.js +3 -3
  110. package/dist/namespaces/storage.js +5 -5
  111. package/dist/operator-doctor-corpus.js +8 -8
  112. package/dist/operator-toolkit.js +12 -12
  113. package/dist/orchestration/maintenance.js +10 -10
  114. package/dist/orchestrator.js +43 -43
  115. package/dist/{public-http-DK-QwaBu.d.ts → public-http-43z1YT-k.d.ts} +1 -1
  116. package/dist/{qmd-D_62bYNl.d.ts → qmd-CBSxevyb.d.ts} +12 -1
  117. package/dist/qmd-preflight.d.ts +1 -1
  118. package/dist/qmd.d.ts +1 -1
  119. package/dist/qmd.js +3 -1
  120. package/dist/retrieval-agents.d.ts +1 -1
  121. package/dist/schemas.d.ts +117 -434
  122. package/dist/schemas.js +1 -1
  123. package/dist/search/factory.js +2 -2
  124. package/dist/search/index.js +2 -2
  125. package/dist/semantic-consolidation.js +6 -6
  126. package/dist/semantic-rule-promotion.js +5 -5
  127. package/dist/semantic-rule-verifier.js +5 -5
  128. package/dist/shared-context/manager.d.ts +8 -8
  129. package/dist/source-agent-qualifier.js +7 -7
  130. package/dist/storage.js +4 -4
  131. package/dist/support-passport/index.d.ts +4 -4
  132. package/dist/support-passport/index.js +16 -16
  133. package/dist/transfer/types.d.ts +66 -66
  134. package/dist/verified-recall.js +5 -5
  135. package/package.json +2 -2
  136. package/src/orchestration/turn-ingestion.ts +24 -1
  137. package/src/orchestrator-flush.test.ts +142 -1
  138. package/src/qmd-process-group.test.ts +125 -0
  139. package/src/qmd.ts +30 -2
  140. package/src/schemas.test.ts +158 -0
  141. package/src/schemas.ts +45 -22
  142. package/dist/chunk-QCECHYZL.js.map +0 -1
  143. package/dist/chunk-WFLBP5GC.js.map +0 -1
  144. package/dist/{access-service-M4LgO141.d.ts → access-service-DBpEnlzA.d.ts} +64 -64
  145. /package/dist/{chunk-CH627RRV.js.map → chunk-2AZBPQLK.js.map} +0 -0
  146. /package/dist/{chunk-LTJTP5YQ.js.map → chunk-4WW5FMUD.js.map} +0 -0
  147. /package/dist/{chunk-HSBQJRV2.js.map → chunk-5LVSFKQB.js.map} +0 -0
  148. /package/dist/{chunk-RFH7U5LT.js.map → chunk-5S7Y7AC6.js.map} +0 -0
  149. /package/dist/{chunk-7BJYTX6Q.js.map → chunk-6VX2ZZH2.js.map} +0 -0
  150. /package/dist/{chunk-4FFROSFG.js.map → chunk-7CJO52ET.js.map} +0 -0
  151. /package/dist/{chunk-JFLKSD5V.js.map → chunk-A5BYPCDI.js.map} +0 -0
  152. /package/dist/{chunk-EFWHCTYJ.js.map → chunk-ALKRPLWB.js.map} +0 -0
  153. /package/dist/{chunk-JDI7G6EA.js.map → chunk-AUIAHNO7.js.map} +0 -0
  154. /package/dist/{chunk-BHO6RHE5.js.map → chunk-BE5SVRFC.js.map} +0 -0
  155. /package/dist/{chunk-3MA7JVXN.js.map → chunk-EJYAE2U7.js.map} +0 -0
  156. /package/dist/{chunk-IZRNVNPV.js.map → chunk-F2FZEVDE.js.map} +0 -0
  157. /package/dist/{chunk-AYIHDC5S.js.map → chunk-FNYIMSKI.js.map} +0 -0
  158. /package/dist/{chunk-ZPGHA7EO.js.map → chunk-FU7OICXE.js.map} +0 -0
  159. /package/dist/{chunk-4Y2RHVCV.js.map → chunk-GL4RHVHX.js.map} +0 -0
  160. /package/dist/{chunk-HVKMJAEF.js.map → chunk-GUBT77YC.js.map} +0 -0
  161. /package/dist/{chunk-4IZ2IT7D.js.map → chunk-J5AFG5JN.js.map} +0 -0
  162. /package/dist/{chunk-QCI73Z7C.js.map → chunk-KP36WQBJ.js.map} +0 -0
  163. /package/dist/{chunk-H23GIXJC.js.map → chunk-LAX6S5WS.js.map} +0 -0
  164. /package/dist/{chunk-DTLF2SLZ.js.map → chunk-MMM7SDOJ.js.map} +0 -0
  165. /package/dist/{chunk-KPML4Q3M.js.map → chunk-MQFFR6QB.js.map} +0 -0
  166. /package/dist/{chunk-BBHFAVMP.js.map → chunk-NVSTZ2PN.js.map} +0 -0
  167. /package/dist/{chunk-CALURYWR.js.map → chunk-OF6KQJ35.js.map} +0 -0
  168. /package/dist/{chunk-JCJGYNIS.js.map → chunk-ORB56L3Y.js.map} +0 -0
  169. /package/dist/{chunk-YIIC5IDU.js.map → chunk-P2BT5ALE.js.map} +0 -0
  170. /package/dist/{chunk-BP6WMYLP.js.map → chunk-R7R4FSV2.js.map} +0 -0
  171. /package/dist/{chunk-FF6E6HOT.js.map → chunk-RBJKE5LV.js.map} +0 -0
  172. /package/dist/{chunk-PSNN25DW.js.map → chunk-S4MF77NV.js.map} +0 -0
  173. /package/dist/{chunk-4HO3542O.js.map → chunk-S52C2DEM.js.map} +0 -0
  174. /package/dist/{chunk-WMOJIOIG.js.map → chunk-SHSJP4D6.js.map} +0 -0
  175. /package/dist/{chunk-CK3NQUSQ.js.map → chunk-U4CCRHN6.js.map} +0 -0
  176. /package/dist/{chunk-TGSMU3F2.js.map → chunk-U5LYM2NS.js.map} +0 -0
  177. /package/dist/{chunk-X6E7TT3A.js.map → chunk-UDL4DNBM.js.map} +0 -0
  178. /package/dist/{chunk-WR2YKUIW.js.map → chunk-UKBIB3FP.js.map} +0 -0
  179. /package/dist/{chunk-347ZR6D4.js.map → chunk-UM7A4CPT.js.map} +0 -0
  180. /package/dist/{chunk-TIRJV2LW.js.map → chunk-USKANB65.js.map} +0 -0
  181. /package/dist/{chunk-UDTME32W.js.map → chunk-UW74LP76.js.map} +0 -0
  182. /package/dist/{chunk-YSR3DXGC.js.map → chunk-WLITCQAC.js.map} +0 -0
  183. /package/dist/{chunk-LLGDVG52.js.map → chunk-ZSH6GJ2V.js.map} +0 -0
  184. /package/dist/{chunk-DROAPP6N.js.map → chunk-ZXMNT75M.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  buildProjectedGovernanceProposedActions,
5
5
  hasGroupedGovernanceActions,
6
6
  shapeMemorySummary
7
- } from "./chunk-4FFROSFG.js";
7
+ } from "./chunk-7CJO52ET.js";
8
8
  import "./chunk-GDASG7NC.js";
9
9
  import "./chunk-GDB4J2H3.js";
10
10
  import "./chunk-QYN5PXDZ.js";
@@ -19,7 +19,7 @@ import "./chunk-H7XKCNR6.js";
19
19
  import "./chunk-3F3CVVDS.js";
20
20
  import "./chunk-SOBJ6NEY.js";
21
21
  import "./chunk-QICOU4RY.js";
22
- import "./chunk-WMOJIOIG.js";
22
+ import "./chunk-SHSJP4D6.js";
23
23
  import "./chunk-CVILPI77.js";
24
24
  import "./chunk-2HIJHXB3.js";
25
25
  import "./chunk-AQEJKOKI.js";
@@ -40,29 +40,29 @@ import "./chunk-LTHVM4XN.js";
40
40
  import "./chunk-DLQQU4EG.js";
41
41
  import "./chunk-C37ZRXX7.js";
42
42
  import "./chunk-7ZNJN5WZ.js";
43
- import "./chunk-RFH7U5LT.js";
44
- import "./chunk-EFWHCTYJ.js";
45
- import "./chunk-DROAPP6N.js";
46
- import "./chunk-AYIHDC5S.js";
43
+ import "./chunk-5S7Y7AC6.js";
44
+ import "./chunk-ALKRPLWB.js";
45
+ import "./chunk-ZXMNT75M.js";
46
+ import "./chunk-FNYIMSKI.js";
47
47
  import "./chunk-UFGFMWAD.js";
48
48
  import "./chunk-YMOPYG3K.js";
49
49
  import "./chunk-2LSZVONP.js";
50
50
  import "./chunk-DEUNUKTD.js";
51
51
  import "./chunk-LXY5VVGM.js";
52
- import "./chunk-KPML4Q3M.js";
52
+ import "./chunk-MQFFR6QB.js";
53
53
  import "./chunk-PD6O7AXF.js";
54
54
  import "./chunk-OD4FM2U7.js";
55
55
  import "./chunk-ZY2MNJR6.js";
56
- import "./chunk-DTLF2SLZ.js";
56
+ import "./chunk-MMM7SDOJ.js";
57
57
  import "./chunk-RDFF2NAU.js";
58
58
  import "./chunk-ALNZEWGN.js";
59
- import "./chunk-7BJYTX6Q.js";
60
- import "./chunk-CALURYWR.js";
59
+ import "./chunk-6VX2ZZH2.js";
60
+ import "./chunk-OF6KQJ35.js";
61
61
  import "./chunk-UHVXE24Y.js";
62
62
  import "./chunk-46WM6JX2.js";
63
63
  import "./chunk-SXIMQLGV.js";
64
- import "./chunk-JFLKSD5V.js";
65
- import "./chunk-LTJTP5YQ.js";
64
+ import "./chunk-A5BYPCDI.js";
65
+ import "./chunk-4WW5FMUD.js";
66
66
  import "./chunk-CYEPCZN5.js";
67
67
  import "./chunk-DCUMFQYM.js";
68
68
  import "./chunk-VYISFWVX.js";
@@ -97,7 +97,7 @@ import "./chunk-RBOJCG4T.js";
97
97
  import "./chunk-GSTIBXBW.js";
98
98
  import "./chunk-5WITETWU.js";
99
99
  import "./chunk-6CIAGZ6X.js";
100
- import "./chunk-QCECHYZL.js";
100
+ import "./chunk-E2GYBTSP.js";
101
101
  import "./chunk-URS5GSM7.js";
102
102
  import "./chunk-ZLQ37WJX.js";
103
103
  import "./chunk-IUM3VSHI.js";
@@ -1,6 +1,6 @@
1
1
  import { OperationName } from './access-boundary.js';
2
2
  import 'zod';
3
- import './access-service-M4LgO141.js';
3
+ import './access-service-DBpEnlzA.js';
4
4
  import './catalog-CyYTf_ok.js';
5
5
  import './types-DWHOxlZP.js';
6
6
  import './message-parts/index.js';
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SUPPORT_PASSPORT_OWNER_HTTP_ROUTES
3
- } from "./chunk-JDI7G6EA.js";
3
+ } from "./chunk-AUIAHNO7.js";
4
4
  import {
5
5
  SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES
6
- } from "./chunk-PSNN25DW.js";
7
- import "./chunk-4FFROSFG.js";
6
+ } from "./chunk-S4MF77NV.js";
7
+ import "./chunk-7CJO52ET.js";
8
8
  import "./chunk-GDASG7NC.js";
9
9
  import "./chunk-GDB4J2H3.js";
10
10
  import "./chunk-QYN5PXDZ.js";
@@ -19,7 +19,7 @@ import "./chunk-H7XKCNR6.js";
19
19
  import "./chunk-3F3CVVDS.js";
20
20
  import "./chunk-SOBJ6NEY.js";
21
21
  import "./chunk-QICOU4RY.js";
22
- import "./chunk-WMOJIOIG.js";
22
+ import "./chunk-SHSJP4D6.js";
23
23
  import "./chunk-CVILPI77.js";
24
24
  import "./chunk-2HIJHXB3.js";
25
25
  import "./chunk-AQEJKOKI.js";
@@ -40,29 +40,29 @@ import "./chunk-LTHVM4XN.js";
40
40
  import "./chunk-DLQQU4EG.js";
41
41
  import "./chunk-C37ZRXX7.js";
42
42
  import "./chunk-7ZNJN5WZ.js";
43
- import "./chunk-RFH7U5LT.js";
44
- import "./chunk-EFWHCTYJ.js";
45
- import "./chunk-DROAPP6N.js";
46
- import "./chunk-AYIHDC5S.js";
43
+ import "./chunk-5S7Y7AC6.js";
44
+ import "./chunk-ALKRPLWB.js";
45
+ import "./chunk-ZXMNT75M.js";
46
+ import "./chunk-FNYIMSKI.js";
47
47
  import "./chunk-UFGFMWAD.js";
48
48
  import "./chunk-YMOPYG3K.js";
49
49
  import "./chunk-2LSZVONP.js";
50
50
  import "./chunk-DEUNUKTD.js";
51
51
  import "./chunk-LXY5VVGM.js";
52
- import "./chunk-KPML4Q3M.js";
52
+ import "./chunk-MQFFR6QB.js";
53
53
  import "./chunk-PD6O7AXF.js";
54
54
  import "./chunk-OD4FM2U7.js";
55
55
  import "./chunk-ZY2MNJR6.js";
56
- import "./chunk-DTLF2SLZ.js";
56
+ import "./chunk-MMM7SDOJ.js";
57
57
  import "./chunk-RDFF2NAU.js";
58
58
  import "./chunk-ALNZEWGN.js";
59
- import "./chunk-7BJYTX6Q.js";
60
- import "./chunk-CALURYWR.js";
59
+ import "./chunk-6VX2ZZH2.js";
60
+ import "./chunk-OF6KQJ35.js";
61
61
  import "./chunk-UHVXE24Y.js";
62
62
  import "./chunk-46WM6JX2.js";
63
63
  import "./chunk-SXIMQLGV.js";
64
- import "./chunk-JFLKSD5V.js";
65
- import "./chunk-LTJTP5YQ.js";
64
+ import "./chunk-A5BYPCDI.js";
65
+ import "./chunk-4WW5FMUD.js";
66
66
  import "./chunk-CYEPCZN5.js";
67
67
  import "./chunk-DCUMFQYM.js";
68
68
  import "./chunk-VYISFWVX.js";
@@ -97,7 +97,7 @@ import "./chunk-RBOJCG4T.js";
97
97
  import "./chunk-GSTIBXBW.js";
98
98
  import "./chunk-5WITETWU.js";
99
99
  import "./chunk-6CIAGZ6X.js";
100
- import "./chunk-QCECHYZL.js";
100
+ import "./chunk-E2GYBTSP.js";
101
101
  import "./chunk-URS5GSM7.js";
102
102
  import "./chunk-ZLQ37WJX.js";
103
103
  import "./chunk-IUM3VSHI.js";
package/dist/briefing.js CHANGED
@@ -17,13 +17,13 @@ import {
17
17
  renderBriefingMarkdown,
18
18
  resolveBriefingSaveDir,
19
19
  validateBriefingFormat
20
- } from "./chunk-7BJYTX6Q.js";
21
- import "./chunk-CALURYWR.js";
20
+ } from "./chunk-6VX2ZZH2.js";
21
+ import "./chunk-OF6KQJ35.js";
22
22
  import "./chunk-UHVXE24Y.js";
23
23
  import "./chunk-46WM6JX2.js";
24
24
  import "./chunk-SXIMQLGV.js";
25
- import "./chunk-JFLKSD5V.js";
26
- import "./chunk-LTJTP5YQ.js";
25
+ import "./chunk-A5BYPCDI.js";
26
+ import "./chunk-4WW5FMUD.js";
27
27
  import "./chunk-CYEPCZN5.js";
28
28
  import "./chunk-DCUMFQYM.js";
29
29
  import "./chunk-VYISFWVX.js";
@@ -58,7 +58,7 @@ import "./chunk-RBOJCG4T.js";
58
58
  import "./chunk-GSTIBXBW.js";
59
59
  import "./chunk-5WITETWU.js";
60
60
  import "./chunk-6CIAGZ6X.js";
61
- import "./chunk-QCECHYZL.js";
61
+ import "./chunk-E2GYBTSP.js";
62
62
  import "./chunk-URS5GSM7.js";
63
63
  import "./chunk-ZLQ37WJX.js";
64
64
  import "./chunk-IUM3VSHI.js";
package/dist/buffer.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SmartBuffer
3
- } from "./chunk-CK3NQUSQ.js";
3
+ } from "./chunk-U4CCRHN6.js";
4
4
  import "./chunk-H3FZVNRN.js";
5
5
  import "./chunk-2AD5SXO4.js";
6
- import "./chunk-KPML4Q3M.js";
6
+ import "./chunk-MQFFR6QB.js";
7
7
  import "./chunk-PD6O7AXF.js";
8
8
  import "./chunk-OD4FM2U7.js";
9
- import "./chunk-QCECHYZL.js";
9
+ import "./chunk-E2GYBTSP.js";
10
10
  import "./chunk-URS5GSM7.js";
11
11
  import "./chunk-ZLQ37WJX.js";
12
12
  import "./chunk-IUM3VSHI.js";
@@ -4,22 +4,22 @@ import {
4
4
  } from "./chunk-IRLH4NM2.js";
5
5
  import {
6
6
  buildExtensionsBlockForConsolidation
7
- } from "./chunk-TGSMU3F2.js";
7
+ } from "./chunk-U5LYM2NS.js";
8
8
  import "./chunk-5JMAGU26.js";
9
9
  import "./chunk-B7RWBZXW.js";
10
10
  import {
11
11
  runPostConsolidationMaterialize
12
- } from "./chunk-DTLF2SLZ.js";
12
+ } from "./chunk-MMM7SDOJ.js";
13
13
  import "./chunk-RDFF2NAU.js";
14
14
  import {
15
15
  resolveCausalTrajectoryStoreDir
16
16
  } from "./chunk-ALNZEWGN.js";
17
- import "./chunk-CALURYWR.js";
17
+ import "./chunk-OF6KQJ35.js";
18
18
  import "./chunk-UHVXE24Y.js";
19
19
  import "./chunk-46WM6JX2.js";
20
20
  import "./chunk-SXIMQLGV.js";
21
- import "./chunk-JFLKSD5V.js";
22
- import "./chunk-LTJTP5YQ.js";
21
+ import "./chunk-A5BYPCDI.js";
22
+ import "./chunk-4WW5FMUD.js";
23
23
  import "./chunk-CYEPCZN5.js";
24
24
  import "./chunk-DCUMFQYM.js";
25
25
  import "./chunk-VYISFWVX.js";
@@ -54,7 +54,7 @@ import "./chunk-RBOJCG4T.js";
54
54
  import "./chunk-GSTIBXBW.js";
55
55
  import "./chunk-5WITETWU.js";
56
56
  import "./chunk-6CIAGZ6X.js";
57
- import "./chunk-QCECHYZL.js";
57
+ import "./chunk-E2GYBTSP.js";
58
58
  import "./chunk-URS5GSM7.js";
59
59
  import "./chunk-ZLQ37WJX.js";
60
60
  import "./chunk-IUM3VSHI.js";
@@ -6,7 +6,7 @@ import {
6
6
  headerConnector,
7
7
  renderExtractionConversation,
8
8
  resolveSourceConnector
9
- } from "./chunk-4Y2RHVCV.js";
9
+ } from "./chunk-GL4RHVHX.js";
10
10
  import {
11
11
  ConsolidationResultSchema,
12
12
  DaySummaryResultSchema,
@@ -15,7 +15,7 @@ import {
15
15
  ProactiveExtractionResultSchema,
16
16
  ProactiveQuestionsResultSchema,
17
17
  buildProfileConsolidationResultSchema
18
- } from "./chunk-WFLBP5GC.js";
18
+ } from "./chunk-4NZHHGVL.js";
19
19
  import {
20
20
  normalizeReasoningTrace
21
21
  } from "./chunk-54V4BZWP.js";
@@ -2442,4 +2442,4 @@ export {
2442
2442
  shouldEnableLocalExtractionThinking,
2443
2443
  ExtractionEngine
2444
2444
  };
2445
- //# sourceMappingURL=chunk-CH627RRV.js.map
2445
+ //# sourceMappingURL=chunk-2AZBPQLK.js.map
@@ -157,24 +157,43 @@ var ProactiveExtractionResultSchema = z.object({
157
157
  "Additional relationships surfaced by the proactive follow-up pass."
158
158
  )
159
159
  });
160
+ function salvageArray(itemSchema) {
161
+ return z.array(z.unknown()).transform((items, ctx) => {
162
+ const valid = [];
163
+ for (const raw of items) {
164
+ const parsed = itemSchema.safeParse(raw);
165
+ if (parsed.success) {
166
+ valid.push(parsed.data);
167
+ }
168
+ }
169
+ if (items.length > 0 && valid.length === 0) {
170
+ ctx.addIssue({
171
+ code: z.ZodIssueCode.custom,
172
+ message: "array contains no items matching the schema"
173
+ });
174
+ return z.NEVER;
175
+ }
176
+ return valid;
177
+ });
178
+ }
160
179
  var ExtractionResultSchema = z.object({
161
- facts: z.array(ExtractedFactSchema).describe(
180
+ facts: salvageArray(ExtractedFactSchema).describe(
162
181
  "Extracted memories from the conversation. Include facts, preferences, corrections, and decisions. Only extract genuinely new, durable information \u2014 skip transient task state."
163
182
  ),
164
- profileUpdates: z.array(z.string()).describe(
183
+ profileUpdates: salvageArray(z.string()).describe(
165
184
  "Updates to the user's behavioral profile. Each string is a standalone statement about the user's preferences, habits, or personality. Only include genuinely new insights."
166
185
  ),
167
- entities: z.array(EntityMentionSchema).describe(
186
+ entities: salvageArray(EntityMentionSchema).describe(
168
187
  "Entities mentioned in the conversation with new facts about them."
169
188
  ),
170
- questions: z.array(ExtractedQuestionSchema).describe(
189
+ questions: salvageArray(ExtractedQuestionSchema).describe(
171
190
  "Zero to three source-grounded questions useful in future sessions. Return an empty array when the conversation supports none."
172
191
  ),
173
192
  identityReflection: z.string().optional().nullable().describe(
174
193
  "A brief reflection on what you learned about yourself as an agent in this interaction \u2014 patterns in your behavior, growth, things you did well or could improve."
175
194
  ),
176
195
  episodeTitle: z.string().optional().nullable().describe("A six-to-eight word title for this conversation segment."),
177
- relationships: z.array(ExtractedRelationshipSchema).optional().nullable().describe(
196
+ relationships: salvageArray(ExtractedRelationshipSchema).optional().nullable().describe(
178
197
  "Relationships between entities discovered in this conversation. Max 5 per extraction. Format: {source, target, label}."
179
198
  )
180
199
  });
@@ -282,4 +301,4 @@ export {
282
301
  BehaviorLoopAdjustmentSchema,
283
302
  BehaviorLoopPolicyStateSchema
284
303
  };
285
- //# sourceMappingURL=chunk-WFLBP5GC.js.map
304
+ //# sourceMappingURL=chunk-4NZHHGVL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const MemoryActionTypeSchema = z.enum([\n \"store_episode\",\n \"store_note\",\n \"update_note\",\n \"create_artifact\",\n \"summarize_node\",\n \"discard\",\n \"link_graph\",\n]);\n\nexport const MemoryActionEligibilityContextSchema = z\n .object({\n confidence: z.number().min(0).max(1),\n lifecycleState: z.enum([\"active\", \"validated\", \"candidate\", \"stale\", \"archived\"]),\n importance: z.number().min(0).max(1),\n source: z.enum([\"extraction\", \"consolidation\", \"replay\", \"manual\", \"unknown\"]),\n })\n .strict();\n\nexport function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema> {\n const parsed = MemoryActionTypeSchema.safeParse(value);\n return parsed.success ? parsed.data : \"discard\";\n}\n\nexport function parseMemoryActionEligibilityContext(\n value: unknown,\n): z.infer<typeof MemoryActionEligibilityContextSchema> {\n const parsed = MemoryActionEligibilityContextSchema.safeParse(value);\n if (parsed.success) return parsed.data;\n return {\n confidence: 0,\n lifecycleState: \"candidate\",\n importance: 0,\n source: \"unknown\",\n };\n}\n\nexport const ProcedureStepExtractSchema = z.object({\n order: z.number(),\n intent: z.string(),\n toolCall: z\n .object({\n kind: z.string(),\n signature: z.string(),\n })\n .optional()\n .nullable(),\n expectedOutcome: z.string().optional().nullable(),\n optional: z.boolean().optional().nullable(),\n});\n\nexport const ExtractedFactSchema = z.object({\n category: z.enum([\n \"fact\",\n \"preference\",\n \"correction\",\n \"entity\",\n \"decision\",\n \"relationship\",\n \"principle\",\n \"commitment\",\n \"moment\",\n \"skill\",\n \"rule\",\n \"procedure\",\n \"reasoning_trace\",\n ]),\n content: z\n .string()\n .describe(\"The memory content — a clear, standalone statement\"),\n confidence: z\n .number()\n .min(0)\n .max(1)\n .describe(\"How confident are you this is correct (0-1)\"),\n tags: z.array(z.string()).describe(\"Relevant tags for categorization\"),\n entityRef: z\n .string()\n .optional()\n .nullable()\n .describe(\"If about an entity, its normalized name (e.g. person-jane-doe)\"),\n cueAnchors: z\n .array(\n z.object({\n type: z.enum([\"entity\", \"file\", \"tool\", \"outcome\", \"constraint\", \"date\"]),\n value: z.string(),\n }),\n )\n .optional()\n .nullable()\n .describe(\"Up to three short retrieval cues for this fact.\"),\n promptedByQuestion: z\n .string()\n .optional()\n .nullable()\n .describe(\"Optional proactive follow-up question that surfaced this fact.\"),\n scope: z\n .enum([\"project\", \"global\"])\n .optional()\n .nullable()\n .describe(\n 'Scope classification: \"global\" for cross-project knowledge (framework bugs, library behavior, API patterns, user preferences, general coding patterns); \"project\" for project-specific knowledge (file paths, env configs, deployment details, project workarounds) and for tool, command, or CLI-flag instructions tied to one agent, since the same tool name can mean different things across agents. When keeping such an agent-tied instruction, begin the fact with a leading \"In <agent>,\" clause naming that agent. Defaults to \"project\" when a coding context is active.',\n ),\n quote: z\n .string()\n .optional()\n .nullable()\n .describe(\n \"The EXACT verbatim words from the conversation that support this fact. Copy a contiguous span from a single speaker turn (not a paraphrase). Cap at ~300 characters. This is the grounding evidence for downstream faithfulness verification (issue #1575).\",\n ),\n structuredAttributes: z\n .record(z.string(), z.string())\n .optional()\n .nullable()\n .describe(\"Structured key-value attributes when the fact contains measurable or categorical data (e.g., {\\\"price\\\": \\\"29.99\\\", \\\"color\\\": \\\"blue\\\", \\\"date\\\": \\\"2024-03-15\\\"}).\"),\n procedureSteps: z\n .array(ProcedureStepExtractSchema)\n .optional()\n .nullable()\n .describe(\n 'For category \"procedure\" only: ordered steps (intent per step). At least two steps; include explicit trigger phrasing in content (e.g. \"When you deploy…\").',\n ),\n reasoningTrace: z\n .object({\n steps: z\n .array(\n z.object({\n order: z.number(),\n description: z.string(),\n }),\n )\n // Prompts and normalizer require >=2 ordered steps; enforce it at\n // the schema layer so gateway-path parsing rejects malformed traces\n // rather than persisting them (local/direct-client normalization\n // already enforces this, keeping the two paths symmetric).\n .min(2)\n .describe(\"Ordered reasoning steps the user walked through (require >=2).\"),\n // Accept snake_case aliases so a loose gateway model using\n // `final_answer` / `observed_outcome` does not fail schema parsing\n // and drop the entire extraction result. Local/direct-client\n // normalization already tolerates these keys; the gateway path must\n // too. Zod's `union` keeps the parse successful either way.\n finalAnswer: z\n .string()\n .optional()\n .nullable()\n .describe(\"The conclusion, decision, or answer the chain arrived at.\"),\n final_answer: z\n .string()\n .optional()\n .nullable()\n .describe(\"Alias for finalAnswer (snake_case). Gateway-tolerance shim.\"),\n observedOutcome: z\n .string()\n .optional()\n .nullable()\n .describe(\"Optional note about how the answer actually played out.\"),\n observed_outcome: z\n .string()\n .optional()\n .nullable()\n .describe(\"Alias for observedOutcome (snake_case). Gateway-tolerance shim.\"),\n })\n // Either finalAnswer OR final_answer must be present — enforce here so\n // the rest of the pipeline can assume a usable string downstream.\n .refine(\n (v) =>\n (typeof v.finalAnswer === \"string\" && v.finalAnswer.trim().length > 0) ||\n (typeof v.final_answer === \"string\" && v.final_answer.trim().length > 0),\n { message: \"reasoningTrace requires finalAnswer (or final_answer)\" },\n )\n .optional()\n .nullable()\n .describe(\n 'For category \"reasoning_trace\" only: a stored solution chain with ordered steps, a final answer, and an optional observed outcome. Require at least two steps.',\n ),\n eventTime: z\n .string()\n .optional()\n .nullable()\n .describe(\n 'Optional event-time expression for bi-temporal validity (#1578). An ISO date (\"2025-03-01\") or a relative expression verbatim (\"last March\", \"yesterday\", \"since 2024\", \"until 2025-06-01\"). Resolved against the source turn timestamp at write time — NOT wall-clock. Omit when the fact has no explicit temporal anchor.',\n ),\n event_time: z\n .string()\n .optional()\n .nullable()\n .describe(\"Alias for eventTime (snake_case). Gateway-tolerance shim (#1578).\"),\n}).superRefine((value, ctx) => {\n if (value.category === \"procedure\" && (!Array.isArray(value.procedureSteps) || value.procedureSteps.length < 2)) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"procedureSteps\"],\n message: \"procedure facts require at least two procedureSteps\",\n });\n }\n\n if (value.category === \"reasoning_trace\" && value.reasoningTrace == null) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n path: [\"reasoningTrace\"],\n message: \"reasoning_trace facts require reasoningTrace\",\n });\n }\n});\n\nexport const EntityMentionSchema = z.object({\n name: z\n .string()\n .describe(\"Normalized entity name (e.g. jane-doe, acme-corp, my-project)\"),\n type: z.enum([\"person\", \"project\", \"tool\", \"company\", \"place\", \"other\"]),\n facts: z\n .array(z.string())\n .describe(\"New facts learned about this entity in this conversation\"),\n promptedByQuestion: z\n .string()\n .optional()\n .nullable()\n .describe(\"Optional proactive follow-up question that surfaced this entity.\"),\n structuredSections: z\n .array(z.object({\n key: z.string(),\n title: z.string(),\n facts: z.array(z.string()),\n }))\n .optional()\n .nullable()\n .describe(\"Optional named sections for entity-specific facts. Use when facts clearly belong under a durable heading such as Beliefs or Building / Working On.\"),\n});\n\nexport const ExtractedQuestionSchema = z.object({\n question: z.string().describe(\"A genuine question the AI is curious about based on this conversation\"),\n context: z.string().describe(\"Why this question matters or what prompted it\"),\n priority: z.number().min(0).max(1).describe(\"How important/urgent this question is (0-1)\"),\n});\n\nexport const ProactiveQuestionsResultSchema = z.object({\n questions: z\n .array(ExtractedQuestionSchema)\n .describe(\"Additional follow-up questions discovered in a proactive second-pass extraction.\"),\n});\n\nexport const ExtractedRelationshipSchema = z.object({\n source: z.string().describe(\"Source entity name (normalized, e.g. person-jane-doe)\"),\n target: z.string().describe(\"Target entity name (normalized, e.g. company-acme-corp)\"),\n label: z.string().describe(\"Relationship label (e.g. 'works at', 'created', 'manages')\"),\n promptedByQuestion: z\n .string()\n .optional()\n .nullable()\n .describe(\"Optional proactive follow-up question that surfaced this relationship.\"),\n});\n\nexport const ProactiveExtractionResultSchema = z.object({\n facts: z\n .array(ExtractedFactSchema)\n .describe(\n \"Additional high-confidence memories recovered only after answering proactive follow-up questions from the same buffered conversation.\",\n ),\n profileUpdates: z\n .array(z.string())\n .describe(\n \"Additional profile updates directly supported by the buffered conversation. Omit anything speculative.\",\n ),\n entities: z\n .array(EntityMentionSchema)\n .describe(\n \"Additional entities or entity facts surfaced by the proactive follow-up pass.\",\n ),\n relationships: z\n .array(ExtractedRelationshipSchema)\n .optional()\n .nullable()\n .describe(\n \"Additional relationships surfaced by the proactive follow-up pass.\",\n ),\n});\n\n/**\n * Salvage array for model-produced extraction output (issue #2455).\n *\n * Mixed valid+invalid items parse to the valid subset so one malformed\n * element no longer discards the whole extraction. A non-empty array with\n * zero valid items still fails, so bounded retry stays effective and wholly\n * malformed output is never silently accepted as empty. Empty arrays stay\n * valid. Consolidation schemas intentionally stay strict — do not use this\n * for them.\n */\nfunction salvageArray<T extends z.ZodTypeAny>(itemSchema: T) {\n return z\n .array(z.unknown())\n .transform((items, ctx) => {\n const valid: z.infer<T>[] = [];\n for (const raw of items) {\n const parsed = itemSchema.safeParse(raw);\n if (parsed.success) {\n valid.push(parsed.data);\n }\n }\n if (items.length > 0 && valid.length === 0) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: \"array contains no items matching the schema\",\n });\n return z.NEVER;\n }\n return valid;\n });\n}\n\nexport const ExtractionResultSchema = z.object({\n facts: salvageArray(ExtractedFactSchema).describe(\n \"Extracted memories from the conversation. Include facts, preferences, corrections, and decisions. Only extract genuinely new, durable information — skip transient task state.\",\n ),\n profileUpdates: salvageArray(z.string()).describe(\n \"Updates to the user's behavioral profile. Each string is a standalone statement about the user's preferences, habits, or personality. Only include genuinely new insights.\",\n ),\n entities: salvageArray(EntityMentionSchema).describe(\n \"Entities mentioned in the conversation with new facts about them.\",\n ),\n questions: salvageArray(ExtractedQuestionSchema).describe(\n \"Zero to three source-grounded questions useful in future sessions. Return an empty array when the conversation supports none.\",\n ),\n identityReflection: z\n .string()\n .optional()\n .nullable()\n .describe(\n \"A brief reflection on what you learned about yourself as an agent in this interaction — patterns in your behavior, growth, things you did well or could improve.\",\n ),\n episodeTitle: z\n .string()\n .optional()\n .nullable()\n .describe(\"A six-to-eight word title for this conversation segment.\"),\n relationships: salvageArray(ExtractedRelationshipSchema)\n .optional()\n .nullable()\n .describe(\n \"Relationships between entities discovered in this conversation. Max 5 per extraction. Format: {source, target, label}.\",\n ),\n});\n\nexport const ConsolidationItemSchema = z.object({\n existingId: z\n .string()\n .describe(\"The ID of the existing memory being evaluated\"),\n action: z.enum([\"ADD\", \"MERGE\", \"UPDATE\", \"INVALIDATE\", \"SKIP\"]),\n mergeWith: z\n .string()\n .optional()\n .nullable()\n .describe(\"If MERGE, the ID of the memory to merge with\"),\n updatedContent: z\n .string()\n .optional()\n .nullable()\n .describe(\"If UPDATE or MERGE, the new content\"),\n reason: z.string().describe(\"Brief reason for this decision\"),\n});\n\nexport const ConsolidationResultSchema = z.object({\n items: z\n .array(ConsolidationItemSchema)\n .describe(\n \"Decisions for each existing memory: ADD (keep as-is), MERGE (combine with another), UPDATE (revise content), INVALIDATE (mark as outdated/wrong), SKIP (no action needed)\",\n ),\n profileUpdates: z\n .array(z.string())\n .describe(\"New profile statements to add or update\"),\n entityUpdates: z\n .array(EntityMentionSchema)\n .describe(\"Entity updates from consolidation analysis\"),\n});\n\nexport function buildProfileConsolidationResultSchema(targetLines: number) {\n return z.object({\n consolidatedProfile: z\n .string()\n .describe(\n `The full consolidated profile as markdown. Preserve all ## section headers. Merge duplicate or near-duplicate bullets into single clear statements. Remove stale or superseded information. Keep the most important and durable observations. Target roughly ${targetLines} lines.`,\n ),\n removedCount: z\n .number()\n .describe(\"Number of bullets removed or merged during consolidation\"),\n summary: z\n .string()\n .describe(\"Brief summary of what was consolidated\"),\n });\n}\n\nexport const ProfileConsolidationResultSchema = buildProfileConsolidationResultSchema(50);\n\nexport const IdentityConsolidationResultSchema = z.object({\n learnedPatterns: z\n .array(z.string())\n .describe(\n \"Consolidated behavioral patterns and lessons learned, each a concise standalone statement\",\n ),\n summary: z\n .string()\n .describe(\n \"A brief paragraph summarizing the agent's core identity insights\",\n ),\n});\n\nexport type IdentityConsolidationResultParsed = z.infer<\n typeof IdentityConsolidationResultSchema\n>;\n\n// Contradiction Verification (Phase 2B)\nexport const ContradictionVerificationSchema = z.object({\n isContradiction: z\n .boolean()\n .describe(\"Whether the two memories truly contradict each other\"),\n confidence: z\n .number()\n .min(0)\n .max(1)\n .describe(\"How confident are you in this assessment (0-1)\"),\n reasoning: z\n .string()\n .describe(\"Explanation of why these are or are not contradictory\"),\n whichIsNewer: z\n .enum([\"first\", \"second\", \"unclear\"])\n .describe(\"Which memory represents the more recent/current state\"),\n});\n\nexport type ContradictionVerificationResult = z.infer<\n typeof ContradictionVerificationSchema\n>;\n\n// Memory Linking (Phase 3A)\nexport const MemoryLinkSchema = z.object({\n targetId: z\n .string()\n .describe(\"The ID of the memory this links to\"),\n linkType: z\n .enum([\"follows\", \"references\", \"contradicts\", \"supports\", \"related\"])\n .describe(\"The type of relationship\"),\n strength: z\n .number()\n .min(0)\n .max(1)\n .describe(\"How strong is this relationship (0-1)\"),\n reason: z\n .string()\n .optional()\n .nullable()\n .describe(\"Why this link exists\"),\n});\n\nexport const SuggestedLinksSchema = z.object({\n links: z\n .array(MemoryLinkSchema)\n .describe(\"Suggested links between memories based on semantic analysis\"),\n});\n\nexport type MemoryLink = z.infer<typeof MemoryLinkSchema>;\nexport type SuggestedLinks = z.infer<typeof SuggestedLinksSchema>;\n\n// Memory Summarization (Phase 4A)\nexport const MemorySummarySchema = z.object({\n summaryText: z\n .string()\n .describe(\"A concise summary of the batch of memories\"),\n keyFacts: z\n .array(z.string())\n .describe(\"The most important facts extracted from these memories\"),\n keyEntities: z\n .array(z.string())\n .describe(\"Key entities mentioned across these memories\"),\n});\n\nexport type MemorySummaryResult = z.infer<typeof MemorySummarySchema>;\n\nexport const DaySummaryResultSchema = z.object({\n summary: z.string().min(1).describe(\"A concise end-of-day summary paragraph.\"),\n bullets: z.array(z.string()).default([]).describe(\"The most important moments from the day.\"),\n next_actions: z.array(z.string()).default([]).describe(\"Concrete next actions for tomorrow.\"),\n risks_or_open_loops: z.array(z.string()).default([]).describe(\"Open loops, blockers, or fragile assumptions still needing attention.\"),\n});\n\n// v8.15 behavior-loop auto-tuning state contracts\nexport const BehaviorLoopAdjustmentSchema = z.object({\n parameter: z.string().min(1),\n previousValue: z.number(),\n nextValue: z.number(),\n delta: z.number(),\n evidenceCount: z.number().int().min(0),\n confidence: z.number().min(0).max(1),\n reason: z.string(),\n appliedAt: z.string(),\n});\n\nexport const BehaviorLoopPolicyStateSchema = z.object({\n version: z.number().int().min(0),\n windowDays: z.number().int().min(0),\n minSignalCount: z.number().int().min(0),\n maxDeltaPerCycle: z.number().min(0).max(1),\n protectedParams: z.array(z.string()),\n adjustments: z.array(BehaviorLoopAdjustmentSchema),\n updatedAt: z.string(),\n});\n\nexport type BehaviorLoopAdjustmentParsed = z.infer<typeof BehaviorLoopAdjustmentSchema>;\nexport type BehaviorLoopPolicyStateParsed = z.infer<typeof BehaviorLoopPolicyStateSchema>;\n\nexport type MemoryActionTypeParsed = z.infer<typeof MemoryActionTypeSchema>;\nexport type MemoryActionEligibilityContextParsed = z.infer<typeof MemoryActionEligibilityContextSchema>;\nexport type ExtractedFactParsed = z.infer<typeof ExtractedFactSchema>;\nexport type EntityMentionParsed = z.infer<typeof EntityMentionSchema>;\nexport type ExtractedQuestionParsed = z.infer<typeof ExtractedQuestionSchema>;\nexport type ProactiveQuestionsResultParsed = z.infer<typeof ProactiveQuestionsResultSchema>;\nexport type ExtractionResultParsed = z.infer<typeof ExtractionResultSchema>;\nexport type ConsolidationItemParsed = z.infer<typeof ConsolidationItemSchema>;\nexport type ConsolidationResultParsed = z.infer<\n typeof ConsolidationResultSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,yBAAyB,EAAE,KAAK;AAAA,EAC3C;AA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AAe,EAAE,OAAO;AAAA,EACxB,WAAW,EAAE,OAAO;AAAA,EACpB,OAAO,EAAE,OAAO;AAAA,EAChB,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;AAAA,EACrC,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC;AAAA,EACnC,QAAQ,EAAE,OAAO;AAAA,EACjB,WAAW,EAAE,OAAO;AACtB,CAAC;AAEM,IAAM,gCAAgC,EAAE,OAAO;AAAA,EACpD,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;AAAA,EAC/B,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;AAAA,EAClC,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC;AAAA,EACtC,kBAAkB,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC;AAAA,EACzC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,EACnC,aAAa,EAAE,MAAM,4BAA4B;AAAA,EACjD,WAAW,EAAE,OAAO;AACtB,CAAC;","names":[]}
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-ET356KSB.js";
25
25
  import {
26
26
  QmdClient
27
- } from "./chunk-QCECHYZL.js";
27
+ } from "./chunk-E2GYBTSP.js";
28
28
  import {
29
29
  resolveIndexingCapabilities,
30
30
  resolvePipelineProcessingCapabilities,
@@ -179,4 +179,4 @@ export {
179
179
  createConversationSearchBackend,
180
180
  createConversationIndexRuntime
181
181
  };
182
- //# sourceMappingURL=chunk-LTJTP5YQ.js.map
182
+ //# sourceMappingURL=chunk-4WW5FMUD.js.map
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-YYQAKIDJ.js";
26
26
  import {
27
27
  getOperation
28
- } from "./chunk-4FFROSFG.js";
28
+ } from "./chunk-7CJO52ET.js";
29
29
  import {
30
30
  SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
31
31
  } from "./chunk-XDL5CYZN.js";
@@ -3946,4 +3946,4 @@ export {
3946
3946
  MCP_SUPPORTED_PROTOCOL_VERSIONS,
3947
3947
  EngramMcpServer
3948
3948
  };
3949
- //# sourceMappingURL=chunk-HSBQJRV2.js.map
3949
+ //# sourceMappingURL=chunk-5LVSFKQB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-CALURYWR.js";
3
+ } from "./chunk-OF6KQJ35.js";
4
4
  import {
5
5
  bumpMemoryCorpusVersionForDir
6
6
  } from "./chunk-KMAP7SNQ.js";
@@ -765,4 +765,4 @@ export {
765
765
  listMemoryGovernanceRuns,
766
766
  readMemoryGovernanceRunArtifact
767
767
  };
768
- //# sourceMappingURL=chunk-RFH7U5LT.js.map
768
+ //# sourceMappingURL=chunk-5S7Y7AC6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-CALURYWR.js";
3
+ } from "./chunk-OF6KQJ35.js";
4
4
  import {
5
5
  normalizeEntityName
6
6
  } from "./chunk-YXZG5TVN.js";
@@ -956,4 +956,4 @@ export {
956
956
  resolveBriefingSaveDir,
957
957
  briefingFilename
958
958
  };
959
- //# sourceMappingURL=chunk-7BJYTX6Q.js.map
959
+ //# sourceMappingURL=chunk-6VX2ZZH2.js.map
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-QICOU4RY.js";
42
42
  import {
43
43
  readAggregateExtractionWatermark
44
- } from "./chunk-WMOJIOIG.js";
44
+ } from "./chunk-SHSJP4D6.js";
45
45
  import {
46
46
  ReplicaDivergenceMonitor
47
47
  } from "./chunk-CVILPI77.js";
@@ -99,11 +99,11 @@ import {
99
99
  listMemoryGovernanceRuns,
100
100
  readMemoryGovernanceRunArtifact,
101
101
  runMemoryGovernance
102
- } from "./chunk-RFH7U5LT.js";
102
+ } from "./chunk-5S7Y7AC6.js";
103
103
  import {
104
104
  CorpusWatermarkCache,
105
105
  computeServiceCorpusCensus
106
- } from "./chunk-EFWHCTYJ.js";
106
+ } from "./chunk-ALKRPLWB.js";
107
107
  import {
108
108
  CrossNamespaceBudget,
109
109
  toBudgetWarning
@@ -113,7 +113,7 @@ import {
113
113
  isActivityDigestPath,
114
114
  isArtifactMemoryPath,
115
115
  isMeetingRecordPath
116
- } from "./chunk-KPML4Q3M.js";
116
+ } from "./chunk-MQFFR6QB.js";
117
117
  import {
118
118
  defaultCapsulesDir
119
119
  } from "./chunk-ZY2MNJR6.js";
@@ -127,17 +127,17 @@ import {
127
127
  enqueuePassiveCorrectionNotification,
128
128
  parseBriefingFocus,
129
129
  parseBriefingWindow
130
- } from "./chunk-7BJYTX6Q.js";
130
+ } from "./chunk-6VX2ZZH2.js";
131
131
  import {
132
132
  parseEntityFile,
133
133
  parseFrontmatter,
134
134
  qmdCollectionPathParts,
135
135
  qmdResultPathCandidates,
136
136
  selfDeps
137
- } from "./chunk-CALURYWR.js";
137
+ } from "./chunk-OF6KQJ35.js";
138
138
  import {
139
139
  namespaceCollectionName
140
- } from "./chunk-JFLKSD5V.js";
140
+ } from "./chunk-A5BYPCDI.js";
141
141
  import {
142
142
  DEFAULT_RECALL_DISCLOSURE,
143
143
  isRecallDisclosure
@@ -17695,4 +17695,4 @@ export {
17695
17695
  EngramAccessService,
17696
17696
  AccessAdminOpsSurface
17697
17697
  };
17698
- //# sourceMappingURL=chunk-4FFROSFG.js.map
17698
+ //# sourceMappingURL=chunk-7CJO52ET.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSearchBackend
3
- } from "./chunk-LTJTP5YQ.js";
3
+ } from "./chunk-4WW5FMUD.js";
4
4
  import {
5
5
  namespaceIdentityToken,
6
6
  normalizeNamespaceIdentity
@@ -470,4 +470,4 @@ export {
470
470
  NamespaceSearchRouter,
471
471
  normalizeQmdResultPath
472
472
  };
473
- //# sourceMappingURL=chunk-JFLKSD5V.js.map
473
+ //# sourceMappingURL=chunk-A5BYPCDI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listNamespaces
3
- } from "./chunk-DROAPP6N.js";
3
+ } from "./chunk-ZXMNT75M.js";
4
4
  import {
5
5
  capabilityAllowsNamespace
6
6
  } from "./chunk-MZWSOLMT.js";
@@ -282,4 +282,4 @@ export {
282
282
  computeServiceCorpusWatermarks,
283
283
  computeServiceCorpusCensus
284
284
  };
285
- //# sourceMappingURL=chunk-EFWHCTYJ.js.map
285
+ //# sourceMappingURL=chunk-ALKRPLWB.js.map
@@ -2,7 +2,7 @@ import {
2
2
  SupportPassportError,
3
3
  SupportPassportOwnerCreateGrantRequestSchema,
4
4
  getOperation
5
- } from "./chunk-4FFROSFG.js";
5
+ } from "./chunk-7CJO52ET.js";
6
6
 
7
7
  // src/support-passport/access-http.ts
8
8
  var OWNER_ROOT = "/engram/v1/support-passport";
@@ -137,4 +137,4 @@ export {
137
137
  SUPPORT_PASSPORT_OWNER_HTTP_ROUTES,
138
138
  handleSupportPassportOwnerHttp
139
139
  };
140
- //# sourceMappingURL=chunk-JDI7G6EA.js.map
140
+ //# sourceMappingURL=chunk-AUIAHNO7.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-B7RWBZXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-CALURYWR.js";
6
+ } from "./chunk-OF6KQJ35.js";
7
7
  import {
8
8
  getCachedEpisodeMap,
9
9
  setCachedEpisodeMap
@@ -109,4 +109,4 @@ export {
109
109
  compareVerifiedEpisodeResults,
110
110
  searchVerifiedEpisodes
111
111
  };
112
- //# sourceMappingURL=chunk-BHO6RHE5.js.map
112
+ //# sourceMappingURL=chunk-BE5SVRFC.js.map
@@ -328,7 +328,12 @@ function runCommandWithTimeout(command, args, options) {
328
328
  throwIfAborted(options.signal, `${label} aborted before spawn`);
329
329
  const child = launchProcess(command, args, {
330
330
  env: mergeEnv({ NO_COLOR: "1", ...options.env }),
331
- stdio: ["ignore", "pipe", "pipe"]
331
+ stdio: ["ignore", "pipe", "pipe"],
332
+ // POSIX: own process group so a timeout/abort kill can take down qmd's
333
+ // grandchildren too (launcher scripts spawn workers that outlive the
334
+ // launcher itself). Issue #2456. Windows ignores this option here —
335
+ // kill falls back to a direct child.kill.
336
+ detached: process.platform !== "win32"
332
337
  });
333
338
  if (!child.stdout || !child.stderr) {
334
339
  reject(new Error(`${label} failed to open stdio pipes`));
@@ -340,7 +345,7 @@ function runCommandWithTimeout(command, args, options) {
340
345
  const timer = setTimeout(() => {
341
346
  settled = true;
342
347
  cleanup();
343
- child.kill("SIGKILL");
348
+ killBoundedChild(child);
344
349
  reject(
345
350
  Object.assign(new Error(`${label} timed out after ${options.timeoutMs}ms`), {
346
351
  timedOut: true
@@ -352,7 +357,7 @@ function runCommandWithTimeout(command, args, options) {
352
357
  settled = true;
353
358
  clearTimeout(timer);
354
359
  cleanup();
355
- child.kill("SIGKILL");
360
+ killBoundedChild(child);
356
361
  reject(abortError(`${label} aborted`));
357
362
  };
358
363
  const cleanup = () => {
@@ -391,6 +396,20 @@ function runProcessCommand(command, args, timeoutMs, signal) {
391
396
  signal
392
397
  });
393
398
  }
399
+ function killBoundedChild(child) {
400
+ const pid = child.pid;
401
+ if (pid !== void 0 && process.platform !== "win32") {
402
+ try {
403
+ process.kill(-pid, "SIGKILL");
404
+ return;
405
+ } catch {
406
+ }
407
+ }
408
+ try {
409
+ child.kill("SIGKILL");
410
+ } catch {
411
+ }
412
+ }
394
413
  var nextJsonRpcId = 1;
395
414
  var QmdDaemonSession = class {
396
415
  child = null;
@@ -2220,9 +2239,10 @@ export {
2220
2239
  buildDefaultStructuredSearches,
2221
2240
  parseQmdExplain,
2222
2241
  getQmdCommandName,
2242
+ runCommandWithTimeout,
2223
2243
  retainSharedDaemonSession,
2224
2244
  releaseSharedDaemonSession,
2225
2245
  sharedDaemonSessionCountForTest,
2226
2246
  QmdClient
2227
2247
  };
2228
- //# sourceMappingURL=chunk-QCECHYZL.js.map
2248
+ //# sourceMappingURL=chunk-E2GYBTSP.js.map