nolo-cli 0.205.0-alpha.1 → 0.205.0-alpha.2

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 (61) hide show
  1. package/{_executeModel-Y4Y6NSF2.js → _executeModel-U2XB3H4R.js} +14 -14
  2. package/{agentDeleteCommand-QDQJ3HRU.js → agentDeleteCommand-PPB6JA5Y.js} +12 -12
  3. package/{agentEmailCommands-CMMDVTMB.js → agentEmailCommands-XHDV5OQ2.js} +14 -14
  4. package/{agentListCommands-YVUCTMRI.js → agentListCommands-66ZCC36P.js} +5 -5
  5. package/{agentMachineCommands-AHMFIF7U.js → agentMachineCommands-XHM2USMU.js} +2 -2
  6. package/{agentRecordCommands-G6RARTFX.js → agentRecordCommands-X5YU4AGX.js} +13 -13
  7. package/{agentRunCommand-G7IJ23OW.js → agentRunCommand-SINW3FLJ.js} +14 -14
  8. package/{agentRuntimeLocal-7Q72MXKN.js → agentRuntimeLocal-TLV4MITB.js} +1 -1
  9. package/{agentSlice-ZRGNTU3K.js → agentSlice-6XXGHTPP.js} +1 -1
  10. package/{appDeleteCommands-ZUKOQOIM.js → appDeleteCommands-3WZVRCAN.js} +1 -1
  11. package/{appDeployCommands-G5YC3DKA.js → appDeployCommands-HQGQR2FV.js} +1 -1
  12. package/{appDeployStatusCommands-EMOTU2NU.js → appDeployStatusCommands-XWK7B6VD.js} +1 -1
  13. package/{appGetCommands-N3D2EBDM.js → appGetCommands-NR2SFXAG.js} +1 -1
  14. package/{appListCommands-DGSGMKJL.js → appListCommands-UREKGWAC.js} +1 -1
  15. package/{chunk-SH52SBSW.js → chunk-2GKUVGRT.js} +2 -2
  16. package/{chunk-UETRBTZ2.js → chunk-3KUSLYEV.js} +9 -9
  17. package/{chunk-QEHXPNCZ.js → chunk-4RERKW4Q.js} +5 -5
  18. package/{chunk-2U2DMUGG.js → chunk-5EOHW7K3.js} +7 -7
  19. package/{chunk-RMLFNM3J.js → chunk-5OJDQAJ2.js} +2 -2
  20. package/{chunk-VT3MVIIU.js → chunk-5XNUQGLF.js} +7 -7
  21. package/{chunk-RXX262QX.js → chunk-7LJEJV4F.js} +33 -6
  22. package/{chunk-354R5A62.js → chunk-CDGCIP2L.js} +1 -1
  23. package/{chunk-T6CHEJ27.js → chunk-DDERKP4L.js} +2 -2
  24. package/{chunk-JTLREMIA.js → chunk-DGCIYDMU.js} +2 -2
  25. package/{chunk-JX2QFYIA.js → chunk-IAYMBPDZ.js} +2 -2
  26. package/{chunk-ACMRWLRR.js → chunk-K7ZZPUNO.js} +10 -10
  27. package/{chunk-RQDGDKFL.js → chunk-L5FZUSB6.js} +1 -1
  28. package/{chunk-7COVU5SP.js → chunk-LDPZBAQK.js} +2 -2
  29. package/{chunk-EDSRC2JN.js → chunk-LKV5K7PW.js} +2 -2
  30. package/{chunk-MFUGGMIS.js → chunk-NUAQ3QHF.js} +1 -1
  31. package/{chunk-ZIEPLFWS.js → chunk-QSAUX2Q2.js} +2 -2
  32. package/{chunk-HSZ2YEPR.js → chunk-SEOM7GLZ.js} +1 -1
  33. package/{chunk-HAB2UDLT.js → chunk-W45PCJHS.js} +1 -1
  34. package/{chunk-F6MQO3YY.js → chunk-Y3ASVJWL.js} +3 -3
  35. package/{chunk-DTLSKEXN.js → chunk-YJ6UWOO5.js} +2 -2
  36. package/{chunk-KJCSY4TW.js → chunk-ZCKXJTCW.js} +8 -8
  37. package/{commandRegistry-HTURFH3S.js → commandRegistry-F5V2QBJ5.js} +41 -41
  38. package/{contentThunks-DYUKG2UT.js → contentThunks-IXBWQP4P.js} +3 -3
  39. package/{cooldownCommands-WGVSKMU4.js → cooldownCommands-I4ETQ4AO.js} +2 -2
  40. package/{createAgentAutomationAction-Y4BMH7SM.js → createAgentAutomationAction-7O7PFPDO.js} +3 -3
  41. package/{createDialogAction-RY47EJA7.js → createDialogAction-DRHO4XCF.js} +4 -4
  42. package/{createPageAction-RLV5IWBB.js → createPageAction-TFGJRDZX.js} +3 -3
  43. package/{dialogCommands-UR3JECOS.js → dialogCommands-X3GNU6DC.js} +1 -1
  44. package/{dialogSlice-X23NSXGM.js → dialogSlice-CXIZ5UTI.js} +2 -2
  45. package/{docCreateCommands-AM3RDP6K.js → docCreateCommands-YDXECDNF.js} +1 -1
  46. package/{docDeleteCommands-KCRF23RY.js → docDeleteCommands-DPMHSXK7.js} +1 -1
  47. package/{docReadCommands-M4SZAVQR.js → docReadCommands-HH4TTBSR.js} +1 -1
  48. package/{docStore-OCOEV524.js → docStore-5AHNSAEI.js} +1 -1
  49. package/{docUpdateCommands-XU6NSHXX.js → docUpdateCommands-74I6RA7U.js} +1 -1
  50. package/{handleSendMessageAction-JYLG2PGY.js → handleSendMessageAction-SO3PD3YA.js} +7 -7
  51. package/index.js +3 -3
  52. package/{localRuntimeAdapter-GQCC7EJL.js → localRuntimeAdapter-5BG42C3L.js} +12 -12
  53. package/{machineCommands-SYG2QENB.js → machineCommands-HOOU3DI7.js} +13 -13
  54. package/{machineWsRunDispatch-HJWCU2XA.js → machineWsRunDispatch-KUSLW2GE.js} +13 -13
  55. package/package.json +1 -1
  56. package/{readlineWorkspace-457FDLML.js → readlineWorkspace-GBI2NFXY.js} +15 -15
  57. package/{runAgentClientLoop-O6XYZPOG.js → runAgentClientLoop-ERVJ4LFY.js} +12 -12
  58. package/{spaceCommands-SVGAP4C2.js → spaceCommands-SJJPZL7J.js} +1 -1
  59. package/{streamAgentChatTurn-VWPG52FR.js → streamAgentChatTurn-2M4L7PF4.js} +14 -14
  60. package/{tools-WFCFBL74.js → tools-GINHFGST.js} +9 -9
  61. package/{updateDialogTitleAction-ZBQOKKO4.js → updateDialogTitleAction-4EIHKTKR.js} +3 -3
