nolo-cli 0.89.0-alpha.1 → 0.91.0-alpha.1

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 (132) hide show
  1. package/README.md +2 -2
  2. package/{_executeModel-I3XRMAJ2.js → _executeModel-U5V7LOJX.js} +38 -38
  3. package/{action-7GHFPDSQ.js → action-EXQVY3UO.js} +7 -7
  4. package/{addContentAction-ZNVB2NOV.js → addContentAction-6IXQSRD2.js} +5 -5
  5. package/{addDialogAgentAction-CIDFWATM.js → addDialogAgentAction-FZOB4BYM.js} +4 -4
  6. package/{agentDeleteCommand-DCTG26JW.js → agentDeleteCommand-4MIJFQQB.js} +24 -23
  7. package/{agentEmailCommands-MRRHBLDQ.js → agentEmailCommands-JUXT36BY.js} +50 -49
  8. package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-YW6PQAQ2.js} +2 -2
  9. package/{agentListCommands-CUE46CSP.js → agentListCommands-MUVKMMZ5.js} +32 -25
  10. package/{agentMachineCommands-FYDEKBIO.js → agentMachineCommands-56FTZLYV.js} +24 -23
  11. package/{agentProviderCommands-X3FA6BUM.js → agentProviderCommands-TOMVKJOV.js} +1 -1
  12. package/{agentPullCommand-U73W5IBM.js → agentPullCommand-GLOOXJ2E.js} +2 -2
  13. package/{agentRecordCommands-P2MSNP7R.js → agentRecordCommands-FST3KAKG.js} +48 -47
  14. package/{agentRunCommand-QJGP7JEN.js → agentRunCommand-UMUEVIY2.js} +49 -48
  15. package/{agentRunControl-T44MESII.js → agentRunControl-XLGD3UZ5.js} +1 -1
  16. package/{agentRuntimeLocal-T43UNWAY.js → agentRuntimeLocal-NH6GSGAJ.js} +20 -19
  17. package/{agentSlice-7GDS5Q2S.js → agentSlice-YZK6KG73.js} +5 -5
  18. package/{appDeleteCommands-YBKY3VEI.js → appDeleteCommands-U45KXYX7.js} +25 -24
  19. package/{appDeployCommands-EBC76HO4.js → appDeployCommands-LWQIQCFX.js} +25 -24
  20. package/{appDeployStatusCommands-WXRC5KEK.js → appDeployStatusCommands-LZO33PGD.js} +25 -24
  21. package/{appGetCommands-VZZQEDOV.js → appGetCommands-OJSO6BCF.js} +25 -24
  22. package/{appListCommands-HYSPVQ77.js → appListCommands-NE56V7DI.js} +25 -24
  23. package/{authCommand-E4GDVKMW.js → authCommand-U5LA6H4Y.js} +84 -18
  24. package/{authCommands-VOTT6XWX.js → authCommands-RGOGCPP6.js} +2 -2
  25. package/{builtinSkillRegistry-5SYVTS6Z.js → builtinSkillRegistry-4NB7PCOF.js} +5 -5
  26. package/{chatQueueReduxAdapter-CXEWIDFZ.js → chatQueueReduxAdapter-FRMSYX7N.js} +17 -17
  27. package/{chunk-JC2WQS66.js → chunk-377KM42Z.js} +20 -16
  28. package/{chunk-3T4PRBHV.js → chunk-3XMOAYRC.js} +1 -1
  29. package/{chunk-6H7GN3JL.js → chunk-4CAPEGHN.js} +20 -7
  30. package/{chunk-ZKGIAM7I.js → chunk-4JBZUECA.js} +1 -1
  31. package/{chunk-23RQKXP6.js → chunk-4QKBQHPQ.js} +1 -1
  32. package/{chunk-IZAWJCG7.js → chunk-546FPOW3.js} +1 -1
  33. package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
  34. package/chunk-5ZUL4CUO.js +10 -0
  35. package/{chunk-UINEAQ2R.js → chunk-6D6VBVEW.js} +1 -1
  36. package/{chunk-IMDA4FW4.js → chunk-7IBK6MYW.js} +61 -46
  37. package/{chunk-BNMZ7QUV.js → chunk-AQDH76OK.js} +1 -1
  38. package/{chunk-IO7DYRPW.js → chunk-B4S7MR5S.js} +16 -12
  39. package/{chunk-KT6LENVP.js → chunk-BF2K6MRF.js} +2 -2
  40. package/{chunk-Q246OUG5.js → chunk-BKP7CFUD.js} +5 -5
  41. package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
  42. package/{chunk-MFW4BGJS.js → chunk-COM7GG76.js} +1 -1
  43. package/{chunk-HH65VA5U.js → chunk-CPH3W5A7.js} +15 -3
  44. package/{chunk-JITSBA52.js → chunk-DM4UNXPK.js} +2 -2
  45. package/{chunk-Q4KVAB6L.js → chunk-DSX6K7C2.js} +28 -9
  46. package/{chunk-Y2IFJ7VM.js → chunk-E2NP7ZQU.js} +3 -3
  47. package/{chunk-VARZWSKW.js → chunk-E3VQ6S3A.js} +3 -3
  48. package/{chunk-5EJZGJS2.js → chunk-F3UTRUDO.js} +3 -3
  49. package/{chunk-WSOMSDQB.js → chunk-G5X57NDE.js} +35 -1
  50. package/{chunk-BJIRLHJR.js → chunk-GII32WZW.js} +1 -0
  51. package/{chunk-OCL2YCAU.js → chunk-GRDSMV4V.js} +40 -40
  52. package/{chunk-LEYH5NOH.js → chunk-HGRDL36J.js} +4 -4
  53. package/{chunk-OZX2IPKM.js → chunk-HQCSU3DI.js} +1 -1
  54. package/{chunk-EXWOCYCR.js → chunk-HWZAXNO7.js} +10 -5
  55. package/{chunk-OAJRZ35U.js → chunk-IIKPWSPX.js} +1 -1
  56. package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
  57. package/{chunk-UWMQ6FPM.js → chunk-JTYPAMGP.js} +151 -1
  58. package/{chunk-YZHP76TR.js → chunk-KR3YI36B.js} +1 -1
  59. package/{chunk-GIG262ZG.js → chunk-LSSBA2TN.js} +1 -1
  60. package/{chunk-X77EN2BJ.js → chunk-MBEEYLGL.js} +2 -2
  61. package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
  62. package/{chunk-DS3SQTDT.js → chunk-NKIH4Q7W.js} +1 -1
  63. package/{chunk-GRJTR4PU.js → chunk-OH7H6LPC.js} +4 -4
  64. package/{chunk-OHUU52T3.js → chunk-OOLWKQSM.js} +1 -1
  65. package/{chunk-FMODTASJ.js → chunk-Q5FJJ6XI.js} +1 -7
  66. package/{chunk-JYYZCK2Z.js → chunk-QFMFJZLO.js} +1 -1
  67. package/{chunk-S6STPUMG.js → chunk-QMASIHYZ.js} +5 -5
  68. package/{chunk-VW3YGKWR.js → chunk-R2YY6MWV.js} +294 -203
  69. package/{chunk-ZSG2AQU4.js → chunk-RLEWGSM5.js} +62 -11
  70. package/{chunk-TGRQUFLU.js → chunk-RZYQMSQA.js} +1 -1
  71. package/{chunk-6ZC5KPXV.js → chunk-S3UI4IUJ.js} +903 -40
  72. package/{chunk-SPAQ4PVV.js → chunk-SAFZABH7.js} +1 -1
  73. package/{chunk-AYT2OKNM.js → chunk-SASGLNUD.js} +3 -3
  74. package/{chunk-L2VNQQ7M.js → chunk-SUERPXJZ.js} +368 -25
  75. package/{chunk-2XEVK4BT.js → chunk-TMAZ3VHN.js} +1 -1
  76. package/{chunk-US463UAD.js → chunk-U47DH2WO.js} +2 -2
  77. package/{chunk-NVHJWYUO.js → chunk-UBNV6CS6.js} +35 -33
  78. package/{chunk-UO66QKGI.js → chunk-UDEFS2PV.js} +4 -3
  79. package/{chunk-LSV2BOJL.js → chunk-VOOTT7HA.js} +1 -1
  80. package/{chunk-GXWEF4IZ.js → chunk-W2E6HIIK.js} +1 -1
  81. package/{chunk-P3AS5IPM.js → chunk-WKEUHK57.js} +3 -2
  82. package/{chunk-ZIHJVHFH.js → chunk-WON762L4.js} +1 -1
  83. package/{chunk-W7PGACND.js → chunk-WP6BC7OF.js} +10 -10
  84. package/{chunk-4FRNB4ZG.js → chunk-X2ZTVRXP.js} +4 -4
  85. package/{chunk-XCSSFPTB.js → chunk-XAQAF25W.js} +1 -1
  86. package/{chunk-HJKGQPYF.js → chunk-XGJAR4T5.js} +31 -14
  87. package/{chunk-PHDKTASK.js → chunk-XLGHBHGP.js} +1 -1
  88. package/{chunk-OKCTLCKS.js → chunk-YOXYA2GU.js} +1 -1
  89. package/{chunk-VQD6BTML.js → chunk-YPYMGGPJ.js} +3 -3
  90. package/{chunk-T4F2EQGN.js → chunk-ZHUTWJ3N.js} +2 -2
  91. package/{chunk-6RCZYDDC.js → chunk-ZKMYGRO7.js} +6 -6
  92. package/{contentThunks-Y2ACIFDB.js → contentThunks-TC3AENBY.js} +18 -18
  93. package/{createAgentAutomationAction-TNE3QMJR.js → createAgentAutomationAction-67EOD3WK.js} +18 -18
  94. package/{createDialogAction-BMGHBTQB.js → createDialogAction-4OCQC5MW.js} +20 -20
  95. package/{createPageAction-FFNIZPIS.js → createPageAction-JLGVP57B.js} +18 -18
  96. package/{dbSlice-4CUQE35F.js → dbSlice-RDGCE5MU.js} +4 -4
  97. package/{dialogCommands-3JC3BIXC.js → dialogCommands-JHSDKCR5.js} +26 -25
  98. package/{dialogSlice-3E7Z7HZV.js → dialogSlice-I2DK32ZT.js} +17 -17
  99. package/{docCreateCommands-6LNQLCTA.js → docCreateCommands-QUL6VWK2.js} +24 -23
  100. package/{docDeleteCommands-ZJOAPWZS.js → docDeleteCommands-DMQ2MU6I.js} +25 -24
  101. package/{docReadCommands-LJTRSBG6.js → docReadCommands-FVHENBU6.js} +24 -23
  102. package/{docStore-R47ABXBB.js → docStore-OLC6MD7B.js} +5 -5
  103. package/{docUpdateCommands-7P3QF3N2.js → docUpdateCommands-VA6V5C6L.js} +24 -23
  104. package/{getPricing-TV6ZB7ES.js → getPricing-YYXTEPBP.js} +3 -3
  105. package/{handleSendMessageAction-FFYOGXAO.js → handleSendMessageAction-GRDIRXAK.js} +17 -17
  106. package/index.js +81 -81
  107. package/{machineCommands-FN5GGQV3.js → machineCommands-IJJ66MYU.js} +47 -46
  108. package/{machineWsRunDispatch-H47IA7ZT.js → machineWsRunDispatch-PP2ZBS6D.js} +47 -46
  109. package/{memberThunks-N35XAOC6.js → memberThunks-WQGQWYYT.js} +5 -5
  110. package/{models-CMXFDBQH.js → models-UN7YGMPM.js} +2 -2
  111. package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-JEWCIAWM.js} +1 -1
  112. package/package.json +1 -1
  113. package/{providerPresetApply-D2GGHPI7.js → providerPresetApply-NO73BG45.js} +6 -6
  114. package/{providerRegistry-MU6C4ABD.js → providerRegistry-OVY4VKNN.js} +6 -6
  115. package/{read-2PV4PN2E.js → read-S4WC2OUK.js} +3 -3
  116. package/{readDocTool-FGK5XGAW.js → readDocTool-PQNM63KV.js} +1 -1
  117. package/{readlineWorkspace-NXKHYZEU.js → readlineWorkspace-ASJECDJD.js} +123 -91
  118. package/{removeDialogAgentAction-O2POGBOE.js → removeDialogAgentAction-YJZ6XJV6.js} +7 -7
  119. package/{runAgentClientLoop-CEBV5UPD.js → runAgentClientLoop-KIOQSDRC.js} +36 -36
  120. package/{setDialogExtraReferencesAction-KPSVVY3C.js → setDialogExtraReferencesAction-E6A3WL4E.js} +5 -5
  121. package/{setPrimaryDialogAgentAction-RMJETONI.js → setPrimaryDialogAgentAction-WBLIVICQ.js} +7 -7
  122. package/{settingSlice-I6MTTNDX.js → settingSlice-JR6S7TRD.js} +6 -6
  123. package/{spaceCommands-JHT4ALCQ.js → spaceCommands-WDUNCAK5.js} +24 -23
  124. package/{streamAgentChatTurn-SFCZP4GY.js → streamAgentChatTurn-EGQDPMAO.js} +44 -42
  125. package/{switchDialogAgentAction-OQSGWVQQ.js → switchDialogAgentAction-DTR36ZY2.js} +4 -4
  126. package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
  127. package/{toolApiClient-VGYUB4P5.js → toolApiClient-7PSIFQPJ.js} +2 -2
  128. package/{tools-K3YOTESV.js → tools-AOVE5LKM.js} +33 -33
  129. package/tuiSummaryLlmCaller-XRQCSNYQ.js +127 -0
  130. package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
  131. package/{updateDialogTitleAction-CSPKYQRO.js → updateDialogTitleAction-T66TXHIR.js} +38 -21
  132. package/tuiSummaryLlmCaller-T2OA5ZVB.js +0 -116
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-NVHJWYUO.js";
10
+ } from "./chunk-UBNV6CS6.js";
11
11
  import {
12
12
  isGatewayHttpStatus
13
13
  } from "./chunk-NF64D32W.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-3L2WKC3W.js";
