nolo-cli 0.10.0 → 0.11.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 (106) hide show
  1. package/{_executeModel-YAXYAUOK.js → _executeModel-ZEDPX6OF.js} +47 -45
  2. package/{action-TLI3V62L.js → action-AA4IJ5K2.js} +9 -9
  3. package/{addContentAction-PLWJSCOZ.js → addContentAction-QYVO4SYP.js} +8 -8
  4. package/{addDialogAgentAction-BJ6SB76X.js → addDialogAgentAction-WVVKT5WQ.js} +10 -10
  5. package/{agentDeleteCommand-2VYX73U5.js → agentDeleteCommand-RDPGYIWF.js} +25 -25
  6. package/{agentEmailCommands-3GDZIX64.js → agentEmailCommands-2HJJKS5F.js} +59 -56
  7. package/{agentListCommands-UWVBT3LH.js → agentListCommands-HFEVV3ZW.js} +30 -29
  8. package/{agentMachineCommands-WOKMUG2Y.js → agentMachineCommands-25ZOENJU.js} +28 -28
  9. package/{agentRecordCommands-MVNZRH3U.js → agentRecordCommands-GTCOAM3L.js} +50 -47
  10. package/{agentRunCommand-K7THIJLA.js → agentRunCommand-YBS3JDLD.js} +57 -53
  11. package/{agentRuntimeLocal-WJIGU24U.js → agentRuntimeLocal-UQBMQI2M.js} +11 -11
  12. package/{agentSlice-LL5TKZEO.js → agentSlice-6EKOBCCS.js} +9 -9
  13. package/{authCommand-TC2SW2CQ.js → authCommand-O2OWACN4.js} +12 -12
  14. package/{authCommands-XPEHTKSM.js → authCommands-H7365TZP.js} +6 -6
  15. package/{chunk-TYSCFY6S.js → chunk-2W2VYVI5.js} +334 -90
  16. package/{chunk-4SIMLBEU.js → chunk-3NSIQZZ6.js} +3 -3
  17. package/{chunk-AUQ747NZ.js → chunk-4SOKXIW4.js} +70 -6
  18. package/{chunk-PIVFPOW6.js → chunk-5MOUAAMK.js} +75 -71
  19. package/{chunk-A67QFHAA.js → chunk-5OIFWVX7.js} +1 -1
  20. package/{chunk-5JGGZCZL.js → chunk-7D3JY6C2.js} +2 -2
  21. package/{chunk-OR2XR25C.js → chunk-AEZAORLG.js} +4 -4
  22. package/chunk-AFON4QUU.js +112 -0
  23. package/{chunk-6KUOUWMP.js → chunk-BX6U3ETE.js} +19 -12
  24. package/{chunk-CDTLMEB3.js → chunk-C2MDQQ4O.js} +1 -1
  25. package/{chunk-SL35K7AH.js → chunk-C4FTUXVF.js} +2 -82
  26. package/{chunk-GAKEBQD6.js → chunk-D6OQHXVG.js} +11 -7
  27. package/{chunk-WPE4F4Z6.js → chunk-DWGAEFJL.js} +1 -1
  28. package/{chunk-HJGEVL7C.js → chunk-E4HNJSHC.js} +19 -19
  29. package/{chunk-TNPIMII7.js → chunk-EVZKZF32.js} +72 -39
  30. package/{chunk-C3RUNRHT.js → chunk-FXXSGWAJ.js} +1 -1
  31. package/{chunk-7KNKFIRO.js → chunk-GBDSZATH.js} +3 -3
  32. package/{chunk-7U44LYTR.js → chunk-IPYUUY4E.js} +1 -1
  33. package/{chunk-QAALPJS7.js → chunk-KJR5KAUQ.js} +2 -2
  34. package/{chunk-OZMMKDBI.js → chunk-KQQVGRA3.js} +23 -23
  35. package/{chunk-AVMKZHBC.js → chunk-L53FGHA4.js} +3 -2
  36. package/{chunk-CL3IOKGK.js → chunk-LAX2JSTX.js} +2 -2
  37. package/{chunk-NPVBXJY2.js → chunk-LP65VRCI.js} +5 -5
  38. package/chunk-LTRXGFMS.js +83 -0
  39. package/{chunk-KBKYAONQ.js → chunk-MQI77IRB.js} +2 -2
  40. package/{chunk-HFASY3WO.js → chunk-NEM67FX7.js} +1 -1
  41. package/{chunk-BE2OOJ5P.js → chunk-O26GI2JP.js} +8 -8
  42. package/{chunk-PAKN26FP.js → chunk-OUI3ZHYD.js} +1 -1
  43. package/{chunk-2O4IZNTG.js → chunk-PXQN7IBQ.js} +2 -2
  44. package/{chunk-4IJYA27C.js → chunk-PXZAAB4L.js} +4 -4
  45. package/{chunk-I5URP43I.js → chunk-Q3UKJVU4.js} +9 -9
  46. package/{chunk-AS4PVWA4.js → chunk-QNMFBBZK.js} +1 -1
  47. package/{chunk-6SLCD4RB.js → chunk-S3GS2PRL.js} +10 -10
  48. package/{chunk-T7R3NGUU.js → chunk-SV5MWASH.js} +16 -16
  49. package/{chunk-6JJWFVZ6.js → chunk-TACHTH5D.js} +15 -15
  50. package/chunk-VC6OZXO5.js +298 -0
  51. package/{chunk-ZQ2UM4KG.js → chunk-WZSRQNQG.js} +1 -292
  52. package/{chunk-EXXFGKF7.js → chunk-X2S7JTIG.js} +222 -45
  53. package/{chunk-DSZUWUYB.js → chunk-XFOLQLDN.js} +1 -1
  54. package/{chunk-YIHFXH5Q.js → chunk-XYZA7S7V.js} +6 -6
  55. package/{chunk-3Y3HW5PX.js → chunk-ZEYDOXHF.js} +105 -126
  56. package/{chunk-5KLGBAAR.js → chunk-ZPRK73XY.js} +1 -1
  57. package/{cliExecutor-DNE7TCC4.js → cliExecutor-K3F7DMRO.js} +2 -2
  58. package/{createAgentAutomationAction-CCE7CWGQ.js → createAgentAutomationAction-LTI5QU35.js} +21 -21
  59. package/{createDialogAction-QTRR4AT7.js → createDialogAction-OJJ7L3L3.js} +23 -22
  60. package/{createPageAction-Y4KQOAJE.js → createPageAction-5MXWVRGY.js} +26 -25
  61. package/{dbSlice-WWNV2SGX.js → dbSlice-RQFQQVHT.js} +7 -7
  62. package/{deleteFile-OW53A6BX.js → deleteFile-7XP5BGC7.js} +5 -5
  63. package/{dialogCommands-SMKIAC3Y.js → dialogCommands-JTJ3RPPW.js} +21 -21
  64. package/{dialogSlice-PT7YBWNE.js → dialogSlice-OWROKURJ.js} +19 -19
  65. package/{docCreateCommands-RFNA4HNM.js → docCreateCommands-WJBEW2V7.js} +22 -21
  66. package/{docDeleteCommands-4YZ325M6.js → docDeleteCommands-BVEHJOY5.js} +24 -23
  67. package/{docReadCommands-RT6VAFFG.js → docReadCommands-NEWOZIJV.js} +22 -21
  68. package/{docStore-QUQZAFZF.js → docStore-3DXRYBMD.js} +20 -20
  69. package/{docUpdateCommands-EKKKNYPW.js → docUpdateCommands-C7WHT7UU.js} +22 -21
  70. package/fetchMessages-KTNM7QAR.js +1 -1
  71. package/{handleSendMessageAction-5NSYAS53.js → handleSendMessageAction-B5PRR7BE.js} +24 -24
  72. package/index.js +58 -58
  73. package/{localDialogRead-2VRI24F4.js → localDialogRead-YSKFFRTT.js} +1 -1
  74. package/{machineCommands-DOOSIUKG.js → machineCommands-IIIREAEK.js} +64 -59
  75. package/{machineWsRunDispatch-PIOIQRBW.js → machineWsRunDispatch-3SIU6ILW.js} +49 -46
  76. package/package.json +1 -1
  77. package/{read-GW7ZEI23.js → read-QJNKRROM.js} +5 -5
  78. package/{readDocTool-HUFU6OCT.js → readDocTool-H6X6KO6X.js} +1 -1
  79. package/{readlineWorkspace-QEAOH5EP.js → readlineWorkspace-HGP3I3OC.js} +80 -67
  80. package/{removeDialogAgentAction-OHMCNSSD.js → removeDialogAgentAction-TCT35SOF.js} +12 -12
  81. package/{runAgentClientLoop-AIGLXC3R.js → runAgentClientLoop-EFM4PTVI.js} +43 -41
  82. package/{setDialogExtraReferencesAction-YJUM5BWQ.js → setDialogExtraReferencesAction-CGYLZMFH.js} +10 -10
  83. package/{setPrimaryDialogAgentAction-EBAREZDM.js → setPrimaryDialogAgentAction-F6BFQDJU.js} +12 -12
  84. package/{settingSlice-UW4IUI5L.js → settingSlice-2I5HMG47.js} +8 -8
  85. package/skillDiscovery-UGSQGX2U.js +16 -0
  86. package/{spaceCommands-BKHSPR73.js → spaceCommands-MT7BWCIL.js} +27 -27
  87. package/{spaceSlice-TYNWE3OC.js → spaceSlice-BS5TSW3W.js} +19 -19
  88. package/{streamAgentChatTurn-HRMFFA7E.js → streamAgentChatTurn-I3VBFNR3.js} +82 -78
  89. package/{tableCommands-O7O2LBEG.js → tableCommands-M3DJUETS.js} +10 -10
  90. package/{toolApiClient-QI3YBNWB.js → toolApiClient-C7P7YSE4.js} +2 -2
  91. package/{tools-3JNDS3WH.js → tools-XSD2BOEN.js} +31 -29
  92. package/{tuiSummaryLlmCaller-RV3THLZF.js → tuiSummaryLlmCaller-32NRHTT2.js} +3 -3
  93. package/{updateDialogTitleAction-OCETSKCP.js → updateDialogTitleAction-7FYNJOGP.js} +22 -22
  94. package/{agentPullCommand-O2MTUAFR.js → agentPullCommand-GOL2S4W2.js} +1 -1
  95. package/{chunk-DZ3XJVET.js → chunk-3QAF2LTL.js} +3 -3
  96. package/{chunk-EHLHSX7R.js → chunk-5MMZUWSG.js} +3 -3
  97. package/{chunk-X7W4TNB4.js → chunk-CMKUBIGW.js} +3 -3
  98. package/{chunk-4CQLVGRV.js → chunk-ID4G2MAR.js} +3 -3
  99. package/{chunk-5MIDPSSK.js → chunk-JK7VW2FN.js} +3 -3
  100. package/{chunk-UTLZINAP.js → chunk-OOM6SJNR.js} +9 -9
  101. package/{chunk-VVX233PH.js → chunk-PNEW2Z3T.js} +9 -9
  102. package/{chunk-TILFE6LV.js → chunk-YOCHZD7D.js} +3 -3
  103. package/{chunk-JRKKFRAV.js → chunk-YTBMA7NO.js} +3 -3
  104. package/{db-HCJ5PRB5.js → db-6QED3ZVO.js} +3 -3
  105. package/{runtimeDoctorCommands-LRHLPDRC.js → runtimeDoctorCommands-ID43Z7VX.js} +3 -3
  106. package/{understanding-3CUQQ6SV.js → understanding-ZOESBLF3.js} +3 -3