@@ -18,7 +18,7 @@ import {
18
18
  readCredentialEntry,
19
19
  readEffectiveCredentialEntry,
20
20
  recordCredentialProbe
21
- } from "./chunk-HAB2UDLT.js";
21
+ } from "./chunk-W45PCJHS.js";
22
22
  import {
23
23
  OAUTH_PROVIDER_REFS,
24
24
  buildLocalAgentLookupKeys
@@ -71,7 +71,7 @@ import {
71
71
  import {
72
72
  inlineImageUrlsForCustomProvider,
73
73
  prepareTools
74
- } from "./chunk-7COVU5SP.js";
74
+ } from "./chunk-LDPZBAQK.js";
75
75
  import {
76
76
  getServerProviderSecret
77
77
  } from "./chunk-HS7MLR74.js";
@@ -93,7 +93,7 @@ import {
93
93
  resolveCliLocalRuntimeKeyCapability,
94
94
  resolveCliLocalSpawnDispatch,
95
95
  resolveStartAgentRunCwd
96
- } from "./chunk-ACMRWLRR.js";
96
+ } from "./chunk-K7ZZPUNO.js";
97
97
  import {
98
98
  fetchWithTransientRetry,
99
99
  isTransientFetchError
@@ -101,7 +101,7 @@ import {
101
101
  import {
102
102
  deriveCredentialGroup,
103
103
  deriveCustomProviderCredentialGroup
104
- } from "./chunk-RQDGDKFL.js";
104
+ } from "./chunk-L5FZUSB6.js";
105
105
  import {
106
106
  resolveAgentRequiredPackIds,
107
107
  resolveUserEnabledSkills
@@ -114,14 +114,14 @@ import {
114
114
  resolveBuiltinPlatformAgentConfig,
115
115
  runKeyed,
116
116
  validateAskChoiceInput
117
- } from "./chunk-KJCSY4TW.js";
117
+ } from "./chunk-ZCKXJTCW.js";
118
118
  import {
119
119
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
120
120
  BUILTIN_TITLE_LLM_CONFIG
121
121
  } from "./chunk-523DITKR.js";
122
122
  import {
123
123
  fetchServerSyncedCredential
124
- } from "./chunk-F6MQO3YY.js";
124
+ } from "./chunk-Y3ASVJWL.js";
125
125
  import {
126
126
  getDefaultCliLocalRuntimeDb
127
127
  } from "./chunk-P64WRQYV.js";
