nolo-cli 0.228.0 → 0.228.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 (212) hide show
  1. package/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
  2. package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
  3. package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
  4. package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
  5. package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
  6. package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
  7. package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
  8. package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
  9. package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
  10. package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  11. package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
  12. package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
  13. package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
  14. package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
  15. package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
  16. package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
  17. package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
  18. package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
  19. package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
  20. package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
  21. package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
  22. package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
  23. package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
  24. package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
  25. package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
  26. package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
  27. package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
  28. package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
  29. package/chunk-3A5NNQCN.js +64 -0
  30. package/chunk-3F2FRLIO.js +372 -0
  31. package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
  32. package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
  33. package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
  34. package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
  35. package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
  36. package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
  37. package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
  38. package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
  39. package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
  40. package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
  41. package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
  42. package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
  43. package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
  44. package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
  45. package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
  46. package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
  47. package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
  48. package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
  49. package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
  50. package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
  51. package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
  52. package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
  53. package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
  54. package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
  55. package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
  56. package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
  57. package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
  58. package/chunk-EUGTFFO6.js +42 -0
  59. package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
  60. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  61. package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
  62. package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
  63. package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
  64. package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
  65. package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
  66. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  67. package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
  68. package/chunk-HEVRQGGH.js +106 -0
  69. package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
  70. package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
  71. package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
  72. package/chunk-IVK2KT3H.js +209 -0
  73. package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
  74. package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
  75. package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
  76. package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
  77. package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
  78. package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
  79. package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
  80. package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
  81. package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
  82. package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
  83. package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
  84. package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
  85. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  86. package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
  87. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  88. package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
  89. package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
  90. package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
  91. package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
  92. package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
  93. package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
  94. package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
  95. package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
  96. package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
  97. package/chunk-OQFOE4SJ.js +405 -0
  98. package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
  99. package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
  100. package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
  101. package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
  102. package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
  103. package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
  104. package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
  105. package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
  106. package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
  107. package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
  108. package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
  109. package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
  110. package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
  111. package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
  112. package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
  113. package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
  114. package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
  115. package/chunk-TRRXYFTR.js +46 -0
  116. package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
  117. package/chunk-TYJCIA2O.js +835 -0
  118. package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
  119. package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
  120. package/chunk-UAF5VQCE.js +77 -0
  121. package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
  122. package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
  123. package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
  124. package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
  125. package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
  126. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  127. package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
  128. package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
  129. package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
  130. package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
  131. package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
  132. package/chunk-XRGBJHZX.js +136 -0
  133. package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
  134. package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
  135. package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
  136. package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
  137. package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
  138. package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
  139. package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
  140. package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
  141. package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  142. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  143. package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
  144. package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
  145. package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
  146. package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
  147. package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
  148. package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
  149. package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
  150. package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
  151. package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
  152. package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
  153. package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
  154. package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
  155. package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
  156. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  157. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  158. package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
  159. package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
  160. package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
  161. package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
  162. package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
  163. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  164. package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
  165. package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
  166. package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
  167. package/index.js +23 -11
  168. package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
  169. package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
  170. package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
  171. package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  172. package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
  173. package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
  174. package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
  175. package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
  176. package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
  177. package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
  178. package/package.json +2 -1
  179. package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
  180. package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
  181. package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
  182. package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
  183. package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
  184. package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
  185. package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
  186. package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
  187. package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  188. package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
  189. package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
  190. package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
  191. package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
  192. package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
  193. package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
  194. package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
  195. package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
  196. package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
  197. package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
  198. package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
  199. package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
  200. package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
  201. package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
  202. package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
  203. package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  204. package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  205. package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  206. package/chunk-FGHEF6WI.js +0 -34
  207. package/chunk-U5LOKQ2R.js +0 -176
  208. package/chunk-YDRRGVT5.js +0 -142
  209. package/chunk-YGDYYFRX.js +0 -86
  210. package/chunk-Z7KE4K3H.js +0 -758
  211. package/lib-62SWPXNF.js +0 -21042
  212. /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-CIUZXD5D.js";
