nolo-cli 0.10.0 → 0.12.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 (125) hide show
  1. package/{_executeModel-YAXYAUOK.js → _executeModel-MWAY74HA.js} +47 -44
  2. package/{action-TLI3V62L.js → action-RAXNQQKC.js} +9 -10
  3. package/{addContentAction-PLWJSCOZ.js → addContentAction-ZHI7TVV3.js} +8 -10
  4. package/{addDialogAgentAction-BJ6SB76X.js → addDialogAgentAction-JWXPKXNC.js} +7 -8
  5. package/{agentDeleteCommand-2VYX73U5.js → agentDeleteCommand-LXR5A5FV.js} +36 -26
  6. package/{agentEmailCommands-3GDZIX64.js → agentEmailCommands-DXRAP7BB.js} +63 -58
  7. package/{agentListCommands-UWVBT3LH.js → agentListCommands-ZFMS5ZLY.js} +132 -35
  8. package/{agentMachineCommands-WOKMUG2Y.js → agentMachineCommands-ZJLYVV52.js} +40 -29
  9. package/{agentPullCommand-O2MTUAFR.js → agentPullCommand-KRBRIFIY.js} +6 -6
  10. package/{agentRecordCommands-MVNZRH3U.js → agentRecordCommands-DFS626TB.js} +55 -50
  11. package/{agentRunCommand-K7THIJLA.js → agentRunCommand-GWBIE2TS.js} +60 -56
  12. package/{agentRunControl-K4VKNEHF.js → agentRunControl-IX4F5W2C.js} +3 -3
  13. package/{agentRuntimeLocal-WJIGU24U.js → agentRuntimeLocal-YNZSHMZC.js} +29 -14
  14. package/{agentSlice-LL5TKZEO.js → agentSlice-T2PXOEPQ.js} +9 -10
  15. package/{authCommand-TC2SW2CQ.js → authCommand-DMW336GT.js} +13 -13
  16. package/{authCommands-XPEHTKSM.js → authCommands-GH5T6RYV.js} +6 -6
  17. package/{chunk-5JGGZCZL.js → chunk-3HHTVM6G.js} +64 -5
  18. package/chunk-3QKO4EHV.js +112 -0
  19. package/{chunk-AUQ747NZ.js → chunk-43UD5ZP7.js} +76 -15
  20. package/{chunk-6SLCD4RB.js → chunk-4BTHUYMY.js} +596 -67
  21. package/{chunk-T7R3NGUU.js → chunk-4EH7AR52.js} +13 -13
  22. package/{chunk-C3RUNRHT.js → chunk-4GBNEA5B.js} +1 -1
  23. package/{chunk-4IJYA27C.js → chunk-4LG74DRG.js} +1 -1
  24. package/{chunk-2FTTDCD4.js → chunk-4ON5AV72.js} +2 -1
  25. package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
  26. package/{chunk-EXXFGKF7.js → chunk-5ITRDSHY.js} +1400 -119
  27. package/{chunk-ISNCLGUZ.js → chunk-5NBHQD4D.js} +4 -3
  28. package/{chunk-7KNKFIRO.js → chunk-6LMFFG3K.js} +3 -3
  29. package/{chunk-PAKN26FP.js → chunk-6OVCRC72.js} +1 -1
  30. package/{chunk-CKOJQDKR.js → chunk-7JJCGV7N.js} +146 -3
  31. package/{chunk-KBKYAONQ.js → chunk-7MYHLZ3F.js} +2 -2
  32. package/{chunk-PIVFPOW6.js → chunk-AM53Q2SD.js} +175 -2541
  33. package/chunk-BYXBJQAS.js +0 -0
  34. package/{chunk-CL3IOKGK.js → chunk-DE5BA4O6.js} +20 -2
  35. package/{chunk-6KUOUWMP.js → chunk-DRMGJFGQ.js} +300 -89
  36. package/{chunk-QAALPJS7.js → chunk-EBH7G34M.js} +20 -7
  37. package/{chunk-HJGEVL7C.js → chunk-G3B356GF.js} +15 -17
  38. package/{chunk-OZMMKDBI.js → chunk-GDBCUWQ3.js} +26 -20
  39. package/{chunk-I5URP43I.js → chunk-GPZM7QH6.js} +9 -9
  40. package/chunk-IKXL2HZ3.js +70 -0
  41. package/{chunk-AS4PVWA4.js → chunk-IVAOVLM7.js} +1 -1
  42. package/{chunk-TNPIMII7.js → chunk-JUN3HFMN.js} +221 -81
  43. package/{chunk-HFASY3WO.js → chunk-JZDIW766.js} +1 -1
  44. package/{chunk-6JJWFVZ6.js → chunk-LHSJMY5V.js} +17 -17
  45. package/chunk-LTRXGFMS.js +83 -0
  46. package/{chunk-YIHFXH5Q.js → chunk-MEVCDATU.js} +3 -3
  47. package/{chunk-TILFE6LV.js → chunk-NCGFB7NN.js} +5 -3
  48. package/{chunk-BE2OOJ5P.js → chunk-NITP2JDG.js} +42 -11
  49. package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
  50. package/{chunk-VVX233PH.js → chunk-OHEKYYJF.js} +9 -9
  51. package/chunk-OOIN7HSO.js +146 -0
  52. package/{chunk-WPE4F4Z6.js → chunk-OPKKB25T.js} +1 -1
  53. package/{chunk-OR2XR25C.js → chunk-QCA3EPYK.js} +8 -8
  54. package/{chunk-SL35K7AH.js → chunk-QLUFR47U.js} +13 -83
  55. package/{chunk-CDTLMEB3.js → chunk-RNQ5BLR2.js} +1 -1
  56. package/{chunk-AVMKZHBC.js → chunk-RSEUHW6T.js} +3 -2
  57. package/{chunk-TYSCFY6S.js → chunk-RZ735TLX.js} +762 -167
  58. package/chunk-S3UTETIC.js +4885 -0
  59. package/chunk-S73OEOHH.js +2286 -0
  60. package/{chunk-JRKKFRAV.js → chunk-TSKWE74T.js} +58 -8
  61. package/{chunk-A67QFHAA.js → chunk-UG3WOFU6.js} +1 -1
  62. package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
  63. package/chunk-VC6OZXO5.js +298 -0
  64. package/{chunk-7U44LYTR.js → chunk-WPHL6ALY.js} +1 -1
  65. package/{chunk-4SIMLBEU.js → chunk-WTYKCU4W.js} +9 -9
  66. package/{chunk-NPVBXJY2.js → chunk-WWU275LU.js} +9 -9
  67. package/{chunk-ZQ2UM4KG.js → chunk-WZSRQNQG.js} +1 -292
  68. package/{chunk-DSZUWUYB.js → chunk-XHQWJUW4.js} +2 -2
  69. package/{chunk-GAKEBQD6.js → chunk-YDCZVUFP.js} +4 -0
  70. package/{chunk-2O4IZNTG.js → chunk-YTQLJYLB.js} +2 -2
  71. package/{chunk-3Y3HW5PX.js → chunk-ZPFRLGIZ.js} +1512 -935
  72. package/{chunk-5KLGBAAR.js → chunk-ZR4VHQ5D.js} +14 -13
  73. package/cliEnvHelpers-VYC2OPTB.js +30 -0
  74. package/{cliExecutor-DNE7TCC4.js → cliExecutor-K3F7DMRO.js} +2 -2
  75. package/{createAgentAutomationAction-CCE7CWGQ.js → createAgentAutomationAction-G32GKDGV.js} +22 -23
  76. package/{createDialogAction-QTRR4AT7.js → createDialogAction-TISANRZK.js} +25 -25
  77. package/{createPageAction-Y4KQOAJE.js → createPageAction-O7KOYNV4.js} +27 -27
  78. package/{dbSlice-WWNV2SGX.js → dbSlice-WDP2ZZHK.js} +7 -8
  79. package/{deleteFile-OW53A6BX.js → deleteFile-M7UNIUOO.js} +5 -5
  80. package/{dialogCommands-SMKIAC3Y.js → dialogCommands-6JPB3YQY.js} +33 -23
  81. package/{dialogSlice-PT7YBWNE.js → dialogSlice-PRHHYSP5.js} +21 -22
  82. package/{docCreateCommands-RFNA4HNM.js → docCreateCommands-75E6TZNN.js} +36 -25
  83. package/{docDeleteCommands-4YZ325M6.js → docDeleteCommands-EJHLN7LW.js} +37 -27
  84. package/{docReadCommands-RT6VAFFG.js → docReadCommands-RJYBC4FS.js} +36 -25
  85. package/{docStore-QUQZAFZF.js → docStore-H5VWKT5D.js} +22 -23
  86. package/{docUpdateCommands-EKKKNYPW.js → docUpdateCommands-MG4CNISV.js} +36 -25
  87. package/fetchMessages-KTNM7QAR.js +1 -1
  88. package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
  89. package/{handleSendMessageAction-5NSYAS53.js → handleSendMessageAction-QTUGICSZ.js} +22 -23
  90. package/index.js +77 -76
  91. package/{machineCommands-DOOSIUKG.js → machineCommands-MAV7M3TK.js} +67 -60
  92. package/{machineWsRunDispatch-PIOIQRBW.js → machineWsRunDispatch-ZOEGTKHC.js} +54 -49
  93. package/{memoryCommands-O4MIPIWQ.js → memoryCommands-AFMES3LN.js} +5 -5
  94. package/{models-4OPOOLFS.js → models-LSCRJJ6P.js} +2 -2
  95. package/package.json +1 -1
  96. package/{read-GW7ZEI23.js → read-2MIMRBZ2.js} +5 -5
  97. package/{readDocTool-HUFU6OCT.js → readDocTool-QHVGQHUJ.js} +1 -1
  98. package/{readlineWorkspace-QEAOH5EP.js → readlineWorkspace-SWQKC7ZS.js} +1126 -678
  99. package/{removeDialogAgentAction-OHMCNSSD.js → removeDialogAgentAction-GTX5AN54.js} +11 -11
  100. package/{runAgentClientLoop-AIGLXC3R.js → runAgentClientLoop-P25HACXX.js} +42 -40
  101. package/{runtimeDoctorCommands-LRHLPDRC.js → runtimeDoctorCommands-QNF3J3UV.js} +6 -6
  102. package/{setDialogExtraReferencesAction-YJUM5BWQ.js → setDialogExtraReferencesAction-WFQ63KYO.js} +7 -8
  103. package/{setPrimaryDialogAgentAction-EBAREZDM.js → setPrimaryDialogAgentAction-P57FXTSU.js} +11 -11
  104. package/{settingSlice-UW4IUI5L.js → settingSlice-CK5YZGNI.js} +8 -9
  105. package/skillDiscovery-ZYHSX7VD.js +16 -0
  106. package/{spaceCommands-BKHSPR73.js → spaceCommands-6O5EFEM5.js} +41 -33
  107. package/{spaceSlice-TYNWE3OC.js → spaceSlice-4EXTYXS4.js} +25 -24
  108. package/{streamAgentChatTurn-HRMFFA7E.js → streamAgentChatTurn-Q3FJAHG2.js} +205 -107
  109. package/{tableCommands-O7O2LBEG.js → tableCommands-E4SQWDOX.js} +10 -10
  110. package/{tools-3JNDS3WH.js → tools-AHNQE4GP.js} +33 -31
  111. package/{tuiSummaryLlmCaller-RV3THLZF.js → tuiSummaryLlmCaller-TXLF4MEI.js} +8 -6
  112. package/{updateCommands-VOSPKXFF.js → updateCommands-XZDOOYFH.js} +13 -5
  113. package/{updateDialogTitleAction-OCETSKCP.js → updateDialogTitleAction-XZDVLKVX.js} +25 -25
  114. package/chunk-5MMAK75Q.js +0 -15
  115. package/chunk-AZPCASRE.js +0 -36
  116. package/chunk-BBYVOSU2.js +0 -792
  117. package/chunk-DCOA4QSN.js +0 -105
  118. package/chunk-UAD2WT54.js +0 -64
  119. package/{chunk-DZ3XJVET.js → chunk-3QAF2LTL.js} +3 -3
  120. package/{chunk-X7W4TNB4.js → chunk-CMKUBIGW.js} +3 -3
  121. package/{chunk-4CQLVGRV.js → chunk-ID4G2MAR.js} +3 -3
  122. package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
  123. package/{chunk-EHLHSX7R.js → chunk-TOILAPLH.js} +3 -3
  124. package/{chunk-UTLZINAP.js → chunk-TSUJOM6N.js} +10 -10
  125. package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-EXXFGKF7.js";