20
20
  import {
21
21
  slateToSimplifiedMarkdown
22
- } from "./chunk-YZHP76TR.js";
22
+ } from "./chunk-KR3YI36B.js";
23
23
  import {
24
24
  waitForAbortableDelay
25
25
  } from "./chunk-N4G4PKQ6.js";
@@ -28,26 +28,26 @@ import {
28
28
  } from "./chunk-MEYIRKDN.js";
29
29
  import {
30
30
  fetchAndCacheMessages
31
- } from "./chunk-L2VNQQ7M.js";
31
+ } from "./chunk-SUERPXJZ.js";
32
32
  import {
33
33
  shouldUseServerProxy
34
34
  } from "./chunk-YYLHWIW6.js";
35
35
  import {
36
36
  fetchServerSyncedCredential
37
- } from "./chunk-4FRNB4ZG.js";
37
+ } from "./chunk-X2ZTVRXP.js";
38
38
  import {
39
39
  buildSkillGuidancePromptBlock,
40
40
  extractRuntimePageCapabilities,
41
41
  resolveBuiltinSkillPage,
42
42
  resolveSkillGraphFromRoots
43
- } from "./chunk-P3AS5IPM.js";
43
+ } from "./chunk-WKEUHK57.js";
44
44
  import {
45
45
  buildIdentityBlock,
46
46
  buildRuntimeGuidanceBlocks,
47
47
  compileContextLayers,
48
48
  normalizeChatCompletionsBodyForProvider,
49
49
  resolveToolGuidedSections
50
- } from "./chunk-Q4KVAB6L.js";
50
+ } from "./chunk-DSX6K7C2.js";
51
51
  import {
52
52
  convertMessagesToResponsesInput,
53
53
  getUsageRequestOptions,
@@ -57,10 +57,10 @@ import {
57
57
  import {
58
58
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
59
59
  isAntigravityOAuthAgent
60
- } from "./chunk-DS3SQTDT.js";
60
+ } from "./chunk-NKIH4Q7W.js";
61
61
  import {
62
62
  buildProviderAuthHeaders
63
- } from "./chunk-X77EN2BJ.js";
63
+ } from "./chunk-MBEEYLGL.js";
64
64
  import {
65
65
  estimateTokenCount
66
66
  } from "./chunk-PSCNXBYA.js";
