nolo-cli 0.54.0 → 0.61.0-alpha.3

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 (158) hide show
  1. package/README.md +3 -3
  2. package/{_executeModel-OPTKYHJA.js → _executeModel-R26QYY66.js} +50 -46
  3. package/{action-ORXWW2ZG.js → action-76JX3JX3.js} +7 -6
  4. package/{addContentAction-53BZ34AE.js → addContentAction-V3NAZRTJ.js} +6 -5
  5. package/{addDialogAgentAction-JRYUS54Y.js → addDialogAgentAction-RZOAF46K.js} +5 -4
  6. package/{agentDeleteCommand-FJIWU2BS.js → agentDeleteCommand-6GNQA4J4.js} +30 -27
  7. package/{agentEmailCommands-CE32L43B.js → agentEmailCommands-HH67CYKD.js} +61 -57
  8. package/{agentGrantCommands-2LEZDADN.js → agentGrantCommands-R3VQEZJR.js} +1 -1
  9. package/{agentListCommands-VJNKULIK.js → agentListCommands-23XW3OPZ.js} +61 -31
  10. package/{agentMachineCommands-HCJ3WQXL.js → agentMachineCommands-HXHASEWO.js} +31 -28
  11. package/{agentPullCommand-M552CYSI.js → agentPullCommand-N7L2CT7L.js} +2 -2
  12. package/{agentRecordCommands-QFWERED4.js → agentRecordCommands-UHTQJVGC.js} +59 -55
  13. package/{agentRunCommand-G3GQMUNN.js → agentRunCommand-OAMT77EX.js} +63 -59
  14. package/{agentRunControl-INKFDXDA.js → agentRunControl-WECMOO6O.js} +11 -6
  15. package/{agentRuntimeLocal-K327ELSL.js → agentRuntimeLocal-QBK4H3T2.js} +26 -23
  16. package/{agentSlice-ODKF4J6M.js → agentSlice-7XJH5WQF.js} +8 -7
  17. package/{appDeleteCommands-XUXMFDI4.js → appDeleteCommands-AX2O6VDV.js} +30 -27
  18. package/{appDeployCommands-37F4GPCU.js → appDeployCommands-L5ZR26CB.js} +30 -27
  19. package/{appDeployStatusCommands-WSPU7TUK.js → appDeployStatusCommands-5HQHELRA.js} +30 -27
  20. package/{appGetCommands-YLOBA3EM.js → appGetCommands-HVSYOS57.js} +30 -27
  21. package/{appListCommands-UD62R5ME.js → appListCommands-XV2FPTWX.js} +30 -27
  22. package/{authCommand-OK6HLHGS.js → authCommand-WOTWLJNF.js} +35 -29
  23. package/{authCommands-2DUIUEMT.js → authCommands-ILTBI6JV.js} +7 -5
  24. package/{chatQueueReduxAdapter-TV2TUOQS.js → chatQueueReduxAdapter-F3R253JE.js} +20 -18
  25. package/{chunk-HPW5MNDQ.js → chunk-22BTGNSP.js} +113 -57
  26. package/{chunk-UNZDCI3O.js → chunk-2KDR4CWE.js} +35 -4
  27. package/{chunk-3ZTR7ZO4.js → chunk-2PGGC63K.js} +1 -1
  28. package/{chunk-EA5OYZVD.js → chunk-37XDGCY7.js} +1 -1
  29. package/chunk-3BLB7QKO.js +433 -0
  30. package/{chunk-CS6TCJ7E.js → chunk-3JQ2NRYU.js} +30 -7
  31. package/{chunk-3LKZRP7E.js → chunk-3QGUVVX5.js} +2 -2
  32. package/{chunk-SSXTSPSG.js → chunk-45YO6H7P.js} +71 -30
  33. package/{chunk-YLCUU3WM.js → chunk-4NJEIGBQ.js} +5 -5
  34. package/{chunk-K4NISKOR.js → chunk-5ZYA4JJ3.js} +47 -17
  35. package/{chunk-6HIGYUBQ.js → chunk-6XIE5ZGI.js} +1 -1
  36. package/{chunk-3Y2K5O2R.js → chunk-7A3RRUCQ.js} +125 -40
  37. package/{chunk-6COJEAYH.js → chunk-7KELZLC2.js} +44 -37
  38. package/chunk-AETZ7AD6.js +274 -0
  39. package/chunk-BFU6C242.js +66 -0
  40. package/{chunk-IA3A5373.js → chunk-C3FZR5EC.js} +1 -1
  41. package/{chunk-IWUMSAQF.js → chunk-CJCJF5XB.js} +26 -3
  42. package/{chunk-UGBHDMHI.js → chunk-CP7VIDZ7.js} +1 -1
  43. package/{chunk-TR4DXUYX.js → chunk-CQ2OZMLQ.js} +1181 -737
  44. package/{chunk-JON2PHYT.js → chunk-CTCW7U7N.js} +1 -1
  45. package/{chunk-7NYDJAQ7.js → chunk-DNNSCSA2.js} +5 -5
  46. package/{chunk-NI2BS6UD.js → chunk-DWUCB2A3.js} +1 -1
  47. package/{chunk-FJHMLRDQ.js → chunk-DWYSDNOH.js} +22 -28
  48. package/{chunk-AA564GBL.js → chunk-E3YVTQWT.js} +2 -2
  49. package/chunk-E4MARS3Q.js +114 -0
  50. package/{chunk-75MSWWUE.js → chunk-E6RGHPDR.js} +5 -3
  51. package/chunk-EDKF7RX4.js +30 -0
  52. package/{chunk-TC6P4NDR.js → chunk-F44FAXP2.js} +6 -6
  53. package/{chunk-SYYUU7EV.js → chunk-FHAGENAS.js} +2 -3
  54. package/{chunk-NJUQBYFJ.js → chunk-FKFMIBTT.js} +3 -1
  55. package/{chunk-INZZJSQF.js → chunk-FZGV4FGK.js} +24 -12
  56. package/{chunk-6HDYSFLO.js → chunk-GSXDRMDO.js} +3 -3
  57. package/{chunk-AUVFJGPC.js → chunk-JX5PJCWS.js} +7 -5
  58. package/{chunk-LYGNQHUW.js → chunk-JYYZCK2Z.js} +2 -4
  59. package/{chunk-EY7V7REW.js → chunk-KHCLMKZZ.js} +6 -280
  60. package/{chunk-EJE33XNR.js → chunk-KSCXMC6U.js} +1521 -565
  61. package/{chunk-XOJRZUPF.js → chunk-KWSQR2KK.js} +14 -29
  62. package/{chunk-2WBFJHQA.js → chunk-L7B47JXR.js} +34 -39
  63. package/{chunk-EICIFHVS.js → chunk-LAFC3B2I.js} +1 -1
  64. package/{chunk-N4JKMCY3.js → chunk-LJKICKVC.js} +2 -2
  65. package/chunk-M3JEW6N6.js +193 -0
  66. package/{chunk-LRGKOI5Y.js → chunk-MBOEV4L2.js} +7 -3
  67. package/{chunk-SVDMVX4G.js → chunk-MMZ6ZTVO.js} +112 -73
  68. package/{chunk-JDSUTNYY.js → chunk-MP64VFGD.js} +2 -2
  69. package/{chunk-NFLA6GSU.js → chunk-MXUDQZXQ.js} +44 -5
  70. package/chunk-N4G4PKQ6.js +23 -0
  71. package/{chunk-WQHGJHAL.js → chunk-N6HLMLKE.js} +732 -726
  72. package/{chunk-YQBXOHE6.js → chunk-NO42UD73.js} +1 -1
  73. package/{chunk-MLEZPE3U.js → chunk-NRRPKMM7.js} +4 -4
  74. package/{chunk-KXKQO4Q6.js → chunk-NTW5GWDM.js} +58 -1
  75. package/chunk-ONXOABJR.js +215 -0
  76. package/{chunk-TY3ADTX5.js → chunk-OZX2IPKM.js} +7 -2
  77. package/{chunk-Q4XZVZPN.js → chunk-P7OOB7QP.js} +1 -1
  78. package/{chunk-XIJZOCSP.js → chunk-PEZJEQAO.js} +1 -1
  79. package/{chunk-SWJGJMTW.js → chunk-PQDIDWGX.js} +1 -1
  80. package/chunk-PSCNXBYA.js +11 -0
  81. package/{chunk-BY2FF2C4.js → chunk-QEFJJS2I.js} +55 -73
  82. package/{chunk-BG7J6Y5X.js → chunk-QEW2MFDQ.js} +1 -1
  83. package/{chunk-KLIBF3BY.js → chunk-RDBARW6T.js} +8 -3
  84. package/{chunk-ZVOHVJI3.js → chunk-RJ2SAFB5.js} +82 -35
  85. package/{chunk-MYMBBB6Q.js → chunk-RVWRKFUB.js} +5 -3
  86. package/{chunk-43CXXVJD.js → chunk-RXX4GDIH.js} +1 -1
  87. package/chunk-SEJ5OS6F.js +49 -0
  88. package/{chunk-JXIP6ZWH.js → chunk-SKIRVYEI.js} +18 -5
  89. package/{chunk-SAJSBPI2.js → chunk-SOJM57FX.js} +5 -2
  90. package/{chunk-EKLRRZIN.js → chunk-SPAQ4PVV.js} +0 -5
  91. package/{chunk-RHMDMTDK.js → chunk-SYNKICCB.js} +2 -2
  92. package/{chunk-YBFJQC2M.js → chunk-TBHAHL33.js} +65 -42
  93. package/{chunk-L7NG2M6H.js → chunk-TRV2MIDW.js} +89 -74
  94. package/{chunk-5UAYZEXO.js → chunk-UZPQSVM6.js} +1 -1
  95. package/{chunk-7FAS3NEF.js → chunk-VAKVNHK5.js} +19 -15
  96. package/{chunk-UOWXD4VN.js → chunk-VHO3TMQZ.js} +336 -244
  97. package/{chunk-SVC3GGUA.js → chunk-VMWYBIXG.js} +7 -5
  98. package/{chunk-ZHXJ6M7T.js → chunk-W7XHHYWM.js} +4 -0
  99. package/{chunk-UR66XPVF.js → chunk-XAVSS3KE.js} +21 -3
  100. package/{chunk-A65UV3M5.js → chunk-XOKOSO35.js} +10 -19
  101. package/{chunk-VZMUOPYG.js → chunk-XTJTN3RW.js} +46 -3
  102. package/{chunk-T5HJEUQN.js → chunk-YCDWJX45.js} +1 -1
  103. package/{chunk-BBTN4NQD.js → chunk-Z4QSJILV.js} +85 -13
  104. package/{chunk-5FCIPEKT.js → chunk-Z5MHFBJZ.js} +1051 -926
  105. package/{chunk-O5FLGN2L.js → chunk-ZRSJ3JEH.js} +6 -2
  106. package/{cliExecutor-BBUVQU4L.js → cliExecutor-HG3S345O.js} +1 -1
  107. package/{codingSkills-BCQXRZOI.js → codingSkills-TKROLCBA.js} +4 -3
  108. package/{contentThunks-KNI6VXLT.js → contentThunks-OZPK5B4Z.js} +21 -19
  109. package/{cooldownCommands-GI5NNWGL.js → cooldownCommands-BSCH2W7P.js} +2 -2
  110. package/{createAgentAutomationAction-OK4L33KF.js → createAgentAutomationAction-LCIBGE5T.js} +23 -21
  111. package/{createDialogAction-JDSMY4AY.js → createDialogAction-JPJZMHJE.js} +25 -22
  112. package/{createPageAction-T7RA3HCG.js → createPageAction-6P2WLNHO.js} +26 -23
  113. package/{dbSlice-TVX6SN2T.js → dbSlice-IBVOBVMS.js} +5 -4
  114. package/{deleteFile-JYKRT7C3.js → deleteFile-FWP2PSBG.js} +3 -2
  115. package/{dialogCommands-UQZYWOOV.js → dialogCommands-WAFKC3KK.js} +30 -27
  116. package/{dialogSlice-TYW2G7IL.js → dialogSlice-R5RZHFTU.js} +20 -18
  117. package/{docCreateCommands-OA6HZBWO.js → docCreateCommands-GHGB42S7.js} +32 -28
  118. package/{docDeleteCommands-KBB3YQI2.js → docDeleteCommands-Y5I7ZEX4.js} +33 -29
  119. package/{docReadCommands-ZLMFVC67.js → docReadCommands-BMXM6J7T.js} +32 -28
  120. package/{docStore-2URPBVCS.js → docStore-DKWZ6XJ5.js} +6 -5
  121. package/{docUpdateCommands-HMH5KUON.js → docUpdateCommands-QNABH3M2.js} +32 -28
  122. package/{getPricing-RFOPUWHY.js → getPricing-NM3NUTAS.js} +4 -4
  123. package/handleSendMessageAction-UQGKM4UX.js +675 -0
  124. package/index.js +79 -88
  125. package/{lib-2ZTNRXR4.js → lib-FRRS27KN.js} +63 -28
  126. package/{localRuntimeAuthority-KQDAE64E.js → localRuntimeAuthority-R5UBODT3.js} +6 -4
  127. package/{localRuntimeDb-PF7CFKDL.js → localRuntimeDb-P37ZTX55.js} +1 -1
  128. package/{machineCommands-RK6L7ZWL.js → machineCommands-YDAIPYU5.js} +298 -80
  129. package/{machineWsRunDispatch-3X64DW2Z.js → machineWsRunDispatch-O6RM2ECT.js} +57 -53
  130. package/{memberThunks-THZYZFSN.js → memberThunks-VZI6G7YZ.js} +10 -8
  131. package/{models-JVKUEER5.js → models-FAMINFZ7.js} +2 -2
  132. package/package.json +3 -2
  133. package/{read-K4JU4MQC.js → read-2BYWW7AA.js} +3 -2
  134. package/{readDocTool-LQGR6FUN.js → readDocTool-LC3A7QTB.js} +1 -1
  135. package/{readlineWorkspace-XUFJV3RS.js → readlineWorkspace-5DP3AJWN.js} +4367 -2796
  136. package/{removeDialogAgentAction-ECHCFB7N.js → removeDialogAgentAction-SFYZXHNK.js} +8 -7
  137. package/{runAgentClientLoop-24GQ2AW6.js → runAgentClientLoop-Y6HWP2PT.js} +51 -46
  138. package/{runtimeDoctorCommands-JKTTN723.js → runtimeDoctorCommands-CROTMULY.js} +7 -5
  139. package/{setDialogExtraReferencesAction-KCVJNGMB.js → setDialogExtraReferencesAction-Q32RGFTA.js} +6 -5
  140. package/{setPrimaryDialogAgentAction-VDOBOMKC.js → setPrimaryDialogAgentAction-BFYJHUJS.js} +8 -7
  141. package/{settingSlice-VR2IJSXC.js → settingSlice-IRUU4VFB.js} +6 -5
  142. package/{skillDiscovery-2QTZINON.js → skillDiscovery-CYUCJMAG.js} +2 -1
  143. package/{spaceCommands-S5YJJXL7.js → spaceCommands-CLN45IE3.js} +33 -215
  144. package/{streamAgentChatTurn-QHKP3ABO.js → streamAgentChatTurn-6WFQJ4DY.js} +107 -74
  145. package/{switchDialogAgentAction-5L4UP7VI.js → switchDialogAgentAction-L2KOKCGG.js} +5 -4
  146. package/{tableCommands-R6WFRDYF.js → tableCommands-SUNTHAYX.js} +1 -1
  147. package/{toolApiClient-53U4UDFF.js → toolApiClient-VGYUB4P5.js} +2 -1
  148. package/{tools-SSXSTC3O.js → tools-RR53D65Q.js} +39 -35
  149. package/{tuiSummaryLlmCaller-URFJHFC5.js → tuiSummaryLlmCaller-F3DPFFZM.js} +15 -13
  150. package/{updateCommands-IYKLF3JX.js → updateCommands-AJYSD73Y.js} +2 -2
  151. package/{updateDialogTitleAction-YFYAEW3T.js → updateDialogTitleAction-WXS3AKOL.js} +23 -21
  152. package/agentSuperviseCommands-5AR3DKNN.js +0 -640
  153. package/chunk-6IGD47IC.js +0 -19
  154. package/chunk-FD36SCCD.js +0 -105
  155. package/chunk-GRFK2XP4.js +0 -230
  156. package/chunk-HJTAGT3W.js +0 -370
  157. package/chunk-SUEIAK5N.js +0 -2574
  158. package/handleSendMessageAction-GO53TY7U.js +0 -409
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GMI_CHAT_COMPLETIONS_URL,
3
- PLATFORM_HOSTED_DEEPSEEK_FLASH_VISION_EXP_MODEL,
3
+ PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
4
4
  PLATFORM_HOSTED_KIMI_PROVIDER,
