nolo-cli 0.201.0-alpha.2 → 0.202.0-alpha.2

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 (124) hide show
  1. package/{_executeModel-BNYZLAN6.js → _executeModel-IPRTPSW7.js} +34 -33
  2. package/{agentDeleteCommand-4V4YSAXS.js → agentDeleteCommand-6HFA37FH.js} +49 -47
  3. package/{agentEmailCommands-EYIQEH6Z.js → agentEmailCommands-TDBNVIAT.js} +51 -49
  4. package/{agentListCommands-2KGUT7UB.js → agentListCommands-YSQSDQM3.js} +81 -45
  5. package/{agentMachineCommands-WUN47ILO.js → agentMachineCommands-5W23BLFR.js} +28 -26
  6. package/{agentProviderCommands-T6E3JCR6.js → agentProviderCommands-5ALOQLE5.js} +2 -2
  7. package/{agentRecordCommands-XL2CON36.js → agentRecordCommands-SRIMZZFK.js} +47 -45
  8. package/{agentRunCommand-R237ZGMQ.js → agentRunCommand-BLYHIN6S.js} +49 -47
  9. package/{agentRunControl-6HHESKDB.js → agentRunControl-ABDUPJLX.js} +10 -5
  10. package/{agentRuntimeLocal-XLLWFAVI.js → agentRuntimeLocal-FE66EBRC.js} +24 -22
  11. package/{agentSlice-Z5NKGMB7.js → agentSlice-BFDKYW6H.js} +4 -3
  12. package/{appDeleteCommands-IPF2VI3W.js → appDeleteCommands-BEVZGCAG.js} +29 -27
  13. package/{appDeployCommands-IBQ7GUXO.js → appDeployCommands-E7TFCHSP.js} +29 -27
  14. package/{appDeployStatusCommands-6ESVU6XE.js → appDeployStatusCommands-MYY5Z5G3.js} +29 -27
  15. package/{appGetCommands-VTSYTM4V.js → appGetCommands-HNED5JUU.js} +29 -27
  16. package/{appListCommands-VCP5TUX7.js → appListCommands-MSBFWPIY.js} +29 -27
  17. package/{authCommand-RV5MQDWN.js → authCommand-W34UWJGR.js} +14 -13
  18. package/{builtinSkillRegistry-7RAJP7FD.js → builtinSkillRegistry-NJVHQIKY.js} +1 -1
  19. package/{chromeOpsCommands-BA6CS4DI.js → chromeOpsCommands-USKE4B4K.js} +15 -4
  20. package/{chunk-RE3B2OCC.js → chunk-266E37EL.js} +69 -14
  21. package/chunk-2BMURXSB.js +1863 -0
  22. package/{chunk-NABJEYPJ.js → chunk-2Q3LOAFE.js} +38 -3
  23. package/{chunk-EOLPKHSB.js → chunk-326HCB6L.js} +28 -24
  24. package/{chunk-4CEAZRZ4.js → chunk-33W4IFUU.js} +1 -1
  25. package/{chunk-V3MGT3RF.js → chunk-3CWF2EUZ.js} +8 -8
  26. package/{chunk-G6OOUQWJ.js → chunk-4KB6WQUL.js} +2 -0
  27. package/{chunk-DYQXB46J.js → chunk-4KPB3KWX.js} +2 -2
  28. package/{chunk-WAZ6BTSC.js → chunk-5E4FSR4J.js} +1 -1
  29. package/{chunk-PVD7CRYV.js → chunk-6I7ZP7KJ.js} +3 -3
  30. package/chunk-6UBGXX2W.js +12 -0
  31. package/{chunk-ZBCBFOWC.js → chunk-A2ZMIRLN.js} +2 -2
  32. package/{chunk-Z646E5YH.js → chunk-ASG7VWPK.js} +3 -3
  33. package/{chunk-QWVGFBOQ.js → chunk-BLFZULEQ.js} +3 -3
  34. package/{chunk-RRHJJUA3.js → chunk-BRZTSZBG.js} +174 -100
  35. package/{chunk-JIFYXQRD.js → chunk-BTYQAODF.js} +26 -8
  36. package/{chunk-KORCRPLO.js → chunk-C7PKPHK6.js} +334 -12
  37. package/{chunk-6WZQGT5X.js → chunk-CJ37ZMCQ.js} +6 -2
  38. package/{chunk-VHGD6FHV.js → chunk-CKAHAVMK.js} +40 -10
  39. package/{chunk-UNOILAZP.js → chunk-CLTGWJVT.js} +76 -4
  40. package/{chunk-Q6RMLYSA.js → chunk-CMLBKYEI.js} +4 -2
  41. package/{chunk-NVOYW6H4.js → chunk-CQHMBWZH.js} +12 -8
  42. package/{chunk-7KWPNGVJ.js → chunk-CTZ4O3XD.js} +1 -1
  43. package/{chunk-OHRDHS4N.js → chunk-CVCRAO6Q.js} +9 -4
  44. package/{chunk-26CRLZFD.js → chunk-D57YYGMD.js} +2 -2
  45. package/{chunk-TEC5UHQK.js → chunk-DHJXDGC3.js} +2 -2
  46. package/{chunk-QYOB7RVA.js → chunk-DKZJJ2NQ.js} +3 -2
  47. package/{chunk-4YX7VQOC.js → chunk-E2FC5RMU.js} +17 -14
  48. package/{chunk-EH4MNUMF.js → chunk-ETTDZBK5.js} +4 -4
  49. package/{chunk-ZWQUWF6W.js → chunk-G7Y4GXTY.js} +8 -14
  50. package/{chunk-5KTQVMCX.js → chunk-GOO6G4PY.js} +85 -0
  51. package/{chunk-FMOZ57LN.js → chunk-H7HWWNJB.js} +1 -1
  52. package/{chunk-SW5AAI5D.js → chunk-HKMPGHFZ.js} +5 -5
  53. package/{chunk-H44LQSZ2.js → chunk-HKWGI3TM.js} +178 -311
  54. package/{chunk-BBGYSMUE.js → chunk-JH7KMNGT.js} +143 -19
  55. package/{chunk-YXMZHGNA.js → chunk-KDUYNEJ5.js} +33 -16
  56. package/{chunk-FEKMTBKJ.js → chunk-LAYFVGS4.js} +192 -55
  57. package/{chunk-O5V7QQAF.js → chunk-LEX6DEH4.js} +114 -2
  58. package/{chunk-BTBT2566.js → chunk-MNUOMXJH.js} +412 -9
  59. package/{chunk-N7E3LQ4A.js → chunk-MZXWSY4E.js} +1 -1
  60. package/{chunk-ZQ3EAOY3.js → chunk-NTLJGRAT.js} +1 -1
  61. package/{chunk-BUXH3H5M.js → chunk-OIB4GARE.js} +3743 -4848
  62. package/{chunk-WFUIXNKC.js → chunk-P4YLK2OD.js} +3 -3
  63. package/chunk-PRJ473FK.js +63 -0
  64. package/{chunk-2SHLT6JB.js → chunk-Q7GNBUT4.js} +2 -2
  65. package/{chunk-C2UXCAMB.js → chunk-RIKSN62L.js} +3 -3
  66. package/{chunk-GTP6VNWH.js → chunk-RQ22OZD7.js} +3 -3
  67. package/{chunk-H7NIQGTU.js → chunk-RS66RJLA.js} +2 -2
  68. package/{chunk-GC64WGMD.js → chunk-SM3NSZJV.js} +16 -5
  69. package/{chunk-QKDMI22S.js → chunk-SSK4WNJA.js} +1 -1
  70. package/{chunk-6MAFLMAO.js → chunk-SUBNV2JH.js} +3 -3
  71. package/{chunk-HLAL63BZ.js → chunk-T43B7LB2.js} +1 -1
  72. package/{chunk-HTLIKE5U.js → chunk-TWVVTUNG.js} +2 -2
  73. package/{chunk-X3RWBJDQ.js → chunk-U7HTU2S7.js} +1 -1
  74. package/{chunk-76YUTLOT.js → chunk-UIOEHFF6.js} +1 -1
  75. package/{chunk-IIX6VWLW.js → chunk-VCFU3BO5.js} +224 -38
  76. package/{chunk-QU3TLYBR.js → chunk-VEUSD6OF.js} +35 -11
  77. package/{chunk-4YMD7B4Y.js → chunk-WPOKOKZA.js} +2 -2
  78. package/{chunk-A5VR65AE.js → chunk-WPQGLJHU.js} +4 -4
  79. package/{chunk-K6TZSON4.js → chunk-WTKYP6QO.js} +19 -5
  80. package/{chunk-ZSO5B6SW.js → chunk-Y2WUYX4I.js} +9 -0
  81. package/{chunk-A3SXTJDE.js → chunk-YAGFPXOX.js} +14 -14
  82. package/{chunk-TVGX5QIN.js → chunk-YUA6OAH5.js} +2 -2
  83. package/{chunk-NYE2INIO.js → chunk-YV2RSLM4.js} +13 -13
  84. package/{chunk-MJWUBTK7.js → chunk-YZGNKHUM.js} +2 -2
  85. package/{commandRegistry-YFXWA5SF.js → commandRegistry-ZU3RX7A2.js} +87 -67
  86. package/{contentThunks-2BV7CFUP.js → contentThunks-I4IHSDTM.js} +14 -13
  87. package/{cooldownCommands-KRILPXOZ.js → cooldownCommands-5SJ74DNP.js} +1 -1
  88. package/{createAgentAutomationAction-T6CGXCSO.js → createAgentAutomationAction-WQCH5HR2.js} +14 -13
  89. package/{createDialogAction-X27IA3G2.js → createDialogAction-CKMZK5JQ.js} +15 -14
  90. package/{createPageAction-EHDHNW5P.js → createPageAction-QAZHQGY7.js} +14 -13
  91. package/{dialogCommands-XZXH3HSQ.js → dialogCommands-NEQ6NW5H.js} +30 -28
  92. package/{dialogSlice-AZNPVOCU.js → dialogSlice-GEGACCH2.js} +13 -12
  93. package/{docCreateCommands-Z64V5BFZ.js → docCreateCommands-EXV267FP.js} +28 -26
  94. package/{docDeleteCommands-7UFHIM4C.js → docDeleteCommands-TSBILA2Z.js} +29 -27
  95. package/{docReadCommands-NLU7Y67R.js → docReadCommands-AKVYHITD.js} +28 -26
  96. package/{docStore-M37Q6JFO.js → docStore-B4EFT53J.js} +1 -1
  97. package/{docUpdateCommands-S2KGBEG3.js → docUpdateCommands-G6GULDGZ.js} +28 -26
  98. package/{fetchMessages-HWBVATSE.js → fetchMessages-YY4SATNR.js} +1 -1
  99. package/{getPricing-E2PLNWCR.js → getPricing-3PQY3TGI.js} +3 -3
  100. package/{handleSendMessageAction-KUJQZ6B6.js → handleSendMessageAction-4BACQWOG.js} +70 -29
  101. package/index.js +7 -7
  102. package/{lib-4YTWAGY7.js → lib-5KKIBFIT.js} +439 -272
  103. package/{localDialogRead-CT5HGDMC.js → localDialogRead-FUXGZ57B.js} +1 -1
  104. package/{localRuntimeAdapter-5BNHO6JZ.js → localRuntimeAdapter-MTDULOUZ.js} +45 -43
  105. package/{machineCommands-2KDROAVV.js → machineCommands-OGHHBRV3.js} +48 -46
  106. package/{machineWsRunDispatch-4NP5M574.js → machineWsRunDispatch-R6DNC3H7.js} +46 -44
  107. package/{models-UUNO6DOL.js → models-PJBE6JDV.js} +2 -2
  108. package/{oauthTokenStore-PADKLNOC.js → oauthTokenStore-OEERZFUC.js} +2 -1
  109. package/package.json +1 -1
  110. package/{providerPresetApply-JGNMO2KX.js → providerPresetApply-HBBUUVJD.js} +6 -6
  111. package/{providerRegistry-33J3ZYFJ.js → providerRegistry-5LK2NXYE.js} +6 -6
  112. package/{readlineWorkspace-MKUSR6HA.js → readlineWorkspace-NC2O4DQP.js} +290 -121
  113. package/{runAgentClientLoop-J32KRVN7.js → runAgentClientLoop-QKV66PX5.js} +31 -30
  114. package/{runtimeDoctorCommands-NYBOTA6D.js → runtimeDoctorCommands-3VFVTGPI.js} +8 -7
  115. package/{secretCommands-N6CMCJDZ.js → secretCommands-MKU25CDP.js} +311 -3
  116. package/{settingThunks-YRYNPWJM.js → settingThunks-4WU7YE62.js} +2 -2
  117. package/{skillDiscovery-F3TMVQOJ.js → skillDiscovery-BKLWW2EZ.js} +2 -2
  118. package/{spaceCommands-VV4K7TGI.js → spaceCommands-J7BRTTM3.js} +27 -25
  119. package/{streamAgentChatTurn-S2Q7STXS.js → streamAgentChatTurn-GM3UNSLS.js} +46 -43
  120. package/{tools-KOIPW4ZA.js → tools-UJLEQBKI.js} +25 -24
  121. package/{tuiSummaryLlmCaller-FSOADMXK.js → tuiSummaryLlmCaller-73QO3HAD.js} +12 -12
  122. package/{updateCommands-KE6LP3QX.js → updateCommands-RVDAFHBT.js} +3 -3
  123. package/{updateDialogTitleAction-ILS5OIXF.js → updateDialogTitleAction-24QO27NT.js} +14 -13
  124. package/{windowsSelfUpdate-26TSFXEZ.js → windowsSelfUpdate-N2VH2OBW.js} +2 -2
