nolo-cli 0.97.0-alpha.2 → 0.97.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 (182) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-G2MRKK2K.js → _executeModel-DYHTQJZC.js} +68 -63
  3. package/{action-YVYQEAAV.js → action-GI44T4DR.js} +10 -10
  4. package/{addContentAction-O7R66HEX.js → addContentAction-B2DRF7P6.js} +9 -9
  5. package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-T3I7IXPK.js} +15 -17
  6. package/{agentDeleteCommand-4427YKQF.js → agentDeleteCommand-LLNNP3AM.js} +47 -43
  7. package/{agentEmailCommands-RNBKKO7Q.js → agentEmailCommands-MQOP76DK.js} +90 -82
  8. package/agentListCommands-J3MWAZWO.js +741 -0
  9. package/{agentMachineCommands-FOFX5S2Q.js → agentMachineCommands-EQIRKAZO.js} +42 -38
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-EMZCM6VA.js} +1 -1
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-HF4A42D4.js} +1 -1
  12. package/agentRecordCommands-7MQRBMWZ.js +136 -0
  13. package/{agentRunCommand-2W3Q3A7M.js → agentRunCommand-H6BYSTJ7.js} +90 -80
  14. package/{agentRunControl-WCTKX5VL.js → agentRunControl-2TTTUTSW.js} +2 -2
  15. package/{agentRuntimeLocal-IW3IM5P6.js → agentRuntimeLocal-AY6YNUAL.js} +44 -36
  16. package/{agentSlice-SK47GTN7.js → agentSlice-FOZUXW7X.js} +11 -11
  17. package/{appDeleteCommands-ZXLXNRHF.js → appDeleteCommands-QTTL3QF3.js} +42 -38
  18. package/{appDeployCommands-PWB4YERK.js → appDeployCommands-43LJECGV.js} +42 -38
  19. package/{appDeployStatusCommands-2EZKZP7Y.js → appDeployStatusCommands-L5BKOLYW.js} +42 -38
  20. package/{appGetCommands-JNUKOWHO.js → appGetCommands-HOFZKOPC.js} +42 -38
  21. package/{appListCommands-6X3H67SS.js → appListCommands-I7C3SJCE.js} +42 -38
  22. package/{authCommand-F4EFRRX6.js → authCommand-2YPMMIJN.js} +117 -23
  23. package/{authCommands-RGOGCPP6.js → authCommands-FFDS4FVX.js} +7 -5
  24. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-CALVIJTX.js} +6 -5
  25. package/{chatQueueReduxAdapter-ZJ555AT2.js → chatQueueReduxAdapter-NMEZRYC2.js} +30 -29
  26. package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
  27. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
  28. package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
  29. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  30. package/{chunk-YQTQQX2H.js → chunk-2UV22D2F.js} +1 -1
  31. package/{chunk-7D6Z6AA4.js → chunk-3BFMH6GE.js} +6 -7
  32. package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
  33. package/{chunk-QIAVMDHY.js → chunk-3LX6YE3P.js} +4 -4
  34. package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
  35. package/chunk-4LCOCOR5.js +50 -0
  36. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  37. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  38. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  39. package/chunk-5J3PYNUP.js +255 -0
  40. package/chunk-5MMAK75Q.js +15 -0
  41. package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
  42. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  43. package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
  44. package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
  45. package/{chunk-IIVGDG4I.js → chunk-6PHKBY2Q.js} +10 -4
  46. package/{chunk-ASQYTZTR.js → chunk-6ZWMH6TJ.js} +69 -36
  47. package/{chunk-ABQYVJBJ.js → chunk-7CHC4W22.js} +1 -1
  48. package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
  49. package/{chunk-SDTTBMBU.js → chunk-7WCQEMPB.js} +888 -1079
  50. package/{chunk-BLJWCTRL.js → chunk-AOPCEXTB.js} +1 -1
  51. package/{chunk-WGR3J4Q6.js → chunk-APMUYAPK.js} +17 -4
  52. package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
  53. package/{chunk-RG6JBBX5.js → chunk-AWF3WO5R.js} +166 -13
  54. package/{chunk-GPCZ7UXG.js → chunk-AZRHIN5B.js} +1 -1
  55. package/chunk-BMQ2MJUK.js +153 -0
  56. package/{chunk-B4ZH7KVO.js → chunk-C3VLSD4K.js} +236 -36
  57. package/{chunk-4EZHSKTB.js → chunk-C53ZG23R.js} +2 -2
  58. package/chunk-CHOZJMJS.js +78 -0
  59. package/{chunk-HJUYAD4A.js → chunk-CPUFH46E.js} +8 -8
  60. package/{chunk-LS2ZANRJ.js → chunk-CTUQJVQM.js} +1 -1
  61. package/{chunk-BP4XNZRM.js → chunk-CU3QB4HW.js} +3 -3
  62. package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
  63. package/{chunk-KQ4ONNQD.js → chunk-DAWDCRIG.js} +82 -8
  64. package/{chunk-VLTIYV3X.js → chunk-DCLMZ5TX.js} +4 -4
  65. package/{chunk-UKZDAFYT.js → chunk-DSSTTEKI.js} +6 -10
  66. package/{chunk-L7I247DF.js → chunk-EKS2APRJ.js} +21 -5
  67. package/{chunk-HVURBGF3.js → chunk-ESRMFY7G.js} +2 -2
  68. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  69. package/chunk-GMZLP5DV.js +82 -0
  70. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  71. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  72. package/{chunk-OIMN34NA.js → chunk-HKTIX4ZE.js} +23 -76
  73. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  74. package/{chunk-H62HCIUP.js → chunk-HYZIYH2H.js} +11 -10
  75. package/{chunk-3VNWWVKB.js → chunk-I3QNET24.js} +30 -17
  76. package/{chunk-WV42OMV7.js → chunk-IAESIMK7.js} +4 -4
  77. package/chunk-JBOO3DKI.js +7808 -0
  78. package/{chunk-O35EJJVP.js → chunk-JJ7P5CIY.js} +56 -34
  79. package/{chunk-OZPMVBJI.js → chunk-JZ5II5UV.js} +15 -20
  80. package/{chunk-JRQFUXY7.js → chunk-KCDUTE5V.js} +96 -19
  81. package/{chunk-QLNJRTKI.js → chunk-KHVJXNRY.js} +100 -100
  82. package/{chunk-ADTY7BWR.js → chunk-L76GP4ER.js} +24 -5
  83. package/{chunk-7S4YWN7P.js → chunk-MX574M24.js} +1 -1
  84. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  85. package/{chunk-53HEEOTT.js → chunk-O26PCYLS.js} +80 -13
  86. package/{chunk-3DII57IT.js → chunk-O2OWEFII.js} +1 -1
  87. package/{chunk-TDRTS7QW.js → chunk-O6JPWEEK.js} +77 -17
  88. package/chunk-OCZKATRC.js +129 -0
  89. package/{chunk-6D6VBVEW.js → chunk-OTEMQQZI.js} +80 -14
  90. package/chunk-P6GMCCAT.js +870 -0
  91. package/{chunk-3SK4LEIH.js → chunk-PLRLUZWS.js} +853 -209
  92. package/{chunk-DHDMC6FO.js → chunk-QKUMVP3O.js} +11 -6
  93. package/{chunk-X4QAVDFE.js → chunk-RMAWULCS.js} +498 -480
  94. package/{chunk-V4MJDUSR.js → chunk-RSEEDUMS.js} +2 -2
  95. package/{chunk-UZGQNTVW.js → chunk-S5XGT6GB.js} +5 -3
  96. package/{chunk-76WEAXJB.js → chunk-SACTCJAC.js} +18 -15
  97. package/{chunk-AFUORTY4.js → chunk-SONWNI3L.js} +21 -21
  98. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  99. package/{chunk-2YMRWISD.js → chunk-TU5NE4U3.js} +9 -84
  100. package/chunk-TY3TIUJK.js +89 -0
  101. package/chunk-UEGYKNHO.js +13349 -0
  102. package/chunk-UNYJU5L6.js +780 -0
  103. package/{chunk-J4MOO56S.js → chunk-UQNS32WZ.js} +10 -2
  104. package/chunk-VIWDGTDA.js +8 -0
  105. package/chunk-VJVNU77E.js +83 -0
  106. package/{chunk-EHKBVWKL.js → chunk-VYN7O3OY.js} +1 -1
  107. package/{chunk-NEDZDG3M.js → chunk-WILHZY7K.js} +45 -45
  108. package/{chunk-UKWGR5SS.js → chunk-WIWM4FE3.js} +187 -398
  109. package/{chunk-R7N5TMTV.js → chunk-X7YLNILS.js} +13 -13
  110. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  111. package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
  112. package/{chunk-SNPMM7H3.js → chunk-Y6AZRODX.js} +13 -13
  113. package/{chunk-RSJECD7I.js → chunk-YJKDTJ2X.js} +7 -7
  114. package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
  115. package/{chunk-TOP2VXOR.js → chunk-Z4CSIXYP.js} +2 -2
  116. package/{chunk-2F7RJC6L.js → chunk-ZOVKKMF6.js} +1 -1
  117. package/chunk-ZRAU6T47.js +56 -0
  118. package/{chunk-Z77CRGTW.js → chunk-ZYWQNCBN.js} +1 -1
  119. package/commandRegistry-HUFXCF7Z.js +833 -0
  120. package/{contentThunks-YLWTUILV.js → contentThunks-TD5YOAQM.js} +32 -30
  121. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  122. package/{createAgentAutomationAction-HFLPOBWQ.js → createAgentAutomationAction-XUG62ANM.js} +32 -30
  123. package/{createDialogAction-4H52MURR.js → createDialogAction-L3CMZKNL.js} +36 -33
  124. package/{createPageAction-5YDRMJOS.js → createPageAction-WJ3MX6JS.js} +38 -36
  125. package/{chunk-NUVMWYJM.js → cursorProvider-YGGNMVWX.js} +2494 -9892
  126. package/{dbSlice-XVWBAGYN.js → dbSlice-DQ32LYTJ.js} +8 -8
  127. package/{deleteFile-YG6QMJLU.js → deleteFile-NX6QHCWZ.js} +3 -3
  128. package/{dialogCommands-KFK2FF5B.js → dialogCommands-VM3I4HBW.js} +45 -41
  129. package/{dialogSlice-TMSHUGEM.js → dialogSlice-DSHG3YUE.js} +36 -29
  130. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  131. package/{docCreateCommands-V777WOZ7.js → docCreateCommands-TYUJPCOP.js} +44 -40
  132. package/{docDeleteCommands-5KHT7Z5Q.js → docDeleteCommands-5XEG2LXO.js} +44 -40
  133. package/{docReadCommands-BLROGWP3.js → docReadCommands-M6RO6QHV.js} +43 -39
  134. package/{docStore-OBC5QOW7.js → docStore-RYOGMPEF.js} +11 -10
  135. package/{docUpdateCommands-QXOZHQ5H.js → docUpdateCommands-DKOFTZRX.js} +44 -40
  136. package/{fetchMessages-EIU7UFFK.js → fetchMessages-67MEFPZR.js} +2 -2
  137. package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +3 -3
  138. package/{handleSendMessageAction-4LGNXH6T.js → handleSendMessageAction-XH742B27.js} +91 -83
  139. package/index.js +87 -884
  140. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-EBRS242U.js} +2 -2
  141. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-5W6IJRAD.js} +6 -6
  142. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-3LRMNLCM.js} +1 -1
  143. package/{machineCommands-SNLCRHQK.js → machineCommands-EY3SKJCP.js} +85 -77
  144. package/{machineWsRunDispatch-ZGZVDQSO.js → machineWsRunDispatch-OJ77YNRD.js} +82 -74
  145. package/{memberThunks-QGFLFVCI.js → memberThunks-5ZXPR63F.js} +9 -9
  146. package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
  147. package/oauthTokenStore-ITEB663N.js +23 -0
  148. package/package.json +1 -1
  149. package/pdf-U6KSUEZZ.js +26435 -0
  150. package/processSpawn-SOAV3FEV.js +11 -0
  151. package/profileConfig-ZGOFORWV.js +43 -0
  152. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-76AVU3HD.js} +7 -7
  153. package/{providerRegistry-757OWH3O.js → providerRegistry-Z62NC45X.js} +11 -7
  154. package/{read-COE3ZYR6.js → read-EPTJRAEF.js} +5 -5
  155. package/{readDocTool-5USN4A6V.js → readDocTool-W4NDXNEX.js} +5 -3
  156. package/{readlineWorkspace-OUL7ZN7D.js → readlineWorkspace-PMTHAVMB.js} +2447 -2022
  157. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-BVAWQKXE.js} +17 -19
  158. package/{runAgentClientLoop-GD3APV7V.js → runAgentClientLoop-7WXN6I7L.js} +62 -58
  159. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-3USD722U.js} +3 -3
  160. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  161. package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-LYY45IAD.js} +12 -11
  162. package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-73IL7DLU.js} +18 -20
  163. package/{settingSlice-ZQZVUPKK.js → settingSlice-Q6EKL7EQ.js} +9 -9
  164. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
  165. package/{spaceCommands-TIDVUPDV.js → spaceCommands-QFP4ZXKG.js} +44 -40
  166. package/{streamAgentChatTurn-M73KWCCU.js → streamAgentChatTurn-B4PXPJJS.js} +184 -91
  167. package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-UUXDSQ6X.js} +15 -17
  168. package/{tableCommands-O6NWHFKV.js → tableCommands-G7RV3RU3.js} +4 -4
  169. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-INIQCPGY.js} +3 -3
  170. package/{tools-DXXDQ2CP.js → tools-QFS2L7BU.js} +55 -51
  171. package/{tuiSummaryLlmCaller-VJY3YD2Q.js → tuiSummaryLlmCaller-74NRRLVW.js} +18 -16
  172. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  173. package/{updateDialogTitleAction-XI73NQMU.js → updateDialogTitleAction-HTDYCNNZ.js} +81 -43
  174. package/agentListCommands-O4AEMQVV.js +0 -406
  175. package/agentRecordCommands-6QK7AMXQ.js +0 -128
  176. package/chunk-M76ECQRD.js +0 -13658
  177. package/chunk-Q5FJJ6XI.js +0 -103
  178. package/chunk-S7Z2HMCN.js +0 -25
  179. package/chunk-WRFW73PB.js +0 -18881
  180. package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
  181. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  182. package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
