nolo-cli 0.211.0 → 0.213.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 (173) hide show
  1. package/{_executeModel-VVQEOY3D.js → _executeModel-CUJLCFWR.js} +57 -54
  2. package/{action-U235TV4P.js → action-DF5UYSJF.js} +4 -4
  3. package/{addContentAction-7C76J7ST.js → addContentAction-WERAONNY.js} +9 -9
  4. package/{addDialogAgentAction-KTYANUEC.js → addDialogAgentAction-7VI7YRML.js} +16 -13
  5. package/{agentDeleteCommand-WHRU6VDJ.js → agentDeleteCommand-XJORXPGU.js} +80 -76
  6. package/{agentEmailCommands-ALLHXPW3.js → agentEmailCommands-XTYYFR6Z.js} +85 -80
  7. package/{agentListCommands-POKMEKMS.js → agentListCommands-OBLRBLHS.js} +237 -115
  8. package/{agentMachineCommands-WJLZLBPI.js → agentMachineCommands-5FMT3OT5.js} +33 -31
  9. package/{agentProviderCommands-MN3ABDME.js → agentProviderCommands-Q5O33MED.js} +33 -4
  10. package/{agentRecordCommands-OULZW3KM.js → agentRecordCommands-ZQ7SVYGG.js} +75 -70
  11. package/{agentRunCommand-ZNG4LGNQ.js → agentRunCommand-WS7IGO2W.js} +77 -73
  12. package/{agentRunControl-AF7BMR22.js → agentRunControl-TAMHJQSR.js} +8 -7
  13. package/{agentRuntimeLocal-YMUHFV5M.js → agentRuntimeLocal-SOO2OPJG.js} +30 -27
  14. package/{agentSlice-WNGUIMQZ.js → agentSlice-CHR6KOZN.js} +13 -13
  15. package/{appDeleteCommands-6MXPLAVF.js → appDeleteCommands-GUP6P5YE.js} +34 -32
  16. package/{appDeployCommands-ERRSVASW.js → appDeployCommands-MH2FX4O5.js} +34 -32
  17. package/{appDeployStatusCommands-ULICISLI.js → appDeployStatusCommands-SUHN3HPJ.js} +34 -32
  18. package/{appGetCommands-WYYYWROF.js → appGetCommands-YWDEX6Z4.js} +34 -32
  19. package/{appListCommands-DFCUCRCV.js → appListCommands-ZQVMLPAY.js} +34 -32
  20. package/{authCommand-ZJMWXFMA.js → authCommand-PWX2ZNUP.js} +15 -15
  21. package/{authCommands-WK6E42L2.js → authCommands-HV3EAU3V.js} +2 -2
  22. package/{builtinSkillRegistry-HH75G5J3.js → builtinSkillRegistry-2QETTQPM.js} +5 -4
  23. package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-DIVM2K3T.js} +1 -1
  24. package/{chunk-TRZP7JZ7.js → chunk-2QHFH3DR.js} +1 -0
  25. package/{chunk-XE4Q46FF.js → chunk-3CGG2PAL.js} +1 -1
  26. package/{chunk-YUXQAVRD.js → chunk-3UKL3HPD.js} +251 -14
  27. package/{chunk-BSISWVB4.js → chunk-4I7ERB7F.js} +1 -1
  28. package/{chunk-5ORJGHTL.js → chunk-4T2WNOY7.js} +6 -6
  29. package/{chunk-W5VC7F7V.js → chunk-5MQRBSMW.js} +84 -91
  30. package/{chunk-YLTLB5A7.js → chunk-6DWMYIUY.js} +7 -6
  31. package/chunk-6VLJ6YA7.js +11751 -0
  32. package/{chunk-KSTEXKL6.js → chunk-75XIDFBW.js} +4 -3
  33. package/{chunk-BTYQAODF.js → chunk-7BT37FK3.js} +196 -308
  34. package/{chunk-27E2CBBY.js → chunk-7OCO4TDT.js} +1 -1
  35. package/{chunk-V3M6IXQI.js → chunk-7QTZCMKL.js} +335 -131
  36. package/chunk-7RFNTILS.js +2213 -0
  37. package/{chunk-NHQKWPLP.js → chunk-7Y4YTDQF.js} +25 -23
  38. package/{chunk-CKAHAVMK.js → chunk-A7TFUNZO.js} +35 -25
  39. package/{chunk-PJNFNEJE.js → chunk-ALQ3657A.js} +28 -2
  40. package/{chunk-NV572QM3.js → chunk-BBJ22CLB.js} +15 -15
  41. package/chunk-CJEIOP3E.js +0 -0
  42. package/{chunk-4WCEC56C.js → chunk-COFEN36Z.js} +2 -2
  43. package/{chunk-25OB36GU.js → chunk-CRHOO2ZR.js} +4 -4
  44. package/{chunk-NTSRCTUX.js → chunk-CTPXME7U.js} +2 -2
  45. package/{chunk-TPCDYNJK.js → chunk-EHGEOAHI.js} +3 -3
  46. package/{chunk-Y2WUYX4I.js → chunk-EHSZD5OI.js} +1 -1
  47. package/{chunk-SU3QL7YG.js → chunk-FUGMREBO.js} +2 -2
  48. package/{chunk-UMEGDH6A.js → chunk-FW6YHHLI.js} +8 -8
  49. package/chunk-FY7F4Q6X.js +127 -0
  50. package/{chunk-25M2K6OA.js → chunk-G2BQWAVT.js} +3 -3
  51. package/chunk-G7MLNNEX.js +84 -0
  52. package/{chunk-DQLB4NQ3.js → chunk-GPVRUGGY.js} +2 -2
  53. package/{chunk-RQ22OZD7.js → chunk-H2TJUNCH.js} +1 -1
  54. package/{chunk-XPHZK3PJ.js → chunk-H4UOTUOX.js} +165 -51
  55. package/{chunk-CVCRAO6Q.js → chunk-H5HF7TJA.js} +9 -7
  56. package/{chunk-OP7PTBAJ.js → chunk-H7PPIYWP.js} +9 -9
  57. package/{chunk-QQM464AL.js → chunk-HPFCI4SK.js} +3 -3
  58. package/chunk-HRMJUN5J.js +26 -0
  59. package/{chunk-WI6OGHXJ.js → chunk-HSVBJRF4.js} +5 -5
  60. package/{chunk-RYWO5AKN.js → chunk-HUBHAQK2.js} +10 -10
  61. package/{chunk-LKDF3ATR.js → chunk-INUFILG6.js} +1 -1
  62. package/{chunk-NXCGNS4N.js → chunk-IXNGOHV5.js} +2 -2
  63. package/{chunk-ET2CWLIJ.js → chunk-J2NHJ7WX.js} +4 -4
  64. package/{chunk-ECX3NKRD.js → chunk-JY5NGFFH.js} +11 -0
  65. package/chunk-KC4XDTT3.js +227 -0
  66. package/{chunk-ADBWFYJD.js → chunk-KFLT5KAD.js} +9 -9
  67. package/{chunk-PLYWH7XM.js → chunk-KIM6CLW5.js} +7 -7
  68. package/{chunk-7IYBN7IA.js → chunk-LLRPJECG.js} +22 -13
  69. package/{chunk-3J3U3KXB.js → chunk-MDB67IWP.js} +5 -5
  70. package/chunk-MMA3LZ3W.js +105 -0
  71. package/{chunk-XDMGY5IU.js → chunk-MOIJOHA5.js} +227 -11
  72. package/{chunk-NLT32XBZ.js → chunk-NJLL224W.js} +2 -2
  73. package/{chunk-JBOUVTZX.js → chunk-NOKUNJON.js} +15 -4
  74. package/{chunk-C2XZM3K4.js → chunk-NSAPDIN2.js} +12 -27
  75. package/{chunk-PAFTGNWA.js → chunk-O2TZF4AI.js} +2 -2
  76. package/{chunk-UIOEHFF6.js → chunk-OQHIVPG4.js} +1 -0
  77. package/{chunk-TCTSYFDM.js → chunk-OQPKUBPB.js} +19 -6
  78. package/{chunk-X4F26D5K.js → chunk-P5L7CXOC.js} +58 -33
  79. package/{chunk-OXME3PEE.js → chunk-PCLE46CE.js} +1 -1
  80. package/{chunk-UCPAVEQB.js → chunk-PYRUW7XN.js} +1 -1
  81. package/{chunk-YXOBCDNW.js → chunk-QG4AOSON.js} +12 -49
  82. package/{chunk-RXCCWVA2.js → chunk-QHPRUL4O.js} +3 -3
  83. package/{chunk-I5PBXF7O.js → chunk-R5O4QAWG.js} +1 -1
  84. package/{chunk-HD3WR3TD.js → chunk-RLBNLZVC.js} +1 -1
  85. package/{chunk-SN5XE6GQ.js → chunk-RPQXPZZF.js} +4 -4
  86. package/{chunk-ZOO3WJIE.js → chunk-RSHTSUEG.js} +948 -108
  87. package/{chunk-6HVBI6TI.js → chunk-RZOV7OMV.js} +12 -229
  88. package/{chunk-D2MDMY2M.js → chunk-SVYO6AO7.js} +7 -1
  89. package/{chunk-IIHY4ZAI.js → chunk-TAKB25RM.js} +8 -4
  90. package/{chunk-ZN5AH4BY.js → chunk-TX5EYMGT.js} +6 -6
  91. package/{chunk-CKOO42G5.js → chunk-UHJGXRJ4.js} +4 -4
  92. package/{chunk-M4NTDZG3.js → chunk-UYD5HQ6T.js} +857 -295
  93. package/{chunk-WTKYP6QO.js → chunk-V5Y3R6BT.js} +114 -6
  94. package/{chunk-3RQVYR4B.js → chunk-VNYYOX3V.js} +59 -20
  95. package/{chunk-4LEGTOSR.js → chunk-VO4WSAVP.js} +3 -3
  96. package/{chunk-LNYHAKBP.js → chunk-W4S457LU.js} +1 -1
  97. package/{chunk-RIALQUSF.js → chunk-WMTBPBMP.js} +6 -6
  98. package/chunk-WPORQFYN.js +74 -0
  99. package/{chunk-Y6M7KJOA.js → chunk-WRYQ35LQ.js} +5 -5
  100. package/{chunk-YKFP6UGT.js → chunk-WYDI6TGM.js} +17 -17
  101. package/{chunk-SCYQJPGA.js → chunk-X7SDOJUM.js} +147 -20
  102. package/chunk-XFYFMTOM.js +92 -0
  103. package/{chunk-LT3EAHJY.js → chunk-XHQC4PXX.js} +65 -49
  104. package/{chunk-2WZXXAQD.js → chunk-YB3YZK56.js} +67 -1
  105. package/{chunk-JKW6LERJ.js → chunk-YJAFKXMU.js} +14 -14
  106. package/{chunk-GSQNH63I.js → chunk-YTF4WH7J.js} +3 -19
  107. package/{chunk-DA7CTWT4.js → chunk-YWSEPJ7C.js} +5 -5
  108. package/{chunk-3V2QMRNN.js → chunk-ZL5RAEEB.js} +3 -3
  109. package/{chunk-NEZGPBL7.js → chunk-ZNWI6OVT.js} +2 -2
  110. package/{chunk-MBS6CTZB.js → chunk-ZXOUUDCG.js} +266 -2014
  111. package/cliAgentConfigHelpers-WJBZQTLW.js +41 -0
  112. package/{commandRegistry-FI2IOQ3U.js → commandRegistry-W63CYRZJ.js} +91 -87
  113. package/{contentThunks-5LKNNDGY.js → contentThunks-U7PL5MQD.js} +27 -26
  114. package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-TIGUHXTD.js} +3 -3
  115. package/{createAgentAutomationAction-TI4QG4CY.js → createAgentAutomationAction-OLBQDD6R.js} +27 -26
  116. package/{createDialogAction-TJ3JKLO4.js → createDialogAction-SVH6B3SB.js} +29 -28
  117. package/{createPageAction-GKXT6WEH.js → createPageAction-F4DIWZ2Z.js} +29 -28
  118. package/{dbSlice-LPMZ2DGJ.js → dbSlice-BVH2YZPQ.js} +8 -8
  119. package/{deleteFile-EPUQHKPA.js → deleteFile-5YOEKV4U.js} +4 -4
  120. package/{dialogCommands-IWPXIZ5P.js → dialogCommands-KHIEPY3M.js} +38 -36
  121. package/{dialogSlice-ZWNNS7GZ.js → dialogSlice-ZCTDV2PZ.js} +25 -24
  122. package/{dialogUsageCommand-ZCPPHPJ5.js → dialogUsageCommand-7KCPYGHG.js} +1 -1
  123. package/{docCreateCommands-HFSPKJSI.js → docCreateCommands-DPMZI7G5.js} +32 -30
  124. package/{docDeleteCommands-CRL62POH.js → docDeleteCommands-IRQQLUBT.js} +34 -33
  125. package/{docReadCommands-QOTOX3XW.js → docReadCommands-LK37XH6L.js} +32 -30
  126. package/{docStore-WYLRB7ED.js → docStore-V2KECILA.js} +11 -11
  127. package/{docUpdateCommands-7BMH4MCA.js → docUpdateCommands-O6T3HJHH.js} +32 -30
  128. package/{fetchMessages-YY4SATNR.js → fetchMessages-NR4KNQLO.js} +3 -3
  129. package/{getPricing-OQXBJ6VZ.js → getPricing-2MNMXEVG.js} +3 -3
  130. package/{handleSendMessageAction-P27YP2DQ.js → handleSendMessageAction-2PE25WM3.js} +49 -47
  131. package/hostCredentialCreate-S233UMAP.js +357 -0
  132. package/index.js +7 -7
  133. package/{keys-P4ZDOVJW.js → keys-BEGDOTRL.js} +3 -1
  134. package/{localDialogRead-5VCMQQZF.js → localDialogRead-7NNDVVF7.js} +1 -1
  135. package/{localRuntimeAdapter-GP6ZSSO3.js → localRuntimeAdapter-KY6WXNBR.js} +82 -75
  136. package/{machineCommands-6Z6H4BFX.js → machineCommands-Q6HA3IXF.js} +74 -69
  137. package/{machineWsRunDispatch-F2ZIXMYM.js → machineWsRunDispatch-WWJQ6WR3.js} +74 -69
  138. package/{memberThunks-YSEFJF47.js → memberThunks-7EDJADWU.js} +9 -9
  139. package/package.json +1 -1
  140. package/{projectArchive-PIGEOX3D.js → projectArchive-DRTDIMEV.js} +29 -28
  141. package/{providerPresetApply-ZYMLQA46.js → providerPresetApply-YXGV6NXB.js} +4 -4
  142. package/{providerRegistry-E34XWDLJ.js → providerRegistry-S6UL6UNA.js} +4 -4
  143. package/{read-DIIQBOOO.js → read-4V2RMG7N.js} +4 -4
  144. package/{readDocTool-HXYGOEA7.js → readDocTool-BH6ATGQO.js} +1 -1
  145. package/{readlineWorkspace-UG25G7KC.js → readlineWorkspace-2W4WRCOU.js} +437 -217
  146. package/{removeDialogAgentAction-ALJDUJ2E.js → removeDialogAgentAction-LYAZGNKW.js} +18 -15
  147. package/{runAgentClientLoop-IO5F7TCZ.js → runAgentClientLoop-J2VQBS2Z.js} +55 -52
  148. package/{runtimeDoctorCommands-PGAA47G5.js → runtimeDoctorCommands-QAI3MBKQ.js} +6 -6
  149. package/{secretCommands-ZCZ4KVET.js → secretCommands-LXDWOLZ6.js} +4 -4
  150. package/{setDialogExtraReferencesAction-O3SVMD5A.js → setDialogExtraReferencesAction-OCRPGPYH.js} +11 -11
  151. package/{setPrimaryDialogAgentAction-HE7RVFFF.js → setPrimaryDialogAgentAction-HFJDQIBU.js} +19 -16
  152. package/{settingThunks-BWWJQG4L.js → settingThunks-RAMHMTGM.js} +13 -12
  153. package/{spaceCommands-UAELIFEI.js → spaceCommands-KVJZVKVO.js} +32 -31
  154. package/{streamAgentChatTurn-VUKZQYJR.js → streamAgentChatTurn-GHBMJJ6S.js} +63 -60
  155. package/{switchDialogAgentAction-3VZS7SOS.js → switchDialogAgentAction-EBRMW3RA.js} +16 -13
  156. package/{tools-VRXJAVYI.js → tools-EWKCPKMS.js} +49 -46
  157. package/{tuiSummaryLlmCaller-TGCHZLSW.js → tuiSummaryLlmCaller-ALQYUUWB.js} +48 -19
  158. package/{updateCommands-Q6CYAEYJ.js → updateCommands-ZQYU6SCI.js} +5 -3
  159. package/{updateDialogTitleAction-MULWCJCW.js → updateDialogTitleAction-5GGMBTDF.js} +40 -72
  160. package/usageCommand-F4IPVMIZ.js +32 -0
  161. package/usageRebuildCommand-HAW2AD5N.js +626 -0
  162. package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-257DV2T6.js} +2 -2
  163. package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-4C42SVBD.js} +1 -0
  164. package/chunk-4LCOCOR5.js +0 -50
  165. package/chunk-7AUQ3WCW.js +0 -51
  166. package/chunk-ZRAU6T47.js +0 -56
  167. package/{agentFavoriteCommands-GAFEXKKP.js → agentFavoriteCommands-EDK743YA.js} +1 -1
  168. package/{agentGrantCommands-V5FOQKFD.js → agentGrantCommands-RQWK2TEV.js} +1 -1
  169. package/{agentPullCommand-2JMJP5BS.js → agentPullCommand-6EM3URVK.js} +1 -1
  170. package/{chunk-A2ZMIRLN.js → chunk-INN4LTAJ.js} +5 -5
  171. package/{chunk-PV6JJAUB.js → chunk-TCZHTTUU.js} +8 -8
  172. package/{chunk-AKE53VMW.js → chunk-ZCWRMUWT.js} +0 -0
  173. package/{tableCommands-D7WR4QSM.js → tableCommands-MP6VFSVT.js} +3 -3
