nolo-cli 0.33.0-alpha.9 → 0.34.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 (164) hide show
  1. package/{_executeModel-2WR4RTZZ.js → _executeModel-TMUXL7J5.js} +64 -65
  2. package/{action-OQWPNKAH.js → action-KMBZ3LCZ.js} +12 -12
  3. package/{addContentAction-YVINZQTF.js → addContentAction-KQ44UT2U.js} +10 -10
  4. package/{addDialogAgentAction-6IOCIEPI.js → addDialogAgentAction-ILSDCMYL.js} +9 -9
  5. package/{agentDeleteCommand-H22WRYC6.js → agentDeleteCommand-KA2IQAPG.js} +40 -39
  6. package/{agentEmailCommands-DGJVCMCG.js → agentEmailCommands-UIYBGCZW.js} +74 -75
  7. package/{agentListCommands-6NWMLIMQ.js → agentListCommands-L6JNUOLH.js} +47 -37
  8. package/{agentMachineCommands-5MUO6RDI.js → agentMachineCommands-5CQW5NZR.js} +37 -36
  9. package/agentProviderCommands-65ZC2WB4.js +122 -0
  10. package/{agentPullCommand-YH5GEBK4.js → agentPullCommand-TSWAJPS2.js} +1 -1
  11. package/agentRecordCommands-VUDJQIZH.js +112 -0
  12. package/agentRunCommand-EJWYF3BL.js +132 -0
  13. package/{agentRunControl-SCIVRZWX.js → agentRunControl-7MUPSYDQ.js} +7 -1
  14. package/{agentRuntimeLocal-PRAR3NCW.js → agentRuntimeLocal-XXBMDMBU.js} +33 -33
  15. package/{agentSlice-AMDSTXP5.js → agentSlice-HTIEYKIU.js} +12 -12
  16. package/agentSuperviseCommands-MKWW3ICX.js +640 -0
  17. package/{appDeleteCommands-L5PKC42V.js → appDeleteCommands-OUBL6VHB.js} +35 -34
  18. package/{appDeployCommands-3J7Z4XWV.js → appDeployCommands-BZSS2MX4.js} +35 -34
  19. package/{appDeployStatusCommands-YTRPXE72.js → appDeployStatusCommands-P2ZQOY5X.js} +35 -34
  20. package/{appGetCommands-JVXV5WXD.js → appGetCommands-WCFWQZZM.js} +35 -34
  21. package/{appListCommands-7KDEOJSO.js → appListCommands-FVJ3QNL7.js} +35 -34
  22. package/{authCommand-6Y5LTMZB.js → authCommand-B2XRHNJH.js} +19 -19
  23. package/{authCommands-EAPFGNHN.js → authCommands-GWABTFMR.js} +6 -6
  24. package/{chatQueueReduxAdapter-ZKSS6XRV.js → chatQueueReduxAdapter-ZP2ZS63U.js} +28 -28
  25. package/{chunk-UM4H3URE.js → chunk-23KKIMD5.js} +7 -7
  26. package/chunk-2BWU4ORW.js +2574 -0
  27. package/{chunk-2UECQ7RE.js → chunk-3AOLVADY.js} +1 -1
  28. package/{chunk-M2YMQOLC.js → chunk-4APLX2RT.js} +75 -10
  29. package/{chunk-ZHYK3N56.js → chunk-4AWH4LQA.js} +3 -1
  30. package/{chunk-3GZXL6FM.js → chunk-4DMPISV6.js} +7 -3
  31. package/{chunk-BQ3OHLR5.js → chunk-5GQ6XCJY.js} +1217 -691
  32. package/{chunk-GOIDVXK5.js → chunk-5LDKQUOT.js} +21 -8
  33. package/{chunk-OIQPORYI.js → chunk-64KIQZA2.js} +175 -2
  34. package/{chunk-6XIE5ZGI.js → chunk-6HIGYUBQ.js} +1 -1
  35. package/chunk-6XG52ZQ6.js +146 -0
  36. package/{chunk-FMEVI5TG.js → chunk-7CH6U3FL.js} +1 -1
  37. package/chunk-AA2YUJNV.js +54 -0
  38. package/{chunk-7INB7NXF.js → chunk-AE5GVFMG.js} +294 -54
  39. package/{chunk-UNOTBWZZ.js → chunk-B6H5XCT2.js} +8 -8
  40. package/{chunk-NNWHHCVP.js → chunk-BMB563Y6.js} +10 -4
  41. package/{chunk-DFUPZE6V.js → chunk-C6ELZQ7H.js} +249 -34
  42. package/{chunk-7KNERA53.js → chunk-E2OQ5N2F.js} +87 -13
  43. package/{chunk-6HYVJV7B.js → chunk-ESHYE7WU.js} +2 -1
  44. package/{chunk-KHCLMKZZ.js → chunk-EY7V7REW.js} +280 -6
  45. package/{chunk-JZPBVBIY.js → chunk-FD36SCCD.js} +19 -8
  46. package/{chunk-DKMOY3QI.js → chunk-FGLKRJDI.js} +54 -3
  47. package/{chunk-MQWVAOIU.js → chunk-FT4XBCK4.js} +33 -158
  48. package/{chunk-2QTEYCR7.js → chunk-FTM4KUOZ.js} +17 -17
  49. package/{chunk-U4TRT5V4.js → chunk-GEPHJJW4.js} +1 -1
  50. package/{chunk-7YYHKBJP.js → chunk-GKHV4UH5.js} +1 -1
  51. package/{chunk-2IVEXF7P.js → chunk-GUYMR3JL.js} +6 -33
  52. package/{chunk-YDTYDA5W.js → chunk-GZRMWK5R.js} +6 -4
  53. package/{chunk-X664KVEV.js → chunk-HHBXCRJS.js} +204 -123
  54. package/{chunk-AN7DGYMW.js → chunk-I7VDDN45.js} +4579 -3131
  55. package/{chunk-DSBGWT2C.js → chunk-IEEEWIVO.js} +10 -10
  56. package/{chunk-75U775RZ.js → chunk-IFS5CUEH.js} +1 -1
  57. package/{chunk-WLH5BAKX.js → chunk-IIOHYLIG.js} +9 -4
  58. package/{chunk-UEAUAXYS.js → chunk-ILZY5B4U.js} +2063 -214
  59. package/chunk-IMHO5LC6.js +370 -0
  60. package/{chunk-ADLYMQB6.js → chunk-IZCHPD7T.js} +52 -3
  61. package/{chunk-ITIA6OAQ.js → chunk-IZNJDUJ4.js} +5 -5
  62. package/{chunk-X2DAEZ3X.js → chunk-J5NMOM35.js} +1 -1
  63. package/{chunk-RPRRIFXV.js → chunk-JI2TIPLP.js} +1 -1
  64. package/{chunk-EGRJC4ZN.js → chunk-JIADXJYU.js} +1 -1
  65. package/{chunk-IHEC7VBF.js → chunk-K4KIFRIN.js} +1 -1
  66. package/{chunk-WJSW43QZ.js → chunk-L3JWI7WX.js} +0 -1
  67. package/{chunk-3RUW3ONU.js → chunk-LD6Y6RJY.js} +4 -4
  68. package/chunk-M3JQWYBC.js +387 -0
  69. package/{chunk-GM6PU7B6.js → chunk-MEYIRKDN.js} +0 -1
  70. package/{chunk-6YXDOOSH.js → chunk-MGIHZ5CJ.js} +4 -4
  71. package/{chunk-4F5M2MW5.js → chunk-MJWX4JQO.js} +2 -2
  72. package/{chunk-Q5ITEGIN.js → chunk-N4XRDM26.js} +1 -1
  73. package/{chunk-5CS33IBL.js → chunk-NQ4N4IGO.js} +11 -12
  74. package/{chunk-ZZ2MH7LE.js → chunk-O6OSWFZQ.js} +0 -1
  75. package/{chunk-RJKIB55Y.js → chunk-OSCSEJJR.js} +15 -8
  76. package/{chunk-HUCT7HID.js → chunk-P2I7ELDC.js} +3 -3
  77. package/{chunk-BXPBZVRE.js → chunk-PILJX4DH.js} +285 -251
  78. package/{chunk-SCUETSRP.js → chunk-PV734VZX.js} +1 -1
  79. package/{chunk-XLLTJXAD.js → chunk-QI3CHZUT.js} +39 -2672
  80. package/{chunk-WNHST4IE.js → chunk-RKRXAL3V.js} +5451 -5013
  81. package/{chunk-7E72JMBB.js → chunk-SMPAUSX5.js} +46 -5
  82. package/{chunk-5X4GQ53C.js → chunk-TLBZMLLJ.js} +7 -7
  83. package/{chunk-ASDXPOJH.js → chunk-U6QQLXWI.js} +1 -1
  84. package/{chunk-NUO3QFWD.js → chunk-UNHKVD2N.js} +1 -1
  85. package/{chunk-GE6IWA5N.js → chunk-UNZDCI3O.js} +126 -1
  86. package/{chunk-CPYYM4RJ.js → chunk-V5GA74HI.js} +19 -5
  87. package/{chunk-FXFGNOT2.js → chunk-VFVCYIRQ.js} +1 -1
  88. package/{chunk-G7E4NWFE.js → chunk-W445DPVT.js} +1 -1
  89. package/{chunk-EMW55KKX.js → chunk-WBZE7C6S.js} +1 -1
  90. package/{chunk-3UG2IIZ3.js → chunk-WN5AJG5I.js} +1 -1
  91. package/{chunk-KSRFVP36.js → chunk-WRN7L5CS.js} +1 -1
  92. package/{chunk-GJXRIOLS.js → chunk-WRP5TTM6.js} +4 -84
  93. package/chunk-X2K2JSO4.js +163 -0
  94. package/{chunk-OR2HNLVO.js → chunk-X6EN3KJX.js} +279 -477
  95. package/{chunk-VWY2CZD2.js → chunk-XMFDQYWA.js} +3 -3
  96. package/{chunk-IKWTTKWG.js → chunk-XQES6LXQ.js} +2 -2
  97. package/{chunk-IR6W62Q6.js → chunk-XT73C4VH.js} +18 -21
  98. package/{chunk-7L5CQQIT.js → chunk-Y5W623XU.js} +15 -15
  99. package/{chunk-RY57GLGW.js → chunk-YPREESF4.js} +42 -5
  100. package/{chunk-BQXOGBFN.js → chunk-YZ2WE6CW.js} +2 -2
  101. package/{chunk-DNQK7M7K.js → chunk-Z7COG62J.js} +4 -4
  102. package/{chunk-3WXRAHCG.js → chunk-ZBB3MZR3.js} +3 -3
  103. package/{cliExecutor-DW3PHGEL.js → cliExecutor-BBUVQU4L.js} +2 -2
  104. package/{clipboardy-MMBYVRLF.js → clipboardy-PRUHGPGC.js} +4 -3
  105. package/{codingSkills-DY5MINPG.js → codingSkills-6F4EQFCM.js} +4 -5
  106. package/cooldownCommands-C2SZLEEO.js +90 -0
  107. package/{createAgentAutomationAction-GVSJL2CI.js → createAgentAutomationAction-TGUXUZCY.js} +28 -30
  108. package/createDialogAction-FD5AEOUF.js +58 -0
  109. package/{createPageAction-M2VDKBYS.js → createPageAction-NPC3LYNK.js} +31 -34
  110. package/{dbSlice-UI2VCBLG.js → dbSlice-PIQGICNM.js} +9 -9
  111. package/{deleteFile-XQXPBFFB.js → deleteFile-NPZ64DFN.js} +4 -4
  112. package/{dialogCommands-26DBYNBT.js → dialogCommands-ZF2RSNCG.js} +37 -36
  113. package/{dialogSlice-FFGLRCBL.js → dialogSlice-6BINHWQT.js} +27 -27
  114. package/dist-VODFSGNG.js +7442 -0
  115. package/{docCreateCommands-F2ASWG6B.js → docCreateCommands-4VQ5MOHP.js} +36 -36
  116. package/{docDeleteCommands-A4URDZPI.js → docDeleteCommands-M7WLNVPB.js} +37 -37
  117. package/{docReadCommands-DO6VHDZD.js → docReadCommands-6LU6P2WT.js} +36 -36
  118. package/{docStore-EDAE7RNT.js → docStore-SIUFLABN.js} +29 -31
  119. package/{docUpdateCommands-ZTXZ3RTP.js → docUpdateCommands-S2LX4ENL.js} +39 -39
  120. package/{fetchMessages-7QRCCRYK.js → fetchMessages-CUEFN4GQ.js} +4 -4
  121. package/{getPricing-L2ENXWHV.js → getPricing-P3E2WRIH.js} +5 -5
  122. package/{handleSendMessageAction-CIRLGHOC.js → handleSendMessageAction-QVG5YNZY.js} +29 -29
  123. package/index.js +92 -77
  124. package/{localDialogRead-SLMPV5SK.js → localDialogRead-P7CHFMIC.js} +1 -1
  125. package/{localRuntimeAuthority-E3R24J4T.js → localRuntimeAuthority-S77B5QVB.js} +6 -2
  126. package/{localRuntimeDb-DDZCJFQZ.js → localRuntimeDb-N3H3HQ7G.js} +1 -1
  127. package/{machineCommands-NIQNCYJV.js → machineCommands-OSEBN7BZ.js} +76 -77
  128. package/{machineInfo-M6KB6HZN.js → machineInfo-66ZFUMLE.js} +1 -1
  129. package/{machineWsRunDispatch-EMTSQGAR.js → machineWsRunDispatch-NTJQCIIF.js} +68 -69
  130. package/{models-OX2S5C6Q.js → models-L7S2EKPM.js} +2 -2
  131. package/package.json +1 -1
  132. package/{read-2VHEHCAN.js → read-6C2XD3YZ.js} +5 -5
  133. package/{readDocTool-CSWD6NPC.js → readDocTool-Y7AB365O.js} +1 -1
  134. package/{readlineWorkspace-A2JBJWLI.js → readlineWorkspace-JPME5S7A.js} +4860 -3476
  135. package/{removeDialogAgentAction-2T7BPM3T.js → removeDialogAgentAction-KG5WMJRZ.js} +13 -13
  136. package/{runAgentClientLoop-BV4736ED.js → runAgentClientLoop-SOKEXCUF.js} +61 -61
  137. package/{runtimeDoctorCommands-KIKM6BIO.js → runtimeDoctorCommands-HT4O2PXL.js} +6 -6
  138. package/{setDialogExtraReferencesAction-GPT37HTW.js → setDialogExtraReferencesAction-O2NLXMSM.js} +10 -10
  139. package/{setPrimaryDialogAgentAction-3746P7IW.js → setPrimaryDialogAgentAction-FYYUY7PB.js} +13 -13
  140. package/{settingSlice-FIFOQ6OR.js → settingSlice-GPLI6E3M.js} +11 -11
  141. package/{skillDiscovery-KLLKXPUO.js → skillDiscovery-GPUDHDTZ.js} +3 -4
  142. package/{slateUtils-VO2FU36K.js → slateUtils-RIZES3PV.js} +1 -1
  143. package/{spaceCommands-AYZQHDB3.js → spaceCommands-Z5JLMFFJ.js} +223 -37
  144. package/{spaceSlice-43BNF22B.js → spaceSlice-Z3BGCLGX.js} +28 -30
  145. package/{streamAgentChatTurn-OLLRSITV.js → streamAgentChatTurn-INF5RGK4.js} +115 -129
  146. package/{switchDialogAgentAction-MQTUTQHL.js → switchDialogAgentAction-GH5P6Q3Z.js} +9 -9
  147. package/{chunk-IDAU4UFS.js → syncMapping-N6RGXGBW.js} +11 -11
  148. package/{tableCommands-QE47K72R.js → tableCommands-PQUJ55AS.js} +3 -3
  149. package/{tools-2SI3FXLL.js → tools-ZELMSJZ3.js} +45 -47
  150. package/{tuiSummaryLlmCaller-EAWQ3IZX.js → tuiSummaryLlmCaller-LH7F2SP7.js} +18 -18
  151. package/{updateCommands-AK2RDOFR.js → updateCommands-MNDUIKN7.js} +2 -2
  152. package/{updateDialogTitleAction-YJEQFYOA.js → updateDialogTitleAction-EDUCIB7G.js} +31 -33
  153. package/agentRecordCommands-YMGKT2WF.js +0 -113
  154. package/agentRunCommand-LYEMVQJH.js +0 -131
  155. package/chunk-AETZ7AD6.js +0 -274
  156. package/chunk-D5JI6VDM.js +0 -1800
  157. package/chunk-M3JEW6N6.js +0 -193
  158. package/chunk-ZURFOV5J.js +0 -105
  159. package/chunk-ZWS6DUHX.js +0 -480
  160. package/createDialogAction-VVR46Q2A.js +0 -61
  161. package/syncMapping-RK2MANUX.js +0 -43
  162. package/{chunk-KMSZPTM6.js → chunk-2WKUUY2E.js} +3 -3
  163. package/{chunk-CWMSB67P.js → chunk-AGGIDPCZ.js} +0 -0
  164. package/{chunk-SAQQLJZ5.js → chunk-JDSUTNYY.js} +3 -3
