nolo-cli 0.30.0-alpha.2 → 0.30.0-alpha.4

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 (93) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-7KWY4TOT.js} +27 -27
  2. package/{action-FENWPT3C.js → action-PABHQA2V.js} +6 -6
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-QOCQY2OK.js} +5 -5
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-HQKBYZZM.js} +4 -4
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-K56FLXHX.js} +21 -21
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-4HTNF3NM.js} +32 -32
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-2AJIJEK3.js} +23 -23
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-CTO3ICU7.js} +21 -21
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-QMD3GDVM.js} +31 -31
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-VW7DXSDX.js} +31 -31
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-7P7RPLWZ.js} +18 -18
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-4ZVASIFY.js} +5 -5
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-3V5H4PZP.js} +22 -22
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-CP2FN4XQ.js} +22 -22
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-4BJ2IMW3.js} +22 -22
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-T6YXMZKL.js} +22 -22
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-TRN2EUCV.js} +22 -22
  18. package/{authCommand-H5KE7K7K.js → authCommand-RR5LAYSW.js} +5 -5
  19. package/{chunk-Q24P6TUS.js → chunk-2FNQS3NE.js} +1 -1
  20. package/{chunk-KW47OSRJ.js → chunk-2NKRHXDO.js} +45 -67
  21. package/{chunk-TJYWZ3LO.js → chunk-2NYIVLAY.js} +1 -1
  22. package/{chunk-2XM5KUNE.js → chunk-3MUUQJXW.js} +2 -2
  23. package/{chunk-MMCVBEAD.js → chunk-3NHLRJTZ.js} +25 -23
  24. package/{chunk-3RIWR23B.js → chunk-4VJZODXQ.js} +1 -1
  25. package/{chunk-GVKTKT3O.js → chunk-5GDLMDLY.js} +3 -3
  26. package/{chunk-DKRT67FG.js → chunk-7NE6SSNO.js} +2 -2
  27. package/{chunk-A4JDTA5T.js → chunk-AKF3R6YT.js} +5 -5
  28. package/{chunk-446VANPP.js → chunk-B2F42PFJ.js} +3 -3
  29. package/{chunk-HI7QZNWX.js → chunk-BGY4FZB4.js} +4 -4
  30. package/{chunk-OYK7PA5U.js → chunk-BNM4PN7V.js} +6 -6
  31. package/{chunk-IZ3CBMD5.js → chunk-BPB4MFE5.js} +3 -3
  32. package/{chunk-56IUA7RU.js → chunk-CYSB5B6O.js} +1 -1
  33. package/{chunk-VSTUQGLT.js → chunk-EIQDGAAE.js} +147 -1
  34. package/{chunk-W2YKDXT7.js → chunk-FVKMFU3A.js} +1 -1
  35. package/{chunk-HLG6GAUD.js → chunk-FXCLTQEO.js} +1 -1
  36. package/{chunk-UKC5HU2C.js → chunk-GR4ULAGB.js} +5 -5
  37. package/{chunk-BOL2D2JW.js → chunk-H42QD4SH.js} +1 -1
  38. package/{chunk-FS5TTXPS.js → chunk-H5UXA6OF.js} +3 -3
  39. package/{chunk-SWOTB2TX.js → chunk-INRBVD6S.js} +24 -24
  40. package/{chunk-CV6I4HBA.js → chunk-LWP3HB56.js} +1 -1
  41. package/{chunk-YLADSPDU.js → chunk-LZSOKNT7.js} +2 -2
  42. package/{chunk-DWQNDGO7.js → chunk-MBZE75JH.js} +1 -1
  43. package/{chunk-GAGUBI42.js → chunk-N3F3I7CF.js} +5 -5
  44. package/{chunk-THTAR67C.js → chunk-NCPP67IY.js} +25 -27
  45. package/{chunk-7CD24PU4.js → chunk-OWO7RJJP.js} +5 -5
  46. package/{chunk-YWGSCF37.js → chunk-PACNSC37.js} +1 -1
  47. package/{chunk-66O5MZYH.js → chunk-QMGLMEEF.js} +1 -1
  48. package/{chunk-ZFTCLBEX.js → chunk-REBLMWZW.js} +2 -0
  49. package/{chunk-G5JHHUAK.js → chunk-S45OJAFJ.js} +1 -1
  50. package/{chunk-DI6MXJK5.js → chunk-TNAX4WSO.js} +12 -12
  51. package/{chunk-UTQZ73QQ.js → chunk-VNQ4HVEE.js} +1 -1
  52. package/{chunk-G6VITLCZ.js → chunk-VQRRTI4N.js} +2 -2
  53. package/{chunk-KWKD3BCC.js → chunk-VTADMA7F.js} +11 -11
  54. package/{chunk-DCWBP2O7.js → chunk-W53SDRNA.js} +9 -9
  55. package/{chunk-T3Y5EMJS.js → chunk-WJD5RNVB.js} +1 -1
  56. package/{chunk-XD5NQEOH.js → chunk-WTPC3XD4.js} +1 -1
  57. package/{chunk-QLV2GKU5.js → chunk-WZ7E2MTX.js} +3 -3
  58. package/{chunk-MEUZFIAJ.js → chunk-XORE26Z4.js} +1 -1
  59. package/{chunk-SZ5CBYMZ.js → chunk-Y4C6CIWP.js} +2 -2
  60. package/{chunk-L3VQOVKK.js → chunk-ZSMZGOZ2.js} +3 -3
  61. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-3CG7CZF2.js} +10 -10
  62. package/{createDialogAction-R5MCL4RE.js → createDialogAction-OPFOUFO7.js} +11 -11
  63. package/{createPageAction-QYTG656R.js → createPageAction-Y54TU4LK.js} +10 -10
  64. package/{dbSlice-OBV7VFCF.js → dbSlice-YGWTAMGP.js} +4 -4
  65. package/{deleteFile-AC45HYSM.js → deleteFile-6BPXHM5G.js} +2 -2
  66. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-KUOPTTW7.js} +22 -22
  67. package/{dialogSlice-CFDECXEU.js → dialogSlice-ZWPGG6CW.js} +10 -10
  68. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-NWT3CF6Z.js} +21 -21
  69. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-N6Y2GBXZ.js} +22 -22
  70. package/{docReadCommands-6J7MUUX6.js → docReadCommands-WMUAO7NP.js} +21 -21
  71. package/{docStore-MZZWJM4F.js → docStore-MMY7W6LI.js} +11 -11
  72. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-BJ6RXO6N.js} +21 -21
  73. package/{getPricing-XQYSSVV6.js → getPricing-67TQVKFV.js} +2 -2
  74. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-4E2363XK.js} +10 -10
  75. package/index.js +47 -47
  76. package/{machineCommands-Z2QEWTHZ.js → machineCommands-G3XNZ4K7.js} +30 -30
  77. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-TDXCER6V.js} +30 -30
  78. package/package.json +1 -1
  79. package/{read-QK7ZRX6G.js → read-QUUPWYTV.js} +2 -2
  80. package/{readDocTool-EYDMVRBL.js → readDocTool-J6U623EK.js} +1 -1
  81. package/{readlineWorkspace-BGKPABK4.js → readlineWorkspace-XX2N2R76.js} +34 -34
  82. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-UMXNPWYC.js} +6 -6
  83. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-TJLJMHWD.js} +23 -23
  84. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-A3MC5BRN.js} +5 -5
  85. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-43JNNAH4.js} +6 -6
  86. package/{settingSlice-JKKV2T7O.js → settingSlice-XIATPDJH.js} +5 -5
  87. package/{spaceCommands-R6AEQNLG.js → spaceCommands-DFLZCOPH.js} +21 -21
  88. package/{spaceSlice-MCH7RLLP.js → spaceSlice-UL7KEYOZ.js} +10 -10
  89. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-MOIP2RPM.js} +26 -26
  90. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-K42FPQXR.js} +4 -4
  91. package/{tools-Y3UBLLYW.js → tools-NTOMB4LH.js} +18 -18
  92. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-YQBN5IMG.js} +3 -3
  93. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-IHHHSMZW.js} +10 -10
