nolo-cli 0.251.0-alpha.1 → 0.252.0-alpha.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 (169) hide show
  1. package/{_executeModel-55PHWQWB.js → _executeModel-RXHY2BDR.js} +47 -47
  2. package/{action-WZTKEF5H.js → action-4MADDU52.js} +5 -5
  3. package/{addContentAction-LBVAQUF7.js → addContentAction-F4XO3VRF.js} +8 -8
  4. package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-NSCVHTZJ.js} +7 -7
  5. package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-EJAI2VTH.js} +69 -68
  6. package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-YBKHZMMZ.js} +69 -68
  7. package/{agentListCommands-L3TLPLNH.js → agentListCommands-M2KYLAOB.js} +226 -39
  8. package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-GLY6NJWZ.js} +31 -29
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-JANPX6XI.js} +68 -67
  11. package/{agentRunCommand-POL6B6BO.js → agentRunCommand-TNLAXLUU.js} +68 -67
  12. package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
  13. package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-EOW6FFXL.js} +26 -25
  14. package/{agentSlice-3G2YLTA4.js → agentSlice-PVFGBJXB.js} +8 -8
  15. package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-3VCRRWUX.js} +33 -31
  16. package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-XN6IEMYK.js} +33 -31
  17. package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-ZSJJXMVR.js} +33 -31
  18. package/{appGetCommands-GOOKYMKO.js → appGetCommands-DJ7YQCEE.js} +33 -31
  19. package/{appListCommands-OBCGUG3S.js → appListCommands-4KU5CV5H.js} +33 -31
  20. package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
  21. package/{builtinSkillRegistry-PFTTFPWW.js → builtinSkillRegistry-PQWEXSFW.js} +1 -1
  22. package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
  23. package/{chunk-LOXR4TQN.js → chunk-25GCVHBZ.js} +2 -2
  24. package/{chunk-A55E2OCP.js → chunk-26KL6533.js} +639 -125
  25. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  26. package/{chunk-CUYFRVJF.js → chunk-2HF6DINU.js} +6 -6
  27. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  28. package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
  29. package/{chunk-43VT5PLM.js → chunk-3LL5HRIJ.js} +1 -1
  30. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  31. package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
  32. package/{chunk-OQCAHPDQ.js → chunk-5QEOTC35.js} +4 -4
  33. package/{chunk-R7D5SRAZ.js → chunk-5UYDG6HP.js} +17 -0
  34. package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
  35. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  36. package/{chunk-UCMUXZJV.js → chunk-7XO73H5X.js} +111 -1
  37. package/{chunk-222CJNC2.js → chunk-BLBGVSLB.js} +3 -3
  38. package/{chunk-ZM5AZTQG.js → chunk-BTQU2PRC.js} +19 -7
  39. package/{chunk-QJ5YDTEF.js → chunk-BVCCRSGK.js} +42 -24
  40. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  41. package/chunk-CGSIW2KI.js +594 -0
  42. package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
  43. package/{chunk-Q5KZ6F55.js → chunk-CSTCYYCR.js} +19 -17
  44. package/{chunk-D3E5MYXO.js → chunk-CYGFNMCH.js} +1 -1
  45. package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
  46. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  47. package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
  48. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  49. package/{chunk-D35TOEMM.js → chunk-EPBEZKYK.js} +137 -53
  50. package/{chunk-KJDN2YRH.js → chunk-EQJK6LSN.js} +4 -4
  51. package/{chunk-N3SEV3CG.js → chunk-F6GZFIGR.js} +79 -30
  52. package/{chunk-6UNJ6JGR.js → chunk-FJPVVLP3.js} +4 -4
  53. package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
  54. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  55. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  56. package/{chunk-IFJ6OTI6.js → chunk-GJ4UTSAW.js} +33 -11
  57. package/{chunk-ZKKJZBNO.js → chunk-GUFTHWDO.js} +10 -10
  58. package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
  59. package/{chunk-W2N4OAKM.js → chunk-IQXMWBI6.js} +3 -3
  60. package/chunk-IVK2KT3H.js +209 -0
  61. package/{chunk-PLS2MJVW.js → chunk-J4KLOLYP.js} +4 -4
  62. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  63. package/{chunk-CDIRKCPD.js → chunk-JX2IG37T.js} +153 -153
  64. package/{chunk-TGKAUEV3.js → chunk-K7RWY7JH.js} +14 -11
  65. package/{chunk-5IKKSJYX.js → chunk-KHYSFS3W.js} +76 -2
  66. package/{chunk-K5CIMK3R.js → chunk-KO6JNZCF.js} +115 -57
  67. package/{chunk-XJSEST7D.js → chunk-KQBGXCKM.js} +3 -3
  68. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  69. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  70. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  71. package/{chunk-HD5EKSLF.js → chunk-MDWHMQON.js} +3 -3
  72. package/{chunk-X337N4D6.js → chunk-MOAVLCCM.js} +4 -4
  73. package/{chunk-OARYOLF3.js → chunk-N2MDL5AZ.js} +12 -12
  74. package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
  75. package/{chunk-X3OZ655T.js → chunk-N7UXTVAR.js} +2 -2
  76. package/{chunk-KGOBJAWC.js → chunk-NJDOID7N.js} +207 -94
  77. package/{chunk-NTNX77FI.js → chunk-NRWZHHOB.js} +6 -6
  78. package/{chunk-3ZWJVKFB.js → chunk-NWZRCUHM.js} +84 -40
  79. package/{chunk-HQLCYPL4.js → chunk-OB4FBZXJ.js} +4 -4
  80. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  81. package/{chunk-IZWGO2ZS.js → chunk-OMIXG25B.js} +1 -1
  82. package/{chunk-CJ2BP6V7.js → chunk-OOV5JN25.js} +2 -2
  83. package/{chunk-3KWJPTVP.js → chunk-OQOXDQLB.js} +4 -4
  84. package/{chunk-LXKK7QFI.js → chunk-OTNPEE4G.js} +54 -24
  85. package/{chunk-LMMRWGGJ.js → chunk-OTOPQXP5.js} +2 -2
  86. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  87. package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
  88. package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
  89. package/{chunk-SLUZ6FBJ.js → chunk-Q5M27DUE.js} +1 -1
  90. package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
  91. package/{chunk-WQDTSK5U.js → chunk-REINTCQF.js} +8 -2
  92. package/{chunk-IXAGRTAR.js → chunk-SBBSUBY3.js} +1 -1
  93. package/{chunk-MTM4LRVG.js → chunk-SCY2O7CU.js} +2 -2
  94. package/{chunk-FAFDIQJG.js → chunk-U3ZK2MXG.js} +3 -3
  95. package/{chunk-PKMDYRAM.js → chunk-UDQZ5JT7.js} +175 -241
  96. package/{chunk-UR4ZMRV3.js → chunk-UGHNYYOE.js} +2 -2
  97. package/{chunk-KZVRPCOR.js → chunk-UTFTXJU3.js} +4 -4
  98. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  99. package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
  100. package/{chunk-QLGL43SI.js → chunk-VZWYP7LD.js} +2 -2
  101. package/{chunk-6XVPMGXK.js → chunk-W4S5FQWQ.js} +10 -4
  102. package/{chunk-KRAPKTAS.js → chunk-WJOC3AEM.js} +2 -2
  103. package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
  104. package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
  105. package/{chunk-BQ4CZEVZ.js → chunk-YWLMUFZ5.js} +1 -1
  106. package/{chunk-CD64YXRB.js → chunk-Z47UZT27.js} +1 -1
  107. package/{chunk-75TXQ4GY.js → chunk-ZMWDHPNG.js} +15 -29
  108. package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
  109. package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
  110. package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-OHAC4JTY.js} +30 -29
  111. package/{commandRegistry-OM5DU4DS.js → commandRegistry-YQMAXCLP.js} +81 -81
  112. package/{contentThunks-7URM43ET.js → contentThunks-GSMUNWBA.js} +20 -20
  113. package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
  114. package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-RMADR4LG.js} +20 -20
  115. package/{createDialogAction-IXXEMFRQ.js → createDialogAction-CM5CBQVH.js} +21 -21
  116. package/{createPageAction-IXIVLIOO.js → createPageAction-JMGVMCTH.js} +21 -21
  117. package/{db-J5KE7XRI.js → db-VR74ADGC.js} +5 -1
  118. package/{dbSlice-IE4ADINL.js → dbSlice-Q637QR4L.js} +7 -7
  119. package/{deleteFile-ZCQESEEQ.js → deleteFile-TP6MKFUX.js} +10 -5
  120. package/{dialogCommands-RPBHOZB6.js → dialogCommands-ULWP5ASX.js} +35 -33
  121. package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
  122. package/{dialogSlice-5FQB2TNN.js → dialogSlice-ARQKXXTD.js} +18 -18
  123. package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-ZJFHCZV4.js} +32 -30
  124. package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LY5MF2BI.js} +33 -31
  125. package/{docReadCommands-LRRVDS46.js → docReadCommands-4X2DHCNZ.js} +32 -30
  126. package/{docStore-SUAVM24F.js → docStore-QWRVKIRI.js} +8 -8
  127. package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-5TIT7DAJ.js} +32 -30
  128. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  129. package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-TVR55KVT.js} +36 -36
  130. package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-SIRXPUFR.js} +68 -67
  131. package/index.js +8 -8
  132. package/{localDialogRead-USDZXKIL.js → localDialogRead-BJJT3TF5.js} +1 -1
  133. package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-VRB5EDDZ.js} +67 -66
  134. package/{machineCommands-I3YA7TNC.js → machineCommands-MG3BB6XM.js} +68 -67
  135. package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-3TOO3NCU.js} +68 -67
  136. package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
  137. package/{memberThunks-T7EAZE6A.js → memberThunks-IGYRMEQC.js} +9 -9
  138. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  139. package/package.json +1 -1
  140. package/{projectArchive-A7E65AZO.js → projectArchive-Q46BYZQ6.js} +21 -21
  141. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  142. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  143. package/{read-BRZHXUJ6.js → read-MPPXZHAO.js} +10 -5
  144. package/{readDocTool-N7RVFQEE.js → readDocTool-PKZ35PCR.js} +1 -1
  145. package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-RBH6PSE7.js} +613 -209
  146. package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-H6S7VLNA.js} +9 -9
  147. package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-WZJ4HXOH.js} +44 -44
  148. package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
  149. package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
  150. package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-CARUTAWS.js} +8 -8
  151. package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-VRV56MLG.js} +9 -9
  152. package/{settingThunks-X4PT66J2.js → settingThunks-4FC4HXGN.js} +7 -7
  153. package/{spaceCommands-EVSNTGRS.js → spaceCommands-27Z5JAU3.js} +31 -29
  154. package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-JKMBFM2O.js} +57 -53
  155. package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-O236K6HB.js} +7 -7
  156. package/{tableCommands-44GC4N6J.js → tableCommands-C3P2HHKK.js} +2 -2
  157. package/{tools-2AO2SK4L.js → tools-4RFLNHUW.js} +37 -37
  158. package/{tuiRestart-HBQDF4AE.js → tuiRestart-GF4DGAAN.js} +7 -7
  159. package/{tuiSummaryLlmCaller-Q2PNR63K.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
  160. package/{updateCommands-6SI7NWVC.js → updateCommands-BZ4YDHNM.js} +3 -3
  161. package/{updateDialogTitleAction-MWVMBIPZ.js → updateDialogTitleAction-F3ONQM3N.js} +20 -20
  162. package/{usageCommand-D44AOTMH.js → usageCommand-XVJ7ZUTM.js} +1 -1
  163. package/{usageRebuildCommand-IRIMKDI5.js → usageRebuildCommand-NK6S3D4J.js} +2 -2
  164. package/{windowsSelfUpdate-BJIJKKIS.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
  165. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
  166. package/chunk-FGHEF6WI.js +0 -34
  167. package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
  168. package/{chunk-YHNUDTU4.js → chunk-VYRTLHIT.js} +3 -3
  169. package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
@@ -4,7 +4,7 @@ import {
4
4
  resolvePlatformHostedCredentialProvider,
5
5
  resolvePlatformProxyChatGatewayEndpoint,
6
6
  resolvePlatformResponsesEndpoint
7
- } from "./chunk-ESN4WNWU.js";
7
+ } from "./chunk-2JHGUL5K.js";
8
8
  import {
9
9
  asTrimmedString
10
10
  } from "./chunk-3EUW3WEO.js";
@@ -21,7 +21,7 @@ import {
21
21
  CLIENT_VERSION_TOO_OLD_CODE,
22
22
  buildClientVersionGateErrorDetail,
23
23
  evaluatePlatformHostedClientVersionGate
24
- } from "./chunk-PQ63BDV3.js";
24
+ } from "./chunk-JPXACKSW.js";
25
25
  import {
26
26
  asTrimmedLowercaseString
27
27
  } from "./chunk-QSJ3HFEF.js";
