nolo-cli 0.107.0 → 0.107.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 (45) hide show
  1. package/{_executeModel-C4EH5TZG.js → _executeModel-M573MKVE.js} +12 -12
  2. package/{agentDeleteCommand-D3RICSHX.js → agentDeleteCommand-ZFHYRHBS.js} +10 -10
  3. package/{agentEmailCommands-YC2A4USQ.js → agentEmailCommands-X6AVPIVQ.js} +11 -11
  4. package/{agentListCommands-UDJELMYP.js → agentListCommands-PAD2CI2I.js} +1 -1
  5. package/{agentMachineCommands-XH4IBGTO.js → agentMachineCommands-UPH6RJCC.js} +3 -3
  6. package/{agentRecordCommands-3EOC2QMN.js → agentRecordCommands-UMACPRAF.js} +11 -11
  7. package/{agentRunCommand-BTHYOVVS.js → agentRunCommand-H6KKHHMU.js} +11 -11
  8. package/{agentSlice-NIN4T6CF.js → agentSlice-2LPP43XH.js} +1 -1
  9. package/{chunk-TCYU7L6V.js → chunk-3IXAHOJS.js} +5 -5
  10. package/{chunk-2ZHBFX5R.js → chunk-3W67RV75.js} +1 -1
  11. package/{chunk-LKIVH2I2.js → chunk-5HYJ3DSZ.js} +10 -10
  12. package/{chunk-RSB4PWX4.js → chunk-74PPKIY2.js} +1 -1
  13. package/{chunk-YKZLFY5J.js → chunk-7BBP7ZX3.js} +2 -2
  14. package/{chunk-DGEUP3DK.js → chunk-7X5XZ34C.js} +2 -2
  15. package/{chunk-AOTBKDRK.js → chunk-APO5TOXO.js} +1 -8
  16. package/{chunk-M3NMHYRB.js → chunk-AZOVPTL6.js} +5 -0
  17. package/{chunk-VPLUU4IX.js → chunk-DE45KZNH.js} +5 -5
  18. package/{chunk-7HYOPBUW.js → chunk-KFWDYYSS.js} +1 -1
  19. package/{chunk-2NNRWRM5.js → chunk-KWUKOQM2.js} +2 -2
  20. package/{chunk-YXKNBVYW.js → chunk-RU36ZYSG.js} +2 -2
  21. package/{chunk-ALXHV7NK.js → chunk-RWXLPUKI.js} +40 -4
  22. package/{chunk-RLSF5CSE.js → chunk-TFOIJFCM.js} +3 -3
  23. package/{chunk-N7NLLRQQ.js → chunk-VHGYUYQ3.js} +4 -4
  24. package/{chunk-SQHMSDDU.js → chunk-VM6IE2GN.js} +5 -5
  25. package/{chunk-7AY2H3GA.js → chunk-W32HPLTL.js} +8 -8
  26. package/{chunk-3L2WKC3W.js → chunk-XPWGOTBQ.js} +8 -1
  27. package/{chunk-6IJDSYUA.js → chunk-ZTKZZY2A.js} +7 -5
  28. package/{commandRegistry-UU6IOTHI.js → commandRegistry-ASW6IVZ3.js} +22 -22
  29. package/{contentThunks-ARD56LKI.js → contentThunks-4XNVOIR7.js} +3 -3
  30. package/{createAgentAutomationAction-HWJLU6DD.js → createAgentAutomationAction-NHHTCJMC.js} +3 -3
  31. package/{createDialogAction-CHYA6PZE.js → createDialogAction-XEBTHDB3.js} +4 -4
  32. package/{createPageAction-TSCYNFX7.js → createPageAction-VR3WW2AQ.js} +3 -3
  33. package/{dialogCommands-IJYQAQMB.js → dialogCommands-FJWQG3MX.js} +3 -3
  34. package/{dialogSlice-H476I77R.js → dialogSlice-GVRDGCRG.js} +2 -2
  35. package/{docStore-HW2RDZDM.js → docStore-SUZUUWDI.js} +1 -1
  36. package/{handleSendMessageAction-IOXE7ILC.js → handleSendMessageAction-VC6VTFKS.js} +2 -2
  37. package/index.js +2 -2
  38. package/{machineCommands-Q7TDGM6P.js → machineCommands-M634V2L3.js} +13 -14
  39. package/{machineWsRunDispatch-T5VFOQ3R.js → machineWsRunDispatch-Z3HUSTFI.js} +11 -11
  40. package/package.json +1 -1
  41. package/{readlineWorkspace-25U6P3DG.js → readlineWorkspace-J3YD3DNW.js} +13 -13
  42. package/{runAgentClientLoop-CZOYWHDN.js → runAgentClientLoop-APSMCLAF.js} +10 -10
  43. package/{streamAgentChatTurn-LV6ZWUD4.js → streamAgentChatTurn-DNY2PSRW.js} +11 -11
  44. package/{tools-UJOV6CQZ.js → tools-X5UWATZK.js} +8 -8
  45. package/{updateDialogTitleAction-JYXKIBNJ.js → updateDialogTitleAction-YSY5BF5A.js} +3 -3
