nexus-agents 11.4.0 → 11.4.2

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 (133) hide show
  1. package/dist/{ast-rule-runner-725WWM62.js → ast-rule-runner-UZS3CBHO.js} +5 -5
  2. package/dist/{child-mcp-config-XILEOWB5.js → child-mcp-config-353PE3ID.js} +4 -4
  3. package/dist/{chunk-XXNSAOCH.js → chunk-2FY4QM42.js} +3 -3
  4. package/dist/{chunk-3JF47YAU.js → chunk-2PN4CAL2.js} +4 -4
  5. package/dist/{chunk-EL4XXJM6.js → chunk-54UNI6GV.js} +4 -4
  6. package/dist/{chunk-VIJSBKRY.js → chunk-5CSM473L.js} +3 -3
  7. package/dist/{chunk-PPH3CAMR.js → chunk-6RP53JXS.js} +4 -4
  8. package/dist/{chunk-I34P7L4Z.js → chunk-6U3GRS6B.js} +36 -27
  9. package/dist/chunk-6U3GRS6B.js.map +1 -0
  10. package/dist/{chunk-HHOSB6LL.js → chunk-7LW3PMQS.js} +37 -37
  11. package/dist/{chunk-R4ZN6AQO.js → chunk-BPO2LQ67.js} +4 -4
  12. package/dist/{chunk-M44B64SR.js → chunk-CVOE6Q56.js} +2 -2
  13. package/dist/{chunk-XAEGIDWX.js → chunk-CVT26QN5.js} +8 -8
  14. package/dist/{chunk-G6KGFOCE.js → chunk-DS6X6MFM.js} +2 -2
  15. package/dist/{chunk-RGTJML3H.js → chunk-EOIUMPFK.js} +2 -2
  16. package/dist/{chunk-WRNLFRB5.js → chunk-J7UDMLPP.js} +2 -2
  17. package/dist/{chunk-NUEO6DH6.js → chunk-JDL5WJDM.js} +2 -2
  18. package/dist/{chunk-SN5FNPUR.js → chunk-JQ4JJVH2.js} +2 -2
  19. package/dist/{chunk-QDCUEJQW.js → chunk-KCESFTXP.js} +2 -2
  20. package/dist/{chunk-T3SLFKSX.js → chunk-KSGJB4AF.js} +2 -2
  21. package/dist/{chunk-ORYATV3T.js → chunk-M7JXKUFB.js} +7 -7
  22. package/dist/{chunk-3WOPUDGR.js → chunk-ME7LKSBK.js} +4 -4
  23. package/dist/{chunk-HF36DB2G.js → chunk-MOILTUAB.js} +13 -13
  24. package/dist/{chunk-YGD52X37.js → chunk-MPYHD4EV.js} +2 -2
  25. package/dist/{chunk-24CFATEC.js → chunk-NSELDEAX.js} +2 -2
  26. package/dist/{chunk-3W65DEPM.js → chunk-P3ZQVHQA.js} +2 -2
  27. package/dist/{chunk-CVHLQFUX.js → chunk-PAYKBSXM.js} +13 -13
  28. package/dist/{chunk-QBZZGFWK.js → chunk-RGDZIWGS.js} +6 -6
  29. package/dist/{chunk-JYZLBQ7M.js → chunk-RYSLBVMQ.js} +3 -3
  30. package/dist/{chunk-YEWHPFMD.js → chunk-UMLKKXBD.js} +3 -3
  31. package/dist/{chunk-C4ZXUDDS.js → chunk-V552SY6A.js} +2 -2
  32. package/dist/{chunk-RWZIF3UK.js → chunk-VKK7ZGSY.js} +4 -4
  33. package/dist/{chunk-RDUMFICX.js → chunk-WTZULRPO.js} +2 -2
  34. package/dist/{chunk-JEESPQIQ.js → chunk-Y5YOOAXF.js} +2 -2
  35. package/dist/{chunk-5LBCX3I4.js → chunk-YZXCE5BB.js} +5 -5
  36. package/dist/{chunk-SRAMHULV.js → chunk-ZSPGTD4X.js} +7 -7
  37. package/dist/{cli-circuit-breaker-UO6DRFZD.js → cli-circuit-breaker-4SM3OLUD.js} +5 -5
  38. package/dist/{cli-readiness-XPZNJLCW.js → cli-readiness-JJVQULXD.js} +8 -8
  39. package/dist/{cli-server-gateway-AWEOQD4E.js → cli-server-gateway-TYVCEQBQ.js} +12 -12
  40. package/dist/cli.js +43 -43
  41. package/dist/{composite-router-S4ZOD4GS.js → composite-router-56G2NJCH.js} +4 -4
  42. package/dist/{consensus-vote-36TUM35R.js → consensus-vote-CE7X66SQ.js} +16 -16
  43. package/dist/{context-retriever-ZKIAEF43.js → context-retriever-AUOD3LIJ.js} +10 -10
  44. package/dist/{doctor-deep-FCSBGTAN.js → doctor-deep-KMMW2MTJ.js} +5 -5
  45. package/dist/{doctor-gateway-report-2QH7JMEO.js → doctor-gateway-report-AOH2I4UJ.js} +7 -7
  46. package/dist/{doctor-live-PMYIFAWV.js → doctor-live-2IVCCWSN.js} +12 -12
  47. package/dist/{expert-bridge-S6WYRFOU.js → expert-bridge-PREN4ZL3.js} +6 -6
  48. package/dist/{factory-55RVYW75.js → factory-3YILRPOA.js} +11 -11
  49. package/dist/{factory-CKEO6H4B.js → factory-KPCJR5RB.js} +7 -7
  50. package/dist/{improvement-review-NHXRFXMD.js → improvement-review-MZMOSJM2.js} +7 -7
  51. package/dist/index.d.ts +1 -1
  52. package/dist/index.js +29 -29
  53. package/dist/{init-opencode-IL32T2AA.js → init-opencode-V4G5WYRL.js} +6 -6
  54. package/dist/{issue-triage-6BEBWXMY.js → issue-triage-WZZTRX4K.js} +7 -7
  55. package/dist/{model-config-helpers-A32ALQ5R.js → model-config-helpers-BC4JYVUU.js} +3 -3
  56. package/dist/{openai-compat-adapter-WK3Q5GR7.js → openai-compat-adapter-7NPALXRG.js} +6 -6
  57. package/dist/{pr-reviewer-helpers-BB3QNAWD.js → pr-reviewer-helpers-O6URR7XX.js} +5 -5
  58. package/dist/{registry-command-JYPM6LXE.js → registry-command-T3NTED3I.js} +2 -2
  59. package/dist/{repo-security-plan-56ZPEFGG.js → repo-security-plan-BACXPNX3.js} +4 -4
  60. package/dist/{research-helpers-synthesize-B4KYVM4T.js → research-helpers-synthesize-IWS2XZQN.js} +6 -6
  61. package/dist/{routing-memory-KVLCI3TU.js → routing-memory-EO7VG7R3.js} +4 -4
  62. package/dist/{session-memory-SYCL2GCL.js → session-memory-4GX3WTEB.js} +5 -5
  63. package/dist/{setup-config-OWLLNO6I.js → setup-config-JYHG3SGD.js} +5 -5
  64. package/dist/{setup-custom-api-TI6REX7V.js → setup-custom-api-GF66FJBO.js} +5 -5
  65. package/dist/{setup-data-dir-UQOVBXCR.js → setup-data-dir-ZJMIJWQ2.js} +15 -15
  66. package/dist/{tool-memory-Z3M7LGS4.js → tool-memory-IS2S7SYW.js} +7 -7
  67. package/dist/{unified-registry-I54IDLWC.js → unified-registry-IZ46TOAY.js} +11 -11
  68. package/dist/{weather-report-3MRZJISW.js → weather-report-MLERG4SM.js} +4 -4
  69. package/package.json +4 -4
  70. package/dist/chunk-I34P7L4Z.js.map +0 -1
  71. /package/dist/{ast-rule-runner-725WWM62.js.map → ast-rule-runner-UZS3CBHO.js.map} +0 -0
  72. /package/dist/{child-mcp-config-XILEOWB5.js.map → child-mcp-config-353PE3ID.js.map} +0 -0
  73. /package/dist/{chunk-XXNSAOCH.js.map → chunk-2FY4QM42.js.map} +0 -0
  74. /package/dist/{chunk-3JF47YAU.js.map → chunk-2PN4CAL2.js.map} +0 -0
  75. /package/dist/{chunk-EL4XXJM6.js.map → chunk-54UNI6GV.js.map} +0 -0
  76. /package/dist/{chunk-VIJSBKRY.js.map → chunk-5CSM473L.js.map} +0 -0
  77. /package/dist/{chunk-PPH3CAMR.js.map → chunk-6RP53JXS.js.map} +0 -0
  78. /package/dist/{chunk-HHOSB6LL.js.map → chunk-7LW3PMQS.js.map} +0 -0
  79. /package/dist/{chunk-R4ZN6AQO.js.map → chunk-BPO2LQ67.js.map} +0 -0
  80. /package/dist/{chunk-M44B64SR.js.map → chunk-CVOE6Q56.js.map} +0 -0
  81. /package/dist/{chunk-XAEGIDWX.js.map → chunk-CVT26QN5.js.map} +0 -0
  82. /package/dist/{chunk-G6KGFOCE.js.map → chunk-DS6X6MFM.js.map} +0 -0
  83. /package/dist/{chunk-RGTJML3H.js.map → chunk-EOIUMPFK.js.map} +0 -0
  84. /package/dist/{chunk-WRNLFRB5.js.map → chunk-J7UDMLPP.js.map} +0 -0
  85. /package/dist/{chunk-NUEO6DH6.js.map → chunk-JDL5WJDM.js.map} +0 -0
  86. /package/dist/{chunk-SN5FNPUR.js.map → chunk-JQ4JJVH2.js.map} +0 -0
  87. /package/dist/{chunk-QDCUEJQW.js.map → chunk-KCESFTXP.js.map} +0 -0
  88. /package/dist/{chunk-T3SLFKSX.js.map → chunk-KSGJB4AF.js.map} +0 -0
  89. /package/dist/{chunk-ORYATV3T.js.map → chunk-M7JXKUFB.js.map} +0 -0
  90. /package/dist/{chunk-3WOPUDGR.js.map → chunk-ME7LKSBK.js.map} +0 -0
  91. /package/dist/{chunk-HF36DB2G.js.map → chunk-MOILTUAB.js.map} +0 -0
  92. /package/dist/{chunk-YGD52X37.js.map → chunk-MPYHD4EV.js.map} +0 -0
  93. /package/dist/{chunk-24CFATEC.js.map → chunk-NSELDEAX.js.map} +0 -0
  94. /package/dist/{chunk-3W65DEPM.js.map → chunk-P3ZQVHQA.js.map} +0 -0
  95. /package/dist/{chunk-CVHLQFUX.js.map → chunk-PAYKBSXM.js.map} +0 -0
  96. /package/dist/{chunk-QBZZGFWK.js.map → chunk-RGDZIWGS.js.map} +0 -0
  97. /package/dist/{chunk-JYZLBQ7M.js.map → chunk-RYSLBVMQ.js.map} +0 -0
  98. /package/dist/{chunk-YEWHPFMD.js.map → chunk-UMLKKXBD.js.map} +0 -0
  99. /package/dist/{chunk-C4ZXUDDS.js.map → chunk-V552SY6A.js.map} +0 -0
  100. /package/dist/{chunk-RWZIF3UK.js.map → chunk-VKK7ZGSY.js.map} +0 -0
  101. /package/dist/{chunk-RDUMFICX.js.map → chunk-WTZULRPO.js.map} +0 -0
  102. /package/dist/{chunk-JEESPQIQ.js.map → chunk-Y5YOOAXF.js.map} +0 -0
  103. /package/dist/{chunk-5LBCX3I4.js.map → chunk-YZXCE5BB.js.map} +0 -0
  104. /package/dist/{chunk-SRAMHULV.js.map → chunk-ZSPGTD4X.js.map} +0 -0
  105. /package/dist/{cli-circuit-breaker-UO6DRFZD.js.map → cli-circuit-breaker-4SM3OLUD.js.map} +0 -0
  106. /package/dist/{cli-readiness-XPZNJLCW.js.map → cli-readiness-JJVQULXD.js.map} +0 -0
  107. /package/dist/{cli-server-gateway-AWEOQD4E.js.map → cli-server-gateway-TYVCEQBQ.js.map} +0 -0
  108. /package/dist/{composite-router-S4ZOD4GS.js.map → composite-router-56G2NJCH.js.map} +0 -0
  109. /package/dist/{consensus-vote-36TUM35R.js.map → consensus-vote-CE7X66SQ.js.map} +0 -0
  110. /package/dist/{context-retriever-ZKIAEF43.js.map → context-retriever-AUOD3LIJ.js.map} +0 -0
  111. /package/dist/{doctor-deep-FCSBGTAN.js.map → doctor-deep-KMMW2MTJ.js.map} +0 -0
  112. /package/dist/{doctor-gateway-report-2QH7JMEO.js.map → doctor-gateway-report-AOH2I4UJ.js.map} +0 -0
  113. /package/dist/{doctor-live-PMYIFAWV.js.map → doctor-live-2IVCCWSN.js.map} +0 -0
  114. /package/dist/{expert-bridge-S6WYRFOU.js.map → expert-bridge-PREN4ZL3.js.map} +0 -0
  115. /package/dist/{factory-55RVYW75.js.map → factory-3YILRPOA.js.map} +0 -0
  116. /package/dist/{factory-CKEO6H4B.js.map → factory-KPCJR5RB.js.map} +0 -0
  117. /package/dist/{improvement-review-NHXRFXMD.js.map → improvement-review-MZMOSJM2.js.map} +0 -0
  118. /package/dist/{init-opencode-IL32T2AA.js.map → init-opencode-V4G5WYRL.js.map} +0 -0
  119. /package/dist/{issue-triage-6BEBWXMY.js.map → issue-triage-WZZTRX4K.js.map} +0 -0
  120. /package/dist/{model-config-helpers-A32ALQ5R.js.map → model-config-helpers-BC4JYVUU.js.map} +0 -0
  121. /package/dist/{openai-compat-adapter-WK3Q5GR7.js.map → openai-compat-adapter-7NPALXRG.js.map} +0 -0
  122. /package/dist/{pr-reviewer-helpers-BB3QNAWD.js.map → pr-reviewer-helpers-O6URR7XX.js.map} +0 -0
  123. /package/dist/{registry-command-JYPM6LXE.js.map → registry-command-T3NTED3I.js.map} +0 -0
  124. /package/dist/{repo-security-plan-56ZPEFGG.js.map → repo-security-plan-BACXPNX3.js.map} +0 -0
  125. /package/dist/{research-helpers-synthesize-B4KYVM4T.js.map → research-helpers-synthesize-IWS2XZQN.js.map} +0 -0
  126. /package/dist/{routing-memory-KVLCI3TU.js.map → routing-memory-EO7VG7R3.js.map} +0 -0
  127. /package/dist/{session-memory-SYCL2GCL.js.map → session-memory-4GX3WTEB.js.map} +0 -0
  128. /package/dist/{setup-config-OWLLNO6I.js.map → setup-config-JYHG3SGD.js.map} +0 -0
  129. /package/dist/{setup-custom-api-TI6REX7V.js.map → setup-custom-api-GF66FJBO.js.map} +0 -0
  130. /package/dist/{setup-data-dir-UQOVBXCR.js.map → setup-data-dir-ZJMIJWQ2.js.map} +0 -0
  131. /package/dist/{tool-memory-Z3M7LGS4.js.map → tool-memory-IS2S7SYW.js.map} +0 -0
  132. /package/dist/{unified-registry-I54IDLWC.js.map → unified-registry-IZ46TOAY.js.map} +0 -0
  133. /package/dist/{weather-report-3MRZJISW.js.map → weather-report-MLERG4SM.js.map} +0 -0
