nolo-cli 0.54.0-alpha.2 → 0.54.0

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 (133) hide show
  1. package/{_executeModel-ANY4SIAS.js → _executeModel-OPTKYHJA.js} +48 -42
  2. package/{action-Q4W5JPI5.js → action-ORXWW2ZG.js} +8 -8
  3. package/{addContentAction-O25HFR37.js → addContentAction-53BZ34AE.js} +8 -7
  4. package/{addDialogAgentAction-GH7AUPPB.js → addDialogAgentAction-JRYUS54Y.js} +10 -9
  5. package/{agentDeleteCommand-JWIKNWWI.js → agentDeleteCommand-FJIWU2BS.js} +30 -28
  6. package/{agentEmailCommands-PL22BEU5.js → agentEmailCommands-CE32L43B.js} +57 -52
  7. package/{agentListCommands-6NR7AQEK.js → agentListCommands-VJNKULIK.js} +42 -33
  8. package/{agentMachineCommands-TASPU6OA.js → agentMachineCommands-HCJ3WQXL.js} +30 -28
  9. package/{agentRecordCommands-Z64TA63M.js → agentRecordCommands-QFWERED4.js} +55 -50
  10. package/{agentRunCommand-4QJQLPRW.js → agentRunCommand-G3GQMUNN.js} +65 -53
  11. package/{agentRunControl-4GHHSXFZ.js → agentRunControl-INKFDXDA.js} +3 -1
  12. package/{agentRuntimeLocal-PCJJ56J2.js → agentRuntimeLocal-K327ELSL.js} +30 -26
  13. package/{agentSlice-KYLDUSNN.js → agentSlice-ODKF4J6M.js} +8 -8
  14. package/{agentSuperviseCommands-VB6BUS5H.js → agentSuperviseCommands-5AR3DKNN.js} +2 -2
  15. package/{appDeleteCommands-WLHMJAVT.js → appDeleteCommands-XUXMFDI4.js} +31 -29
  16. package/{appDeployCommands-CKON7N2E.js → appDeployCommands-37F4GPCU.js} +31 -29
  17. package/{appDeployStatusCommands-PXRLDASH.js → appDeployStatusCommands-WSPU7TUK.js} +31 -29
  18. package/{appGetCommands-RAB5RM4M.js → appGetCommands-YLOBA3EM.js} +31 -29
  19. package/{appListCommands-GU57FB62.js → appListCommands-UD62R5ME.js} +31 -29
  20. package/{authCommand-QOPOEYEK.js → authCommand-OK6HLHGS.js} +13 -13
  21. package/{authCommands-SBQVTD6V.js → authCommands-2DUIUEMT.js} +2 -2
  22. package/{chatQueueReduxAdapter-5O2WLITN.js → chatQueueReduxAdapter-TV2TUOQS.js} +26 -23
  23. package/{chunk-7CH6U3FL.js → chunk-2GRGFCF6.js} +2 -4
  24. package/{chunk-T27IEBNQ.js → chunk-2QDDKFG5.js} +74 -1
  25. package/{chunk-VULELK4T.js → chunk-2WBFJHQA.js} +4 -26
  26. package/{chunk-IKTHA3JH.js → chunk-3LKZRP7E.js} +2 -2
  27. package/{chunk-INXBNYCG.js → chunk-3Y2K5O2R.js} +64 -6
  28. package/{chunk-VRZIH5JO.js → chunk-3ZTR7ZO4.js} +1 -1
  29. package/{chunk-GV35EHNA.js → chunk-5FCIPEKT.js} +262 -96
  30. package/{chunk-RTLJUGQH.js → chunk-5UAYZEXO.js} +2 -2
  31. package/{chunk-TI5BCZCH.js → chunk-6COJEAYH.js} +32 -101
  32. package/{chunk-Y7LNKP32.js → chunk-6HDYSFLO.js} +4 -6
  33. package/chunk-6IGD47IC.js +19 -0
  34. package/chunk-6YTOJY35.js +352 -0
  35. package/{chunk-6FGXGFAH.js → chunk-75MSWWUE.js} +1 -1
  36. package/{chunk-3Z3DXZBD.js → chunk-7FAS3NEF.js} +16 -16
  37. package/{chunk-AV6KQCM5.js → chunk-7NYDJAQ7.js} +19 -14
  38. package/{chunk-CVT7L2WZ.js → chunk-A65UV3M5.js} +4 -4
  39. package/{chunk-7APQB6R6.js → chunk-AUVFJGPC.js} +3 -3
  40. package/{chunk-H4RYESI6.js → chunk-BBTN4NQD.js} +4 -4
  41. package/{chunk-757BGY6Y.js → chunk-BG7J6Y5X.js} +1 -1
  42. package/chunk-BY2FF2C4.js +526 -0
  43. package/{chunk-FA4SY4F5.js → chunk-BYEJ7K2Z.js} +1 -1
  44. package/chunk-BYXBJQAS.js +0 -0
  45. package/{chunk-3AOLVADY.js → chunk-DVINR3PL.js} +1 -1
  46. package/{chunk-UITMHBVK.js → chunk-EA5OYZVD.js} +1 -1
  47. package/{chunk-4NN3EK7H.js → chunk-EICIFHVS.js} +1 -1
  48. package/chunk-EJE33XNR.js +19059 -0
  49. package/{chunk-6SZ52ORL.js → chunk-FJHMLRDQ.js} +9 -9
  50. package/{chunk-RU5D3B22.js → chunk-GRFK2XP4.js} +2 -2
  51. package/{chunk-J3UALFHL.js → chunk-HJTAGT3W.js} +1 -1
  52. package/{chunk-WL3UOGYO.js → chunk-HPW5MNDQ.js} +38 -98
  53. package/{chunk-H2G6JXTR.js → chunk-HQUORJTM.js} +1 -1
  54. package/{chunk-OYNDYVSE.js → chunk-JON2PHYT.js} +1 -1
  55. package/{chunk-7K5VMB4Q.js → chunk-JXIP6ZWH.js} +7 -7
  56. package/{chunk-KUUTWU4I.js → chunk-K4NISKOR.js} +46 -8
  57. package/{chunk-SP3DPVBH.js → chunk-KLIBF3BY.js} +2 -2
  58. package/chunk-LRGKOI5Y.js +297 -0
  59. package/{chunk-LN3OQJGG.js → chunk-MLEZPE3U.js} +2 -2
  60. package/{chunk-FGEYVPPR.js → chunk-MYMBBB6Q.js} +5 -64
  61. package/{chunk-VRJUIUIY.js → chunk-N4JKMCY3.js} +2 -2
  62. package/{chunk-U5Z7LFZF.js → chunk-NFLA6GSU.js} +4 -4
  63. package/{chunk-SVEUG45B.js → chunk-NHRQCXIQ.js} +0 -24
  64. package/{chunk-56W233KG.js → chunk-NJUQBYFJ.js} +3 -1
  65. package/{chunk-Q24S4NDF.js → chunk-Q4XZVZPN.js} +1 -1
  66. package/{chunk-UW4INMD2.js → chunk-RHMDMTDK.js} +2 -2
  67. package/{chunk-MFI4FGHX.js → chunk-SAJSBPI2.js} +1 -1
  68. package/{chunk-WHVQA7PJ.js → chunk-SSXTSPSG.js} +27 -6
  69. package/{chunk-2BWU4ORW.js → chunk-SUEIAK5N.js} +1 -1
  70. package/{chunk-3QJTD6DO.js → chunk-SVC3GGUA.js} +5 -5
  71. package/{chunk-QDHZCAH3.js → chunk-SVDMVX4G.js} +118 -2
  72. package/{chunk-GBADO3SM.js → chunk-SWJGJMTW.js} +1 -1
  73. package/{chunk-DQLYEGP7.js → chunk-SYYUU7EV.js} +2 -2
  74. package/{chunk-U2A47SVI.js → chunk-TC6P4NDR.js} +7 -7
  75. package/{chunk-V4KZGLOI.js → chunk-TR4DXUYX.js} +1983 -447
  76. package/{chunk-BANYWEYY.js → chunk-TY3ADTX5.js} +1 -1
  77. package/chunk-UAD2WT54.js +64 -0
  78. package/{chunk-PAHILFNT.js → chunk-UGBHDMHI.js} +4 -4
  79. package/{chunk-6FQ2552G.js → chunk-UOWXD4VN.js} +799 -956
  80. package/{chunk-5WADL4O7.js → chunk-UR66XPVF.js} +3 -3
  81. package/{chunk-6BYAXNH5.js → chunk-VZMUOPYG.js} +12 -2
  82. package/{chunk-LA4IDAK7.js → chunk-WQHGJHAL.js} +440 -2981
  83. package/{chunk-GLGD2JGY.js → chunk-XIJZOCSP.js} +7 -7
  84. package/{chunk-BJLYCOZK.js → chunk-YBFJQC2M.js} +93 -776
  85. package/{chunk-MRWGHF56.js → chunk-YDH3FDFQ.js} +12 -356
  86. package/{chunk-32I5RVMY.js → chunk-YLCUU3WM.js} +3 -3
  87. package/{chunk-D3JQPONH.js → chunk-YQBXOHE6.js} +1 -1
  88. package/chunk-ZJ7UHBJS.js +89 -0
  89. package/{chunk-TNPCQNGQ.js → chunk-ZVOHVJI3.js} +4 -9
  90. package/contentThunks-KNI6VXLT.js +71 -0
  91. package/{createAgentAutomationAction-UJLNFFFC.js → createAgentAutomationAction-OK4L33KF.js} +27 -23
  92. package/{createDialogAction-TJCX6GUE.js → createDialogAction-JDSMY4AY.js} +28 -24
  93. package/{createPageAction-N3IYABHV.js → createPageAction-T7RA3HCG.js} +29 -24
  94. package/{dbSlice-D5CNGWPD.js → dbSlice-TVX6SN2T.js} +6 -6
  95. package/{deleteFile-44TUM34Y.js → deleteFile-JYKRT7C3.js} +3 -3
  96. package/{dialogCommands-35M6RBAC.js → dialogCommands-UQZYWOOV.js} +32 -30
  97. package/{dialogSlice-KO7ADD7H.js → dialogSlice-TYW2G7IL.js} +26 -23
  98. package/{docCreateCommands-VXHZWQ3P.js → docCreateCommands-OA6HZBWO.js} +34 -32
  99. package/{docDeleteCommands-4WFAJR6A.js → docDeleteCommands-KBB3YQI2.js} +31 -29
  100. package/{docReadCommands-OYREEFAR.js → docReadCommands-ZLMFVC67.js} +30 -28
  101. package/{docStore-5BU76DFK.js → docStore-2URPBVCS.js} +8 -33
  102. package/{docUpdateCommands-A7QERSME.js → docUpdateCommands-HMH5KUON.js} +34 -32
  103. package/{fetchMessages-KZQVBXKY.js → fetchMessages-DRABNDPZ.js} +3 -3
  104. package/{getPricing-HAU62AFM.js → getPricing-RFOPUWHY.js} +4 -4
  105. package/{handleSendMessageAction-OSGQJQ45.js → handleSendMessageAction-GO53TY7U.js} +28 -25
  106. package/index.js +56 -56
  107. package/{localDialogRead-NQ33HBSI.js → localDialogRead-PUQKFI73.js} +1 -1
  108. package/{machineCommands-J43U3TX5.js → machineCommands-RK6L7ZWL.js} +59 -54
  109. package/{machineWsRunDispatch-Z2Z6STXZ.js → machineWsRunDispatch-3X64DW2Z.js} +54 -49
  110. package/memberThunks-THZYZFSN.js +638 -0
  111. package/{models-4QF4BJVY.js → models-JVKUEER5.js} +2 -2
  112. package/package.json +1 -1
  113. package/{read-RGNPI5H2.js → read-K4JU4MQC.js} +3 -3
  114. package/{readDocTool-6ESWKTXD.js → readDocTool-LQGR6FUN.js} +1 -1
  115. package/{readlineWorkspace-YRPV6JPN.js → readlineWorkspace-XUFJV3RS.js} +604 -263
  116. package/{removeDialogAgentAction-JYT73FU2.js → removeDialogAgentAction-ECHCFB7N.js} +12 -11
  117. package/{runAgentClientLoop-5YM5WMAY.js → runAgentClientLoop-24GQ2AW6.js} +46 -40
  118. package/{setDialogExtraReferencesAction-D564LMYQ.js → setDialogExtraReferencesAction-KCVJNGMB.js} +9 -8
  119. package/{setPrimaryDialogAgentAction-ACY3BLYA.js → setPrimaryDialogAgentAction-VDOBOMKC.js} +12 -11
  120. package/{settingSlice-MKI3MNZJ.js → settingSlice-VR2IJSXC.js} +7 -7
  121. package/{skillDiscovery-GPUDHDTZ.js → skillDiscovery-2QTZINON.js} +3 -3
  122. package/{spaceCommands-MY26V52L.js → spaceCommands-S5YJJXL7.js} +30 -28
  123. package/{streamAgentChatTurn-XV5X5TNQ.js → streamAgentChatTurn-QHKP3ABO.js} +77 -64
  124. package/{switchDialogAgentAction-CJ5H6SAR.js → switchDialogAgentAction-5L4UP7VI.js} +10 -9
  125. package/{toolApiClient-B2MFXMEG.js → toolApiClient-53U4UDFF.js} +3 -2
  126. package/{tools-MIMELA2Y.js → tools-SSXSTC3O.js} +37 -32
  127. package/{tuiSummaryLlmCaller-XJ5BKNNS.js → tuiSummaryLlmCaller-URFJHFC5.js} +17 -15
  128. package/{updateDialogTitleAction-EIZUSWHR.js → updateDialogTitleAction-YFYAEW3T.js} +28 -24
  129. package/chunk-6BGAQ3KR.js +0 -7081
  130. package/chunk-YBV6QJKM.js +0 -441
  131. package/spaceSlice-JUIXC365.js +0 -127
  132. package/{chunk-NQ4N4IGO.js → chunk-CS6TCJ7E.js} +3 -3
  133. package/{chunk-PYKV6FSC.js → chunk-XOJRZUPF.js} +3 -3
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-DQLYEGP7.js";
4
+ } from "./chunk-SYYUU7EV.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-A7GB5UGH.js";
14
14
  import {
15
15
  createSpaceKey
16
- } from "./chunk-FGEYVPPR.js";
16
+ } from "./chunk-UAD2WT54.js";
17
17
  import {
18
18
  asTrimmedLowercaseString
19
19
  } from "./chunk-QSJ3HFEF.js";