@@ -5,47 +5,47 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-3RIWR23B.js";
8
+ } from "./chunk-4VJZODXQ.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-SZ5CBYMZ.js";
13
- import "./chunk-56IUA7RU.js";
14
- import "./chunk-66O5MZYH.js";
12
+ } from "./chunk-Y4C6CIWP.js";
13
+ import "./chunk-CYSB5B6O.js";
14
+ import "./chunk-QMGLMEEF.js";
15
15
  import "./chunk-K6QEHQZ3.js";
16
- import "./chunk-UKC5HU2C.js";
16
+ import "./chunk-GR4ULAGB.js";
17
17
  import "./chunk-ZNFJWEN4.js";
18
- import "./chunk-MEUZFIAJ.js";
18
+ import "./chunk-XORE26Z4.js";
19
19
  import "./chunk-OIQPORYI.js";
20
20
  import "./chunk-T27IEBNQ.js";
21
- import "./chunk-KW47OSRJ.js";
21
+ import "./chunk-2NKRHXDO.js";
22
22
  import "./chunk-N7J63Q6C.js";
23
23
  import "./chunk-PJY5AH5A.js";
24
- import "./chunk-7CD24PU4.js";
24
+ import "./chunk-OWO7RJJP.js";
25
25
  import "./chunk-D34RI6NI.js";
26
- import "./chunk-XD5NQEOH.js";
26
+ import "./chunk-WTPC3XD4.js";
27
27
  import "./chunk-4PWB7JRR.js";
28
28
  import "./chunk-2MBTWINN.js";
29
- import "./chunk-OYK7PA5U.js";
30
- import "./chunk-FS5TTXPS.js";
29
+ import "./chunk-BNM4PN7V.js";
30
+ import "./chunk-H5UXA6OF.js";
31
31
  import "./chunk-SWYMCHM7.js";
