nolo-cli 0.33.0-alpha.7 → 0.33.0-alpha.8

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 (62) hide show
  1. package/{_executeModel-RWPVI3YV.js → _executeModel-RI6DRQTP.js} +15 -14
  2. package/{agentDeleteCommand-KU2RXQPP.js → agentDeleteCommand-F2P4PF6R.js} +6 -5
  3. package/{agentEmailCommands-MPCMDENS.js → agentEmailCommands-BW6ZDQ3C.js} +18 -17
  4. package/{agentListCommands-EPD4N6FX.js → agentListCommands-IC3GH45S.js} +6 -5
  5. package/{agentMachineCommands-AF7C3YRT.js → agentMachineCommands-LGYGQX75.js} +7 -6
  6. package/{agentRecordCommands-EYE6MZZG.js → agentRecordCommands-FCQ7ZF6C.js} +17 -16
  7. package/{agentRunCommand-LL22SGTN.js → agentRunCommand-F5L6GPSK.js} +17 -16
  8. package/{agentRuntimeLocal-JX34G47Z.js → agentRuntimeLocal-B7SHOEHJ.js} +6 -5
  9. package/{agentSlice-TNMFQQOV.js → agentSlice-GMKJKCPY.js} +1 -1
  10. package/{appDeleteCommands-43K5VXQB.js → appDeleteCommands-63VCZ5CT.js} +6 -5
  11. package/{appDeployCommands-FEEJSVDZ.js → appDeployCommands-YFTG2P3K.js} +6 -5
  12. package/{appDeployStatusCommands-H76CG45R.js → appDeployStatusCommands-R5ENU5CQ.js} +6 -5
  13. package/{appGetCommands-MDZYFTYZ.js → appGetCommands-3CH3VMUB.js} +6 -5
  14. package/{appListCommands-TUJJXPWG.js → appListCommands-Q2HVYG7J.js} +6 -5
  15. package/{authCommand-T7UK4CWS.js → authCommand-6Y5LTMZB.js} +5 -4
  16. package/{chatQueueReduxAdapter-LVQXC4ZY.js → chatQueueReduxAdapter-ZRFKEKD3.js} +4 -3
  17. package/{chunk-3VAQHAXT.js → chunk-2GKZGZBN.js} +8 -8
  18. package/{chunk-2H3XIBY4.js → chunk-4C7K5NXX.js} +8 -6
  19. package/{chunk-B2BSG6QQ.js → chunk-6FNS3SQF.js} +3 -3
  20. package/{chunk-AFV4FOT2.js → chunk-7YYHKBJP.js} +4 -91
  21. package/{chunk-RAZOLMJR.js → chunk-CHYAYZJH.js} +1 -1
  22. package/chunk-CPYYM4RJ.js +98 -0
  23. package/{chunk-I6N2UVVY.js → chunk-G7E4NWFE.js} +1 -1
  24. package/{chunk-GTYM4HKV.js → chunk-ITIA6OAQ.js} +1 -1
  25. package/{chunk-WHD6BG7M.js → chunk-JCGIUBE3.js} +11 -9
  26. package/{chunk-M4NC7NF6.js → chunk-KBZCACG7.js} +1 -1
  27. package/{chunk-ZJMME4DS.js → chunk-LZC5YX6P.js} +3 -3
  28. package/{chunk-HDKRSRYU.js → chunk-MUCM2MZB.js} +9 -9
  29. package/{chunk-LOD75GOS.js → chunk-NKFMFT4W.js} +3 -3
  30. package/{chunk-AAGCMVFT.js → chunk-O6W5PZXA.js} +8 -8
  31. package/{chunk-6PO2SYCS.js → chunk-OOK2ZT5F.js} +1 -1
  32. package/{chunk-FSSX3XRY.js → chunk-PVVAWIUN.js} +1 -1
  33. package/{chunk-GMXWYXAF.js → chunk-RTJWH72P.js} +2 -2
  34. package/{chunk-DPMBNHOJ.js → chunk-SCUETSRP.js} +1 -1
  35. package/{chunk-MPZJVZDC.js → chunk-VOBUVWP5.js} +2 -2
  36. package/{chunk-6SXC35F4.js → chunk-W7J5HZI7.js} +2 -2
  37. package/{chunk-JMPYDFHY.js → chunk-XFV2VK7O.js} +1 -1
  38. package/{chunk-73GINUCW.js → chunk-XL7BR2GE.js} +9 -9
  39. package/{chunk-O6GEBMIY.js → chunk-YBPAQV37.js} +11 -11
  40. package/{createAgentAutomationAction-INQT23LX.js → createAgentAutomationAction-6SE7CQ7F.js} +5 -4
  41. package/{createDialogAction-LDCPDI73.js → createDialogAction-AROAXAPM.js} +6 -5
  42. package/{createPageAction-5YXOG2M4.js → createPageAction-GCO3R6GR.js} +5 -4
  43. package/{dialogCommands-CHJO47AX.js → dialogCommands-N26NNRRD.js} +6 -5
  44. package/{dialogSlice-DOWKOILN.js → dialogSlice-JVPBOMFB.js} +4 -3
  45. package/{docCreateCommands-OVZARUFX.js → docCreateCommands-PON6FF4V.js} +6 -5
  46. package/{docDeleteCommands-E2XJ62LD.js → docDeleteCommands-WWRFONDS.js} +6 -5
  47. package/{docReadCommands-I7OSREPJ.js → docReadCommands-S4Z275LB.js} +6 -5
  48. package/{docStore-UAWSKZ2Y.js → docStore-WGDO3I76.js} +6 -5
  49. package/{docUpdateCommands-X4Z26VJM.js → docUpdateCommands-TJQB4IJ7.js} +6 -5
  50. package/{handleSendMessageAction-C3TSDWKH.js → handleSendMessageAction-T7AS7DDY.js} +4 -3
  51. package/index.js +47 -47
  52. package/{machineCommands-BUOIYJAD.js → machineCommands-C6CPXZRR.js} +17 -16
  53. package/{machineWsRunDispatch-7CRWAA6O.js → machineWsRunDispatch-27K2P4OP.js} +17 -16
  54. package/package.json +1 -1
  55. package/{readlineWorkspace-ZDWEASJV.js → readlineWorkspace-LBWKTPJE.js} +17 -16
  56. package/{runAgentClientLoop-U7HYA3O5.js → runAgentClientLoop-D2T2P36H.js} +12 -11
  57. package/{spaceCommands-GEWZXGHM.js → spaceCommands-B6LO4U5R.js} +6 -5
  58. package/{spaceSlice-B6MOVY4N.js → spaceSlice-VUAEZVDS.js} +5 -4
  59. package/{streamAgentChatTurn-T527EQTT.js → streamAgentChatTurn-BBPSFMTZ.js} +16 -15
  60. package/{tools-XMWCVMPM.js → tools-NWA3J7KE.js} +8 -7
  61. package/{tuiSummaryLlmCaller-NCAJSVSD.js → tuiSummaryLlmCaller-KC7JCJBB.js} +3 -2
  62. package/{updateDialogTitleAction-XPJZRJEL.js → updateDialogTitleAction-TDDQ4J4L.js} +5 -4
