nexus-agents 2.138.0 → 2.139.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 (129) hide show
  1. package/README.md +24 -22
  2. package/dist/{child-mcp-config-LCWPKOYE.js → child-mcp-config-3WBDH4XF.js} +2 -2
  3. package/dist/{chunk-ZJ3WGARD.js → chunk-2CPGV7OB.js} +3 -3
  4. package/dist/{chunk-DKU7O4V2.js → chunk-2GYETCPK.js} +2 -2
  5. package/dist/{chunk-MXDMJGVG.js → chunk-2ML4HOUH.js} +4 -4
  6. package/dist/{chunk-Q3EZN3Z2.js → chunk-4YCIRCEJ.js} +2 -2
  7. package/dist/{chunk-J2HWO3J3.js → chunk-63XGRODH.js} +8 -8
  8. package/dist/{chunk-J2HWO3J3.js.map → chunk-63XGRODH.js.map} +1 -1
  9. package/dist/{chunk-KWZC5LFC.js → chunk-ALYAJ7UB.js} +5 -5
  10. package/dist/{chunk-DTHMBYSV.js → chunk-EUHUAF3A.js} +2 -2
  11. package/dist/{chunk-7QR2RTA4.js → chunk-F76DNKNK.js} +7 -7
  12. package/dist/{chunk-AL7ZYHAF.js → chunk-FNIZRYYU.js} +3 -3
  13. package/dist/{chunk-XUH2UFSG.js → chunk-FSVDHN6X.js} +2 -2
  14. package/dist/{chunk-H3B7H67H.js → chunk-GSVXKPFP.js} +4 -4
  15. package/dist/{chunk-YPGTIJEW.js → chunk-H3AWLMZC.js} +2 -2
  16. package/dist/{chunk-NWW7HLRL.js → chunk-HMAS4ODR.js} +26 -10
  17. package/dist/{chunk-NWW7HLRL.js.map → chunk-HMAS4ODR.js.map} +1 -1
  18. package/dist/{chunk-D2XWKFZ2.js → chunk-IVUFSLFJ.js} +2 -2
  19. package/dist/{chunk-LMMLLGZZ.js → chunk-JHURIWZJ.js} +2 -2
  20. package/dist/{chunk-2XRPKJKX.js → chunk-KSQSWEFH.js} +7 -1
  21. package/dist/chunk-KSQSWEFH.js.map +1 -0
  22. package/dist/{chunk-NJW5GQUF.js → chunk-M7SLG5LO.js} +2 -2
  23. package/dist/{chunk-JFKNUEZ7.js → chunk-MGOCRAXF.js} +2 -2
  24. package/dist/{chunk-DOCEHXLQ.js → chunk-MVS4DQCD.js} +3 -3
  25. package/dist/{chunk-7QEGSYSU.js → chunk-MWM5HCZ5.js} +2 -2
  26. package/dist/{chunk-MNXLJ2VX.js → chunk-NHHSBKFL.js} +2 -2
  27. package/dist/{chunk-7KFI6R2M.js → chunk-PA4G74YQ.js} +7 -7
  28. package/dist/{chunk-MNHNQC7R.js → chunk-PDMNB5CN.js} +2 -2
  29. package/dist/{chunk-K62WRHHK.js → chunk-PI5QEJ54.js} +2 -2
  30. package/dist/{chunk-RER74KD6.js → chunk-PINS44XA.js} +2 -2
  31. package/dist/{chunk-RTBVZCLD.js → chunk-POET73HP.js} +2 -2
  32. package/dist/{chunk-7XCQJXN4.js → chunk-PYFCJRBU.js} +7 -7
  33. package/dist/{chunk-2SWMXQZF.js → chunk-QMFKL7Q4.js} +4 -4
  34. package/dist/{chunk-52JN2RFG.js → chunk-RVWUVJBM.js} +5 -5
  35. package/dist/{chunk-AYA7K5F5.js → chunk-SVKRAEAV.js} +4 -4
  36. package/dist/{chunk-R5ZQCA37.js → chunk-TMQ2LTJ4.js} +57 -46
  37. package/dist/{chunk-R5ZQCA37.js.map → chunk-TMQ2LTJ4.js.map} +1 -1
  38. package/dist/{chunk-5MMHH5WK.js → chunk-V74TPGPR.js} +3 -3
  39. package/dist/{chunk-NYSOJBF5.js → chunk-VIXE4WGC.js} +3 -3
  40. package/dist/{chunk-H4ATQPGQ.js → chunk-WWDMH5XY.js} +2 -2
  41. package/dist/{chunk-PLKWH53F.js → chunk-X5RS3KA7.js} +5 -5
  42. package/dist/{cli-circuit-breaker-TNV2PBLS.js → cli-circuit-breaker-OXUQUXYG.js} +4 -4
  43. package/dist/cli.js +42 -42
  44. package/dist/{composite-router-KM4BPVY4.js → composite-router-LTNI6OM2.js} +2 -2
  45. package/dist/{consensus-vote-PCIFXILX.js → consensus-vote-WA5YOGKF.js} +16 -16
  46. package/dist/{context-retriever-MAZKHYRD.js → context-retriever-XHXGVUEY.js} +10 -10
  47. package/dist/{dist-KGTVHDVC.js → dist-IKZ53APZ.js} +2 -2
  48. package/dist/{doctor-deep-XCMFGGJ3.js → doctor-deep-XQP74G25.js} +3 -3
  49. package/dist/{expert-bridge-EA3U3GKU.js → expert-bridge-EFMCUNQF.js} +4 -4
  50. package/dist/{factory-Y5WCLQDB.js → factory-BKQHRDBD.js} +5 -5
  51. package/dist/{factory-FACKN4IN.js → factory-CVQP6NRC.js} +8 -8
  52. package/dist/{improvement-review-F7TKX4LQ.js → improvement-review-QYSR3EFV.js} +4 -4
  53. package/dist/index.d.ts +12 -11
  54. package/dist/index.js +32 -32
  55. package/dist/index.js.map +1 -1
  56. package/dist/{init-opencode-ZYGGEUZN.js → init-opencode-T4IS2ZL3.js} +6 -6
  57. package/dist/{issue-triage-NI2ZDVTB.js → issue-triage-XZOIGUH6.js} +5 -5
  58. package/dist/{pr-reviewer-helpers-L7L6O3VQ.js → pr-reviewer-helpers-QL7AQV2B.js} +4 -4
  59. package/dist/{registry-command-K2KWID5D.js → registry-command-7ZVOCZDS.js} +2 -2
  60. package/dist/{repo-security-plan-PCGHBEGZ.js → repo-security-plan-QE6FKLP3.js} +3 -3
  61. package/dist/{research-helpers-synthesize-R45KXXNH.js → research-helpers-synthesize-TUZZ2RKT.js} +4 -4
  62. package/dist/{routing-memory-TLB5EY7J.js → routing-memory-UR4FTNY2.js} +2 -2
  63. package/dist/{session-memory-PUEUWVIN.js → session-memory-FHNRO6NH.js} +3 -3
  64. package/dist/{setup-command-OHM6K4FM.js → setup-command-PY7K5NAV.js} +11 -11
  65. package/dist/{setup-config-SLFGQ5F2.js → setup-config-XZXECJIV.js} +3 -3
  66. package/dist/{setup-custom-api-SVCRCSKY.js → setup-custom-api-IFMSGLN4.js} +3 -3
  67. package/dist/{tool-memory-COQWIFB6.js → tool-memory-2SMXZCRS.js} +7 -7
  68. package/dist/{tool-memory-registry-adapters-DLSE4SQH.js → tool-memory-registry-adapters-PMMKJQF5.js} +3 -3
  69. package/dist/{unified-registry-44DIG4XK.js → unified-registry-5BEYTFNN.js} +9 -9
  70. package/dist/{weather-report-WK7TJPMM.js → weather-report-MN2FK2RG.js} +2 -2
  71. package/package.json +2 -2
  72. package/dist/chunk-2XRPKJKX.js.map +0 -1
  73. /package/dist/{child-mcp-config-LCWPKOYE.js.map → child-mcp-config-3WBDH4XF.js.map} +0 -0
  74. /package/dist/{chunk-ZJ3WGARD.js.map → chunk-2CPGV7OB.js.map} +0 -0
  75. /package/dist/{chunk-DKU7O4V2.js.map → chunk-2GYETCPK.js.map} +0 -0
  76. /package/dist/{chunk-MXDMJGVG.js.map → chunk-2ML4HOUH.js.map} +0 -0
  77. /package/dist/{chunk-Q3EZN3Z2.js.map → chunk-4YCIRCEJ.js.map} +0 -0
  78. /package/dist/{chunk-KWZC5LFC.js.map → chunk-ALYAJ7UB.js.map} +0 -0
  79. /package/dist/{chunk-DTHMBYSV.js.map → chunk-EUHUAF3A.js.map} +0 -0
  80. /package/dist/{chunk-7QR2RTA4.js.map → chunk-F76DNKNK.js.map} +0 -0
  81. /package/dist/{chunk-AL7ZYHAF.js.map → chunk-FNIZRYYU.js.map} +0 -0
  82. /package/dist/{chunk-XUH2UFSG.js.map → chunk-FSVDHN6X.js.map} +0 -0
  83. /package/dist/{chunk-H3B7H67H.js.map → chunk-GSVXKPFP.js.map} +0 -0
  84. /package/dist/{chunk-YPGTIJEW.js.map → chunk-H3AWLMZC.js.map} +0 -0
  85. /package/dist/{chunk-D2XWKFZ2.js.map → chunk-IVUFSLFJ.js.map} +0 -0
  86. /package/dist/{chunk-LMMLLGZZ.js.map → chunk-JHURIWZJ.js.map} +0 -0
  87. /package/dist/{chunk-NJW5GQUF.js.map → chunk-M7SLG5LO.js.map} +0 -0
  88. /package/dist/{chunk-JFKNUEZ7.js.map → chunk-MGOCRAXF.js.map} +0 -0
  89. /package/dist/{chunk-DOCEHXLQ.js.map → chunk-MVS4DQCD.js.map} +0 -0
  90. /package/dist/{chunk-7QEGSYSU.js.map → chunk-MWM5HCZ5.js.map} +0 -0
  91. /package/dist/{chunk-MNXLJ2VX.js.map → chunk-NHHSBKFL.js.map} +0 -0
  92. /package/dist/{chunk-7KFI6R2M.js.map → chunk-PA4G74YQ.js.map} +0 -0
  93. /package/dist/{chunk-MNHNQC7R.js.map → chunk-PDMNB5CN.js.map} +0 -0
  94. /package/dist/{chunk-K62WRHHK.js.map → chunk-PI5QEJ54.js.map} +0 -0
  95. /package/dist/{chunk-RER74KD6.js.map → chunk-PINS44XA.js.map} +0 -0
  96. /package/dist/{chunk-RTBVZCLD.js.map → chunk-POET73HP.js.map} +0 -0
  97. /package/dist/{chunk-7XCQJXN4.js.map → chunk-PYFCJRBU.js.map} +0 -0
  98. /package/dist/{chunk-2SWMXQZF.js.map → chunk-QMFKL7Q4.js.map} +0 -0
  99. /package/dist/{chunk-52JN2RFG.js.map → chunk-RVWUVJBM.js.map} +0 -0
  100. /package/dist/{chunk-AYA7K5F5.js.map → chunk-SVKRAEAV.js.map} +0 -0
  101. /package/dist/{chunk-5MMHH5WK.js.map → chunk-V74TPGPR.js.map} +0 -0
  102. /package/dist/{chunk-NYSOJBF5.js.map → chunk-VIXE4WGC.js.map} +0 -0
  103. /package/dist/{chunk-H4ATQPGQ.js.map → chunk-WWDMH5XY.js.map} +0 -0
  104. /package/dist/{chunk-PLKWH53F.js.map → chunk-X5RS3KA7.js.map} +0 -0
  105. /package/dist/{cli-circuit-breaker-TNV2PBLS.js.map → cli-circuit-breaker-OXUQUXYG.js.map} +0 -0
  106. /package/dist/{composite-router-KM4BPVY4.js.map → composite-router-LTNI6OM2.js.map} +0 -0
  107. /package/dist/{consensus-vote-PCIFXILX.js.map → consensus-vote-WA5YOGKF.js.map} +0 -0
  108. /package/dist/{context-retriever-MAZKHYRD.js.map → context-retriever-XHXGVUEY.js.map} +0 -0
  109. /package/dist/{dist-KGTVHDVC.js.map → dist-IKZ53APZ.js.map} +0 -0
  110. /package/dist/{doctor-deep-XCMFGGJ3.js.map → doctor-deep-XQP74G25.js.map} +0 -0
  111. /package/dist/{expert-bridge-EA3U3GKU.js.map → expert-bridge-EFMCUNQF.js.map} +0 -0
  112. /package/dist/{factory-FACKN4IN.js.map → factory-BKQHRDBD.js.map} +0 -0
  113. /package/dist/{factory-Y5WCLQDB.js.map → factory-CVQP6NRC.js.map} +0 -0
  114. /package/dist/{improvement-review-F7TKX4LQ.js.map → improvement-review-QYSR3EFV.js.map} +0 -0
  115. /package/dist/{init-opencode-ZYGGEUZN.js.map → init-opencode-T4IS2ZL3.js.map} +0 -0
  116. /package/dist/{issue-triage-NI2ZDVTB.js.map → issue-triage-XZOIGUH6.js.map} +0 -0
  117. /package/dist/{pr-reviewer-helpers-L7L6O3VQ.js.map → pr-reviewer-helpers-QL7AQV2B.js.map} +0 -0
  118. /package/dist/{registry-command-K2KWID5D.js.map → registry-command-7ZVOCZDS.js.map} +0 -0
  119. /package/dist/{repo-security-plan-PCGHBEGZ.js.map → repo-security-plan-QE6FKLP3.js.map} +0 -0
  120. /package/dist/{research-helpers-synthesize-R45KXXNH.js.map → research-helpers-synthesize-TUZZ2RKT.js.map} +0 -0
  121. /package/dist/{routing-memory-TLB5EY7J.js.map → routing-memory-UR4FTNY2.js.map} +0 -0
  122. /package/dist/{session-memory-PUEUWVIN.js.map → session-memory-FHNRO6NH.js.map} +0 -0
  123. /package/dist/{setup-command-OHM6K4FM.js.map → setup-command-PY7K5NAV.js.map} +0 -0
  124. /package/dist/{setup-config-SLFGQ5F2.js.map → setup-config-XZXECJIV.js.map} +0 -0
  125. /package/dist/{setup-custom-api-SVCRCSKY.js.map → setup-custom-api-IFMSGLN4.js.map} +0 -0
  126. /package/dist/{tool-memory-COQWIFB6.js.map → tool-memory-2SMXZCRS.js.map} +0 -0
  127. /package/dist/{tool-memory-registry-adapters-DLSE4SQH.js.map → tool-memory-registry-adapters-PMMKJQF5.js.map} +0 -0
  128. /package/dist/{unified-registry-44DIG4XK.js.map → unified-registry-5BEYTFNN.js.map} +0 -0
  129. /package/dist/{weather-report-WK7TJPMM.js.map → weather-report-MN2FK2RG.js.map} +0 -0