@@ -9,11 +9,11 @@ import {
9
9
  getBuiltInAstRulesPath,
10
10
  loadRules,
11
11
  runAstQaRules
12
- } from "./chunk-RGTJML3H.js";
13
- import "./chunk-ORYATV3T.js";
12
+ } from "./chunk-EOIUMPFK.js";
13
+ import "./chunk-M7JXKUFB.js";
14
14
  import "./chunk-XBEKMUTO.js";
15
- import "./chunk-G6KGFOCE.js";
16
- import "./chunk-24CFATEC.js";
15
+ import "./chunk-DS6X6MFM.js";
16
+ import "./chunk-NSELDEAX.js";
17
17
  import "./chunk-RUHKJC3X.js";
18
18
  import "./chunk-UFAK5UGH.js";
19
19
  import "./chunk-GR6WCJWY.js";
@@ -34,4 +34,4 @@ export {
34
34
  loadRules,
35
35
  runAstQaRules
36
36
  };
37
- //# sourceMappingURL=ast-rule-runner-725WWM62.js.map
37
+ //# sourceMappingURL=ast-rule-runner-UZS3CBHO.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  nexusMkdtempSync
3
3
  } from "./chunk-U7HL7FGS.js";
4
- import "./chunk-ORYATV3T.js";
4
+ import "./chunk-M7JXKUFB.js";
5
5
  import "./chunk-XBEKMUTO.js";