@@ -68,12 +68,12 @@ import {
68
68
  isOpenAiResponsesModel,
69
69
  resolvePlatformChatCompletionsEndpoint,
70
70
  resolvePlatformResponsesEndpoint
71
- } from "./chunk-T4F2EQGN.js";
71
+ } from "./chunk-ZHUTWJ3N.js";
72
72
  import {
73
73
  clampReasoningEffort,
74
74
  getModelConfig,
75
75
  isModelSupportReasoningEffort
76
- } from "./chunk-6H7GN3JL.js";
76
+ } from "./chunk-4CAPEGHN.js";
77
77
  import {
78
78
  createFileCredentialBroker
79
79
  } from "./chunk-HVURBGF3.js";
@@ -91,20 +91,21 @@ import {
91
91
  import {
92
92
  isDeepInfraKimiModel,
93
93
  isFireworksKimiModel,
94
+ isPlatformMimoProviderModel,
94
95
  resolveFireworksKimiModel
95
- } from "./chunk-UWMQ6FPM.js";
96
+ } from "./chunk-JTYPAMGP.js";
96
97
  import {
97
98
  createSpaceKey
98
99
  } from "./chunk-UAD2WT54.js";
99
100
  import {
100
101
  read
101
- } from "./chunk-5EJZGJS2.js";
102
+ } from "./chunk-F3UTRUDO.js";
102
103
  import {
103
104
  asTrimmedLowercaseString
104
105
  } from "./chunk-QSJ3HFEF.js";