@@ -1,7 +1,8 @@
1
1
  import {
2
+ CORE_DRAIN_REASON,
2
3
  isGatewayHttpStatus,
3
4
  parseRetryAfterHeaderMs
4
- } from "./chunk-GAKEBQD6.js";
5
+ } from "./chunk-D6OQHXVG.js";
5
6
  import {
6
7
  asTrimmedLowercaseString
7
8
  } from "./chunk-QSJ3HFEF.js";
@@ -61,7 +62,7 @@ async function resolveConnectorWebSocketTarget(input) {
61
62
  }
62
63
  if (response && !response.ok) {
63
64
  const json2 = await response.clone().json().catch(() => null);
64
- const retryable = json2?.retryable === true || json2?.reason === "core_draining" || isGatewayHttpStatus(response.status);
65
+ const retryable = json2?.retryable === true || json2?.reason === CORE_DRAIN_REASON || isGatewayHttpStatus(response.status);
65
66
  if (retryable) {
66
67
  const reason = typeof json2?.reason === "string" ? json2.reason : "retryable";
67
68
  const message = typeof json2?.error === "string" ? json2.error : `Connector websocket unavailable with HTTP ${response.status}`;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-WPE4F4Z6.js";
4
+ } from "./chunk-DWGAEFJL.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-OR2XR25C.js";
7
+ } from "./chunk-AEZAORLG.js";
8
8
 