@@ -9,7 +9,7 @@ import {
9
9
  platformHostedModels,
10
10
  toCnyCredits,
11
11
  zaiModels
12
- } from "./chunk-Q67DOFOO.js";
12
+ } from "./chunk-Y3PMXGLH.js";
13
13
 
14
14
  // packages/integrations/qwen/models.ts
15
15
  var qwenModels = [
@@ -1188,8 +1188,18 @@ function pipe(...pipe$1) {
1188
1188
 
1189
1189
  // packages/ai/agent/createAgentSchema.ts
1190
1190
  var DEFAULT_REASONING_EFFORT = "medium";
1191
+ var REASONING_EFFORT_OPTIONS = [
1192
+ "none",
1193
+ "minimal",
1194
+ "low",
1195
+ "medium",
1196
+ "high",
1197
+ "xhigh",
1198
+ "max"
1199
+ ];
1191
1200
  var PROVIDER_REASONING_EFFORT_VALUES = {
1192
1201
  openai: ["none", "minimal", "low", "medium", "high", "xhigh", "max"],
1202
+ openrouter: ["none", "minimal", "low", "medium", "high", "xhigh", "max"],
1193
1203
  deepseek: ["low", "high", "max"],
1194
1204
  // nolo (Ollama Cloud) 支持 DeepSeek/Kimi/GLM 等 thinking 模型,
1195
1205
  // reasoning_effort 通过 OpenAI 兼容端点透传到 Ollama Cloud。
@@ -1310,7 +1320,12 @@ var oauthModel = ({ name, displayName, contextWindow, thinkingMode, maxOutputTok
1310
1320
  price: { input: 0, output: 0 }
1311
1321
  });
1312
1322
  var anthropicOAuthModels = [
1313
- // 5 代(1M + Adaptive thinking always-on;官方 max output 128k)
1323
+ // 5 代与 5.5 代(1M + Adaptive thinking always-on;官方 max output 128k)
1324
+ oauthModel({ name: "claude-opus-5-5", displayName: "Claude Opus 5.5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
1325
+ // Claude Sonnet 5.5(2026-09-28 发布):官方规格 1M + Adaptive thinking + max output 128k。
1326
+ // 注意该模型对非默认 temperature/top_p/top_k 直接 400——nolo 的 anthropicAdapter
1327
+ // 不传采样参数,不受影响。
1328
+ oauthModel({ name: "claude-sonnet-5-5", displayName: "Claude Sonnet 5.5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
1314
1329
  oauthModel({ name: "claude-fable-5", displayName: "Claude Fable 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
1315
1330
  oauthModel({ name: "claude-opus-5", displayName: "Claude Opus 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
1316
1331
  oauthModel({ name: "claude-sonnet-5", displayName: "Claude Sonnet 5", contextWindow: 1e6, thinkingMode: "adaptive", maxOutputTokens: 128e3 }),
@@ -1325,6 +1340,11 @@ var anthropicOAuthModels = [
1325
1340
  // haiku-4-5(官方明确 context=200k + Extended thinking)
1326
1341
  oauthModel({ name: "claude-haiku-4-5-20251001", displayName: "Claude Haiku 4.5", contextWindow: 2e5, thinkingMode: "extended" })
1327
1342
  ];
1343
+ function anthropicOAuthModelMaxOutputTokens(model) {
1344
+ if (!model) return void 0;
1345
+ const found = anthropicOAuthModels.find((m) => m.name === model);
1346
+ return typeof found?.maxOutputTokens === "number" ? found.maxOutputTokens : void 0;
1347
+ }
1328
1348
  var OAUTH_MODEL_THINKING_MODE = new Map(
1329
1349
  anthropicOAuthModels.map((m) => [m.name, m.thinkingMode])
1330
1350
  );
@@ -1758,6 +1778,259 @@ var fireworksModels = [
1758
1778
  }
1759
1779
  ];
1760
1780
 
1781
+ // packages/ai/agent/openrouterModelCapability.ts
1782
+ var VALID_EFFORTS_SET = new Set(REASONING_EFFORT_OPTIONS);
1783
+ function extractOpenRouterReasoningCapability(rawModel) {
1784
+ if (!rawModel) {
1785
+ return {
1786
+ found: false,
1787
+ supportsReasoning: false,
1788
+ supportedEfforts: []
1789
+ };
1790
+ }
1791
+ const supportedParams = rawModel.supported_parameters ?? [];
1792
+ const reasoning = rawModel.reasoning;
1793
+ const hasReasoningSupport = Boolean(reasoning) || supportedParams.includes("reasoning") || supportedParams.includes("reasoning_effort") || supportedParams.includes("include_reasoning");
1794
+ if (!hasReasoningSupport) {
1795
+ return {
1796
+ found: true,
1797
+ supportsReasoning: false,
1798
+ supportedEfforts: []
1799
+ };
1800
+ }
1801
+ const rawEfforts = reasoning?.supported_efforts ?? [];
1802
+ const supportedEfforts = rawEfforts.filter(
1803
+ (e) => VALID_EFFORTS_SET.has(e)
1804
+ );
1805
+ let defaultEffort;
1806
+ if (reasoning?.default_effort && VALID_EFFORTS_SET.has(reasoning.default_effort) && supportedEfforts.includes(reasoning.default_effort)) {
1807
+ defaultEffort = reasoning.default_effort;
1808
+ } else if (supportedEfforts.length > 0) {
1809
+ defaultEffort = supportedEfforts.includes("medium") ? "medium" : supportedEfforts[0];
1810
+ }
1811
+ return {
1812
+ found: true,
1813
+ supportsReasoning: true,
1814
+ mandatory: reasoning?.mandatory,
1815
+ supportedEfforts,
1816
+ defaultEffort
1817
+ };
1818
+ }
1819
+ var cachedModels = null;
1820
+ var CACHE_TTL_MS = 10 * 60 * 1e3;
1821
+ function getCachedOpenRouterModelReasoning(modelId) {
1822
+ const trimmed = modelId.trim().toLowerCase();
1823
+ if (!trimmed) return null;
1824
+ if (!cachedModels || Date.now() - cachedModels.timestamp >= CACHE_TTL_MS) {
1825
+ return null;
1826
+ }
1827
+ const rawModel = cachedModels.data.get(trimmed);
1828
+ if (!rawModel) return null;
1829
+ return extractOpenRouterReasoningCapability(rawModel);
1830
+ }
1831
+
1832
+ // packages/ai/agent/modelReasoningCapability.ts
1833
+ var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
1834
+ var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
1835
+ var MODEL_REASONING_OVERRIDES = [
1836
+ // ---- OpenAI ----
1837
+ {
1838
+ providers: ["openai"],
1839
+ prefix: "gpt-5",
1840
+ includes: "-pro",
1841
+ efforts: ["high"],
1842
+ note: "gpt-5-pro \u7CFB\u5217\u53EA\u66B4\u9732 high \u6863\uFF08OpenAI \u6587\u6863\uFF1Apro \u53D8\u4F53\u4E0D\u53EF\u8C03\u4F4E\uFF09"
1843
+ },
1844
+ {
1845
+ providers: ["openai"],
1846
+ prefix: "o1-preview",
1847
+ supportsReasoning: false,
1848
+ note: "o1-preview \u4E0D\u63A5\u53D7 reasoning_effort \u53C2\u6570"
1849
+ },
1850
+ {
1851
+ providers: ["openai"],
1852
+ prefix: "o1-mini",
1853
+ supportsReasoning: false,
1854
+ note: "o1-mini \u4E0D\u63A5\u53D7 reasoning_effort \u53C2\u6570"
1855
+ },
1856
+ {
1857
+ providers: ["openai"],
1858
+ prefix: "o1",
1859
+ efforts: ["low", "medium", "high"],
1860
+ note: "o1 \u652F\u6301 low/medium/high\uFF0C\u65E0 none/minimal/xhigh/max"
1861
+ },
1862
+ {
1863
+ providers: ["openai"],
1864
+ prefix: "o3",
1865
+ efforts: ["low", "medium", "high"],
1866
+ note: "o3 / o3-mini \u652F\u6301 low/medium/high"
1867
+ },
1868
+ {
1869
+ providers: ["openai"],
1870
+ prefix: "o4-mini",
1871
+ efforts: ["low", "medium", "high"],
1872
+ note: "o4-mini \u652F\u6301 low/medium/high"
1873
+ },
1874
+ {
1875
+ providers: ["openai"],
1876
+ prefix: "gpt-4o",
1877
+ supportsReasoning: false,
1878
+ note: "gpt-4o \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
1879
+ },
1880
+ {
1881
+ providers: ["openai"],
1882
+ prefix: "gpt-4.1",
1883
+ supportsReasoning: false,
1884
+ note: "gpt-4.1 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
1885
+ },
1886
+ {
1887
+ providers: ["openai"],
1888
+ prefix: "chatgpt-4o",
1889
+ supportsReasoning: false,
1890
+ note: "chatgpt-4o \u975E\u63A8\u7406\u6A21\u578B"
1891
+ },
1892
+ // ---- xAI / Grok ----
1893
+ {
1894
+ providers: ["xai", "grok"],
1895
+ prefix: "grok-3-mini",
1896
+ efforts: ["low", "high"],
1897
+ note: "grok-3-mini \u4EC5 low/high\uFF0C\u65E0 medium\uFF08xAI \u6587\u6863\uFF09"
1898
+ },
1899
+ {
1900
+ providers: ["xai", "grok"],
1901
+ prefix: "grok-3",
1902
+ exact: true,
1903
+ // 只匹配 grok-3 本体;grok-3-fast 等变体不被误伤
1904
+ supportsReasoning: false,
1905
+ note: "grok-3\uFF08\u975E mini\uFF09\u4E0D\u652F\u6301 reasoning_effort"
1906
+ },
1907
+ {
1908
+ providers: ["xai", "grok"],
1909
+ prefix: "grok-2",
1910
+ supportsReasoning: false,
1911
+ note: "grok-2 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
1912
+ },
1913
+ // ---- DeepSeek ----
1914
+ {
1915
+ providers: ["deepseek"],
1916
+ prefix: "deepseek-chat",
1917
+ exact: true,
1918
+ // 只匹配 deepseek-chat 本体;deepseek-chat-v3.1 是混合推理模型
1919
+ supportsReasoning: false,
1920
+ note: "deepseek-chat\uFF08V3 \u975E\u63A8\u7406\u7EBF\uFF09\u65E0\u63A8\u7406\u5F3A\u5EA6"
1921
+ },
1922
+ // ---- Kimi / Moonshot ----
1923
+ {
1924
+ providers: ["kimi", "moonshot"],
1925
+ prefix: "moonshot-v1",
1926
+ supportsReasoning: false,
1927
+ note: "moonshot-v1 \u7CFB\u5217\u975E\u63A8\u7406\u6A21\u578B"
1928
+ },
1929
+ {
1930
+ providers: ["kimi", "moonshot"],
1931
+ prefix: "kimi-k2-instruct",
1932
+ supportsReasoning: false,
1933
+ note: "kimi-k2-instruct \u975E thinking \u53D8\u4F53"
1934
+ },
1935
+ {
1936
+ providers: ["kimi", "moonshot"],
1937
+ prefix: "kimi-latest",
1938
+ supportsReasoning: false,
1939
+ note: "kimi-latest \u6307\u5411\u975E\u63A8\u7406\u5FEB\u7167"
1940
+ }
1941
+ ];
1942
+ function modelBasename(model) {
1943
+ const idx = model.lastIndexOf("/");
1944
+ return idx === -1 ? model : model.slice(idx + 1);
1945
+ }
1946
+ function matchOverride(provider, model) {
1947
+ const m = model.toLowerCase();
1948
+ const base = modelBasename(m);
1949
+ const isGateway = GATEWAY_PROVIDERS.has(provider);
1950
+ let best = null;
1951
+ let bestPrefixLen = -1;
1952
+ for (const o of MODEL_REASONING_OVERRIDES) {
1953
+ if (!isGateway && !o.providers.includes(provider)) continue;
1954
+ const hit = o.exact ? m === o.prefix || base === o.prefix : m.startsWith(o.prefix) || base.startsWith(o.prefix);
1955
+ if (!hit) continue;
1956
+ if (o.includes && !m.includes(o.includes) && !base.includes(o.includes)) {
1957
+ continue;
1958
+ }
1959
+ if (o.prefix.length > bestPrefixLen) {
1960
+ best = o;
1961
+ bestPrefixLen = o.prefix.length;
1962
+ }
1963
+ }
1964
+ return best;
1965
+ }
1966
+ function capabilityFromOpenRouterLive(live) {
1967
+ return {
1968
+ found: true,
1969
+ supportsReasoning: live.supportsReasoning,
1970
+ efforts: live.supportedEfforts,
1971
+ defaultEffort: live.defaultEffort,
1972
+ mandatory: live.mandatory,
1973
+ source: "openrouter-live"
1974
+ };
1975
+ }
1976
+ function resolveModelReasoningCapability(provider, model) {
1977
+ const p = (provider ?? "").toLowerCase();
1978
+ const m = (model ?? "").trim();
1979
+ if (THINKING_MECHANISM_PROVIDERS.has(p)) {
1980
+ return {
1981
+ found: false,
1982
+ supportsReasoning: true,
1983
+ // 有推理能力,只是走 Thinking 机制而非 effort
1984
+ efforts: [],
1985
+ source: "provider-map"
1986
+ };
1987
+ }
1988
+ if (m) {
1989
+ const override = matchOverride(p, m);
1990
+ if (override) {
1991
+ const supportsReasoning = override.supportsReasoning ?? true;
1992
+ const efforts = supportsReasoning === false ? [] : override.efforts ?? PROVIDER_REASONING_EFFORT_VALUES[p] ?? [
1993
+ "low",
1994
+ "medium",
1995
+ "high"
1996
+ ];
1997
+ return {
1998
+ found: true,
1999
+ supportsReasoning,
2000
+ efforts,
2001
+ defaultEffort: efforts.includes("medium") ? "medium" : efforts[0],
2002
+ source: "model-override"
2003
+ };
2004
+ }
2005
+ }
2006
+ const providerEfforts = PROVIDER_REASONING_EFFORT_VALUES[p];
2007
+ if (providerEfforts) {
2008
+ return {
2009
+ found: false,
2010
+ supportsReasoning: providerEfforts.length > 0,
2011
+ efforts: providerEfforts,
2012
+ source: "provider-map"
2013
+ };
2014
+ }
2015
+ return {
2016
+ found: false,
2017
+ supportsReasoning: true,
2018
+ efforts: ["low", "medium", "high"],
2019
+ source: "provider-fallback"
2020
+ };
2021
+ }
2022
+ function resolveModelReasoningCapabilityWithCache(provider, model) {
2023
+ const p = (provider ?? "").toLowerCase();
2024
+ const m = (model ?? "").trim();
2025
+ if (p === "openrouter" && m) {
2026
+ const live = getCachedOpenRouterModelReasoning(m);
2027
+ if (live?.found) {
2028
+ return capabilityFromOpenRouterLive(live);
2029
+ }
2030
+ }
2031
+ return resolveModelReasoningCapability(provider, model);
2032
+ }
2033
+
1761
2034
  // packages/ai/llm/reasoningModels.ts
1762
2035
  var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1763
2036
  "deepseek-flash",
@@ -1772,6 +2045,8 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1772
2045
  "gemini-3.1-pro-preview",
1773
2046
  "gpt-5.5-pro",
1774
2047
  "gpt-6-astra",
2048
+ "gpt-6.1-sol",
2049
+ "gpt-6-sol",
1775
2050
  "gpt-6-luna",
1776
2051
  "gpt-5.6-sol",
1777
2052
  "gpt-5.6-terra",
@@ -1792,7 +2067,12 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
1792
2067
  "accounts/fireworks/models/glm-5p2",
1793
2068
  "zai-org/GLM-5.2-FP8"
1794
2069
  ]);
1795
- var isModelSupportReasoningEffort = (model) => REASONING_MODEL_NAMES.has(model);
2070
+ var isModelSupportReasoningEffort = (model, provider) => {
2071
+ if (provider && provider.toLowerCase() === "openrouter") {
2072
+ return true;
2073
+ }
2074
+ return REASONING_MODEL_NAMES.has(model);
2075
+ };
1796
2076
  var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
1797
2077
  var EFFORT_ORDER = [
1798
2078
  "none",
@@ -1819,13 +2099,23 @@ function nearestSupportedEffort(effort, supported) {
1819
2099
  }
1820
2100
  return EFFORT_ORDER[best];
1821
2101
  }
1822
- function clampReasoningEffort(effort, provider) {
2102
+ function clampReasoningEffort(effort, provider, model) {
1823
2103
  if (!effort) return void 0;
1824
2104
  const normalized = effort === "off" ? "none" : effort;
1825
2105
  const providerLower = (provider ?? "").toLowerCase();
1826
- if (providerLower === "anthropic" || providerLower === "google") {
2106
+ if (THINKING_MECHANISM_PROVIDERS.has(providerLower)) {
1827
2107
  return void 0;
1828
2108
  }
2109
+ if (model) {
2110
+ const cap = resolveModelReasoningCapabilityWithCache(provider, model);
2111
+ if (cap.found) {
2112
+ if (!cap.supportsReasoning || cap.efforts.length === 0) {
2113
+ return void 0;
2114
+ }
2115
+ if (cap.efforts.includes(normalized)) return normalized;
2116
+ return nearestSupportedEffort(normalized, cap.efforts);
2117
+ }
2118
+ }
1829
2119
  const supported = PROVIDER_REASONING_EFFORT_VALUES[providerLower];
1830
2120
  if (!supported || supported.length === 0) {
1831
2121
  if (normalized === "low" || normalized === "medium" || normalized === "high") {
@@ -1883,6 +2173,8 @@ var MODEL_LOOKUP_MAP = {
1883
2173
  ...MODEL_MAP
1884
2174
  };
1885
2175
  var ANTHROPIC_MODEL_ALIASES = {
2176
+ "claude-opus-5.5": "claude-opus-5-5",
2177
+ "claude-sonnet-5.5": "claude-sonnet-5-5",
1886
2178
  "claude-sonnet-4.6": "claude-3-7-sonnet-latest",
1887
2179
  "claude-sonnet-4.5": "claude-3-5-sonnet-latest"
1888
2180
  };
@@ -2097,6 +2389,7 @@ function getApiEndpoint(agent) {
2097
2389
  }
2098
2390
 
2099
2391
  export {
2392
+ anthropicOAuthModelMaxOutputTokens,
2100
2393
  isAdaptiveThinkingModelId,
2101
2394
  qwenModels,
2102
2395
  qwenTokenPlanModels,
@@ -2106,6 +2399,7 @@ export {
2106
2399
  stepfunStepPlanModels,
2107
2400
  opencodeGoModels,
2108
2401
  DEFAULT_REASONING_EFFORT,
2402
+ resolveModelReasoningCapabilityWithCache,
2109
2403
  isModelSupportReasoningEffort,
2110
2404
  clampReasoningEffort,
2111
2405
  MODEL_LOOKUP_MAP,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-76WEAXJB.js";
4
+ } from "./chunk-SACTCJAC.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
8
+ import {
9
+ createSpaceKey
10
+ } from "./chunk-UAD2WT54.js";
8
11
  import {
9
12
  parseUserIdFromAuthToken,
10
13
  readOption,
11
14
  resolveAuthToken,
12
15
  resolveServerUrl
13
16
  } from "./chunk-A7GB5UGH.js";
14
- import {
15
- createSpaceKey
16
- } from "./chunk-UAD2WT54.js";
17
17
  import {
18
18
  asTrimmedLowercaseString
19
19
  } from "./chunk-QSJ3HFEF.js";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-AGGIDPCZ.js";
7
7
  import {
8
8
  getModelConfig
9
- } from "./chunk-OIVSQH2O.js";
9
+ } from "./chunk-3BXNTXYI.js";
10
10
  import {
11
11
  isPlatformHostedImageModel
12
- } from "./chunk-Q67DOFOO.js";
12
+ } from "./chunk-Y3PMXGLH.js";
13
13
  import {
14
14
  asOptionalFiniteNumber
15
15
  } from "./chunk-WWC7I6TA.js";
@@ -0,0 +1,50 @@
1
+ // node_modules/date-fns/esm/_lib/requiredArgs/index.js
2
+ function requiredArgs(required, args) {
3
+ if (args.length < required) {
4
+ throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present");
5
+ }
6
+ }
7
+
8
+ // node_modules/@babel/runtime/helpers/esm/typeof.js
9
+ function _typeof(o) {
10
+ "@babel/helpers - typeof";
11
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
12
+ return typeof o2;
13
+ } : function(o2) {
14
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15
+ }, _typeof(o);
16
+ }
17
+
18
+ // node_modules/date-fns/esm/toDate/index.js
19
+ function toDate(argument) {
20
+ requiredArgs(1, arguments);
21
+ var argStr = Object.prototype.toString.call(argument);
22
+ if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
23
+ return new Date(argument.getTime());
24
+ } else if (typeof argument === "number" || argStr === "[object Number]") {
25
+ return new Date(argument);
26
+ } else {
27
+ if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") {
28
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
29
+ console.warn(new Error().stack);
30
+ }
31
+ return /* @__PURE__ */ new Date(NaN);
32
+ }
33
+ }
34
+
35
+ // node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
36
+ function addLeadingZeros(number, targetLength) {
37
+ var sign = number < 0 ? "-" : "";
38
+ var output = Math.abs(number).toString();
39
+ while (output.length < targetLength) {
40
+ output = "0" + output;
41
+ }
42
+ return sign + output;
43
+ }
44
+
45
+ export {
46
+ _typeof,
47
+ requiredArgs,
48
+ toDate,
49
+ addLeadingZeros
50
+ };
@@ -67,7 +67,8 @@ var wrapHistoricalSummaryWithReplayGuard = (summary) => {
67
67
  const trimmed = summary.trim();
68
68
  if (!trimmed) return "";
69
69
  return [
70
- "\u3010\u5386\u53F2\u53C2\u8003\uFF0C\u975E\u6D3B\u6307\u4EE4\u3011\u4EE5\u4E0B\u4E3A\u51BB\u7ED3\u6458\u8981\uFF0C\u5176\u4E2D\u7684\u4EFB\u52A1/skill/ARGUMENTS \u9ED8\u8BA4\u5DF2\u8FC7\u671F\uFF0C\u4E0D\u5F97\u91CD\u65B0\u6267\u884C\u3002",
70
+ "\u3010\u5386\u53F2\u53C2\u8003\uFF0C\u975E\u6D3B\u6307\u4EE4\u3011\u4EE5\u4E0B\u4E3A\u51BB\u7ED3\u6458\u8981\uFF1A\u5176\u4E2D\u7684**\u52A8\u4F5C\u6307\u4EE4**\u3001\u53C2\u6570\u4E0E skill \u8C03\u7528\u9ED8\u8BA4\u5DF2\u7ECF\u505A\u8FC7\uFF0C\u4E0D\u8981\u91CD\u653E\uFF08\u91CD\u590D\u5EFA\u5206\u652F/issue/\u4EFB\u52A1\u5C31\u662F\u91CD\u653E\uFF09\u3002",
71
+ "\u4F46**\u7528\u6237\u7684\u76EE\u6807\u4E0E\u610F\u56FE\u4ECD\u7136\u6709\u6548**\uFF1A\u5B83\u89E3\u91CA\u4E86\u8FD9\u6BB5\u5BF9\u8BDD\u4E3A\u4EC0\u4E48\u8981\u505A\u8FD9\u4E9B\u4E8B\uFF1B\u9047\u5230\u76F8\u5173\u8BDD\u9898\u65F6\u5148\u6309\u5B83\u7406\u89E3\u4E0A\u4E0B\u6587\uFF0C\u4E0D\u8981\u5F53\u6210\u5DF2\u8FC7\u671F\u7684\u80CC\u666F\u3002",
71
72
  `\u6458\u8981\u4E2D\u6807\u6CE8\u300C\uFF08\u5F85\u9A8C\u8BC1\uFF09\u300D\u7684\u9879\u9700\u590D\u6838\u786E\u8BA4\uFF1B\u672A\u5B8C\u6210\u5F85\u529E\u548C\u300C\u4E0B\u4E00\u6B65\u300D\u9700\u7EE7\u7EED\u63A8\u8FDB\u2014\u2014\u8FD9\u4E9B\u662F\u7EED\u4F5C\u65B9\u5411\uFF0C\u4E0D\u662F\u91CD\u653E\u6307\u4EE4\u3002`,
72
73
  trimmed
73
74
  ].join("\n");
@@ -21,7 +21,7 @@ var BUILTIN_SUMMARY_LLM_CONFIG = {
21
21
  model: "mimo-v2.6-flash",
22
22
  // @deprecated 用 COMPACTION_SUMMARY_SYSTEM_PROMPT(packages/ai/context/compactionShared.ts)。
23
23
  // 生产代码已全部迁移;此旧两段式 prompt 仅被 scripts/probes/dialog 探针脚本使用,待探针迁移后删除。
24
- prompt: "\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u52A9\u7406\u3002\u8BF7\u57FA\u4E8E\u3010\u73B0\u6709\u8BB0\u5FC6\u3011\u548C\u3010\u65B0\u589E\u5BF9\u8BDD\u3011\uFF0C\u8F93\u51FA\u4E00\u4EFD\u66F4\u65B0\u540E\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u6863\u6848\u3002\u4E25\u683C\u53EA\u8F93\u51FA\u4E0B\u9762\u4E24\u90E8\u5206\uFF0C\u6807\u9898\u5FC5\u987B\u5B8C\u5168\u4E00\u81F4\uFF1A\n\u5173\u952E\u4E8B\u5B9E\u6863\u6848\n- ...\n\u5BF9\u8BDD\u5267\u60C5\u6458\u8981\n- ...\n\u8981\u6C42\uFF1A1) \u4F7F\u7528\u5BF9\u8BDD\u4E3B\u8BED\u8A00\uFF1B\u6DF7\u5408\u8BED\u8A00\u65F6\u4F18\u5148\u8DDF\u968F\u7528\u6237\u4E3B\u8981\u8BED\u8A00\uFF0C\u4E13\u6709\u540D\u8BCD\u4FDD\u7559\u539F\u6587\u30022) \u5173\u952E\u4E8B\u5B9E\u6863\u6848\u53EA\u4FDD\u7559\u4E4B\u540E\u7EE7\u7EED\u5BF9\u8BDD\u4ECD\u6709\u4EF7\u503C\u7684\u4FE1\u606F\uFF0C\u4F8B\u5982\u7528\u6237\u504F\u597D\u3001\u76EE\u6807\u3001\u7EA6\u675F\u3001\u6280\u672F\u6808\u3001\u786E\u5B9A\u7684\u6587\u4EF6\u540D/\u53D8\u91CF\u540D\u3001\u6838\u5FC3\u51B3\u7B56\u3001\u5F85\u529E\u4E8B\u9879\u30023) \u5BF9\u8BDD\u5267\u60C5\u6458\u8981\u5148\u6781\u7B80\u6982\u62EC\u65E7\u4E0A\u4E0B\u6587\uFF0C\u518D\u66F4\u8BE6\u7EC6\u8BB0\u5F55\u6700\u8FD1\u65B0\u589E\u7684\u8FDB\u5C55\u3001\u5206\u6B67\u3001\u7ED3\u8BBA\u548C\u4E0B\u4E00\u6B65\u30024) \u5FFD\u7565\u5BD2\u6684\u3001\u91CD\u590D\u5C1D\u8BD5\u3001\u5DF2\u653E\u5F03\u65B9\u6848\u548C\u65E0\u4EF7\u503C\u5E9F\u8BDD\u30025) \u4E0D\u8981\u7F16\u9020\u672A\u51FA\u73B0\u7684\u4FE1\u606F\uFF0C\u4E0D\u8981\u8F93\u51FA\u5F00\u573A\u767D\u3001\u7ED3\u675F\u8BED\u3001markdown \u4EE3\u7801\u5757\u6216\u989D\u5916\u7AE0\u8282\u3002"
24
+ prompt: "\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u52A9\u7406\u3002\u8BF7\u57FA\u4E8E\u3010\u73B0\u6709\u8BB0\u5FC6\u3011\u548C\u3010\u65B0\u589E\u5BF9\u8BDD\u3011\uFF0C\u8F93\u51FA\u4E00\u4EFD\u66F4\u65B0\u540E\u7684\u5BF9\u8BDD\u8BB0\u5FC6\u6863\u6848\u3002\u4E25\u683C\u53EA\u8F93\u51FA\u4E0B\u9762\u4E24\u90E8\u5206\uFF0C\u6807\u9898\u5FC5\u987B\u5B8C\u5168\u4E00\u81F4\uFF1A\n\u5173\u952E\u4E8B\u5B9E\u6863\u6848\n- ...\n\u5BF9\u8BDD\u5267\u60C5\u6458\u8981\n- ...\n\u8981\u6C42\uFF1A1) \u4F7F\u7528\u5BF9\u8BDD\u4E3B\u8BED\u8A00\uFF1B\u6DF7\u5408\u8BED\u8A00\u65F6\u4F18\u5148\u8DDF\u968F\u7528\u6237\u4E3B\u8981\u8BED\u8A00\uFF0C\u4E13\u6709\u540D\u8BCD\u4FDD\u7559\u539F\u6587\u30022) \u5173\u952E\u4E8B\u5B9E\u6863\u6848\u53EA\u4FDD\u7559\u4E4B\u540E\u7EE7\u7EED\u5BF9\u8BDD\u4ECD\u6709\u4EF7\u503C\u7684\u4FE1\u606F\uFF0C\u4F8B\u5982\u7528\u6237\u504F\u597D\u3001\u76EE\u6807\u3001\u7EA6\u675F\u3001\u6280\u672F\u6808\u3001\u786E\u5B9A\u7684\u6587\u4EF6\u540D/\u53D8\u91CF\u540D\u3001\u6838\u5FC3\u51B3\u7B56\u3001\u5F85\u529E\u4E8B\u9879\u3002\u5176\u4E2D\u5FC5\u987B\u5148\u5199\u300C\u539F\u59CB\u76EE\u6807\u300D\uFF08\u7528\u6237\u6700\u521D\u4E3A\u4EC0\u4E48\u5F00\u8FD9\u6BB5\u5BF9\u8BDD\uFF0C\u5C3D\u91CF\u4FDD\u7559\u539F\u8BDD\uFF1B\u589E\u91CF\u66F4\u65B0\u65F6\u6CBF\u7528\u5DF2\u6709\u539F\u6587\uFF0C\u4E0D\u8981\u88AB\u65B0\u589E\u5BF9\u8BDD\u6539\u5199\uFF1B\u4EC5\u5F53\u65B0\u5BF9\u8BDD\u660E\u786E\u8868\u660E\u539F\u6587\u6709\u4E8B\u5B9E\u6027\u9519\u8BEF\u65F6\u624D\u4FEE\u6B63\uFF0C\u5E76\u5728\u300C\u76EE\u6807\u6F14\u5316\u300D\u91CC\u6CE8\u660E\uFF09\u4E0E\u300C\u76EE\u6807\u6F14\u5316\u300D\uFF08\u4E2D\u9014\u8F6C\u5411\u4E86\u4EC0\u4E48\u3001\u56E0\u4E3A\u4EC0\u4E48\uFF1B\u6CA1\u6709\u8F6C\u5411\u5C31\u5199\u300C\u65E0\u8F6C\u5411\u300D\u6216\u7701\u7565\uFF09\u2014\u2014\u88AB\u53D6\u4EE3\u7684\u662F\u65B9\u6848\uFF0C\u4E0D\u662F\u7528\u6237\u7684\u521D\u59CB\u610F\u56FE\uFF0C\u521D\u59CB\u610F\u56FE\u4E0D\u5F97\u7701\u7565\u30023) \u5BF9\u8BDD\u5267\u60C5\u6458\u8981\u5148\u6781\u7B80\u6982\u62EC\u65E7\u4E0A\u4E0B\u6587\uFF0C\u518D\u66F4\u8BE6\u7EC6\u8BB0\u5F55\u6700\u8FD1\u65B0\u589E\u7684\u8FDB\u5C55\u3001\u5206\u6B67\u3001\u7ED3\u8BBA\u548C\u4E0B\u4E00\u6B65\u30024) \u5FFD\u7565\u5BD2\u6684\u3001\u91CD\u590D\u5C1D\u8BD5\u548C\u65E0\u4EF7\u503C\u5E9F\u8BDD\uFF1B\u5DF2\u653E\u5F03\u7684\u65B9\u6848/\u5C1D\u8BD5\u53EF\u7701\u7565\uFF0C\u4F46\u7528\u6237\u5F53\u521D\u7684\u610F\u56FE\u4E0E\u7406\u7531\u4E0D\u53EF\u7701\u7565\uFF08\u89C1\u7B2C 2 \u6761\uFF09\u30025) \u4E0D\u8981\u7F16\u9020\u672A\u51FA\u73B0\u7684\u4FE1\u606F\uFF0C\u4E0D\u8981\u8F93\u51FA\u5F00\u573A\u767D\u3001\u7ED3\u675F\u8BED\u3001markdown \u4EE3\u7801\u5757\u6216\u989D\u5916\u7AE0\u8282\u3002"
25
25
  };
26
26
 
27
27
  export {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KHCLMKZZ.js";
4
4
  import {
5
5
  buildSkillDiscoveryLayer
6
- } from "./chunk-DVINR3PL.js";
6
+ } from "./chunk-HDLLCBRF.js";
7
7
 
8
8
  // packages/agent-runtime/skillDiscovery.ts
9
9
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";