nolo-cli 0.206.0 → 0.206.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/{_executeModel-Y4Y6NSF2.js → _executeModel-U2XB3H4R.js} +14 -14
  2. package/{agentDeleteCommand-QDQJ3HRU.js → agentDeleteCommand-NVXNQ2VQ.js} +18 -18
  3. package/{agentEmailCommands-CMMDVTMB.js → agentEmailCommands-VUJOYASY.js} +19 -19
  4. package/{agentListCommands-YVUCTMRI.js → agentListCommands-KDRCBFUE.js} +10 -10
  5. package/{agentMachineCommands-AHMFIF7U.js → agentMachineCommands-TGZIF2SL.js} +6 -6
  6. package/{agentRecordCommands-G6RARTFX.js → agentRecordCommands-DM5UHNZM.js} +18 -18
  7. package/{agentRunCommand-G7IJ23OW.js → agentRunCommand-T6JGFAFZ.js} +19 -19
  8. package/{agentRunControl-ABDUPJLX.js → agentRunControl-GOH5VSQU.js} +2 -2
  9. package/{agentRuntimeLocal-7Q72MXKN.js → agentRuntimeLocal-N5S7NSJB.js} +3 -3
  10. package/{agentSlice-ZRGNTU3K.js → agentSlice-6XXGHTPP.js} +1 -1
  11. package/{appDeleteCommands-ZUKOQOIM.js → appDeleteCommands-VJNS4HSF.js} +7 -7
  12. package/{appDeployCommands-G5YC3DKA.js → appDeployCommands-HLZIEHUP.js} +7 -7
  13. package/{appDeployStatusCommands-EMOTU2NU.js → appDeployStatusCommands-PT64TF2T.js} +7 -7
  14. package/{appGetCommands-N3D2EBDM.js → appGetCommands-FM2ICAF7.js} +7 -7
  15. package/{appListCommands-DGSGMKJL.js → appListCommands-QVC3TKQD.js} +7 -7
  16. package/{chunk-SH52SBSW.js → chunk-2GKUVGRT.js} +2 -2
  17. package/{chunk-7C45ONOU.js → chunk-2PW2KOII.js} +1 -1
  18. package/{chunk-2U2DMUGG.js → chunk-3UCYYSKN.js} +11 -11
  19. package/{chunk-354R5A62.js → chunk-3ZUXGHFS.js} +3 -3
  20. package/{chunk-YT65GYRP.js → chunk-4NWJ3Z3G.js} +1 -1
  21. package/{chunk-Y6ROFCZO.js → chunk-4O22PGNQ.js} +1 -0
  22. package/{chunk-QEHXPNCZ.js → chunk-4RERKW4Q.js} +5 -5
  23. package/{chunk-RMLFNM3J.js → chunk-5OJDQAJ2.js} +2 -2
  24. package/{chunk-VT3MVIIU.js → chunk-5XNUQGLF.js} +7 -7
  25. package/{chunk-UETRBTZ2.js → chunk-5ZBZHVMF.js} +14 -13
  26. package/{chunk-JTLREMIA.js → chunk-73PRLLT6.js} +3 -3
  27. package/{chunk-RXX262QX.js → chunk-7LJEJV4F.js} +33 -6
  28. package/{chunk-PJILX6KS.js → chunk-BAPZCPYU.js} +1 -1
  29. package/{chunk-YHT3ZONH.js → chunk-D3DGBEYY.js} +1 -1
  30. package/{chunk-767YOSGT.js → chunk-DDVXTOFJ.js} +2 -2
  31. package/{chunk-5OV4MVQK.js → chunk-EVG6HQQ7.js} +1 -1
  32. package/{chunk-JX2QFYIA.js → chunk-IAYMBPDZ.js} +2 -2
  33. package/{chunk-ACMRWLRR.js → chunk-K7ZZPUNO.js} +10 -10
  34. package/{chunk-RQDGDKFL.js → chunk-L5FZUSB6.js} +1 -1
  35. package/{chunk-7COVU5SP.js → chunk-LDPZBAQK.js} +2 -2
  36. package/{chunk-EDSRC2JN.js → chunk-LKV5K7PW.js} +2 -2
  37. package/{chunk-MFUGGMIS.js → chunk-NUAQ3QHF.js} +1 -1
  38. package/{chunk-MNUOMXJH.js → chunk-PK5TD4ST.js} +3 -1
  39. package/{chunk-ZIEPLFWS.js → chunk-QSAUX2Q2.js} +2 -2
  40. package/{chunk-HSZ2YEPR.js → chunk-SEOM7GLZ.js} +1 -1
  41. package/{chunk-HAB2UDLT.js → chunk-W45PCJHS.js} +1 -1
  42. package/{chunk-T6CHEJ27.js → chunk-WC6TH54L.js} +4 -4
  43. package/{chunk-2BMURXSB.js → chunk-XPHZK3PJ.js} +4 -1
  44. package/{chunk-F6MQO3YY.js → chunk-Y3ASVJWL.js} +3 -3
  45. package/{chunk-DTLSKEXN.js → chunk-YJ6UWOO5.js} +2 -2
  46. package/{chunk-KJCSY4TW.js → chunk-ZCKXJTCW.js} +8 -8
  47. package/{chunk-TYKUYQDP.js → chunk-ZRDUMMDG.js} +4 -3
  48. package/{commandRegistry-HTURFH3S.js → commandRegistry-PASVNTAX.js} +51 -51
  49. package/{contentThunks-DYUKG2UT.js → contentThunks-IXBWQP4P.js} +3 -3
  50. package/{cooldownCommands-WGVSKMU4.js → cooldownCommands-I4ETQ4AO.js} +2 -2
  51. package/{createAgentAutomationAction-Y4BMH7SM.js → createAgentAutomationAction-7O7PFPDO.js} +3 -3
  52. package/{createDialogAction-RY47EJA7.js → createDialogAction-DRHO4XCF.js} +4 -4
  53. package/{createPageAction-RLV5IWBB.js → createPageAction-TFGJRDZX.js} +3 -3
  54. package/{dialogCommands-UR3JECOS.js → dialogCommands-RYIONJLY.js} +8 -8
  55. package/{dialogSlice-X23NSXGM.js → dialogSlice-CXIZ5UTI.js} +2 -2
  56. package/{docCreateCommands-AM3RDP6K.js → docCreateCommands-KC2V2RPX.js} +6 -6
  57. package/{docDeleteCommands-KCRF23RY.js → docDeleteCommands-S2SDQL2S.js} +7 -7
  58. package/{docReadCommands-M4SZAVQR.js → docReadCommands-3YGFKAOZ.js} +6 -6
  59. package/{docStore-OCOEV524.js → docStore-5AHNSAEI.js} +1 -1
  60. package/{docUpdateCommands-XU6NSHXX.js → docUpdateCommands-PU6MQTLW.js} +6 -6
  61. package/{handleSendMessageAction-JYLG2PGY.js → handleSendMessageAction-SO3PD3YA.js} +7 -7
  62. package/index.js +6 -6
  63. package/{localRuntimeAdapter-GQCC7EJL.js → localRuntimeAdapter-5B7QODVK.js} +15 -15
  64. package/{machineCommands-SYG2QENB.js → machineCommands-U3DO4TFR.js} +17 -17
  65. package/{machineWsRunDispatch-HJWCU2XA.js → machineWsRunDispatch-Y3IMIZO7.js} +17 -17
  66. package/package.json +1 -1
  67. package/{processSpawn-SOAV3FEV.js → processSpawn-ZU5QFM43.js} +1 -1
  68. package/{readlineWorkspace-457FDLML.js → readlineWorkspace-32IDD2MQ.js} +23 -23
  69. package/{runAgentClientLoop-O6XYZPOG.js → runAgentClientLoop-ERVJ4LFY.js} +12 -12
  70. package/{spaceCommands-SVGAP4C2.js → spaceCommands-4UWABUD7.js} +6 -6
  71. package/{streamAgentChatTurn-VWPG52FR.js → streamAgentChatTurn-2M4L7PF4.js} +14 -14
  72. package/{tools-WFCFBL74.js → tools-GINHFGST.js} +9 -9
  73. package/{updateCommands-N7K7TEU4.js → updateCommands-X23W5F73.js} +2 -2
  74. package/{updateDialogTitleAction-ZBQOKKO4.js → updateDialogTitleAction-4EIHKTKR.js} +3 -3