@@ -38,6 +38,22 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
38
38
  };
39
39
  }
40
40
 
41
+ // packages/shared/providerSecrets.ts
42
+ function providerSecretKey(presetId) {
43
+ const normalized = presetId.trim().replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
44
+ return `${normalized}_KEY`;
45
+ }
46
+ function isAgentCredentialShared(agent) {
47
+ return agent?.credentialSynced === true;
48
+ }
49
+ function resolveOutboundProxyApiKey(credential) {
50
+ const apiKey = asOptionalTrimmedString(credential.apiKey);
51
+ if (apiKey && !isAgentCredentialShared(credential)) {
52
+ throw new Error("\u672A\u6388\u6743\u5C06\u6B64\u5BC6\u94A5\u53D1\u9001\u5230 nolo \u4EE3\u7406\u3002\u8BF7\u4F7F\u7528\u672C\u673A\u76F4\u8FDE\uFF0C\u6216\u542F\u7528\u8DE8\u8BBE\u5907\u5171\u4EAB\u540E\u91CD\u8BD5\u3002");
53
+ }
54
+ return apiKey;
55
+ }
56
+
41
57
  // packages/agent-runtime/providerResolution.ts
42
58
  function resolvePlatformProviderEndpoint(agentConfig) {
43
59
  const customProviderUrl = agentConfig.customProviderUrl?.trim();
@@ -223,7 +239,7 @@ async function buildProviderExecutionPlan(args) {
223
239
  const credentialRef2 = agentConfig.credentialRef?.trim();
224
240
  const apiKeyRef = agentConfig.apiKeyRef?.trim();
225
241
  if (args.credentialBroker) {
226
- const brokerRefs = [credentialRef2, apiKeyRef].filter(
242
+ const brokerRefs = [credentialRef2, ...!credentialRef2 || !apiKeyRef?.startsWith("provider-key:") ? [apiKeyRef] : []].filter(
227
243
  (ref) => Boolean(ref)
228
244
  );
229
245
  for (const ref of brokerRefs) {
@@ -234,7 +250,7 @@ async function buildProviderExecutionPlan(args) {
234
250
  }
235
251
  }
236
252
  }
237
- if (!apiKey2 && agentConfig.credentialSynced && args.syncFetcher && credentialRef2) {
253
+ if (!apiKey2 && isAgentCredentialShared(agentConfig) && args.syncFetcher && credentialRef2) {
238
254
  let synced = null;
239
255
  try {
240
256
  synced = await args.syncFetcher(credentialRef2);
@@ -249,7 +265,7 @@ async function buildProviderExecutionPlan(args) {
249
265
  apiKey2 = trimmed;
250
266
  }
251
267
  }
252
- if (!apiKey2 && apiKeyRef && apiKeyRef.startsWith("provider-key:") && args.syncFetcher) {
268
+ if (!apiKey2 && isAgentCredentialShared(agentConfig) && !credentialRef2 && apiKeyRef?.startsWith("provider-key:") && args.syncFetcher) {
253
269
  try {
254
270
  const shared = await args.syncFetcher(apiKeyRef);
255
271
  const trimmed = asTrimmedString(shared);
@@ -264,12 +280,12 @@ async function buildProviderExecutionPlan(args) {
264
280
  }
265
281
  }
266
282
  if (!apiKey2 && apiKeyRef && args.apiKeyRefResolver) {
267
- const resolved = await args.apiKeyRefResolver(apiKeyRef);
283
+ const resolved = apiKeyRef.startsWith("provider-key:") ? null : await args.apiKeyRefResolver(apiKeyRef);
268
284
  if (resolved) {
269
285
  apiKey2 = resolved;
270
286
  } else if (!agentConfig.apiKey?.trim() && !agentConfig.apiKeyFromAgentKey?.trim()) {
271
- const isApiKeyRef = apiKeyRef.startsWith("api-key:");
272
- const hint = isApiKeyRef ? agentConfig.credentialSynced ? `Local credential for "${apiKeyRef}" not found. It is synced to your account \u2014 run this agent once on a device that has the key, or re-enter it in agent settings.` : `Local credential for "${apiKeyRef}" not found. Re-enter the API key in agent settings, or enable cross-device sync.` : `OAuth credential for "${apiKeyRef}" not found locally. Run \`nolo auth ${apiKeyRef}\` (and \`--sync-to-server\` for server-side agent runs).`;
287
+ const isApiKeyRef = /^(api-key|provider-key):/.test(apiKeyRef);
288
+ const hint = isApiKeyRef ? isAgentCredentialShared(agentConfig) ? `Local credential for "${apiKeyRef}" not found. It is synced to your account \u2014 run this agent once on a device that has the key, or re-enter it in agent settings.` : `Local credential for "${apiKeyRef}" not found. Re-enter the API key in agent settings, or enable cross-device sync.` : `OAuth credential for "${apiKeyRef}" not found locally. Run \`nolo auth ${apiKeyRef}\` (and \`--sync-to-server\` for server-side agent runs).`;
273
289
  throw new Error(hint);
274
290
  }
275
291
  }
@@ -293,6 +309,7 @@ async function buildProviderExecutionPlan(args) {
293
309
  agentKey: agentConfig.key,
294
310
  ...agentConfig.apiSource ? { apiSource: agentConfig.apiSource } : {},
295
311
  ...apiKey2 ? { apiKey: apiKey2 } : {},
312
+ ...isAgentCredentialShared(agentConfig) ? { credentialSynced: true } : {},
296
313
  ...apiKeyHeader ? { apiKeyHeader } : {}
297
314
  };
298
315
  }
@@ -351,7 +368,7 @@ async function buildProviderExecutionPlan(args) {
351
368
  apiKey = fromBroker;
352
369
  }
353
370
  }
354
- if (!apiKey && agentConfig.credentialSynced && args.syncFetcher && credentialRef) {
371
+ if (!apiKey && isAgentCredentialShared(agentConfig) && args.syncFetcher && credentialRef) {
355
372
  let synced = null;
356
373
  try {
357
374
  synced = await args.syncFetcher(credentialRef);
@@ -382,6 +399,9 @@ async function buildProviderExecutionPlan(args) {
382
399
  }
383
400
 
384
401
  export {
402
+ providerSecretKey,
403
+ isAgentCredentialShared,
404
+ resolveOutboundProxyApiKey,
385
405
  pickAgentRuntimeInferenceOptions,
386
406
  trimTrailingSlash,
387
407
  resolvePlatformServerUrl,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-MTM4LRVG.js";
3
+ } from "./chunk-SCY2O7CU.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-IFJ6OTI6.js";
6
+ } from "./chunk-GJ4UTSAW.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-YHNUDTU4.js";
9
+ } from "./chunk-VYRTLHIT.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-TGKAUEV3.js";
3
+ } from "./chunk-K7RWY7JH.js";
4
4
  import {
5
5
  prepareAndPersistMessage
6
- } from "./chunk-A55E2OCP.js";
6
+ } from "./chunk-26KL6533.js";
7
7
  import {
8
8
  require_format
9
9
  } from "./chunk-BUDVRYES.js";
@@ -16,10 +16,10 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-IFJ6OTI6.js";
19
+ } from "./chunk-GJ4UTSAW.js";
20
20
  import {
21
21
  isDevelopment
22
- } from "./chunk-YHNUDTU4.js";
22
+ } from "./chunk-VYRTLHIT.js";
23
23
  import {
24
24
  selectIdentityUserId
25
25
  } from "./chunk-PXYBUFDB.js";
@@ -3,29 +3,29 @@ import {
3
3
  mergeReferences,
4
4
  resolveReferenceAssets,
5
5
  resolveToolsFromKeys
6
- } from "./chunk-CUYFRVJF.js";
6
+ } from "./chunk-2HF6DINU.js";
7
7
  import {
8
8
  UI_CARD_ENVELOPE_MAX_BYTES,
9
9
  getAllToolRuns,
10
10
  parseUiCard,
11
11
  uiCardFallback
12
- } from "./chunk-ZKKJZBNO.js";
12
+ } from "./chunk-GUFTHWDO.js";
13
13
  import {
14
14
  getDocState
15
- } from "./chunk-FAFDIQJG.js";
15
+ } from "./chunk-U3ZK2MXG.js";
16
16
  import {
17
17
  getTableState
18
- } from "./chunk-TGKAUEV3.js";
18
+ } from "./chunk-K7RWY7JH.js";
19
19
  import {
20
20
  selectAllMsgs
21
- } from "./chunk-A55E2OCP.js";
21
+ } from "./chunk-26KL6533.js";
22
22
  import {
23
23
  getCurrentSpaceIdRaw,
24
24
  getViewMode
25
- } from "./chunk-IXAGRTAR.js";
25
+ } from "./chunk-SBBSUBY3.js";
26
26
  import {
27
27
  selectById
28
- } from "./chunk-IFJ6OTI6.js";
28
+ } from "./chunk-GJ4UTSAW.js";
29
29
  import {
30
30
  resolveToolBaseUrl
31
31
  } from "./chunk-KQHEGELM.js";