6
- import "./chunk-G6KGFOCE.js";
7
- import "./chunk-24CFATEC.js";
6
+ import "./chunk-DS6X6MFM.js";
7
+ import "./chunk-NSELDEAX.js";
8
8
  import "./chunk-RUHKJC3X.js";
9
9
  import "./chunk-UFAK5UGH.js";
10
10
  import {
@@ -81,4 +81,4 @@ async function generateMcpConfig(options) {
81
81
  export {
82
82
  generateMcpConfig
83
83
  };
84
- //# sourceMappingURL=child-mcp-config-XILEOWB5.js.map
84
+ //# sourceMappingURL=child-mcp-config-353PE3ID.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-JEESPQIQ.js";
8
+ } from "./chunk-Y5YOOAXF.js";
9
9
  import {
10
10
  DEFAULT_EXECUTION_MODE
11
11
  } from "./chunk-TYLE7Z2S.js";
@@ -24,7 +24,7 @@ import {
24
24
  getErrorMessage,
25
25
  ok,
26
26
  resolveInsideRoot
27
- } from "./chunk-ORYATV3T.js";
27
+ } from "./chunk-M7JXKUFB.js";
28
28
  import {
29
29
  createLogger,
30
30
  getTimeProvider
@@ -2345,4 +2345,4 @@ export {
2345
2345
  DEFAULT_CONSENSUS_CONFIG,
2346
2346
  ConsensusMetricsSchema
2347
2347
  };
2348
- //# sourceMappingURL=chunk-XXNSAOCH.js.map
2348
+ //# sourceMappingURL=chunk-2FY4QM42.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GitHubProvider,
3
3
  ScmError
4
- } from "./chunk-WRNLFRB5.js";
4
+ } from "./chunk-J7UDMLPP.js";
5
5
  import {
6
6
  resolveToken
7
- } from "./chunk-QDCUEJQW.js";
7
+ } from "./chunk-KCESFTXP.js";
8
8
  import {
9
9
  err,
10
10
  ok
11
- } from "./chunk-ORYATV3T.js";
11
+ } from "./chunk-M7JXKUFB.js";
12
12
 