package/README.md CHANGED
@@ -99,20 +99,22 @@ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/
99
99
 
100
100
  The Orchestrator agent analyzes incoming tasks and delegates to specialized experts:
101
101
 
102
- | Expert | Specialization |
103
- | ------------------------- | ------------------------------------------------------ |
104
- | **Code Expert** | Implementation, debugging, optimization, refactoring |
105
- | **Architecture Expert** | System design, patterns, trade-offs, scalability |
106
- | **Security Expert** | Vulnerability analysis, secure coding, threat modeling |
107
- | **Documentation Expert** | Technical writing, API docs, code comments |
108
- | **Testing Expert** | Test strategies, coverage analysis, test generation |
109
- | **DevOps Expert** | CI/CD, deployment, containerization |
110
- | **Research Expert** | Literature review, state-of-the-art analysis |
111
- | **PM Expert** | Product management, requirements, priorities |
112
- | **UX Expert** | User experience, usability, accessibility |
113
- | **Infrastructure Expert** | Server management, bare metal, networking |
114
-
115
- Experts can collaborate on complex tasks. The Orchestrator combines their outputs into a single response.
102
+ | Expert | Specialization |
103
+ | ----------------------------- | ------------------------------------------------------ |
104
+ | **Code Expert** | Implementation, debugging, optimization, refactoring |
105
+ | **Architecture Expert** | System design, patterns, trade-offs, scalability |
106
+ | **Security Expert** | Vulnerability analysis, secure coding, threat modeling |
107
+ | **Documentation Expert** | Technical writing, API docs, code comments |
108
+ | **Testing Expert** | Test strategies, coverage analysis, test generation |
109
+ | **DevOps Expert** | CI/CD, deployment, containerization |
110
+ | **Research Expert** | Literature review, state-of-the-art analysis |
111
+ | **PM Expert** | Product management, requirements, priorities |
112
+ | **UX Expert** | User experience, usability, accessibility |
113
+ | **Infrastructure Expert** | Server management, bare metal, networking |
114
+ | **QA Expert** | Quality gates, test-plan review, defect triage |
115
+ | **Data-Visualization Expert** | Charts, diagrams, dashboards, data presentation |
116
+
117
+ All twelve expert types can collaborate on complex tasks. The Orchestrator combines their outputs into a single response.
116
118
 