@@ -1,6 +1,3 @@
1
- import {
2
- getPublicImageAgentMode
3
- } from "./chunk-VIDPVFP3.js";
4
1
  import {
5
2
  clipHeadAndTail
6
3
  } from "./chunk-JEXVIMYZ.js";
@@ -8,10 +5,14 @@ import {
8
5
  inlineImageUrlsForCustomProvider,
9
6
  prepareTools,
10
7
  shouldInlineImageUrlsForAgent
11
- } from "./chunk-VWY2CZD2.js";
8
+ } from "./chunk-XMFDQYWA.js";
12
9
  import {
13
- performFetchRequest
14
- } from "./chunk-7INB7NXF.js";
10
+ INVALID_TOOL_ARGS_REPLACEMENT,
11
+ buildInvalidToolCallSelfHealResult,
12
+ parseToolCallArguments,
13
+ performFetchRequest,
14
+ sanitizeOutboundMessages
15
+ } from "./chunk-AE5GVFMG.js";
15
16
  import {
16
17
  createSSEParser,
17
18
  createToolRunId,
@@ -22,22 +23,30 @@ import {
22
23
  toolRunSetPending,
23
24
  toolRunStarted,
24
25
  toolRunSucceeded
25
- } from "./chunk-BQ3OHLR5.js";
26
+ } from "./chunk-5GQ6XCJY.js";
27
+ import {
28
+ getPublicImageAgentMode
29
+ } from "./chunk-VIDPVFP3.js";
26
30
  import {
27
31
  getCurrentSpaceId
28
- } from "./chunk-XLLTJXAD.js";
32
+ } from "./chunk-QI3CHZUT.js";
29
33
  import {
30
34
  addToolMessage,
31
35
  messageStreamEnd,
32
36
  messageStreaming,
33
37
  updateToolMessage
34
- } from "./chunk-BXPBZVRE.js";
38
+ } from "./chunk-PILJX4DH.js";
35
39
  import {
36
40
  streamAgentChatTurn
37
- } from "./chunk-5X4GQ53C.js";
41
+ } from "./chunk-TLBZMLLJ.js";
42
+ import {
43
+ addActiveController,
44
+ removeActiveController,
45
+ tokenUsageLiveUpdate
46
+ } from "./chunk-MRWGHF56.js";
38
47
  import {
39
48
  EMPTY_ASSISTANT_REPAIR_PROMPT
40
- } from "./chunk-D5JI6VDM.js";
49
+ } from "./chunk-AA2YUJNV.js";
41
50
  import {
42
51
  accumulateToolCallDelta,
43
52
  createThinkParserState,
@@ -49,45 +58,40 @@ import {
49
58
  } from "./chunk-N7J63Q6C.js";
50
59
  import {
51
60
  getModelInfo
52
- } from "./chunk-GJXRIOLS.js";
61
+ } from "./chunk-WRP5TTM6.js";
53
62
  import {
54
63
  getApiEndpoint
55
- } from "./chunk-DFUPZE6V.js";
56
- import {
57
- addActiveController,
58
- removeActiveController,
59
- tokenUsageLiveUpdate
60
- } from "./chunk-MRWGHF56.js";
64
+ } from "./chunk-C6ELZQ7H.js";
61
65
  import {
62
66
  toErrorMessage
63
67
  } from "./chunk-HNMXYYJR.js";