@@ -247,7 +247,7 @@ import {
247
247
  resolveAvailabilityAction,
248
248
  resolveCooldownGate,
249
249
  resolveCredentialKeyWithFallback
250
- } from "./chunk-RXX262QX.js";
250
+ } from "./chunk-7LJEJV4F.js";
251
251
  import {
252
252
  buildDialogFallbackTitleFromUserInput,
253
253
  normalizeDialogTitle
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-DTLSKEXN.js";
4
+ } from "./chunk-YJ6UWOO5.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-KJCSY4TW.js";
7
+ } from "./chunk-ZCKXJTCW.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-7COVU5SP.js";
8
+ } from "./chunk-LDPZBAQK.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-SH52SBSW.js";
17
+ } from "./chunk-2GKUVGRT.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-ACMRWLRR.js";
21
+ } from "./chunk-K7ZZPUNO.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-DTLSKEXN.js";
26
+ } from "./chunk-YJ6UWOO5.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-ZIEPLFWS.js";
35
+ } from "./chunk-QSAUX2Q2.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -46,10 +46,10 @@ import {
46
46
  toast,
47
47
  toolResultNeedsUserConfirmation,
48
48
  updateToolMessage
49
- } from "./chunk-KJCSY4TW.js";
49
+ } from "./chunk-ZCKXJTCW.js";
50
50
  import {
51
51
  streamAgentChatTurn
52
- } from "./chunk-F6MQO3YY.js";
52
+ } from "./chunk-Y3ASVJWL.js";
53
53
  import {
54
54
  addActiveController,
55
55
  getActiveDialogKey,
@@ -79,13 +79,38 @@ function clampCooldownDeadline(at, now) {
79
79
  const max = now + MAX_COOLDOWN_MS;
80
80
  return Math.min(Math.max(at, min), max);
81
81
  }
82
- function shouldClearCooldownFromQuota(entry, quota, now) {
82
+ function parseQuotaWindowScope(scope) {
83
+ const matched = /^(gemini|3p)-(.+)$/.exec(scope);
84
+ return matched ? { family: matched[1], period: matched[2] } : { period: scope };
85
+ }
86
+ function resolveQuotaWindowFamily(model) {
87
+ if (typeof model !== "string" || !model.trim()) return void 0;
88
+ return /gemini/i.test(model) ? "gemini" : "3p";
89
+ }
90
+ function isWindowRelevantToFamily(scope, family) {
91
+ if (typeof scope !== "string") return true;
92
+ const scopeFamily = parseQuotaWindowScope(scope).family;
93
+ return scopeFamily === void 0 || family === void 0 || scopeFamily === family;
94
+ }
95
+ var SUBSCRIPTION_PERIODS = /* @__PURE__ */ new Set(["5h", "7d", "daily", "weekly", "monthly"]);
96
+ function isSubscriptionPeriodWindow(window) {
97
+ const { period } = parseQuotaWindowScope(window.scope);
98
+ return SUBSCRIPTION_PERIODS.has(period.trim().toLowerCase());
99
+ }
100
+ function isExhaustedWindow(window) {
101
+ return window.remaining === 0 || typeof window.utilization === "number" && window.utilization >= 0.95;
102
+ }
103
+ function shouldClearCooldownFromQuota(entry, quota, now, options) {
83
104
  if (!(typeof entry.nextAvailableAt === "number" && entry.nextAvailableAt > now)) return false;
84
105
  if (typeof entry.markedAt !== "number" || !Number.isFinite(entry.markedAt)) return false;
85
106
  if (!quota || !(quota.observedAt > entry.markedAt)) return false;
86
- const subscriptionWindows = quota.windows.filter((window) => window.scope === "5h" || window.scope === "7d");
107
+ const family = resolveQuotaWindowFamily(options?.model);
108
+ const relevantWindows = quota.windows.filter(
109
+ (window) => isWindowRelevantToFamily(window.scope, family)
110
+ );
111
+ const subscriptionWindows = relevantWindows.filter(isSubscriptionPeriodWindow);
87
112
  if (subscriptionWindows.length === 0) return false;
88
- if (quota.windows.some((window) => window.scope !== "5h" && window.scope !== "7d" && (window.remaining === 0 || typeof window.utilization === "number" && window.utilization >= 0.95))) return false;
113
+ if (relevantWindows.some((window) => !isSubscriptionPeriodWindow(window) && isExhaustedWindow(window))) return false;
89
114
  return subscriptionWindows.every((window) => {
90
115
  const hasUtilization = typeof window.utilization === "number";
91
116
  const hasRemaining = typeof window.remaining === "number";
@@ -114,16 +139,18 @@ function resolveAgentAvailability(agent, now = Date.now()) {
114
139
  const quota = agent?.quota;
115
140
  const isAdmissible = isAdmissibleQuotaSnapshot(quota, now);
116
141
  const hasObservedAt = Boolean(quota) && typeof quota?.observedAt === "number" && Number.isFinite(quota.observedAt);
117
- const hasWindows = Boolean(
118
- quota && Array.isArray(quota.windows) && quota.windows.length > 0
142
+ const family = resolveQuotaWindowFamily(agent?.model);
143
+ const relevantWindows = (quota?.windows ?? []).filter(
144
+ (window) => isWindowRelevantToFamily(window?.scope, family)
119
145
  );
146
+ const hasWindows = relevantWindows.length > 0;
120
147
  const hasValidQuota = isAdmissible && hasWindows;
121
148
  if (hasValidQuota) {
122
149
  let hasActiveRemainingZero = false;
123
150
  let hasActiveUtilizationHigh = false;
124
151
  let hasWindowResetPending = false;
125
152
  let maxResetAt;
126
- for (const w of quota.windows) {
153
+ for (const w of relevantWindows) {
127
154
  const inspected = inspectQuotaWindowExhaustion(w, now);
128
155
  if (!inspected) continue;
129
156
  if (inspected.resetAt !== void 0 && inspected.resetAt > now) {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-7C45ONOU.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-RQDGDKFL.js";
10
+ } from "./chunk-L5FZUSB6.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-2U2DMUGG.js";
4
+ } from "./chunk-5EOHW7K3.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-ZIEPLFWS.js";
7
+ } from "./chunk-QSAUX2Q2.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
10
  } from "./chunk-TYKUYQDP.js";
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-7C45ONOU.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-2U2DMUGG.js";
19
+ } from "./chunk-5EOHW7K3.js";
20
20
  import {
21
21
  readCredentialAvailability
22
- } from "./chunk-HAB2UDLT.js";
22
+ } from "./chunk-W45PCJHS.js";
23
23
  import {
24
24
  resolveCliAgentKeyInput
25
25
  } from "./chunk-NBTY7YJF.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-DYUKG2UT.js");
336
+ const { updateContentTitle } = await import("./contentThunks-IXBWQP4P.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-RLV5IWBB.js");
375
+ const { createPageAction } = await import("./createPageAction-TFGJRDZX.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -6,7 +6,7 @@ import {
6
6
  resolveDiscoveryScope,
7
7
  resolvePaginationArgs,
8
8
  toDiscoverySafeAgentSummary
9
- } from "./chunk-RQDGDKFL.js";
9
+ } from "./chunk-L5FZUSB6.js";
10
10
  import {
11
11
  getUserDataItemTimestamp,
12
12
  mergeAndDedupUserData
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-ZIEPLFWS.js";
41
+ } from "./chunk-QSAUX2Q2.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-I5PBXF7O.js";
56
56
  import {
57
57
  createDocState
58
- } from "./chunk-JX2QFYIA.js";
58
+ } from "./chunk-IAYMBPDZ.js";
59
59
  import {
60
60
  ToolApiError,
61
61
  buildToolRequestHeaders,
@@ -79,7 +79,7 @@ import {
79
79
  } from "./chunk-63W5N6P3.js";
80
80
  import {
81
81
  createDialogAction
82
- } from "./chunk-EDSRC2JN.js";
82
+ } from "./chunk-LKV5K7PW.js";
83
83
  import {
84
84
  DEFAULT_COLLAPSED_CATEGORIES,
85
85
  addContentToSpace,
@@ -96,7 +96,7 @@ import {
96
96
  updateContentCategory,
97
97
  updateContentTitle,
98
98
  writeStoredCollapsedCategories
99
- } from "./chunk-HSZ2YEPR.js";
99
+ } from "./chunk-SEOM7GLZ.js";
100
100
  import {
101
101
  getCurrentSpaceId,
102
102
  getCurrentSpaceIdRaw,
@@ -119,14 +119,14 @@ import {
119
119
  selectMsgById,
120
120
  uiAskChoiceFunc,
121
121
  uiAskChoiceFunctionSchema
122
- } from "./chunk-KJCSY4TW.js";
122
+ } from "./chunk-ZCKXJTCW.js";
123
123
  import {
124
124
  createAgent,
125
125
  deleteServerSyncedCredential,
126
126
  runLlm,
127
127
  streamAgentChatTurn,
128
128
  updateAgent
129
- } from "./chunk-F6MQO3YY.js";
129
+ } from "./chunk-Y3ASVJWL.js";
130
130
  import {
131
131
  buildMediaToolConfirmation,
132
132
  normalizeMediaConfirmExecutionRevision
@@ -226,7 +226,7 @@ import {
226
226
  import {
227
227
  mergeAvailabilityDeadline,
228
228
  resolveCredentialKeyWithFallback
229
- } from "./chunk-RXX262QX.js";
229
+ } from "./chunk-7LJEJV4F.js";
230
230
  import {
231
231
  clipCompactText
232
232
  } from "./chunk-5MMAK75Q.js";
@@ -3898,7 +3898,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3898
3898
  const deletedDialogIds = [];
3899
3899
  const deletedDialogKeys = [];
3900
3900
  const failures = [];
3901
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-X23NSXGM.js");
3901
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-CXIZ5UTI.js");
3902
3902
  for (const target of targets) {
3903
3903
  try {
3904
3904
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -18699,7 +18699,7 @@ async function updateDocFunc(args, thunkApi) {
18699
18699
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18700
18700
  };
18701
18701
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18702
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-OCOEV524.js");
18702
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-5AHNSAEI.js");
18703
18703
  if (getDocState().pageKey === id) {
18704
18704
  applyExternalDocUpdate({
18705
18705
  slateData: finalSlateData,
@@ -8,7 +8,7 @@ import {
8
8
  DEFAULT_PROVIDER_RETRY_MS,
9
9
  isAgentUnavailableNow,
10
10
  resolveAgentAvailability
11
- } from "./chunk-RXX262QX.js";
11
+ } from "./chunk-7LJEJV4F.js";
12
12
  import {
13
13
  isOAuthApiKeyRef
14
14
  } from "./chunk-UKZX3NHN.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-ACMRWLRR.js";
3
+ } from "./chunk-K7ZZPUNO.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-KJCSY4TW.js";
6
+ } from "./chunk-ZCKXJTCW.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-AKE53VMW.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-HSZ2YEPR.js";
3
+ } from "./chunk-SEOM7GLZ.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-KJCSY4TW.js";
9
+ } from "./chunk-ZCKXJTCW.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-NBTY7YJF.js";
6
6
  import {
7
7
  resolveCliLocalRuntimeKeyCapability
8
- } from "./chunk-ACMRWLRR.js";
8
+ } from "./chunk-K7ZZPUNO.js";
9
9
  import {
10
10
  HIGH_RISK_MUTATION_TOOL_NAMES
11
11
  } from "./chunk-2Q3LOAFE.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-RXUKDHS5.js";
17
17
  import {
18
18
  fetchAndCacheTableRows
19
- } from "./chunk-HSZ2YEPR.js";
19
+ } from "./chunk-SEOM7GLZ.js";
20
20
  import {
21
21
  createSpaceKey
22
22
  } from "./chunk-UAD2WT54.js";