117
119
  ### Model Adapters
118
120
 
@@ -155,7 +157,7 @@ steps:
155
157
 
156
158
  ### MCP Tools
157
159
 
158
- The server exposes 42 MCP tools for integration. Key tools include:
160
+ The server exposes 46 MCP tools for integration. Key tools include:
159
161
 
160
162
  | Tool | Description |
161
163
  | -------------------- | ---------------------------------------------- |
@@ -171,7 +173,7 @@ The server exposes 42 MCP tools for integration. Key tools include:
171
173
  | `repo_analyze` | Analyze GitHub repository structure |
172
174
  | `repo_security_plan` | Generate security scanning pipeline for a repo |
173
175
 
174
- See the root [README](../../README.md) for the complete tool list.
176
+ See the [root README](https://github.com/nexus-substrate/nexus-agents/blob/main/README.md) for the complete tool list.
175
177
 
176
178
  ---
177
179
 
@@ -204,7 +206,7 @@ nexus-agents/
204
206
  └── pnpm-workspace.yaml
205
207
  ```
206
208
 
207
- See [docs/architecture/README.md](../../docs/architecture/README.md) for detailed module descriptions.
209
+ See [docs/architecture/README.md](https://github.com/nexus-substrate/nexus-agents/blob/main/docs/architecture/README.md) for detailed module descriptions.
208
210
 
209
211
  ### Dependency Flow
210
212
 
@@ -280,7 +282,7 @@ import {
280
282
  // Create individual adapters
281
283
  const claude = createClaudeAdapter({ model: 'claude-sonnet-4-6' });
282
284
  const openai = createOpenAIAdapter({ model: 'gpt-4o' });
283
- const gemini = createGeminiAdapter({ model: 'gemini-1.5-pro' });
285
+ const gemini = createGeminiAdapter({ model: 'gemini-3-pro' });
284
286
  const ollama = createOllamaAdapter({ model: 'llama3:8b' });
285
287
 
286
288
  // Or use the factory
@@ -379,11 +381,11 @@ We welcome contributions! Please see our guidelines:
379
381
 
380
382
  - Files must be under 400 lines
381
383
  - Functions must be under 50 lines
382
- - Test coverage must be at least 80%
384
+ - Coverage thresholds: 60% statements/functions/lines, 50% branches (`vitest.config.ts`)
383
385
  - All code must pass linting and type checking
384
386
 
385
- See [CODING_STANDARDS.md](../../CODING_STANDARDS.md) for detailed guidelines.
386
- See [CONTRIBUTING.md](../../CONTRIBUTING.md) for contribution workflow.
387
+ See [CODING_STANDARDS.md](https://github.com/nexus-substrate/nexus-agents/blob/main/CODING_STANDARDS.md) for detailed guidelines.
388
+ See [CONTRIBUTING.md](https://github.com/nexus-substrate/nexus-agents/blob/main/CONTRIBUTING.md) for contribution workflow.
387
389
 
388
390
  ### Commit Convention
389
391
 
@@ -402,7 +404,7 @@ chore(scope): maintenance tasks
402
404
 
403
405
  ## License
404
406
 
405
- MIT - See [LICENSE](../../LICENSE) for details.
407
+ MIT - See [LICENSE](https://github.com/nexus-substrate/nexus-agents/blob/main/LICENSE) for details.
406
408
 
407
409
  ---
408
410
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-KWZC5LFC.js";
3
+ } from "./chunk-ALYAJ7UB.js";
4
4
  import "./chunk-NL7SZQPW.js";
5
5
  import "./chunk-DHVMSIT5.js";
6
6
  import "./chunk-ZPWHCABL.js";
@@ -60,4 +60,4 @@ export {
60
60
  generateMcpConfig,
61
61
  getDefaultAllowedTools
62
62
  };
63
- //# sourceMappingURL=child-mcp-config-LCWPKOYE.js.map
63
+ //# sourceMappingURL=child-mcp-config-3WBDH4XF.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  loadPapersRegistry
3
- } from "./chunk-JFKNUEZ7.js";
3
+ } from "./chunk-MGOCRAXF.js";
4
4
  import {
5
5
  getErrorMessage
6
- } from "./chunk-KWZC5LFC.js";
6
+ } from "./chunk-ALYAJ7UB.js";
7
7
 
8
8
  // src/cli/research-helpers-synthesize.ts
9
9
  import { z } from "zod";
@@ -876,4 +876,4 @@ export {
876
876
  AttributedInsightSchema,
877
877
  synthesizeResearch
878
878
  };
879
- //# sourceMappingURL=chunk-ZJ3WGARD.js.map
879
+ //# sourceMappingURL=chunk-2CPGV7OB.js.map
@@ -15,7 +15,7 @@ import {
15
15
  createLogger,
16
16
  err,
17
17
  ok
18
- } from "./chunk-KWZC5LFC.js";
18
+ } from "./chunk-ALYAJ7UB.js";
19
19
 
20
20
  // src/adapters/sdk/types.ts
21
21
  var PROVIDER_ENV_KEYS = {
@@ -396,4 +396,4 @@ export {
396
396
  CUSTOM_API_DEFAULT_MODEL,
397
397
  DEFAULTS
398
398
  };
399
- //# sourceMappingURL=chunk-DKU7O4V2.js.map
399
+ //# sourceMappingURL=chunk-2GYETCPK.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-XUH2UFSG.js";
4
+ } from "./chunk-FSVDHN6X.js";
5
5
  import {
6
6
  ROLE_DEFAULT_TRUST,
7
7
  ReputationCache,
@@ -11,14 +11,14 @@ import {
11
11
  gateWithReputation,
12
12
  resolveReputationGatingMode,
13
13
  sanitizeInput
14
- } from "./chunk-MNXLJ2VX.js";
14
+ } from "./chunk-NHHSBKFL.js";
15
15
  import {
16
16
  CLI_SUBPROCESS_TIMEOUTS,
17
17
  createLogger,
18
18
  err,
19
19
  getTimeProvider,
20
20
  ok
21
- } from "./chunk-KWZC5LFC.js";
21
+ } from "./chunk-ALYAJ7UB.js";
22
22
 
23
23
  // src/security/trust-classifier.ts
24
24
  function mapAuthorAssociation(association) {
@@ -1401,4 +1401,4 @@ export {
1401
1401
  IssueTriage,
1402
1402
  createIssueTriage
1403
1403
  };
1404
- //# sourceMappingURL=chunk-MXDMJGVG.js.map
1404
+ //# sourceMappingURL=chunk-2ML4HOUH.js.map
@@ -2,7 +2,7 @@ import {
2
2
  TASK_CATEGORIES,
3
3
  getAdaptiveBonus,
4
4
  getOutcomeStore
5
- } from "./chunk-KWZC5LFC.js";
5
+ } from "./chunk-ALYAJ7UB.js";
6
6
 
7
7
  // src/cli/doctor-deep.ts
8
8
  var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
@@ -106,4 +106,4 @@ export {
106
106
  runDeepDiagnostics,
107
107
  formatDeepDiagnostics
108
108
  };
109
- //# sourceMappingURL=chunk-Q3EZN3Z2.js.map
109
+ //# sourceMappingURL=chunk-4YCIRCEJ.js.map
@@ -5,17 +5,17 @@ import {
5
5
  } from "./chunk-6T3EPABN.js";
6
6
  import {
7
7
  SessionMemory
8
- } from "./chunk-D2XWKFZ2.js";
8
+ } from "./chunk-IVUFSLFJ.js";
9
9
  import {
10
10
  StatsOnlyAdapter,
11
11
  ensureSharedMemoryRegistry
12
- } from "./chunk-RER74KD6.js";
12
+ } from "./chunk-PINS44XA.js";
13
13
  import {
14
14
  getMemoryRegistry
15
- } from "./chunk-2XRPKJKX.js";
15
+ } from "./chunk-KSQSWEFH.js";
16
16
  import {
17
17
  generateId
18
- } from "./chunk-K62WRHHK.js";
18
+ } from "./chunk-PI5QEJ54.js";
19
19
  import {
20
20
  ErrorCode,
21
21
  NexusError,
@@ -28,7 +28,7 @@ import {
28
28
  getTimeProvider,
29
29
  ok,
30
30
  setSharedMobiMemDbPathResolver
31
- } from "./chunk-KWZC5LFC.js";
31
+ } from "./chunk-ALYAJ7UB.js";
32
32
  import {
33
33
  nexusDataPath
34
34
  } from "./chunk-DHVMSIT5.js";
@@ -3835,7 +3835,7 @@ var SemanticMemoryImpl = class {
3835
3835
  tags: ["semantic", fact.domain, fact.subject]
3836
3836
  };
3837
3837
  if (fact.validUntil !== void 0) {
3838
- meta.ttl = fact.validUntil.getTime() - getTimeProvider().now();
3838
+ meta.ttl = Math.max(1, fact.validUntil.getTime() - getTimeProvider().now());
3839
3839
  }
3840
3840
  return this.backend.store(`semantic:${fact.factId}`, fact, meta);
3841
3841
  }
@@ -3957,7 +3957,7 @@ var KnowledgeVaultImpl = class {
3957
3957
  const tags = ["vault", entry.category, entry.importance, ...entry.tags ?? []];
3958
3958
  const meta = { importance, tags };
3959
3959
  if (entry.expiresAt !== void 0) {
3960
- meta.ttl = entry.expiresAt.getTime() - getTimeProvider().now();
3960
+ meta.ttl = Math.max(1, entry.expiresAt.getTime() - getTimeProvider().now());
3961
3961
  }
3962
3962
  return this.backend.store(`vault:${entry.vaultId}`, entry, meta);
3963
3963
  }
@@ -5552,4 +5552,4 @@ export {
5552
5552
  reinitializeMemoryBackends,
5553
5553
  ToolMemoryManager
5554
5554
  };
5555
- //# sourceMappingURL=chunk-J2HWO3J3.js.map
5555
+ //# sourceMappingURL=chunk-63XGRODH.js.map