@@ -13,13 +13,13 @@ import {
13
13
  resolveAgentRecordFromHybridStore,
14
14
  sanitizeAgentRecordForCliOutput,
15
15
  writeAgentRecord
16
- } from "./chunk-7C45ONOU.js";
16
+ } from "./chunk-2PW2KOII.js";
17
17
  import {
18
18
  clearCliLocalRuntimePreparedAgentCache
19
- } from "./chunk-2U2DMUGG.js";
19
+ } from "./chunk-3UCYYSKN.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";
@@ -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) {
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-7C45ONOU.js";
5
+ } from "./chunk-2PW2KOII.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-OXME3PEE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-YT65GYRP.js";
3
+ } from "./chunk-4NWJ3Z3G.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-WACI5I6V.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-PJILX6KS.js";
10
+ } from "./chunk-BAPZCPYU.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-KX6YBIHG.js";
50
50
  import {
51
51
  resolveRunsDir
52
- } from "./chunk-MNUOMXJH.js";
52
+ } from "./chunk-PK5TD4ST.js";
53
53
  import {
54
54
  toErrorMessage
55
55
  } from "./chunk-HNMXYYJR.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-R5GO3YZP.js";
13
13
  import {
14
14
  resolveDefaultSpawn
15
- } from "./chunk-Y6ROFCZO.js";
15
+ } from "./chunk-4O22PGNQ.js";
16
16
  import {
17
17
  scheduleWindowsSelfUpdate
18
18
  } from "./chunk-7T5TLIY4.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";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-PJNFNEJE.js";
