nolo-cli 0.156.0-alpha.3 → 0.156.0

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-5WS2PA62.js → _executeModel-3FMHTHSS.js} +55 -55
  2. package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
  3. package/{action-ZJYUBXFC.js → action-GPPJC5TI.js} +5 -5
  4. package/{addContentAction-TVHB4526.js → addContentAction-XJQEJ4XW.js} +8 -8
  5. package/{addDialogAgentAction-FDPBU6K6.js → addDialogAgentAction-5WZX5CAY.js} +7 -7
  6. package/{agentDeleteCommand-MDC7OS3I.js → agentDeleteCommand-VRHLJZKX.js} +75 -76
  7. package/{agentEmailCommands-WN4EOPKQ.js → agentEmailCommands-YGBQXOL3.js} +78 -79
  8. package/{agentListCommands-G36AMSBR.js → agentListCommands-GOCGOQUB.js} +36 -36
  9. package/{agentMachineCommands-63GXO27A.js → agentMachineCommands-FBAWZYHI.js} +35 -32
  10. package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-CXBHNONN.js} +5 -5
  11. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  12. package/{agentRecordCommands-X4WJRHDW.js → agentRecordCommands-KAK2G56H.js} +72 -73
  13. package/{agentRunCommand-4YMIVVHF.js → agentRunCommand-62P3AGJA.js} +75 -75
  14. package/{agentRunControl-2C5GM3BW.js → agentRunControl-XBSNHHZE.js} +7 -7
  15. package/{agentRuntimeLocal-Q7ZOMZC7.js → agentRuntimeLocal-J6I63NZC.js} +21 -19
  16. package/{agentSlice-E3XS5FTQ.js → agentSlice-IZFU3WWH.js} +8 -8
  17. package/{appDeleteCommands-MMWT54BR.js → appDeleteCommands-KKLAK2UR.js} +31 -29
  18. package/{appDeployCommands-OIFXVDOF.js → appDeployCommands-PXWK4FAX.js} +31 -29
  19. package/{appDeployStatusCommands-OTXMSDFB.js → appDeployStatusCommands-3NGWDZTX.js} +31 -29
  20. package/{appGetCommands-JPY36ANL.js → appGetCommands-APWYPEO3.js} +31 -29
  21. package/{appListCommands-IHJGN36O.js → appListCommands-OP7IRALO.js} +31 -29
  22. package/{authCommand-J3XILHWW.js → authCommand-3Z52KJID.js} +22 -302
  23. package/{authCommands-77CHYBGF.js → authCommands-QOCKVPX3.js} +5 -5
  24. package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  25. package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
  26. package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
  27. package/{chunk-H4KACZMG.js → chunk-2QQ7D3P5.js} +271 -138
  28. package/{chunk-C5VPAHIU.js → chunk-32ZKZET7.js} +1 -1
  29. package/{chunk-FPWT3RH2.js → chunk-36IWXF25.js} +22 -22
  30. package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
  31. package/{chunk-3XZKV7QQ.js → chunk-3L5MSPWX.js} +1 -1
  32. package/{chunk-QLQ573SU.js → chunk-3M52COK5.js} +120 -0
  33. package/{chunk-Z6KQDSZW.js → chunk-43OFVLWJ.js} +6 -6
  34. package/{chunk-7A4LJCDR.js → chunk-4FDDVVCE.js} +5 -5
  35. package/{chunk-TJ2VPCBE.js → chunk-4JCAW7TO.js} +2 -2
  36. package/{chunk-6TF64IF2.js → chunk-4L4K6YR7.js} +16 -2
  37. package/{chunk-ZG73GDYU.js → chunk-5E5VB7PS.js} +332 -59
  38. package/{chunk-HKT6QXP3.js → chunk-5IKRTRRR.js} +5 -5
  39. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  40. package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
  41. package/{chunk-RUNKPFM5.js → chunk-6QIBWOPT.js} +12 -8
  42. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  43. package/{chunk-7GC3EKUG.js → chunk-7PDNSQZC.js} +3 -3
  44. package/{chunk-DW7MGLMG.js → chunk-7YQQXP42.js} +35 -207
  45. package/{chunk-WZ6OU4NX.js → chunk-BAWAKW7X.js} +2 -2
  46. package/{chunk-UUPR3TD7.js → chunk-BL4HFN6L.js} +2 -4
  47. package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
  48. package/{chunk-HP6O6LTV.js → chunk-CDLP56BS.js} +9 -9
  49. package/{chunk-4LRK5Q2Z.js → chunk-CI6YDDL2.js} +18 -17
  50. package/{chunk-5MM7NNO6.js → chunk-CNWKLQRL.js} +8 -3
  51. package/{chunk-UTIMX333.js → chunk-DJ2BOPJY.js} +1 -1
  52. package/{chunk-36OMEXXR.js → chunk-DLV3H464.js} +8 -8
  53. package/{chunk-X5SUT4CN.js → chunk-EDJND3FK.js} +6 -6
  54. package/{chunk-CE7PIHQD.js → chunk-ESMZW5PE.js} +3 -3
  55. package/{chunk-PSJWPSKS.js → chunk-EWO77ZGF.js} +9 -43
  56. package/{chunk-ZWG3C7VI.js → chunk-F3SOW2EU.js} +81 -1
  57. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  58. package/chunk-FTHF2P2I.js +2685 -0
  59. package/{chunk-7KYVUFDG.js → chunk-G3VYRPTV.js} +5 -267
  60. package/{chunk-NQ64VVAI.js → chunk-GXZZOTDM.js} +826 -689
  61. package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
  62. package/{chunk-6KVZAZJA.js → chunk-HRZW3SQN.js} +7 -7
  63. package/{chunk-B2EGWZJG.js → chunk-I7S63QUU.js} +1 -1
  64. package/{chunk-ROPSATAB.js → chunk-IF7V3CBU.js} +1 -1
  65. package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
  66. package/{chunk-YBNHPX4S.js → chunk-IW64YHXL.js} +155 -31
  67. package/{chunk-VSOWPETY.js → chunk-JIAZK434.js} +10 -10
  68. package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
  69. package/{chunk-TZTWMGE3.js → chunk-JWEXJ573.js} +3 -3
  70. package/{chunk-OH2M7WEU.js → chunk-K3N2DWLT.js} +3 -3
  71. package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
  72. package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
  73. package/{chunk-EM3YOZJ4.js → chunk-L2JMH4I5.js} +3 -3
  74. package/{chunk-D4OWHT5Y.js → chunk-MAYW6V3E.js} +2 -2
  75. package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
  76. package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
  77. package/{chunk-6MPAEODB.js → chunk-NHEWV5FD.js} +17 -3
  78. package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
  79. package/{chunk-WP6RXNE6.js → chunk-PNACBSRF.js} +134 -126
  80. package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
  81. package/{chunk-SKPPKHD3.js → chunk-Q5LVXPGT.js} +2 -2
  82. package/{chunk-2MTE2PEH.js → chunk-QA2C5NKI.js} +5 -739
  83. package/{chunk-XFKZ3MCV.js → chunk-QFL42TMV.js} +251 -77
  84. package/{chunk-L6EQV5OC.js → chunk-QXZH5UDF.js} +3 -3
  85. package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
  86. package/{chunk-4Z245KOA.js → chunk-SH3XD4E2.js} +8 -4
  87. package/{chunk-MM3662RS.js → chunk-SNAWGDXT.js} +263 -4
  88. package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
  89. package/chunk-TT644UJD.js +188 -0
  90. package/{chunk-IYBIRCQV.js → chunk-U34KT53V.js} +29 -11
  91. package/{chunk-KOB75UNU.js → chunk-U5U4WAFS.js} +19 -3
  92. package/{chunk-ANJTRG52.js → chunk-ULQAD7ZY.js} +18 -43
  93. package/{chunk-FDT27L7S.js → chunk-UUPXTEZA.js} +19 -17
  94. package/{chunk-QDA4Y5O6.js → chunk-V67W64OY.js} +21 -17
  95. package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
  96. package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
  97. package/{chunk-G47IPDOK.js → chunk-W7FGZRLK.js} +1 -1
  98. package/{chunk-7BSQK2UC.js → chunk-WRCZXJ4N.js} +2 -2
  99. package/{chunk-KX6LPG7W.js → chunk-WYJTNSVL.js} +9 -9
  100. package/chunk-Y5GCAMGP.js +9 -0
  101. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  102. package/{chunk-SCJD2PNK.js → chunk-YPG7TUQD.js} +3 -3
  103. package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
  104. package/{chunk-TYND6RDQ.js → chunk-ZZDVBZOP.js} +74 -3
  105. package/{commandRegistry-NE2JOCQT.js → commandRegistry-2DDDET7G.js} +88 -96
  106. package/{contentThunks-B3FRQGP7.js → contentThunks-5DNEHJ2Z.js} +21 -21
  107. package/{createAgentAutomationAction-T2YFJ6MY.js → createAgentAutomationAction-4SUS2EFX.js} +21 -21
  108. package/{createDialogAction-2NFGFBXW.js → createDialogAction-JSFXX6JE.js} +25 -25
  109. package/{createPageAction-LDAVZDN7.js → createPageAction-37HHOXZ2.js} +24 -25
  110. package/{dbSlice-5QGKMQLO.js → dbSlice-6PVPY44C.js} +7 -7
  111. package/{deleteFile-EW6QNRRT.js → deleteFile-YM6NDPAR.js} +5 -5
  112. package/{dialogCommands-H3K7PTF6.js → dialogCommands-ZJRMCP4S.js} +35 -32
  113. package/{dialogSlice-64S3J6CP.js → dialogSlice-2Z66AWEW.js} +20 -20
  114. package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
  115. package/{docCreateCommands-KP64KMVL.js → docCreateCommands-KQHQNLRX.js} +32 -30
  116. package/{docDeleteCommands-C3F4SZSR.js → docDeleteCommands-O3DWFX2W.js} +33 -31
  117. package/{docReadCommands-7H6BDOUR.js → docReadCommands-2U2BUONC.js} +32 -30
  118. package/{docStore-NIP7OO4I.js → docStore-XMTUF3GX.js} +8 -8
  119. package/{docUpdateCommands-JDW4BRBH.js → docUpdateCommands-MF3C52XI.js} +32 -30
  120. package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
  121. package/{handleSendMessageAction-TOKA7ED7.js → handleSendMessageAction-4VFVXTF2.js} +43 -39
  122. package/index.js +8 -8
  123. package/{localRuntimeAdapter-OPPDLUG3.js → localRuntimeAdapter-KKIVRYVN.js} +70 -69
  124. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  125. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  126. package/{machineCommands-OPLQR7XY.js → machineCommands-UHQVCOD3.js} +80 -79
  127. package/{machineWsRunDispatch-PTS42QDK.js → machineWsRunDispatch-TX4X7TOJ.js} +70 -71
  128. package/{memberThunks-KRV5YXOB.js → memberThunks-AZINUM4S.js} +10 -10
  129. package/package.json +6 -2
  130. package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
  131. package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-PKUOHQJT.js} +5 -5
  132. package/{providerRegistry-7IS43D3X.js → providerRegistry-HNQLIFN2.js} +5 -5
  133. package/{read-5KAZHHDM.js → read-7JPIWRBQ.js} +5 -5
  134. package/{readDocTool-5QO34OSX.js → readDocTool-AAQTB2Y3.js} +1 -1
  135. package/{readlineWorkspace-3XC7SEMZ.js → readlineWorkspace-BFVB2ON5.js} +375 -200
  136. package/{removeDialogAgentAction-6X63HMI3.js → removeDialogAgentAction-RMVRILLK.js} +9 -9
  137. package/{runAgentClientLoop-5QIGEALK.js → runAgentClientLoop-HHLHNMBE.js} +59 -54
  138. package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
  139. package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
  140. package/{setDialogExtraReferencesAction-4MAYKKYW.js → setDialogExtraReferencesAction-L3V7JTMG.js} +8 -8
  141. package/{setPrimaryDialogAgentAction-EGBAMREH.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +9 -9
  142. package/settingThunks-N6XFWPOU.js +923 -0
  143. package/{spaceCommands-JQN7D4FE.js → spaceCommands-NDPGHDMD.js} +29 -27
  144. package/{streamAgentChatTurn-456DWXNY.js → streamAgentChatTurn-KNPOLET7.js} +154 -95
  145. package/{switchDialogAgentAction-YBKTD6DO.js → switchDialogAgentAction-ZJ5CGU7J.js} +7 -7
  146. package/{tableCommands-U3QDY4L6.js → tableCommands-IVC5S7Y3.js} +11 -11
  147. package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
  148. package/{tools-IWNXKK4Y.js → tools-ULA7XJQT.js} +43 -44
  149. package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-FESHBDTT.js} +7 -7
  150. package/{updateCommands-NQXAGFM7.js → updateCommands-FJHGWD3Q.js} +5 -3
  151. package/{updateDialogTitleAction-SX53FZWO.js → updateDialogTitleAction-VUIVBDAS.js} +21 -21
  152. package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
  153. package/chunk-IA7TRNNR.js +0 -11
  154. package/chunk-UKZX3NHN.js +0 -48
  155. package/chunk-VAZHH6FO.js +0 -7012
  156. package/chunk-W4S6OTSC.js +0 -35
  157. package/clipboardy-GCO3GT3I.js +0 -11793
  158. package/settingThunks-FTDRZNSJ.js +0 -1371
  159. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  160. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  161. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  162. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  163. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  164. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-NQ64VVAI.js";