@@ -1,16 +1,19 @@
1
+ import {
2
+ buildResponseGuidelines
3
+ } from "./chunk-6IGD47IC.js";
1
4
  import {
2
5
  getLocalProviderSecret
3
6
  } from "./chunk-HS7MLR74.js";
4
7
  import {
5
8
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
9
  isAntigravityOAuthAgent
7
- } from "./chunk-757BGY6Y.js";
10
+ } from "./chunk-BG7J6Y5X.js";
8
11
  import {
9
12
  clipMultilineText,
10
13
  fetchAndSerializeTable,
11
14
  resolveBuiltinSkillPage,
12
15
  waitForAbortableDelay
13
- } from "./chunk-V4KZGLOI.js";
16
+ } from "./chunk-TR4DXUYX.js";
14
17
  import {
15
18
  isGatewayHttpStatus
16
19
  } from "./chunk-NF64D32W.js";
@@ -22,19 +25,19 @@ import {
22
25
  } from "./chunk-3L2WKC3W.js";
23
26
  import {
24
27
  slateToSimplifiedMarkdown
25
- } from "./chunk-VRZIH5JO.js";
28
+ } from "./chunk-3ZTR7ZO4.js";
26
29
  import {
27
30
  extractCategorizedMentions
28
31
  } from "./chunk-MEYIRKDN.js";
