nolo-cli 0.250.0-alpha.1 → 0.252.0-alpha.1

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 (186) hide show
  1. package/{_executeModel-F4MT6OPO.js → _executeModel-D6G3B45S.js} +51 -51
  2. package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
  3. package/{addContentAction-MLI6GOBV.js → addContentAction-MB22YIDV.js} +6 -6
  4. package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
  5. package/{agentDeleteCommand-DBCRHB4S.js → agentDeleteCommand-YCWDGJSF.js} +87 -82
  6. package/{agentEmailCommands-T4PAJ4KG.js → agentEmailCommands-DTWD5FWC.js} +87 -82
  7. package/{agentListCommands-5ULWKQ3E.js → agentListCommands-JTOONLYL.js} +233 -46
  8. package/{agentMachineCommands-65QUOCEY.js → agentMachineCommands-25X7OTLQ.js} +38 -36
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
  11. package/{agentRecordCommands-EKANS3A5.js → agentRecordCommands-SXE3WV2X.js} +86 -81
  12. package/{agentRunCommand-336PXBRJ.js → agentRunCommand-QSIED54S.js} +87 -82
  13. package/{agentRunControl-QMWTWV7C.js → agentRunControl-KNNDEEDI.js} +8 -6
  14. package/{agentRuntimeLocal-KKXJOBD3.js → agentRuntimeLocal-HVJJMB4W.js} +32 -31
  15. package/{agentSlice-FWYXP332.js → agentSlice-NBUJJVRI.js} +7 -7
  16. package/{appDeleteCommands-ERJK367V.js → appDeleteCommands-YU6TT6VN.js} +39 -37
  17. package/{appDeployCommands-LUV6QKQJ.js → appDeployCommands-4DEIX7YP.js} +39 -37
  18. package/{appDeployStatusCommands-WW7IYQD4.js → appDeployStatusCommands-3VKS6GBQ.js} +39 -37
  19. package/{appGetCommands-G7XYYSFO.js → appGetCommands-22FNNROT.js} +39 -37
  20. package/{appListCommands-4RXCIDNI.js → appListCommands-FVGMLHVU.js} +39 -37
  21. package/{authCommand-3C3RN4OU.js → authCommand-5DC3ES4Q.js} +15 -15
  22. package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
  23. package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-AA555ANS.js} +1 -1
  24. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  25. package/chunk-2GAUJDA5.js +594 -0
  26. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  27. package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
  28. package/{chunk-W4G25PVP.js → chunk-2PB653F5.js} +196 -253
  29. package/{chunk-UF6J7NXV.js → chunk-3272HU62.js} +1 -1
  30. package/chunk-3A5NNQCN.js +64 -0
  31. package/{chunk-7IQA2VJF.js → chunk-3N3JPQBQ.js} +210 -56
  32. package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
  33. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  34. package/{chunk-ADOOL3PG.js → chunk-52M4RYVP.js} +1 -1
  35. package/{chunk-U7OMQLRE.js → chunk-5IN2NBDX.js} +9 -9
  36. package/{chunk-BAH3BAUZ.js → chunk-5QEOTC35.js} +5 -5
  37. package/{chunk-E5RYFR7E.js → chunk-5UYDG6HP.js} +19 -0
  38. package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
  39. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  40. package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
  41. package/{chunk-YWNCRUBZ.js → chunk-7XO73H5X.js} +116 -6
  42. package/{chunk-SMEX763N.js → chunk-7ZOVFB2H.js} +100 -43
  43. package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
  44. package/{chunk-ZKMS73DK.js → chunk-A6VIMCWI.js} +3 -3
  45. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  46. package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
  47. package/{chunk-HZDK56EK.js → chunk-CO2NXG2J.js} +32 -10
  48. package/{chunk-OHUYN3YU.js → chunk-CYGFNMCH.js} +1 -1
  49. package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
  50. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  51. package/{chunk-VV5IS3ES.js → chunk-DU3DJYVA.js} +5 -5
  52. package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
  53. package/{chunk-73PZD7JZ.js → chunk-EG3JTV7H.js} +2 -2
  54. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  55. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  56. package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
  57. package/{chunk-TMRJGSK2.js → chunk-FRC2DNTN.js} +1 -1
  58. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  59. package/{chunk-I3J7HO3U.js → chunk-FZI2P64R.js} +137 -53
  60. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  61. package/{chunk-XHG7QROB.js → chunk-GO7UC5VH.js} +5 -5
  62. package/{chunk-RDBDHGU7.js → chunk-GVH2IP2M.js} +5 -5
  63. package/{chunk-AXZ5DDLB.js → chunk-GWS2X7TX.js} +235 -120
  64. package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
  65. package/{chunk-ATRU65OK.js → chunk-HMREADP6.js} +21 -19
  66. package/chunk-HZD5HXUO.js +405 -0
  67. package/{chunk-VHMPJGT4.js → chunk-ITCOQAHS.js} +3 -3
  68. package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
  69. package/chunk-IVK2KT3H.js +209 -0
  70. package/{chunk-FFFKAOJN.js → chunk-JAYPSNGR.js} +1 -1
  71. package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
  72. package/{chunk-3IVFGQIM.js → chunk-JF5QT3YY.js} +2 -2
  73. package/{chunk-V4IYI3SB.js → chunk-JKALGWDL.js} +2 -2
  74. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  75. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  76. package/{chunk-HEIIOJGN.js → chunk-LAQC5FAP.js} +4 -4
  77. package/{chunk-I3OW5RAX.js → chunk-LNIA5JVX.js} +8 -8
  78. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  79. package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
  80. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  81. package/{chunk-SHDJLJWV.js → chunk-N2ZAY2DK.js} +1 -1
  82. package/{chunk-WEZ27JA7.js → chunk-NMXGIRSG.js} +1 -1
  83. package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
  84. package/{chunk-ARFCL53U.js → chunk-NPUHKEOB.js} +4 -4
  85. package/{chunk-32WTED6G.js → chunk-O6LPLIRS.js} +94 -83
  86. package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
  87. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  88. package/{chunk-UPOW5HTG.js → chunk-OMIXG25B.js} +2 -2
  89. package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
  90. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  91. package/{chunk-OKKA4BCM.js → chunk-P6HMEKLL.js} +114 -56
  92. package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
  93. package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
  94. package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
  95. package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
  96. package/{chunk-6TVYUQRM.js → chunk-QV32GSVO.js} +2 -2
  97. package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
  98. package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
  99. package/{chunk-JFRJEPFI.js → chunk-SMZFWEMX.js} +1 -1
  100. package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
  101. package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
  102. package/{chunk-OLGFIQN2.js → chunk-T4VVQHSE.js} +1 -1
  103. package/{chunk-6QL3SUEK.js → chunk-TDI7ARZO.js} +3 -3
  104. package/{chunk-X6LYQDN5.js → chunk-TDLZA6LJ.js} +13 -10
  105. package/chunk-TRRXYFTR.js +46 -0
  106. package/{chunk-WMKA2DPK.js → chunk-TTUIM3PJ.js} +4 -4
  107. package/{chunk-RHBD22LV.js → chunk-TTWNTFTO.js} +39 -4
  108. package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
  109. package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
  110. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  111. package/{chunk-BVEDT6DM.js → chunk-VH7AQEEF.js} +3 -3
  112. package/{chunk-PGDM7AM2.js → chunk-WAOHK3NJ.js} +9 -9
  113. package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
  114. package/{chunk-ZTWDSOXD.js → chunk-WNIBQBOR.js} +1 -1
  115. package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
  116. package/chunk-XRGBJHZX.js +136 -0
  117. package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
  118. package/{chunk-AKWA6PCE.js → chunk-YQYYYATY.js} +45 -27
  119. package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
  120. package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
  121. package/{chunk-YQO5UKHP.js → chunk-ZNOXY73P.js} +632 -124
  122. package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-FKBPFPKR.js} +7 -7
  123. package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  124. package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
  125. package/{cliLocalAgentRecordReader-R4CLUHYO.js → cliLocalAgentRecordReader-DWU3LBO2.js} +36 -35
  126. package/{commandRegistry-UIZRI4JV.js → commandRegistry-7FVATZS2.js} +74 -74
  127. package/{contentThunks-ZQSZA4GH.js → contentThunks-25XCB7VY.js} +20 -20
  128. package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-PT5L4LNB.js} +3 -3
  129. package/{createAgentAutomationAction-RQE4F6PR.js → createAgentAutomationAction-FC5RI2LW.js} +20 -20
  130. package/{createDialogAction-JDSMQ34U.js → createDialogAction-IL3ISSQQ.js} +21 -21
  131. package/{createPageAction-VLF6XCYO.js → createPageAction-RVYBEYZV.js} +23 -23
  132. package/{db-CMUTP3W5.js → db-JMGVD4TB.js} +4 -2
  133. package/{dbSlice-656PMWR2.js → dbSlice-WG3ZG6PZ.js} +5 -5
  134. package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
  135. package/{dialogCommands-PLM7ZFWH.js → dialogCommands-VUJISJZF.js} +48 -42
  136. package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-JKYVSR6K.js} +8 -8
  137. package/{dialogSlice-63DD2ER2.js → dialogSlice-UMP55UAW.js} +18 -18
  138. package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-IHAXS7DW.js} +5 -5
  139. package/{docCreateCommands-BST5DO7L.js → docCreateCommands-S46F6GKP.js} +38 -36
  140. package/{docDeleteCommands-YE6G2SO4.js → docDeleteCommands-LJG4NK6J.js} +39 -37
  141. package/{docReadCommands-M6T35U3G.js → docReadCommands-YPAYGHNM.js} +38 -36
  142. package/{docStore-7QNJWRJ2.js → docStore-VK3MVJ5Q.js} +6 -6
  143. package/{docUpdateCommands-6DFWGPVG.js → docUpdateCommands-MPTM6267.js} +38 -36
  144. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  145. package/{handleSendMessageAction-FCEFFAV4.js → handleSendMessageAction-VPKVNKBU.js} +83 -41
  146. package/{hostCredentialCreate-YEWCAMZN.js → hostCredentialCreate-K56HWPNY.js} +86 -81
  147. package/index.js +23 -11
  148. package/{localDialogRead-CIOTQM5T.js → localDialogRead-NXILOV3T.js} +1 -1
  149. package/{localRuntimeAdapter-Z22ZOZRY.js → localRuntimeAdapter-KVU72FWT.js} +84 -79
  150. package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
  151. package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
  152. package/{machineCommands-PT5OJ36V.js → machineCommands-C3O5RKNJ.js} +85 -80
  153. package/{machineWsRunDispatch-DQVNBSVE.js → machineWsRunDispatch-ZLART7ZA.js} +85 -80
  154. package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
  155. package/{mcpLocalAuthorizeCommand-GO6AYT63.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +15 -11
  156. package/{memberThunks-JFYC4Z5L.js → memberThunks-7DNR6DRD.js} +7 -7
  157. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  158. package/package.json +2 -1
  159. package/{projectArchive-4XUC5SLF.js → projectArchive-UBJFYRL7.js} +23 -23
  160. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  161. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  162. package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
  163. package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
  164. package/{readlineWorkspace-7U5QM3OM.js → readlineWorkspace-TSIYF7C6.js} +655 -248
  165. package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
  166. package/{runAgentClientLoop-7D7UCAS2.js → runAgentClientLoop-YAHGOWXN.js} +48 -48
  167. package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-QGZSKNSE.js} +14 -11
  168. package/{secretCommands-2FEMRUFM.js → secretCommands-BXAQEOES.js} +2 -2
  169. package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
  170. package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
  171. package/{settingThunks-IHXUF276.js → settingThunks-YQNG5L6K.js} +5 -5
  172. package/{spaceCommands-WCLD36WH.js → spaceCommands-P644AAZZ.js} +37 -35
  173. package/{streamAgentChatTurn-DVTOINT3.js → streamAgentChatTurn-5CSYAUAY.js} +81 -77
  174. package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
  175. package/{tools-BOPINT5S.js → tools-UZ3CDIR2.js} +38 -38
  176. package/{tuiRestart-5F2APN66.js → tuiRestart-GF4DGAAN.js} +7 -7
  177. package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +13 -13
  178. package/{updateCommands-FBYA5WVG.js → updateCommands-BZ4YDHNM.js} +3 -3
  179. package/{updateDialogTitleAction-S76PUCLQ.js → updateDialogTitleAction-53XCCDK2.js} +20 -20
  180. package/{usageCommand-L4OFWXEU.js → usageCommand-XVJ7ZUTM.js} +2 -2
  181. package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-NK6S3D4J.js} +3 -3
  182. package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
  183. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
  184. package/chunk-FGHEF6WI.js +0 -34
  185. package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
  186. package/{chunk-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
@@ -0,0 +1,209 @@
1
+ // node_modules/async-mutex/index.mjs
2
+ var E_TIMEOUT = new Error("timeout while waiting for mutex to become available");
3
+ var E_ALREADY_LOCKED = new Error("mutex already locked");
4
+ var E_CANCELED = new Error("request for lock canceled");
5
+ var __awaiter$2 = function(thisArg, _arguments, P, generator) {
6
+ function adopt(value) {
7
+ return value instanceof P ? value : new P(function(resolve) {
8
+ resolve(value);
9
+ });
10
+ }
11
+ return new (P || (P = Promise))(function(resolve, reject) {
12
+ function fulfilled(value) {
13
+ try {
14
+ step(generator.next(value));
15
+ } catch (e) {
16
+ reject(e);
17
+ }
18
+ }
19
+ function rejected(value) {
20
+ try {
21
+ step(generator["throw"](value));
22
+ } catch (e) {
23
+ reject(e);
24
+ }
25
+ }
26
+ function step(result) {
27
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
28
+ }
29
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
30
+ });
31
+ };
32
+ var Semaphore = class {
33
+ constructor(_value, _cancelError = E_CANCELED) {
34
+ this._value = _value;
35
+ this._cancelError = _cancelError;
36
+ this._queue = [];
37
+ this._weightedWaiters = [];
38
+ }
39
+ acquire(weight = 1, priority = 0) {
40
+ if (weight <= 0)
41
+ throw new Error(`invalid weight ${weight}: must be positive`);
42
+ return new Promise((resolve, reject) => {
43
+ const task = { resolve, reject, weight, priority };
44
+ const i = findIndexFromEnd(this._queue, (other) => priority <= other.priority);
45
+ if (i === -1 && weight <= this._value) {
46
+ this._dispatchItem(task);
47
+ } else {
48
+ this._queue.splice(i + 1, 0, task);
49
+ }
50
+ });
51
+ }
52
+ runExclusive(callback_1) {
53
+ return __awaiter$2(this, arguments, void 0, function* (callback, weight = 1, priority = 0) {
54
+ const [value, release] = yield this.acquire(weight, priority);
55
+ try {
56
+ return yield callback(value);
57
+ } finally {
58
+ release();
59
+ }
60
+ });
61
+ }
62
+ waitForUnlock(weight = 1, priority = 0) {
63
+ if (weight <= 0)
64
+ throw new Error(`invalid weight ${weight}: must be positive`);
65
+ if (this._couldLockImmediately(weight, priority)) {
66
+ return Promise.resolve();
67
+ } else {
68
+ return new Promise((resolve) => {
69
+ if (!this._weightedWaiters[weight - 1])
70
+ this._weightedWaiters[weight - 1] = [];
71
+ insertSorted(this._weightedWaiters[weight - 1], { resolve, priority });
72
+ });
73
+ }
74
+ }
75
+ isLocked() {
76
+ return this._value <= 0;
77
+ }
78
+ getValue() {
79
+ return this._value;
80
+ }
81
+ setValue(value) {
82
+ this._value = value;
83
+ this._dispatchQueue();
84
+ }
85
+ release(weight = 1) {
86
+ if (weight <= 0)
87
+ throw new Error(`invalid weight ${weight}: must be positive`);
88
+ this._value += weight;
89
+ this._dispatchQueue();
90
+ }
91
+ cancel() {
92
+ this._queue.forEach((entry) => entry.reject(this._cancelError));
93
+ this._queue = [];
94
+ }
95
+ _dispatchQueue() {
96
+ this._drainUnlockWaiters();
97
+ while (this._queue.length > 0 && this._queue[0].weight <= this._value) {
98
+ this._dispatchItem(this._queue.shift());
99
+ this._drainUnlockWaiters();
100
+ }
101
+ }
102
+ _dispatchItem(item) {
103
+ const previousValue = this._value;
104
+ this._value -= item.weight;
105
+ item.resolve([previousValue, this._newReleaser(item.weight)]);
106
+ }
107
+ _newReleaser(weight) {
108
+ let called = false;
109
+ return () => {
110
+ if (called)
111
+ return;
112
+ called = true;
113
+ this.release(weight);
114
+ };
115
+ }
116
+ _drainUnlockWaiters() {
117
+ if (this._queue.length === 0) {
118
+ for (let weight = this._value; weight > 0; weight--) {
119
+ const waiters = this._weightedWaiters[weight - 1];
120
+ if (!waiters)
121
+ continue;
122
+ waiters.forEach((waiter) => waiter.resolve());
123
+ this._weightedWaiters[weight - 1] = [];
124
+ }
125
+ } else {
126
+ const queuedPriority = this._queue[0].priority;
127
+ for (let weight = this._value; weight > 0; weight--) {
128
+ const waiters = this._weightedWaiters[weight - 1];
129
+ if (!waiters)
130
+ continue;
131
+ const i = waiters.findIndex((waiter) => waiter.priority <= queuedPriority);
132
+ (i === -1 ? waiters : waiters.splice(0, i)).forEach((waiter) => waiter.resolve());
133
+ }
134
+ }
135
+ }
136
+ _couldLockImmediately(weight, priority) {
137
+ return (this._queue.length === 0 || this._queue[0].priority < priority) && weight <= this._value;
138
+ }
139
+ };
140
+ function insertSorted(a, v) {
141
+ const i = findIndexFromEnd(a, (other) => v.priority <= other.priority);
142
+ a.splice(i + 1, 0, v);
143
+ }
144
+ function findIndexFromEnd(a, predicate) {
145
+ for (let i = a.length - 1; i >= 0; i--) {
146
+ if (predicate(a[i])) {
147
+ return i;
148
+ }
149
+ }
150
+ return -1;
151
+ }
152
+ var __awaiter$1 = function(thisArg, _arguments, P, generator) {
153
+ function adopt(value) {
154
+ return value instanceof P ? value : new P(function(resolve) {
155
+ resolve(value);
156
+ });
157
+ }
158
+ return new (P || (P = Promise))(function(resolve, reject) {
159
+ function fulfilled(value) {
160
+ try {
161
+ step(generator.next(value));
162
+ } catch (e) {
163
+ reject(e);
164
+ }
165
+ }
166
+ function rejected(value) {
167
+ try {
168
+ step(generator["throw"](value));
169
+ } catch (e) {
170
+ reject(e);
171
+ }
172
+ }
173
+ function step(result) {
174
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
175
+ }
176
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
177
+ });
178
+ };
179
+ var Mutex = class {
180
+ constructor(cancelError) {
181
+ this._semaphore = new Semaphore(1, cancelError);
182
+ }
183
+ acquire() {
184
+ return __awaiter$1(this, arguments, void 0, function* (priority = 0) {
185
+ const [, releaser] = yield this._semaphore.acquire(1, priority);
186
+ return releaser;
187
+ });
188
+ }
189
+ runExclusive(callback, priority = 0) {
190
+ return this._semaphore.runExclusive(() => callback(), 1, priority);
191
+ }
192
+ isLocked() {
193
+ return this._semaphore.isLocked();
194
+ }
195
+ waitForUnlock(priority = 0) {
196
+ return this._semaphore.waitForUnlock(1, priority);
197
+ }
198
+ release() {
199
+ if (this._semaphore.isLocked())
200
+ this._semaphore.release();
201
+ }
202
+ cancel() {
203
+ return this._semaphore.cancel();
204
+ }
205
+ };
206
+
207
+ export {
208
+ Mutex
209
+ };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UAD2WT54.js";
4
4
  import {
5
5
  toTimestampMs
6
- } from "./chunk-HZDK56EK.js";
6
+ } from "./chunk-CO2NXG2J.js";
7
7
  import {
8
8
  require_react
9
9
  } from "./chunk-RD3QLZQV.js";