105
106
  import {
106
107
  extractCustomId
107
- } from "./chunk-BJIRLHJR.js";
108
+ } from "./chunk-GII32WZW.js";
108
109
  import {
109
110
  getRuntimeServerContext
110
111
  } from "./chunk-UKWGR5SS.js";
@@ -718,9 +719,12 @@ var shouldInjectLlamaCppThinkingToggle = (agentConfig) => {
718
719
  if (!isLoopbackUrl(agentConfig.customProviderUrl)) return false;
719
720
  return /qwen/i.test(agentConfig.model ?? "");
720
721
  };
721
- var shouldDisableMiMoThinking = (agentConfig) => {
722
+ var shouldDisableMiMoThinking = (agentConfig, resolvedModel) => {
722
723
  if (agentConfig.enableThinking === true) return false;
723
- return /xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo";
724
+ if (/xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo") {
725
+ return true;
726
+ }
727
+ return isPlatformMimoProviderModel(agentConfig.provider, resolvedModel);
724
728
  };
725
729
  var shouldDisableKimiThinking = (agentConfig, providerName, resolvedModel) => {
726
730
  if (agentConfig.enableThinking !== false) return false;
@@ -835,7 +839,7 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
835
839
  enable_thinking: agentConfig.enableThinking
836
840
  };
837
841
  }
838
- if (shouldDisableMiMoThinking(agentConfig)) {
842
+ if (shouldDisableMiMoThinking(agentConfig, resolvedModel)) {
839
843
  requestBody.thinking = { type: "disabled" };
840
844
  }
841
845
  if (shouldDisableKimiThinking(agentConfig, providerName, resolvedModel)) {
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-Y2IFJ7VM.js";
5
+ } from "./chunk-E2NP7ZQU.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -9,7 +9,7 @@ import {
9
9
  platformHostedModels,
10
10
  toCnyCredits,
11
11
  zaiModels
12
- } from "./chunk-UWMQ6FPM.js";
12
+ } from "./chunk-JTYPAMGP.js";
13
13
 
14
14
  // packages/integrations/qwen/models.ts