29
32
  import {
30
33
  fetchAndCacheMessages
31
- } from "./chunk-BJLYCOZK.js";
34
+ } from "./chunk-YBFJQC2M.js";
32
35
  import {
33
36
  shouldUseServerProxy
34
37
  } from "./chunk-YYLHWIW6.js";
35
38
  import {
36
39
  fetchServerSyncedCredential
37
- } from "./chunk-U2A47SVI.js";
40
+ } from "./chunk-TC6P4NDR.js";
38
41
  import {
39
42
  buildSkillGuidancePromptBlock,
40
43
  extractRuntimePageCapabilities,
@@ -44,33 +47,34 @@ import {
44
47
  buildCurrentTimeBlock,
45
48
  buildIdentityBlock,
46
49
  buildRuntimeGuidanceBlocks,
50
+ compileContextLayers,
47
51
  normalizeChatCompletionsBodyForProvider,
48
52
  resolveToolGuidedSections
49
- } from "./chunk-YBV6QJKM.js";
53
+ } from "./chunk-BY2FF2C4.js";
50
54
  import {
51
55
  convertMessagesToResponsesInput,
52
56
  getUsageRequestOptions,
53
57
  preserveAgentStateFields
54
- } from "./chunk-6BYAXNH5.js";
58
+ } from "./chunk-VZMUOPYG.js";
55
59
  import {
56
60
  buildProviderAuthHeaders
57
- } from "./chunk-SP3DPVBH.js";
61
+ } from "./chunk-KLIBF3BY.js";
58
62
  import {
59
63
  estimateTokenCount
60
- } from "./chunk-H4RYESI6.js";
64
+ } from "./chunk-BBTN4NQD.js";
61
65
  import {
62
66
  isOpenAiResponsesModel,
63
67
  resolvePlatformChatCompletionsEndpoint,
64
68
  resolvePlatformResponsesEndpoint
65
- } from "./chunk-VRJUIUIY.js";
66
- import {
67
- createFileCredentialBroker
68
- } from "./chunk-NQ4N4IGO.js";
69
+ } from "./chunk-N4JKMCY3.js";
69
70
  import {
70
71
  clampReasoningEffort,
71
72
  getModelConfig,
72
73
  isModelSupportReasoningEffort
73
- } from "./chunk-QDHZCAH3.js";
74
+ } from "./chunk-SVDMVX4G.js";
75
+ import {
76
+ createFileCredentialBroker
77
+ } from "./chunk-CS6TCJ7E.js";
74
78
  import {
75
79
  toErrorMessage
76
80
  } from "./chunk-HNMXYYJR.js";