64
68
  import {
65
69
  selectCurrentServer
66
- } from "./chunk-UNOTBWZZ.js";
70
+ } from "./chunk-B6H5XCT2.js";
67
71
  import {
68
72
  write
69
- } from "./chunk-UM4H3URE.js";
73
+ } from "./chunk-23KKIMD5.js";
70
74
  import {
71
75
  createDialogMessageKeyAndId,
72
76
  dialogMessageKey,
73
77
  toTrimmedString
74
- } from "./chunk-KMSZPTM6.js";
78
+ } from "./chunk-2WKUUY2E.js";
79
+ import {
80
+ extractCustomId
81
+ } from "./chunk-BJIRLHJR.js";
75
82
  import {
76
83
  createAsyncThunk,
77
84
  selectIdentityToken
78
- } from "./chunk-X664KVEV.js";
85
+ } from "./chunk-HHBXCRJS.js";
79
86
  import {
80
87
  isAbortError
81
- } from "./chunk-WJSW43QZ.js";
82
- import {
83
- asTrimmedString
84
- } from "./chunk-3EUW3WEO.js";
85
- import {
86
- extractCustomId
87
- } from "./chunk-BJIRLHJR.js";
88
+ } from "./chunk-L3JWI7WX.js";
88
89
  import {
89
90
  isRecord
90
91
  } from "./chunk-KUG52IAP.js";