@@ -1,9 +1,6 @@
1
- import {
2
- toErrorMessage
3
- } from "./chunk-HNMXYYJR.js";
4
1
  import {
5
2
  trimTrailingSlash
6
- } from "./chunk-4YMD7B4Y.js";
3
+ } from "./chunk-WPOKOKZA.js";
7
4
  import {
8
5
  commandCodeModels,
9
6
  kimiCodeModels,
@@ -14,7 +11,10 @@ import {
14
11
  qwenTokenPlanModels,
15
12
  stepfunModels,
16
13
  stepfunStepPlanModels
17
- } from "./chunk-GC64WGMD.js";
14
+ } from "./chunk-SM3NSZJV.js";
15
+ import {
16
+ toErrorMessage
17
+ } from "./chunk-HNMXYYJR.js";
18
18
  import {
19
19
  asOptionalFiniteNumber
20
20
  } from "./chunk-WWC7I6TA.js";
@@ -26,7 +26,7 @@ import {
26
26
  PLATFORM_HOSTED_DEEPSEEK_FLASH_PEAK_PRICE,
27
27
  PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE,
28
28
  PLATFORM_HOSTED_DEEPSEEK_PRO_PEAK_PRICE
29
- } from "./chunk-5KTQVMCX.js";
29
+ } from "./chunk-GOO6G4PY.js";
30
30
  import {
31
31
  asTrimmedLowercaseString
32
32
  } from "./chunk-QSJ3HFEF.js";