32
32
  import "./chunk-44HACRCK.js";
33
33
  import "./chunk-DCDL3GC4.js";
34
- import "./chunk-YWGSCF37.js";
35
- import "./chunk-THTAR67C.js";
34
+ import "./chunk-PACNSC37.js";
35
+ import "./chunk-NCPP67IY.js";
36
36
  import "./chunk-OB6FBSH3.js";
37
- import "./chunk-IZ3CBMD5.js";
38
- import "./chunk-GAGUBI42.js";
37
+ import "./chunk-BPB4MFE5.js";
38
+ import "./chunk-N3F3I7CF.js";
39
39
  import "./chunk-JZPBVBIY.js";
40
40
  import "./chunk-5RGU3J7P.js";
41
41
  import "./chunk-M76ECQRD.js";
42
42
  import "./chunk-HNMXYYJR.js";
43
43
  import "./chunk-DWLEOOGR.js";
44
44
  import "./chunk-3ASDTTEI.js";
45
- import "./chunk-YLADSPDU.js";
45
+ import "./chunk-LZSOKNT7.js";
46
46
  import "./chunk-WTGCTVJG.js";
47
47
  import "./chunk-CWMSB67P.js";
48
- import "./chunk-VSTUQGLT.js";
48
+ import "./chunk-EIQDGAAE.js";
49
49
  import "./chunk-ZHXJ6M7T.js";
50
50
  import "./chunk-CAENRKNJ.js";
51
51
  import "./chunk-VF4K2QE6.js";
@@ -54,14 +54,14 @@ import {
54
54
  readOption
55
55
  } from "./chunk-A7GB5UGH.js";
56
56
  import "./chunk-OLZBQWZU.js";
57
- import "./chunk-446VANPP.js";
57
+ import "./chunk-B2F42PFJ.js";
58
58
  import "./chunk-KX6YBIHG.js";
59
- import "./chunk-A4JDTA5T.js";
60
- import "./chunk-BOL2D2JW.js";
59
+ import "./chunk-AKF3R6YT.js";
60
+ import "./chunk-H42QD4SH.js";
61
61
  import "./chunk-QSJ3HFEF.js";
62
- import "./chunk-DWQNDGO7.js";
62
+ import "./chunk-MBZE75JH.js";
63
63
  import "./chunk-TOW4E763.js";
64
- import "./chunk-ZFTCLBEX.js";
64
+ import "./chunk-REBLMWZW.js";
65
65
  import "./chunk-R5V5G73M.js";
66
66
  import "./chunk-LCBAMY2M.js";
67
67
  import "./chunk-4SN6J65J.js";
@@ -5,47 +5,47 @@ import {
5
5
  pickDefined,
6
6
  printCliError,
7
7
  resolveCliContext
8
- } from "./chunk-3RIWR23B.js";
8
+ } from "./chunk-4VJZODXQ.js";
9
9
  import {
10
10
  hasFlag,
11
11
  hasHelpArg
12
- } from "./chunk-SZ5CBYMZ.js";
13
- import "./chunk-56IUA7RU.js";
14
- import "./chunk-66O5MZYH.js";
12
+ } from "./chunk-Y4C6CIWP.js";
13
+ import "./chunk-CYSB5B6O.js";
14
+ import "./chunk-QMGLMEEF.js";
15
15
  import "./chunk-K6QEHQZ3.js";
16
- import "./chunk-UKC5HU2C.js";
16
+ import "./chunk-GR4ULAGB.js";
17
17
  import "./chunk-ZNFJWEN4.js";
18
- import "./chunk-MEUZFIAJ.js";
18
+ import "./chunk-XORE26Z4.js";
19
19
  import "./chunk-OIQPORYI.js";
20
20
  import "./chunk-T27IEBNQ.js";
21
- import "./chunk-KW47OSRJ.js";
21
+ import "./chunk-2NKRHXDO.js";
22
22
  import "./chunk-N7J63Q6C.js";
23
23
  import "./chunk-PJY5AH5A.js";
24
- import "./chunk-7CD24PU4.js";
24
+ import "./chunk-OWO7RJJP.js";
25
25
  import "./chunk-D34RI6NI.js";
26
- import "./chunk-XD5NQEOH.js";
26
+ import "./chunk-WTPC3XD4.js";
27
27
  import "./chunk-4PWB7JRR.js";
28
28
  import "./chunk-2MBTWINN.js";
29
- import "./chunk-OYK7PA5U.js";
30
- import "./chunk-FS5TTXPS.js";
29
+ import "./chunk-BNM4PN7V.js";
30
+ import "./chunk-H5UXA6OF.js";
31
31
  import "./chunk-SWYMCHM7.js";
32
32
  import "./chunk-44HACRCK.js";
33
33
  import "./chunk-DCDL3GC4.js";
34
- import "./chunk-YWGSCF37.js";
35
- import "./chunk-THTAR67C.js";
34
+ import "./chunk-PACNSC37.js";
35
+ import "./chunk-NCPP67IY.js";
36
36
  import "./chunk-OB6FBSH3.js";