15
15
  var qwenModels = [
@@ -1599,14 +1599,14 @@ var GPT_5_5_PRO_LONG_CONTEXT_PRICE = {
1599
1599
  inputCacheHit: 0
1600
1600
  };
1601
1601
  var GPT_5_6_SOL_STANDARD_PRICE = {
1602
- input: 40,
1603
- output: 240,
1604
- inputCacheHit: 4
1602
+ input: 32,
1603
+ output: 160,
1604
+ inputCacheHit: 3.2
1605
1605
  };
1606
1606
  var GPT_5_6_SOL_LONG_CONTEXT_PRICE = {
1607
- input: 80,
1608
- output: 360,
1609
- inputCacheHit: 8
1607
+ input: 64,
1608
+ output: 240,
1609
+ inputCacheHit: 6.4
1610
1610
  };
1611
1611
  var GPT_5_6_TERRA_STANDARD_PRICE = {
1612
1612
  input: 16,
@@ -1694,6 +1694,9 @@ var openAIModels = [
1694
1694
  {
1695
1695
  name: "gpt-5.6-luna",
1696
1696
  displayName: "GPT-5.6 Luna (Fast)",
1697
+ // 已知缺口(2026-09-24 官网核对):官方对 >272K 输入有 2x/1.5x 规则,本条目
1698
+ // 未建模档位;平台托管侧又明确「价不随档位浮动」。是否给 BYO 档位属于计费
1699
+ // 策略决定,留待 owner 决策,不在此顺手改。
1697
1700
  endpointKey: "responses",
1698
1701
  hasVision: true,
1699
1702
  contextWindow: 105e4,
@@ -1889,6 +1892,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1889
1892
  "gemini-3.1-pro-preview",
1890
1893
  "gpt-5.5-pro",
1891
1894
  "gpt-6-astra",
1895
+ "gpt-6-luna",
1892
1896
  "gpt-5.6-sol",
1893
1897
  "gpt-5.6-terra",
1894
1898
  "gpt-5.6-luna",
@@ -1965,6 +1969,14 @@ function clampReasoningEffort(effort, provider) {
1965
1969
  var stepfunAllModels = [...stepfunModels, ...stepfunStepPlanModels];
1966
1970
  var moonshotAllModels = [...moonshotModels, ...kimiCodeModels];
1967
1971
  var qwenAllModels = [...qwenModels, ...qwenTokenPlanModels];
1972
+ var devinModels = [
1973
+ { name: "swe-2-max", displayName: "SWE-2 Max", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
1974
+ { name: "swe-2-high", displayName: "SWE-2 High", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
1975
+ { name: "swe-2-medium", displayName: "SWE-2 Medium", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
1976
+ { name: "swe-1-7", displayName: "SWE-1.7 Max", hasVision: true, contextWindow: 262e3, price: { input: 0, output: 0 } },
1977
+ { name: "swe-1-7-lightning", displayName: "SWE-1.7 Lightning Max", hasVision: true, contextWindow: 202752, price: { input: 0, output: 0 } },
1978
+ { name: "swe-1-6-fast", displayName: "SWE-1.6 Fast", hasVision: true, contextWindow: 2e5, price: { input: 0, output: 0 } }
1979
+ ];
1968
1980
  var MODEL_MAP = {
1969
1981
  // anthropic: anthropicModels,
1970
1982
  google: googleModels,
@@ -1984,6 +1996,7 @@ var MODEL_MAP = {
1984
1996
  };
1985
1997
  var MODEL_LOOKUP_MAP = {
1986
1998
  anthropic: [...anthropicModels, ...anthropicOAuthModels],
1999
+ devin: devinModels,
1987
2000
  xai: xaiModels,
1988
2001
  "opencode-go": opencodeGoModels,
1989
2002
  opencode: opencodeGoModels,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-MFW4BGJS.js";
3
+ } from "./chunk-COM7GG76.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-UWMQ6FPM.js";
7
+ } from "./chunk-JTYPAMGP.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-HJKGQPYF.js";
3
+ } from "./chunk-XGJAR4T5.js";
4
4
 
5
5
  // packages/ai/tools/agentCapabilities.ts
6
6
  var SYSTEM_AGENT_CAPABILITIES = [
@@ -18,9 +18,13 @@ var CORE_DRAINING_MAX_ATTEMPTS = 30;
18
18
  var RETRYABLE_HTTP_STATUSES = /* @__PURE__ */ new Set([429, 503]);
19
19
  function isTransientFetchError(error) {
20
20
  const message = toErrorMessage(error);
21
- return /certificate|handshake|network|socket|timed out|timeout|ECONNRESET/i.test(
21
+ return /certificate|handshake|network|socket|timed out|timeout|ECONNRESET|UND_ERR_SOCKET|other side closed/i.test(
22
22
  message
23
- );
23
+ ) || // undici(Node fetch)连接中途被断开时抛 `TypeError: terminated`,message
24
+ // 就是裸的 "terminated"(真实 cause 是 UND_ERR_SOCKET)。只认「整条就是
25
+ // terminated」或「前缀: terminated」这种形态,避免把 access_terminated_error
26
+ // (配额封禁)或 "process was terminated by signal" 误判成可重试的网络抖动。
27
+ /(?:^|:\s*)terminated$/i.test(message.trim());
24
28
  }
25
29
  async function defaultSleep(ms) {
26
30
  await new Promise((resolve) => setTimeout(resolve, ms));
@@ -0,0 +1,10 @@
1
+ // packages/agent-runtime/devinOAuthPure.ts
2
+ function isDevinOAuthAgent(agent) {
3
+ const ref = agent.apiKeyRef?.trim().toLowerCase();
4
+ const prov = agent.provider?.trim().toLowerCase();
5
+ return ref === "devin" || prov === "devin";
6
+ }
7
+
8
+ export {
9
+ isDevinOAuthAgent
10
+ };
@@ -12,7 +12,7 @@ import {
12
12
  getProfileTokens,
13
13
  loadProfileConfig,
14
14
  saveDefaultProfile
15
- } from "./chunk-2KDR4CWE.js";
15
+ } from "./chunk-BYMV6QZG.js";
16
16
  import {
17
17
  resolveAuthTokenFromEnv
18
18
  } from "./chunk-A7GB5UGH.js";
@@ -4,7 +4,7 @@ import {
4
4
  refreshAntigravityOAuthToken,
5
5
  refreshOpenAiCodexToken,
6
6
  xaiRefresh
7
- } from "./chunk-ZIHJVHFH.js";
7
+ } from "./chunk-WON762L4.js";
8
8
  import {
9
9
  defaultLoopbackRequest
10
10
  } from "./chunk-EADNWBAZ.js";
@@ -29,7 +29,7 @@ import {
29
29
  terminateRunProcess,
30
30
  transitionRunToTerminal,
31
31
  withQueueLock
32
- } from "./chunk-HH65VA5U.js";
32
+ } from "./chunk-CPH3W5A7.js";
33
33
  import {
34
34
  clearCredentialAvailability,
35
35
  markCredentialUnavailable,
@@ -40,27 +40,27 @@ import {
40
40
  } from "./chunk-DWUCB2A3.js";
41
41
  import {
42
42
  buildLocalAgentLookupKeys
43
- } from "./chunk-OAJRZ35U.js";
43
+ } from "./chunk-IIKPWSPX.js";
44
44
  import {
45
45
  LOCAL_CODEX_AGENT_ID,
46
46
  LOCAL_CODEX_AGENT_KEY,
47
47
  NOLO_DEFAULT_AGENT_ID,
48
48
  NOLO_DEFAULT_AGENT_KEY
49
- } from "./chunk-SPAQ4PVV.js";
49
+ } from "./chunk-SAFZABH7.js";
50
50
  import {
51
51
  CliProviderQuotaError,
52
52
  executeCli
53
53
  } from "./chunk-MP64VFGD.js";
54
54
  import {
55
55
  inferCaptureIntent
56
- } from "./chunk-2XEVK4BT.js";
56
+ } from "./chunk-TMAZ3VHN.js";
57
57
  import {
58
58
  buildCliPrompt
59
59
  } from "./chunk-ATNTHIZI.js";
60
60
  import {
61
61
  inlineImageUrlsForCustomProvider,
62
62
  prepareTools
63
- } from "./chunk-VQD6BTML.js";
63
+ } from "./chunk-YPYMGGPJ.js";
64
64
  import {
65
65
  getServerProviderSecret
66
66
  } from "./chunk-HS7MLR74.js";
@@ -78,11 +78,11 @@ import {
78
78
  rememberMemoryFunctionSchema,
79
79
  resolveAgentRequiredPackIds,
80
80
  setTodoListFunc
81
- } from "./chunk-NVHJWYUO.js";
81
+ } from "./chunk-UBNV6CS6.js";
82
82
  import {
83
83
  fetchWithTransientRetry,
84
84
  isTransientFetchError
85
- } from "./chunk-5XTOKQLW.js";
85
+ } from "./chunk-5UTFL4QJ.js";
86
86
  import {
87
87
  TASK_PREVIEW_MAX,
88
88
  formatListRunsCard,
@@ -101,13 +101,14 @@ import {
101
101
  prepareTokenUsageData,
102
102
  resolveBuiltinPlatformAgentConfig,
103
103
  runKeyed
104
- } from "./chunk-L2VNQQ7M.js";
104
+ } from "./chunk-SUERPXJZ.js";
105
105
  import {
106
+ BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
106
107
  BUILTIN_TITLE_LLM_CONFIG
107
- } from "./chunk-EVBFYPDC.js";
108
+ } from "./chunk-MC4XLIJ7.js";
108
109
  import {
109
110
  fetchServerSyncedCredential
110
- } from "./chunk-4FRNB4ZG.js";
111
+ } from "./chunk-X2ZTVRXP.js";
111
112
  import {
112
113
  require_date_fns
113
114
  } from "./chunk-M76ECQRD.js";