@@ -78,7 +82,7 @@ import {
78
82
  MEMORY_USE_GUIDANCE,
79
83
  buildUserResponseLanguageContext,
80
84
  wrapHistoricalSummaryWithReplayGuard
81
- } from "./chunk-7CH6U3FL.js";
85
+ } from "./chunk-2GRGFCF6.js";
82
86
  import {
83
87
  canonicalizeToolNames
84
88
  } from "./chunk-O6OSWFZQ.js";
@@ -86,13 +90,13 @@ import {
86
90
  isDeepInfraKimiModel,
87
91
  isFireworksKimiModel,
88
92
  resolveFireworksKimiModel
89
- } from "./chunk-WL3UOGYO.js";
93
+ } from "./chunk-HPW5MNDQ.js";
90
94
  import {
91
95
  createSpaceKey
92
- } from "./chunk-FGEYVPPR.js";
96
+ } from "./chunk-UAD2WT54.js";
93
97
  import {
94
98
  read
95
- } from "./chunk-AV6KQCM5.js";
99
+ } from "./chunk-7NYDJAQ7.js";
96
100
  import {
97
101
  asTrimmedLowercaseString
98
102
  } from "./chunk-QSJ3HFEF.js";
@@ -101,16 +105,16 @@ import {
101
105
  } from "./chunk-BJIRLHJR.js";