@@ -783,7 +783,7 @@ var executeToolRun = createAsyncThunk(
783
783
  if (!executionInput) {
784
784
  throw new Error(`ToolRun ${id} has no input to execute with.`);
785
785
  }
786
- const { findToolExecutor } = await import("./tools-WFCFBL74.js");
786
+ const { findToolExecutor } = await import("./tools-GINHFGST.js");
787
787
  const { executor } = findToolExecutor(run.toolName);
788
788
  toolRunStarted({
789
789
  id: run.id,
@@ -7,7 +7,7 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-KJCSY4TW.js";
10
+ } from "./chunk-ZCKXJTCW.js";
11
11
  import {
12
12
  UNCATEGORIZED_ID,
13
13
  addContentAction,
@@ -2,7 +2,7 @@ import {
2
2
  mergeAvailabilityDeadline,
3
3
  resolveCredentialCandidateKeys,
4
4
  resolveCredentialKeyWithFallback
5
- } from "./chunk-RXX262QX.js";
5
+ } from "./chunk-7LJEJV4F.js";
6
6
 
7
7
  // packages/agent-runtime/credentialAvailability.ts
8
8
  import { homedir } from "node:os";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-Y4Y6NSF2.js");
461
+ const { _executeModel } = await import("./_executeModel-U2XB3H4R.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-O6XYZPOG.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-ERVJ4LFY.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VWPG52FR.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-2M4L7PF4.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-ZIEPLFWS.js";
5
+ } from "./chunk-QSAUX2Q2.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-AGIM7IMJ.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-KJCSY4TW.js";
24
+ } from "./chunk-ZCKXJTCW.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-523DITKR.js";
12
12
  import {
13
13
  runLlm
14
- } from "./chunk-F6MQO3YY.js";
14
+ } from "./chunk-Y3ASVJWL.js";
15
15
  import {
16
16
  isMediaToolConfirmation
17
17
  } from "./chunk-QYPE3TS3.js";