9
9
  // packages/cli/agentListHelpers.ts
10
10
  function parseAgentRecordId(privateKey, explicitId) {
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-OR2XR25C.js";
4
+ } from "./chunk-AEZAORLG.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
8
8
  import {
9
9
  buildSkillDocMarkdown
10
- } from "./chunk-ZQ2UM4KG.js";
10
+ } from "./chunk-VC6OZXO5.js";
11
11
  import {
12
12
  createSpaceKey
13
13
  } from "./chunk-UAD2WT54.js";
14
+ import {
15
+ asTrimmedLowercaseString
16
+ } from "./chunk-QSJ3HFEF.js";
14
17
  import {
15
18
  parseUserIdFromAuthToken,
16
19
  readOption,
17
20
  resolveAuthToken,
18
21
  resolveServerUrl
19
22
  } from "./chunk-ISNCLGUZ.js";
20
- import {
21
- asTrimmedLowercaseString
22
- } from "./chunk-QSJ3HFEF.js";
23
23
  import {
24
24
  DEFAULT_LOCAL_API_ORIGIN
25
25
  } from "./chunk-4SN6J65J.js";
@@ -0,0 +1,83 @@
1
+ // packages/agent-runtime/modelLayerOverride.ts
2
+ var MODEL_LAYER_KEYS = [
3
+ "provider",
4
+ "model",
5
+ "apiSource",
6
+ "cliProvider",
7
+ "useServerProxy",
8
+ "apiKey",
9
+ "apiKeyRef",
10
+ "apiKeyHeader",
11
+ "customProviderUrl",
12
+ "credentialRef",
13
+ "credentialSynced",
14
+ "temperature",
15
+ "top_p",
16
+ "frequency_penalty",
17
+ "presence_penalty",
18
+ "max_tokens",
19
+ "reasoning_effort",
20
+ "enableThinking",
21
+ "thinkingBudget"
22
+ ];
23
+ function mergeReferences(base, extra) {
24
+ const safeBase = Array.isArray(base) ? base : [];
25
+ const safeExtra = Array.isArray(extra) ? extra : [];
26
+ const seen = /* @__PURE__ */ new Set();
27
+ const merged = [];
28
+ for (const item of [...safeBase, ...safeExtra]) {
29
+ const key = item?.dbKey;
30
+ if (key && seen.has(key)) continue;
31
+ if (key) seen.add(key);
32
+ if (item) merged.push(item);
33
+ }
34
+ return merged;
35
+ }
36
+ var asNonEmptyString = (value) => typeof value === "string" && value.trim().length > 0;
37
+ function buildModelLayerOverride(agent) {
38
+ if (!agent || !asNonEmptyString(agent.provider) || !asNonEmptyString(agent.model)) {
39
+ return null;
40
+ }
41
+ const override = {
42
+ provider: agent.provider,
43
+ model: agent.model
44
+ };
45
+ for (const key of MODEL_LAYER_KEYS) {
46
+ if (key === "provider" || key === "model") continue;
47
+ const value = agent[key];
48
+ if (value !== void 0) {
49
+ override[key] = value;
50
+ }
51
+ }
52
+ if (Array.isArray(agent.references) && agent.references.length > 0) {
53
+ override.references = agent.references;
54
+ }
55
+ return override;
56
+ }
57
+ function applyModelLayerOverride(base, override) {
58
+ const next = { ...base };
59
+ for (const key of MODEL_LAYER_KEYS) {
60
+ delete next[key];
61
+ }
62
+ for (const key of MODEL_LAYER_KEYS) {
63
+ const value = override[key];
64
+ if (value !== void 0) {
65
+ next[key] = value;
66
+ }
67
+ }
68
+ const merged = mergeReferences(
69
+ base.references,
70
+ override.references
71
+ );
72
+ if (merged.length > 0) {
73
+ next.references = merged;
74
+ } else {
75
+ delete next.references;
76
+ }
77
+ return next;
78
+ }
79
+
80
+ export {
81
+ buildModelLayerOverride,
82
+ applyModelLayerOverride
83
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-4SIMLBEU.js";
4
+ } from "./chunk-3NSIQZZ6.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -16,7 +16,7 @@ import {
16
16
  noloWriteRequest,