13
13
  // src/scm/factory.ts
14
14
  async function createScmProvider(config) {
@@ -41,4 +41,4 @@ export {
41
41
  createScmProvider,
42
42
  createGitHubProvider
43
43
  };
44
- //# sourceMappingURL=chunk-3JF47YAU.js.map
44
+ //# sourceMappingURL=chunk-2PN4CAL2.js.map
@@ -3,7 +3,7 @@ import {
3
3
  hostnameOf,
4
4
  redactGatewaySecrets,
5
5
  validateCustomApiBaseUrl
6
- } from "./chunk-YGD52X37.js";
6
+ } from "./chunk-MPYHD4EV.js";
7
7
  import {
8
8
  REDACTED_KEY_PLACEHOLDER,
9
9
  sanitizeErrorDetails
@@ -33,11 +33,11 @@ import {
33
33
  recordUsageEvent,
34
34
  refineGatewayCatalog,
35
35
  resolveRetryAfterMs
36
- } from "./chunk-ORYATV3T.js";
36
+ } from "./chunk-M7JXKUFB.js";
37
37
  import {
38
38
  getCliModelName,
39
39
  lookupInTreeCapability
40
- } from "./chunk-G6KGFOCE.js";
40
+ } from "./chunk-DS6X6MFM.js";
41
41
  import {
42
42
  isEndpointArmId
43
43
  } from "./chunk-UFAK5UGH.js";