@@ -8,10 +8,10 @@ import {
8
8
  inlineImageUrlsForCustomProvider,
9
9
  prepareTools,
10
10
  shouldInlineImageUrlsForAgent
11
- } from "./chunk-M4NC7NF6.js";
11
+ } from "./chunk-KBZCACG7.js";
12
12
  import {
13
13
  performFetchRequest
14
- } from "./chunk-WHD6BG7M.js";
14
+ } from "./chunk-JCGIUBE3.js";
15
15
  import {
16
16
  createSSEParser,
17
17
  createToolRunId,
@@ -22,22 +22,22 @@ import {
22
22
  toolRunSetPending,
23
23
  toolRunStarted,
24
24
  toolRunSucceeded
25
- } from "./chunk-HDKRSRYU.js";
25
+ } from "./chunk-MUCM2MZB.js";
26
26
  import {
27
27
  getCurrentSpaceId
28
- } from "./chunk-MPZJVZDC.js";
28
+ } from "./chunk-VOBUVWP5.js";
29
29
  import {
30
30
  addToolMessage,
31
31
  messageStreamEnd,
32
32
  messageStreaming,
33
33
  updateToolMessage
34
- } from "./chunk-73GINUCW.js";
34
+ } from "./chunk-XL7BR2GE.js";
35
35
  import {
36
36
  streamAgentChatTurn
37
- } from "./chunk-ZJMME4DS.js";
37
+ } from "./chunk-LZC5YX6P.js";
38
38
  import {
39
39
  EMPTY_ASSISTANT_REPAIR_PROMPT
40
- } from "./chunk-6PO2SYCS.js";
40
+ } from "./chunk-OOK2ZT5F.js";
41
41
  import {
42
42
  accumulateToolCallDelta,
43
43
  createThinkParserState,
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-N7J63Q6C.js";
50
50
  import {
51
51
  getModelInfo
52
- } from "./chunk-2H3XIBY4.js";
52
+ } from "./chunk-4C7K5NXX.js";
53
53
  import {
54
54
  getApiEndpoint
55
55
  } from "./chunk-DFUPZE6V.js";