3
+ } from "./chunk-5ITRDSHY.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-W4NVOSFF.js";
@@ -12,17 +12,17 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-OR2XR25C.js";
15
+ } from "./chunk-QCA3EPYK.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
19
- import {
20
- parseUserIdFromAuthToken,
21
- resolveAuthToken
22
- } from "./chunk-ISNCLGUZ.js";
23
19
  import {
24
20
  toErrorMessage
25
21
  } from "./chunk-HNMXYYJR.js";
22
+ import {
23
+ parseUserIdFromAuthToken,
24
+ resolveAuthToken
25
+ } from "./chunk-5NBHQD4D.js";
26
26
 
27
27
  // packages/cli/agentRecordCommands.ts
28
28
  async function runAgentReadCommand(args, deps = {}) {
@@ -43,7 +43,7 @@ async function runAgentReadCommand(args, deps = {}) {
43
43
  const fetchImpl = deps.fetchImpl ?? fetch;
44
44
  const fallbackFetchImpl = deps.fallbackFetchImpl;
45
45
  try {
46
- const result = await resolveAgentRecordFromHybridStore({
46
+ let result = await resolveAgentRecordFromHybridStore({
47
47
  agentInput,
48
48
  cliArgs: args,
49
49
  env,
@@ -51,6 +51,19 @@ async function runAgentReadCommand(args, deps = {}) {
51
51
  fetchImpl,
52
52
  fallbackFetchImpl
53
53
  });
54
+ if (!result && agentKey.startsWith("agent-pub-")) {
55
+ const bareId = agentKey.slice("agent-pub-".length);
56
+ if (bareId) {
57
+ result = await resolveAgentRecordFromHybridStore({
58
+ agentInput: bareId,
59
+ cliArgs: args,
60
+ env,
61
+ db,
62
+ fetchImpl,
63
+ fallbackFetchImpl
64
+ });
65
+ }
66
+ }
54
67
  if (!result) {
55
68
  throw new Error(`agent not found: ${agentKey}`);
56
69
  }
@@ -1,33 +1,31 @@
1
- import {
2
- chooseMemoryOwners,
3
- loadMemoryCandidatesFromDb
4
- } from "./chunk-XENYHRUE.js";
5
1
  import {
6
2
  addContentToSpace,
7
3
  prepareAndPersistMessage,
8
4
  uiAskChoiceFunc,
9
5
  uiAskChoiceFunctionSchema
10
- } from "./chunk-PIVFPOW6.js";
6
+ } from "./chunk-AM53Q2SD.js";
11
7
  import {
12
8
  require_date_fns
13
9
  } from "./chunk-M76ECQRD.js";
14
- import {
15
- PLATFORM_HOSTED_GLM_52_MODEL,
16
- PLATFORM_HOSTED_GLM_PRICE
17
- } from "./chunk-BBYVOSU2.js";
18
- import {
19
- PLATFORM_HOSTED_KIMI_PROVIDER
20
- } from "./chunk-IWX4UW2E.js";
21
10
  import {
22
11
  extractCustomId
23
12
  } from "./chunk-DFFIZ25G.js";
13
+ import {
14
+ chooseMemoryOwners,
15
+ loadMemoryCandidatesFromDb
16
+ } from "./chunk-XENYHRUE.js";
17
+ import {
18
+ PLATFORM_HOSTED_GLM_52_MODEL,
19
+ PLATFORM_HOSTED_GLM_PRICE,
20
+ PLATFORM_HOSTED_KIMI_PROVIDER
21
+ } from "./chunk-524BDL33.js";
24
22
  import {
25
23
  read,
26
24
  readAndWait,
27
25
  removeCachedEntity,
28
26
  upsertSSREntity,
29
27
  write
30
- } from "./chunk-BE2OOJ5P.js";
28
+ } from "./chunk-NITP2JDG.js";
31
29
  import {
32
30
  createAgentKey,
33
31
  createDialogKey,
@@ -36,7 +34,10 @@ import {
36
34
  } from "./chunk-O4BU24WZ.js";
37
35
  import {
38
36
  selectIdentityUserId
39
- } from "./chunk-UTLZINAP.js";
37
+ } from "./chunk-TSUJOM6N.js";
38
+ import {
39
+ isRecord
40
+ } from "./chunk-KUG52IAP.js";
40
41
  import {
41
42
  asTrimmedString
42
43
  } from "./chunk-3EUW3WEO.js";
@@ -46,9 +47,6 @@ import {
46
47
  import {
47
48
  asOptionalTrimmedString
48
49
  } from "./chunk-G3SUCT4W.js";
49
- import {
50
- isRecord
51
- } from "./chunk-KUG52IAP.js";
52
50
  import {
53
51
  __toESM
54
52
  } from "./chunk-4VNS5WPM.js";
@@ -3,13 +3,10 @@ import {
3
3
  } from "./chunk-JEXVIMYZ.js";
4
4
  import {
5
5
  prepareTools
6
- } from "./chunk-2O4IZNTG.js";
7
- import {
8
- getPublicImageAgentMode
9
- } from "./chunk-VIDPVFP3.js";
6
+ } from "./chunk-YTQLJYLB.js";
10
7
  import {
11
8
  performFetchRequest
12
- } from "./chunk-TNPIMII7.js";
9
+ } from "./chunk-JUN3HFMN.js";
13
10
  import {
14
11
  createSSEParser,
15
12
  createToolRunId,
@@ -20,32 +17,34 @@ import {
20
17
  toolRunSetPending,
21
18
  toolRunStarted,
22
19
  toolRunSucceeded
23
- } from "./chunk-TYSCFY6S.js";
20
+ } from "./chunk-RZ735TLX.js";
21
+ import {
22
+ getPublicImageAgentMode
23
+ } from "./chunk-VIDPVFP3.js";
24
24
  import {
25
25
  addToolMessage,
26
- getModelInfo,
27
26
  messageStreamEnd,
28
27
  messageStreaming,
29
28
  selectCurrentSpaceId,
30
29
  updateToolMessage
31
- } from "./chunk-PIVFPOW6.js";
30
+ } from "./chunk-AM53Q2SD.js";
32
31
  import {
33
32
  streamAgentChatTurn
34
- } from "./chunk-I5URP43I.js";
33
+ } from "./chunk-GPZM7QH6.js";
35
34
  import {
36
35
  EMPTY_ASSISTANT_REPAIR_PROMPT
37
- } from "./chunk-6SLCD4RB.js";
36
+ } from "./chunk-4BTHUYMY.js";
38
37
  import {
39
38
  createThinkParserState,
40
39
  flushThinkParser,
41
40
  processThinkChunk
42
41
  } from "./chunk-OPZYGHUC.js";