17
17
  selectIdentityUser,
18
18
  selectIdentityUserId
19
- } from "./chunk-UTLZINAP.js";
19
+ } from "./chunk-OOM6SJNR.js";
20
20
  import {
21
21
  normalizeTimeFields
22
22
  } from "./chunk-OOSFSFMA.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-TNPIMII7.js";
4
+ } from "./chunk-EVZKZF32.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -5,7 +5,7 @@ import {
5
5
  loadFileFromIndexedDb,
6
6
  removeAction,
7
7
  saveFileToIndexedDb
8
- } from "./chunk-7U44LYTR.js";
8
+ } from "./chunk-IPYUUY4E.js";
9
9
  import {
10
10
  fileKey,
11
11
  getFileIdFromKey,
@@ -15,7 +15,7 @@ import {
15
15
  readAction,
16
16
  readRequestManager,
17
17
  resolveAgentReadServers
18
- } from "./chunk-DSZUWUYB.js";
18
+ } from "./chunk-XFOLQLDN.js";
19
19
  import {
20
20
  asyncThunkCreator,
21
21
  buildCreateSlice,
@@ -35,7 +35,7 @@ import {
35
35
  shouldReplaceLocalWithRemoteRecord,
36
36
  shouldReplicateLocalRecord,
37
37
  uploadToCurrentServer
38
- } from "./chunk-UTLZINAP.js";
38
+ } from "./chunk-OOM6SJNR.js";
39
39
  import {
40
40
  fetchFromClientDb,
41
41
  fetchFromServer,
@@ -45,12 +45,12 @@ import {
45
45
  import {
46
46
  isTombstoneRecord
47
47
  } from "./chunk-GBRG75BQ.js";
48
- import {
49
- API_ENDPOINTS
50
- } from "./chunk-LCBAMY2M.js";
51
48
  import {
52
49
  isRecord
53
50
  } from "./chunk-KUG52IAP.js";
51
+ import {
52
+ API_ENDPOINTS
53
+ } from "./chunk-LCBAMY2M.js";
54
54
 
55
55
  // packages/database/actions/readAndWait.ts
56
56
  var hashTokenScope = (currentToken) => {
@@ -674,7 +674,7 @@ var dbSlice = createSliceWithThunks({
674
674
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
675
675
  read: create.asyncThunk(
676
676
  async (payload, thunkApi) => {
677
- const { readAction: readAction2 } = await import("./read-GW7ZEI23.js");
677
+ const { readAction: readAction2 } = await import("./read-QJNKRROM.js");
678
678
  return readAction2(payload, thunkApi);
679
679
  },
680
680
  {
@@ -748,7 +748,7 @@ var dbSlice = createSliceWithThunks({
748
748
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
749
749
  share: create.asyncThunk(
750
750
  async (config, thunkApi) => {
751
- const { shareResourceAction } = await import("./action-TLI3V62L.js");
751
+ const { shareResourceAction } = await import("./action-AA4IJ5K2.js");
752
752
  return shareResourceAction(config, thunkApi);
753
753
  }
754
754
  ),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  canonicalizeToolNames
3
- } from "./chunk-AUQ747NZ.js";
3
+ } from "./chunk-4SOKXIW4.js";
4
4
  import {
5
5
  asTrimmedString
6
6
  } from "./chunk-3EUW3WEO.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-TYSCFY6S.js";
4
+ } from "./chunk-2W2VYVI5.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
- } from "./chunk-AUQ747NZ.js";
7
+ } from "./chunk-4SOKXIW4.js";
8
8
  import {
9
9
  asTrimmedLowercaseString
10
10
  } from "./chunk-QSJ3HFEF.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-EHLHSX7R.js";
5
- import {
6
- toErrorMessage
7
- } from "./chunk-HNMXYYJR.js";
4
+ } from "./chunk-5MMZUWSG.js";
8
5
  import {
9
6
  asOptionalFiniteNumber
10
7
  } from "./chunk-WWC7I6TA.js";
8
+ import {
9
+ toErrorMessage
10
+ } from "./chunk-HNMXYYJR.js";
11
11
 
12
12
  // packages/cli/oauth/flows/cloudflare.ts
13
13
  var CLOUDFLARE_OAUTH_AUTH_ENDPOINT = "https://dash.cloudflare.com/oauth2/auth";
@@ -1,14 +1,14 @@
1
+ import {
2
+ patch,
3
+ remove,
4
+ write
5
+ } from "./chunk-O26GI2JP.js";
1
6
  import {
2
7
  applyAgentSecretMigrationUpdates,
3
8
  createFileCredentialBroker,
4
9
  migrateAgentSecrets,
5
10
  normalizeAgentRuntimeToolPolicy
6
11
  } from "./chunk-5CS33IBL.js";
7
- import {
8
- patch,
9
- remove,
10
- write
11
- } from "./chunk-BE2OOJ5P.js";
12
12
  import {
13
13
  asRecordOrEmpty
14
14
  } from "./chunk-KX6YBIHG.js";
@@ -20,7 +20,7 @@ import {
20
20
  asyncThunkCreator,
21
21
  buildCreateSlice,
22
22
  getRuntimeServerContext
23
- } from "./chunk-UTLZINAP.js";
23
+ } from "./chunk-OOM6SJNR.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-ZEDPX6OF.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-EFM4PTVI.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-I3VBFNR3.js");
341
341
  return streamAgentChatTurnHandler(args, thunkApi);
342
342
  }),