92
+ import {
93
+ asTrimmedString
94
+ } from "./chunk-3EUW3WEO.js";
91
95
  import {
92
96
  asOptionalTrimmedString
93
97
  } from "./chunk-G3SUCT4W.js";
@@ -851,131 +855,6 @@ function accumulateToolCallChunks(currentAccumulatedCalls, toolCallChunks) {
851
855
  }));
852
856
  }
853
857
 
854
- // packages/ai/chat/toolCallArgumentGuard.ts
855
- var INVALID_TOOL_ARGS_REPLACEMENT = '{"_invalid":true,"_reason":"arguments truncated or malformed"}';
856
- var INVALID_TOOL_ARGS_OUTBOUND_REPLACEMENT = '{"_invalid":true}';
857
- var INVALID_TOOL_RESULT_HINT = "\u5DE5\u5177\u53C2\u6570 JSON \u88AB\u622A\u65AD\uFF08\u5927\u6982\u7387\u8D85\u51FA\u8F93\u51FA\u957F\u5EA6\uFF09\u3002\u4E0D\u8981\u628A\u5B8C\u6574\u6E90\u7801\u585E\u8FDB\u4E00\u6B21\u5DE5\u5177\u8C03\u7528\uFF1A\u5148\u7528 appFileWrite \u5206\u6587\u4EF6\u591A\u6B21\u5199\u5165\uFF0C\u518D\u8C03\u7528\u4E0D\u5E26\u5185\u8054\u5927\u53C2\u6570\u7684 appPreflight/appDeploy\u3002";
858
- var ORPHAN_TOOL_RESULT_PLACEHOLDER = '{"error":"tool call was interrupted"}';
859
- function parseToolCallArguments(args) {
860
- if (isRecord(args)) {
861
- return { valid: true, parsed: args };
862
- }
863
- if (typeof args !== "string") return { valid: false };
864
- const trimmed = args.trim();
865
- if (!trimmed) return { valid: false };
866
- try {
867
- const parsed = JSON.parse(trimmed);
868
- if (!isRecord(parsed)) {
869
- return { valid: false };
870
- }
871
- return { valid: true, parsed };
872
- } catch {
873
- return { valid: false };
874
- }
875
- }
876
- function buildInvalidToolCallSelfHealResult(callId, toolName) {
877
- return JSON.stringify({
878
- error: true,
879
- toolCallId: callId,
880
- ...toolName ? { toolName } : {},
881
- message: INVALID_TOOL_RESULT_HINT
882
- });
883
- }
884
- function normalizeToolCallArgumentsInPlace(call, replacement) {
885
- if (!call || typeof call !== "object") return;
886
- const fn = call.function;
887
- if (!fn || typeof fn !== "object") return;
888
- const { valid } = parseToolCallArguments(fn.arguments);
889
- if (!valid) {
890
- fn.arguments = replacement;
891
- } else if (typeof fn.arguments !== "string") {
892
- try {
893
- fn.arguments = JSON.stringify(fn.arguments);
894
- } catch {
895
- fn.arguments = replacement;
896
- }
897
- }
898
- }
899
- function sanitizeOutboundMessages(messages, opts = {}) {
900
- if (!Array.isArray(messages) || messages.length === 0) return messages ?? [];
901
- const argsReplacement = opts.argsReplacement ?? INVALID_TOOL_ARGS_OUTBOUND_REPLACEMENT;
902
- const orphanReplacement = opts.orphanReplacement ?? ORPHAN_TOOL_RESULT_PLACEHOLDER;
903
- const cloned = messages.map((msg) => ({ ...msg }));
904
- const answeredCallIds = /* @__PURE__ */ new Set();
905
- for (const msg of cloned) {
906
- if (msg?.role === "tool" && typeof msg.tool_call_id === "string") {
907
- answeredCallIds.add(msg.tool_call_id);
908
- }
909
- }
910
- const result = [];
911
- for (const msg of cloned) {
912
- if (msg?.role === "assistant" && Array.isArray(msg.tool_calls)) {
913
- msg.tool_calls = msg.tool_calls.map((call) => ({
914
- ...call,
915
- function: { ...call?.function ?? {} }
916
- }));
917
- for (const call of msg.tool_calls) {
918
- normalizeToolCallArgumentsInPlace(call, argsReplacement);
919
- }
920
- result.push(msg);
921
- for (const call of msg.tool_calls) {
922
- const callId = typeof call?.id === "string" ? call.id : void 0;
923
- if (!callId) continue;
924
- if (answeredCallIds.has(callId)) continue;
925
- answeredCallIds.add(callId);
926
- result.push({
927
- role: "tool",
928
- tool_call_id: callId,
929
- content: orphanReplacement
930
- });
931
- }
932
- continue;
933
- }
934
- result.push(msg);
935
- }
936
- return result;
937
- }
938
- function sanitizeOutboundResponsesInput(input, opts = {}) {
939
- if (!Array.isArray(input) || input.length === 0) return input ?? [];
940
- const argsReplacement = opts.argsReplacement ?? INVALID_TOOL_ARGS_OUTBOUND_REPLACEMENT;
941
- const orphanReplacement = opts.orphanReplacement ?? ORPHAN_TOOL_RESULT_PLACEHOLDER;
942
- const answeredCallIds = /* @__PURE__ */ new Set();
943
- for (const item of input) {
944
- if (item?.type === "function_call_output" && typeof item.call_id === "string") {
945
- answeredCallIds.add(item.call_id);
946
- }
947
- }
948
- const result = [];
949
- for (const item of input) {
950
- if (item?.type === "function_call") {
951
- const cloned = { ...item };
952
- const { valid } = parseToolCallArguments(cloned.arguments);
953
- if (!valid) {
954
- cloned.arguments = argsReplacement;
955
- } else if (typeof cloned.arguments !== "string") {
956
- try {
957
- cloned.arguments = JSON.stringify(cloned.arguments);
958
- } catch {
959
- cloned.arguments = argsReplacement;
960
- }
961
- }
962
- result.push(cloned);
963
- const callId = typeof cloned.call_id === "string" ? cloned.call_id : void 0;
964
- if (callId && !answeredCallIds.has(callId)) {
965
- answeredCallIds.add(callId);
966
- result.push({
967
- type: "function_call_output",
968
- call_id: callId,
969
- output: orphanReplacement
970
- });
971
- }
972
- continue;
973
- }
974
- result.push(item);
975
- }
976
- return result;
977
- }
978
-
979
858
  // packages/ai/chat/streamReader.ts