37
- import "./chunk-IZ3CBMD5.js";
38
- import "./chunk-GAGUBI42.js";
37
+ import "./chunk-BPB4MFE5.js";
38
+ import "./chunk-N3F3I7CF.js";
39
39
  import "./chunk-JZPBVBIY.js";
40
40
  import "./chunk-5RGU3J7P.js";
41
41
  import "./chunk-M76ECQRD.js";
42
42
  import "./chunk-HNMXYYJR.js";
43
43
  import "./chunk-DWLEOOGR.js";
44
44
  import "./chunk-3ASDTTEI.js";
45
- import "./chunk-YLADSPDU.js";
45
+ import "./chunk-LZSOKNT7.js";
46
46
  import "./chunk-WTGCTVJG.js";
47
47
  import "./chunk-CWMSB67P.js";
48
- import "./chunk-VSTUQGLT.js";
48
+ import "./chunk-EIQDGAAE.js";
49
49
  import "./chunk-ZHXJ6M7T.js";
50
50
  import "./chunk-CAENRKNJ.js";
51
51
  import "./chunk-VF4K2QE6.js";
@@ -54,14 +54,14 @@ import {
54
54
  readOption
55
55
  } from "./chunk-A7GB5UGH.js";
56
56
  import "./chunk-OLZBQWZU.js";
57
- import "./chunk-446VANPP.js";
57
+ import "./chunk-B2F42PFJ.js";
58
58
  import "./chunk-KX6YBIHG.js";
59
- import "./chunk-A4JDTA5T.js";
60
- import "./chunk-BOL2D2JW.js";
59
+ import "./chunk-AKF3R6YT.js";
60
+ import "./chunk-H42QD4SH.js";
61
61
  import "./chunk-QSJ3HFEF.js";
62
- import "./chunk-DWQNDGO7.js";
62
+ import "./chunk-MBZE75JH.js";
63
63
  import "./chunk-TOW4E763.js";
64
- import "./chunk-ZFTCLBEX.js";
64
+ import "./chunk-REBLMWZW.js";
65
65
  import "./chunk-R5V5G73M.js";
66
66
  import "./chunk-LCBAMY2M.js";
67
67
  import "./chunk-4SN6J65J.js";
@@ -6,7 +6,7 @@ import {
6
6
  parseFlagWithOptionalValue,
7
7
  runCloudflareOAuthLogin,
8
8
  upsertEnvVariable
9
- } from "./chunk-CV6I4HBA.js";
9
+ } from "./chunk-LWP3HB56.js";
10
10
  import "./chunk-6HYVJV7B.js";
11
11
  import {
12
12
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
@@ -46,19 +46,19 @@ import {
46
46
  startCallbackServer,
47
47
  validateXAIEndpoint,
48
48
  xaiOAuthDiscovery
49
- } from "./chunk-T3Y5EMJS.js";
49
+ } from "./chunk-WJD5RNVB.js";
50
50
  import "./chunk-WJRJDX2W.js";
51
51
  import "./chunk-LM6IYQ3F.js";
52
52
  import "./chunk-JBTJAPUF.js";
53
- import "./chunk-TJYWZ3LO.js";
54
- import "./chunk-XD5NQEOH.js";
53
+ import "./chunk-2NYIVLAY.js";
54
+ import "./chunk-WTPC3XD4.js";
55
55
  import {
56
56
  createOAuthTokenStore
57
57
  } from "./chunk-JZPBVBIY.js";
58
58
  import {
59
59
  toErrorMessage
60
60
  } from "./chunk-HNMXYYJR.js";
61
- import "./chunk-VSTUQGLT.js";
61
+ import "./chunk-EIQDGAAE.js";
62
62
  import "./chunk-ZHXJ6M7T.js";
63
63
  import "./chunk-CAENRKNJ.js";
64
64
  import {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-A4JDTA5T.js";
10
+ } from "./chunk-AKF3R6YT.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-4VNS5WPM.js";
@@ -9,15 +9,15 @@ import {
9
9
  buildRuntimeGuidanceBlocks,
10
10
  fetchReferenceContents,
11
11
  resolveToolGuidedSections
12
- } from "./chunk-7CD24PU4.js";
12
+ } from "./chunk-OWO7RJJP.js";
13
13
  import {
14
14
  getAllToolRuns,
15
15
  resolveAgentRecommendedSkillNames,
16
16
  resolveAgentRequiredPackIds
17
- } from "./chunk-OYK7PA5U.js";
17
+ } from "./chunk-BNM4PN7V.js";
18
18
  import {
19
19
  getDocState
20
- } from "./chunk-FS5TTXPS.js";
20
+ } from "./chunk-H5UXA6OF.js";
21
21
  import {
22
22
  resolveToolBaseUrl
23
23
  } from "./chunk-44HACRCK.js";