5
5
  import {
6
6
  findPowerShellExecutable
7
- } from "./chunk-2BMURXSB.js";
7
+ } from "./chunk-XPHZK3PJ.js";
8
8
  import {
9
9
  resolvePlatformAuthToken
10
10
  } from "./chunk-WPOKOKZA.js";
@@ -2338,6 +2338,8 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
2338
2338
  cwd: input.cwd,
2339
2339
  env: childEnv,
2340
2340
  detached: true,
2341
+ // Detached on Windows means no console; hide the one its children would create.
2342
+ windowsHide: true,
2341
2343
  stdio: deps.shellApprovalHost ? ["ignore", logFd, logFd, "ipc"] : ["ignore", logFd, logFd]
2342
2344
  });
2343
2345
  } catch (error) {
@@ -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";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-2U2DMUGG.js";
4
+ } from "./chunk-3UCYYSKN.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-ZIEPLFWS.js";
7
+ } from "./chunk-QSAUX2Q2.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-TYKUYQDP.js";
10
+ } from "./chunk-ZRDUMMDG.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
13
  } from "./chunk-2Q3LOAFE.js";
@@ -35,7 +35,7 @@ import {
35
35
  import {
36
36
  readPipeText,
37
37
  spawnProcess
38
- } from "./chunk-Y6ROFCZO.js";
38
+ } from "./chunk-4O22PGNQ.js";
39
39
  import {
40
40
  t
41
41
  } from "./chunk-PPCUXO3E.js";
@@ -1595,7 +1595,10 @@ async function runWorkspaceCommand(args) {
1595
1595
  "pipe",
1596
1596
  "pipe"
1597
1597
  ],
1598
- detached
1598
+ detached,
1599
+ // Windows: a child spawned from a console-less parent (e.g. a detached run) would
1600
+ // otherwise get its own flashing console window per command.
1601
+ windowsHide: true
1599
1602
  });
1600
1603
  if (args.stdin !== void 0 && proc.stdin) {
1601
1604
  proc.stdin.write(args.stdin);
@@ -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 }
@@ -212,7 +212,7 @@ import {
212
212
  spillToolOutput,
213
213
  toProcessTaskView,
214
214
  truncateToolOutput
215
- } from "./chunk-2BMURXSB.js";
215
+ } from "./chunk-XPHZK3PJ.js";
216
216
  import {
217
217
  estimateTokenCount
218
218
  } from "./chunk-PSCNXBYA.js";
@@ -15322,7 +15322,7 @@ async function runCommand(binary, args2, cwd, maxResults) {
15322
15322
  return await new Promise((done4) => {
15323
15323
  let stdout = "", stderr = "", recordCount = 0, stopped = false;
15324
15324
  try {
15325
- const child = spawnChildProcess(binary, args2, { cwd, stdio: ["ignore", "pipe", "pipe"] });
15325
+ const child = spawnChildProcess(binary, args2, { cwd, stdio: ["ignore", "pipe", "pipe"], windowsHide: true });
15326
15326
  child.stdout.on("data", (chunk) => {
15327
15327
  stdout += chunk.toString();
15328
15328
  recordCount = parseMatches(cwd, stdout).length;
@@ -17608,7 +17608,8 @@ async function launchProcessTool(args2) {
17608
17608
  const proc = spawnChildProcess2(cmdArgs[0] ?? "", cmdArgs.slice(1), {
17609
17609
  cwd: resolve4(args2.workspaceRoot),
17610
17610
  stdio: ["ignore", "pipe", "pipe"],
17611
- detached
17611
+ detached,
17612
+ windowsHide: true
17612
17613
  });
17613
17614
  const stdoutCapture = createLaunchProcessStreamCapture();
17614
17615
  const stderrCapture = createLaunchProcessStreamCapture();