@@ -15,6 +15,14 @@ import {
15
15
  publicAgentKey
16
16
  } from "./chunk-BJIRLHJR.js";
17
17
 
18
+ // packages/agent-runtime/builtinPlatformAgentRoute.ts
19
+ function resolveBuiltinAgentRuntimeFields(agentKey) {
20
+ if (!isBuiltinPlatformAgentKey(agentKey)) return null;
21
+ const entry = builtinAgentCatalogEntryById(parsePublicAgentId(agentKey));
22
+ if (!entry) return null;
23
+ return { provider: entry.provider, model: entry.model };
24
+ }
25
+
18
26
  // packages/agent-runtime/builtinPlatformAgentConfigs.ts
19
27
  function buildConfig(e) {
20
28
  const key = publicAgentKey(e.id);
@@ -55,12 +63,6 @@ function resolveBuiltinPlatformAgentRecord(agentRef) {
55
63
  ...config.name ? { name: config.name } : {}
56
64
  };
57
65
  }
58
- function resolveBuiltinAgentRuntimeFields(agentKey) {
59
- if (!isBuiltinPlatformAgentKey(agentKey)) return null;
60
- const entry = builtinAgentCatalogEntryById(parsePublicAgentId(agentKey));
61
- if (!entry) return null;
62
- return { provider: entry.provider, model: entry.model };
63
- }
64
66
  function applyBuiltinAgentRuntimeOverride(agentKey, record) {
65
67
  const fields = resolveBuiltinAgentRuntimeFields(agentKey);
66
68
  if (!fields) return record;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-O6GEBMIY.js";
4
+ } from "./chunk-YBPAQV37.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-HDKRSRYU.js";
7
+ } from "./chunk-MUCM2MZB.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-6PO2SYCS.js";
10
+ } from "./chunk-OOK2ZT5F.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-5CS33IBL.js";
@@ -1,16 +1,8 @@
1
1
  import {
2
- getModelConfig
3
- } from "./chunk-DFUPZE6V.js";
4
- import {
5
- PLATFORM_HOSTED_KIMI_K3_MODEL,
6
- isPlatformHostedClaudeModel,
7
- isPlatformHostedDeepseekModel,
8
- isPlatformHostedGeminiModel,
9
- isPlatformHostedGlmModel,
10
- isPlatformHostedGrokModel,
11
- isPlatformHostedKimiK26Model,
12
- isPlatformHostedQwen37FlashModel
13
- } from "./chunk-OR2HNLVO.js";
2
+ isOpenAiResponsesModel,
3
+ resolvePlatformChatCompletionsEndpoint,
4
+ resolvePlatformResponsesEndpoint
5
+ } from "./chunk-CPYYM4RJ.js";
14
6
  import {
15
7
  asTrimmedLowercaseString
16
8
  } from "./chunk-QSJ3HFEF.js";
@@ -36,82 +28,6 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
36
28
  };
37
29
  }
38
30
 