@@ -71,7 +71,9 @@ var HIGH_RISK_MUTATION_TOOL_NAMES = [
71
71
  // 受控云端执行:在用户拥有的云资源上跑任意命令,不可重放、副作用在云端。
72
72
  // 硬边界:它永不进 DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS(见该清单注释),
73
73
  // 必须由 agent 显式启用才出现;这里进名单保证只读 run 即使被显式要求也拿不到。
74
- "cloud_exec"
74
+ "cloud_exec",
75
+ // Sandbox 产物持久化提交:会写入 Space / 用户持久存储,只读 run 不允许调用。
76
+ "commitSandboxArtifact"
75
77
  ];
76
78
  function resolveReadOnlyToolConstraints(additionalBlockedTools) {
77
79
  return {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-SLUZ6FBJ.js";
3
+ } from "./chunk-XBCADGK2.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-BIDSIRTS.js";
7
7
  import {
8
8
  t
9
- } from "./chunk-E5RYFR7E.js";
9
+ } from "./chunk-5UYDG6HP.js";
10
10
 
11
11
  // packages/cli/cliApiClient.ts
12
12
  var CliApiError = class extends Error {
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-HZDK56EK.js";
8
+ } from "./chunk-CO2NXG2J.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-WQDTSK5U.js";
12
+ } from "./chunk-ZMFA2TLE.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -37,6 +37,9 @@ var resolveFireworksKimiModel = (model) => {
37
37
  }