@@ -2400,4 +2400,4 @@ export {
2400
2400
  createOpenAICompatClient,
2401
2401
  buildOpenAICompatAdapters
2402
2402
  };
2403
- //# sourceMappingURL=chunk-EL4XXJM6.js.map
2403
+ //# sourceMappingURL=chunk-54UNI6GV.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  IN_FAMILY_FALLBACK_OPTION
3
- } from "./chunk-QBZZGFWK.js";
3
+ } from "./chunk-RGDZIWGS.js";
4
4
  import {
5
5
  sanitizeErrorDetails
6
6
  } from "./chunk-7LKX7AUQ.js";
7
7
  import {
8
8
  classifyExtractedError,
9
9
  isTimeoutText
10
- } from "./chunk-ORYATV3T.js";
10
+ } from "./chunk-M7JXKUFB.js";
11
11
  import {
12
12
  getTimeProvider
13
13
  } from "./chunk-GR6WCJWY.js";
@@ -158,4 +158,4 @@ export {
158
158
  SERVES_PROBE_PROMPT,
159
159
  probeServes
160
160
  };
161
- //# sourceMappingURL=chunk-VIJSBKRY.js.map
161
+ //# sourceMappingURL=chunk-5CSM473L.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZO6ZKR7L.js";
4
4
  import {
5
5
  SessionMemory
6
- } from "./chunk-M44B64SR.js";
6
+ } from "./chunk-CVOE6Q56.js";
7
7
  import {
8
8
  TRUST_TIER_NUMERIC,
9
9
  TrustTierSchema
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ROYGBFVE.js";
18
18
  import {
19
19
  generateId
20
- } from "./chunk-T3SLFKSX.js";
20
+ } from "./chunk-KSGJB4AF.js";
21
21
  import {
22
22
  ErrorCode,
23
23
  NexusError,
@@ -32,7 +32,7 @@ import {
32
32
  stringifyValue,
33
33
  tokenize,
34
34
  tokenizeFiltered
35
- } from "./chunk-ORYATV3T.js";
35
+ } from "./chunk-M7JXKUFB.js";
36
36
  import {
37
37
  createLogger,
38
38
  getTimeProvider
@@ -5843,4 +5843,4 @@ export {
5843
5843
  shutdownToolMemory,
5844
5844
  ToolMemoryManager
5845
5845
  };
5846
- //# sourceMappingURL=chunk-PPH3CAMR.js.map
5846
+ //# sourceMappingURL=chunk-6RP53JXS.js.map
@@ -3,7 +3,7 @@ import {
3
3
  gatewayDiscoveryGeneration,
4
4
  gatewayDiscoveryStatus,
5
5
  getAvailabilityCache
6
- } from "./chunk-RWZIF3UK.js";
6
+ } from "./chunk-VKK7ZGSY.js";
7
7
  import {
8
8
  extractSystemPrompt
9
9
  } from "./chunk-QZUG667L.js";