@@ -370,13 +370,17 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
370
370
  defaultModel: "gpt-6-astra",
371
371
  defaultReasoningEffort: "medium",
372
372
  modelOptions: [
373
+ // 只列每个家族的最新代(owner 2026-11-01 决定):旧代 id 不再作为独立选项,
374
+ // 存量 agent 记录里的旧 model id 由 OAuth 通道的家族别名表透明重定向到对应
375
+ // 最新代(sol 系→6.1 Sol、terra 系→6.1 Terra、luna 系→6 Luna),不丢对话。
373
376
  { id: "gpt-6-astra", label: "GPT-6 Astra", hasVision: true, recommended: true },
374
377
  // GPT-6.1 Sol 已列入 Codex 订阅通道选型指南,但按账号灰度("when available
375
378
  // to your account and client"),未开通的账号选它会 400,不影响其他选项。
376
379
  { id: "gpt-6.1-sol", label: "GPT-6.1 Sol", hasVision: true },
377
- { id: "gpt-5.6-sol", label: "GPT-5.6 Sol", hasVision: true },
378
- { id: "gpt-5.6-terra", label: "GPT-5.6 Terra", hasVision: true },
379
- { id: "gpt-5.6-luna", label: "GPT-5.6 Luna", hasVision: true }
380
+ // GPT-6.1 Terra 上游已实测返回元数据,同样按账号级白名单灰度,未开通的账号选它会 400,不影响其他选项。
381
+ { id: "gpt-6.1-terra", label: "GPT-6.1 Terra", hasVision: true },
382
+ // GPT-6 Luna 是 luna 家族的上游最新代(无 6.1-luna);更老的 gpt-5.6-luna 重定向到它。
383
+ { id: "gpt-6-luna", label: "GPT-6 Luna", hasVision: true }
380
384
  ]
