nolo-cli 0.231.0-alpha.1 → 0.240.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 (190) hide show
  1. package/{_executeModel-7V3NSK4W.js → _executeModel-5NA4USGG.js} +56 -51
  2. package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
  3. package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
  4. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
  5. package/{agentDeleteCommand-MD76OMLN.js → agentDeleteCommand-2RFGKFAB.js} +77 -69
  6. package/{agentEmailCommands-T4TW4IBX.js → agentEmailCommands-GQCQKKOR.js} +84 -72
  7. package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
  8. package/{agentMachineCommands-LSDGA5WR.js → agentMachineCommands-BISF6PVV.js} +26 -22
  9. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
  10. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
  11. package/{agentRecordCommands-7TEX2B7Y.js → agentRecordCommands-AOXPGYAJ.js} +79 -67
  12. package/{agentRunCommand-23SMDVDW.js → agentRunCommand-YTZJCRAL.js} +85 -72
  13. package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
  14. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
  15. package/{agentSlice-AATYVDP6.js → agentSlice-XJNKE3PG.js} +10 -9
  16. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
  17. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
  18. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
  19. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
  20. package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
  21. package/{authCommand-3SUYUNQV.js → authCommand-4CVBDADE.js} +15 -13
  22. package/{authCommands-BLE7ETZH.js → authCommands-EHU2BHOX.js} +7 -5
  23. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
  24. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
  25. package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
  26. package/chunk-2SXN7LAY.js +15 -0
  27. package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
  28. package/{chunk-EXNV7CCV.js → chunk-3FBAVU2Y.js} +11 -9
  29. package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
  30. package/{chunk-U4FF7LRY.js → chunk-4IQVE43Z.js} +30 -26
  31. package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
  32. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  33. package/chunk-4ZCTKB27.js +31 -0
  34. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  35. package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
  36. package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
  37. package/chunk-6D25V6CB.js +133 -0
  38. package/{chunk-LHN7NIQZ.js → chunk-6WOLPIPY.js} +93 -90
  39. package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
  40. package/{chunk-NVEYEKN3.js → chunk-7AJRJGSQ.js} +254 -359
  41. package/chunk-7NIBQ4HY.js +138 -0
  42. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  43. package/{chunk-GXZ5LB7H.js → chunk-A3LUWRQK.js} +4 -4
  44. package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
  45. package/{chunk-3ING4D5X.js → chunk-AEQMKYZN.js} +4 -4
  46. package/{chunk-FFSPUVL5.js → chunk-AH5R7BYW.js} +6 -166
  47. package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
  48. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  49. package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
  50. package/{chunk-KUOMUZH6.js → chunk-B7DE5XJW.js} +137 -290
  51. package/chunk-BEM6LPD2.js +734 -0
  52. package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
  53. package/{chunk-YCFP57LH.js → chunk-BGGV6B5O.js} +408 -230
  54. package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
  55. package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
  56. package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
  57. package/{chunk-WU443D7A.js → chunk-CVJRVBJL.js} +2 -2
  58. package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
  59. package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
  60. package/chunk-DVYAFH2Q.js +103 -0
  61. package/{chunk-FTMFO6LI.js → chunk-DXW5WDHZ.js} +4 -4
  62. package/{chunk-ZTR65O4L.js → chunk-E5KJOZWY.js} +3 -3
  63. package/{chunk-57TLKTVZ.js → chunk-E5KY7RAY.js} +565 -103
  64. package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
  65. package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
  66. package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
  67. package/{chunk-PR2LAQAC.js → chunk-FFYE5ATM.js} +4 -4
  68. package/{chunk-6NNDUDAZ.js → chunk-FZKA3XFA.js} +11 -11
  69. package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
  70. package/{chunk-6OQMSPB7.js → chunk-GDUC4VS2.js} +7 -7
  71. package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
  72. package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
  73. package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
  74. package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
  75. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  76. package/{chunk-TPG2DPN2.js → chunk-IJTXNLQE.js} +9 -9
  77. package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
  78. package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
  79. package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
  80. package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
  81. package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
  82. package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
  83. package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
  84. package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
  85. package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
  86. package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
  87. package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
  88. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  89. package/{chunk-WFVASLQT.js → chunk-P3IZUMIC.js} +1 -1
  90. package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
  91. package/{chunk-IONGMVPY.js → chunk-PRMEU7BT.js} +229 -7
  92. package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
  93. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  94. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  95. package/chunk-RETQOQ4D.js +33394 -0
  96. package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
  97. package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
  98. package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
  99. package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
  100. package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
  101. package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
  102. package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
  103. package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
  104. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  105. package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
  106. package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
  107. package/{chunk-MHHLABT3.js → chunk-VREG6ANQ.js} +102 -99
  108. package/chunk-VSRISJXZ.js +107 -0
  109. package/chunk-WDWZPASX.js +29 -0
  110. package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
  111. package/chunk-X7IA2B7R.js +166 -0
  112. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  113. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  114. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  115. package/{chunk-KUDCKVYQ.js → chunk-Y5OWZQMJ.js} +28 -19
  116. package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
  117. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  118. package/{chunk-X7QAIY5B.js → chunk-Z2WZAE4P.js} +128 -150
  119. package/chunk-Z6YTCDU4.js +24 -0
  120. package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
  121. package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
  122. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
  123. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  124. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
  125. package/{commandRegistry-35EMLPIZ.js → commandRegistry-FIXBZJHE.js} +89 -85
  126. package/{contentThunks-BCNMGA5J.js → contentThunks-U6OC4R2N.js} +23 -22
  127. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
  128. package/{createAgentAutomationAction-HEU4KOYF.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
  129. package/{createDialogAction-5DSL5ESZ.js → createDialogAction-IAGQJ3LH.js} +24 -23
  130. package/{createPageAction-BBZ25AFI.js → createPageAction-AZ3UIFKA.js} +24 -23
  131. package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
  132. package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
  133. package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
  134. package/dialogMessageRecord-OAV77LT7.js +7 -0
  135. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
  136. package/{dialogSlice-QJ5PQOM3.js → dialogSlice-QAKYN4DE.js} +22 -21
  137. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
  138. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
  139. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
  140. package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
  141. package/{docStore-XJ4UMU3C.js → docStore-GIVRT7TQ.js} +10 -9
  142. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
  143. package/{handleSendMessageAction-YHAOXARI.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
  144. package/{hostCredentialCreate-62AWCBQC.js → hostCredentialCreate-6VDJFNDO.js} +81 -68
  145. package/index.js +8 -8
  146. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  147. package/{localRuntimeAdapter-KNQNNHUM.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
  148. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  149. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  150. package/{machineCommands-X2FMPSV4.js → machineCommands-K6XIGOAD.js} +77 -65
  151. package/{machineWsRunDispatch-XHTPOYVJ.js → machineWsRunDispatch-4OO7Z6UM.js} +77 -65
  152. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  153. package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
  154. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  155. package/package.json +1 -1
  156. package/{projectArchive-NPQ3YOAV.js → projectArchive-G7AOQPRW.js} +24 -23
  157. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
  158. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
  159. package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
  160. package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
  161. package/{readlineWorkspace-77PILYDH.js → readlineWorkspace-XMPGXR77.js} +2935 -2376
  162. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
  163. package/{runAgentClientLoop-XNKAXUKU.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
  164. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
  165. package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
  166. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
  167. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
  168. package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
  169. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  170. package/{spaceCommands-TOGSGCPS.js → spaceCommands-G63QGYQO.js} +25 -21
  171. package/{streamAgentChatTurn-IARUEZPU.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
  172. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
  173. package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
  174. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  175. package/{tools-5UWS65PB.js → tools-7RSX22FT.js} +41 -37
  176. package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
  177. package/{tuiSummaryLlmCaller-R4H3ZZ52.js → tuiSummaryLlmCaller-BVNHMWLR.js} +5 -5
  178. package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
  179. package/{updateDialogTitleAction-G6C6XVNV.js → updateDialogTitleAction-SEWV252V.js} +23 -22
  180. package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
  181. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
  182. package/webapi-24RZDIIQ.js +2488 -0
  183. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  184. package/workContext-MM3P5GP5.js +13 -0
  185. package/workContextAccess-UZHDLBUR.js +11 -0
  186. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  187. package/chunk-ZXF6D3I6.js +0 -359
  188. package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
  189. package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
  190. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  compareAgentSelection,
9
9
  resolveModelTier
10
- } from "./chunk-MNEZUL5S.js";
10
+ } from "./chunk-G22P367E.js";
11
11
  import {
12
12
  DEFAULT_PROVIDER_RETRY_MS,
13
13
  isAgentUnavailableNow,
@@ -37,7 +37,7 @@ import {
37
37
  isAntigravityOAuthAgent,
38
38
  isSubscriptionEndpoint,
39
39
  isSubscriptionOAuthCredential
40
- } from "./chunk-7JGMNKKG.js";
40
+ } from "./chunk-6CKUO32A.js";
41
41
  import {
42
42
  asTrimmedLowercaseString
43
43
  } from "./chunk-QSJ3HFEF.js";
@@ -362,17 +362,17 @@ function parseAgentRecordId(privateKey, explicitId) {
362
362
  }
363
363
  return null;
364
364
  }
365
- function resolveFavoriteStatus(record, options) {
365
+ function resolveFavoriteStatus(record2, options) {
366
366
  if (options?.isFavorite !== void 0) {
367
367
  return {
368
368
  isFavorite: !!options.isFavorite,
369
369
  favoritedAt: safeTimestamp(options.favoritedAt)
370
370
  };
371
371
  }
372
- if (record?.isFavorite === true) {
372
+ if (record2?.isFavorite === true) {
373
373
  return {
374
374
  isFavorite: true,
375
- favoritedAt: safeTimestamp(record?.favoritedAt)
375
+ favoritedAt: safeTimestamp(record2?.favoritedAt)
376
376
  };
377
377
  }
378
378
  const favoritesMap = options?.favoritesMap;
@@ -380,17 +380,17 @@ function resolveFavoriteStatus(record, options) {
380
380
  return { isFavorite: false, favoritedAt: null };
381
381
  }
382
382
  const candidateKeys = [];
383
- if (typeof record?.dbKey === "string" && record.dbKey) candidateKeys.push(record.dbKey);
384
- if (typeof record?.privateKey === "string" && record.privateKey) candidateKeys.push(record.privateKey);
385
- if (typeof record?.publicKey === "string" && record.publicKey) candidateKeys.push(record.publicKey);
386
- if (typeof record?.verifiedAgentKey === "string" && record.verifiedAgentKey) {
387
- candidateKeys.push(record.verifiedAgentKey);
383
+ if (typeof record2?.dbKey === "string" && record2.dbKey) candidateKeys.push(record2.dbKey);
384
+ if (typeof record2?.privateKey === "string" && record2.privateKey) candidateKeys.push(record2.privateKey);
385
+ if (typeof record2?.publicKey === "string" && record2.publicKey) candidateKeys.push(record2.publicKey);
386
+ if (typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey) {
387
+ candidateKeys.push(record2.verifiedAgentKey);
388
388
  }
389
- if (typeof record?.id === "string" && record.id) {
390
- candidateKeys.push(record.id);
391
- candidateKeys.push(publicAgentKey(record.id));
389
+ if (typeof record2?.id === "string" && record2.id) {
390
+ candidateKeys.push(record2.id);
391
+ candidateKeys.push(publicAgentKey(record2.id));
392
392
  if (options?.userId) {
393
- candidateKeys.push(ownedAgentKey(options.userId, record.id));
393
+ candidateKeys.push(ownedAgentKey(options.userId, record2.id));
394
394
  }
395
395
  }
396
396
  let matched = false;
@@ -417,55 +417,55 @@ function resolveFavoriteStatus(record, options) {
417
417
  }
418
418
  return { isFavorite: false, favoritedAt: null };
419
419
  }
420
- function isOwnedAgentRecord(record, userId) {
420
+ function isOwnedAgentRecord(record2, userId) {
421
421
  if (!userId) return false;
422
- if (typeof record?.userId === "string" && record.userId === userId || typeof record?.ownerId === "string" && record.ownerId === userId) {
422
+ if (typeof record2?.userId === "string" && record2.userId === userId || typeof record2?.ownerId === "string" && record2.ownerId === userId) {
423
423
  return true;
424
424
  }
425
- return [record?.dbKey, record?.privateKey].some(
425
+ return [record2?.dbKey, record2?.privateKey].some(
426
426
  (key) => isOwnedAgentKey(key, userId)
427
427
  );
428
428
  }
429
- function toSafeAgentSummary(record, options) {
429
+ function toSafeAgentSummary(record2, options) {
430
430
  const rawId = parseAgentRecordId(
431
- typeof record?.privateKey === "string" ? record.privateKey : record?.dbKey,
432
- typeof record?.id === "string" ? record.id : void 0
431
+ typeof record2?.privateKey === "string" ? record2.privateKey : record2?.dbKey,
432
+ typeof record2?.id === "string" ? record2.id : void 0
433
433
  );
434
- const id = rawId ?? (typeof record?.id === "string" ? record.id : null);
435
- const publicRecordDenied = record?.publicRecordExists === false || options?.publicRecordExists === false;
436
- const publicRecordConfirmed = record?.publicRecordExists === true || options?.publicRecordExists === true;
434
+ const id = rawId ?? (typeof record2?.id === "string" ? record2.id : null);
435
+ const publicRecordDenied = record2?.publicRecordExists === false || options?.publicRecordExists === false;
436
+ const publicRecordConfirmed = record2?.publicRecordExists === true || options?.publicRecordExists === true;
437
437
  let publicKey;
438
- if (typeof record?.publicKey === "string" && record.publicKey && !publicRecordDenied) {
439
- publicKey = record.publicKey;
438
+ if (typeof record2?.publicKey === "string" && record2.publicKey && !publicRecordDenied) {
439
+ publicKey = record2.publicKey;
440
440
  } else if (publicRecordConfirmed && id) {
441
441
  publicKey = publicAgentKey(id);
442
442
  }
443
- const name = typeof record?.name === "string" && record.name ? record.name : "(unnamed)";
444
- const handle = typeof record?.handle === "string" && record.handle ? record.handle : null;
445
- const introduction = typeof record?.introduction === "string" && record.introduction ? record.introduction : typeof record?.description === "string" && record.description ? record.description : null;
446
- const model = typeof record?.model === "string" && record.model ? record.model : null;
447
- const provider = typeof record?.provider === "string" && record.provider ? record.provider : typeof record?.apiSource === "string" && record.apiSource ? record.apiSource : null;
448
- const apiSource = typeof record?.apiSource === "string" && record.apiSource ? record.apiSource : null;
449
- const cliProvider = typeof record?.cliProvider === "string" && record.cliProvider ? record.cliProvider : null;
450
- const tools = Array.isArray(record?.tools) ? record.tools.filter((t) => typeof t === "string") : [];
451
- const inputPrice = typeof record?.inputPrice === "number" && Number.isFinite(record.inputPrice) ? record.inputPrice : null;
452
- const outputPrice = typeof record?.outputPrice === "number" && Number.isFinite(record.outputPrice) ? record.outputPrice : null;
443
+ const name = typeof record2?.name === "string" && record2.name ? record2.name : "(unnamed)";
444
+ const handle = typeof record2?.handle === "string" && record2.handle ? record2.handle : null;
445
+ const introduction = typeof record2?.introduction === "string" && record2.introduction ? record2.introduction : typeof record2?.description === "string" && record2.description ? record2.description : null;
446
+ const model = typeof record2?.model === "string" && record2.model ? record2.model : null;
447
+ const provider = typeof record2?.provider === "string" && record2.provider ? record2.provider : typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
448
+ const apiSource = typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
449
+ const cliProvider = typeof record2?.cliProvider === "string" && record2.cliProvider ? record2.cliProvider : null;
450
+ const tools = Array.isArray(record2?.tools) ? record2.tools.filter((t) => typeof t === "string") : [];
451
+ const inputPrice = typeof record2?.inputPrice === "number" && Number.isFinite(record2.inputPrice) ? record2.inputPrice : null;
452
+ const outputPrice = typeof record2?.outputPrice === "number" && Number.isFinite(record2.outputPrice) ? record2.outputPrice : null;
453
453
  const modelAbility = model ? getModelAbility(model) ?? null : null;
454
- const favStatus = resolveFavoriteStatus(record, options);
455
- const isPublic = record?.isPublic === true || record?.isPublicFlag === true || record?.publicRecordExists === true;
456
- const updatedAt = safeTimestamp(record?.updatedAt ?? record?.createdAt ?? record?.created);
457
- const nextAvailableAt = typeof record?.nextAvailableAt === "number" && Number.isFinite(record.nextAvailableAt) ? record.nextAvailableAt : void 0;
458
- const quotaExhaustion = record?.quotaExhaustion && typeof record.quotaExhaustion.observedAt === "number" && Number.isFinite(record.quotaExhaustion.observedAt) ? { observedAt: record.quotaExhaustion.observedAt } : void 0;
459
- const rawQuota = record?.quota;
454
+ const favStatus = resolveFavoriteStatus(record2, options);
455
+ const isPublic = record2?.isPublic === true || record2?.isPublicFlag === true || record2?.publicRecordExists === true;
456
+ const updatedAt = safeTimestamp(record2?.updatedAt ?? record2?.createdAt ?? record2?.created);
457
+ const nextAvailableAt = typeof record2?.nextAvailableAt === "number" && Number.isFinite(record2.nextAvailableAt) ? record2.nextAvailableAt : void 0;
458
+ const quotaExhaustion = record2?.quotaExhaustion && typeof record2.quotaExhaustion.observedAt === "number" && Number.isFinite(record2.quotaExhaustion.observedAt) ? { observedAt: record2.quotaExhaustion.observedAt } : void 0;
459
+ const rawQuota = record2?.quota;
460
460
  const quota = rawQuota && typeof rawQuota === "object" && Array.isArray(rawQuota.windows) && typeof rawQuota.observedAt === "number" && Number.isFinite(rawQuota.observedAt) ? rawQuota : void 0;
461
461
  const currentUserId = options?.userId;
462
- const ownedKey = currentUserId ? [record?.dbKey, record?.privateKey].find(
462
+ const ownedKey = currentUserId ? [record2?.dbKey, record2?.privateKey].find(
463
463
  (key) => isOwnedAgentKey(key, currentUserId)
464
464
  ) : void 0;
465
- const isOwned = isOwnedAgentRecord(record, currentUserId);
466
- const isOAuth = isOAuthApiKeyRef(record?.apiKeyRef);
465
+ const isOwned = isOwnedAgentRecord(record2, currentUserId);
466
+ const isOAuth = isOAuthApiKeyRef(record2?.apiKeyRef);
467
467
  const billingSource = resolveBillingSource({
468
- ...record,
468
+ ...record2,
469
469
  isOAuth,
470
470
  isOwned,
471
471
  apiSource,
@@ -477,11 +477,11 @@ function toSafeAgentSummary(record, options) {
477
477
  {
478
478
  provider,
479
479
  apiSource,
480
- customProviderUrl: typeof record?.customProviderUrl === "string" ? record.customProviderUrl : null
480
+ customProviderUrl: typeof record2?.customProviderUrl === "string" ? record2.customProviderUrl : null
481
481
  },
482
482
  options?.now ?? Date.now()
483
483
  );
484
- const verifiedSharedKey = typeof record?.verifiedAgentKey === "string" && record.verifiedAgentKey ? record.verifiedAgentKey : void 0;
484
+ const verifiedSharedKey = typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey ? record2.verifiedAgentKey : void 0;
485
485
  let agentKey;
486
486
  if (currentUserId) {
487
487
  if (isOwned) {
@@ -492,10 +492,10 @@ function toSafeAgentSummary(record, options) {
492
492
  agentKey = verifiedSharedKey;
493
493
  }
494
494
  }
495
- const rawCredRef = (typeof record?.apiKeyRef === "string" && record.apiKeyRef ? record.apiKeyRef : void 0) ?? (typeof record?.credentialRef === "string" && record.credentialRef ? record.credentialRef : void 0);
496
- const credInfo = deriveCredentialGroup(record?.credentialGroup ?? rawCredRef);
497
- const credentialGroup = record?.credentialGroup ?? credInfo?.credentialGroup;
498
- const credentialKind = record?.credentialKind ?? credInfo?.credentialKind;
495
+ const rawCredRef = (typeof record2?.apiKeyRef === "string" && record2.apiKeyRef ? record2.apiKeyRef : void 0) ?? (typeof record2?.credentialRef === "string" && record2.credentialRef ? record2.credentialRef : void 0);
496
+ const credInfo = deriveCredentialGroup(record2?.credentialGroup ?? rawCredRef);
497
+ const credentialGroup = record2?.credentialGroup ?? credInfo?.credentialGroup;
498
+ const credentialKind = record2?.credentialKind ?? credInfo?.credentialKind;
499
499
  const availability = resolveAgentAvailability(
500
500
  { nextAvailableAt, quota, quotaExhaustion },
501
501
  options?.now ?? Date.now()
@@ -525,7 +525,7 @@ function toSafeAgentSummary(record, options) {
525
525
  // 例如 apiSource==="cli" 的本地 CLI Agent 在 resolveBillingSource 里会落到
526
526
  // platform_credits,但 isPlatformPaidAgentCall 显式短路为「非平台垫付」。
527
527
  requiresPaidApproval: isPlatformPaidAgentCall({
528
- agentConfig: record ?? void 0,
528
+ agentConfig: record2 ?? void 0,
529
529
  callerUserId: currentUserId ?? void 0
530
530
  }),
531
531
  ...economics ? { economics } : {},
@@ -910,9 +910,9 @@ function buildAgentDiscoveryResult(options) {
910
910
  credentialGroups
911
911
  };
912
912
  }
913
- function toDiscoverySafeAgentSummary(record, options) {
914
- const mergedOptions = record?.publicRecordExists === true ? { ...options, publicRecordExists: true } : options;
915
- return toSafeAgentSummary(record, mergedOptions);
913
+ function toDiscoverySafeAgentSummary(record2, options) {
914
+ const mergedOptions = record2?.publicRecordExists === true ? { ...options, publicRecordExists: true } : options;
915
+ return toSafeAgentSummary(record2, mergedOptions);
916
916
  }
917
917
 
918
918
  // packages/ai/agent/speedSampleCache.ts
@@ -1107,17 +1107,17 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
1107
1107
  const { start, end } = createTokenKey.rangeOfUser(userId);
1108
1108
  const failedPrefix = createKey("token", userId, "failed-call", "");
1109
1109
  const dispatchRunCache = /* @__PURE__ */ new Map();
1110
- const isDispatchSampleRecord = async (record, resolver, cache) => {
1111
- if (record.entry_path !== DISPATCH_ENTRY_PATH && record.entry_path !== "cli-local") return false;
1112
- const runId = typeof record.dialogId === "string" ? record.dialogId.trim() : "";
1110
+ const isDispatchSampleRecord = async (record2, resolver, cache) => {
1111
+ if (record2.entry_path !== DISPATCH_ENTRY_PATH && record2.entry_path !== "cli-local") return false;
1112
+ const runId = typeof record2.dialogId === "string" ? record2.dialogId.trim() : "";
1113
1113
  if (!runId) return false;
1114
- const cacheKey = `${record.entry_path}:${runId}`;
1114
+ const cacheKey = `${record2.entry_path}:${runId}`;
1115
1115
  const cached = cache.get(cacheKey);
1116
1116
  if (cached !== void 0) return cached;
1117
1117
  let dispatch = false;
1118
1118
  if (resolver) {
1119
1119
  try {
1120
- dispatch = await resolver(runId, record.entry_path) === true;
1120
+ dispatch = await resolver(runId, record2.entry_path) === true;
1121
1121
  } catch {
1122
1122
  dispatch = false;
1123
1123
  }
@@ -1150,15 +1150,15 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
1150
1150
  newestKey = key;
1151
1151
  if (key.startsWith(failedPrefix)) continue;
1152
1152
  if (!raw || typeof raw !== "object") continue;
1153
- const record = raw;
1153
+ const record2 = raw;
1154
1154
  const resolver = options.isDispatchRun ?? db.isDispatchRun;
1155
1155
  if (!await isDispatchSampleRecord(
1156
- record,
1156
+ record2,
1157
1157
  resolver ? (runId, entryPath) => resolver.call(db, runId, entryPath) : void 0,
1158
1158
  dispatchRunCache
1159
1159
  ))
1160
1160
  continue;
1161
- collectSample(collected, record);
1161
+ collectSample(collected, record2);
1162
1162
  }
1163
1163
  if (accepted === 0 || accepted < pageSize) break;
1164
1164
  lastKey = newestKey;
@@ -1327,7 +1327,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
1327
1327
  }
1328
1328
  const agent = candidates[0];
1329
1329
  const speedContext = buildCandidateSpeedContext(typeof agent.model === "string" ? [agent.model] : [], samples, { snapshotAgeMs });
1330
- const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup), ...speedContext ? { speedContext } : {} };
1330
+ const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup) };
1331
1331
  let keyCollision = false;
1332
1332
  const cleanText = (value) => scrubSecrets(sanitizeToolOutputText(value)).cleaned;
1333
1333
  const sanitize = (value) => {
@@ -1360,7 +1360,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
1360
1360
  let end = Math.min(serialized.length, fragmentOffset + 3e3);
1361
1361
  if (end < serialized.length && /[\uD800-\uDBFF]/.test(serialized[end - 1]) && /[\uDC00-\uDFFF]/.test(serialized[end])) end--;
1362
1362
  const fragment = serialized.slice(fragmentOffset, end);
1363
- const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1 });
1363
+ const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1, ...speedContext ? { speedContext: cleanText(speedContext) } : {} });
1364
1364
  return fits(result) ? result : JSON.stringify({ success: false, error: "LIST_AGENTS_FRAGMENT_METADATA_TOO_LARGE", offset });
1365
1365
  }
1366
1366
  const makePage = (count) => {
@@ -1407,6 +1407,19 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
1407
1407
  return fits(encoded) ? encoded : JSON.stringify({ success: false, error: "LIST_AGENTS_RECOVERY_ID_TOO_LARGE", offset });
1408
1408
  }
1409
1409
 
1410
+ // packages/ai/agent/dispatchSpeedProvenance.ts
1411
+ var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
1412
+ function isServerDispatchSpeedSource(value, dialogId, userId) {
1413
+ const dialog = record(value);
1414
+ const proof = record(dialog.dispatchSpeedProvenance);
1415
+ return proof.version === 1 && proof.source === "server-startAgentRun" && proof.userId === userId && record(dialog.runtimeBinding).tenantUserId === userId && dialog.id === dialogId;
1416
+ }
1417
+ function isLocalDispatchSpeedSource(value, dialogId, userId) {
1418
+ const run = record(value);
1419
+ const proof = record(run.dispatchSpeedProvenance);
1420
+ return proof.version === 1 && proof.source === "cli-startAgentRun" && proof.userId === userId && typeof run.runId === "string" && run.runId.length > 0 && run.dialogId === dialogId && run.ephemeral !== true;
1421
+ }
1422
+
1410
1423
  export {
1411
1424
  isGptProModel,
1412
1425
  shouldBlockForGptPro,
@@ -1419,5 +1432,7 @@ export {
1419
1432
  matchesAgentQuery,
1420
1433
  buildAgentDiscoveryResult,
1421
1434
  toDiscoverySafeAgentSummary,
1422
- injectSpeedContextIntoListAgentsResult
1435
+ injectSpeedContextIntoListAgentsResult,
1436
+ isServerDispatchSpeedSource,
1437
+ isLocalDispatchSpeedSource
1423
1438
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-ILHQ2AXT.js";
3
+ } from "./chunk-WRKMXMU7.js";
4
4
 
5
5
  // packages/core/init.ts
6
6
  var nolotusId = "0e95801d90";
@@ -6,12 +6,12 @@ import {
6
6
  localTurnHasSubjectRefs,
7
7
  resolveLocalUserId,
8
8
  withResolvedRuntimeToolSurface
9
- } from "./chunk-HHFGE2WF.js";
9
+ } from "./chunk-2574ANSV.js";
10
10
  import "./chunk-2X7WFDT6.js";
11
11
  import "./chunk-BR3GT6MR.js";
12
12
  import "./chunk-VS276URX.js";
13
13
  import "./chunk-6OVNSQHN.js";
14
- import "./chunk-ILHQ2AXT.js";
14
+ import "./chunk-WRKMXMU7.js";
15
15
  import "./chunk-M2EJHDJP.js";
16
16
  import "./chunk-I42VC5KR.js";
17
17
  import "./chunk-BIDSIRTS.js";
@@ -7,7 +7,7 @@ import {
7
7
  isCliAuthorityBrokerProtocolError,
8
8
  isCliAuthorityBrokerTimeoutError,
9
9
  isCliAuthorityBrokerUnavailableError
10
- } from "./chunk-5ZMIIR23.js";
10
+ } from "./chunk-XBAEM4RI.js";
11
11
  import "./chunk-U67V476Y.js";
12
12
  export {
13
13
  CliAuthorityBrokerProtocolError,
@@ -3,48 +3,47 @@ import {
3
3
  readDialogMessageRecords,
4
4
  readDialogMessages,
5
5
  resolveBuiltinLocalCliAgentConfig
6
- } from "./chunk-TCZ2VJZQ.js";
7
- import "./chunk-DBUR22G5.js";
8
- import "./chunk-S6K5F3KP.js";
9
- import "./chunk-OJ45MEEI.js";
6
+ } from "./chunk-U3G7RRXJ.js";
7
+ import "./chunk-N2JROHD3.js";
8
+ import "./chunk-JBWXPACD.js";
9
+ import "./chunk-PROOOQZ3.js";
10
10
  import "./chunk-BR3GT6MR.js";
11
- import "./chunk-SRCCSTIM.js";
12
- import "./chunk-VIDPVFP3.js";
13
- import "./chunk-4JH2UMJR.js";
14
- import "./chunk-3QIYD3VM.js";
11
+ import "./chunk-TRHJ4NJB.js";
15
12
  import "./chunk-ZNFJWEN4.js";
16
- import "./chunk-U2HBB7RS.js";
13
+ import "./chunk-BEM6LPD2.js";
14
+ import "./chunk-H7ZYKHAZ.js";
17
15
  import "./chunk-PWTNI4N7.js";
18
16
  import "./chunk-AL3TYDIF.js";
19
- import "./chunk-HSSBDZLD.js";
17
+ import "./chunk-HOM6LTEW.js";
20
18
  import "./chunk-HNUWUO75.js";
21
19
  import "./chunk-CHOZJMJS.js";
22
- import "./chunk-XAG3FWBE.js";
20
+ import "./chunk-KZPEGO6D.js";
23
21
  import "./chunk-LKA64WH4.js";
24
22
  import "./chunk-BYXBJQAS.js";
25
- import "./chunk-DUUDXSLX.js";
26
- import "./chunk-QYB23WUH.js";
23
+ import "./chunk-BGGAY6OK.js";
24
+ import "./chunk-5QZSEQSK.js";
27
25
  import "./chunk-56GBUMO5.js";
28
- import "./chunk-FPBJM2BW.js";
26
+ import "./chunk-PGKA77TZ.js";
29
27
  import "./chunk-EEOOBRA7.js";
30
28
  import "./chunk-X4O7FJF5.js";
31
- import "./chunk-MNEZUL5S.js";
29
+ import "./chunk-G22P367E.js";
32
30
  import "./chunk-QJTZ76CP.js";
31
+ import "./chunk-7NIBQ4HY.js";
33
32
  import "./chunk-VS276URX.js";
34
33
  import "./chunk-TLE77UJ5.js";
35
- import "./chunk-OBIC6EG7.js";
34
+ import "./chunk-TWTJV35S.js";
36
35
  import "./chunk-WFGNWWJI.js";
37
- import "./chunk-FJSNBZXR.js";
36
+ import "./chunk-MM73SP4K.js";
38
37
  import "./chunk-2MBTWINN.js";
39
- import "./chunk-QRGDJA4B.js";
38
+ import "./chunk-DNZ4JJ7C.js";
40
39
  import "./chunk-5ZUL4CUO.js";
41
40
  import "./chunk-L32W3PRP.js";
42
41
  import "./chunk-H57T64RA.js";
43
42
  import "./chunk-UKZX3NHN.js";
44
43
  import "./chunk-5MMAK75Q.js";
45
44
  import "./chunk-USGHJSGO.js";
46
- import "./chunk-KX6YBIHG.js";
47
45
  import "./chunk-OQHIVPG4.js";
46
+ import "./chunk-KX6YBIHG.js";
48
47
  import "./chunk-DWLEOOGR.js";
49
48
  import "./chunk-7DPNBQSV.js";
50
49
  import "./chunk-OW765XBU.js";
@@ -53,22 +52,27 @@ import "./chunk-EWQ3HGNZ.js";
53
52
  import "./chunk-PSCNXBYA.js";
54
53
  import "./chunk-G7Y4GXTY.js";
55
54
  import "./chunk-6UBGXX2W.js";
56
- import "./chunk-G7IUT2V3.js";
55
+ import "./chunk-4ZCTKB27.js";
56
+ import "./chunk-EBKHA63G.js";
57
57
  import "./chunk-6OVNSQHN.js";
58
58
  import "./chunk-W6RFEDN4.js";
59
- import "./chunk-EVGU5P4U.js";
60
- import "./chunk-ILHQ2AXT.js";
59
+ import "./chunk-ZVOL2MAJ.js";
60
+ import "./chunk-WRKMXMU7.js";
61
61
  import "./chunk-M2EJHDJP.js";
62
62
  import "./chunk-SYTHYBMI.js";
63
63
  import "./chunk-OJKUU3LP.js";
64
64
  import "./chunk-YZMNK53S.js";
65
65
  import "./chunk-I42VC5KR.js";
66
+ import "./chunk-SRCCSTIM.js";
67
+ import "./chunk-VIDPVFP3.js";
68
+ import "./chunk-4JH2UMJR.js";
66
69
  import "./chunk-U6VC4MU4.js";
67
- import "./chunk-42OKN2LI.js";
68
- import "./chunk-JQZRSXS5.js";
70
+ import "./chunk-5HUO7SEX.js";
71
+ import "./chunk-YGDYYFRX.js";
72
+ import "./chunk-2SXN7LAY.js";
69
73
  import "./chunk-KHCLMKZZ.js";
70
74
  import "./chunk-62HXNQVV.js";
71
- import "./chunk-7JGMNKKG.js";
75
+ import "./chunk-6CKUO32A.js";
72
76
  import "./chunk-RTHFJZ6M.js";
73
77
  import "./chunk-HBRDSQ3M.js";
74
78
  import "./chunk-HNMXYYJR.js";