@@ -26,14 +26,14 @@ import {
26
26
  validateApiKeyPresence,
27
27
  validateOpenAICompatBaseUrl,
28
28
  withGatewayUsageRecording
29
- } from "./chunk-EL4XXJM6.js";
29
+ } from "./chunk-54UNI6GV.js";
30
30
  import {
31
31
  hostnameOf,
32
32
  readCustomApiSurface,
33
33
  readDirectOpenAiSurface,
34
34
  readGatewayEnv,
35
35
  redactApiKey
36
- } from "./chunk-YGD52X37.js";
36
+ } from "./chunk-MPYHD4EV.js";
37
37
  import {
38
38
  probeCli
39
39
  } from "./chunk-JZYTBKAP.js";
@@ -48,11 +48,11 @@ import {
48
48
  getTimeoutForTask,
49
49
  listModelsForCli,
50
50
  spawnCwd
51
- } from "./chunk-QBZZGFWK.js";
51
+ } from "./chunk-RGDZIWGS.js";
52
52
  import {
53
53
  getCliCircuitBreakerSnapshot,
54
54
  getDefaultCliCircuitBreakerRegistry
55
- } from "./chunk-3W65DEPM.js";
55
+ } from "./chunk-P3ZQVHQA.js";
56
56
  import {
57
57
  sanitizeOutput
58
58
  } from "./chunk-7LKX7AUQ.js";