5
5
  cloudflareModels,
6
6
  getCloudflareWorkersAiChatCompletionsUrl,
@@ -9,7 +9,7 @@ import {
9
9
  platformHostedModels,
10
10
  toCnyCredits,
11
11
  zaiModels
12
- } from "./chunk-HPW5MNDQ.js";
12
+ } from "./chunk-22BTGNSP.js";
13
13
 
14
14
  // packages/integrations/anthropic/anthropicModels.ts
15
15
  var anthropicModels = [
@@ -177,6 +177,42 @@ var googleModels = [
177
177
  cachingWrite: 0.6,
178
178
  cachingRead: 0.6
179
179
  }
180
+ },
181
+ {
182
+ name: "gemini-2.5-pro",
183
+ displayName: "Gemini 2.5 Pro",
184
+ provider: "google",
185
+ description: "Gemini 2.5 Pro model for complex reasoning, coding, and large context multimodal tasks.",
186
+ hasVision: true,
187
+ hasAudio: true,
188
+ contextWindow: 1048576,
189
+ maxOutputTokens: 65536,
190
+ supportsTool: true,
191
+ supportsReasoningEffort: true,
192
+ price: {
193
+ input: 10,
194
+ output: 40,
195
+ cachingWrite: 2.5,
196
+ cachingRead: 2.5
197
+ }
198
+ },
199
+ {
200
+ name: "gemini-3.1-pro",
201
+ displayName: "Gemini 3.1 Pro",
202
+ provider: "google",
203
+ description: "Gemini 3.1 Pro frontier reasoning, coding, and multimodal model.",
204
+ hasVision: true,
205
+ hasAudio: true,
206
+ contextWindow: 1048576,
207
+ maxOutputTokens: 65536,
208
+ supportsTool: true,
209
+ supportsReasoningEffort: true,
210
+ price: {
211
+ input: 16,
212
+ output: 96,
213
+ cachingWrite: 4,
214
+ cachingRead: 4
215
+ }
180
216
  }