39
- // packages/agent-runtime/platformProviderEndpoints.ts
40
- var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
41
- var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/responses";
42
- var XAI_CHAT_COMPLETIONS_ENDPOINT = "https://api.x.ai/v1/chat/completions";
43
- var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
44
- deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
45
- fireworks: "https://api.fireworks.ai/inference/v1/chat/completions",
46
- google: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
47
- openai: "https://api.openai.com/v1/chat/completions",
48
- openrouter: "https://openrouter.ai/api/v1/chat/completions",
49
- // 千问 AI 平台 OpenAI 兼容模式
50
- qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
51
- // Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
52
- moonshot: "https://api.moonshot.cn/v1/chat/completions",
53
- // 平台托管 Kimi K3 的实际上游
54
- crof: "https://crof.ai/v1/chat/completions"
55
- // 无 nolo 默认上游:平台托管模型全部显式分流,未识别模型返回 undefined
56
- };
57
- function isOpenAiResponsesModel(args) {
58
- const provider = asTrimmedLowercaseString(args.provider);
59
- if (provider === "openai") {
60
- if (args.endpointKey === "responses") return true;
61
- if (!args.model) return false;
62
- try {
63
- return getModelConfig("openai", args.model).endpointKey === "responses";
64
- } catch {
65
- return false;
66
- }
67
- }
68
- if (provider === "deepseek" || provider === "nolo" || provider === "ollama-cloud") {
69
- if (isPlatformHostedDeepseekModel(args.model)) return true;
70
- }
71
- return false;
72
- }
73
- function resolvePlatformResponsesEndpoint(provider, model) {
74
- const normalized = asTrimmedLowercaseString(provider);
75
- if (normalized === "openai") return OPENAI_RESPONSES_ENDPOINT;
76
- if (normalized === "deepseek" || normalized === "nolo" || normalized === "ollama-cloud") {
77
- if (!model || isPlatformHostedDeepseekModel(model)) {
78
- return DEEPSEEK_RESPONSES_ENDPOINT;
79
- }
80
- }
81
- return void 0;
82
- }
83
- var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
84
- "ollama-cloud": "nolo",
85
- deepseek: "nolo"
86
- };
87
- function resolvePlatformChatCompletionsEndpoint(provider, model) {
88
- const key = asTrimmedLowercaseString(provider);
89
- if (!key) return void 0;
90
- const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
91
- if (aliased === "nolo" && isPlatformHostedClaudeModel(model)) {
92
- return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.deepinfra;
93
- }
94
- if (aliased === "nolo" && isPlatformHostedGrokModel(model)) {
95
- return XAI_CHAT_COMPLETIONS_ENDPOINT;
96
- }
97
- if (aliased === "nolo" && (isPlatformHostedKimiK26Model(model) || isPlatformHostedGlmModel(model))) {
98
- return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.openrouter;
99
- }
100
- if (aliased === "nolo" && asTrimmedLowercaseString(model) === PLATFORM_HOSTED_KIMI_K3_MODEL) {
101
- return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.crof;
102
- }
103
- if (aliased === "nolo" && (isPlatformHostedGeminiModel(model) || isPlatformHostedQwen37FlashModel(model))) {
104
- return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.google;
105
- }
106
- if (aliased === "nolo" && isPlatformHostedDeepseekModel(model)) {
107
- return void 0;
108
- }
109
- if (aliased === "nolo") {
110
- return void 0;
111
- }
112
- return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS[aliased];
113
- }
114
-
115
31
  // packages/agent-runtime/providerResolution.ts