102
106
  import {
103
107
  getRuntimeServerContext
104
- } from "./chunk-PYKV6FSC.js";
108
+ } from "./chunk-XOJRZUPF.js";
105
109
  import {
106
110
  isAbortError
107
111
  } from "./chunk-QOKAKDPE.js";
108
- import {
109
- isRecord
110
- } from "./chunk-KUG52IAP.js";
111
112
  import {
112
113
  asTrimmedString
113
114
  } from "./chunk-3EUW3WEO.js";
115
+ import {
116
+ isRecord
117
+ } from "./chunk-KUG52IAP.js";
114
118
  import {
115
119
  API_ENDPOINTS
116
120
  } from "./chunk-LCBAMY2M.js";
@@ -485,66 +489,6 @@ function resolveAgentCallPlan(agentConfig, _env) {
485
489
  };
486
490
  }
487
491
 
488
- // packages/ai/agent/contextCompiler.ts
489
- function createHash(_algo) {
490
- let buf = "";
491
- return {
492
- update(s) {
493
- buf += s;
494
- return this;
495
- },
496
- digest(_enc) {
497
- let h = 2166136261;
498
- for (let i = 0; i < buf.length; i++) {
499
- h ^= buf.charCodeAt(i);
500
- h = h * 16777619 >>> 0;
501
- }
502
- return h.toString(16).padStart(8, "0");
503
- }
504
- };
505
- }
506
- var hasLayerContent = (layer) => Boolean(layer.content);
507
- var estimateContextTokens = (content) => estimateTokenCount(content);
508
- var compileContextLayers = (layers) => {
509
- const compiledLayers = [];
510
- for (const layer of layers) {
511
- if (!hasLayerContent(layer)) continue;
512
- const estimatedTokens = estimateContextTokens(layer.content);
513
- compiledLayers.push({
514
- id: layer.id,
515
- owner: layer.owner,
516
- content: layer.content,
517
- cacheScope: layer.cacheScope ?? "turn",
518
- charCount: layer.content.length,
519
- estimatedTokens,
520
- tokenBudget: layer.tokenBudget,
521
- budgetStatus: typeof layer.tokenBudget === "number" ? estimatedTokens <= layer.tokenBudget ? "within-budget" : "over-budget" : void 0
522
- });
523
- }
524
- const stablePrefixLayers = [];
525
- for (const layer of compiledLayers) {
526
- if (layer.cacheScope === "turn") break;
527
- stablePrefixLayers.push(layer);
528
- }
529
- const stablePrefixContent = stablePrefixLayers.map((layer) => layer.content).join("\n\n");
530
- const dynamicLayers = compiledLayers.slice(stablePrefixLayers.length);
531
- const dynamicContent = dynamicLayers.map((layer) => layer.content).join("\n\n");
532
- const misorderedLayerIds = dynamicLayers.filter((layer) => layer.cacheScope !== "turn").map((layer) => layer.id);
533
- return {
534
- content: compiledLayers.map((layer) => layer.content).join("\n\n"),
535
- stablePrefixContent,
536
- dynamicContent,
537
- layers: compiledLayers,
538
- cacheProfile: {
539
- stablePrefixHash: createHash("sha256").update(stablePrefixContent).digest("hex"),
540
- stablePrefixLayerIds: stablePrefixLayers.map((layer) => layer.id),
541
- stablePrefixCharCount: stablePrefixContent.length,
542
- stablePrefixEstimatedTokens: estimateContextTokens(stablePrefixContent),
543
- misorderedLayerIds
544
- }
545
- };
546
- };
547
-
548
492
  // packages/ai/agent/buildSystemPrompt.ts
549
493
  var CLARIFICATION_MODE_INSTRUCTIONS = `\u5728\u4F60\u8FD8\u4E0D\u4E86\u89E3\u7528\u6237\u610F\u56FE\u65F6\uFF0C\u901A\u8FC7\u63D0\u95EE\u6765\u6F84\u6E05\u9700\u6C42\uFF0C\u800C\u4E0D\u662F\u4ED3\u4FC3\u7ED9\u51FA\u7B54\u6848\u3002`;
550
494
  var isBrowser = typeof window !== "undefined";
@@ -559,22 +503,6 @@ var createContextSection = (title, description, content) => content ? `### ${tit
559
503
  ${description}
560
504
 
561
505
  ${content} ` : "";