@@ -110,7 +110,7 @@ import {
110
110
  unenforcedAccessModeRefusal,
111
111
  warnIfGatewayCostUndeclared,
112
112
  withEnforcedAccessMode
113
- } from "./chunk-ORYATV3T.js";
113
+ } from "./chunk-M7JXKUFB.js";
114
114
  import {
115
115
  FALLBACK_CONTEXT_WINDOW,
116
116
  FALLBACK_MAX_OUTPUT,
@@ -123,7 +123,7 @@ import {
123
123
  getInTreeCapabilitiesMatrix,
124
124
  resolveCliAlias,
125
125
  resolveCliModelName
126
- } from "./chunk-G6KGFOCE.js";
126
+ } from "./chunk-DS6X6MFM.js";
127
127
  import {
128
128
  apiArmId,
129
129
  isCliName,
@@ -808,6 +808,8 @@ function extractAiSdkFunctions(mod) {
808
808
  const generateText = mod["generateText"];
809
809
  const streamText = mod["streamText"];
810
810
  const generateObject = mod["generateObject"];
811
+ const output = mod["Output"];
812
+ const objectOutput = typeof output === "object" && output !== null ? output["object"] : void 0;
811
813
  const jsonSchema = mod["jsonSchema"];
812
814
  if (typeof generateText !== "function") {
813
815
  throw new Error("AI SDK module missing expected export: 'generateText'");
@@ -818,6 +820,9 @@ function extractAiSdkFunctions(mod) {
818
820
  if (typeof generateObject !== "function") {
819
821
  throw new Error("AI SDK module missing expected export: 'generateObject'");
820
822
  }
823
+ if (typeof objectOutput !== "function") {
824
+ throw new Error("AI SDK module missing expected export: 'Output.object'");
825
+ }
821
826
  if (typeof jsonSchema !== "function") {
822
827
  throw new Error("AI SDK module missing expected export: 'jsonSchema'");
823
828
  }
@@ -825,20 +830,22 @@ function extractAiSdkFunctions(mod) {
825
830
  generateText,
826
831
  streamText,
827
832
  generateObject,
833
+ objectOutput,
828
834
  jsonSchema
829
835
  };
830
836
  }
831
- function isGenerateObjectResult(value) {
837
+ function isStructuredTextResult(value) {
832
838
  if (typeof value !== "object" || value === null) return false;
833
839
  const record = value;
834
- if (!("object" in record)) return false;
840
+ if (typeof record["text"] !== "string" || !("output" in record)) return false;
835
841
  if (typeof record["finishReason"] !== "string") return false;
836
842
  const usage = record["usage"];
837
843
  if (typeof usage !== "object" || usage === null) return false;
838
- const response = record["response"];
844
+ return hasModelId(record["response"]);
845
+ }
846
+ function hasModelId(response) {
839
847
  if (typeof response !== "object" || response === null) return false;
840
- if (typeof response["modelId"] !== "string") return false;
841
- return true;
848
+ return typeof response["modelId"] === "string";
842
849
  }
843
850
  function resolveApiKey(providerId, configKey) {
844
851
  if (configKey !== void 0) return configKey;
@@ -990,8 +997,7 @@ var SdkAdapter = class extends BaseAdapter {
990
997
  }
991
998
  const providerModule = await this.loadProvider(apiKey);
992
999
  this.model = providerModule.model;
993
- const aiModule = await import("ai");
994
- this.sdkFunctions = extractAiSdkFunctions(aiModule);
1000
+ this.sdkFunctions = extractAiSdkFunctions(await import("ai"));
995
1001
  }
996
1002
  /**
997
1003
  * Loads the provider-specific AI SDK module.
@@ -1033,6 +1039,8 @@ var SdkAdapter = class extends BaseAdapter {
1033
1039
  buildSdkOptions(request) {
1034
1040
  const options = {
1035
1041
  model: this.model,
1042
+ // AI SDK 7 requires opt-in to preserve our system-role message contract.
1043
+ allowSystemInMessages: true,
1036
1044
  messages: request.messages.map((m) => ({
1037
1045
  role: m.role === "system" ? "system" : m.role,
1038
1046
  content: typeof m.content === "string" ? m.content : m.content.map((c) => {
@@ -1049,7 +1057,7 @@ var SdkAdapter = class extends BaseAdapter {
1049
1057
  options["temperature"] = plan.temperature;
1050
1058
  }
1051
1059
  if (request.maxTokens !== void 0) {
1052
- options["maxTokens"] = request.maxTokens;
1060
+ options["maxOutputTokens"] = request.maxTokens;
1053
1061
  }
1054
1062
  if (request.stop !== void 0) {
1055
1063
  options["stopSequences"] = request.stop;
@@ -1076,7 +1084,7 @@ var SdkAdapter = class extends BaseAdapter {
1076
1084
  };
1077
1085
  }
1078
1086
  /**
1079
- * generateObject path (#3433) — json_object / json_schema responseFormat.
1087
+ * Structured generateText path (#3433) — json_object / json_schema responseFormat.
1080
1088
  *
1081
1089
  * Uses the AI SDK `jsonSchema` helper to build the schema handle
1082
1090
  * (permissive `{ type: 'object' }` for json_object), then stringifies the
@@ -1086,21 +1094,22 @@ var SdkAdapter = class extends BaseAdapter {
1086
1094
  async completeStructured(sdk, options, responseFormat) {
1087
1095
  const rawSchema = responseFormat.type === "json_schema" ? responseFormat.schema : { type: "object" };
1088
1096
  const schema = sdk.jsonSchema(rawSchema);
1089
- const result = await sdk.generateObject({ ...options, schema });
1090
- if (!isGenerateObjectResult(result)) {
1097
+ const result = await sdk.generateText({
1098
+ ...options,
1099
+ output: sdk.objectOutput({ schema })
1100
+ });
1101
+ if (!isStructuredTextResult(result)) {
1091
1102
  throw new Error(
1092
- "AI SDK generateObject returned an unexpected result shape (missing object/usage/finishReason/response.modelId)"
1103
+ "AI SDK generateText returned an unexpected structured result shape (missing text/output/usage/finishReason/response.modelId)"
1093
1104
  );
1094
1105
  }
1095
- assertValidCompletion(
1096
- `${this.providerId}/${this.modelId}`,
1097
- result.finishReason,
1098
- result.object !== null && result.object !== void 0,
1099
- result.response.modelId
1100
- );
1106
+ const { finishReason, response } = result;
1107
+ const source = `${this.providerId}/${this.modelId}`;
1108
+ assertValidCompletion(source, finishReason, result.text.trim() !== "", response.modelId);
1109
+ const output = result.output;
1101
1110
  const usage = mapSdkUsage(result.usage);
1102
1111
  return {
1103
- content: [{ type: "text", text: JSON.stringify(result.object) }],
1112
+ content: [{ type: "text", text: JSON.stringify(output) }],
1104
1113
  ...usage !== void 0 ? { usage } : {},
1105
1114
  stopReason: mapFinishReason(result.finishReason),
1106
1115
  model: result.response.modelId
@@ -5204,4 +5213,4 @@ export {
5204
5213
  getGlobalRegistry,
5205
5214
  resetGlobalRegistry
5206
5215
  };
5207
- //# sourceMappingURL=chunk-I34P7L4Z.js.map
5216
+ //# sourceMappingURL=chunk-6U3GRS6B.js.map