343
343
  /**
@@ -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-QJNKRROM.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`);
@@ -2,10 +2,10 @@ import {
2
2
  buildCurrentTimeBlock,
3
3
  buildIdentityBlock,
4
4
  buildRuntimeGuidanceBlocks
5
- } from "./chunk-PAKN26FP.js";
5
+ } from "./chunk-OUI3ZHYD.js";
6
6
  import {
7
7
  canonicalizeToolNames
8
- } from "./chunk-AUQ747NZ.js";
8
+ } from "./chunk-4SOKXIW4.js";
9
9
  import {
10
10
  clipCompactText
11
11
  } from "./chunk-5MMAK75Q.js";
@@ -13,12 +13,6 @@ import {
13
13
  findModelConfig,
14
14
  getProviderByModelName
15
15
  } from "./chunk-BBYVOSU2.js";
16
- import {
17
- compactWhitespace
18
- } from "./chunk-DWLEOOGR.js";
19
- import {
20
- toErrorMessage
21
- } from "./chunk-HNMXYYJR.js";
22
16
  import {
23
17
  asRecordOrEmpty
24
18
  } from "./chunk-KX6YBIHG.js";
@@ -26,11 +20,17 @@ import {
26
20
  asTrimmedLowercaseString
27
21
  } from "./chunk-QSJ3HFEF.js";
28
22
  import {
29
- asOptionalTrimmedString
30
- } from "./chunk-G3SUCT4W.js";
23
+ compactWhitespace
24
+ } from "./chunk-DWLEOOGR.js";
25
+ import {
26
+ toErrorMessage
27
+ } from "./chunk-HNMXYYJR.js";
31
28
  import {
32
29
  isRecord
33
30
  } from "./chunk-KUG52IAP.js";
31
+ import {
32
+ asOptionalTrimmedString
33
+ } from "./chunk-G3SUCT4W.js";
34
34
 
35
35
  // packages/agent-runtime/actionGate.ts
36
36
  function readCommandActionGatePayload(payload) {
@@ -1,17 +1,27 @@
1
1
  import {
2
2
  buildSpaceLookup,
3
3
  getSpaceContentKeys
4
- } from "./chunk-4CQLVGRV.js";
4
+ } from "./chunk-ID4G2MAR.js";
5
5
  import {
6
6
  deleteDbRecordOnServers,
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-WPE4F4Z6.js";
10
+ } from "./chunk-DWGAEFJL.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
14
14
  } from "./chunk-MTU75CZ2.js";
15
+ import {
16
+ parsePositiveFiniteNumberOrFallback
17
+ } from "./chunk-Y5GCAMGP.js";
18
+ import {
19
+ asRecordOrEmpty
20
+ } from "./chunk-KX6YBIHG.js";
21
+ import {
22
+ asNonEmptyStringArray,
23
+ asTrimmedNonEmptyStringArray
24
+ } from "./chunk-I42VC5KR.js";
15
25
  import {
16
26
  parseUserIdFromAuthToken,
17
27
  readOption,
@@ -23,25 +33,15 @@ import {
23
33
  import {
24
34
  toErrorMessage
25
35
  } from "./chunk-HNMXYYJR.js";
26
- import {
27
- parsePositiveFiniteNumberOrFallback
28
- } from "./chunk-Y5GCAMGP.js";
29
- import {
30
- asRecordOrEmpty
31
- } from "./chunk-KX6YBIHG.js";
32
- import {
33
- asNonEmptyStringArray,
34
- asTrimmedNonEmptyStringArray
35
- } from "./chunk-I42VC5KR.js";
36
36
  import {
37
37
  asTrimmedString
38
38
  } from "./chunk-3EUW3WEO.js";
39
- import {
40
- asOptionalTrimmedString
41
- } from "./chunk-G3SUCT4W.js";
42
39
  import {
43
40
  isRecord
44
41
  } from "./chunk-KUG52IAP.js";
42
+ import {
43
+ asOptionalTrimmedString
44
+ } from "./chunk-G3SUCT4W.js";
45
45
 
46
46
  // packages/cli/dialogAttachmentCleanup.ts
47
47
  function asText(value) {
@@ -625,7 +625,7 @@ async function tryHttpDialogCandidates(args) {
625
625
  throw Object.assign(new Error("All HTTP dialog reads failed"), { attempts });
626
626
  }
627
627
  async function readDialogFromLocalDb(dialogKey, dialogId, limit) {
628
- const { readDialogFromLocalDb: readLocalDialog } = await import("./localDialogRead-2VRI24F4.js");
628
+ const { readDialogFromLocalDb: readLocalDialog } = await import("./localDialogRead-YSKFFRTT.js");
629
629
  const result = await readLocalDialog({ dialogKey, dialogId, limit });
630
630
  return {
631
631
  ...result,
@@ -1,47 +1,47 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-EXXFGKF7.js";
4
+ } from "./chunk-X2S7JTIG.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-TYSCFY6S.js";
7
+ } from "./chunk-2W2VYVI5.js";
8
8
  import {
9
9
  readPipeText,
10
10
  spawnProcess
11
11
  } from "./chunk-IDZTNRP2.js";
12
- import {
13
- parseUserIdFromAuthToken
14
- } from "./chunk-ISNCLGUZ.js";
15
- import {
16
- DEFAULT_NOLO_SERVER_URL
17
- } from "./chunk-OLZBQWZU.js";
18
12
  import {
19
13
  runLocalAgentTurn
20
- } from "./chunk-6SLCD4RB.js";
14
+ } from "./chunk-S3GS2PRL.js";
21
15
  import {
22
16
  resolveLocalRuntimeEnvFromPolicy
23
17
  } from "./chunk-5CS33IBL.js";
24
- import {
25
- toErrorMessage
26
- } from "./chunk-HNMXYYJR.js";
27
18
  import {
28
19
  asRecordOrEmpty
29
20
  } from "./chunk-KX6YBIHG.js";
30
21
  import {
31
22
  asTrimmedNonEmptyStringArray
32
23
  } from "./chunk-I42VC5KR.js";
24
+ import {
25
+ parseUserIdFromAuthToken
26
+ } from "./chunk-ISNCLGUZ.js";
27
+ import {
28
+ DEFAULT_NOLO_SERVER_URL
29
+ } from "./chunk-OLZBQWZU.js";
30
+ import {
31
+ toErrorMessage
32
+ } from "./chunk-HNMXYYJR.js";
33
33
  import {
34
34
  asTrimmedString
35
35
  } from "./chunk-3EUW3WEO.js";
36
36
  import {
37
37
  asOptionalPositiveFiniteNumber
38
38
  } from "./chunk-U6VC4MU4.js";
39
- import {
40
- asOptionalTrimmedString
41
- } from "./chunk-G3SUCT4W.js";
42
39
  import {
43
40
  isRecord
44
41
  } from "./chunk-KUG52IAP.js";
42
+ import {
43
+ asOptionalTrimmedString
44
+ } from "./chunk-G3SUCT4W.js";
45
45
 
46
46
  // packages/ai/agent/machineRunPermissions.ts
47
47
  var DEFAULT_POLICY = {