@@ -0,0 +1,127 @@
1
+ import {
2
+ require_interopRequireDefault,
3
+ require_requiredArgs,
4
+ require_toDate
5
+ } from "./chunk-MMA3LZ3W.js";
6
+ import {
7
+ __commonJS
8
+ } from "./chunk-4VNS5WPM.js";
9
+
10
+ // node_modules/date-fns/constants/index.js
11
+ var require_constants = __commonJS({
12
+ "node_modules/date-fns/constants/index.js"(exports) {
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ exports.secondsInYear = exports.secondsInWeek = exports.secondsInQuarter = exports.secondsInMonth = exports.secondsInMinute = exports.secondsInHour = exports.secondsInDay = exports.quartersInYear = exports.monthsInYear = exports.monthsInQuarter = exports.minutesInHour = exports.minTime = exports.millisecondsInSecond = exports.millisecondsInMinute = exports.millisecondsInHour = exports.maxTime = exports.daysInYear = exports.daysInWeek = void 0;
18
+ var daysInWeek = 7;
19
+ exports.daysInWeek = daysInWeek;
20
+ var daysInYear = 365.2425;
21
+ exports.daysInYear = daysInYear;
22
+ var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
23
+ exports.maxTime = maxTime;
24
+ var millisecondsInMinute = 6e4;
25
+ exports.millisecondsInMinute = millisecondsInMinute;
26
+ var millisecondsInHour = 36e5;
27
+ exports.millisecondsInHour = millisecondsInHour;
28
+ var millisecondsInSecond = 1e3;
29
+ exports.millisecondsInSecond = millisecondsInSecond;
30
+ var minTime = -maxTime;
31
+ exports.minTime = minTime;
32
+ var minutesInHour = 60;
33
+ exports.minutesInHour = minutesInHour;
34
+ var monthsInQuarter = 3;
35
+ exports.monthsInQuarter = monthsInQuarter;
36
+ var monthsInYear = 12;
37
+ exports.monthsInYear = monthsInYear;
38
+ var quartersInYear = 4;
39
+ exports.quartersInYear = quartersInYear;
40
+ var secondsInHour = 3600;
41
+ exports.secondsInHour = secondsInHour;
42
+ var secondsInMinute = 60;
43
+ exports.secondsInMinute = secondsInMinute;
44
+ var secondsInDay = secondsInHour * 24;
45
+ exports.secondsInDay = secondsInDay;
46
+ var secondsInWeek = secondsInDay * 7;
47
+ exports.secondsInWeek = secondsInWeek;
48
+ var secondsInYear = secondsInDay * daysInYear;
49
+ exports.secondsInYear = secondsInYear;
50
+ var secondsInMonth = secondsInYear / 12;
51
+ exports.secondsInMonth = secondsInMonth;
52
+ var secondsInQuarter = secondsInMonth * 3;
53
+ exports.secondsInQuarter = secondsInQuarter;
54
+ }
55
+ });
56
+
57
+ // node_modules/date-fns/differenceInMilliseconds/index.js
58
+ var require_differenceInMilliseconds = __commonJS({
59
+ "node_modules/date-fns/differenceInMilliseconds/index.js"(exports, module) {
60
+ "use strict";
61
+ var _interopRequireDefault = require_interopRequireDefault().default;
62
+ Object.defineProperty(exports, "__esModule", {
63
+ value: true
64
+ });
65
+ exports.default = differenceInMilliseconds;
66
+ var _index = _interopRequireDefault(require_toDate());
67
+ var _index2 = _interopRequireDefault(require_requiredArgs());
68
+ function differenceInMilliseconds(dateLeft, dateRight) {
69
+ (0, _index2.default)(2, arguments);
70
+ return (0, _index.default)(dateLeft).getTime() - (0, _index.default)(dateRight).getTime();
71
+ }
72
+ module.exports = exports.default;
73
+ }
74
+ });
75
+
76
+ // node_modules/date-fns/_lib/roundingMethods/index.js
77
+ var require_roundingMethods = __commonJS({
78
+ "node_modules/date-fns/_lib/roundingMethods/index.js"(exports) {
79
+ "use strict";
80
+ Object.defineProperty(exports, "__esModule", {
81
+ value: true
82
+ });
83
+ exports.getRoundingMethod = getRoundingMethod;
84
+ var roundingMap = {
85
+ ceil: Math.ceil,
86
+ round: Math.round,
87
+ floor: Math.floor,
88
+ trunc: function trunc(value) {
89
+ return value < 0 ? Math.ceil(value) : Math.floor(value);
90
+ }
91
+ // Math.trunc is not supported by IE
92
+ };
93
+ var defaultRoundingMethod = "trunc";
94
+ function getRoundingMethod(method) {
95
+ return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
96
+ }
97
+ }
98
+ });
99
+
100
+ // node_modules/date-fns/differenceInMinutes/index.js
101
+ var require_differenceInMinutes = __commonJS({
102
+ "node_modules/date-fns/differenceInMinutes/index.js"(exports, module) {
103
+ "use strict";
104
+ var _interopRequireDefault = require_interopRequireDefault().default;
105
+ Object.defineProperty(exports, "__esModule", {
106
+ value: true
107
+ });
108
+ exports.default = differenceInMinutes;
109
+ var _index = require_constants();
110
+ var _index2 = _interopRequireDefault(require_differenceInMilliseconds());
111
+ var _index3 = _interopRequireDefault(require_requiredArgs());
112
+ var _index4 = require_roundingMethods();
113
+ function differenceInMinutes(dateLeft, dateRight, options) {
114
+ (0, _index3.default)(2, arguments);
115
+ var diff = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInMinute;
116
+ return (0, _index4.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
117
+ }
118
+ module.exports = exports.default;
119
+ }
120
+ });
121
+
122
+ export {
123
+ require_constants,
124
+ require_differenceInMilliseconds,
125
+ require_roundingMethods,
126
+ require_differenceInMinutes
127
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-LT3EAHJY.js";
3
+ } from "./chunk-XHQC4PXX.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-MBS6CTZB.js";
6
+ } from "./chunk-ZXOUUDCG.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
- } from "./chunk-AKE53VMW.js";
9
+ } from "./chunk-ZCWRMUWT.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-KUG52IAP.js";
@@ -0,0 +1,84 @@
1
+ import {
2
+ NOLO_DEFAULT_AGENT_ID,
3
+ NOLO_DEFAULT_AGENT_KEY
4
+ } from "./chunk-NBTY7YJF.js";
5
+ import {
6
+ resolveRuntimeToolSurfaceForAgent
7
+ } from "./chunk-KC4XDTT3.js";
8
+ import {
9
+ isSystemBuiltinTrustedAgentKey
10
+ } from "./chunk-LOEO7LRC.js";
11
+ import {
12
+ resolveRuntimeAuthToken
13
+ } from "./chunk-HRMJUN5J.js";
14
+ import {
15
+ parseUserIdFromAuthToken
16
+ } from "./chunk-WACI5I6V.js";
17
+ import {
18
+ asOptionalTrimmedString
19
+ } from "./chunk-G3SUCT4W.js";
20
+
21
+ // packages/cli/client/cliAgentConfigHelpers.ts
22
+ var BUILTIN_NOLO_AGENT_KEY = NOLO_DEFAULT_AGENT_KEY;
23
+ var BUILTIN_NOLO_AGENT_ID = NOLO_DEFAULT_AGENT_ID;
24
+ function resolveLocalUserId(env) {
25
+ const explicitUserId = env.NOLO_LOCAL_USER_ID || env.NOLO_USER_ID;
26
+ if (explicitUserId) return explicitUserId;
27
+ const tokenUserId = parseUserIdFromAuthToken(resolveRuntimeAuthToken(env));
28
+ return tokenUserId || "local";
29
+ }
30
+ function isBuiltinNoloAgentRef(ref) {
31
+ if (typeof ref !== "string") return false;
32
+ const normalized = ref.trim();
33
+ return normalized === BUILTIN_NOLO_AGENT_KEY || normalized === BUILTIN_NOLO_AGENT_ID || normalized.endsWith(`-${BUILTIN_NOLO_AGENT_ID}`);
34
+ }
35
+ function isBuiltinNoloAgentConfig(agentConfig) {
36
+ const key = agentConfig?.key || agentConfig?.rawRecord?.dbKey || agentConfig?.rawRecord?.agentKey;
37
+ const id = agentConfig?.rawRecord?.id;
38
+ return isBuiltinNoloAgentRef(key) || isBuiltinNoloAgentRef(id);
39
+ }
40
+ function withResolvedRuntimeToolSurface(agentConfig, env) {
41
+ if (!agentConfig) return agentConfig;
42
+ const currentUserId = resolveLocalUserId(env);
43
+ const rawRecord = agentConfig.rawRecord ?? {};
44
+ const ownerId = asOptionalTrimmedString(rawRecord.userId) ?? null;
45
+ const agentKey = rawRecord.dbKey ?? agentConfig.key;
46
+ const toolSurface = resolveRuntimeToolSurfaceForAgent({
47
+ explicitToolNames: agentConfig.toolNames,
48
+ currentUserId,
49
+ agentOwnerId: ownerId,
50
+ agentKey,
51
+ isPublic: !isBuiltinNoloAgentConfig(agentConfig) && rawRecord.isPublic === true,
52
+ sharingLevel: typeof rawRecord.sharingLevel === "string" ? rawRecord.sharingLevel : null,
53
+ trustedPrivateInvocation: isBuiltinNoloAgentConfig(agentConfig) || isSystemBuiltinTrustedAgentKey(agentKey),
54
+ runtimeHost: "cli"
55
+ });
56
+ return {
57
+ ...agentConfig,
58
+ toolNames: toolSurface.finalToolNames,
59
+ toolSurface,
60
+ prompt: agentConfig.prompt
61
+ };
62
+ }
63
+ function extractLastUserText(messages) {
64
+ const lastUser = [...messages].reverse().find((m) => m.role === "user");
65
+ if (!lastUser) return "";
66
+ if (typeof lastUser.content === "string") return lastUser.content;
67
+ if (Array.isArray(lastUser.content)) {
68
+ return lastUser.content.filter((part) => part?.type === "text").map((part) => part.text ?? "").join(" ");
69
+ }
70
+ return "";
71
+ }
72
+ function localTurnHasSubjectRefs(input) {
73
+ return Array.isArray(input.runtimeContext?.subjectRefs) && input.runtimeContext.subjectRefs.length > 0;
74
+ }
75
+
76
+ export {
77
+ BUILTIN_NOLO_AGENT_KEY,
78
+ resolveLocalUserId,
79
+ isBuiltinNoloAgentRef,
80
+ isBuiltinNoloAgentConfig,
81
+ withResolvedRuntimeToolSurface,
82
+ extractLastUserText,
83
+ localTurnHasSubjectRefs
84
+ };
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-UMEGDH6A.js";
7
+ } from "./chunk-FW6YHHLI.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-UCPAVEQB.js";
11
+ } from "./chunk-PYRUW7XN.js";
12
12
  import {
13
13
  selectIdentityUserId
14
14
  } from "./chunk-PXYBUFDB.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelPricing
3
- } from "./chunk-A2ZMIRLN.js";
3
+ } from "./chunk-INN4LTAJ.js";
4
4
  import {
5
5
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
6
6
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,