@@ -11077,7 +11077,7 @@ var messageSlice = createSliceWithThunks({
11077
11077
  runtimeOptions: args.runtimeOptions
11078
11078
  });
11079
11079
  if (agentKeyToUse) {
11080
- const { streamAgentChatTurn } = await import("./agentSlice-ZRGNTU3K.js");
11080
+ const { streamAgentChatTurn } = await import("./agentSlice-6XXGHTPP.js");
11081
11081
  await dispatch(
11082
11082
  streamAgentChatTurn({
11083
11083
  agentKey: agentKeyToUse,
@@ -13891,7 +13891,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13891
13891
  }
13892
13892
  if (isCurrentDialog) {
13893
13893
  await thunkApi.dispatch(resetMsgs());
13894
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-X23NSXGM.js");
13894
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-CXIZ5UTI.js");
13895
13895
  dispatch(clearPendingAttachments2());
13896
13896
  }
13897
13897
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13899,15 +13899,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13899
13899
 
13900
13900
  // packages/chat/dialog/dialogSlice.ts
13901
13901
  var runCreateDialogAction = async (args, thunkApi) => {
13902
- const { createDialogAction } = await import("./createDialogAction-RY47EJA7.js");
13902
+ const { createDialogAction } = await import("./createDialogAction-DRHO4XCF.js");
13903
13903
  return createDialogAction(args, thunkApi);
13904
13904
  };
13905
13905
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13906
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-Y4BMH7SM.js");
13906
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-7O7PFPDO.js");
13907
13907
  return createAgentAutomationAction(args, thunkApi);
13908
13908
  };
13909
13909
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13910
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-ZBQOKKO4.js");
13910
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-4EIHKTKR.js");
13911
13911
  return updateDialogTitleAction(args, thunkApi);
13912
13912
  };
13913
13913
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -13931,7 +13931,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13931
13931
  return setDialogExtraReferencesAction(args, thunkApi);
13932
13932
  };
13933
13933
  var runHandleSendMessageAction = async (args, thunkApi) => {
13934
- const { handleSendMessageAction } = await import("./handleSendMessageAction-JYLG2PGY.js");
13934
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-SO3PD3YA.js");
13935
13935
  return handleSendMessageAction(args, thunkApi);
13936
13936
  };
13937
13937
  function clearDialogState() {
@@ -13944,7 +13944,7 @@ var createPageAndAddReference = createAsyncThunk(
13944
13944
  async (payload, { dispatch, getState, rejectWithValue }) => {
13945
13945
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13946
13946
  try {
13947
- const { createDocState } = await import("./docStore-OCOEV524.js");
13947
+ const { createDocState } = await import("./docStore-5AHNSAEI.js");
13948
13948
  const pageKey = await createDocState(
13949
13949
  { slateData, title },
13950
13950
  { dispatch, getState }