43
42
  import {
44
- getApiEndpoint
45
- } from "./chunk-BBYVOSU2.js";
43
+ getModelInfo
44
+ } from "./chunk-S73OEOHH.js";
46
45
  import {
47
- isNoloHostedProvider
48
- } from "./chunk-IWX4UW2E.js";
46
+ getApiEndpoint
47
+ } from "./chunk-S3UTETIC.js";
49
48
  import {
50
49
  extractCustomId
51
50
  } from "./chunk-DFFIZ25G.js";
@@ -57,12 +56,15 @@ import {
57
56
  import {
58
57
  toErrorMessage
59
58
  } from "./chunk-HNMXYYJR.js";
59
+ import {
60
+ isNoloHostedProvider
61
+ } from "./chunk-524BDL33.js";
60
62
  import {
61
63
  selectCurrentServer
62
- } from "./chunk-4SIMLBEU.js";
64
+ } from "./chunk-WTYKCU4W.js";
63
65
  import {
64
66
  write
65
- } from "./chunk-BE2OOJ5P.js";
67
+ } from "./chunk-NITP2JDG.js";
66
68
  import {
67
69
  createDialogMessageKeyAndId,
68
70
  dialogMessageKey,
@@ -71,19 +73,19 @@ import {
71
73
  import {
72
74
  createAsyncThunk,
73
75
  selectIdentityToken
74
- } from "./chunk-UTLZINAP.js";
76
+ } from "./chunk-TSUJOM6N.js";
75
77
  import {
76
78
  isAbortError
77
79
  } from "./chunk-OOSFSFMA.js";
80
+ import {
81
+ isRecord
82
+ } from "./chunk-KUG52IAP.js";
78
83
  import {
79
84
  asTrimmedString
80
85
  } from "./chunk-3EUW3WEO.js";
81
86
  import {
82
87
  asOptionalTrimmedString
83
88
  } from "./chunk-G3SUCT4W.js";
84
- import {
85
- isRecord
86
- } from "./chunk-KUG52IAP.js";
87
89
 
88
90
  // packages/integrations/openai/filterAndCleanMessages.ts
89
91
  var isValidMessagePart = (part) => {
@@ -182,6 +184,10 @@ var toOpenAIMessage = (rawMsg) => {
182
184
  if (role === "assistant" && toolCalls) {
183
185
  cleaned.tool_calls = toolCalls;
184
186
  }
187
+ if (role === "assistant") {
188
+ const reasoningContent = typeof msg.reasoning_content === "string" ? msg.reasoning_content : typeof msg.thinkContent === "string" ? msg.thinkContent : "";
189
+ if (reasoningContent) cleaned.reasoning_content = reasoningContent;
190
+ }
185
191
  if (role === "tool") {
186
192
  const toolCallId = extractToolCallId(msg);
187
193
  if (toolCallId) cleaned.tool_call_id = toolCallId;
@@ -3,15 +3,15 @@ import {
3
3
  createFileCredentialBroker,
4
4
  migrateAgentSecrets,
5
5
  normalizeAgentRuntimeToolPolicy
6
- } from "./chunk-5CS33IBL.js";
6
+ } from "./chunk-PDL2AV3E.js";
7
+ import {
8
+ asRecordOrEmpty
9
+ } from "./chunk-KX6YBIHG.js";
7
10
  import {
8
11
  patch,
9
12
  remove,
10
13
  write
11
- } from "./chunk-BE2OOJ5P.js";
12
- import {
13
- asRecordOrEmpty
14
- } from "./chunk-KX6YBIHG.js";
14
+ } from "./chunk-NITP2JDG.js";
15
15
  import {
16
16
  createAgentKey,
17
17
  toTrimmedString
@@ -20,7 +20,7 @@ import {
20
20
  asyncThunkCreator,
21
21
  buildCreateSlice,
22
22
  getRuntimeServerContext
23
- } from "./chunk-UTLZINAP.js";
23
+ } from "./chunk-TSUJOM6N.js";
24
24
  import {
25
25
  asTrimmedString
26
26
  } from "./chunk-3EUW3WEO.js";
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
300
300
  const overrides = {};
301
301
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
302
302
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
303
- const { _executeModel } = await import("./_executeModel-YAXYAUOK.js");
303
+ const { _executeModel } = await import("./_executeModel-MWAY74HA.js");
304
304
  return _executeModel(
305
305
  {
306
306
  isStreaming: args.isStreaming ?? false,
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
321
321
  * - 循环直到无工具调用或触发其他运行时停止条件
322
322
  */
323
323
  runAgent: create.asyncThunk(async (args, thunkApi) => {
324
- const { runAgentClientLoop } = await import("./runAgentClientLoop-AIGLXC3R.js");
324
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-P25HACXX.js");
325
325
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
326
326
  {
327
327
  agentKey: args.agentKey,
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
337
337
  * 聊天轮次流式 Agent 调用
338
338
  */
339
339
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
340
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-HRMFFA7E.js");
340
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-Q3FJAHG2.js");
341
341
  return streamAgentChatTurnHandler(args, thunkApi);
342
342
  }),
343
343
  /**
@@ -0,0 +1,70 @@
1
+ import {
2
+ cloudflareModels,
3
+ deepSeekModels,
4
+ deepinfraModels,
5
+ fireworksModels,
6
+ gmiModels,
7
+ googleModels,
8
+ openAIModels,
9
+ openrouterModels,
10
+ platformHostedModels,
11
+ xaiModels,
12
+ zaiModels
13
+ } from "./chunk-524BDL33.js";
14
+
15
+ // packages/ai/llm/modelAbility.ts
16
+ var MODEL_ABILITY_TABLE = {
17
+ "claude-opus-5": { passAt1: 74, benchmarkScore: 61 },
18
+ "gpt-5.6-sol": { passAt1: 73, benchmarkScore: 59 },
19
+ "gpt-5.6-terra": { passAt1: 70, benchmarkScore: 55 },
20
+ "kimi-k3": { passAt1: 69, benchmarkScore: 57 },
21
+ "grok-4.5": { passAt1: 54, benchmarkScore: 54 },
22
+ "claude-sonnet-5": { passAt1: 54, benchmarkScore: 53 },
23
+ "gpt-5.6-luna": { passAt1: 67, benchmarkScore: 51 },
24
+ "glm-5.2": { passAt1: 44, benchmarkScore: 51 },
25
+ "gemini-3.6-flash": { passAt1: 49, benchmarkScore: 50 }
26
+ };
27
+ var EFFORT_SUFFIXES = ["-extra-low", "-low", "-medium", "-high"];
28
+ function normalizeModelName(raw) {
29
+ let name = raw.trim().toLowerCase();
30
+ const slash = name.indexOf("/");
31
+ if (slash !== -1) name = name.slice(slash + 1);
32
+ for (const suffix of EFFORT_SUFFIXES) {
33
+ if (name.endsWith(suffix) && name.length > suffix.length) {
34
+ name = name.slice(0, -suffix.length);
35
+ break;
36
+ }
37
+ }
38
+ return name;
39
+ }
40
+ function getModelAbility(modelName) {
41
+ const entry = MODEL_ABILITY_TABLE[normalizeModelName(modelName)];
42
+ return entry ? { ...entry } : void 0;
43
+ }
44
+
45
+ // packages/ai/llm/ollamaCloud.ts
46
+ var ollamaCloudModels = platformHostedModels;
47
+
48
+ // packages/ai/llm/models.ts
49
+ var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
50
+ var ALL_MODELS = [
51
+ ...withProvider("nolo")(ollamaCloudModels),
52
+ ...withProvider("google")(googleModels),
53
+ ...withProvider("openai")(openAIModels),
54
+ ...withProvider("openrouter")(openrouterModels),
55
+ ...withProvider("xai")(xaiModels),
56
+ ...withProvider("deepseek")(deepSeekModels),
57
+ ...withProvider("deepinfra")(deepinfraModels),
58
+ ...withProvider("fireworks")(fireworksModels),
59
+ ...withProvider("cloudflare")(cloudflareModels),
60
+ ...withProvider("gmi")(gmiModels),
61
+ ...withProvider("zai")(zaiModels)
62
+ ].map((model) => {
63
+ const ability = getModelAbility(model.name);
64
+ return ability ? { ...model, ability } : model;
65
+ });
66
+
67
+ export {
68
+ getModelAbility,
69
+ ALL_MODELS
70
+ };
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
199
199
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
200
200
  }
201
201
  try {
202
- const { readAction } = await import("./read-GW7ZEI23.js");
202
+ const { readAction } = await import("./read-2MIMRBZ2.js");
203
203
  const pageData = await readAction({ dbKey: id }, thunkApi);
204
204
  if (!pageData) {
205
205
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);