@@ -41,12 +41,12 @@ import {
41
41
  projectToolMessageContent,
42
42
  resolveAgentRecommendedSkillNames,
43
43
  resolveAgentRequiredPackIds
44
- } from "./chunk-CDIRKCPD.js";
44
+ } from "./chunk-JX2IG37T.js";
45
45
  import {
46
46
  attachmentKind,
47
47
  extractReferenceKeysFromMessage,
48
48
  normalizeAttachmentPart
49
- } from "./chunk-LTVEOOZL.js";
49
+ } from "./chunk-CIAV4WK2.js";
50
50
  import {
51
51
  asRecordOrEmpty
52
52
  } from "./chunk-KX6YBIHG.js";
@@ -63,7 +63,7 @@ import {
63
63
  expandEnabledPackPromptPatches,
64
64
  expandEnabledPacks,
65
65
  resolveEffectiveEnabledPacks
66
- } from "./chunk-75TXQ4GY.js";
66
+ } from "./chunk-ZMWDHPNG.js";
67
67
  import {
68
68
  metaKey
69
69
  } from "./chunk-SYTHYBMI.js";
@@ -82,7 +82,7 @@ import {
82
82
  getModelPricing,
83
83
  getPrices,
84
84
  hasExplicitAgentPricing
85
- } from "./chunk-AS6L5KSD.js";
85
+ } from "./chunk-P4R5KXU7.js";
86
86
  import {
87
87
  asTrimmedString
88
88
  } from "./chunk-3EUW3WEO.js";
@@ -92,7 +92,7 @@ import {
92
92
  import {
93
93
  getModelConfig,
94
94
  getProviderByModelName
95
- } from "./chunk-CD2DK5JA.js";
95
+ } from "./chunk-OKH74FML.js";
96
96
  import {
97
97
  isRecord
98
98
  } from "./chunk-KUG52IAP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRunsDir
3
- } from "./chunk-UCMUXZJV.js";
3
+ } from "./chunk-7XO73H5X.js";
4
4
  import {
5
5
  isLoopbackHostname
6
6
  } from "./chunk-4SN6J65J.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-WQDTSK5U.js";
4
+ } from "./chunk-REINTCQF.js";
5
5
  import {
6
6
  fetchFromClientDb
7
- } from "./chunk-YHNUDTU4.js";
7
+ } from "./chunk-VYRTLHIT.js";
8
8
  import {
9
9
  selectIdentityToken
10
10
  } from "./chunk-PXYBUFDB.js";