4
+ } from "./chunk-GXZZOTDM.js";
5
5
  import {
6
6
  t
7
- } from "./chunk-SW4S4XYB.js";
7
+ } from "./chunk-2AB2HA4M.js";
8
8
  import {
9
9
  clipMultilineText
10
- } from "./chunk-RUNKPFM5.js";
10
+ } from "./chunk-6QIBWOPT.js";
11
11
  import {
12
12
  runLocalAgentTurn
13
- } from "./chunk-ZG73GDYU.js";
13
+ } from "./chunk-5E5VB7PS.js";
14
14
  import {
15
15
  applyToolSurfaceConstraints
16
- } from "./chunk-QLQ573SU.js";
16
+ } from "./chunk-3M52COK5.js";
17
17
  import {
18
18
  resolveLocalRuntimeEnvFromPolicy
19
19
  } from "./chunk-LIQJTQRN.js";
@@ -29,6 +29,16 @@ import {
29
29
  import {
30
30
  asOptionalPositiveFiniteNumber
31
31
  } from "./chunk-U6VC4MU4.js";
32
+ import {
33
+ parseUserIdFromAuthToken
34
+ } from "./chunk-A7GB5UGH.js";
35
+ import {
36
+ DEFAULT_NOLO_SERVER_URL
37
+ } from "./chunk-OLZBQWZU.js";
38
+ import {
39
+ readPipeText,
40
+ spawnProcess
41
+ } from "./chunk-Y6ROFCZO.js";
32
42
  import {
33
43
  isRecord
34
44
  } from "./chunk-KUG52IAP.js";
@@ -38,19 +48,9 @@ import {
38
48
  import {
39
49
  toErrorMessage
40
50
  } from "./chunk-HNMXYYJR.js";
41
- import {
42
- parseUserIdFromAuthToken
43
- } from "./chunk-A7GB5UGH.js";
44
- import {
45
- DEFAULT_NOLO_SERVER_URL
46
- } from "./chunk-OLZBQWZU.js";
47
51
  import {
48
52
  asOptionalTrimmedString
49
53
  } from "./chunk-G3SUCT4W.js";
50
- import {
51
- readPipeText,
52
- spawnProcess
53
- } from "./chunk-Y6ROFCZO.js";
54
54
 
55
55
  // packages/ai/agent/machineRunPermissions.ts
56
56
  var DEFAULT_POLICY = {
@@ -672,8 +672,9 @@ ${Date.now()}
672
672
  async function runOracleGenerateImage(args) {
673
673
  const proc = args.spawn({
674
674
  cmd: [
675
- "npx",
676
- "-y",
675
+ "bun",
676
+ "x",
677
+ "--bun",
677
678
  "@steipete/oracle",
678
679
  "--engine",
679
680
  "browser",
@@ -1,6 +1,3 @@
1
- import {
2
- escapeStringRegexp
3
- } from "./chunk-IA7TRNNR.js";
4
1
  import {
5
2
  asTrimmedString
6
3
  } from "./chunk-3EUW3WEO.js";
@@ -7141,6 +7138,14 @@ function ccount(value, character) {
7141
7138
  function ok() {
7142
7139
  }
7143
7140
 
7141
+ // node_modules/escape-string-regexp/index.js
7142
+ function escapeStringRegexp(string3) {
7143
+ if (typeof string3 !== "string") {
7144
+ throw new TypeError("Expected a string");
7145
+ }
7146
+ return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
7147
+ }
7148
+
7144
7149
  // node_modules/unist-util-is/lib/index.js
7145
7150
  var convert = (
7146
7151
  // Note: overloads in JSDoc can’t yet use different `@template`s.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-HKT6QXP3.js";
4
+ } from "./chunk-5IKRTRRR.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -14,21 +14,15 @@ import {
14
14
  import {
15
15
  asTrimmedNonEmptyStringArray
16
16
  } from "./chunk-I42VC5KR.js";
17
- import {
18
- asTrimmedString
19
- } from "./chunk-3EUW3WEO.js";
20
17
  import {
21
18
  getDefaultCliLocalRuntimeDb
22
- } from "./chunk-FY4SDK2E.js";
19
+ } from "./chunk-FDLDMJTM.js";
23
20
  import {
24
21
  resolveAuthTokenFromEnv
25
22
  } from "./chunk-A7GB5UGH.js";
26
23
  import {
27
24
  DEFAULT_NOLO_SERVER_URL
28
25
  } from "./chunk-OLZBQWZU.js";
29
- import {
30
- normalizeServerOrigin
31
- } from "./chunk-CF7PE763.js";
32
26
  import {
33
27
  buildCliRuntimeEnv,
34
28
  clearProfileAuthToken,
@@ -37,7 +31,13 @@ import {
37
31
  getProfileTokens,
38
32
  loadProfileConfig,
39
33
  saveDefaultProfile
40
- } from "./chunk-TNIX77YM.js";
34
+ } from "./chunk-R5GO3YZP.js";
35
+ import {
36
+ asTrimmedString
37
+ } from "./chunk-3EUW3WEO.js";
38
+ import {
39
+ normalizeServerOrigin
40
+ } from "./chunk-CF7PE763.js";
41
41
 
42
42
  // packages/cli/authCommands.ts
43
43
  import { createInterface } from "node:readline/promises";
@@ -2,14 +2,14 @@ import {
2
2
  patch,
3
3
  remove,
4
4
  write
5
- } from "./chunk-HP6O6LTV.js";
5
+ } from "./chunk-CDLP56BS.js";
6
6
  import {
7
7
  getRuntimeServerContext
8
- } from "./chunk-Z6KQDSZW.js";
8
+ } from "./chunk-43OFVLWJ.js";
9
9
  import {
10
10
  asyncThunkCreator,
11
11
  buildCreateSlice
12
- } from "./chunk-7BSQK2UC.js";
12
+ } from "./chunk-WRCZXJ4N.js";
13
13
  import {
14
14
  applyAgentSecretMigrationUpdates,
15
15
  migrateAgentSecrets,
@@ -308,7 +308,7 @@ var slice = createSliceWithThunks({
308
308
  const overrides = {};
309
309
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
310
310
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
311
- const { _executeModel } = await import("./_executeModel-5WS2PA62.js");
311
+ const { _executeModel } = await import("./_executeModel-3FMHTHSS.js");
312
312
  return _executeModel(
313
313
  {
314
314
  isStreaming: args.isStreaming ?? false,
@@ -329,7 +329,7 @@ var slice = createSliceWithThunks({
329
329
  * - 循环直到无工具调用或触发其他运行时停止条件
330
330
  */
331
331
  runAgent: create.asyncThunk(async (args, thunkApi) => {
332
- const { runAgentClientLoop } = await import("./runAgentClientLoop-5QIGEALK.js");
332
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-HHLHNMBE.js");
333
333
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
334
334
  {
335
335
  agentKey: args.agentKey,
@@ -345,7 +345,7 @@ var slice = createSliceWithThunks({
345
345
  * 聊天轮次流式 Agent 调用
346
346
  */
347
347
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
348
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-456DWXNY.js");
348
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-KNPOLET7.js");
349
349
  return streamAgentChatTurnHandler(args, thunkApi);
350
350
  }),
351
351
  /**
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-C5VPAHIU.js";
3
+ } from "./chunk-32ZKZET7.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-HP6O6LTV.js";
6
+ } from "./chunk-CDLP56BS.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-6Q7UTJKR.js";
10
10
  import {
11
11
  selectIdentityToken
12
- } from "./chunk-SEJ5OS6F.js";
12
+ } from "./chunk-PXYBUFDB.js";
13
13
 
14
14
  // packages/ai/agent/cliChatClient.ts
15
15
  function getCliChatRequestConfig(thunkApi) {
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  ANTIGRAVITY_CLOUD_CODE_BASE_URL
3
- } from "./chunk-JGRPBIZZ.js";
3
+ } from "./chunk-SQX235S2.js";
4
4
  import {
5
5
  commandCodeModels,
6
6
  kimiCodeModels,
7
+ minimaxModels,
7
8
  moonshotModels,
8
9
  opencodeGoModels,
9
10
  qwenModels,
10
11
  qwenTokenPlanModels,
11
12
  stepfunModels,
12
13
  stepfunStepPlanModels
13
- } from "./chunk-TRW43TSC.js";
14
+ } from "./chunk-6EQD4AQL.js";
14
15
  import {
15
16
  PLATFORM_HOSTED_DEEPSEEK_FLASH_OFF_PEAK_PRICE,
16
17
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
@@ -192,48 +193,13 @@ var TOGETHER_MODEL_OPTIONS = [
192
193
  { id: "zai-org/GLM-5.2", label: "GLM-5.2" },
193
194
  { id: "openai/gpt-oss-120b", label: "GPT-OSS 120B" }
194
195
  ];
195
- var MINIMAX_MODEL_OPTIONS = [
196
- {
197
- id: "MiniMax-M3.1-Flash",
198
- label: "MiniMax M3.1 Flash",
199
- recommended: true,
200
- hasVision: true
201
- },
202
- { id: "MiniMax-M3", label: "MiniMax M3", hasVision: true }
203
- ];
196
+ var MINIMAX_MODEL_OPTIONS = minimaxModels.map((m, i) => ({
197
+ id: m.name,
198
+ label: m.displayName ?? m.name,
199
+ hasVision: m.hasVision,
200
+ ...i === 0 ? { recommended: true } : {}
201
+ }));
204
202
  var SUBSCRIPTION_OAUTH_PROVIDERS = [
205
- {
206
- kind: "oauth",
207
- id: "workbuddy",
208
- label: "WorkBuddy",
209
- description: "\u4F7F\u7528 WorkBuddy \u56FD\u5185\u8D26\u53F7\u53CA\u5176\u5957\u9910\u6743\u76CA\uFF1B\u53EF\u7528\u989D\u5EA6\u4E0E\u8D39\u7387\u53EF\u80FD\u968F\u6D3B\u52A8\u53D8\u5316\uFF0C\u5177\u4F53\u4EE5\u8D26\u53F7\u9875\u9762\u4E3A\u51C6\u3002",
210
- apiKeyRef: "workbuddy",
211
- provider: "workbuddy",
212
- defaultModel: "auto",
213
- modelOptions: [
214
- { id: "auto", label: "Auto", recommended: true },
215
- { id: "hy3", label: "Hy3" },
216
- { id: "deepseek-v4.1-flash", label: "DeepSeek V4.1 Flash" },
217
- { id: "glm-5.3", label: "GLM-5.3" },
218
- { id: "kimi-k3-1", label: "Kimi K3" }
219
- ]
220
- },
221
- {
222
- kind: "oauth",
223
- id: "workbuddy-ai",
224
- label: "WorkBuddy AI",
225
- description: "Use your WorkBuddy AI account and its package benefits. Available quota and rates may change with promotions; check your account for current details.",
226
- apiKeyRef: "workbuddy-ai",
227
- provider: "workbuddy-ai",
228
- defaultModel: "default-model",
229
- modelOptions: [
230
- { id: "default-model", label: "Default", recommended: true },
231
- { id: "fast-model", label: "Fast" },
232
- { id: "balanced-model", label: "Balanced" },
233
- { id: "gpt-5.5", label: "GPT-5.5" },
234
- { id: "gemini-3.1-pro", label: "Gemini 3.1 Pro" }
235
- ]
236
- },
237
203
  {
238
204
  kind: "oauth",
239
205
  id: "chatgpt",
@@ -1,6 +1,10 @@
1
1
  import {
2
+ isDevinOAuthAgent
3
+ } from "./chunk-5ZUL4CUO.js";
4
+ import {
5
+ getModelContextWindow,
2
6
  normalizeTimingMs
3
- } from "./chunk-2MTE2PEH.js";
7
+ } from "./chunk-QA2C5NKI.js";
4
8
  import {
5
9
  BUILTIN_NOLO_AGENT_KEY
6
10
  } from "./chunk-LOEO7LRC.js";
@@ -24,6 +28,78 @@ import {
24
28
  import {
25
29
  asOptionalTrimmedString
26
30
  } from "./chunk-G3SUCT4W.js";
31
+ import {
32
+ asTrimmedLowercaseString
33
+ } from "./chunk-QSJ3HFEF.js";
34
+
35
+ // packages/agent-runtime/serverProxyPolicy.ts
36
+ var OAUTH_APIKEY_REFS = /* @__PURE__ */ new Set([
37
+ "antigravity",
38
+ "xai",
39
+ "chatgpt",
40
+ "claude",
41
+ "cursor"
42
+ ]);
43
+ function isGoogleFamilyProvider(provider) {
44
+ const normalized = asTrimmedLowercaseString(provider);
45
+ return normalized === "google" || normalized.startsWith("google-");
46
+ }
47
+ function isOAuthApiKeyRef(value) {
48
+ const ref = asTrimmedLowercaseString(value);
49
+ return ref.length > 0 && OAUTH_APIKEY_REFS.has(ref);
50
+ }
51
+ function shouldUseServerProxy(agentConfig, requestProvider) {
52
+ const effectiveProvider = (requestProvider || agentConfig.provider || "").toLowerCase();
53
+ if (isGoogleFamilyProvider(effectiveProvider)) {
54
+ return true;
55
+ }
56
+ if (isOAuthApiKeyRef(agentConfig.apiKeyRef)) {
57
+ return true;
58
+ }
59
+ if (agentConfig.apiSource === "custom" && isRemoteCustomEndpoint(agentConfig.customProviderUrl)) {
60
+ return true;
61
+ }
62
+ return !!agentConfig.useServerProxy;
63
+ }
64
+ var LOCAL_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1", "0.0.0.0"]);
65
+ function isRemoteCustomEndpoint(url) {
66
+ if (typeof url !== "string") return false;
67
+ try {
68
+ const host = new URL(url).hostname.toLowerCase().replace(/^\[|\]$/g, "");
69
+ return !LOCAL_HOSTS.has(host);
70
+ } catch {
71
+ return false;
72
+ }
73
+ }
74
+
75
+ // packages/agent-runtime/devin/devinChannelWindows.ts
76
+ var DEVIN_CHANNEL_CONTEXT_WINDOWS = {
77
+ // SWE-2 家族(catalog 无裸 swe-2 selector;旧点号/裸写法如 swe-2、
78
+ // swe-1.7 实测均 permission_denied,已不是可用 selector)。
79
+ "swe-2-max": 262e3,
80
+ "swe-2-high": 262e3,
81
+ "swe-2-medium": 262e3,
82
+ // SWE-1.7 家族。
83
+ "swe-1-7": 262e3,
84
+ "swe-1-7-medium": 262e3,
85
+ "swe-1-7-lightning": 202752,
86
+ // SWE-1.6 家族(免费档默认)。
87
+ "swe-1-6": 2e5,
88
+ "swe-1-6-fast": 2e5,
89
+ // 经 devin 通道转售、且与厂商原生窗口不同的模型(catalog 枚举型 selector)。
90
+ "MODEL_GPT_5_2_LOW": 384e3,
91
+ "MODEL_GPT_5_2_MEDIUM": 384e3,
92
+ "MODEL_GPT_5_2_HIGH": 384e3,
93
+ "MODEL_GPT_5_2_XHIGH": 384e3
94
+ };
95
+ var devinChannelContextWindow = (model) => {
96
+ const raw = model?.trim();
97
+ if (!raw) return void 0;
98
+ return DEVIN_CHANNEL_CONTEXT_WINDOWS[raw];
99
+ };
100
+ var resolveAgentContextWindow = (agent) => (isDevinOAuthAgent(agent) ? devinChannelContextWindow(agent.model) : void 0) ?? // provider 透传给全局解析:平台托管通道(CF)与 Codex OAuth 等通道对同一 id
101
+ // 窗口不同,按通道取真值,不做全局取大/取小。
102
+ getModelContextWindow(agent.model ?? "", agent.provider);
27
103
 
28
104
  // packages/agent-runtime/autoExecutionProfiles.ts
29
105
  var createProfile = (input) => ({
@@ -344,8 +420,12 @@ var extractReferenceKeysFromMessage = (msg) => {
344
420
  export {
345
421
  DEFAULT_AUTO_EXECUTION_PROFILE,
346
422
  resolveAutoExecutionProfile,
423
+ isOAuthApiKeyRef,
424
+ shouldUseServerProxy,
347
425
  readCacheReadInputTokens,
348
426
  readCacheCreationInputTokens,
427
+ devinChannelContextWindow,
428
+ resolveAgentContextWindow,
349
429
  normalizeUsage,
350
430
  asOptionalJsonRecord,
351
431
  extractReferenceKeysFromMessage,
@@ -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-JDAD7CB6.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-BPN5OAQG.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20