381
385
  },
382
386
  {
@@ -493,8 +497,9 @@ var SUBSCRIPTION_OAUTH_PROVIDERS = [
493
497
  { id: "claude-sonnet-4-6", label: "Claude Sonnet 4.6", hasVision: true },
494
498
  { id: "gpt-6-astra-medium", label: "GPT-6 Astra Medium", hasVision: true },
495
499
  { id: "gpt-6-astra-high", label: "GPT-6 Astra High", hasVision: true },
496
- // GPT-6 Sol/Luna 已随上游上线(medium/high 档实测可调);chatgpt OAuth
497
- // 的 Codex 后端目前只放出 gpt-6-astra,Sol/Luna 在该通道仍 400。
500
+ // GPT-6 Sol/Luna 已随上游上线(medium/high 档实测可调)。注:2026-11-01 实测
501
+ // chatgpt OAuth 的 Codex 后端已放出 gpt-6-sol / gpt-6-luna(responses 返回 200),
502
+ // 该通道「Sol/Luna 仍 400」的旧结论已过时。
498
503
  { id: "gpt-6-sol-medium", label: "GPT-6 Sol Medium", hasVision: true },
499
504
  { id: "gpt-6-sol-high", label: "GPT-6 Sol High", hasVision: true },
500
505
  { id: "gpt-6-luna-medium", label: "GPT-6 Luna Medium", hasVision: true },
@@ -844,6 +849,25 @@ var CUSTOM_API_KEY_TEMPLATES = [
844
849
  defaultModel: "deepseek-ai/DeepSeek-V4.1-Flash",
845
850
  commercialKind: "api",
846
851
  accessVariant: "metered_key"
852
+ },
853
+ // LongCat 官方 API(longcat.chat / longcat.ai):高性能 Agentic 模型,
854
+ // 1M 上下文、最大输出 256K tokens,OpenAI 兼容格式。
855
+ {
856
+ kind: "api_key_template",
857
+ id: "longcat-api",
858
+ label: "LongCat API",
859
+ description: "LongCat \u5B98\u65B9\u5F00\u653E\u5E73\u53F0\uFF08\u9AD8\u6027\u80FD Agentic \u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0COpenAI \u517C\u5BB9\uFF09",
860
+ provider: "longcat",
861
+ baseUrl: "https://api.longcat.chat/openai/v1",
862
+ defaultModel: "LongCat-2.5",
863
+ modelOptions: [
864
+ { id: "LongCat-2.5", label: "LongCat 2.5", recommended: true },
865
+ { id: "LongCat-2.5-Preview", label: "LongCat 2.5 Preview" },
866
+ { id: "LongCat-2.0", label: "LongCat 2.0" }
867
+ ],
868
+ keyFormatHint: "\u5728 longcat.chat \u63A7\u5236\u53F0 API Keys \u83B7\u53D6\uFF08\u5F62\u5982 ak_\u2026\uFF09\u3002",
869
+ commercialKind: "api",
870
+ accessVariant: "metered_key"
847
871
  }
848
872
  ];
849
873
  var ALL_PROVIDER_REGISTRY = [
@@ -4,7 +4,7 @@ import {
4
4
  resolvePlatformHostedCredentialProvider,
5
5
  resolvePlatformProxyChatGatewayEndpoint,
6
6
  resolvePlatformResponsesEndpoint
7
- } from "./chunk-TVGX5QIN.js";
7
+ } from "./chunk-YUA6OAH5.js";
8
8
  import {
9
9
  CLI_PROVIDER_VALUES
10
10
  } from "./chunk-5BHQICF2.js";
@@ -21,7 +21,7 @@ import {
21
21
  CLIENT_VERSION_TOO_OLD_CODE,
22
22
  buildClientVersionGateErrorDetail,
23
23
  evaluatePlatformHostedClientVersionGate
24
- } from "./chunk-5KTQVMCX.js";
24
+ } from "./chunk-GOO6G4PY.js";
25
25
  import {
26
26
  asTrimmedLowercaseString
27
27
  } from "./chunk-QSJ3HFEF.js";