@@ -3,13 +3,45 @@ import {
3
3
  } from "./chunk-NF64D32W.js";
4
4
  import {
5
5
  CORE_DRAIN_REASON,
6
+ parsePositiveFiniteNumberOrFallback,
6
7
  parseRetryAfterHeaderMs
7
- } from "./chunk-3L2WKC3W.js";
8
+ } from "./chunk-XPWGOTBQ.js";
8
9
  import {
9
10
  asTrimmedLowercaseString
10
11
  } from "./chunk-QSJ3HFEF.js";
11
12
 
12
13
  // packages/cli/connectorWebSocketTarget.ts
14
+ var MAX_CONNECTOR_TIMER_DELAY_MS = 2147483647;
15
+ function clampConnectorTimerDelayMs(value) {
16
+ return Math.min(Math.max(value, 1), MAX_CONNECTOR_TIMER_DELAY_MS);
17
+ }
18
+ var DEFAULT_CONNECTOR_PROBE_TIMEOUT_MS = 5e3;
19
+ function resolveConnectorProbeTimeoutMs(env) {
20
+ return clampConnectorTimerDelayMs(
21
+ parsePositiveFiniteNumberOrFallback(
22
+ env.NOLO_CONNECT_PROBE_TIMEOUT_MS,
23
+ DEFAULT_CONNECTOR_PROBE_TIMEOUT_MS
24
+ )
25
+ );
26
+ }
27
+ async function probeConnectorWebSocketTarget(args) {
28
+ const controller = new AbortController();
29
+ let timer = null;
30
+ const timeoutPromise = new Promise((resolve) => {
31
+ timer = setTimeout(() => {
32
+ controller.abort();
33
+ resolve(null);
34
+ }, args.timeoutMs);
35
+ });
36
+ try {
37
+ return await Promise.race([
38
+ args.fetchImpl(args.probeUrl, { headers: args.headers, signal: controller.signal }).catch(() => null),
39
+ timeoutPromise
40
+ ]);
41
+ } finally {
42
+ if (timer) clearTimeout(timer);
43
+ }
44
+ }
13
45
  var ConnectorWebSocketAuthError = class extends Error {
14
46
  code;
15
47
  constructor(message, code = "CONNECTOR_AUTH_FAILED") {
@@ -53,9 +85,13 @@ async function resolveConnectorWebSocketTarget(input) {
53
85
  const probeUrl = new URL(input.serverUrl);
54
86
  probeUrl.pathname = "/api/connector/ws";
55
87
  probeUrl.search = directWsUrl.search;
56
- const response = await (input.fetchImpl ?? fetch)(probeUrl, {
57
- headers: input.headers
58
- }).catch(() => null);
88
+ const probeTimeoutMs = input.probeTimeoutMs ?? resolveConnectorProbeTimeoutMs(input.env ?? process.env);
89
+ const response = await probeConnectorWebSocketTarget({
90
+ fetchImpl: input.fetchImpl ?? fetch,
91
+ probeUrl,
92
+ headers: input.headers,
93
+ timeoutMs: clampConnectorTimerDelayMs(probeTimeoutMs)
94
+ });
59
95
  if (response && (response.status === 401 || response.status === 403)) {
60
96
  const json2 = await response.json().catch(() => null);
61
97
  const code = typeof json2?.code === "string" ? json2.code : "CONNECTOR_AUTH_FAILED";
@@ -306,7 +306,7 @@ var slice = createSliceWithThunks({
306
306
  const overrides = {};
307
307
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
308
308
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
309
- const { _executeModel } = await import("./_executeModel-C4EH5TZG.js");
309
+ const { _executeModel } = await import("./_executeModel-M573MKVE.js");
310
310
  return _executeModel(
311
311
  {
312
312
  isStreaming: args.isStreaming ?? false,
@@ -327,7 +327,7 @@ var slice = createSliceWithThunks({
327
327
  * - 循环直到无工具调用或触发其他运行时停止条件
328
328
  */
329
329
  runAgent: create.asyncThunk(async (args, thunkApi) => {
330
- const { runAgentClientLoop } = await import("./runAgentClientLoop-CZOYWHDN.js");
330
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-APSMCLAF.js");
331
331
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
332
332
  {
333
333
  agentKey: args.agentKey,
@@ -343,7 +343,7 @@ var slice = createSliceWithThunks({
343
343
  * 聊天轮次流式 Agent 调用
344
344
  */
345
345
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
346
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-LV6ZWUD4.js");
346
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-DNY2PSRW.js");
347
347
  return streamAgentChatTurnHandler(args, thunkApi);
348
348
  }),
349
349
  /**
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-LKIVH2I2.js";
10
+ } from "./chunk-5HYJ3DSZ.js";
11
11
  import {
12
12
  isGatewayHttpStatus
13
13
  } from "./chunk-NF64D32W.js";
@@ -16,7 +16,7 @@ import {
16
16
  isCoreDrainingBody,
17
17
  normalizeNonNegativeMs,
18
18
  parseRetryAfterHeaderMs
19
- } from "./chunk-3L2WKC3W.js";
19
+ } from "./chunk-XPWGOTBQ.js";
20
20
  import {
21
21
  resolvePageReadMarkdown,
22
22
  slateToSimplifiedMarkdown
@@ -29,13 +29,13 @@ import {
29
29
  } from "./chunk-AGIM7IMJ.js";
30
30
  import {
31
31
  fetchAndCacheMessages
32
- } from "./chunk-7AY2H3GA.js";
32
+ } from "./chunk-W32HPLTL.js";
33
33
  import {
34
34
  shouldUseServerProxy
35
35
  } from "./chunk-UKZX3NHN.js";
36
36
  import {
37
37
  fetchServerSyncedCredential
38
- } from "./chunk-RLSF5CSE.js";
38
+ } from "./chunk-TFOIJFCM.js";
39
39
  import {
40
40
  buildSkillGuidancePromptBlock,
41
41
  extractRuntimePageCapabilities,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  inlineImageUrlsForCustomProvider,
47
47
  prepareTools
48
- } from "./chunk-YKZLFY5J.js";
48
+ } from "./chunk-7BBP7ZX3.js";
49
49
  import {
50
50
  getServerProviderSecret
51
51
  } from "./chunk-HS7MLR74.js";
@@ -62,7 +62,7 @@ import {
62
62
  readXhsProfileFunctionSchema,
63
63
  rememberMemoryFunctionSchema,
64
64
  resolveAgentRequiredPackIds
65
- } from "./chunk-LKIVH2I2.js";
65
+ } from "./chunk-5HYJ3DSZ.js";
66
66
  import {
67
67
  deriveCredentialGroup,
68
68
  deriveCustomProviderCredentialGroup
@@ -70,7 +70,7 @@ import {
70
70
  import {
71
71
  fetchWithTransientRetry,
72
72
  isTransientFetchError
73
- } from "./chunk-AOTBKDRK.js";
73
+ } from "./chunk-APO5TOXO.js";
74
74
  import {
75
75
  getModelPricing
76
76
  } from "./chunk-BNQMNUKZ.js";
@@ -114,14 +114,14 @@ import {
114
114
  prepareTokenUsageData,
115
115
  resolveBuiltinPlatformAgentConfig,
116
116
  runKeyed
117
- } from "./chunk-7AY2H3GA.js";
117
+ } from "./chunk-W32HPLTL.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-RLSF5CSE.js";
124
+ } from "./chunk-TFOIJFCM.js";
125
125
  import {
126
126
  FORCED_TOOLS,
127
127
  addDefaultLightWebToolsForConfiguredAgents,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-VZLO4XJD.js";
18
18
  import {
19
19
  runLlm
20
- } from "./chunk-RLSF5CSE.js";
20
+ } from "./chunk-TFOIJFCM.js";
21
21
  import {
22
22
  cleanupCliSessionForDialog
23
23
  } from "./chunk-EZ4VZHAG.js";
@@ -10623,7 +10623,7 @@ var messageSlice = createSliceWithThunks({
10623
10623
  runtimeOptions: args.runtimeOptions
10624
10624
  });
10625
10625
  if (agentKeyToUse) {
10626
- const { streamAgentChatTurn } = await import("./agentSlice-NIN4T6CF.js");
10626
+ const { streamAgentChatTurn } = await import("./agentSlice-2LPP43XH.js");
10627
10627
  await dispatch(
10628
10628
  streamAgentChatTurn({
10629
10629
  agentKey: agentKeyToUse,
@@ -13417,7 +13417,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13417
13417
  }
13418
13418
  if (isCurrentDialog) {
13419
13419
  await thunkApi.dispatch(resetMsgs());
13420
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-H476I77R.js");
13420
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-GVRDGCRG.js");
13421
13421
  dispatch(clearPendingAttachments2());
13422
13422
  }
13423
13423
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13425,15 +13425,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13425
13425
 
13426
13426
  // packages/chat/dialog/dialogSlice.ts
13427
13427
  var runCreateDialogAction = async (args, thunkApi) => {
13428
- const { createDialogAction } = await import("./createDialogAction-CHYA6PZE.js");
13428
+ const { createDialogAction } = await import("./createDialogAction-XEBTHDB3.js");
13429
13429
  return createDialogAction(args, thunkApi);
13430
13430
  };
13431
13431
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13432
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-HWJLU6DD.js");
13432
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-NHHTCJMC.js");
13433
13433
  return createAgentAutomationAction(args, thunkApi);
13434
13434
  };
13435
13435
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13436
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-JYXKIBNJ.js");
13436
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-YSY5BF5A.js");
13437
13437
  return updateDialogTitleAction(args, thunkApi);
13438
13438
  };
13439
13439
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -13457,7 +13457,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13457
13457
  return setDialogExtraReferencesAction(args, thunkApi);
13458
13458
  };
13459
13459
  var runHandleSendMessageAction = async (args, thunkApi) => {
13460
- const { handleSendMessageAction } = await import("./handleSendMessageAction-IOXE7ILC.js");
13460
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-VC6VTFKS.js");
13461
13461
  return handleSendMessageAction(args, thunkApi);
13462
13462
  };
13463
13463
  function clearDialogState() {
@@ -13470,7 +13470,7 @@ var createPageAndAddReference = createAsyncThunk(
13470
13470
  async (payload, { dispatch, getState, rejectWithValue }) => {
13471
13471
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13472
13472
  try {
13473
- const { createDocState } = await import("./docStore-HW2RDZDM.js");
13473
+ const { createDocState } = await import("./docStore-SUZUUWDI.js");
13474
13474
  const pageKey = await createDocState(
13475
13475
  { slateData, title },
13476
13476
  { dispatch, getState }
@@ -24,6 +24,12 @@ async function isDrainExhaustedResponse(response) {
24
24
  }
25
25
  }
26
26
 
27
+ // packages/core/positiveFiniteNumberOrFallback.ts
28
+ function parsePositiveFiniteNumberOrFallback(value, fallback) {
29
+ const parsed = Number(value);
30
+ return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
31
+ }
32
+
27
33
  // packages/core/retryAfterMs.ts
28
34
  function normalizeNonNegativeMs(value, fallbackMs) {
29
35
  const parsed = Number(value);
@@ -51,5 +57,6 @@ export {
51
57
  createDrainExhaustedResponse,
52
58
  isDrainExhaustedResponse,
53
59
  normalizeNonNegativeMs,
54
- parseRetryAfterHeaderMs
60
+ parseRetryAfterHeaderMs,
61
+ parsePositiveFiniteNumberOrFallback
55
62
  };
@@ -28,7 +28,7 @@ import {
28
28
  t,
29
29
  toolLabel,
30
30
  toolLabelVariants
31
- } from "./chunk-SQHMSDDU.js";
31
+ } from "./chunk-VM6IE2GN.js";
32
32
  import {
33
33
  clearCredentialAvailability,
34
34
  readCredentialEntry,
@@ -72,9 +72,11 @@ import {
72
72
  isGatewayHttpStatus
73
73
  } from "./chunk-NF64D32W.js";
74
74
  import {
75
- isTransientFetchError,
75
+ isTransientFetchError
76
+ } from "./chunk-APO5TOXO.js";
77
+ import {
76
78
  parsePositiveFiniteNumberOrFallback
77
- } from "./chunk-AOTBKDRK.js";
79
+ } from "./chunk-XPWGOTBQ.js";
78
80
  import {
79
81
  extractGoogleValidationLink
80
82
  } from "./chunk-BMQ2MJUK.js";
@@ -83,7 +85,7 @@ import {
83
85
  chooseMemoryOwners,
84
86
  loadMemoryCandidatesFromDb,
85
87
  resolveAgentMemoryPolicy
86
- } from "./chunk-DGEUP3DK.js";
88
+ } from "./chunk-7X5XZ34C.js";
87
89
  import {
88
90
  createRunActivityTracker,
89
91
  popSingleQueueMessage,
@@ -113,7 +115,7 @@ import {
113
115
  import {
114
116
  API_REPORTED_COST_MULTIPLIER,
115
117
  parseUiAskChoiceContent
116
- } from "./chunk-7AY2H3GA.js";
118
+ } from "./chunk-W32HPLTL.js";
117
119
  import {
118
120
  isOAuthApiKeyRef
119
121
  } from "./chunk-UKZX3NHN.js";
@@ -103,7 +103,7 @@ function createDaemonShortcutCommand(path, description, command) {
103
103
  // packages/cli/agentInternalCommandEntries.ts
104
104
  function getAgentInternalCommandEntries() {
105
105
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
106
- const { runAgentRunCommand } = await import("./agentRunCommand-BTHYOVVS.js");
106
+ const { runAgentRunCommand } = await import("./agentRunCommand-H6KKHHMU.js");
107
107
  return runAgentRunCommand(args, {
108
108
  env: ctx.env,
109
109
  scriptDir: ctx.scriptDir,
@@ -115,11 +115,11 @@ function getAgentInternalCommandEntries() {
115
115
  createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
116
116
  createAgentRunCommand(["chat"], "Chat with an agent"),
117
117
  createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
118
- const { runAgentListCommand } = await import("./agentListCommands-UDJELMYP.js");
118
+ const { runAgentListCommand } = await import("./agentListCommands-PAD2CI2I.js");
119
119
  return runAgentListCommand(args, deps);
120
120
  }),
121
121
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
122
- const { runAgentCreateCommand } = await import("./agentRecordCommands-3EOC2QMN.js");
122
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-UMACPRAF.js");
123
123
  return runAgentCreateCommand(args, deps);
124
124
  }),
125
125
  createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
@@ -135,7 +135,7 @@ function getAgentInternalCommandEntries() {
135
135
  return runAgentPullCommand(args, deps);
136
136
  }),
137
137
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
138
- const { runAgentReadCommand } = await import("./agentRecordCommands-3EOC2QMN.js");
138
+ const { runAgentReadCommand } = await import("./agentRecordCommands-UMACPRAF.js");
139
139
  return runAgentReadCommand(args, deps);
140
140
  }),
141
141
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -164,31 +164,31 @@ function getAgentInternalCommandEntries() {
164
164
  return runSetupOfflineMarxistsAgentCommand(args, deps);
165
165
  }),
166
166
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
167
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-3EOC2QMN.js");
167
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-UMACPRAF.js");
168
168
  return runAgentUpdateCommand(args, deps);
169
169
  }),
170
170
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
171
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-YC2A4USQ.js");
171
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-X6AVPIVQ.js");
172
172
  return runAgentEmailProvisionCommand(args, deps);
173
173
  }),
174
174
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
175
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-YC2A4USQ.js");
175
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-X6AVPIVQ.js");
176
176
  return runAgentEmailBindCommand(args, deps);
177
177
  }),
178
178
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
179
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-YC2A4USQ.js");
179
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-X6AVPIVQ.js");
180
180
  return runAgentEmailTransferCommand(args, deps);
181
181
  }),
182
182
  createEnvCommand(
183
183
  ["agent", "email", "create-and-provision"],
184
184
  "Create an agent and provision its controlled inbox",
185
185
  async (args, deps) => {
186
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-YC2A4USQ.js");
186
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-X6AVPIVQ.js");
187
187
  return runAgentEmailCreateAndProvisionCommand(args, deps);
188
188
  }
189
189
  ),
190
190
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
191
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-D3RICSHX.js");
191
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-ZFHYRHBS.js");
192
192
  return runAgentDeleteCommand(args, deps);
193
193
  }),
194
194
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -204,15 +204,15 @@ function getAgentInternalCommandEntries() {
204
204
  return runAgentRevokeGrantCommand(args, deps);
205
205
  }),
206
206
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
207
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-XH4IBGTO.js");
207
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-UPH6RJCC.js");
208
208
  return runAgentBindCurrentCommand(args, deps);
209
209
  }),
210
210
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
211
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-XH4IBGTO.js");
211
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-UPH6RJCC.js");
212
212
  return runAgentSmokeCurrentCommand(args, deps);
213
213
  }),
214
214
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
215
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-XH4IBGTO.js");
215
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-UPH6RJCC.js");
216
216
  return runAgentRuntimeDoctorCommand(args, deps);
217
217
  }),
218
218
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -317,27 +317,27 @@ function getChromeInternalCommandEntries() {
317
317
  function getDialogInternalCommandEntries() {
318
318
  return [
319
319
  createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
320
- const { runDialogSearchCommand } = await import("./dialogCommands-IJYQAQMB.js");
320
+ const { runDialogSearchCommand } = await import("./dialogCommands-FJWQG3MX.js");
321
321
  return runDialogSearchCommand(args, deps);
322
322
  }),
323
323
  createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
324
- const { runDialogListCommand } = await import("./dialogCommands-IJYQAQMB.js");
324
+ const { runDialogListCommand } = await import("./dialogCommands-FJWQG3MX.js");
325
325
  return runDialogListCommand(args, deps);
326
326
  }),
327
327
  createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
328
- const { runDialogDeleteCommand } = await import("./dialogCommands-IJYQAQMB.js");
328
+ const { runDialogDeleteCommand } = await import("./dialogCommands-FJWQG3MX.js");
329
329
  return runDialogDeleteCommand(args, deps);
330
330
  }),
331
331
  createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
332
- const { runDialogQueryCommand } = await import("./dialogCommands-IJYQAQMB.js");
332
+ const { runDialogQueryCommand } = await import("./dialogCommands-FJWQG3MX.js");
333
333
  return runDialogQueryCommand(args, deps);
334
334
  }),
335
335
  createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
336
- const { runDialogReadCommand } = await import("./dialogCommands-IJYQAQMB.js");
336
+ const { runDialogReadCommand } = await import("./dialogCommands-FJWQG3MX.js");
337
337
  return runDialogReadCommand(args, deps);
338
338
  }),
339
339
  createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
340
- const { runDialogStatusCommand } = await import("./dialogCommands-IJYQAQMB.js");
340
+ const { runDialogStatusCommand } = await import("./dialogCommands-FJWQG3MX.js");
341
341
  return runDialogStatusCommand(args, deps);
342
342
  })
343
343
  ];
@@ -473,15 +473,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
473
473
  return runWhoamiCommand({ args, env: ctx.env });
474
474
  }),
475
475
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
476
- const { runMachineConnectCommand } = await import("./machineCommands-Q7TDGM6P.js");
476
+ const { runMachineConnectCommand } = await import("./machineCommands-M634V2L3.js");
477
477
  return runMachineConnectCommand(args, deps);
478
478
  }),
479
479
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
480
- const { runMachineConnectCommand } = await import("./machineCommands-Q7TDGM6P.js");
480
+ const { runMachineConnectCommand } = await import("./machineCommands-M634V2L3.js");
481
481
  return runMachineConnectCommand(args, deps);
482
482
  }),
483
483
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
484
- const { runMachineStatusCommand } = await import("./machineCommands-Q7TDGM6P.js");
484
+ const { runMachineStatusCommand } = await import("./machineCommands-M634V2L3.js");
485
485
  return runMachineStatusCommand(args, deps);
486
486
  }),
487
487
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -7,15 +7,15 @@ import {
7
7
  updateContentPinned,
8
8
  updateContentTitle,
9
9
  uploadAndAddFileToSpace
10
- } from "./chunk-7HYOPBUW.js";
10
+ } from "./chunk-KFWDYYSS.js";
11
11
  import "./chunk-ZJ7UHBJS.js";
12
- import "./chunk-7AY2H3GA.js";
12
+ import "./chunk-W32HPLTL.js";
13
13
  import "./chunk-UKZX3NHN.js";
14
14
  import "./chunk-R5AJODNI.js";
15
15
  import "./chunk-523DITKR.js";
16
16
  import "./chunk-AGGIDPCZ.js";
17
17
  import "./chunk-VZLO4XJD.js";
18
- import "./chunk-RLSF5CSE.js";
18
+ import "./chunk-TFOIJFCM.js";
19
19
  import "./chunk-EZ4VZHAG.js";
20
20
  import "./chunk-5RGU3J7P.js";
21
21
  import "./chunk-ZRAU6T47.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-7HYOPBUW.js";
3
+ } from "./chunk-KFWDYYSS.js";
4
4
  import "./chunk-ZJ7UHBJS.js";
5
- import "./chunk-7AY2H3GA.js";
5
+ import "./chunk-W32HPLTL.js";
6
6
  import "./chunk-UKZX3NHN.js";
7
7
  import "./chunk-R5AJODNI.js";
8
8
  import "./chunk-523DITKR.js";
9
9
  import "./chunk-AGGIDPCZ.js";
10
10
  import "./chunk-VZLO4XJD.js";
11
- import "./chunk-RLSF5CSE.js";
11
+ import "./chunk-TFOIJFCM.js";
12
12
  import "./chunk-EZ4VZHAG.js";
13
13
  import "./chunk-5RGU3J7P.js";
14
14
  import "./chunk-ZRAU6T47.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createDialogAction,
3
3
  isLocalOwnerDialogAgents
4
- } from "./chunk-DGEUP3DK.js";
5
- import "./chunk-7HYOPBUW.js";
4
+ } from "./chunk-7X5XZ34C.js";
5
+ import "./chunk-KFWDYYSS.js";
6
6
  import "./chunk-ZJ7UHBJS.js";
7
- import "./chunk-7AY2H3GA.js";
7
+ import "./chunk-W32HPLTL.js";
8
8
  import "./chunk-UKZX3NHN.js";
9
9
  import "./chunk-R5AJODNI.js";
10
10
  import "./chunk-523DITKR.js";
11
11
  import "./chunk-AGGIDPCZ.js";
12
12
  import "./chunk-VZLO4XJD.js";
13
- import "./chunk-RLSF5CSE.js";
13
+ import "./chunk-TFOIJFCM.js";
14
14
  import "./chunk-EZ4VZHAG.js";
15
15
  import "./chunk-5RGU3J7P.js";
16
16
  import "./chunk-ZRAU6T47.js";
@@ -13,19 +13,19 @@ import {
13
13
  } from "./chunk-VF4K2QE6.js";
14
14
  import {
15
15
  addContentToSpace
16
- } from "./chunk-7HYOPBUW.js";
16
+ } from "./chunk-KFWDYYSS.js";
17
17
  import {
18
18
  getCurrentSpaceId
19
19
  } from "./chunk-ZJ7UHBJS.js";
20
20
  import {
21
21
  runtime_default
22
- } from "./chunk-7AY2H3GA.js";
22
+ } from "./chunk-W32HPLTL.js";
23
23
  import "./chunk-UKZX3NHN.js";
24
24
  import "./chunk-R5AJODNI.js";
25
25
  import "./chunk-523DITKR.js";
26
26
  import "./chunk-AGGIDPCZ.js";
27
27
  import "./chunk-VZLO4XJD.js";
28
- import "./chunk-RLSF5CSE.js";
28
+ import "./chunk-TFOIJFCM.js";
29
29
  import "./chunk-EZ4VZHAG.js";
30
30
  import "./chunk-5RGU3J7P.js";
31
31
  import "./chunk-ZRAU6T47.js";
@@ -11,15 +11,15 @@ import {
11
11
  runDialogSearchCommand,
12
12
  runDialogStatusCommand,
13
13
  sortDialogs
14
- } from "./chunk-TCYU7L6V.js";
14
+ } from "./chunk-3IXAHOJS.js";
15
15
  import "./chunk-ID4G2MAR.js";
16
16
  import "./chunk-OR2UWD6X.js";
17
17
  import "./chunk-EADNWBAZ.js";
18
18
  import "./chunk-K6L5PNXK.js";
19
19
  import "./chunk-KA5O5KQL.js";
20
20
  import "./chunk-SV5IJK6K.js";
21
- import "./chunk-AOTBKDRK.js";
22
- import "./chunk-3L2WKC3W.js";
21
+ import "./chunk-APO5TOXO.js";
22
+ import "./chunk-XPWGOTBQ.js";
23
23
  import "./chunk-OXME3PEE.js";
24
24
  import "./chunk-URMS4XY2.js";
25
25
  import "./chunk-GLKOYSRU.js";
@@ -20,13 +20,13 @@ import {
20
20
  switchDialogAgent,
21
21
  updateDialogTitle,
22
22
  updateTokens
23
- } from "./chunk-7AY2H3GA.js";
23
+ } from "./chunk-W32HPLTL.js";
24
24
  import "./chunk-UKZX3NHN.js";
25
25
  import "./chunk-R5AJODNI.js";
26
26
  import "./chunk-523DITKR.js";
27
27
  import "./chunk-AGGIDPCZ.js";
28
28
  import "./chunk-VZLO4XJD.js";
29
- import "./chunk-RLSF5CSE.js";
29
+ import "./chunk-TFOIJFCM.js";
30
30
  import "./chunk-EZ4VZHAG.js";
31
31
  import {
32
32
  getActiveDialogAgentId
@@ -25,7 +25,7 @@ import {
25
25
  updateTitleDoc,
26
26
  useDocField,
27
27
  useDocState
28
- } from "./chunk-2NNRWRM5.js";
28
+ } from "./chunk-KWUKOQM2.js";
29
29
  import "./chunk-ZRAU6T47.js";
30
30
  import "./chunk-4LCOCOR5.js";
31
31
  import "./chunk-YDH3FDFQ.js";
@@ -14,7 +14,7 @@ import {
14
14
  prepareAndPersistUserMessage,
15
15
  resolveHandleSendMessageContext,
16
16
  selectAllMsgs
17
- } from "./chunk-7AY2H3GA.js";
17
+ } from "./chunk-W32HPLTL.js";
18
18
  import "./chunk-UKZX3NHN.js";
19
19
  import "./chunk-R5AJODNI.js";
20
20
  import "./chunk-523DITKR.js";
@@ -22,7 +22,7 @@ import "./chunk-AGGIDPCZ.js";
22
22
  import "./chunk-VZLO4XJD.js";
23
23
  import {
24
24
  streamAgentChatTurn
25
- } from "./chunk-RLSF5CSE.js";
25
+ } from "./chunk-TFOIJFCM.js";
26
26
  import "./chunk-EZ4VZHAG.js";
27
27
  import "./chunk-5RGU3J7P.js";
28
28
  import {
package/index.js CHANGED
@@ -71,7 +71,7 @@ async function runScript(script, forwardedArgs, env) {
71
71
  return proc.exited;
72
72
  }
73
73
  async function launchTuiWorkspace(args2) {
74
- const { startTuiWorkspace } = await import("./readlineWorkspace-25U6P3DG.js");
74
+ const { startTuiWorkspace } = await import("./readlineWorkspace-J3YD3DNW.js");
75
75
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-DEH7ZEM6.js");
76
76
  return startTuiWorkspace({
77
77
  ...args2,
@@ -81,7 +81,7 @@ async function launchTuiWorkspace(args2) {
81
81
  });
82
82
  }
83
83
  async function main() {
84
- const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-UU6IOTHI.js");
84
+ const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-ASW6IVZ3.js");
85
85
  const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-ZGOFORWV.js");
86
86
  const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-2Y7BALTO.js");
87
87
  const runtimeEnv = {