980
859
  function createAbortError(message = "The operation was aborted.") {
981
860
  return new DOMException(message, "AbortError");
@@ -1946,10 +1825,6 @@ export {
1946
1825
  handleToolCalls,
1947
1826
  parseApiError,
1948
1827
  updateTotalUsage,
1949
- INVALID_TOOL_ARGS_REPLACEMENT,
1950
- parseToolCallArguments,
1951
- buildInvalidToolCallSelfHealResult,
1952
- sanitizeOutboundResponsesInput,
1953
1828
  readStreamChunk,
1954
1829
  sendOpenAICompletionsRequest
1955
1830
  };
@@ -1,39 +1,44 @@
1
1
  import {
2
2
  cloudflareModels,
3
- deepinfraModels,
4
- fireworksModels,
5
3
  gmiModels,
6
- googleModels,
7
- openAIModels,
8
4
  openrouterModels,
9
5
  platformHostedModels,
10
- xaiModels,
11
6
  zaiModels
12
- } from "./chunk-OR2HNLVO.js";
7
+ } from "./chunk-X6EN3KJX.js";
13
8
 
14
9
  // packages/ai/llm/modelAbility.ts
15
10
  var MODEL_ABILITY_TABLE = {
16
- "claude-opus-5": { passAt1: 74, benchmarkScore: 61 },
17
- "gpt-5.6-sol": { passAt1: 73, benchmarkScore: 59 },
11
+ "claude-opus-5": { passAt1: 74, benchmarkScore: 61, writingScore: 82 },
12
+ "claude-opus-4-6": { passAt1: 65, benchmarkScore: 68, writingScore: 78 },
13
+ "gpt-5.6-sol": { passAt1: 73, benchmarkScore: 59, writingScore: 80 },
18
14
  "claude-fable-5": { passAt1: 70 },
19
15
  "gpt-5.6-terra": { passAt1: 70, benchmarkScore: 55 },
20
- "kimi-k3": { passAt1: 69, benchmarkScore: 57 },
16
+ "kimi-k3": { passAt1: 69, benchmarkScore: 57, writingScore: 81 },
21
17
  "gpt-5.5": { passAt1: 67 },
22
18
  "gpt-5.6-luna": { passAt1: 67, benchmarkScore: 51 },
23
19
  "grok-4.6": { passAt1: 67 },
24
- "deepseek-v4-pro": { passAt1: 63 },
25
- "qwen3.8-max": { passAt1: 57 },
20
+ "deepseek-v4-pro": { passAt1: 63, writingScore: 79 },
21
+ "qwen3.8-max": { passAt1: 57, writingScore: 77 },
26
22
  "muse-spark-1.2": { passAt1: 55 },
27
23
  "grok-4.5": { passAt1: 54, benchmarkScore: 54 },
28
24
  "claude-sonnet-5": { passAt1: 54, benchmarkScore: 53 },
29
25
  "deepseek-v4-flash": { passAt1: 53 },
26
+ "gemini-3.7-flash": { passAt1: 58, benchmarkScore: 65, writingScore: 88 },
30
27
  "muse-spark-1.1": { passAt1: 53 },
31
28
  "gpt-5.4": { passAt1: 52 },
32
29
  "gemini-3.6-flash": { passAt1: 49, benchmarkScore: 50 },
33
30
  "glm-5.3": { passAt1: 52, benchmarkScore: 60 },
34
31
  "glm-5.2": { passAt1: 44, benchmarkScore: 51 }
35
32
  };