181
217
  ];
182
218
 
@@ -226,6 +262,16 @@ var GPT_5_6_LUNA_PRICE = {
226
262
  output: 9.6,
227
263
  inputCacheHit: 0.16
228
264
  };
265
+ var GPT_6_ASTRA_STANDARD_PRICE = {
266
+ input: 80,
267
+ output: 400,
268
+ inputCacheHit: 8
269
+ };
270
+ var GPT_6_ASTRA_LONG_CONTEXT_PRICE = {
271
+ input: 160,
272
+ output: 600,
273
+ inputCacheHit: 16
274
+ };
229
275
  var openAIModels = [
230
276
  {
231
277
  name: "gpt-5.5",
@@ -294,6 +340,25 @@ var openAIModels = [
294
340
  supportsReasoningEffort: true,
295
341
  price: GPT_5_6_LUNA_PRICE
296
342
  },
343
+ {
344
+ name: "gpt-6-astra",
345
+ displayName: "GPT-6 Astra",
346
+ endpointKey: "responses",
347
+ hasVision: true,
348
+ contextWindow: 105e4,
349
+ maxOutputTokens: 128e3,
350
+ supportsReasoningEffort: true,
351
+ price: GPT_6_ASTRA_STANDARD_PRICE,
352
+ pricingStrategy: {
353
+ type: "tiered_context",
354
+ tiers: [
355
+ {
356
+ minContext: 272001,
357
+ price: GPT_6_ASTRA_LONG_CONTEXT_PRICE
358
+ }
359
+ ]
360
+ }
361
+ },
297
362
  {
298
363
  name: "gpt-5.5-pro",
299
364
  displayName: "GPT-5.5 Pro",
@@ -780,7 +845,7 @@ var kimiCodeModels = [
780
845
  {
781
846
  name: "k3",
782
847
  displayName: "Kimi K3",
783
- hasVision: false,
848
+ hasVision: true,
784
849
  contextWindow: 1e6,
785
850
  maxOutputTokens: 262144,
786
851
  jsonOutput: true,
@@ -795,7 +860,7 @@ var kimiCodeModels = [
795
860
  {
796
861
  name: "k3-256k",
797
862
  displayName: "Kimi K3 256K",
798
- hasVision: false,
863
+ hasVision: true,
799
864
  contextWindow: 262144,
800
865
  maxOutputTokens: 262144,
801
866
  jsonOutput: true,
@@ -810,7 +875,7 @@ var kimiCodeModels = [
810
875
  {
811
876
  name: "kimi-for-coding",
812
877
  displayName: "Kimi K2.7 Code",
813
- hasVision: false,
878
+ hasVision: true,
814
879
  contextWindow: 262144,
815
880
  maxOutputTokens: 262144,
816
881
  jsonOutput: true,
@@ -825,7 +890,7 @@ var kimiCodeModels = [
825
890
  {
826
891
  name: "kimi-for-coding-highspeed",
827
892
  displayName: "Kimi K2.7 Code \u9AD8\u901F\u7248",
828
- hasVision: false,
893
+ hasVision: true,
829
894
  contextWindow: 262144,
830
895
  maxOutputTokens: 262144,
831
896
  jsonOutput: true,
@@ -1048,21 +1113,9 @@ function _addIssue(context, label, dataset, config$1, other) {
1048
1113
  if (dataset.issues) dataset.issues.push(issue);
1049
1114
  else dataset.issues = [issue];
1050
1115
  }
1051
- var _standardCache = /* @__PURE__ */ new WeakMap();
1052
1116
  // @__NO_SIDE_EFFECTS__
1053
- function _getStandardProps(context) {
1054
- let cached = _standardCache.get(context);
1055
- if (!cached) {
1056
- cached = {
1057
- version: 1,
1058
- vendor: "valibot",
1059
- validate(value$1) {
1060
- return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
1061
- }
1062
- };
1063
- _standardCache.set(context, cached);
1064
- }
1065
- return cached;
1117
+ function _isSameValueZero(value1, value2) {
1118
+ return value1 === value2 || Number.isNaN(value1) && Number.isNaN(value2);
1066
1119
  }
1067
1120
  // @__NO_SIDE_EFFECTS__
1068
1121
  function _isValidObjectKey(object$1, key) {
@@ -1074,6 +1127,14 @@ function _joinExpects(values$1, separator) {
1074
1127
  if (list.length > 1) return `(${list.join(` ${separator} `)})`;
1075
1128
  return list[0] ?? "never";
1076
1129
  }
1130
+ function _standardSchema(schema) {
1131
+ schema["~standard"] = {
1132
+ version: 1,
1133
+ vendor: "valibot",
1134
+ validate: (value$1) => schema["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig())
1135
+ };
1136
+ return schema;
1137
+ }
1077
1138
  var EMOJI_REGEX = new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$", "u");
1078
1139
  // @__NO_SIDE_EFFECTS__
1079
1140
  function minLength(requirement, message$1) {
@@ -1128,7 +1189,7 @@ function getDefault(schema, dataset, config$1) {
1128
1189
  }
1129
1190
  // @__NO_SIDE_EFFECTS__
1130
1191
  function array(item, message$1) {
1131
- return {
1192
+ return _standardSchema({
1132
1193
  kind: "schema",
1133
1194
  type: "array",
1134
1195
  reference: array,
@@ -1136,9 +1197,6 @@ function array(item, message$1) {
1136
1197
  async: false,
1137
1198
  item,
1138
1199
  message: message$1,
1139
- get "~standard"() {
1140
- return /* @__PURE__ */ _getStandardProps(this);
1141
- },
1142
1200
  "~run"(dataset, config$1) {
1143
1201
  const input = dataset.value;
1144
1202
  if (Array.isArray(input)) {
@@ -1172,11 +1230,11 @@ function array(item, message$1) {
1172
1230
  } else _addIssue(this, "type", dataset, config$1);
1173
1231
  return dataset;
1174
1232
  }
1175
- };
1233
+ });
1176
1234
  }
1177
1235
  // @__NO_SIDE_EFFECTS__
1178
1236
  function literal(literal_, message$1) {
1179
- return {
1237
+ return _standardSchema({
1180
1238
  kind: "schema",
1181
1239
  type: "literal",
1182
1240
  reference: literal,
@@ -1184,19 +1242,16 @@ function literal(literal_, message$1) {
1184
1242
  async: false,
1185
1243
  literal: literal_,
1186
1244
  message: message$1,
1187
- get "~standard"() {
1188
- return /* @__PURE__ */ _getStandardProps(this);
1189
- },
1190
1245
  "~run"(dataset, config$1) {
1191
- if (dataset.value === this.literal) dataset.typed = true;
1246
+ if (/* @__PURE__ */ _isSameValueZero(dataset.value, this.literal)) dataset.typed = true;
1192
1247
  else _addIssue(this, "type", dataset, config$1);
1193
1248
  return dataset;
1194
1249
  }
1195
- };
1250
+ });
1196
1251
  }
1197
1252
  // @__NO_SIDE_EFFECTS__
1198
1253
  function looseObject(entries$1, message$1) {
1199
- return {
1254
+ return _standardSchema({
1200
1255
  kind: "schema",
1201
1256
  type: "loose_object",
1202
1257
  reference: looseObject,
@@ -1204,9 +1259,6 @@ function looseObject(entries$1, message$1) {
1204
1259
  async: false,
1205
1260
  entries: entries$1,
1206
1261
  message: message$1,
1207
- get "~standard"() {
1208
- return /* @__PURE__ */ _getStandardProps(this);
1209
- },
1210
1262
  "~run"(dataset, config$1) {
1211
1263
  const input = dataset.value;
1212
1264
  if (input && typeof input === "object") {
@@ -1255,16 +1307,16 @@ function looseObject(entries$1, message$1) {
1255
1307
  }
1256
1308
  }
1257
1309
  if (!dataset.issues || !config$1.abortEarly) {
1258
- for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
1310
+ for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)) dataset.value[key] = input[key];
1259
1311
  }
1260
1312
  } else _addIssue(this, "type", dataset, config$1);
1261
1313
  return dataset;
1262
1314
  }
1263
- };
1315
+ });
1264
1316
  }
1265
1317
  // @__NO_SIDE_EFFECTS__
1266
1318
  function object(entries$1, message$1) {
1267
- return {
1319
+ return _standardSchema({
1268
1320
  kind: "schema",
1269
1321
  type: "object",
1270
1322
  reference: object,
@@ -1272,9 +1324,6 @@ function object(entries$1, message$1) {
1272
1324
  async: false,
1273
1325
  entries: entries$1,
1274
1326
  message: message$1,
1275
- get "~standard"() {
1276
- return /* @__PURE__ */ _getStandardProps(this);
1277
- },
1278
1327
  "~run"(dataset, config$1) {
1279
1328
  const input = dataset.value;
1280
1329
  if (input && typeof input === "object") {
@@ -1325,11 +1374,11 @@ function object(entries$1, message$1) {
1325
1374
  } else _addIssue(this, "type", dataset, config$1);
1326
1375
  return dataset;
1327
1376
  }
1328
- };
1377
+ });
1329
1378
  }
1330
1379
  // @__NO_SIDE_EFFECTS__
1331
1380
  function optional(wrapped, default_) {
1332
- return {
1381
+ return _standardSchema({
1333
1382
  kind: "schema",
1334
1383
  type: "optional",
1335
1384
  reference: optional,
@@ -1337,9 +1386,6 @@ function optional(wrapped, default_) {
1337
1386
  async: false,
1338
1387
  wrapped,
1339
1388
  default: default_,
1340
- get "~standard"() {
1341
- return /* @__PURE__ */ _getStandardProps(this);
1342
- },
1343
1389
  "~run"(dataset, config$1) {
1344
1390
  if (dataset.value === void 0) {
1345
1391
  if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
@@ -1350,11 +1396,11 @@ function optional(wrapped, default_) {
1350
1396
  }
1351
1397
  return this.wrapped["~run"](dataset, config$1);
1352
1398
  }
1353
- };
1399
+ });
1354
1400
  }
1355
1401
  // @__NO_SIDE_EFFECTS__
1356
1402
  function picklist(options, message$1) {
1357
- return {
1403
+ return _standardSchema({
1358
1404
  kind: "schema",
1359
1405
  type: "picklist",
1360
1406
  reference: picklist,
@@ -1362,19 +1408,16 @@ function picklist(options, message$1) {
1362
1408
  async: false,
1363
1409
  options,
1364
1410
  message: message$1,
1365
- get "~standard"() {
1366
- return /* @__PURE__ */ _getStandardProps(this);
1367
- },
1368
1411
  "~run"(dataset, config$1) {
1369
1412
  if (this.options.includes(dataset.value)) dataset.typed = true;
1370
1413
  else _addIssue(this, "type", dataset, config$1);
1371
1414
  return dataset;
1372
1415
  }
1373
- };
1416
+ });
1374
1417
  }
1375
1418
  // @__NO_SIDE_EFFECTS__
1376
1419
  function record(key, value$1, message$1) {
1377
- return {
1420
+ return _standardSchema({
1378
1421
  kind: "schema",
1379
1422
  type: "record",
1380
1423
  reference: record,
@@ -1383,9 +1426,6 @@ function record(key, value$1, message$1) {
1383
1426
  key,
1384
1427
  value: value$1,
1385
1428
  message: message$1,
1386
- get "~standard"() {
1387
- return /* @__PURE__ */ _getStandardProps(this);
1388
- },
1389
1429
  "~run"(dataset, config$1) {
1390
1430
  const input = dataset.value;
1391
1431
  if (input && typeof input === "object") {
@@ -1438,35 +1478,29 @@ function record(key, value$1, message$1) {
1438
1478
  } else _addIssue(this, "type", dataset, config$1);
1439
1479
  return dataset;
1440
1480
  }
1441
- };
1481
+ });
1442
1482
  }
1443
1483
  // @__NO_SIDE_EFFECTS__
1444
1484
  function string(message$1) {
1445
- return {
1485
+ return _standardSchema({
1446
1486
  kind: "schema",
1447
1487
  type: "string",
1448
1488
  reference: string,
1449
1489
  expects: "string",
1450
1490
  async: false,
1451
1491
  message: message$1,
1452
- get "~standard"() {
1453
- return /* @__PURE__ */ _getStandardProps(this);
1454
- },
1455
1492
  "~run"(dataset, config$1) {
1456
1493
  if (typeof dataset.value === "string") dataset.typed = true;
1457
1494
  else _addIssue(this, "type", dataset, config$1);
1458
1495
  return dataset;
1459
1496
  }
1460
- };
1497
+ });
1461
1498
  }
1462
1499
  // @__NO_SIDE_EFFECTS__
1463
1500
  function pipe(...pipe$1) {
1464
- return {
1501
+ return _standardSchema({
1465
1502
  ...pipe$1[0],
1466
1503
  pipe: pipe$1,
1467
- get "~standard"() {
1468
- return /* @__PURE__ */ _getStandardProps(this);
1469
- },
1470
1504
  "~run"(dataset, config$1) {
1471
1505
  for (const item of pipe$1) if (item.kind !== "metadata") {
1472
1506
  if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
@@ -1477,7 +1511,7 @@ function pipe(...pipe$1) {
1477
1511
  }
1478
1512
  return dataset;
1479
1513
  }
1480
- };
1514
+ });
1481
1515
  }
1482
1516
 
1483
1517
  // packages/ai/agent/createAgentSchema.ts
@@ -1500,7 +1534,10 @@ var PROVIDER_REASONING_EFFORT_VALUES = {
1500
1534
  // Cursor: 推理强度在模型名后缀 (如 -high),不走独立参数
1501
1535
  cursor: [],
1502
1536
  // MiMo: 保守默认
1503
- mimo: ["low", "medium", "high"]
1537
+ mimo: ["low", "medium", "high"],
1538
+ // CommandCode Provider API 透传 reasoning_effort(low/medium/high/xhigh/max),
1539
+ // 端点按各模型支持的子集自动 clamp(见 commandcode.ai/docs/provider-api)。
1540
+ commandcode: ["low", "medium", "high", "xhigh", "max"]
1504
1541
  };
1505
1542
  var greetingMenuItemSchema = object({
1506
1543
  id: pipe(string(), minLength(1)),
@@ -1542,9 +1579,7 @@ var referenceItemSchema = pipe(
1542
1579
 
1543
1580
  // packages/ai/llm/reasoningModels.ts
1544
1581
  var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1545
- "deepseek-v4-flash",
1546
- "deepseek-v4-flash-vision-exp",
1547
- "deepseek-v4-pro",
1582
+ "deepseek-flash",
1548
1583
  "gemini-3.7-flash",
1549
1584
  "gemini-3.8-flash",
1550
1585
  "gemini-3.6-flash",
@@ -1554,6 +1589,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1554
1589
  "gemini-3-pro-preview",
1555
1590
  "gemini-3.1-pro-preview",
1556
1591
  "gpt-5.5-pro",
1592
+ "gpt-6-astra",
1557
1593
  "gpt-5.6-sol",
1558
1594
  "gpt-5.6-terra",
1559
1595
  "gpt-5.6-luna",
@@ -1658,7 +1694,10 @@ var ANTHROPIC_MODEL_ALIASES = {
1658
1694
  };
1659
1695
  var NOLO_MODEL_ALIASES = {
1660
1696
  "glm-5.2": "glm-5.3",
1661
- "glm-5.3-flash": "glm-5-3-flash"
1697
+ "glm-5.3-flash": "glm-5-3-flash",
1698
+ "deepseek-v4-flash": "deepseek-flash",
1699
+ "deepseek-v4-flash-vision-exp": "deepseek-flash",
1700
+ "deepseek-v4-pro": "deepseek-flash"
1662
1701
  };
1663
1702
  var normalizeLookupProvider = (provider) => {
1664
1703
  if (!provider) return null;
@@ -1797,7 +1836,7 @@ function getProviderByModelName(modelName) {
1797
1836
  }
1798
1837
  var DEFAULT_MODEL = {
1799
1838
  provider: PLATFORM_HOSTED_KIMI_PROVIDER,
1800
- name: PLATFORM_HOSTED_DEEPSEEK_FLASH_VISION_EXP_MODEL
1839
+ name: PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
1801
1840
  };
1802
1841
  function getApiEndpoint(agent) {
1803
1842
  const { provider, customProviderUrl, endpointKey, model } = agent;
@@ -428,7 +428,7 @@ function parseGeminiStreamJson(stdout) {
428
428
  }
429
429
  function executeGemini(prompt, options) {
430
430
  const {
431
- model = "gemini-3.7-flash",
431
+ model = "gemini-3.8-flash",
432
432
  timeout = 12e4,
433
433
  cwd = process.cwd(),
434
434
  yolo = true
@@ -1434,7 +1434,7 @@ function executeCliStreaming(provider, prompt, options) {
1434
1434
  }
1435
1435
  function executeGeminiStreaming(prompt, options) {
1436
1436
  const {
1437
- model = "gemini-3.7-flash",
1437
+ model = "gemini-3.8-flash",
1438
1438
  timeout = 12e4,
1439
1439
  cwd = process.cwd(),
1440
1440
  yolo = true,
@@ -11,10 +11,10 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-BG7J6Y5X.js";
14
+ } from "./chunk-QEW2MFDQ.js";
15
15
  import {
16
16
  writeOAuthCredential
17
- } from "./chunk-FD36SCCD.js";
17
+ } from "./chunk-ONXOABJR.js";
18
18
  import {
19
19
  toErrorMessage
20
20
  } from "./chunk-HNMXYYJR.js";
@@ -483,6 +483,39 @@ async function refreshOpenAiCodexToken(credential, deps = {}) {
483
483
  });
484
484
  }
485
485
 
486
+ // packages/cli/oauth/deviceCodeDisplay.ts
487
+ var BOLD = "\x1B[1m";
488
+ var RESET = "\x1B[0m";
489
+ function renderDeviceCodeDisplay(args) {
490
+ const { provider, verificationUrl, completeUrl, userCode, notes = [] } = args;
491
+ const bold = args.isTTY ?? Boolean(process.stdout.isTTY);
492
+ const rows = [
493
+ { rendered: ` URL: ${verificationUrl} `, plain: ` URL: ${verificationUrl} ` }
494
+ ];
495
+ if (completeUrl) {
496
+ rows.push({
497
+ rendered: ` Link: ${completeUrl} `,
498
+ plain: ` Link: ${completeUrl} `
499
+ });
500
+ }
501
+ rows.push({
502
+ rendered: ` Code: ${bold ? `${BOLD}${userCode}${RESET}` : userCode} `,
503
+ plain: ` Code: ${userCode} `
504
+ });
505
+ const innerWidth = Math.max(...rows.map((row) => row.plain.length));
506
+ const top = `\u250C${"\u2500".repeat(innerWidth)}\u2510`;
507
+ const bottom = `\u2514${"\u2500".repeat(innerWidth)}\u2518`;
508
+ return [
509
+ `Authorize nolo-cli for ${provider} (device code / headless):`,
510
+ top,
511
+ ...rows.map(
512
+ (row) => `\u2502${row.rendered}${" ".repeat(innerWidth - row.plain.length)}\u2502`
513
+ ),
514
+ bottom,
515
+ ...notes
516
+ ];
517
+ }
518
+
486
519
  // packages/cli/oauth/pkce.ts
487
520
  import { createHash, randomBytes } from "node:crypto";
488
521
  var PKCE_VERIFIER_LENGTH = 64;
@@ -612,9 +645,14 @@ async function pollDeviceCodeToken(args) {
612
645
  async function runOpenAiCodexDeviceCode(deps = {}) {
613
646
  const now = deps.now ?? Date.now;
614
647
  const start = await startDeviceCodeFlow(deps);
615
- deps.output?.log?.("Authorize nolo-cli for ChatGPT / OpenAI Codex:");
616
- deps.output?.log?.(OPENAI_CODEX_DEVICE_VERIFICATION_URL);
617
- deps.output?.log?.(`Enter code: ${start.userCode}`);
648
+ for (const line of renderDeviceCodeDisplay({
649
+ provider: "ChatGPT / OpenAI Codex",
650
+ verificationUrl: OPENAI_CODEX_DEVICE_VERIFICATION_URL,
651
+ userCode: start.userCode,
652
+ notes: ["Code expires in ~15 minutes. Never share the code or tokens."]
653
+ })) {
654
+ deps.output?.log?.(line);
655
+ }
618
656
  if (deps.openBrowser) {
619
657
  const opened = await deps.openBrowser(OPENAI_CODEX_DEVICE_VERIFICATION_URL);
620
658
  if (!opened) deps.output?.log?.("Could not open a browser automatically. Open the URL above.");
@@ -1116,6 +1154,7 @@ export {
1116
1154
  startCallbackServer,
1117
1155
  runAntigravityOAuthLogin,
1118
1156
  refreshAntigravityOAuthToken,
1157
+ renderDeviceCodeDisplay,
1119
1158
  generatePkcePair,
1120
1159
  runOpenAiCodexDeviceCode,
1121
1160
  runOpenAiCodexBrowserPkce,
@@ -0,0 +1,23 @@
1
+ // packages/core/abortableDelay.ts
2
+ function waitForAbortableDelay(ms, signal) {
3
+ const delayMs = Number.isFinite(ms) && ms >= 0 ? Math.round(ms) : 0;
4
+ if (signal?.aborted) {
5
+ return Promise.reject(new DOMException("Aborted", "AbortError"));
6
+ }
7
+ return new Promise((resolve, reject) => {
8
+ const onAbort = () => {
9
+ clearTimeout(timeoutId);
10
+ signal?.removeEventListener("abort", onAbort);
11
+ reject(new DOMException("Aborted", "AbortError"));
12
+ };
13
+ const timeoutId = setTimeout(() => {
14
+ signal?.removeEventListener("abort", onAbort);
15
+ resolve();
16
+ }, delayMs);
17
+ signal?.addEventListener("abort", onAbort, { once: true });
18
+ });
19
+ }
20
+
21
+ export {
22
+ waitForAbortableDelay
23
+ };