@@ -123,7 +124,7 @@ import {
123
124
  applySystemBuiltinSkillFilter,
124
125
  expandEnabledPacks,
125
126
  resolveEffectiveEnabledPacks
126
- } from "./chunk-XCSSFPTB.js";
127
+ } from "./chunk-XAQAF25W.js";
127
128
  import {
128
129
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
129
130
  Duration_exports,
@@ -160,7 +161,7 @@ import {
160
161
  resolveOpenAiCompatibleProviderConfig,
161
162
  shouldUseGeminiNativeToolRoute,
162
163
  summarizeToolArguments
163
- } from "./chunk-VW3YGKWR.js";
164
+ } from "./chunk-R2YY6MWV.js";
164
165
  import {
165
166
  PlatformStreamInterruptedError,
166
167
  buildPlatformChatCompletionRequest,
@@ -172,14 +173,14 @@ import {
172
173
  readSseDataValues,
173
174
  resolvePlatformChatProviderConfig,
174
175
  shouldUsePlatformChatProvider
175
- } from "./chunk-EXWOCYCR.js";
176
- import {
177
- isDevinOAuthAgent
178
- } from "./chunk-FMODTASJ.js";
176
+ } from "./chunk-HWZAXNO7.js";
179
177
  import {
180
178
  resolveAgentRuntimeConfigFromRecord,
181
179
  resolveHistoricalToolContentCap
182
- } from "./chunk-WSOMSDQB.js";
180
+ } from "./chunk-G5X57NDE.js";
181
+ import {
182
+ isDevinOAuthAgent
183
+ } from "./chunk-5ZUL4CUO.js";
183
184
  import {
184
185
  collectStablePromptPrefix,
185
186
  convertMessagesToResponsesInput,
@@ -190,7 +191,7 @@ import {
190
191
  buildNoloWorkspaceOpenAiTools,
191
192
  parseNoloWorkspaceToolArguments,
192
193
  resolveRuntimeToolSurfaceForAgent
193
- } from "./chunk-OKCTLCKS.js";
194
+ } from "./chunk-YOXYA2GU.js";
194
195
  import {
195
196
  mergeAvailabilityDeadline,
196
197
  resolveAvailabilityAction,
@@ -198,30 +199,30 @@ import {
198
199
  } from "./chunk-CJCJF5XB.js";
199
200
  import {
200
201
  isAntigravityOAuthAgent
201
- } from "./chunk-DS3SQTDT.js";
202
+ } from "./chunk-NKIH4Q7W.js";
202
203
  import {
203
204
  resolvePlatformAuthToken
204
- } from "./chunk-X77EN2BJ.js";
205
+ } from "./chunk-MBEEYLGL.js";
205
206
  import {
206
207
  buildDialogFallbackTitleFromUserInput,
207
208
  normalizeDialogTitle
208
209
  } from "./chunk-2MBTWINN.js";