38
38
  return model ?? "";
39
39
  };
40
+ function hostedKimiLegacyThinkingOverride(provider, model, enableThinking, effort) {
41
+ return enableThinking === false && !effort && isPlatformKimiProviderModel(provider, model) ? { thinking: { type: "disabled" }, reasoning: { enabled: false } } : void 0;
42
+ }
40
43
 
41
44
  // packages/ai/llm/platformHostedRoutingTable.ts
42
45
  var PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL = "anthropic/claude-sonnet-5";
@@ -1751,6 +1754,9 @@ var platformHostedModels = [
1751
1754
  ]
1752
1755
  })
1753
1756
  ];
1757
+ function usesMimoThinkingWire(provider, model, endpoint) {
1758
+ return /xiaomimimo\.com/i.test(endpoint ?? "") || provider?.toLowerCase() === "mimo" || isPlatformMimoProviderModel(provider, model);
1759
+ }
1754
1760
 
1755
1761
  // packages/ai/llm/cloudflare.ts
1756
1762
  var getCloudflareWorkersAiChatCompletionsUrl = (accountId = (typeof process !== "undefined" ? process.env?.CLOUDFLARE_ACCOUNT_ID : void 0)?.trim()) => {
@@ -1776,8 +1782,10 @@ export {
1776
1782
  isNoloHostedProvider,
1777
1783
  isFireworksKimiModel,
1778
1784
  isDeepInfraKimiModel,
1785
+ isPlatformKimiProviderModel,
1779
1786
  isPlatformManagedProvider,
1780
1787
  resolveFireworksKimiModel,
1788
+ hostedKimiLegacyThinkingOverride,
1781
1789
  PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL,
1782
1790
  PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL,
1783
1791
  PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
@@ -1801,7 +1809,6 @@ export {
1801
1809
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
1802
1810
  isPlatformHostedOpenAIImageModel,
1803
1811
  isPlatformHostedImageModel,
1804
- isPlatformMimoProviderModel,
1805
1812
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
1806
1813
  PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
1807
1814
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE,
@@ -1810,6 +1817,7 @@ export {
1810
1817
  isPlatformHostedDeepseekModel,
1811
1818
  isPlatformHostedDeepSeekV4Model,
1812
1819
  platformHostedModels,
1820
+ usesMimoThinkingWire,
1813
1821
  getCloudflareWorkersAiChatCompletionsUrl,
1814
1822
  cloudflareModels,
1815
1823
  GMI_CHAT_COMPLETIONS_URL,
@@ -1,8 +1,6 @@
1
- // packages/shared/providerSecrets.ts
2
- function providerSecretKey(presetId) {
3
- const normalized = presetId.trim().replace(/[^a-zA-Z0-9]+/g, "_").toUpperCase();
4
- return `${normalized}_KEY`;
5
- }
1
+ import {
2
+ providerSecretKey
3
+ } from "./chunk-LVZVSLKO.js";
6
4
 
7
5
  // packages/ai/agent/providerSecrets.ts
8
6
  var STORAGE_KEY = "nolo-local-secrets";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  applyPublicAgentCatalogOverride
3
- } from "./chunk-MZVCFV3T.js";
3
+ } from "./chunk-D3WOFN6N.js";
4
4
  import {
5
5
  applyBuiltinAgentRuntimeOverride,
6
6
  resolveBuiltinPlatformAgentConfig
7
7
  } from "./chunk-JP2BH4NC.js";
8
8
  import {
9
9
  buildLocalAgentLookupKeys
10
- } from "./chunk-Z7A2ZQ5X.js";
10
+ } from "./chunk-64ACTEAE.js";
11
11
  import {
12
12
  localDialogMessageRecordToRuntimeMessage,
13
13
  orderDialogHistory
14
- } from "./chunk-W4G25PVP.js";
14
+ } from "./chunk-2PB653F5.js";
15
15
  import {
16
16
  resolveAgentRuntimeConfigFromRecord
17
- } from "./chunk-WMKA2DPK.js";
17
+ } from "./chunk-TTUIM3PJ.js";
18
18
  import {
19
19
  dialogMessagePrefix,
20
20
  dialogMessageRange
@@ -7,13 +7,13 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-BQ4CZEVZ.js";
10
+ } from "./chunk-ITMBFT35.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
14
14
  import {
15
15
  loadLocalRunChildDialogIds
16
- } from "./chunk-SHDJLJWV.js";
16
+ } from "./chunk-N2ZAY2DK.js";
17
17
  import {
18
18
  buildDialogAttachmentPlan,
19
19
  extractFileContentIds,
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-QQ56R7KS.js";
29
29
  import {
30
30
  getDefaultCliLocalRuntimeDb
31
- } from "./chunk-W6T4FNZP.js";
31
+ } from "./chunk-HZD5HXUO.js";
32
32
  import {
33
33
  isLevelLockError
34
- } from "./chunk-K7VIXYTZ.js";
34
+ } from "./chunk-TRRXYFTR.js";
35
35
  import {
36
36
  resolveLocalDialogDbCandidates,
37
37
  resolveNoloHome,
@@ -41,7 +41,7 @@ import {
41
41
  boundSummaryText,
42
42
  buildDialogReadEnvelope,
43
43
  projectDialogReadForAgent
44
- } from "./chunk-CFDOIIOZ.js";
44
+ } from "./chunk-ZMXO5G3E.js";
45
45
  import {
46
46
  asRecordOrEmpty
47
47
  } from "./chunk-KX6YBIHG.js";
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-BIDSIRTS.js";
69
69
  import {
70
70
  t
71
- } from "./chunk-E5RYFR7E.js";
71
+ } from "./chunk-5UYDG6HP.js";
72
72
  import {
73
73
  toErrorMessage
74
74
  } from "./chunk-HNMXYYJR.js";