5
+ } from "./chunk-UFGUJ2IH.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";
@@ -2,7 +2,7 @@ import {
2
2
  mergeAvailabilityDeadline,
3
3
  resolveCredentialCandidateKeys,
4
4
  resolveCredentialKeyWithFallback
5
- } from "./chunk-QJTZ76CP.js";
5
+ } from "./chunk-LS5KAVFQ.js";
6
6
 
7
7
  // packages/agent-runtime/credentialAvailability.ts
8
8
  import { homedir } from "node:os";
@@ -5,15 +5,15 @@ import {
5
5
  import {
6
6
  createClientLogger
7
7
  } from "./chunk-QQ56R7KS.js";
8
- import {
9
- isLevelNotFoundError
10
- } from "./chunk-OW765XBU.js";
11
8
  import {
12
9
  isAbortError
13
10
  } from "./chunk-7DPNBQSV.js";
11
+ import {
12
+ isLevelNotFoundError
13
+ } from "./chunk-OW765XBU.js";
14
14
  import {
15
15
  isPublicBuiltinPlatformAgentKey
16
- } from "./chunk-KZAT2M2V.js";
16
+ } from "./chunk-RIWKZT7E.js";
17
17
  import {
18
18
  API_ENDPOINTS,
19
19
  NOLO_CLUSTER_SERVERS,
@@ -0,0 +1,106 @@
1
+ // packages/ai/agent/dispatchSelectionPolicy.ts
2
+ var DISPATCH_TIER_RANK = { easy: 0, normal: 1, complex: 2, extreme: 3 };
3
+ var MODEL_TIERS = [
4
+ {
5
+ tier: "extreme",
6
+ models: ["Claude Fable 5.1/5.2\u3001Opus 5.5", "GPT-6/6.2 Astra", "Gemini 4 Neon/Carbon"],
7
+ pattern: /^(?:gpt-6(?:[.-]2)?-astra|claude-(?:fable-5[.-][12]|opus-5[.-]5)|gemini-4-(?:neon|carbon))(?:$|[-@])/
8
+ },
9
+ {
10
+ tier: "complex",
11
+ models: [
12
+ "GPT-5.6/6/6.1/6.2 Sol\u30015.6/6.1 Terra",
13
+ "Claude Sonnet 5.5",
14
+ "Gemini 4 Hydrogen/Argon\u30012.5 Pro",
15
+ "Kimi K3/K3.1 Pro",
16
+ "DeepSeek V4 Pro"
17
+ ],
18
+ pattern: /^(?:gpt-(?:(?:5[.-]6|6(?:[.-][12])?)-sol|(?:5[.-]6|6[.-]1)-terra)|gemini-(?:4-(?:hydrogen|argon)|2[.-]5-pro)|claude-sonnet-5[.-]5|kimi-k3(?:[.-]1-pro)?|k3(?:-256k)?|deepseek-v4-pro)(?:$|[-@])/
19
+ },
20
+ {
21
+ tier: "normal",
22
+ models: [
23
+ "Claude Haiku 4.5/5.5",
24
+ "DeepSeek Flash\uFF08\u5404\u4EE3\uFF09",
25
+ "GLM 5.3/Flash",
26
+ "MiMo V2.6 Pro",
27
+ "Grok 4.6/4.7",
28
+ "Gemini 3.6-3.8 Flash",
29
+ "LongCat 2.5"
30
+ ],
31
+ pattern: /^(?:claude-haiku-[45][.-]5|deepseek-(?:[a-z0-9.-]+-)?flash|glm-5[.-]3|mimo-v2[.-]6-pro|grok-4[.-][67]|gemini-3[.-][678]-flash|longcat-2[.-]5)(?:$|[-@])/
32
+ },
33
+ {
34
+ tier: "easy",
35
+ models: ["MiniMax M3.1 Flash", "GPT-5.6/6 Luna"],
36
+ pattern: /^(?:minimax-m3[.-]1-flash|gpt-(?:5[.-]6|6)-luna)(?:$|[-@])/
37
+ }
38
+ ];
39
+ var MODEL_TIER_GUIDANCE = MODEL_TIERS.map(
40
+ ({ tier, models }) => `${tier}: ${models.join("\u3001")}`
41
+ ).join("\n");
42
+ var DIFFICULTY_GRADING_ORDER = `- **\u5148\u5224\u6863\u518D\u9009\u6A21\u578B**\uFF08\u89C4\u5212\u590D\u6742\u2260\u6267\u884C\u590D\u6742\uFF09\uFF1A\u5148\u5B9A\u5B50\u4EFB\u52A1 difficulty \u518D\u9009\u8BE5\u6863\u80DC\u4EFB\u6A21\u578B\uFF1B\u91CD\u8981\u5EA6\u3001\u6587\u4EF6\u6570\u3001\u8017\u65F6\u3001\u53D1\u5E03\u5B89\u5168\u76EE\u5F55\u4E0D\u5347\u6863\uFF0C\u300C\u66F4\u7A33\u59A5/\u66F4\u5B89\u5168/\u72EC\u7ACB review\u300D\u4E0D\u662F\u5347\u6863\u7406\u7531\uFF0C\u9009\u8DB3\u591F\u80DC\u4EFB\u7684\u6700\u4F4E\u6863\uFF0C\u4E0D\u4E3A\u964D\u6863\u62C6\u788E\u3002`;
43
+ var DIFFICULTY_GRADING_TIERS = ` - \u56DB\u6863\uFF1Aeasy\uFF1D\u6839\u56E0\u4E0E\u505A\u6CD5\u660E\u786E\u3001\u5C40\u90E8\u53EF\u9A8C\uFF1Bnormal\uFF1D\u6309\u65E2\u5B9A\u5951\u7EA6\u5B9E\u73B0/\u9A8C\u8BC1\u6216\u5C40\u90E8\u5B9A\u4F4D\uFF1Bcomplex\uFF1D\u591A\u6839\u56E0\u3001\u8DE8\u72B6\u6001\u6216\u5E76\u53D1\u517C\u5BB9\u53D6\u820D\uFF1Bextreme\uFF1D\u67B6\u6784\u672A\u5B9A\u6216\u5B89\u5168/\u5B8C\u6574\u6027\u91CD\u5927\u53D6\u820D\u3002\u5347\u6863\u987B\u6307\u51FA\u672C\u5757\u672A\u51B3\u70B9\uFF0C\u4E0D\u6309\u9879\u76EE\u6574\u4F53\u5B9A\u6863\u3002\u5B9E\u73B0\u4E0E\u590D\u5BA1\u91CD\u5224\uFF0C\u4E0D\u7EE7\u627F\u89C4\u5212\u6863\u3002`;
44
+ function resolveModelTier(model) {
45
+ if (typeof model !== "string") return "unknown";
46
+ const id = model.trim().toLowerCase().split("/").at(-1).replace(/\s+/g, "-");
47
+ if (id.includes("-image") || id.startsWith("nano-banana")) return "unknown";
48
+ return MODEL_TIERS.find(({ pattern }) => pattern.test(id))?.tier ?? "unknown";
49
+ }
50
+ function normalizeDispatchDifficulty(value) {
51
+ if (value === "easy" || value === "\u7B80\u5355") return "easy";
52
+ if (value === "complex" || value === "\u590D\u6742") return "complex";
53
+ if (value === "extreme" || value === "\u6781\u7AEF\u590D\u6742" || value === "\u6781\u5176\u590D\u6742")
54
+ return "extreme";
55
+ return "normal";
56
+ }
57
+ function normalizeSelectionReason(value) {
58
+ if (typeof value !== "string") return void 0;
59
+ const trimmed = value.trim();
60
+ return trimmed.length > 0 ? trimmed : void 0;
61
+ }
62
+ function requiresSelectionReason(difficulty, modelTier) {
63
+ return modelTier !== "unknown" && DISPATCH_TIER_RANK[modelTier] - DISPATCH_TIER_RANK[difficulty] >= 2;
64
+ }
65
+ function checkDispatchSelection(input) {
66
+ const dimension = input.dimension === "design_frontend" || input.dimension === "writing" ? input.dimension : "general";
67
+ const difficulty = normalizeDispatchDifficulty(input.difficulty);
68
+ const modelTier = resolveModelTier(input.model);
69
+ const status = modelTier === "unknown" ? "unknown" : modelTier === difficulty ? "matched" : "mismatch";
70
+ const selectionReason = normalizeSelectionReason(input.selectionReason);
71
+ const message = status === "matched" ? void 0 : status === "unknown" ? "\u6A21\u578B\u6863\u4F4D\u672A\u77E5\uFF1B\u6309\u9886\u57DF\u4E0E\u53EF\u7528\u6027\u5224\u65AD\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : selectionReason ? "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u5DF2\u7ED9\u51FA\u8DE8\u6863\u7406\u7531\uFF0C\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002" : requiresSelectionReason(difficulty, modelTier) ? "\u6A21\u578B\u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6\u81F3\u5C11\u4E24\u6863\uFF1B\u542F\u52A8\u524D\u9700\u5728 selectionReason \u8BF4\u660E\u7406\u7531\u3002" : "\u6863\u4F4D\u4E0E\u96BE\u5EA6\u4E0D\u4E00\u81F4\uFF1B\u4E0D\u963B\u65AD\uFF0C\u5DF2\u542F\u52A8\u52FF\u81EA\u52A8\u91CD\u6D3E\u3002";
72
+ return {
73
+ dimension,
74
+ difficulty,
75
+ modelTier,
76
+ status,
77
+ ...message ? { message } : {},
78
+ ...selectionReason ? { selectionReason } : {}
79
+ };
80
+ }
81
+ function checkDispatchSelectionAdmission(input) {
82
+ const check = checkDispatchSelection(input);
83
+ if (!requiresSelectionReason(check.difficulty, check.modelTier) || check.selectionReason)
84
+ return { ok: true, check };
85
+ const error = {
86
+ code: "selection_reason_required",
87
+ message: `\u8DE8\u6863\u9009\u62E9\u7F3A\u5C11 selectionReason\uFF1A\u6A21\u578B\u6863\u4F4D ${check.modelTier} \u9AD8\u51FA\u4EFB\u52A1\u96BE\u5EA6 ${check.difficulty} \u81F3\u5C11\u4E24\u6863\uFF0C\u8BF7\u8865\u5145\u672C\u6B21\u8DE8\u6863\u7684\u5177\u4F53\u7406\u7531\u540E\u518D\u542F\u52A8\u3002`,
88
+ hint: "\u8865\u4E00\u53E5\u672C\u6B21\u4E3A\u4EC0\u4E48\u8FD9\u6837\u8DE8\u6863\uFF08\u5982\u9886\u57DF\u4F18\u52BF\u3001\u7528\u6237\u660E\u786E\u6307\u5B9A\uFF09\u5373\u53EF\uFF1B\u53EA\u6821\u9A8C\u7406\u7531\u662F\u5426\u5B58\u5728\uFF0C\u4E0D\u4EE3\u8868\u5DF2\u6838\u5B9E\u7528\u6237\u6388\u6743\u3001\u989D\u5EA6/\u8D39\u7528\u6743\u9650\u6216\u7F51\u7EDC\u53EF\u7528\u6027\u3002"
89
+ };
90
+ return { ok: false, check, error };
91
+ }
92
+ function assertDispatchSelectionAdmission(input) {
93
+ const admission = checkDispatchSelectionAdmission(input);
94
+ if (!admission.ok && admission.error)
95
+ throw new Error(`${admission.error.message} ${admission.error.hint}`);
96
+ return admission.check;
97
+ }
98
+
99
+ export {
100
+ DISPATCH_TIER_RANK,
101
+ MODEL_TIER_GUIDANCE,
102
+ DIFFICULTY_GRADING_ORDER,
103
+ DIFFICULTY_GRADING_TIERS,
104
+ resolveModelTier,
105
+ assertDispatchSelectionAdmission
106
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isPidGone
3
- } from "./chunk-AEZBAFC6.js";
3
+ } from "./chunk-JAKRY74O.js";
4
4
 