209
210
  import {
210
211
  normalizeUsage
211
- } from "./chunk-OCL2YCAU.js";
212
+ } from "./chunk-GRDSMV4V.js";
212
213
  import {
213
214
  clipCompactText,
214
215
  createProviderCallTimingTracker,
215
216
  finalizeProviderCallTiming,
216
217
  observeMeaningfulProviderResponseAt,
217
218
  withProviderCallTimingFields
218
- } from "./chunk-KT6LENVP.js";
219
+ } from "./chunk-BF2K6MRF.js";
219
220
  import {
220
221
  estimateTokenCount
221
222
  } from "./chunk-PSCNXBYA.js";
222
223
  import {
223
224
  isAdaptiveThinkingModelId
224
- } from "./chunk-6H7GN3JL.js";
225
+ } from "./chunk-4CAPEGHN.js";
225
226
  import {
226
227
  compactWhitespace
227
228
  } from "./chunk-DWLEOOGR.js";
@@ -261,7 +262,7 @@ import {
261
262
  } from "./chunk-QSJ3HFEF.js";
262
263
  import {
263
264
  isSystemBuiltinTrustedAgentKey
264
- } from "./chunk-HJKGQPYF.js";
265
+ } from "./chunk-XGJAR4T5.js";
265
266
  import {
266
267
  isRecord
267
268
  } from "./chunk-KUG52IAP.js";
@@ -578,6 +579,10 @@ var STRINGS = {
578
579
  en: "\u2713 Copied the selection to the clipboard.",
579
580
  zh: "\u2713 \u5DF2\u590D\u5236\u9009\u533A\u5230\u526A\u8D34\u677F\u3002"
580
581
  },
