nolo-cli 0.103.0-alpha.2 → 0.103.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 (209) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-3UCNJCQA.js → _executeModel-7J7Q3WXY.js} +75 -68
  3. package/action-C4KMTCJF.js +20 -0
  4. package/{addContentAction-O7R66HEX.js → addContentAction-7TNIOVZI.js} +12 -11
  5. package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-O47J3MVW.js} +18 -19
  6. package/{agentDeleteCommand-2YAHAZFJ.js → agentDeleteCommand-YPJHK7JA.js} +117 -42
  7. package/{agentEmailCommands-WLYF3JRS.js → agentEmailCommands-AWEXOHWM.js} +98 -88
  8. package/agentListCommands-2DTLLJZD.js +742 -0
  9. package/{agentMachineCommands-HNGAR5GI.js → agentMachineCommands-PGEEQ4JJ.js} +48 -43
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-XPJYZSCE.js} +97 -2
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
  12. package/agentRecordCommands-DZVLCPLJ.js +138 -0
  13. package/agentRunCommand-AX5CYQ46.js +167 -0
  14. package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
  15. package/{agentRuntimeLocal-VXZSDIGT.js → agentRuntimeLocal-PITRQ2EU.js} +48 -39
  16. package/{agentSlice-SICQBMCM.js → agentSlice-4TLSG6FB.js} +14 -13
  17. package/{appDeleteCommands-32MHLR4L.js → appDeleteCommands-UC2JW5FJ.js} +46 -41
  18. package/{appDeployCommands-WCQOUSOB.js → appDeployCommands-OL2RKVJ3.js} +46 -41
  19. package/{appDeployStatusCommands-6QKB7DYN.js → appDeployStatusCommands-B3PLC62M.js} +46 -41
  20. package/{appGetCommands-SFAPP5PB.js → appGetCommands-REESA2XQ.js} +46 -41
  21. package/{appListCommands-EKUBDRUO.js → appListCommands-UF6XX7HR.js} +46 -41
  22. package/{authCommand-F4EFRRX6.js → authCommand-NQPMGYHP.js} +118 -24
  23. package/{authCommands-RGOGCPP6.js → authCommands-LWLOZETU.js} +7 -5
  24. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-GFY77VRN.js} +10 -8
  25. package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
  26. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
  27. package/{chunk-UKZDAFYT.js → chunk-22RVE2PC.js} +6 -10
  28. package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
  29. package/{chunk-HVURBGF3.js → chunk-2H6SEVDS.js} +6 -6
  30. package/{chunk-TOP2VXOR.js → chunk-2K4TM6AW.js} +5 -5
  31. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  32. package/{chunk-53HEEOTT.js → chunk-2WJ57RJA.js} +83 -16
  33. package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
  34. package/chunk-4A2R7KHG.js +13545 -0
  35. package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
  36. package/{chunk-JRQFUXY7.js → chunk-4G4C5SXT.js} +99 -22
  37. package/{chunk-DHDMC6FO.js → chunk-4HTMUQIZ.js} +14 -9
  38. package/{chunk-B3TVQ6PI.js → chunk-4IVA6UUE.js} +20 -11
  39. package/chunk-4LCOCOR5.js +50 -0
  40. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  41. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  42. package/{chunk-H62HCIUP.js → chunk-56HJ2LAA.js} +35 -22
  43. package/{chunk-V4MJDUSR.js → chunk-5EPHWMP5.js} +2 -2
  44. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  45. package/{chunk-3WLK2JQ5.js → chunk-5IWONK6X.js} +68 -46
  46. package/chunk-5J3PYNUP.js +255 -0
  47. package/chunk-5MMAK75Q.js +15 -0
  48. package/{chunk-LW4VFPAY.js → chunk-5ZDLVKNG.js} +873 -228
  49. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  50. package/{chunk-AEOE4Z6Q.js → chunk-6UEJDFF7.js} +39 -15
  51. package/{chunk-JPGCXHNM.js → chunk-7JWCVINR.js} +1 -1
  52. package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
  53. package/{chunk-IIVGDG4I.js → chunk-7KWFIKKK.js} +13 -7
  54. package/chunk-A4SQRTZ6.js +15 -0
  55. package/chunk-AGIM7IMJ.js +147 -0
  56. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  57. package/{chunk-L5UXH3B2.js → chunk-B455PEFD.js} +27 -8
  58. package/{chunk-XS5SWEDQ.js → chunk-BELZY72F.js} +1 -1
  59. package/chunk-BMQ2MJUK.js +153 -0
  60. package/{chunk-6YTOJY35.js → chunk-BZ7NPA6G.js} +35 -2
  61. package/chunk-CHOZJMJS.js +78 -0
  62. package/{chunk-3BMYXEUW.js → chunk-CUF4MYKI.js} +1 -1
  63. package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
  64. package/{chunk-WV42OMV7.js → chunk-D2GQE6AF.js} +8 -8
  65. package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
  66. package/chunk-DZ7R5V3Y.js +164 -0
  67. package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
  68. package/{chunk-KQ4ONNQD.js → chunk-EKPKW6RM.js} +155 -8
  69. package/{chunk-ABQYVJBJ.js → chunk-EV235ILT.js} +5 -5
  70. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  71. package/{chunk-AGVEIAQA.js → chunk-F442UK5V.js} +29 -78
  72. package/{chunk-HJUYAD4A.js → chunk-FBTNYNAL.js} +5 -5
  73. package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
  74. package/{chunk-ETI2NYVF.js → chunk-GCTKWVLU.js} +4 -4
  75. package/chunk-GMZLP5DV.js +82 -0
  76. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  77. package/{chunk-6VFARHZW.js → chunk-H7TQORR4.js} +994 -1079
  78. package/{chunk-5H7KJX7J.js → chunk-HD3S2F7U.js} +5 -5
  79. package/chunk-HDJRLWTG.js +8002 -0
  80. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  81. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  82. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  83. package/{chunk-VLTIYV3X.js → chunk-HP57OUJO.js} +4 -4
  84. package/{chunk-4OEFYTWL.js → chunk-IRZTHHNM.js} +67 -48
  85. package/{chunk-GPCZ7UXG.js → chunk-K6U4NKFJ.js} +1 -1
  86. package/{chunk-OZGZPSEG.js → chunk-KGRP4VOK.js} +47 -67
  87. package/{chunk-DNCEALKX.js → chunk-LB5A6JTU.js} +22 -29
  88. package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
  89. package/{chunk-PUOC4YRO.js → chunk-M7VLQGQP.js} +11 -0
  90. package/{chunk-Z77CRGTW.js → chunk-MSFZ7FMO.js} +1 -1
  91. package/chunk-NKWIS6G2.js +442 -0
  92. package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
  93. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  94. package/chunk-NWENLDMM.js +42 -0
  95. package/chunk-O7SVKKLY.js +875 -0
  96. package/chunk-OCZKATRC.js +129 -0
  97. package/{chunk-PQFHGD77.js → chunk-OM2RUOEU.js} +161 -14
  98. package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
  99. package/{chunk-TQBHNYVR.js → chunk-PLRFCQ7C.js} +567 -519
  100. package/{chunk-6D6VBVEW.js → chunk-Q7O72MF5.js} +80 -14
  101. package/{chunk-J4MOO56S.js → chunk-RILRSUGC.js} +10 -2
  102. package/{chunk-RSONHHPE.js → chunk-RNUDNZJW.js} +10 -10
  103. package/{chunk-3N3W7KBB.js → chunk-RZJAZVCF.js} +11 -9
  104. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  105. package/{chunk-GEPUP7OO.js → chunk-TSXNDTXL.js} +3 -3
  106. package/chunk-TY3TIUJK.js +89 -0
  107. package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
  108. package/{chunk-UZGQNTVW.js → chunk-UA324D4O.js} +8 -6
  109. package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
  110. package/{chunk-BP4XNZRM.js → chunk-UNAOTLKO.js} +4 -4
  111. package/{chunk-CUQEXCAU.js → chunk-UQ5P2WHS.js} +29 -9
  112. package/{chunk-NA35QHCF.js → chunk-V6YASAZR.js} +1 -1
  113. package/{chunk-3DII57IT.js → chunk-VCAQFMVN.js} +1 -1
  114. package/chunk-VIWDGTDA.js +8 -0
  115. package/chunk-VJVNU77E.js +83 -0
  116. package/{chunk-ZCYXJSTU.js → chunk-VL3H5ZU3.js} +66 -94
  117. package/{chunk-Q554LLSI.js → chunk-VLGL7FOL.js} +1 -1
  118. package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
  119. package/{chunk-4EG4QFTK.js → chunk-WI6TUGLJ.js} +19 -17
  120. package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
  121. package/{chunk-OEVAY4J6.js → chunk-XMUZHRSB.js} +18 -20
  122. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  123. package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
  124. package/{chunk-7S4YWN7P.js → chunk-YDO5ERB4.js} +4 -4
  125. package/chunk-YK5MHOWM.js +915 -0
  126. package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
  127. package/chunk-YV25TM3R.js +780 -0
  128. package/{chunk-IONPPCL5.js → chunk-YZZREBID.js} +86 -16
  129. package/{chunk-DNUUJ45N.js → chunk-Z3WSAK6A.js} +23 -28
  130. package/chunk-ZRAU6T47.js +56 -0
  131. package/commandRegistry-VQPFWVDH.js +833 -0
  132. package/{contentThunks-S4S7QPSO.js → contentThunks-A26ME6OJ.js} +37 -35
  133. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  134. package/{createAgentAutomationAction-ODGL2YGP.js → createAgentAutomationAction-BSAMZJ5W.js} +39 -37
  135. package/createDialogAction-CMCQXYHD.js +69 -0
  136. package/{createPageAction-FBV3OWX7.js → createPageAction-ANGKJTK2.js} +46 -43
  137. package/{chunk-F2RNI7ZR.js → cursorProvider-YGGNMVWX.js} +2496 -9897
  138. package/{dbSlice-XVWBAGYN.js → dbSlice-QOLNF5GN.js} +11 -10
  139. package/{deleteFile-YG6QMJLU.js → deleteFile-KESP65GC.js} +7 -6
  140. package/{dialogCommands-5J56DFWN.js → dialogCommands-AMPAWLX4.js} +49 -45
  141. package/{dialogSlice-LEO27SQG.js → dialogSlice-DGWDEBYC.js} +41 -34
  142. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  143. package/{docCreateCommands-KYI2DC2U.js → docCreateCommands-7NMIYL5D.js} +48 -43
  144. package/{docDeleteCommands-67REUSRY.js → docDeleteCommands-BD4OM5PV.js} +49 -44
  145. package/{docReadCommands-HOSVSBDJ.js → docReadCommands-5IOVAKU2.js} +47 -42
  146. package/{docStore-MNX5MHA5.js → docStore-TP4QDER4.js} +16 -12
  147. package/{docUpdateCommands-EMGCSMXY.js → docUpdateCommands-ZTKJ6UPC.js} +48 -43
  148. package/{fetchMessages-EIU7UFFK.js → fetchMessages-5L7OVM5Y.js} +5 -5
  149. package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +4 -4
  150. package/{handleSendMessageAction-YB6KQFJS.js → handleSendMessageAction-N4WKFRSQ.js} +111 -87
  151. package/index.js +87 -884
  152. package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
  153. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-O5A26FDK.js} +2 -2
  154. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
  155. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
  156. package/{machineCommands-7GVQCUAK.js → machineCommands-47WKGY5Z.js} +92 -82
  157. package/machineWsRunDispatch-CYW5FJ52.js +154 -0
  158. package/{memberThunks-QGFLFVCI.js → memberThunks-25K6DDRA.js} +20 -18
  159. package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
  160. package/oauthTokenStore-ITEB663N.js +23 -0
  161. package/package.json +1 -1
  162. package/pdf-U6KSUEZZ.js +26435 -0
  163. package/processSpawn-SOAV3FEV.js +11 -0
  164. package/profileConfig-ZGOFORWV.js +43 -0
  165. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-TEBH7FDX.js} +7 -7
  166. package/{providerRegistry-757OWH3O.js → providerRegistry-CBJLNCET.js} +11 -7
  167. package/{read-COE3ZYR6.js → read-PJIT2YEJ.js} +7 -6
  168. package/{readDocTool-5USN4A6V.js → readDocTool-DRSXHGNL.js} +5 -3
  169. package/{readlineWorkspace-WA7JNI6J.js → readlineWorkspace-CK7GOVOC.js} +2698 -2055
  170. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-VIWJL6MX.js} +21 -25
  171. package/{runAgentClientLoop-JGFQ6KIR.js → runAgentClientLoop-BGHGP5AR.js} +76 -70
  172. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
  173. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  174. package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-A7VA3NFM.js} +15 -13
  175. package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +22 -26
  176. package/{chunk-AFUORTY4.js → settingThunks-KOYSAT65.js} +226 -940
  177. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
  178. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  179. package/{spaceCommands-NKJVJCQQ.js → spaceCommands-QJCYG27F.js} +51 -46
  180. package/{streamAgentChatTurn-XLFZ66UC.js → streamAgentChatTurn-ANE7OTCZ.js} +214 -108
  181. package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-3VYWHZKH.js} +18 -19
  182. package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
  183. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-EJT6TMFG.js} +3 -3
  184. package/tools-WPOVVP7M.js +116 -0
  185. package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-QCHCULPM.js} +25 -22
  186. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  187. package/{updateDialogTitleAction-6MBTD4UE.js → updateDialogTitleAction-C4GRCXL4.js} +82 -44
  188. package/action-YVYQEAAV.js +0 -31
  189. package/agentListCommands-JP7S7PT2.js +0 -469
  190. package/agentRecordCommands-SXFPW3DL.js +0 -128
  191. package/agentRunCommand-JIQ4HY4D.js +0 -155
  192. package/browser-image-compression-MFDTD7K6.js +0 -1763
  193. package/chatQueueReduxAdapter-HHMUDNXL.js +0 -186
  194. package/chunk-CQ3WA2NE.js +0 -299
  195. package/chunk-M76ECQRD.js +0 -13658
  196. package/chunk-MEYIRKDN.js +0 -8967
  197. package/chunk-Q5FJJ6XI.js +0 -103
  198. package/chunk-S7Z2HMCN.js +0 -25
  199. package/chunk-XVZ22N6C.js +0 -20782
  200. package/chunk-Y5GCAMGP.js +0 -9
  201. package/chunk-YPREESF4.js +0 -225
  202. package/createDialogAction-GFKRXTK4.js +0 -65
  203. package/machineWsRunDispatch-XA7TD7Z7.js +0 -144
  204. package/settingSlice-ZQZVUPKK.js +0 -204
  205. package/syncMapping-N6RGXGBW.js +0 -437
  206. package/tools-NF5AB34X.js +0 -110
  207. package/{chunk-VMFTFOWF.js → chunk-ODAPITXL.js} +7 -7
  208. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  209. package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