5
5
  // packages/cli/tui/tuiRestart.ts
6
6
  import { realpathSync } from "node:fs";
@@ -1,6 +1,3 @@
1
- import {
2
- fnv1a32
3
- } from "./chunk-UEILX4EV.js";
4
1
  import {
5
2
  createSelector,
6
3
  noloDeleteRequest,
@@ -8,13 +5,16 @@ import {
8
5
  noloUploadRequest,
9
6
  noloWriteRequest,
10
7
  syncWithServers
11
- } from "./chunk-6XVPMGXK.js";
8
+ } from "./chunk-ZTHAJU3O.js";
12
9
  import {
13
10
  getAllServers,
14
11
  getIsDesktopApp,
15
12
  googleSessionServer,
16
13
  scopeGoogleSessionServers
17
- } from "./chunk-YHNUDTU4.js";
14
+ } from "./chunk-HDKMVYNJ.js";
15
+ import {
16
+ fnv1a32
17
+ } from "./chunk-UEILX4EV.js";
18
18
  import {
19
19
  selectIdentityToken,
20
20
  selectIdentityUser,
@@ -23,6 +23,9 @@ import {
23
23
  import {
24
24
  isTombstoneRecord
25
25
  } from "./chunk-BV3FLP2L.js";
26
+ import {
27
+ isTokenStatsKey
28
+ } from "./chunk-SYTHYBMI.js";
26
29
  import {
27
30
  asOptionalPositiveFiniteNumber
28
31
  } from "./chunk-U6VC4MU4.js";
@@ -607,6 +610,9 @@ var resolveAuthorityReplicationServers = ({
607
610
  record,
608
611
  state
609
612
  }) => {
613
+ if (isTokenStatsKey(dbKey)) {
614
+ return [];
615
+ }
610
616
  const allServers = resolveReplicationServers(
611
617
  currentServer,
612
618
  syncServers,
@@ -8,13 +8,13 @@ import {
8
8
  import {
9
9
  resolveMachineId
10
10
  } from "./chunk-S73EPYNC.js";
11
+ import {
12
+ getDefaultCliLocalRuntimeDb
13
+ } from "./chunk-J55F3IEZ.js";
11
14
  import {
12
15
  gBase64,
13
16
  isExternalSessionKind
14
17
  } from "./chunk-YJPK35HB.js";
15
- import {
16
- getDefaultCliLocalRuntimeDb
17
- } from "./chunk-BFKJ2RS3.js";
18
18
  import {
19
19
  createMemoryKey,
20
20
  createMemoryOwnerIndexKey,
@@ -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
+ };
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-4O22PGNQ.js";
13
13
  import {
14
14
  scheduleWindowsSelfUpdate
15
- } from "./chunk-TMRJGSK2.js";
15
+ } from "./chunk-OOVOAG4Q.js";
16
16
  import {
17
17
  t
18
- } from "./chunk-E5RYFR7E.js";
18
+ } from "./chunk-FEIVARWR.js";
19
19
  import {
20
20
  normalizeServerOrigin
21
21
  } from "./chunk-CF7PE763.js";
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TYHQCTZN.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-UF2DAQ3F.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-E6A5NHDH.js";
4
4
  import {
5
5
  t
6
- } from "./chunk-E5RYFR7E.js";
6
+ } from "./chunk-FEIVARWR.js";
7
7
 
8
8
  // packages/core/secretsStore.ts
9
9
  import {