582
+ copiedSelectionBusy: {
583
+ en: "\u2713 Copied the selection to the clipboard. Press Esc to stop generating.",
584
+ zh: "\u2713 \u5DF2\u590D\u5236\u9009\u533A\u5230\u526A\u8D34\u677F\u3002\u6309 Esc \u505C\u6B62\u751F\u6210\u3002"
585
+ },
581
586
  copiedAllHistory: {
582
587
  en: "\u2713 Copied the full conversation to the clipboard.",
583
588
  zh: "\u2713 \u5DF2\u590D\u5236\u5B8C\u6574\u5BF9\u8BDD\u5230\u526A\u8D34\u677F\u3002"
@@ -11832,13 +11837,18 @@ async function generateLocalDialogTitle(input) {
11832
11837
  return { title: fallbackTitle, source: "fallback" };
11833
11838
  }
11834
11839
  if (input.resolveProviderConfig && input.buildRequest && input.parseResponse) {
11835
- try {
11836
- const providerConfig = await input.resolveProviderConfig({
11837
- agentConfig: { ...BUILTIN_TITLE_LLM_CONFIG, key: BUILTIN_TITLE_LLM_CONFIG.id },
11838
- env
11839
- });
11840
- if (providerConfig?.authToken) {
11841
- const request = input.buildRequest({
11840
+ const resolveProviderConfig = input.resolveProviderConfig;
11841
+ const buildRequest = input.buildRequest;
11842
+ const parseResponse = input.parseResponse;
11843
+ const attemptPlatformTitle = async (model) => {
11844
+ try {
11845
+ const agentConfig = model ? { ...BUILTIN_TITLE_LLM_CONFIG, model } : BUILTIN_TITLE_LLM_CONFIG;
11846
+ const providerConfig = await resolveProviderConfig({
11847
+ agentConfig: { ...agentConfig, key: agentConfig.id },
11848
+ env
11849
+ });
11850
+ if (!providerConfig?.authToken) return null;
11851
+ const request = buildRequest({
11842
11852
  providerConfig,
11843
11853
  messages: [
11844
11854
  {
@@ -11870,21 +11880,26 @@ async function generateLocalDialogTitle(input) {
11870
11880
  body: JSON.stringify(patchedBody),
11871
11881
  signal: AbortSignal.timeout(timeoutMs)
11872
11882
  });
11873
- if (res.ok) {
11874
- const raw = await res.text().catch(() => "");
11875
- const data = safeParseJson(raw);
11876
- if (data) {
11877
- const parsed = input.parseResponse({ providerConfig, data });
11878
- const generated = normalizeDialogTitle(
11879
- extractTitleFromLlmContent(parsed.content)
11880
- );
11881
- if (generated) {
11882
- return { title: generated, source: "llm" };
11883
- }
11884
- }
11885
- }
11883
+ if (!res.ok) return null;
11884
+ const raw = await res.text().catch(() => "");
11885
+ const data = safeParseJson(raw);
11886
+ if (!data) return null;
11887
+ const parsed = parseResponse({ providerConfig, data });
11888
+ const generated = normalizeDialogTitle(
11889
+ extractTitleFromLlmContent(parsed.content)
11890
+ );
11891
+ return generated || null;
11892
+ } catch {
11893
+ return null;
11886
11894
  }
11887
- } catch {
11895
+ };
11896
+ const primaryTitle = await attemptPlatformTitle();
11897
+ if (primaryTitle) return { title: primaryTitle, source: "llm" };
11898
+ const fallbackModelTitle = await attemptPlatformTitle(
11899
+ BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL
11900
+ );
11901
+ if (fallbackModelTitle) {
11902
+ return { title: fallbackModelTitle, source: "llm" };
11888
11903
  }
11889
11904
  }
11890
11905
  if (input.resolveDirectProviderConfig) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-JC2WQS66.js";
4
+ } from "./chunk-377KM42Z.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,21 +1,22 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-3T4PRBHV.js";
4
+ } from "./chunk-3XMOAYRC.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-Y2IFJ7VM.js";
7
+ } from "./chunk-E2NP7ZQU.js";
8
8
  import {
9
9
  deriveCredentialGroup,
10
10
  toSafeAgentSummary
11
- } from "./chunk-GRJTR4PU.js";
11
+ } from "./chunk-OH7H6LPC.js";
12
12
  import {
13
13
  PUBLIC_AGENT_KEY_PREFIX,
14
14
  isOwnedAgentKey,
15
15
  ownedAgentKey,
16
+ ownedAgentKeyPrefix,
16
17
  parseOwnedAgentId,
17
18
  publicAgentKey
18
- } from "./chunk-BJIRLHJR.js";
19
+ } from "./chunk-GII32WZW.js";
19
20
 
20
21
  // packages/cli/agentListHelpers.ts
21
22
  function parseAgentRecordId(privateKey, explicitId) {
@@ -105,14 +106,17 @@ function parseAgentListArgs(args) {
105
106
  async function listLocalCachedAgents(args) {
106
107
  const privateRecords = /* @__PURE__ */ new Map();
107
108
  const publicKeys = /* @__PURE__ */ new Set();
108
- for await (const [key, value] of args.db.iterator({ gte: "", lte: "\uFFFF" })) {
109
- if (typeof key !== "string" || !value || typeof value !== "object") continue;
110
- if (isOwnedAgentKey(key, args.userId)) {
111
- privateRecords.set(key, { ...value, dbKey: key });
112
- continue;
113
- }
114
- if (key.startsWith(PUBLIC_AGENT_KEY_PREFIX)) {
115
- publicKeys.add(key);
109
+ const ownedPrefix = ownedAgentKeyPrefix(args.userId);
110
+ for (const prefix of [ownedPrefix, PUBLIC_AGENT_KEY_PREFIX]) {
111
+ for await (const [key, value] of args.db.iterator({ gte: prefix, lte: `${prefix}\uFFFF` })) {
112
+ if (typeof key !== "string" || !value || typeof value !== "object") continue;
113
+ if (isOwnedAgentKey(key, args.userId)) {
114
+ privateRecords.set(key, { ...value, dbKey: key });
115
+ continue;
116
+ }
117
+ if (key.startsWith(PUBLIC_AGENT_KEY_PREFIX)) {
118
+ publicKeys.add(key);
119
+ }
116
120
  }
117
121
  }
118
122
  const agents = sortListedAgents(
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-DWLEOOGR.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-PHDKTASK.js";
9
+ } from "./chunk-XLGHBHGP.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-5EJZGJS2.js";
12
+ } from "./chunk-F3UTRUDO.js";
13
13
  import {
14
14
  getRuntimeServerContext
15
15
  } from "./chunk-UKWGR5SS.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-IMDA4FW4.js";
4
+ } from "./chunk-7IBK6MYW.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-NVHJWYUO.js";
7
+ } from "./chunk-UBNV6CS6.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-VW3YGKWR.js";
10
+ } from "./chunk-R2YY6MWV.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-OKCTLCKS.js";
13
+ } from "./chunk-YOXYA2GU.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
16
  } from "./chunk-HVURBGF3.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-VMFTFOWF.js";
36
36
  import {
37
37
  ownedAgentKey
38
- } from "./chunk-BJIRLHJR.js";
38
+ } from "./chunk-GII32WZW.js";
39
39
  import {
40
40
  isRecord
41
41
  } from "./chunk-KUG52IAP.js";
@@ -285,6 +285,27 @@ function saveProfileAgentSelection(selection, path = getDefaultProfileConfigPath
285
285
  `, "utf8");
286
286
  return config;
287
287
  }
288
+ function getProfileOAuthSync(provider, path = getDefaultProfileConfigPath()) {
289
+ const config = loadProfileConfig(path);
290
+ if (!config) return void 0;
291
+ const profile = config.profiles[config.currentProfile];
292
+ return profile?.oauthSync?.[provider];
293
+ }
294
+ function saveProfileOAuthSync(provider, sync, path = getDefaultProfileConfigPath()) {
295
+ if (isProtectedHomeProfileWrite(path)) return null;
296
+ const config = loadProfileConfig(path);
297
+ if (!config) return null;
298
+ const profile = config.profiles[config.currentProfile];
299
+ if (!profile) return null;
300
+ profile.oauthSync = {
301
+ ...profile.oauthSync ?? {},
302
+ [provider]: sync
303
+ };
304
+ mkdirSync(dirname(path), { recursive: true });
305
+ writeFileSync(path, `${JSON.stringify(config, null, 2)}
306
+ `, "utf8");
307
+ return config;
308
+ }
288
309
 
289
310
  export {
290
311
  getDefaultProfileConfigPath,
@@ -299,5 +320,7 @@ export {
299
320
  saveProfileLocale,
300
321
  getAgentSelectionAuditPath,
301
322
  readLastAgentSelectionAudit,
302
- saveProfileAgentSelection
323
+ saveProfileAgentSelection,
324
+ getProfileOAuthSync,
325
+ saveProfileOAuthSync
303
326
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-Y2IFJ7VM.js";
4
+ } from "./chunk-E2NP7ZQU.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";