562
- var buildResponseGuidelines = (isMobile) => {
563
- if (isMobile) {
564
- return `--- \u54CD\u5E94\u5C55\u793A\u6307\u5357\uFF08\u7A84\u5C4F / TUI / \u79FB\u52A8\u7AEF\uFF09 ---
565
- \u5F53\u524D\u5904\u4E8E\u7A84\u5C4F\u6216\u7EC8\u7AEF\u89C6\u56FE\uFF0C\u8BF7\u91C7\u7528\u7D27\u51D1\u3001\u9AD8\u626B\u63CF\u7387\u7684\u6392\u7248\uFF1A
566
- - **\u7ED3\u6784\u4E0E\u7559\u767D**\uFF1A\u7ED3\u8BBA\u6216\u5173\u952E\u72B6\u6001\u7F6E\u9876\uFF0C\u76F4\u5954\u4E3B\u9898\uFF1B\u77ED\u6BB5\u843D\uFF082-4 \u53E5\uFF09\u5E76\u4FDD\u6301\u7A7A\u884C\u547C\u5438\uFF0C\u62D2\u7EDD\u957F\u6BB5\u6587\u5B57\u5899\u3002
567
- - **\u5217\u8868\u4E0E\u7F29\u8FDB**\uFF1A\u5217\u8868\u9879\u7528\u300C- **\u6838\u5FC3\u8BCD**\uFF1A\u8BF4\u660E\u300D\uFF1B\u5D4C\u5957\u6700\u591A 2 \u5C42\uFF0C\u5B50\u5217\u8868\u7F29\u8FDB 2 \u7A7A\u683C\uFF0C\u9632\u6B62\u7EC8\u7AEF\u4E0E\u79FB\u52A8\u7AEF\u6298\u884C\u9519\u4F4D\uFF1B\u5E76\u5217\u7528\u65E0\u5E8F\u5217\u8868\uFF0C\u6B65\u9AA4\u7528\u6709\u5E8F\u5217\u8868\u3002
568
- - **\u8868\u683C\u964D\u7EA7**\uFF1A\u4E25\u7981\u4F7F\u7528 \u22654 \u5217\u7684\u5927\u5BBD\u8868\uFF08\u7A84\u5C4F/\u7EC8\u7AEF\u4E0B\u6298\u884C\u4E25\u91CD\u9519\u4F4D\uFF09\uFF0C\u6539\u7528\u300C\u952E\u503C\u6E05\u5355\u300D\u6216\u7EB5\u5411\u5361\u7247\u3002
569
- - **\u7B26\u53F7\u4E0E\u4EE3\u7801**\uFF1A\u514B\u5236\u4F7F\u7528\u300C---\u300D\u5206\u5272\u7EBF\uFF08\u4EC5\u5927\u4E3B\u9898\u5207\u6362\u6216\u7ED3\u8BBA\u524D\uFF0C\u524D\u540E\u7559\u7A7A\u884C\uFF09\uFF1B\u8DEF\u5F84\u3001\u547D\u4EE4\u4E0E\u53C2\u6570\u4E00\u5F8B\u7528\u53CD\u5F15\u53F7 \` \` \u5305\u88F9\uFF1B\u4EE3\u7801\u5757\u6807\u660E\u8BED\u8A00\u4E14\u907F\u514D\u6A2A\u5411\u8D85\u957F\u884C\uFF1B\u514B\u5236 Emoji\u3002`;
570
- }
571
- return `--- \u54CD\u5E94\u5C55\u793A\u6307\u5357\uFF08\u5BBD\u5C4F / \u684C\u9762\u7AEF\uFF09 ---
572
- \u5F53\u524D\u5904\u4E8E\u5927\u5C4F\u89C6\u56FE\uFF0C\u53EF\u5145\u5206\u53D1\u6325\u7A7A\u95F4\u4F18\u52BF\uFF1A
573
- - **\u7ED3\u6784\u4E0E\u7559\u767D**\uFF1A\u63D0\u4F9B\u5C42\u6B21\u6E05\u6670\u7684\u5168\u666F\u7ED3\u6784\uFF0C\u91CD\u8981\u6A21\u5757\u7528\u4E8C\u7EA7/\u4E09\u7EA7\u6807\u9898\u5212\u5206\uFF1B\u6BB5\u843D\u4FDD\u6301 2-4 \u53E5\u5E76\u7559\u7A7A\u884C\u547C\u5438\uFF0C\u76F4\u5954\u4E3B\u9898\u3002
574
- - **\u5217\u8868\u4E0E\u7F29\u8FDB**\uFF1A\u5217\u8868\u9879\u7528\u300C- **\u6838\u5FC3\u8BCD**\uFF1A\u8BF4\u660E\u300D\uFF1B\u5D4C\u5957\u6700\u591A 2 \u5C42\uFF0C\u5B50\u5217\u8868\u7F29\u8FDB 2 \u7A7A\u683C\uFF1B\u5E76\u5217\u7528\u65E0\u5E8F\u5217\u8868\uFF0C\u6B65\u9AA4\u7528\u6709\u5E8F\u5217\u8868\u3002
575
- - **\u8868\u683C\u4E0E\u5BF9\u6BD4**\uFF1A\u5BBD\u5C4F\u4E0B\u53EF\u9002\u5EA6\u4F7F\u7528 Markdown \u591A\u5217\u8868\u683C\u8FDB\u884C\u65B9\u6848\u6A2A\u5411\u5BF9\u6BD4\u3001\u53C2\u6570\u6C47\u603B\u6216\u77E9\u9635\u5206\u6790\u3002
576
- - **\u7B26\u53F7\u4E0E\u4EE3\u7801**\uFF1A\u53EF\u5C55\u793A\u66F4\u5B8C\u6574\u7684\u4EE3\u7801\u4E0A\u4E0B\u6587\u4E0E\u591A\u6B65\u6267\u884C\u793A\u4F8B\uFF1B\u8DEF\u5F84\u3001\u547D\u4EE4\u4E0E\u53C2\u6570\u7528\u53CD\u5F15\u53F7 \` \` \u5305\u88F9\uFF0C\u4EE3\u7801\u5757\u6807\u660E\u8BED\u8A00\uFF1B\u514B\u5236\u4F7F\u7528\u5206\u5272\u7EBF\u4E0E Emoji\u3002`;
577
- };
578
506
  var buildReferenceMaterialsBlock = (contexts) => {
579
507
  const sections = [
580
508
  createContextSection(
@@ -706,6 +634,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
706
634
  { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
707
635
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
708
636
  { id: "core-persona", owner: "agent", cacheScope: "session", content: corePersonaSection },
637
+ { id: "tool-round-economy", owner: "platform", cacheScope: "session", content: toolSections.toolRoundEconomy },
709
638
  { id: "agent-orchestration", owner: "platform", cacheScope: "session", content: toolSections.agentOrchestration },
710
639
  { id: "agent-collaboration", owner: "platform", cacheScope: "session", content: toolSections.agentCollaboration },
711
640
  { id: "web-access", owner: "platform", cacheScope: "session", content: toolSections.webAccess },
@@ -713,8 +642,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
713
642
  { id: "clarification-mode", owner: "platform", cacheScope: "session", content: clarifyingSection },
714
643
  { id: "knowledge-management", owner: "platform", cacheScope: "session", content: toolSections.knowledgeManagement },
715
644
  { id: "memory-capture", owner: "platform", cacheScope: "session", content: toolSections.memoryCapture },
716
- { id: "self-update", owner: "platform", cacheScope: "session", content: toolSections.selfUpdate },
717
- { id: "generic-agent-update", owner: "platform", cacheScope: "session", content: toolSections.genericAgentUpdate },
645
+ { id: "agent-config-maintenance", owner: "platform", cacheScope: "session", content: toolSections.agentConfigMaintenance },
718
646
  { id: "context-layer-contract", owner: "platform", cacheScope: "static", content: contextLayerContract },
719
647
  {
720
648
  id: "email-registration-workflow",
@@ -809,6 +737,7 @@ var buildRequestBody = (options) => {
809
737
  model,
810
738
  messages,
811
739
  providerName,
740
+ customProviderUrl,
812
741
  temperature,
813
742
  top_p,
814
743
  frequency_penalty,
@@ -825,7 +754,8 @@ var buildRequestBody = (options) => {
825
754
  stream: true
826
755
  };
827
756
  const usageRequestOptions = getUsageRequestOptions(providerName, {
828
- api: "chat-completions"
757
+ api: "chat-completions",
758
+ endpoint: customProviderUrl
829
759
  });
830
760
  Object.assign(bodyData, usageRequestOptions);
831
761
  if (reasoning_effort && isModelSupportReasoningEffort(model)) {
@@ -881,6 +811,7 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
881
811
  model: resolvedModel,
882
812
  messages: messagesWithPrompt,
883
813
  providerName,
814
+ customProviderUrl: agentConfig.customProviderUrl,
884
815
  temperature: agentConfig.temperature,
885
816
  top_p: agentConfig.top_p,
886
817
  frequency_penalty: agentConfig.frequency_penalty,
@@ -1,19 +1,16 @@
1
- import {
2
- updateContentTitle
3
- } from "./chunk-LA4IDAK7.js";
4
1
  import {
5
2
  require_date_fns
6
3
  } from "./chunk-M76ECQRD.js";
7
4
  import {
8
5
  require_react
9
- } from "./chunk-MRWGHF56.js";
6
+ } from "./chunk-YDH3FDFQ.js";
10
7
  import {
11
8
  toErrorMessage
12
9
  } from "./chunk-HNMXYYJR.js";
13
10
  import {
14
11
  patch,
15
12
  readAndWait
16
- } from "./chunk-AV6KQCM5.js";
13
+ } from "./chunk-7NYDJAQ7.js";
17
14
  import {
18
15
  asOptionalTrimmedString
19
16
  } from "./chunk-G3SUCT4W.js";
@@ -329,6 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
329
326
  ).unwrap();
330
327
  if (dbSpaceId) {
331
328
  try {
329
+ const { updateContentTitle } = await import("./contentThunks-KNI6VXLT.js");
332
330
  await dispatch(
333
331
  updateContentTitle({
334
332
  spaceId: dbSpaceId,
@@ -367,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
365
  }
368
366
  }
369
367
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-N3IYABHV.js");
368
+ const { createPageAction } = await import("./createPageAction-T7RA3HCG.js");
371
369
  return createPageAction(args, thunkApi);
372
370
  }
373
371
  function subscribe(listener) {
@@ -0,0 +1,19 @@
1
+ // packages/agent-runtime/responseGuidelines.ts
2
+ var buildResponseGuidelines = (isMobile) => {
3
+ if (isMobile) {
4
+ return `--- \u54CD\u5E94\u5C55\u793A\u6307\u5357\uFF08\u7A84\u5C4F / TUI / \u79FB\u52A8\u7AEF\uFF09 ---
5
+ \u5F53\u524D\u5904\u4E8E\u7A84\u5C4F\u6216\u7EC8\u7AEF\u89C6\u56FE\uFF0C\u91C7\u7528\u7D27\u51D1\u3001\u9AD8\u626B\u63CF\u7387\u6392\u7248\uFF1A\u7ED3\u8BBA/\u5173\u952E\u72B6\u6001\u7F6E\u9876\uFF0C\u77ED\u6BB5\u843D\uFF082-4 \u53E5\uFF09\u5E76\u4FDD\u6301\u7A7A\u884C\uFF0C\u62D2\u7EDD\u6587\u5B57\u5899\u3002
6
+ - \u5217\u8868\u9879\u7528\u300C- **\u6838\u5FC3\u8BCD**\uFF1A\u8BF4\u660E\u300D\uFF1B\u5D4C\u5957\u6700\u591A 2 \u5C42\uFF0C\u5B50\u5217\u8868\u7F29\u8FDB 2 \u7A7A\u683C\uFF1B\u5E76\u5217\u7528\u65E0\u5E8F\u5217\u8868\uFF0C\u6B65\u9AA4\u7528\u6709\u5E8F\u5217\u8868\u3002
7
+ - **\u8868\u683C\u964D\u7EA7**\uFF1A\u4E25\u7981\u4F7F\u7528 \u22654 \u5217\u7684\u5927\u5BBD\u8868\uFF08\u7A84\u5C4F/\u7EC8\u7AEF\u6298\u884C\u4E25\u91CD\u9519\u4F4D\uFF09\uFF0C\u6539\u7528\u952E\u503C\u6E05\u5355\u6216\u7EB5\u5411\u5361\u7247\u3002
8
+ - \u514B\u5236\u5206\u5272\u7EBF\uFF08\u4EC5\u5927\u4E3B\u9898\u5207\u6362\u6216\u7ED3\u8BBA\u524D\uFF0C\u524D\u540E\u7559\u7A7A\u884C\uFF09\uFF1B\u8DEF\u5F84\u3001\u547D\u4EE4\u4E0E\u53C2\u6570\u7528\u53CD\u5F15\u53F7 \` \` \u5305\u88F9\uFF1B\u4EE3\u7801\u5757\u6807\u660E\u8BED\u8A00\u4E14\u907F\u514D\u6A2A\u5411\u8D85\u957F\u884C\uFF1B\u514B\u5236 Emoji\u3002`;
9
+ }
10
+ return `--- \u54CD\u5E94\u5C55\u793A\u6307\u5357\uFF08\u5BBD\u5C4F / \u684C\u9762\u7AEF\uFF09 ---
11
+ \u5F53\u524D\u5904\u4E8E\u5927\u5C4F\u89C6\u56FE\uFF1A\u5C42\u6B21\u6E05\u6670\u7684\u5168\u666F\u7ED3\u6784\uFF0C\u91CD\u8981\u6A21\u5757\u7528\u4E8C\u7EA7/\u4E09\u7EA7\u6807\u9898\u5212\u5206\uFF1B\u6BB5\u843D 2-4 \u53E5\u5E76\u7559\u7A7A\u884C\uFF0C\u76F4\u5954\u4E3B\u9898\u3002
12
+ - \u5217\u8868\u9879\u7528\u300C- **\u6838\u5FC3\u8BCD**\uFF1A\u8BF4\u660E\u300D\uFF1B\u5D4C\u5957\u6700\u591A 2 \u5C42\uFF0C\u5B50\u5217\u8868\u7F29\u8FDB 2 \u7A7A\u683C\uFF1B\u5E76\u5217\u7528\u65E0\u5E8F\u5217\u8868\uFF0C\u6B65\u9AA4\u7528\u6709\u5E8F\u5217\u8868\u3002
13
+ - **\u8868\u683C\u4E0E\u5BF9\u6BD4**\uFF1A\u5BBD\u5C4F\u4E0B\u53EF\u9002\u5EA6\u4F7F\u7528 Markdown \u591A\u5217\u8868\u683C\u505A\u65B9\u6848\u5BF9\u6BD4\u3001\u53C2\u6570\u6C47\u603B\u6216\u77E9\u9635\u5206\u6790\u3002
14
+ - \u53EF\u5C55\u793A\u66F4\u5B8C\u6574\u7684\u4EE3\u7801\u4E0A\u4E0B\u6587\u4E0E\u591A\u6B65\u6267\u884C\u793A\u4F8B\uFF1B\u8DEF\u5F84\u3001\u547D\u4EE4\u4E0E\u53C2\u6570\u7528\u53CD\u5F15\u53F7 \` \` \u5305\u88F9\uFF0C\u4EE3\u7801\u5757\u6807\u660E\u8BED\u8A00\uFF1B\u514B\u5236\u5206\u5272\u7EBF\u4E0E Emoji\u3002`;
15
+ };
16
+
17
+ export {
18
+ buildResponseGuidelines
19
+ };