116
32
  function resolvePlatformProviderEndpoint(agentConfig) {
117
33
  const customProviderUrl = agentConfig.customProviderUrl?.trim();
@@ -411,9 +327,6 @@ async function buildProviderExecutionPlan(args) {
411
327
 
412
328
  export {
413
329
  pickAgentRuntimeInferenceOptions,
414
- isOpenAiResponsesModel,
415
- resolvePlatformResponsesEndpoint,
416
- resolvePlatformChatCompletionsEndpoint,
417
330
  trimTrailingSlash,
418
331
  resolvePlatformServerUrl,
419
332
  resolvePlatformAuthToken,
@@ -32,7 +32,7 @@ import {
32
32
  resolvePlatformAuthToken,
33
33
  resolvePlatformServerUrl,
34
34
  resolveProviderTransportDecision
35
- } from "./chunk-AFV4FOT2.js";
35
+ } from "./chunk-7YYHKBJP.js";
36
36
  import {
37
37
  clipCompactText
38
38
  } from "./chunk-AOXVOC6D.js";
@@ -0,0 +1,98 @@
1
+ import {
2
+ getModelConfig
3
+ } from "./chunk-DFUPZE6V.js";
4
+ import {
5
+ PLATFORM_HOSTED_KIMI_K3_MODEL,
6
+ isPlatformHostedClaudeModel,
7
+ isPlatformHostedDeepseekModel,
8
+ isPlatformHostedGeminiModel,
9
+ isPlatformHostedGlmModel,
10
+ isPlatformHostedGrokModel,
11
+ isPlatformHostedKimiK26Model,
12
+ isPlatformHostedQwen37FlashModel
13
+ } from "./chunk-OR2HNLVO.js";
14
+ import {
15
+ asTrimmedLowercaseString
16
+ } from "./chunk-QSJ3HFEF.js";
17
+
18
+ // packages/agent-runtime/platformProviderEndpoints.ts
19
+ var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
20
+ var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/responses";
21
+ var XAI_CHAT_COMPLETIONS_ENDPOINT = "https://api.x.ai/v1/chat/completions";
22
+ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
23
+ deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
24
+ fireworks: "https://api.fireworks.ai/inference/v1/chat/completions",
25
+ google: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
26
+ openai: "https://api.openai.com/v1/chat/completions",
27
+ openrouter: "https://openrouter.ai/api/v1/chat/completions",
28
+ // 千问 AI 平台 OpenAI 兼容模式
29
+ qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
30
+ // Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
31
+ moonshot: "https://api.moonshot.cn/v1/chat/completions",
32
+ // 平台托管 Kimi K3 的实际上游
33
+ crof: "https://crof.ai/v1/chat/completions"
34
+ // 无 nolo 默认上游:平台托管模型全部显式分流,未识别模型返回 undefined
35
+ };
36
+ function isOpenAiResponsesModel(args) {
37
+ const provider = asTrimmedLowercaseString(args.provider);
38
+ if (provider === "openai") {
39
+ if (args.endpointKey === "responses") return true;
40
+ if (!args.model) return false;
41
+ try {
42
+ return getModelConfig("openai", args.model).endpointKey === "responses";
43
+ } catch {
44
+ return false;
45
+ }
46
+ }
47
+ if (provider === "deepseek" || provider === "nolo" || provider === "ollama-cloud") {
48
+ if (isPlatformHostedDeepseekModel(args.model)) return true;
49
+ }
50
+ return false;
51
+ }
52
+ function resolvePlatformResponsesEndpoint(provider, model) {
53
+ const normalized = asTrimmedLowercaseString(provider);
54
+ if (normalized === "openai") return OPENAI_RESPONSES_ENDPOINT;
55
+ if (normalized === "deepseek" || normalized === "nolo" || normalized === "ollama-cloud") {
56
+ if (!model || isPlatformHostedDeepseekModel(model)) {
57
+ return DEEPSEEK_RESPONSES_ENDPOINT;
58
+ }
59
+ }
60
+ return void 0;
61
+ }
62
+ var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
63
+ "ollama-cloud": "nolo",
64
+ deepseek: "nolo"
65
+ };
66
+ function resolvePlatformChatCompletionsEndpoint(provider, model) {
67
+ const key = asTrimmedLowercaseString(provider);
68
+ if (!key) return void 0;
69
+ const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
70
+ if (aliased === "nolo" && isPlatformHostedClaudeModel(model)) {
71
+ return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.deepinfra;
72
+ }
73
+ if (aliased === "nolo" && isPlatformHostedGrokModel(model)) {
74
+ return XAI_CHAT_COMPLETIONS_ENDPOINT;
75
+ }
76
+ if (aliased === "nolo" && (isPlatformHostedKimiK26Model(model) || isPlatformHostedGlmModel(model))) {
77
+ return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.openrouter;
78
+ }
79
+ if (aliased === "nolo" && asTrimmedLowercaseString(model) === PLATFORM_HOSTED_KIMI_K3_MODEL) {
80
+ return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.crof;
81
+ }
82
+ if (aliased === "nolo" && (isPlatformHostedGeminiModel(model) || isPlatformHostedQwen37FlashModel(model))) {
83
+ return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS.google;
84
+ }
85
+ if (aliased === "nolo" && isPlatformHostedDeepseekModel(model)) {
86
+ return void 0;
87
+ }
88
+ if (aliased === "nolo") {
89
+ return void 0;
90
+ }
91
+ return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS[aliased];
92
+ }
93
+
94
+ export {
95
+ isOpenAiResponsesModel,
96
+ resolvePlatformResponsesEndpoint,
97
+ resolvePlatformChatCompletionsEndpoint
98
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-GTYM4HKV.js";
4
+ } from "./chunk-ITIA6OAQ.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-DPMBNHOJ.js";
14
+ } from "./chunk-SCUETSRP.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-JZPBVBIY.js";
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
6
  isAntigravityOAuthAgent