@@ -26,7 +26,7 @@ import {
26
26
  getModelPricing,
27
27
  getPrices,
28
28
  hasExplicitAgentPricing
29
- } from "./chunk-YWGSCF37.js";
29
+ } from "./chunk-PACNSC37.js";
30
30
  import {
31
31
  PERSONALIZATION_DIALOG_CATEGORY,
32
32
  buildPersonalizationDialogPolicyContext,
@@ -38,11 +38,10 @@ import {
38
38
  resolveBuiltinPlatformAgentConfig,
39
39
  selectAllMsgs,
40
40
  selectCurrentTable,
41
- selectCurrentUserBalance,
42
41
  selectTableRows,
43
42
  selectViewMode,
44
43
  serializeMessageContent
45
- } from "./chunk-THTAR67C.js";
44
+ } from "./chunk-NCPP67IY.js";
46
45
  import {
47
46
  clipCompactText
48
47
  } from "./chunk-OB6FBSH3.js";
@@ -56,7 +55,7 @@ import {
56
55
  findModelConfig,
57
56
  getModelConfig,
58
57
  getProviderByModelName
59
- } from "./chunk-VSTUQGLT.js";
58
+ } from "./chunk-EIQDGAAE.js";
60
59
  import {
61
60
  PLATFORM_HOSTED_QWEN_37_FLASH_MODEL
62
61
  } from "./chunk-CAENRKNJ.js";
@@ -68,26 +67,27 @@ import {
68
67
  selectKnowledgeCaptureLevel,
69
68
  selectSpaceContextLevel,
70
69
  selectUserTonePreset
71
- } from "./chunk-446VANPP.js";
70
+ } from "./chunk-B2F42PFJ.js";
72
71
  import {
73
72
  asRecordOrEmpty
74
73
  } from "./chunk-KX6YBIHG.js";
75
74
  import {
76
75
  read,
77
76
  selectById
78
- } from "./chunk-A4JDTA5T.js";
77
+ } from "./chunk-AKF3R6YT.js";
79
78
  import {
80
79
  asTrimmedLowercaseString
81
80
  } from "./chunk-QSJ3HFEF.js";
82
81
  import {
83
82
  PUBLIC_QWEN_37_FLASH_AGENT_KEY
84
- } from "./chunk-DWQNDGO7.js";
83
+ } from "./chunk-MBZE75JH.js";
85
84
  import {
86
85
  extractCustomId
87
86
  } from "./chunk-TOW4E763.js";
88
87
  import {
88
+ selectIdentityUserBalance,
89
89
  selectIdentityUserId
90
- } from "./chunk-ZFTCLBEX.js";
90
+ } from "./chunk-REBLMWZW.js";
91
91
  import {
92
92
  isRecord
93
93
  } from "./chunk-KUG52IAP.js";
@@ -858,11 +858,6 @@ var buildEditingContextSummary = (state, runtimeOptions) => {
858
858
  };
859
859
 
860
860
  // packages/ai/llm/agentCapabilities.ts