36
- var EFFORT_SUFFIXES = ["-extra-low", "-low", "-medium", "-high"];
33
+ var EFFORT_SUFFIXES = [
34
+ "-extra-low",
35
+ "-low",
36
+ "-medium",
37
+ "-high",
38
+ "-thinking",
39
+ "-tiered",
40
+ ":cloud"
41
+ ];
37
42
  function normalizeModelName(raw) {
38
43
  let name = raw.trim().toLowerCase();
39
44
  const slash = name.indexOf("/");
@@ -55,12 +60,7 @@ function getModelAbility(modelName) {
55
60
  var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
56
61
  var ALL_MODELS = [
57
62
  ...withProvider("nolo")(platformHostedModels),
58
- ...withProvider("google")(googleModels),
59
- ...withProvider("openai")(openAIModels),
60
63
  ...withProvider("openrouter")(openrouterModels),
61
- ...withProvider("xai")(xaiModels),
62
- ...withProvider("deepinfra")(deepinfraModels),
63
- ...withProvider("fireworks")(fireworksModels),
64
64
  ...withProvider("cloudflare")(cloudflareModels),
65
65
  ...withProvider("gmi")(gmiModels),
66
66
  ...withProvider("zai")(zaiModels)
@@ -194,7 +194,7 @@ function readCliAuthorityDriver(env) {
194
194
  function resolveCliAuthorityRunDir(options = {}) {
195
195
  return path.join(resolveNoloHome({
196
196
  ...options,
197
- env: options.env ?? {}
197
+ env: options.env ?? process.env
198
198
  }), "run");
199
199
  }
200
200
  function hashString(value) {
@@ -2,7 +2,7 @@ import {
2
2
  isOpenAiResponsesModel,
3
3
  resolvePlatformChatCompletionsEndpoint,
4
4
  resolvePlatformResponsesEndpoint
5
- } from "./chunk-CPYYM4RJ.js";
5
+ } from "./chunk-V5GA74HI.js";
6
6
  import {
7
7
  asTrimmedLowercaseString
8
8
  } from "./chunk-QSJ3HFEF.js";
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  isOAuthApiKeyRef
3
3
  } from "./chunk-YYLHWIW6.js";
4
+ import {
5
+ compareAgentSelection
6
+ } from "./chunk-IZCHPD7T.js";
4
7
  import {
5
8
  getModelAbility
6
- } from "./chunk-2QTEYCR7.js";
9
+ } from "./chunk-FTM4KUOZ.js";
7
10
  import {
8
11
  isOwnedAgentKey,
9
12
  ownedAgentKey,
@@ -152,40 +155,10 @@ function toSafeAgentSummary(record, options) {
152
155
  };
153
156
  }
154
157
  function sortSafeAgentSummaries(agents) {
155
- return [...agents].sort((left, right) => {
156
- const isUserConfigured = (agent) => agent.isOAuth === true || agent.isOwned === true && agent.apiSource === "custom";
157
- const priority = (agent) => {
158
- const favorite = agent.isFavorite === true;
159
- const configured = isUserConfigured(agent);
160
- if (favorite && configured) return 0;
161
- if (favorite) return 1;
162
- if (configured) return 2;
163
- if (agent.isOwned === true) return 3;
164
- return 4;
165
- };
166
- const priorityDiff = priority(left) - priority(right);
167
- if (priorityDiff !== 0) return priorityDiff;
168
- const leftFav = left.isFavorite === true;
169
- const rightFav = right.isFavorite === true;
170
- if (leftFav && rightFav) {
171
- const leftFavAt = parseTimestamp(left.favoritedAt);
172
- const rightFavAt = parseTimestamp(right.favoritedAt);
173
- if (leftFavAt !== rightFavAt) return rightFavAt - leftFavAt;
174
- }
175
- const leftUpdated = parseTimestamp(left.updatedAt ?? left.createdAt);
176
- const rightUpdated = parseTimestamp(right.updatedAt ?? right.createdAt);
177
- return rightUpdated - leftUpdated;
178
- });
179
- }
180
-
181
- // packages/ai/agent/agentAvailabilityShared.ts
182
- function isAgentUnavailableNow(agent, now = Date.now()) {
183
- const at = agent?.nextAvailableAt;
184
- return typeof at === "number" && Number.isFinite(at) && at > now;
158
+ return [...agents].sort(compareAgentSelection);
185
159
  }
186
160
 
187
161
  export {
188
162
  toSafeAgentSummary,
189
- sortSafeAgentSummaries,
190
- isAgentUnavailableNow
163
+ sortSafeAgentSummaries
191
164
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-X2DAEZ3X.js";
4
+ } from "./chunk-J5NMOM35.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-EKLRRZIN.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-A7GB5UGH.js";
22
22
  import {
23
23
  createAgentKey
24
- } from "./chunk-KMSZPTM6.js";
24
+ } from "./chunk-2WKUUY2E.js";
25
25
 
26
26
  // packages/cli/agentRecordHelpers.ts
27
27
  import { readFileSync } from "node:fs";
@@ -458,7 +458,9 @@ function parseAgentUpdateArgs(args) {
458
458
  const copyProviderFrom = readOption(args, "--copy-provider-from");
459
459
  const name = readOption(args, "--name");
460
460
  const customProviderUrl = readOption(args, "--custom-provider-url");
461
- const apiKey = readOption(args, "--api-key");
461
+ const apiKey = readOption(args, "--api-key") ?? readOption(args, "--provider-api-key");
462
+ const verify = args.includes("--verify");
463
+ const verifyPrompt = readOption(args, "--verify-prompt");
462
464
  const maxConcurrent = parsePositiveIntegerOption(
463
465
  readOption(args, "--max-concurrent"),
464
466
  "--max-concurrent"
@@ -496,7 +498,7 @@ function parseAgentUpdateArgs(args) {
496
498
  throw new Error("No updates provided. Use --model / --cli-provider / --api-source / --field key=value.");
497
499
  }
498
500
  }
499
- return { agentInput, updates, promptDoc, copyProviderFrom };
501
+ return { agentInput, updates, promptDoc, copyProviderFrom, verify, verifyPrompt };
500
502
  }
501
503
  async function buildCreatedAgentRecord(args) {
502
504
  const serverUrl = args.cliArgs ? resolveServerUrl(args.cliArgs, args.env) : resolveServerUrl(args.env);