7
- } from "./chunk-DPMBNHOJ.js";
7
+ } from "./chunk-SCUETSRP.js";
8
8
  import {
9
9
  clipMultilineText,
10
10
  fetchAndSerializeTable,
11
11
  resolveBuiltinSkillPage,
12
12
  waitForAbortableDelay
13
- } from "./chunk-HDKRSRYU.js";
13
+ } from "./chunk-MUCM2MZB.js";
14
14
  import {
15
15
  createDrainExhaustedResponse,
16
16
  isCoreDrainingBody,
@@ -26,13 +26,13 @@ import {
26
26
  } from "./chunk-GM6PU7B6.js";
27
27
  import {
28
28
  fetchAndCacheMessages
29
- } from "./chunk-73GINUCW.js";
29
+ } from "./chunk-XL7BR2GE.js";
30
30
  import {
31
31
  shouldUseServerProxy
32
32
  } from "./chunk-YYLHWIW6.js";
33
33
  import {
34
34
  fetchServerSyncedCredential
35
- } from "./chunk-ZJMME4DS.js";
35
+ } from "./chunk-LZC5YX6P.js";
36
36
  import {
37
37
  buildCurrentTimeBlock,
38
38
  buildIdentityBlock,
@@ -47,14 +47,16 @@ import {
47
47
  preserveAgentStateFields
48
48
  } from "./chunk-NNWHHCVP.js";
49
49
  import {
50
- buildProviderAuthHeaders,
51
- isOpenAiResponsesModel,
52
- resolvePlatformChatCompletionsEndpoint,
53
- resolvePlatformResponsesEndpoint
54
- } from "./chunk-AFV4FOT2.js";
50
+ buildProviderAuthHeaders
51
+ } from "./chunk-7YYHKBJP.js";
55
52
  import {
56
53
  estimateTokenCount
57
54
  } from "./chunk-AOXVOC6D.js";
55
+ import {
56
+ isOpenAiResponsesModel,
57
+ resolvePlatformChatCompletionsEndpoint,
58
+ resolvePlatformResponsesEndpoint
59
+ } from "./chunk-CPYYM4RJ.js";
58
60
  import {
59
61
  clampReasoningEffort,
60
62
  getModelConfig,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-HDKRSRYU.js";
4
+ } from "./chunk-MUCM2MZB.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-ZZ2MH7LE.js";
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
304
304
  const overrides = {};