861
- var isCustomAgent = (agent) => {
862
- const apiSource = agent.apiSource?.toLowerCase();
863
- const provider = agent.provider?.toLowerCase();
864
- return apiSource === "custom" || provider === "custom";
865
- };
866
861
  var ANTIGRAVITY_EFFORT_SUFFIXES = [
867
862
  "-tiered",
868
863
  "-extra-low",
@@ -893,21 +888,21 @@ var lookupKnownModelVision = (provider, model) => {
893
888
  const strippedPreview = stripPreviewSuffix(model);
894
889
  if (strippedPreview !== model) candidates.push(strippedPreview);
895
890
  for (const candidate of candidates) {
896
- if (provider) {
891
+ if (provider && provider !== "custom") {
897
892
  const direct = findModelConfig(provider, candidate);
898
- if (direct) return direct.hasVision;
893
+ if (direct && typeof direct.hasVision === "boolean") return direct.hasVision;
899
894
  }
900
895
  const detected = getProviderByModelName(candidate);
901
896
  if (detected) {
902
897
  const found = findModelConfig(detected, candidate)?.hasVision;
903
898
  if (found !== void 0) return found;
904
899
  }
905
- if (!provider && candidate.includes("/")) {
900
+ if (candidate.includes("/")) {
906
901
  const slash = candidate.indexOf("/");
907
902
  const modelProvider = candidate.slice(0, slash).toLowerCase();
908
903
  const modelName = candidate.slice(slash + 1);
909
904
  const nested = findModelConfig(modelProvider, modelName);
910
- if (nested) return nested.hasVision;
905
+ if (nested && typeof nested.hasVision === "boolean") return nested.hasVision;
911
906
  }
912
907
  }
913
908
  return void 0;
@@ -916,18 +911,13 @@ var resolveAgentImageInputSupport = (agent) => {
916
911
  if (!agent) return true;
917
912
  const provider = asTrimmedLowercaseString(agent.provider) || null;
918
913
  const model = asOptionalTrimmedString(agent.model) ?? "";
919
- const custom = isCustomAgent(agent);
920
914
  const catalogHasVision = lookupKnownModelVision(
921
- custom ? null : provider,
915
+ provider,
922
916
  model
923
917
  );
924
- if (!custom && catalogHasVision !== void 0) {
918
+ if (catalogHasVision !== void 0) {
925
919
  return catalogHasVision;
926
920
  }
927
- if (custom) {
928
- if (catalogHasVision === true) return true;
929
- return true;
930
- }
931
921
  if (typeof agent.hasVision === "boolean") {
932
922
  return agent.hasVision;
933
923
  }
@@ -1219,7 +1209,7 @@ ${content}
1219
1209
  return output;
1220
1210
  };
1221
1211
  var validateAccessAndBalance = (agentConfig, state) => {
1222
- const userBalance = selectCurrentUserBalance(state);
1212
+ const userBalance = selectIdentityUserBalance(state);
1223
1213
  const currentUserId = selectIdentityUserId(state);
1224
1214
  const isCustomApi = agentConfig.apiSource === "custom";
1225
1215
  const isCliApi = agentConfig.apiSource === "cli";
@@ -2887,13 +2877,35 @@ async function runLocalAgentTurn(input) {
2887
2877
  input: input.input,
2888
2878
  contextReferenceResolver: input.adapter.host === "cli" ? input.contextReferenceResolver : void 0
2889
2879
  });
2890
- const messages = builtMessages.messages;
2880
+ let messages = builtMessages.messages;
2891
2881
  const supportsImages = resolveAgentImageInputSupport({
2892
2882
  apiSource: agentConfig.apiSource,
2893
2883
  provider: agentConfig.provider,
2894
2884
  model: agentConfig.model,
2895
2885
  hasVision: agentConfig.hasVision
2896
2886
  });
2887
+ if (!supportsImages && hasImageInRuntimeMessages(messages)) {
2888
+ const imageUrls = extractImageUrlsFromMessages(messages);
2889
+ const preprocessed = await preprocessImagesForTextOnlyAgent(
2890
+ messages,
2891
+ (urls) => describeImageWithLocalProvider(input.adapter, urls)
2892
+ );
2893
+ if (preprocessed !== messages) {
2894
+ messages = preprocessed;
2895
+ emitLoopEvent(input, {
2896
+ kind: "image-preprocessed",
2897
+ atMs: Date.now(),
2898
+ imageCount: imageUrls.length
2899
+ });
2900
+ } else {
2901
+ messages = filterImagePartsFromMessages(messages, false);
2902
+ emitLoopEvent(input, {
2903
+ kind: "image-downgraded",
2904
+ reason: "no-vision",
2905
+ atMs: Date.now()
2906
+ });
2907
+ }
2908
+ }
2897
2909
  const userInputText = extractUserInputText(input.input);
2898
2910
  let toolCallCount = 0;
2899
2911
  let result;
@@ -2904,7 +2916,6 @@ async function runLocalAgentTurn(input) {
2904
2916
  let round = 0;
2905
2917
  let emptyAssistantRepairPending = false;
2906
2918
  let emptyAssistantRepairUsed = false;
2907
- let imageDowngradeNotified = false;
2908
2919
  let skipFinalAppend = false;
2909
2920
  let partialContent = "";
2910
2921
  try {
@@ -2913,43 +2924,10 @@ async function runLocalAgentTurn(input) {
2913
2924
  partialContent = "";
2914
2925
  throwIfAborted(input);
2915
2926
  const preparedMessages = prepareMessagesForProviderCall(messages);
2916
- let baseRequestMessages;
2917
- if (!supportsImages && hasImageInRuntimeMessages(preparedMessages.messages)) {
2918
- const imageUrls = extractImageUrlsFromMessages(preparedMessages.messages);
2919
- const preprocessed = await preprocessImagesForTextOnlyAgent(
2920
- preparedMessages.messages,
2921
- (urls) => describeImageWithLocalProvider(input.adapter, urls)
2922
- );
2923
- if (preprocessed !== preparedMessages.messages) {
2924
- baseRequestMessages = preprocessed;
2925
- if (!imageDowngradeNotified) {
2926
- imageDowngradeNotified = true;
2927
- emitLoopEvent(input, {
2928
- kind: "image-preprocessed",
2929
- atMs: Date.now(),
2930
- imageCount: imageUrls.length
2931
- });
2932
- }
2933
- } else {
2934
- baseRequestMessages = filterImagePartsFromMessages(
2935
- preparedMessages.messages,
2936
- supportsImages
2937
- );
2938
- if (!imageDowngradeNotified) {
2939
- imageDowngradeNotified = true;
2940
- emitLoopEvent(input, {
2941
- kind: "image-downgraded",
2942
- reason: "no-vision",
2943
- atMs: Date.now()
2944
- });
2945
- }
2946
- }
2947
- } else {
2948
- baseRequestMessages = filterImagePartsFromMessages(
2949
- preparedMessages.messages,
2950
- supportsImages
2951
- );
2952
- }
2927
+ const baseRequestMessages = filterImagePartsFromMessages(
2928
+ preparedMessages.messages,
2929
+ supportsImages
2930
+ );
2953
2931
  const requestMessages = emptyAssistantRepairPending ? [...baseRequestMessages, { role: "user", content: EMPTY_ASSISTANT_REPAIR_PROMPT }] : baseRequestMessages;
2954
2932
  const contextMetrics = {
2955
2933
  ...preparedMessages.metrics,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-XD5NQEOH.js";
3
+ } from "./chunk-WTPC3XD4.js";
4
4
  import {
5
5
  toErrorMessage
6
6
  } from "./chunk-HNMXYYJR.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveReferenceAssets
3
- } from "./chunk-DCWBP2O7.js";
3
+ } from "./chunk-W53SDRNA.js";
4
4
  import {
5
5
  fetchReferenceContents
6
- } from "./chunk-7CD24PU4.js";
6
+ } from "./chunk-OWO7RJJP.js";
7
7
 
8
8
  // packages/ai/agent/fetchAgentContexts.ts
9
9
  async function fetchAgentContexts(references, dispatch) {
@@ -4,7 +4,7 @@ import {
4
4
  refreshAntigravityOAuthToken,
5
5
  refreshOpenAiCodexToken,
6
6
  xaiRefresh
7
- } from "./chunk-T3Y5EMJS.js";
7
+ } from "./chunk-WJD5RNVB.js";
8
8
  import {
9
9
  ackRunRecord,
10
10
  checkStaleRun,
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-WJRJDX2W.js";
27
27
  import {
28
28
  buildLocalAgentLookupKeys
29
- } from "./chunk-66O5MZYH.js";
29
+ } from "./chunk-QMGLMEEF.js";
30
30
  import {
31
31
  LOCAL_CODEX_AGENT_ID,
32
32
  LOCAL_CODEX_AGENT_KEY,
@@ -53,7 +53,7 @@ import {
53
53
  readOpenAiCompatibleSseCompletion,
54
54
  resolveAgentNextAvailableAt,
55
55
  resolveOpenAiCompatibleProviderConfig
56
- } from "./chunk-UKC5HU2C.js";
56
+ } from "./chunk-GR4ULAGB.js";
57
57
  import {
58
58
  buildPlatformChatCompletionRequest,
59
59
  canUsePlatformChatProvider,
@@ -63,7 +63,7 @@ import {
63
63
  readSseDataValues,
64
64
  resolvePlatformChatProviderConfig,
65
65
  shouldUsePlatformChatProvider
66
- } from "./chunk-MEUZFIAJ.js";
66
+ } from "./chunk-XORE26Z4.js";
67
67
  import {
68
68
  buildCliPrompt
69
69
  } from "./chunk-ATNTHIZI.js";
@@ -73,25 +73,25 @@ import {
73
73
  import {
74
74
  inlineImageUrlsForCustomProvider,
75
75
  prepareTools
76
- } from "./chunk-W2YKDXT7.js";
76
+ } from "./chunk-FVKMFU3A.js";
77
77
  import {
78
78
  inferCaptureIntent,
79
79
  resolveHistoricalToolContentCap,
80
80
  summarizeToolArguments
81
- } from "./chunk-KW47OSRJ.js";
81
+ } from "./chunk-2NKRHXDO.js";
82
82
  import {
83
83
  getAntigravityUserAgent,
84
84
  isAntigravityOAuthAgent,
85
85
  readAntigravityProjectId,
86
86
  resolveAntigravityCloudCodeBaseUrl
87
- } from "./chunk-TJYWZ3LO.js";
87
+ } from "./chunk-2NYIVLAY.js";
88
88
  import {
89
89
  convertMessagesToResponsesInput,
90
90
  toResponsesTools
91
91
  } from "./chunk-D34RI6NI.js";
92
92
  import {
93
93
  resolvePlatformAuthToken
94
- } from "./chunk-XD5NQEOH.js";
94
+ } from "./chunk-WTPC3XD4.js";
95
95
  import {
96
96
  buildDialogFallbackTitleFromUserInput,
97
97
  normalizeDialogTitle
@@ -103,7 +103,7 @@ import {
103
103
  readXhsProfileFunctionSchema,
104
104
  rememberMemoryFunctionSchema,
105
105
  setTodoListFunc
106
- } from "./chunk-SWOTB2TX.js";
106
+ } from "./chunk-INRBVD6S.js";
107
107
  import {
108
108
  createDrainExhaustedResponse,
109
109
  isCoreDrainingBody,
@@ -127,13 +127,13 @@ import {
127
127
  parseNoloWorkspaceToolArguments,
128
128
  resolveAgentRequiredPackIds,
129
129
  resolveRuntimeToolSurfaceForAgent
130
- } from "./chunk-OYK7PA5U.js";
130
+ } from "./chunk-BNM4PN7V.js";
131
131
  import {
132
132
  applyTokenUsageToDayStats,
133
133
  prepareTokenUsageData,
134
134
  resolveBuiltinPlatformAgentConfig,
135
135
  runKeyed
136
- } from "./chunk-THTAR67C.js";
136
+ } from "./chunk-NCPP67IY.js";
137
137
  import {
138
138
  BUILTIN_TITLE_LLM_CONFIG,
139
139
  clipCompactText
@@ -144,7 +144,7 @@ import {
144
144
  resolveCurrentRunRuntimeToolPolicy,
145
145
  resolveLocalWorkspaceExecutorOptionsFromPolicy,
146
146
  resolveRequestedRuntimeToolNames
147
- } from "./chunk-GAGUBI42.js";
147
+ } from "./chunk-N3F3I7CF.js";
148
148
  import {
149
149
  createOAuthTokenStore,
150
150
  isTokenExpired,
@@ -162,7 +162,7 @@ import {
162
162
  } from "./chunk-DWLEOOGR.js";
163
163
  import {
164
164
  isAdaptiveThinkingModelId
165
- } from "./chunk-VSTUQGLT.js";
165
+ } from "./chunk-EIQDGAAE.js";
166
166
  import {
167
167
  isCompiledBinary,
168
168
  parseUserIdFromAuthToken
@@ -175,7 +175,7 @@ import {
175
175
  } from "./chunk-QSJ3HFEF.js";
176
176
  import {
177
177
  isSystemBuiltinTrustedAgentKey
178
- } from "./chunk-DWQNDGO7.js";
178
+ } from "./chunk-MBZE75JH.js";
179
179
  import {
180
180
  NOLO_CLUSTER_SERVERS
181
181
  } from "./chunk-LCBAMY2M.js";
@@ -3091,7 +3091,7 @@ function extractInlineDataParts(content) {
3091
3091
  function convertOpenAiMessagesToGemini(messages, options) {
3092
3092
  const contents = [];
3093
3093
  const systemTexts = [];
3094
- const toolNamesById = /* @__PURE__ */ new Map();
3094
+ let toolCallIndex = 0;
3095
3095
  let pendingFunctionCalls = [];
3096
3096
  const pushOrMergeContent = (role, parts) => {
3097
3097
  if (parts.length === 0) return;
@@ -3105,8 +3105,12 @@ function convertOpenAiMessagesToGemini(messages, options) {
3105
3105
  const flushPendingFunctionCalls = () => {
3106
3106
  if (pendingFunctionCalls.length === 0) return;
3107
3107
  const dummyResponses = pendingFunctionCalls.map(
3108
- ({ name }) => ({
3109
- functionResponse: { name, response: { output: "{}" } }
3108
+ ({ name, id }) => ({
3109
+ functionResponse: {
3110
+ name,
3111
+ response: { output: "{}" },
3112
+ ...id ? { id } : {}
3113
+ }
3110
3114
  })
3111
3115
  );
3112
3116
  pendingFunctionCalls = [];
@@ -3144,16 +3148,14 @@ function convertOpenAiMessagesToGemini(messages, options) {
3144
3148
  content
3145
3149
  );
3146
3150
  const toolCalls = "tool_calls" in raw && Array.isArray(raw.tool_calls) ? raw.tool_calls ?? [] : [];
3147
- if (text) pushOrMergeContent("model", [{ text }]);
3148
- if (toolCalls.length > 0 && contents.length > 0 && contents[contents.length - 1]?.role !== "user") {
3149
- contents.push({ role: "user", parts: [{ text: "" }] });
3150
- }
3151
3151
  const parts = [];
3152
+ if (text) {
3153
+ parts.push({ text });
3154
+ }
3152
3155
  for (const call of toolCalls) {
3153
3156
  const name = call?.function?.name?.trim();
3154
3157
  if (!name) continue;
3155
- const id = call.id?.trim() || `${name}_${toolNamesById.size}`;
3156
- toolNamesById.set(id, name);
3158
+ const id = call.id?.trim() || `${name}_${toolCallIndex++}`;
3157
3159
  pendingFunctionCalls.push({ name, id });
3158
3160
  const realSignature = typeof call.thought_signature === "string" && call.thought_signature ? call.thought_signature : void 0;
3159
3161
  const isFirstFunctionCallPart = !parts.some(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-SZ5CBYMZ.js";
3
+ } from "./chunk-Y4C6CIWP.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-HLG6GAUD.js";
4
+ } from "./chunk-FXCLTQEO.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-56IUA7RU.js";
7
+ } from "./chunk-CYSB5B6O.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
- } from "./chunk-UTQZ73QQ.js";
10
+ } from "./chunk-VNQ4HVEE.js";
11
11
  import {
12
12
  PUBLIC_AGENT_KEY_PREFIX,
13
13
  isOwnedAgentKey,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-446VANPP.js";
4
+ } from "./chunk-B2F42PFJ.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest,
8
8
  selectIdentityUser,
9
9
  selectIdentityUserId
10
- } from "./chunk-ZFTCLBEX.js";
10
+ } from "./chunk-REBLMWZW.js";
11
11
  import {
12
12
  normalizeTimeFields
13
13
  } from "./chunk-R5V5G73M.js";