@@ -825,7 +825,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
825
825
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
826
826
  }
827
827
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
828
- const reader = readLocalDialog ?? (await import("./localDialogRead-CIOTQM5T.js")).readDialogFromLocalDb;
828
+ const reader = readLocalDialog ?? (await import("./localDialogRead-NXILOV3T.js")).readDialogFromLocalDb;
829
829
  const result = await reader({ dialogKey, dialogId, limit });
830
830
  return {
831
831
  ...result,
@@ -840,7 +840,7 @@ async function readLocalDialogAtDbPathDefault(args) {
840
840
  );
841
841
  }
842
842
  const db = await getDefaultCliLocalRuntimeDb();
843
- const { readDialogFromLocalDb: reader } = await import("./localDialogRead-CIOTQM5T.js");
843
+ const { readDialogFromLocalDb: reader } = await import("./localDialogRead-NXILOV3T.js");
844
844
  return reader({ ...args, db });
845
845
  }
846
846
  async function readDialogFromLocalDbWithFallback(args) {
@@ -854,6 +854,7 @@ export {
854
854
  extractQuotaSnapshot,
855
855
  formatQuotaSummary,
856
856
  DEFAULT_PROVIDER_RETRY_MS,
857
+ isSubscriptionPeriodWindow,
857
858
  shouldClearCooldownFromQuota,
858
859
  isAgentUnavailableNow,
859
860
  resolveAgentAvailability,