@@ -13,10 +13,10 @@ import {
13
13
  resolveAgentRecordFromHybridStore,
14
14
  sanitizeAgentRecordForCliOutput,
15
15
  writeAgentRecord
16
- } from "./chunk-6WZQGT5X.js";
16
+ } from "./chunk-CJ37ZMCQ.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-RRHJJUA3.js";
19
+ } from "./chunk-BRZTSZBG.js";
20
20
  import {
21
21
  readCredentialAvailability
22
22
  } from "./chunk-HAB2UDLT.js";
@@ -244,7 +244,7 @@ async function runAgentCreateCommand(args, deps = {}) {
244
244
  let verifyResult;
245
245
  if (parsed.verify) {
246
246
  try {
247
- const { verifyCustomProvider } = await import("./agentProviderCommands-T6E3JCR6.js");
247
+ const { verifyCustomProvider } = await import("./agentProviderCommands-5ALOQLE5.js");
248
248
  const rec = built.nextRecord;
249
249
  verifyResult = await verifyCustomProvider({
250
250
  providerUrl: rec.customProviderUrl,
@@ -268,7 +268,7 @@ async function runAgentCreateCommand(args, deps = {}) {
268
268
  const OAUTH_REFS = /* @__PURE__ */ new Set(["claude", "chatgpt", "xai", "antigravity", "cloudflare"]);
269
269
  if (apiKeyRef && OAUTH_REFS.has(apiKeyRef)) {
270
270
  try {
271
- const { createOAuthTokenStore } = await import("./oauthTokenStore-PADKLNOC.js");
271
+ const { createOAuthTokenStore } = await import("./oauthTokenStore-OEERZFUC.js");
272
272
  const store = createOAuthTokenStore();
273
273
  if (!store.read(apiKeyRef)) {
274
274
  authHint = `Subscription "${apiKeyRef}" is not authorized yet. Run \`nolo auth ${apiKeyRef}\` to log in.`;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-JIFYXQRD.js";
6
+ } from "./chunk-BTYQAODF.js";
7
7
  import {
8
8
  normalizeTimingMs
9
9
  } from "./chunk-H57T64RA.js";
@@ -124,17 +124,30 @@ var topLevel = (field) => (usage) => {
124
124
  return finiteTokenCount(usage[field]);
125
125
  };
126
126
  var nested = (path) => (usage) => readNested(usage, path);
127
- var readCacheReadInputTokens = (usage) => firstPositive(usage, [
127
+ var firstPresentAsNumber = (usage, readers) => {
128
+ let sawField = false;
129
+ for (const read of readers) {
130
+ const value = read(usage);
131
+ if (value === void 0) continue;
132
+ sawField = true;
133
+ if (value !== 0) return value;
134
+ }
135
+ return sawField ? 0 : null;
136
+ };
137
+ var CACHE_READ_READERS = [
128
138
  topLevel("cache_read_input_tokens"),
129
139
  topLevel("prompt_cache_hit_tokens"),
130
140
  nested(["input_tokens_details", "cached_tokens"]),
131
141
  nested(["prompt_tokens_details", "cached_tokens"])
132
- ]);
133
- var readCacheCreationInputTokens = (usage) => firstPositive(usage, [
142
+ ];
143
+ var CACHE_CREATION_READERS = [
134
144
  topLevel("cache_creation_input_tokens"),
135
145
  topLevel("prompt_cache_miss_tokens"),
136
146
  nested(["input_tokens_details", "cache_write_tokens"])
137
- ]);
147
+ ];
148
+ var readCacheReadInputTokens = (usage) => firstPositive(usage, CACHE_READ_READERS);
149
+ var readCacheReadInputTokensOrNull = (usage) => firstPresentAsNumber(usage, CACHE_READ_READERS);
150
+ var readCacheCreationInputTokens = (usage) => firstPositive(usage, CACHE_CREATION_READERS);
138
151
 
139
152
  // packages/ai/token/normalizeUsage.ts
140
153
  var normalizeStringArray = (value) => {
@@ -382,6 +395,7 @@ export {
382
395
  DEFAULT_AUTO_EXECUTION_PROFILE,
383
396
  resolveAutoExecutionProfile,
384
397
  readCacheReadInputTokens,
398
+ readCacheReadInputTokensOrNull,
385
399
  readCacheCreationInputTokens,
386
400
  devinChannelContextWindow,
387
401
  resolveAgentContextWindow,
@@ -48,6 +48,15 @@ var fetchMessages = async (db, dialogId, options = {}) => {
48
48
  let count = 0;
49
49
  for await (const [key, value] of iterator) {
50
50
  count++;
51
+ if (count % 32 === 0) {
52
+ await new Promise((resolve) => {
53
+ if (typeof setImmediate === "function") {
54
+ setImmediate(resolve);
55
+ } else {
56
+ setTimeout(resolve, 0);
57
+ }
58
+ });
59
+ }
51
60
  if (!includeDeleted && isTombstoneRecord(value)) {
52
61
  continue;
53
62
  }
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-QWVGFBOQ.js";
8
+ } from "./chunk-BLFZULEQ.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-NYE2INIO.js";
17
+ } from "./chunk-YV2RSLM4.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-H44LQSZ2.js";
21
+ } from "./chunk-HKWGI3TM.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-C2UXCAMB.js";
26
+ } from "./chunk-RIKSN62L.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-KORCRPLO.js";
35
+ } from "./chunk-C7PKPHK6.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -45,10 +45,10 @@ import {
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-EOLPKHSB.js";
48
+ } from "./chunk-326HCB6L.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-EH4MNUMF.js";
51
+ } from "./chunk-ETTDZBK5.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -73,7 +73,7 @@ import {
73
73
  projectUserPartForModel,
74
74
  resolveOutboundDiagnosticSink,
75
75
  resolveOutboundWire
76
- } from "./chunk-G6OOUQWJ.js";
76
+ } from "./chunk-4KB6WQUL.js";
77
77
  import {
78
78
  accumulateToolCallDelta,
79
79
  createThinkParserState,
@@ -85,25 +85,25 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-OHRDHS4N.js";
88
+ } from "./chunk-CVCRAO6Q.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-K6TZSON4.js";
91
+ } from "./chunk-WTKYP6QO.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-JIFYXQRD.js";
94
+ } from "./chunk-BTYQAODF.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
98
98
  import {
99
99
  extractCustomId
100
100
  } from "./chunk-M2EJHDJP.js";
101
+ import {
102
+ getApiEndpoint
103
+ } from "./chunk-SM3NSZJV.js";
101
104
  import {
102
105
  toErrorMessage
103
106
  } from "./chunk-HNMXYYJR.js";
104
- import {
105
- getApiEndpoint
106
- } from "./chunk-GC64WGMD.js";
107
107
  import {
108
108
  isRecord
109
109
  } from "./chunk-KUG52IAP.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-GC64WGMD.js";
3
+ } from "./chunk-SM3NSZJV.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-5KTQVMCX.js";
8
+ } from "./chunk-GOO6G4PY.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-C2UXCAMB.js";
6
+ } from "./chunk-RIKSN62L.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-EH4MNUMF.js";
9
+ } from "./chunk-ETTDZBK5.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
- } from "./chunk-O5V7QQAF.js";
12
+ } from "./chunk-LEX6DEH4.js";
13
13
  import {
14
14
  CREDENTIAL_HYGIENE_RULE,
15
15
  DELETE_SAFETY_RED_LINE,
@@ -23,7 +23,7 @@ import {
23
23
  compileContextLayers,
24
24
  detectDispatchIntentFromMessages,
25
25
  resolveToolGuidedSections
26
- } from "./chunk-YXMZHGNA.js";
26
+ } from "./chunk-KDUYNEJ5.js";
27
27
  import {
28
28
  convertMessagesToResponsesInput,
29
29
  getUsageRequestOptions,
@@ -32,14 +32,14 @@ import {
32
32
  resolveReasoningReplayOptions,
33
33
  shouldStripReasoningContentForOutbound,
34
34
  stablePromptCacheKey
35
- } from "./chunk-OHRDHS4N.js";
35
+ } from "./chunk-CVCRAO6Q.js";
36
36
  import {
37
37
  resolveAgentCallPlan,
38
38
  resolveClientWire
39
- } from "./chunk-WFUIXNKC.js";
39
+ } from "./chunk-P4YLK2OD.js";
40
40
  import {
41
41
  createFileCredentialBroker
42
- } from "./chunk-76YUTLOT.js";
42
+ } from "./chunk-UIOEHFF6.js";
43
43
  import {
44
44
  MEMORY_USE_GUIDANCE,
45
45
  buildUserResponseLanguageContext,
@@ -48,17 +48,17 @@ import {
48
48
  import {
49
49
  canonicalizeToolNames
50
50
  } from "./chunk-AKE53VMW.js";
51
- import {
52
- toErrorMessage
53
- } from "./chunk-HNMXYYJR.js";
54
51
  import {
55
52
  buildProviderAuthHeaders
56
- } from "./chunk-4YMD7B4Y.js";
53
+ } from "./chunk-WPOKOKZA.js";
57
54
  import {
58
55
  clampReasoningEffort,
59
56
  getModelConfig,
60
57
  isModelSupportReasoningEffort
61
- } from "./chunk-GC64WGMD.js";
58
+ } from "./chunk-SM3NSZJV.js";
59
+ import {
60
+ toErrorMessage
61
+ } from "./chunk-HNMXYYJR.js";
62
62
  import {
63
63
  isRecord
64
64
  } from "./chunk-KUG52IAP.js";
@@ -79,7 +79,7 @@ import {
79
79
  isFireworksKimiModel,
80
80
  isPlatformMimoProviderModel,
81
81
  resolveFireworksKimiModel
82
- } from "./chunk-5KTQVMCX.js";
82
+ } from "./chunk-GOO6G4PY.js";
83
83
 
84
84
  // packages/agent-runtime/responsesConversationState.ts
85
85
  function supportsResponsesConversationState(agent) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getCredentialsDir
3
- } from "./chunk-ZWQUWF6W.js";
3
+ } from "./chunk-G7Y4GXTY.js";
4
4
  import {
5
5
  resolvePlatformAuthToken
6
- } from "./chunk-4YMD7B4Y.js";
6
+ } from "./chunk-WPOKOKZA.js";
7
7
 
8
8
  // packages/cli/client/authGuidance.ts
9
9
  import { readdirSync } from "node:fs";