305
305
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
306
306
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
307
- const { _executeModel } = await import("./_executeModel-RWPVI3YV.js");
307
+ const { _executeModel } = await import("./_executeModel-RI6DRQTP.js");
308
308
  return _executeModel(
309
309
  {
310
310
  isStreaming: args.isStreaming ?? false,
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
325
325
  * - 循环直到无工具调用或触发其他运行时停止条件
326
326
  */
327
327
  runAgent: create.asyncThunk(async (args, thunkApi) => {
328
- const { runAgentClientLoop } = await import("./runAgentClientLoop-U7HYA3O5.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-D2T2P36H.js");
329
329
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
330
330
  {
331
331
  agentKey: args.agentKey,
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
341
341
  * 聊天轮次流式 Agent 调用
342
342
  */
343
343
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
344
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-T527EQTT.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-BBPSFMTZ.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-VF4K2QE6.js";
36
36
  import {
37
37
  createDocState
38
- } from "./chunk-GMXWYXAF.js";
38
+ } from "./chunk-RTJWH72P.js";
39
39
  import {
40
40
  setDialogExtraReferencesAction
41
41
  } from "./chunk-XCCGU6QB.js";
@@ -45,7 +45,7 @@ import {
45
45
  buildBuiltinObjectSkillDbKey,
46
46
  buildBuiltinObjectSkillPageContent,
47
47
  createDialogAction
48
- } from "./chunk-6SXC35F4.js";
48
+ } from "./chunk-W7J5HZI7.js";
49
49
  import {
50
50
  addCategory,
51
51
  addContentToSpace,
@@ -65,7 +65,7 @@ import {
65
65
  loadTableRows,
66
66
  updateContentCategory,
67
67
  updateContentTitle
68
- } from "./chunk-MPZJVZDC.js";
68
+ } from "./chunk-VOBUVWP5.js";
69
69
  import {
70
70
  incrementFailedSteps,
71
71
  incrementStepsExecuted,
@@ -79,13 +79,13 @@ import {
79
79
  uiAskChoiceFunc,
80
80
  uiAskChoiceFunctionSchema,
81
81
  updateStep
82
- } from "./chunk-73GINUCW.js";
82
+ } from "./chunk-XL7BR2GE.js";
83
83
  import {
84
84
  createAgent,
85
85
  runLlm,
86
86
  streamAgentChatTurn,
87
87
  updateAgent
88
- } from "./chunk-ZJMME4DS.js";
88
+ } from "./chunk-LZC5YX6P.js";
89
89
  import {
90
90
  NOLO_WORKSPACE_TOOL_NAMES,
91
91
  buildAgentRuntimeAgentLookupKeys,
@@ -14907,7 +14907,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14907
14907
  const deletedDialogIds = [];
14908
14908
  const deletedDialogKeys = [];
14909
14909
  const failures = [];
14910
- const { deleteDialog } = await import("./dialogSlice-DOWKOILN.js");
14910
+ const { deleteDialog } = await import("./dialogSlice-JVPBOMFB.js");
14911
14911
  for (const target of targets) {
14912
14912
  try {
14913
14913
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -24325,7 +24325,7 @@ var executeToolRun = createAsyncThunk(
24325
24325
  if (!executionInput) {
24326
24326
  throw new Error(`ToolRun ${id} has no input to execute with.`);
24327
24327
  }
24328
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-XMWCVMPM.js");
24328
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-NWA3J7KE.js");
24329
24329
  const { executor } = findToolExecutor2(run.toolName);
24330
24330
  toolRunStarted({
24331
24331
  id: run.id,
@@ -24349,7 +24349,7 @@ var executeToolRun = createAsyncThunk(
24349
24349
  const latestState = thunkApi.getState();
24350
24350
  const userId = latestState.auth?.currentUser?.userId;
24351
24351
  if (userId) {
24352
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-B6MOVY4N.js");
24352
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-VUAEZVDS.js");
24353
24353
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
24354
24354
  }
24355
24355
  }
@@ -26832,7 +26832,7 @@ async function updateDocFunc(args, thunkApi) {
26832
26832
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
26833
26833
  };
26834
26834
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
26835
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-UAWSKZ2Y.js");
26835
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-WGDO3I76.js");
26836
26836
  if (getDocState().pageKey === id) {
26837
26837
  applyExternalDocUpdate({
26838
26838
  slateData: finalSlateData,
@@ -7,14 +7,14 @@ import {
7
7
  providerHttpFailure,
8
8
  readSseFrames,
9
9
  throwIfChatCompletionStreamFailed
10
- } from "./chunk-RAZOLMJR.js";
10
+ } from "./chunk-CHYAYZJH.js";
11
11
  import {
12
12
  sanitizeForOutbound
13
13
  } from "./chunk-T27IEBNQ.js";
14
14
  import {
15
15
  parseToolArgumentsJson,
16
16
  resolveHistoricalToolContentCap
17
- } from "./chunk-6PO2SYCS.js";
17
+ } from "./chunk-OOK2ZT5F.js";
18
18
  import {
19
19
  createThinkParserState,
20
20
  createToolCallAccumulator,
@@ -39,7 +39,7 @@ import {
39
39
  import {
40
40
  buildProviderAuthHeaders,
41
41
  buildProviderExecutionPlan
42
- } from "./chunk-AFV4FOT2.js";
42
+ } from "./chunk-7YYHKBJP.js";
43
43
  import {
44
44
  NOLO_WORKSPACE_TOOL_NAMES,
45
45
  buildNoloWorkspaceCommandArgs,
@@ -24,7 +24,7 @@ import {
24
24
  parseAgentRunEvent,
25
25
  t,
26
26
  toolLabel
27
- } from "./chunk-O6GEBMIY.js";
27
+ } from "./chunk-YBPAQV37.js";
28
28
  import {
29
29
  NOLO_PROJECT_MANAGER_AGENT_KEY,
30
30
  isLocalCliAgentKey
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-6HYVJV7B.js";
39
39
  import {
40
40
  formatAgentListCard
41
- } from "./chunk-HDKRSRYU.js";
41
+ } from "./chunk-MUCM2MZB.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-RQSOAMPJ.js";
@@ -50,12 +50,12 @@ import {
50
50
  chooseMemoryOwners,
51
51
  loadMemoryCandidatesFromDb,
52
52
  resolveAgentMemoryPolicy
53
- } from "./chunk-6SXC35F4.js";
53
+ } from "./chunk-W7J5HZI7.js";
54
54
  import {
55
55
  API_REPORTED_COST_MULTIPLIER,
56
56
  normalizeUsage,
57
57
  parseUiAskChoiceContent
58
- } from "./chunk-73GINUCW.js";
58
+ } from "./chunk-XL7BR2GE.js";
59
59
  import {
60
60
  resolveAgentRuntimeConfigFromRecord
61
61
  } from "./chunk-OIQPORYI.js";
@@ -64,7 +64,7 @@ import {
64
64
  LOCAL_TURN_ABORTED_CODE,
65
65
  readActionGate,
66
66
  readCommandActionGatePayload
67
- } from "./chunk-6PO2SYCS.js";
67
+ } from "./chunk-OOK2ZT5F.js";
68
68
  import {
69
69
  createThinkParserState,
70
70
  flushThinkParser,
@@ -72,11 +72,11 @@ import {
72
72
  } from "./chunk-N7J63Q6C.js";
73
73
  import {
74
74
  resolvePlatformAuthToken
75
- } from "./chunk-AFV4FOT2.js";
75
+ } from "./chunk-7YYHKBJP.js";
76
76
  import {
77
77
  DEFAULT_CONTEXT_WINDOW,
78
78
  getModelContextWindow
79
- } from "./chunk-2H3XIBY4.js";
79
+ } from "./chunk-4C7K5NXX.js";
80
80
  import {
81
81
  clipCompactText
82
82
  } from "./chunk-AOXVOC6D.js";
@@ -3521,7 +3521,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
3521
3521
  // packages/cli/client/agentRun.ts
3522
3522
  import { ulid } from "ulid";
3523
3523
  async function loadRunLocalAgentTurn() {
3524
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-JX34G47Z.js");
3524
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-B7SHOEHJ.js");
3525
3525
  return runLocalAgentTurn;
3526
3526
  }
3527
3527
  async function resolveCurrentMachineId(options) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getModelContextWindow,
9
9
  resolveBuiltinPlatformAgentConfig
10
- } from "./chunk-2H3XIBY4.js";
10
+ } from "./chunk-4C7K5NXX.js";
11
11
  import {
12
12
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
13
13
  buildCompactionMetricsFromPlan,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-WHD6BG7M.js";
4
+ } from "./chunk-JCGIUBE3.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-MPZJVZDC.js";
3
+ } from "./chunk-VOBUVWP5.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-5YXOG2M4.js");
370
+ const { createPageAction } = await import("./createPageAction-GCO3R6GR.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-AFV4FOT2.js";
3
+ } from "./chunk-7YYHKBJP.js";
4
4
  import {
5
5
  toErrorMessage
6
6
  } from "./chunk-HNMXYYJR.js";
@@ -11,10 +11,10 @@ import {
11
11
  deleteDialog,
12
12
  resetMsgs,
13
13
  toast
14
- } from "./chunk-73GINUCW.js";
14
+ } from "./chunk-XL7BR2GE.js";
15
15
  import {
16
16
  deleteServerSyncedCredential
17
- } from "./chunk-ZJMME4DS.js";
17
+ } from "./chunk-LZC5YX6P.js";
18
18
  import {
19
19
  require_date_fns
20
20
  } from "./chunk-M76ECQRD.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-MPZJVZDC.js";
3
+ } from "./chunk-VOBUVWP5.js";
4
4
  import {
5
5
  prepareAndPersistMessage,
6
6
  uiAskChoiceFunc,
7
7
  uiAskChoiceFunctionSchema
8
- } from "./chunk-73GINUCW.js";
8
+ } from "./chunk-XL7BR2GE.js";
9
9
  import {
10
10
  require_date_fns
11
11
  } from "./chunk-M76ECQRD.js";