@@ -1,469 +0,0 @@
1
- import {
2
- decorateAgentsWithPublicStatusAcrossServers,
3
- listFavoriteAgentIdsAcrossServers,
4
- listLocalCachedAgents,
5
- listRemoteAgents,
6
- listRemoteAgentsAcrossServers,
7
- listRemotePublicAgents,
8
- normalizeListedAgent,
9
- parseAgentListArgs,
10
- toSafeListedAgentSummary
11
- } from "./chunk-IONPPCL5.js";
12
- import {
13
- buildSpaceLookup,
14
- getSpaceContentKeys
15
- } from "./chunk-ID4G2MAR.js";
16
- import {
17
- readLiveDbRecordAfterTombstoneMerge
18
- } from "./chunk-GEPUP7OO.js";
19
- import {
20
- applyCredentialAvailability,
21
- readCredentialAvailability
22
- } from "./chunk-42V6BK2E.js";
23
- import {
24
- getReadableCliDb
25
- } from "./chunk-LS2ZANRJ.js";
26
- import {
27
- queryUserRecords,
28
- readDbRecord
29
- } from "./chunk-AEOE4Z6Q.js";
30
- import "./chunk-Z77CRGTW.js";
31
- import "./chunk-SV5IJK6K.js";
32
- import {
33
- omitNullishAgentSummaryFields,
34
- sortSafeAgentSummaries,
35
- summarizeCredentialGroups,
36
- toCompactAgentSummary,
37
- toSafeAgentSummary,
38
- toUnavailableAgentSummary
39
- } from "./chunk-PQFHGD77.js";
40
- import "./chunk-KQHGZWSV.js";
41
- import "./chunk-YYLHWIW6.js";
42
- import "./chunk-6VFARHZW.js";
43
- import "./chunk-ZCYXJSTU.js";
44
- import "./chunk-Q5FJJ6XI.js";
45
- import "./chunk-ZNFJWEN4.js";
46
- import "./chunk-5H7KJX7J.js";
47
- import "./chunk-CQ3WA2NE.js";
48
- import "./chunk-5ZUL4CUO.js";
49
- import "./chunk-N7J63Q6C.js";
50
- import "./chunk-L5UXH3B2.js";
51
- import "./chunk-PUOC4YRO.js";
52
- import "./chunk-IIVGDG4I.js";
53
- import {
54
- isAgentUnavailableNow
55
- } from "./chunk-FDTR4QJ6.js";
56
- import "./chunk-UZGQNTVW.js";
57
- import "./chunk-6OZ36FXI.js";
58
- import "./chunk-2MBTWINN.js";
59
- import "./chunk-4OEFYTWL.js";
60
- import "./chunk-DNCEALKX.js";
61
- import "./chunk-PSCNXBYA.js";
62
- import "./chunk-GQBOR3G6.js";
63
- import "./chunk-BYXBJQAS.js";
64
- import "./chunk-OIVSQH2O.js";
65
- import "./chunk-DWLEOOGR.js";
66
- import "./chunk-HVURBGF3.js";
67
- import "./chunk-ONXOABJR.js";
68
- import "./chunk-W7XHHYWM.js";
69
- import {
70
- toErrorMessage
71
- } from "./chunk-HNMXYYJR.js";
72
- import "./chunk-DVINR3PL.js";
73
- import "./chunk-2GRGFCF6.js";
74
- import "./chunk-O6OSWFZQ.js";
75
- import "./chunk-X7HHHIOZ.js";
76
- import {
77
- parseUserIdFromAuthToken,
78
- readOption,
79
- resolveAuthToken,
80
- resolveServerCandidates,
81
- resolveServerUrl
82
- } from "./chunk-A7GB5UGH.js";
83
- import "./chunk-OLZBQWZU.js";
84
- import "./chunk-ACTMNVHM.js";
85
- import "./chunk-Q67DOFOO.js";
86
- import "./chunk-KX6YBIHG.js";
87
- import "./chunk-V4MJDUSR.js";
88
- import "./chunk-UAD2WT54.js";
89
- import "./chunk-H62HCIUP.js";
90
- import "./chunk-VMFTFOWF.js";
91
- import "./chunk-WWC7I6TA.js";
92
- import "./chunk-ABQYVJBJ.js";
93
- import "./chunk-QSJ3HFEF.js";
94
- import "./chunk-WV42OMV7.js";
95
- import "./chunk-BNGW5ASC.js";
96
- import "./chunk-M2EJHDJP.js";
97
- import "./chunk-UKWGR5SS.js";
98
- import "./chunk-QOKAKDPE.js";
99
- import "./chunk-OW765XBU.js";
100
- import "./chunk-SEJ5OS6F.js";
101
- import "./chunk-GBRG75BQ.js";
102
- import "./chunk-KUG52IAP.js";
103
- import "./chunk-3EUW3WEO.js";
104
- import "./chunk-U6VC4MU4.js";
105
- import "./chunk-LCBAMY2M.js";
106
- import "./chunk-4SN6J65J.js";
107
- import "./chunk-CF7PE763.js";
108
- import "./chunk-G3SUCT4W.js";
109
- import "./chunk-4VNS5WPM.js";
110
-
111
- // packages/ai/agent/quotaSnapshot.ts
112
- function findTightestQuotaWindow(quota, now = Date.now()) {
113
- if (!quota || !Array.isArray(quota.windows) || quota.windows.length === 0) {
114
- return void 0;
115
- }
116
- let best;
117
- let bestScore = -Infinity;
118
- for (const w of quota.windows) {
119
- let score = 0;
120
- if (typeof w.utilization === "number" && w.utilization >= 0) {
121
- score = 500 + Math.min(w.utilization, 1) * 500;
122
- } else if (typeof w.remaining === "number" && typeof w.limit === "number" && w.limit > 0) {
123
- const util = Math.max(0, 1 - w.remaining / w.limit);
124
- score = 500 + util * 500;
125
- } else if (typeof w.resetAt === "number" && w.resetAt > now) {
126
- score = 200;
127
- } else if (typeof w.remaining === "number") {
128
- score = 100;
129
- }
130
- if (score > bestScore) {
131
- bestScore = score;
132
- best = w;
133
- }
134
- }
135
- return best ?? quota.windows[0];
136
- }
137
- function formatQuotaSummary(quota, now = Date.now()) {
138
- const tightest = findTightestQuotaWindow(quota, now);
139
- if (!tightest) return void 0;
140
- const parts = [];
141
- if (typeof tightest.utilization === "number") {
142
- const pct = Math.round(tightest.utilization * 100);
143
- parts.push(`${pct}%\u5DF2\u7528`);
144
- } else if (typeof tightest.remaining === "number") {
145
- if (typeof tightest.limit === "number") {
146
- parts.push(`${tightest.remaining}/${tightest.limit}${tightest.unit ? ` ${tightest.unit}` : ""}`);
147
- } else {
148
- parts.push(`\u4F59${tightest.remaining}${tightest.unit ? ` ${tightest.unit}` : ""}`);
149
- }
150
- }
151
- if (tightest.scope && tightest.scope !== "user" && tightest.scope !== "project" && tightest.scope !== tightest.unit) {
152
- parts.push(tightest.scope);
153
- }
154
- if (typeof tightest.resetAt === "number" && tightest.resetAt > now) {
155
- const diffSec = Math.round((tightest.resetAt - now) / 1e3);
156
- if (diffSec < 60) {
157
- parts.push(`${diffSec}s\u540E\u91CD\u7F6E`);
158
- } else if (diffSec < 3600) {
159
- parts.push(`${Math.round(diffSec / 60)}m\u540E\u91CD\u7F6E`);
160
- } else if (diffSec < 86400) {
161
- const hours = (diffSec / 3600).toFixed(1).replace(/\.0$/, "");
162
- parts.push(`${hours}h\u540E\u91CD\u7F6E`);
163
- } else {
164
- const days = (diffSec / 86400).toFixed(1).replace(/\.0$/, "");
165
- parts.push(`${days}d\u540E\u91CD\u7F6E`);
166
- }
167
- }
168
- return parts.length > 0 ? parts.join(" \xB7 ") : void 0;
169
- }
170
-
171
- // packages/cli/agentListCommands.ts
172
- async function runAgentListCommand(args, deps = {}) {
173
- const env = deps.env ?? process.env;
174
- const output = deps.output ?? process.stdout;
175
- const { wantJson, wantSafe, publicOnly, scope: requestedScope, idsOnly, showUnavailable, verbose } = parseAgentListArgs(args);
176
- if (requestedScope && !["preferred", "public", "all"].includes(requestedScope)) {
177
- throw new Error(`Invalid scope '${requestedScope}'`);
178
- }
179
- if (requestedScope && publicOnly && requestedScope !== "public") {
180
- throw new Error(`Conflicting arguments: scope='${requestedScope}' conflicts with publicOnly=true.`);
181
- }
182
- const scope = requestedScope ?? "preferred";
183
- const spaceInput = readOption(args, "--space") ?? readOption(args, "--space-id");
184
- const authToken = resolveAuthToken(args, env);
185
- if (!authToken) {
186
- output.write("[nolo] agent list requires an auth token. Run `nolo login` or set AUTH_TOKEN.\n");
187
- return 1;
188
- }
189
- const userId = parseUserIdFromAuthToken(authToken);
190
- if (!userId) {
191
- output.write("[nolo] agent list could not read userId from AUTH_TOKEN.\n");
192
- return 1;
193
- }
194
- const fetchImpl = deps.fetchImpl ?? fetch;
195
- const fallbackFetchImpl = deps.fallbackFetchImpl;
196
- const serverUrl = resolveServerUrl(args, env);
197
- const serverUrls = resolveServerCandidates(args, env, serverUrl);
198
- try {
199
- let agents;
200
- let source;
201
- let serverFailures = [];
202
- try {
203
- const remoteResult = await listRemoteAgentsAcrossServers({
204
- authToken,
205
- fallbackFetchImpl,
206
- fetchImpl,
207
- serverUrls,
208
- userId
209
- });
210
- agents = remoteResult.agents;
211
- serverFailures = remoteResult.failures;
212
- source = "global-cache";
213
- } catch {
214
- try {
215
- const db = deps.db ?? await getReadableCliDb(output);
216
- agents = await listLocalCachedAgents({ db, userId });
217
- source = "local-cache";
218
- } catch {
219
- agents = await listRemoteAgents({
220
- authToken,
221
- fallbackFetchImpl,
222
- fetchImpl,
223
- serverUrl,
224
- userId,
225
- queryUserRecords,
226
- readDbRecord
227
- });
228
- source = "remote-cache";
229
- }
230
- }
231
- if (scope !== "preferred") {
232
- const publicAgents = await Promise.all(serverUrls.map((url) => listRemotePublicAgents({
233
- authToken,
234
- fetchImpl,
235
- serverUrl: url,
236
- limit: 500
237
- })));
238
- agents = publicAgents.flat();
239
- if (scope === "all") {
240
- const preferred = await listRemoteAgentsAcrossServers({
241
- authToken,
242
- fallbackFetchImpl,
243
- fetchImpl,
244
- serverUrls,
245
- userId
246
- });
247
- agents = [...preferred.agents, ...agents];
248
- }
249
- }
250
- agents = agents.filter((agent) => agent.privateKey.startsWith("agent-"));
251
- let resolvedSpaceId = null;
252
- let spaceContentKeys = null;
253
- if (spaceInput) {
254
- const { spaceId, spaceKey } = buildSpaceLookup(spaceInput);
255
- resolvedSpaceId = spaceId;
256
- const spaceRead = await readLiveDbRecordAfterTombstoneMerge({
257
- authToken,
258
- dbKey: spaceKey,
259
- fallbackFetchImpl,
260
- fetchImpl,
261
- serverUrls
262
- });
263
- serverFailures = [...serverFailures, ...spaceRead.failures];
264
- const spaceRecord = spaceRead.record;
265
- const currentSpaceContentKeys = getSpaceContentKeys(spaceRecord);
266
- spaceContentKeys = currentSpaceContentKeys;
267
- agents = agents.filter(
268
- (agent) => currentSpaceContentKeys.has(agent.privateKey) || currentSpaceContentKeys.has(agent.publicKey) || currentSpaceContentKeys.has(agent.id)
269
- );
270
- }
271
- if (source === "global-cache") {
272
- await decorateAgentsWithPublicStatusAcrossServers({
273
- agents,
274
- authToken,
275
- fallbackFetchImpl,
276
- fetchImpl,
277
- serverUrls
278
- });
279
- }
280
- if (publicOnly) {
281
- agents = agents.filter((agent) => agent.publicRecordExists);
282
- }
283
- agents = applyCredentialAvailability(
284
- agents,
285
- await readCredentialAvailability(env).catch(() => ({}))
286
- );
287
- const unavailableCount = agents.filter((agent) => isAgentUnavailableNow(agent)).length;
288
- const agentsForOutput = showUnavailable ? agents : agents.filter((agent) => !isAgentUnavailableNow(agent));
289
- if (idsOnly) {
290
- output.write(`${agentsForOutput.map((agent) => agent.id).join("\n")}
291
- `);
292
- return 0;
293
- }
294
- if (wantSafe) {
295
- const favoritesMap = await listFavoriteAgentIdsAcrossServers({
296
- authToken,
297
- fetchImpl,
298
- serverUrls
299
- }).catch(() => ({}));
300
- const existingKeys = /* @__PURE__ */ new Set();
301
- for (const agent of agents) {
302
- existingKeys.add(agent.privateKey);
303
- existingKeys.add(agent.publicKey);
304
- existingKeys.add(agent.id);
305
- }
306
- const extraFavoriteRecords = [];
307
- const hydratedFavoriteAgents = [];
308
- for (const favKey of Object.keys(favoritesMap)) {
309
- if (existingKeys.has(favKey)) continue;
310
- try {
311
- const favRead = await readLiveDbRecordAfterTombstoneMerge({
312
- authToken,
313
- dbKey: favKey,
314
- fallbackFetchImpl,
315
- fetchImpl,
316
- serverUrls
317
- });
318
- const record = favRead.record;
319
- if (!record || record.type && record.type !== "agent") continue;
320
- const norm = normalizeListedAgent(record);
321
- const candidateKeys = [record.dbKey, record.publicKey, record.id].filter((key) => typeof key === "string" && key.length > 0);
322
- if (spaceContentKeys && !candidateKeys.some((key) => spaceContentKeys?.has(key))) {
323
- continue;
324
- }
325
- if (norm) {
326
- if (!favKey.startsWith("agent-pub-")) {
327
- norm.verifiedAgentKey = favKey;
328
- if (typeof record.userId === "string" && record.userId) {
329
- norm.ownerId = record.userId;
330
- }
331
- }
332
- agents.push(norm);
333
- hydratedFavoriteAgents.push(norm);
334
- existingKeys.add(norm.privateKey);
335
- existingKeys.add(norm.publicKey);
336
- existingKeys.add(norm.id);
337
- } else {
338
- extraFavoriteRecords.push(record);
339
- for (const key of candidateKeys) existingKeys.add(key);
340
- }
341
- } catch {
342
- }
343
- }
344
- if (source === "global-cache" && hydratedFavoriteAgents.length > 0) {
345
- await decorateAgentsWithPublicStatusAcrossServers({
346
- agents: hydratedFavoriteAgents,
347
- authToken,
348
- fallbackFetchImpl,
349
- fetchImpl,
350
- serverUrls
351
- });
352
- }
353
- let safeCandidates = [
354
- ...agents.map((agent) => toSafeListedAgentSummary(agent, { favoritesMap, userId })),
355
- ...extraFavoriteRecords.map(
356
- (record) => toSafeAgentSummary(record, { favoritesMap, userId })
357
- )
358
- ];
359
- if (publicOnly) {
360
- safeCandidates = safeCandidates.filter((agent) => agent.isPublic);
361
- }
362
- const safeUnavailableList = safeCandidates.filter(
363
- (agent) => isAgentUnavailableNow(agent)
364
- );
365
- const safeUnavailableCount = safeUnavailableList.length;
366
- const safeUnavailableSummaries = safeUnavailableList;
367
- const safeUnavailableAgents = sortSafeAgentSummaries(
368
- safeUnavailableSummaries
369
- ).map(toUnavailableAgentSummary);
370
- const safeAgents = showUnavailable ? safeCandidates : safeCandidates.filter((agent) => !isAgentUnavailableNow(agent));
371
- const sortedSafeAgents = sortSafeAgentSummaries(safeAgents);
372
- const safeOutputAgents = verbose ? sortedSafeAgents.map(omitNullishAgentSummaryFields) : sortedSafeAgents.map(toCompactAgentSummary);
373
- const credentialGroups = summarizeCredentialGroups(safeCandidates);
374
- output.write(JSON.stringify({
375
- success: true,
376
- userId,
377
- ...resolvedSpaceId ? { spaceId: resolvedSpaceId } : {},
378
- total: sortedSafeAgents.length,
379
- unavailableCount: safeUnavailableCount,
380
- unavailableAgents: safeUnavailableAgents,
381
- credentialGroups,
382
- agents: safeOutputAgents
383
- }, null, 2));
384
- output.write("\n");
385
- return 0;
386
- }
387
- if (wantJson) {
388
- const credentialGroups = summarizeCredentialGroups(agentsForOutput);
389
- output.write(JSON.stringify({
390
- userId,
391
- ...resolvedSpaceId ? { spaceId: resolvedSpaceId } : {},
392
- targetServers: serverUrls,
393
- ...serverFailures.length ? { serverFailures } : {},
394
- total: agentsForOutput.length,
395
- publicCount: agentsForOutput.filter((agent) => agent.publicRecordExists).length,
396
- unavailableCount,
397
- credentialGroups,
398
- source,
399
- agents: agentsForOutput
400
- }, null, 2));
401
- output.write("\n");
402
- return 0;
403
- }
404
- output.write(`userId: ${userId}
405
- `);
406
- if (resolvedSpaceId) {
407
- output.write(`spaceId: ${resolvedSpaceId}
408
- `);
409
- }
410
- output.write(`targetServers: ${serverUrls.join(", ")}
411
- `);
412
- if (serverFailures.length) {
413
- output.write(`serverFailures: ${serverFailures.length}
414
- `);
415
- }
416
- output.write(`total agents: ${agentsForOutput.length}
417
- `);
418
- output.write(`public agents: ${agentsForOutput.filter((agent) => agent.publicRecordExists).length}
419
- `);
420
- if (unavailableCount > 0 && !showUnavailable) {
421
- output.write(`\u26D4 ${unavailableCount} agent(s) temporarily unavailable (429) hidden. Use --show-unavailable to list them.
422
- `);
423
- }
424
- output.write(`source: ${source}
425
- `);
426
- if (agentsForOutput.length === 0) {
427
- output.write("\n(no agents found)\n");
428
- return 0;
429
- }
430
- for (const agent of agentsForOutput) {
431
- const status = agent.publicRecordExists ? "public" : "private";
432
- const flagMismatch = agent.isPublicFlag !== agent.publicRecordExists ? ` flag=${agent.isPublicFlag}` : "";
433
- const credentialLine = agent.credentialConfigured ? `credentialConfigured=true${agent.credentialRef ? ` credentialRef=${agent.credentialRef}` : ""}${agent.apiKeyRef ? ` apiKeyRef=${agent.apiKeyRef}` : ""}` : "credentialConfigured=false";
434
- const availabilityLine = typeof agent.nextAvailableAt === "number" && agent.nextAvailableAt > Date.now() ? `nextAvailableAt=${new Date(agent.nextAvailableAt).toISOString()}` : "nextAvailableAt=now";
435
- const quotaSummary = formatQuotaSummary(agent.quota);
436
- const quotaLine = `quota=${quotaSummary ?? "-"}`;
437
- output.write(
438
- [
439
- `
440
- [${status}] ${agent.name}`,
441
- `id=${agent.id}`,
442
- `type=${agent.type ?? "-"}`,
443
- `model=${agent.model}`,
444
- `updatedAt=${agent.updatedAt ?? "-"}`,
445
- // 不输出 privateKey(dbKey 属敏感标识,与 web 端 listAgentsFunc 降权
446
- // 对齐;需要完整记录请用 --json)。
447
- // 私有 agent(publicRecordExists=false)的公开记录不存在,输出 "-" 而非
448
- // 一个库里不存在的 agent-pub-<id>,避免误导调用方拿它去 readAgent。
449
- `publicKey=${agent.publicRecordExists ? agent.publicKey : "-"}${flagMismatch}`,
450
- `tools=${agent.tools.join(", ") || "-"}`,
451
- credentialLine,
452
- availabilityLine,
453
- quotaLine
454
- ].join("\n")
455
- );
456
- output.write("\n");
457
- }
458
- return 0;
459
- } catch (error) {
460
- output.write(
461
- `[nolo] agent list failed: ${toErrorMessage(error)}
462
- `
463
- );
464
- return 1;
465
- }
466
- }
467
- export {
468
- runAgentListCommand
469
- };
@@ -1,128 +0,0 @@
1
- import {
2
- runAgentCreateCommand,
3
- runAgentReadCommand,
4
- runAgentUpdateCommand
5
- } from "./chunk-CUQEXCAU.js";
6
- import "./chunk-F2RNI7ZR.js";
7
- import "./chunk-53HEEOTT.js";
8
- import "./chunk-EADNWBAZ.js";
9
- import "./chunk-SH43IESU.js";
10
- import "./chunk-I3TQJXQ7.js";
11
- import "./chunk-42V6BK2E.js";
12
- import "./chunk-LS2ZANRJ.js";
13
- import "./chunk-AEOE4Z6Q.js";
14
- import "./chunk-Z77CRGTW.js";
15
- import "./chunk-SV5IJK6K.js";
16
- import "./chunk-MP64VFGD.js";
17
- import "./chunk-JBTJAPUF.js";
18
- import "./chunk-3DII57IT.js";
19
- import "./chunk-ATNTHIZI.js";
20
- import "./chunk-RSONHHPE.js";
21
- import "./chunk-HS7MLR74.js";
22
- import "./chunk-TQBHNYVR.js";
23
- import "./chunk-5UTFL4QJ.js";
24
- import "./chunk-NF64D32W.js";
25
- import "./chunk-3L2WKC3W.js";
26
- import "./chunk-3VNWWVKB.js";
27
- import "./chunk-PQFHGD77.js";
28
- import "./chunk-KQHGZWSV.js";
29
- import "./chunk-J4MOO56S.js";
30
- import "./chunk-HJUYAD4A.js";
31
- import "./chunk-EYAQT56M.js";
32
- import "./chunk-VIDPVFP3.js";
33
- import "./chunk-VLTIYV3X.js";
34
- import "./chunk-UKZDAFYT.js";
35
- import "./chunk-N4G4PKQ6.js";
36
- import "./chunk-FZGV4FGK.js";
37
- import "./chunk-MEYIRKDN.js";
38
- import "./chunk-63W5N6P3.js";
39
- import "./chunk-VF4K2QE6.js";
40
- import "./chunk-B3TVQ6PI.js";
41
- import "./chunk-DNUUJ45N.js";
42
- import "./chunk-OZGZPSEG.js";
43
- import "./chunk-ZJ7UHBJS.js";
44
- import "./chunk-XVZ22N6C.js";
45
- import "./chunk-MC4XLIJ7.js";
46
- import "./chunk-3BMYXEUW.js";
47
- import "./chunk-YYLHWIW6.js";
48
- import "./chunk-AGGIDPCZ.js";
49
- import "./chunk-3N3W7KBB.js";
50
- import "./chunk-TOP2VXOR.js";
51
- import "./chunk-5RGU3J7P.js";
52
- import "./chunk-6YTOJY35.js";
53
- import "./chunk-M76ECQRD.js";
54
- import "./chunk-YDH3FDFQ.js";
55
- import "./chunk-2F7RJC6L.js";
56
- import "./chunk-GLKOYSRU.js";
57
- import "./chunk-JRQFUXY7.js";
58
- import "./chunk-DHDMC6FO.js";
59
- import "./chunk-Q554LLSI.js";
60
- import "./chunk-KHCLMKZZ.js";
61
- import "./chunk-6VFARHZW.js";
62
- import "./chunk-ZCYXJSTU.js";
63
- import "./chunk-Q5FJJ6XI.js";
64
- import "./chunk-ZNFJWEN4.js";
65
- import "./chunk-5H7KJX7J.js";
66
- import "./chunk-CQ3WA2NE.js";
67
- import "./chunk-5ZUL4CUO.js";
68
- import "./chunk-N7J63Q6C.js";
69
- import "./chunk-L5UXH3B2.js";
70
- import "./chunk-PUOC4YRO.js";
71
- import "./chunk-IIVGDG4I.js";
72
- import "./chunk-FDTR4QJ6.js";
73
- import "./chunk-UZGQNTVW.js";
74
- import "./chunk-6OZ36FXI.js";
75
- import "./chunk-2MBTWINN.js";
76
- import "./chunk-4OEFYTWL.js";
77
- import "./chunk-DNCEALKX.js";
78
- import "./chunk-PSCNXBYA.js";
79
- import "./chunk-GQBOR3G6.js";
80
- import "./chunk-BYXBJQAS.js";
81
- import "./chunk-OIVSQH2O.js";
82
- import "./chunk-DWLEOOGR.js";
83
- import "./chunk-HVURBGF3.js";
84
- import "./chunk-ONXOABJR.js";
85
- import "./chunk-W7XHHYWM.js";
86
- import "./chunk-HNMXYYJR.js";
87
- import "./chunk-DVINR3PL.js";
88
- import "./chunk-2GRGFCF6.js";
89
- import "./chunk-O6OSWFZQ.js";
90
- import "./chunk-7S4YWN7P.js";
91
- import "./chunk-X7HHHIOZ.js";
92
- import "./chunk-A7GB5UGH.js";
93
- import "./chunk-OLZBQWZU.js";
94
- import "./chunk-ACTMNVHM.js";
95
- import "./chunk-Q67DOFOO.js";
96
- import "./chunk-BP4XNZRM.js";
97
- import "./chunk-AFUORTY4.js";
98
- import "./chunk-Y5GCAMGP.js";
99
- import "./chunk-QDSINZM3.js";
100
- import "./chunk-KX6YBIHG.js";
101
- import "./chunk-V4MJDUSR.js";
102
- import "./chunk-UAD2WT54.js";
103
- import "./chunk-H62HCIUP.js";
104
- import "./chunk-VMFTFOWF.js";
105
- import "./chunk-WWC7I6TA.js";
106
- import "./chunk-ABQYVJBJ.js";
107
- import "./chunk-QSJ3HFEF.js";
108
- import "./chunk-WV42OMV7.js";
109
- import "./chunk-BNGW5ASC.js";
110
- import "./chunk-M2EJHDJP.js";
111
- import "./chunk-UKWGR5SS.js";
112
- import "./chunk-QOKAKDPE.js";
113
- import "./chunk-OW765XBU.js";
114
- import "./chunk-SEJ5OS6F.js";
115
- import "./chunk-GBRG75BQ.js";
116
- import "./chunk-KUG52IAP.js";
117
- import "./chunk-3EUW3WEO.js";
118
- import "./chunk-U6VC4MU4.js";
119
- import "./chunk-LCBAMY2M.js";
120
- import "./chunk-4SN6J65J.js";
121
- import "./chunk-CF7PE763.js";
122
- import "./chunk-G3SUCT4W.js";
123
- import "./chunk-4VNS5WPM.js";
124
- export {
125
- runAgentCreateCommand,
126
- runAgentReadCommand,
127
- runAgentUpdateCommand
128
- };