nolo-cli 0.191.0-alpha.3 → 0.192.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 (45) hide show
  1. package/{_executeModel-WQ2D4ZRH.js → _executeModel-WQ7BV3G7.js} +13 -13
  2. package/{agentDeleteCommand-TTCVC74A.js → agentDeleteCommand-4DK6X4S4.js} +10 -10
  3. package/{agentEmailCommands-PTG35KER.js → agentEmailCommands-CYPIYPOK.js} +12 -12
  4. package/{agentMachineCommands-ATOZK3R5.js → agentMachineCommands-7VTOWHHD.js} +1 -1
  5. package/{agentRecordCommands-KGRPIJN5.js → agentRecordCommands-VK3NEK5G.js} +11 -11
  6. package/{agentRunCommand-75VVJTNU.js → agentRunCommand-7MFVUHWX.js} +12 -12
  7. package/{agentSlice-UJPIKKKP.js → agentSlice-TZRLTBEJ.js} +1 -1
  8. package/{chunk-U5ZHUOLT.js → chunk-2NAE7IVE.js} +1 -1
  9. package/{chunk-FEDJHD5X.js → chunk-5DIFZFYF.js} +2 -2
  10. package/{chunk-YE6A72XL.js → chunk-63JHZKGZ.js} +8 -8
  11. package/{chunk-2XUOREKD.js → chunk-ABMBNULR.js} +1 -1
  12. package/{chunk-2E5M3JVS.js → chunk-CGKSIL4D.js} +2 -2
  13. package/{chunk-DS5DAOIY.js → chunk-EVF6F3QU.js} +2 -2
  14. package/{chunk-R5LJWMZE.js → chunk-EXSR7DXT.js} +2 -2
  15. package/{chunk-2KBNF477.js → chunk-IOIPWEL4.js} +5 -5
  16. package/{chunk-KGP7UTNN.js → chunk-JG6IWEAW.js} +7 -7
  17. package/{chunk-53PBXLID.js → chunk-JGJVDP2W.js} +16 -16
  18. package/{chunk-XPL63OIC.js → chunk-KDBKEYUW.js} +5 -5
  19. package/{chunk-UZHYRBUB.js → chunk-NMDAOZRN.js} +6 -6
  20. package/{chunk-LCSAJ5TJ.js → chunk-OUSUFO5W.js} +2 -2
  21. package/{chunk-VE3FEZIT.js → chunk-TZLPJRNO.js} +2 -2
  22. package/{chunk-LHOR5MC2.js → chunk-UC5RISH3.js} +48 -29
  23. package/{chunk-EHB4CKUI.js → chunk-V62MBA65.js} +2 -2
  24. package/{chunk-3NPXGNSK.js → chunk-WVGVGT44.js} +3 -3
  25. package/{chunk-5EFNSNAV.js → chunk-YARN6MCX.js} +1 -1
  26. package/{chunk-CTPFBJAF.js → chunk-YHNZZIAH.js} +3 -3
  27. package/{commandRegistry-4JHVRMW7.js → commandRegistry-RM2Z2DVF.js} +15 -15
  28. package/{contentThunks-HQBAAXNW.js → contentThunks-RP4BYNUC.js} +3 -3
  29. package/{createAgentAutomationAction-KELPOVMP.js → createAgentAutomationAction-AYFAMQ5D.js} +3 -3
  30. package/{createDialogAction-Z3SASMTM.js → createDialogAction-NV5TEAIN.js} +4 -4
  31. package/{createPageAction-PNHOIG44.js → createPageAction-FJGDX55N.js} +3 -3
  32. package/{dialogSlice-QHV6I3OQ.js → dialogSlice-ZUYNLTF6.js} +2 -2
  33. package/{docStore-LVMUSECS.js → docStore-EPAZ4HLD.js} +1 -1
  34. package/{handleSendMessageAction-7TONIXHY.js → handleSendMessageAction-5UH3DA6V.js} +7 -7
  35. package/index.js +3 -3
  36. package/{localRuntimeAdapter-HRAB7P5E.js → localRuntimeAdapter-LVPGHOJK.js} +10 -10
  37. package/{machineCommands-OTXFRTDA.js → machineCommands-O6RDJGLV.js} +11 -11
  38. package/{machineWsRunDispatch-KWVWOHHG.js → machineWsRunDispatch-GVDQO742.js} +11 -11
  39. package/{memberThunks-ZAE52VIP.js → memberThunks-QWAAGQBS.js} +153 -50
  40. package/package.json +1 -1
  41. package/{readlineWorkspace-CEX5TXGM.js → readlineWorkspace-I5XZFI2E.js} +12 -12
  42. package/{runAgentClientLoop-DCV4BD2W.js → runAgentClientLoop-LV2HYQPH.js} +11 -11
  43. package/{streamAgentChatTurn-NKFKMFQ2.js → streamAgentChatTurn-ZCHIQR35.js} +13 -13
  44. package/{tools-626VXEY7.js → tools-2DZDJWHZ.js} +8 -8
  45. package/{updateDialogTitleAction-RNNQAMXG.js → updateDialogTitleAction-QZWVKVVW.js} +3 -3
@@ -60,7 +60,7 @@ import {
60
60
  import {
61
61
  inlineImageUrlsForCustomProvider,
62
62
  prepareTools
63
- } from "./chunk-LCSAJ5TJ.js";
63
+ } from "./chunk-OUSUFO5W.js";
64
64
  import {
65
65
  getServerProviderSecret
66
66
  } from "./chunk-HS7MLR74.js";
@@ -82,7 +82,7 @@ import {
82
82
  resolveCliLocalRuntimeKeyCapability,
83
83
  resolveCliLocalSpawnDispatch,
84
84
  resolveStartAgentRunCwd
85
- } from "./chunk-LHOR5MC2.js";
85
+ } from "./chunk-UC5RISH3.js";
86
86
  import {
87
87
  fetchWithTransientRetry,
88
88
  isTransientFetchError
@@ -93,7 +93,7 @@ import {
93
93
  } from "./chunk-53RSTB7T.js";
94
94
  import {
95
95
  resolveAgentRequiredPackIds
96
- } from "./chunk-3NPXGNSK.js";
96
+ } from "./chunk-WVGVGT44.js";
97
97
  import {
98
98
  applyBuiltinAgentRuntimeOverride,
99
99
  applyTokenUsageToDayStats,
@@ -102,14 +102,14 @@ import {
102
102
  resolveBuiltinPlatformAgentConfig,
103
103
  runKeyed,
104
104
  validateAskChoiceInput
105
- } from "./chunk-YE6A72XL.js";
105
+ } from "./chunk-63JHZKGZ.js";
106
106
  import {
107
107
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
108
108
  BUILTIN_TITLE_LLM_CONFIG
109
109
  } from "./chunk-523DITKR.js";
110
110
  import {
111
111
  fetchServerSyncedCredential
112
- } from "./chunk-CTPFBJAF.js";
112
+ } from "./chunk-YHNZZIAH.js";
113
113
  import {
114
114
  getDefaultCliLocalRuntimeDb
115
115
  } from "./chunk-P64WRQYV.js";
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-U5ZHUOLT.js";
12
+ } from "./chunk-2NAE7IVE.js";
13
13
  import {
14
14
  parsePositiveFiniteNumberOrFallback
15
15
  } from "./chunk-Y5GCAMGP.js";
@@ -38,7 +38,7 @@ import {
38
38
  resolveFileWriteGateEnabled,
39
39
  resolveLocalUserId,
40
40
  validateInstaboxWorkspaceSelection
41
- } from "./chunk-XPL63OIC.js";
41
+ } from "./chunk-KDBKEYUW.js";
42
42
  import {
43
43
  clearCredentialAvailability,
44
44
  readEffectiveCredentialEntry,
@@ -72,14 +72,14 @@ import {
72
72
  } from "./chunk-BMQ2MJUK.js";
73
73
  import {
74
74
  resolveCliLocalRuntimeKeyCapability
75
- } from "./chunk-LHOR5MC2.js";
75
+ } from "./chunk-UC5RISH3.js";
76
76
  import {
77
77
  isTransientFetchError
78
78
  } from "./chunk-KFHREHUQ.js";
79
79
  import {
80
80
  parseUiCard,
81
81
  uiCardFallback
82
- } from "./chunk-3NPXGNSK.js";
82
+ } from "./chunk-WVGVGT44.js";
83
83
  import {
84
84
  isGatewayHttpStatus
85
85
  } from "./chunk-NF64D32W.js";
@@ -88,7 +88,7 @@ import {
88
88
  chooseMemoryOwners,
89
89
  loadMemoryCandidatesFromDb,
90
90
  resolveAgentMemoryPolicy
91
- } from "./chunk-2E5M3JVS.js";
91
+ } from "./chunk-CGKSIL4D.js";
92
92
  import {
93
93
  API_REPORTED_COST_MULTIPLIER,
94
94
  estimateMessagesTokens,
@@ -96,7 +96,7 @@ import {
96
96
  resolveAgentContextWindow,
97
97
  resolveOccupancy,
98
98
  resolveOccupancyWindow
99
- } from "./chunk-YE6A72XL.js";
99
+ } from "./chunk-63JHZKGZ.js";
100
100
  import {
101
101
  isCliAuthorityBrokerProtocolError,
102
102
  isCliAuthorityBrokerTimeoutError,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-LHOR5MC2.js";
3
+ } from "./chunk-UC5RISH3.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-YE6A72XL.js";
6
+ } from "./chunk-63JHZKGZ.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-AKE53VMW.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-XPL63OIC.js";
4
+ } from "./chunk-KDBKEYUW.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-3NPXGNSK.js";
7
+ } from "./chunk-WVGVGT44.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
10
  } from "./chunk-ADTJJVDJ.js";
@@ -17,6 +17,7 @@ import {
17
17
  } from "./chunk-VF4K2QE6.js";
18
18
  import {
19
19
  addMemberSpace,
20
+ applyFetchSpaceFulfilled,
20
21
  fetchAuthoritativeRemoteSpace,
21
22
  getAllMemberSpaces,
22
23
  removeMemberSpace,
@@ -24,9 +25,8 @@ import {
24
25
  setMembershipLoaded,
25
26
  setMembershipLoading,
26
27
  setMembershipRejected,
27
- setSpaceInitialized,
28
28
  updateMemberSpaceName
29
- } from "./chunk-53PBXLID.js";
29
+ } from "./chunk-JGJVDP2W.js";
30
30
  import {
31
31
  ToolResultError,
32
32
  clipMultilineText,
@@ -38,7 +38,7 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-3NPXGNSK.js";
41
+ } from "./chunk-WVGVGT44.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-VYNMQ6HW.js";
56
56
  import {
57
57
  createDocState
58
- } from "./chunk-DS5DAOIY.js";
58
+ } from "./chunk-EVF6F3QU.js";
59
59
  import {
60
60
  ToolApiError,
61
61
  buildToolRequestHeaders,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-63W5N6P3.js";
83
83
  import {
84
84
  createDialogAction
85
- } from "./chunk-2E5M3JVS.js";
85
+ } from "./chunk-CGKSIL4D.js";
86
86
  import {
87
87
  DEFAULT_COLLAPSED_CATEGORIES,
88
88
  addContentToSpace,
@@ -99,7 +99,7 @@ import {
99
99
  updateContentCategory,
100
100
  updateContentTitle,
101
101
  writeStoredCollapsedCategories
102
- } from "./chunk-5EFNSNAV.js";
102
+ } from "./chunk-YARN6MCX.js";
103
103
  import {
104
104
  getCurrentSpaceId,
105
105
  getCurrentSpaceIdRaw,
@@ -122,14 +122,14 @@ import {
122
122
  selectMsgById,
123
123
  uiAskChoiceFunc,
124
124
  uiAskChoiceFunctionSchema
125
- } from "./chunk-YE6A72XL.js";
125
+ } from "./chunk-63JHZKGZ.js";
126
126
  import {
127
127
  createAgent,
128
128
  deleteServerSyncedCredential,
129
129
  runLlm,
130
130
  streamAgentChatTurn,
131
131
  updateAgent
132
- } from "./chunk-CTPFBJAF.js";
132
+ } from "./chunk-YHNZZIAH.js";
133
133
  import {
134
134
  buildMediaToolConfirmation,
135
135
  normalizeMediaConfirmExecutionRevision
@@ -3884,7 +3884,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3884
3884
  const deletedDialogIds = [];
3885
3885
  const deletedDialogKeys = [];
3886
3886
  const failures = [];
3887
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-QHV6I3OQ.js");
3887
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-ZUYNLTF6.js");
3888
3888
  for (const target of targets) {
3889
3889
  try {
3890
3890
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4983,6 +4983,24 @@ var deleteSpaceAction = async (input, thunkAPI) => {
4983
4983
  return { spaceId, strategy };
4984
4984
  };
4985
4985
 
4986
+ // packages/create/space/withTimeout.ts
4987
+ var SPACE_LOCAL_READ_TIMEOUT_MS = 1500;
4988
+ var withTimeout = async (promise, ms = SPACE_LOCAL_READ_TIMEOUT_MS) => {
4989
+ let timer;
4990
+ try {
4991
+ return await Promise.race([
4992
+ promise,
4993
+ new Promise((resolve) => {
4994
+ timer = setTimeout(() => resolve(null), ms);
4995
+ })
4996
+ ]);
4997
+ } catch {
4998
+ return null;
4999
+ } finally {
5000
+ if (timer) clearTimeout(timer);
5001
+ }
5002
+ };
5003
+
4986
5004
  // packages/create/space/fetchSpaceAction.ts
4987
5005
  var fetchSpaceAction = async (input, thunkAPI) => {
4988
5006
  const rawSpaceId = typeof input === "string" ? input : input?.spaceId;
@@ -4996,14 +5014,8 @@ var fetchSpaceAction = async (input, thunkAPI) => {
4996
5014
  const readSpace = async (dbKey) => {
4997
5015
  try {
4998
5016
  const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QAUXABCC.js");
4999
- if (fresh) {
5000
- return await dispatch(readAndWait2(dbKey)).unwrap();
5001
- }
5002
- return await dispatch(
5003
- read2({
5004
- dbKey
5005
- })
5006
- ).unwrap();
5017
+ const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
5018
+ return await withTimeout(readPromise);
5007
5019
  } catch {
5008
5020
  return null;
5009
5021
  }
@@ -5160,16 +5172,6 @@ var fetchSpaceSidebarStateAction = async (spaceId, thunkAPI) => {
5160
5172
  };
5161
5173
  };
5162
5174
 
5163
- // packages/create/space/applyFetchSpaceFulfilled.ts
5164
- function applyFetchSpaceFulfilled(payload) {
5165
- const { spaceId, spaceData } = payload;
5166
- const currentSpaceId = getCurrentSpaceIdRaw();
5167
- if (!currentSpaceId || currentSpaceId === spaceId) {
5168
- setCurrentSpaceBoth(spaceId, spaceData);
5169
- setSpaceInitialized();
5170
- }
5171
- }
5172
-
5173
5175
  // packages/create/space/changeSpaceAction.ts
5174
5176
  var getSpaceUpdatedAt2 = (space) => {
5175
5177
  if (!space) return 0;
@@ -5246,6 +5248,7 @@ var fetchSpaceSidebarState = createAsyncThunk(
5246
5248
  }
5247
5249
  }
5248
5250
  );
5251
+ var SPACE_SWITCH_TIMEOUT_MS = 1e4;
5249
5252
  var changeSpace = createAsyncThunk(
5250
5253
  "space/changeSpace",
5251
5254
  async (arg, thunkAPI) => {
@@ -5254,8 +5257,22 @@ var changeSpace = createAsyncThunk(
5254
5257
  setMembershipLoading();
5255
5258
  setCurrentSpace(null);
5256
5259
  }
5260
+ const actionPromise = changeSpaceAction(arg, thunkAPI);
5261
+ actionPromise.catch(() => {
5262
+ });
5263
+ let timeoutTimer;
5257
5264
  try {
5258
- const payload = await changeSpaceAction(arg, thunkAPI);
5265
+ const payload = await Promise.race([
5266
+ actionPromise,
5267
+ new Promise((_, reject) => {
5268
+ timeoutTimer = setTimeout(
5269
+ () => reject(
5270
+ new Error("\u5207\u6362\u7A7A\u95F4\u8D85\u65F6\uFF1A\u672C\u5730\u5B58\u50A8\u6216\u670D\u52A1\u7AEF\u672A\u5728\u65F6\u9650\u5185\u8FD4\u56DE")
5271
+ ),
5272
+ SPACE_SWITCH_TIMEOUT_MS
5273
+ );
5274
+ })
5275
+ ]);
5259
5276
  setCurrentSpaceBoth(payload.spaceId, payload.spaceData);
5260
5277
  setMembershipLoaded();
5261
5278
  setCollapsedCategories(
@@ -5268,6 +5285,8 @@ var changeSpace = createAsyncThunk(
5268
5285
  setCurrentSpaceBoth(null, null);
5269
5286
  setCollapsedCategories({}, null);
5270
5287
  throw error;
5288
+ } finally {
5289
+ if (timeoutTimer) clearTimeout(timeoutTimer);
5271
5290
  }
5272
5291
  }
5273
5292
  );
@@ -18571,7 +18590,7 @@ async function updateDocFunc(args, thunkApi) {
18571
18590
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18572
18591
  };
18573
18592
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18574
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-LVMUSECS.js");
18593
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-EPAZ4HLD.js");
18575
18594
  if (getDocState().pageKey === id) {
18576
18595
  applyExternalDocUpdate({
18577
18596
  slateData: finalSlateData,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-FEDJHD5X.js";
6
+ } from "./chunk-5DIFZFYF.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-CTPFBJAF.js";
9
+ } from "./chunk-YHNZZIAH.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
12
  } from "./chunk-5HAPEKNH.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-5EFNSNAV.js";
11
+ } from "./chunk-YARN6MCX.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
521
521
  if (!executionInput) {
522
522
  throw new Error(`ToolRun ${id} has no input to execute with.`);
523
523
  }
524
- const { findToolExecutor } = await import("./tools-626VXEY7.js");
524
+ const { findToolExecutor } = await import("./tools-2DZDJWHZ.js");
525
525
  const { executor } = findToolExecutor(run.toolName);
526
526
  toolRunStarted({
527
527
  id: run.id,
@@ -545,7 +545,7 @@ var executeToolRun = createAsyncThunk(
545
545
  const latestState = thunkApi.getState();
546
546
  const userId = selectIdentityUserId(latestState);
547
547
  if (userId) {
548
- const { fetchUserSpaceMemberships } = await import("./memberThunks-ZAE52VIP.js");
548
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-QWAAGQBS.js");
549
549
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
550
550
  }
551
551
  }
@@ -7,7 +7,7 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-YE6A72XL.js";
10
+ } from "./chunk-63JHZKGZ.js";
11
11
  import {
12
12
  UNCATEGORIZED_ID,
13
13
  addContentAction,
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
347
347
  const overrides = {};
348
348
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
349
349
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
350
- const { _executeModel } = await import("./_executeModel-WQ2D4ZRH.js");
350
+ const { _executeModel } = await import("./_executeModel-WQ7BV3G7.js");
351
351
  return _executeModel(
352
352
  {
353
353
  isStreaming: args.isStreaming ?? false,
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
368
368
  * - 循环直到无工具调用或触发其他运行时停止条件
369
369
  */
370
370
  runAgent: create.asyncThunk(async (args, thunkApi) => {
371
- const { runAgentClientLoop } = await import("./runAgentClientLoop-DCV4BD2W.js");
371
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-LV2HYQPH.js");
372
372
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
373
373
  {
374
374
  agentKey: args.agentKey,
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
384
384
  * 聊天轮次流式 Agent 调用
385
385
  */
386
386
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
387
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-NKFKMFQ2.js");
387
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-ZCHIQR35.js");
388
388
  return streamAgentChatTurnHandler(args, thunkApi);
389
389
  }),
390
390
  /**
@@ -111,7 +111,7 @@ function createDaemonShortcutCommand(path, description, command) {
111
111
  // packages/cli/agentInternalCommandEntries.ts
112
112
  function getAgentInternalCommandEntries() {
113
113
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
114
- const { runAgentRunCommand } = await import("./agentRunCommand-75VVJTNU.js");
114
+ const { runAgentRunCommand } = await import("./agentRunCommand-7MFVUHWX.js");
115
115
  return runAgentRunCommand(args, {
116
116
  env: ctx.env,
117
117
  scriptDir: ctx.scriptDir,
@@ -127,7 +127,7 @@ function getAgentInternalCommandEntries() {
127
127
  return runAgentListCommand(args, deps);
128
128
  }),
129
129
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
130
- const { runAgentCreateCommand } = await import("./agentRecordCommands-KGRPIJN5.js");
130
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-VK3NEK5G.js");
131
131
  return runAgentCreateCommand(args, deps);
132
132
  }),
133
133
  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) => {
@@ -143,7 +143,7 @@ function getAgentInternalCommandEntries() {
143
143
  return runAgentPullCommand(args, deps);
144
144
  }),
145
145
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
146
- const { runAgentReadCommand } = await import("./agentRecordCommands-KGRPIJN5.js");
146
+ const { runAgentReadCommand } = await import("./agentRecordCommands-VK3NEK5G.js");
147
147
  return runAgentReadCommand(args, deps);
148
148
  }),
149
149
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -172,31 +172,31 @@ function getAgentInternalCommandEntries() {
172
172
  return runSetupOfflineMarxistsAgentCommand(args, deps);
173
173
  }),
174
174
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
175
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-KGRPIJN5.js");
175
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-VK3NEK5G.js");
176
176
  return runAgentUpdateCommand(args, deps);
177
177
  }),
178
178
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
179
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-PTG35KER.js");
179
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-CYPIYPOK.js");
180
180
  return runAgentEmailProvisionCommand(args, deps);
181
181
  }),
182
182
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
183
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-PTG35KER.js");
183
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-CYPIYPOK.js");
184
184
  return runAgentEmailBindCommand(args, deps);
185
185
  }),
186
186
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
187
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-PTG35KER.js");
187
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-CYPIYPOK.js");
188
188
  return runAgentEmailTransferCommand(args, deps);
189
189
  }),
190
190
  createEnvCommand(
191
191
  ["agent", "email", "create-and-provision"],
192
192
  "Create an agent and provision its controlled inbox",
193
193
  async (args, deps) => {
194
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-PTG35KER.js");
194
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-CYPIYPOK.js");
195
195
  return runAgentEmailCreateAndProvisionCommand(args, deps);
196
196
  }
197
197
  ),
198
198
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
199
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-TTCVC74A.js");
199
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-4DK6X4S4.js");
200
200
  return runAgentDeleteCommand(args, deps);
201
201
  }),
202
202
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -216,15 +216,15 @@ function getAgentInternalCommandEntries() {
216
216
  return runAgentRevokeGrantCommand(args, deps);
217
217
  }),
218
218
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
219
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-ATOZK3R5.js");
219
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-7VTOWHHD.js");
220
220
  return runAgentBindCurrentCommand(args, deps);
221
221
  }),
222
222
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
223
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-ATOZK3R5.js");
223
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-7VTOWHHD.js");
224
224
  return runAgentSmokeCurrentCommand(args, deps);
225
225
  }),
226
226
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
227
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-ATOZK3R5.js");
227
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-7VTOWHHD.js");
228
228
  return runAgentRuntimeDoctorCommand(args, deps);
229
229
  }),
230
230
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -547,15 +547,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
547
547
  return runWhoamiCommand({ args, env: ctx.env });
548
548
  }),
549
549
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
550
- const { runMachineConnectCommand } = await import("./machineCommands-OTXFRTDA.js");
550
+ const { runMachineConnectCommand } = await import("./machineCommands-O6RDJGLV.js");
551
551
  return runMachineConnectCommand(args, deps);
552
552
  }),
553
553
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
554
- const { runMachineConnectCommand } = await import("./machineCommands-OTXFRTDA.js");
554
+ const { runMachineConnectCommand } = await import("./machineCommands-O6RDJGLV.js");
555
555
  return runMachineConnectCommand(args, deps);
556
556
  }),
557
557
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
558
- const { runMachineStatusCommand } = await import("./machineCommands-OTXFRTDA.js");
558
+ const { runMachineStatusCommand } = await import("./machineCommands-O6RDJGLV.js");
559
559
  return runMachineStatusCommand(args, deps);
560
560
  }),
561
561
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -8,13 +8,13 @@ import {
8
8
  updateContentPinned,
9
9
  updateContentTitle,
10
10
  uploadAndAddFileToSpace
11
- } from "./chunk-5EFNSNAV.js";
11
+ } from "./chunk-YARN6MCX.js";
12
12
  import "./chunk-5XBUWM6I.js";
13
- import "./chunk-YE6A72XL.js";
13
+ import "./chunk-63JHZKGZ.js";
14
14
  import "./chunk-TZXPT53C.js";
15
15
  import "./chunk-LEC5ALIN.js";
16
16
  import "./chunk-523DITKR.js";
17
- import "./chunk-CTPFBJAF.js";
17
+ import "./chunk-YHNZZIAH.js";
18
18
  import "./chunk-BYXBJQAS.js";
19
19
  import "./chunk-QYPE3TS3.js";
20
20
  import "./chunk-A5BLRE3G.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-5EFNSNAV.js";
3
+ } from "./chunk-YARN6MCX.js";
4
4
  import "./chunk-5XBUWM6I.js";
5
- import "./chunk-YE6A72XL.js";
5
+ import "./chunk-63JHZKGZ.js";
6
6
  import "./chunk-TZXPT53C.js";
7
7
  import "./chunk-LEC5ALIN.js";
8
8
  import "./chunk-523DITKR.js";
9
- import "./chunk-CTPFBJAF.js";
9
+ import "./chunk-YHNZZIAH.js";
10
10
  import "./chunk-BYXBJQAS.js";
11
11
  import "./chunk-QYPE3TS3.js";
12
12
  import "./chunk-A5BLRE3G.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createDialogAction,
3
3
  isLocalOwnerDialogAgents
4
- } from "./chunk-2E5M3JVS.js";
5
- import "./chunk-5EFNSNAV.js";
4
+ } from "./chunk-CGKSIL4D.js";
5
+ import "./chunk-YARN6MCX.js";
6
6
  import "./chunk-5XBUWM6I.js";
7
- import "./chunk-YE6A72XL.js";
7
+ import "./chunk-63JHZKGZ.js";
8
8
  import "./chunk-TZXPT53C.js";
9
9
  import "./chunk-LEC5ALIN.js";
10
10
  import "./chunk-523DITKR.js";
11
- import "./chunk-CTPFBJAF.js";
11
+ import "./chunk-YHNZZIAH.js";
12
12
  import "./chunk-BYXBJQAS.js";
13
13
  import "./chunk-QYPE3TS3.js";
14
14
  import "./chunk-A5BLRE3G.js";
@@ -13,17 +13,17 @@ import {
13
13
  } from "./chunk-63W5N6P3.js";
14
14
  import {
15
15
  addContentToSpace
16
- } from "./chunk-5EFNSNAV.js";
16
+ } from "./chunk-YARN6MCX.js";
17
17
  import {
18
18
  getCurrentSpaceId
19
19
  } from "./chunk-5XBUWM6I.js";
20
20
  import {
21
21
  runtime_default
22
- } from "./chunk-YE6A72XL.js";
22
+ } from "./chunk-63JHZKGZ.js";
23
23
  import "./chunk-TZXPT53C.js";
24
24
  import "./chunk-LEC5ALIN.js";
25
25
  import "./chunk-523DITKR.js";
26
- import "./chunk-CTPFBJAF.js";
26
+ import "./chunk-YHNZZIAH.js";
27
27
  import "./chunk-BYXBJQAS.js";
28
28
  import "./chunk-QYPE3TS3.js";
29
29
  import "./chunk-A5BLRE3G.js";
@@ -20,11 +20,11 @@ import {
20
20
  switchDialogAgent,
21
21
  updateDialogTitle,
22
22
  updateTokens
23
- } from "./chunk-YE6A72XL.js";
23
+ } from "./chunk-63JHZKGZ.js";
24
24
  import "./chunk-TZXPT53C.js";
25
25
  import "./chunk-LEC5ALIN.js";
26
26
  import "./chunk-523DITKR.js";
27
- import "./chunk-CTPFBJAF.js";
27
+ import "./chunk-YHNZZIAH.js";
28
28
  import "./chunk-BYXBJQAS.js";
29
29
  import "./chunk-QYPE3TS3.js";
30
30
  import "./chunk-A5BLRE3G.js";
@@ -25,7 +25,7 @@ import {
25
25
  updateTitleDoc,
26
26
  useDocField,
27
27
  useDocState
28
- } from "./chunk-DS5DAOIY.js";
28
+ } from "./chunk-EVF6F3QU.js";
29
29
  import "./chunk-ZRAU6T47.js";
30
30
  import "./chunk-4LCOCOR5.js";
31
31
  import "./chunk-YDH3FDFQ.js";
@@ -7,7 +7,7 @@ import {
7
7
  mergeAgentToolsWithRuntime,
8
8
  projectDesktopToolUiContent,
9
9
  resolveTurnToolContext
10
- } from "./chunk-2KBNF477.js";
10
+ } from "./chunk-IOIPWEL4.js";
11
11
  import "./chunk-INFHX73M.js";
12
12
  import {
13
13
  CONTEXT_OVERFLOW_ACTIONS,
@@ -15,22 +15,22 @@ import {
15
15
  extractErrorDiagnostics,
16
16
  isContextOverflowText,
17
17
  performServerProxyFetchWithRetry
18
- } from "./chunk-FEDJHD5X.js";
18
+ } from "./chunk-5DIFZFYF.js";
19
19
  import {
20
20
  createSSEParser,
21
21
  resolveAgentRequiredPackIds,
22
22
  waitForAbortableDelay
23
- } from "./chunk-3NPXGNSK.js";
23
+ } from "./chunk-WVGVGT44.js";
24
24
  import "./chunk-NF64D32W.js";
25
25
  import "./chunk-3L2WKC3W.js";
26
26
  import "./chunk-VYNMQ6HW.js";
27
- import "./chunk-DS5DAOIY.js";
27
+ import "./chunk-EVF6F3QU.js";
28
28
  import "./chunk-MYOH447Z.js";
29
29
  import "./chunk-YIRADHSY.js";
30
30
  import "./chunk-AGIM7IMJ.js";
31
31
  import "./chunk-ZBCBFOWC.js";
32
32
  import "./chunk-VIDPVFP3.js";
33
- import "./chunk-5EFNSNAV.js";
33
+ import "./chunk-YARN6MCX.js";
34
34
  import "./chunk-5XBUWM6I.js";
35
35
  import {
36
36
  clearForegroundTurnSettledVisible,
@@ -48,13 +48,13 @@ import {
48
48
  setStreamingMessageId,
49
49
  toolResultNeedsUserConfirmation,
50
50
  updateToolMessage
51
- } from "./chunk-YE6A72XL.js";
51
+ } from "./chunk-63JHZKGZ.js";
52
52
  import "./chunk-TZXPT53C.js";
53
53
  import "./chunk-LEC5ALIN.js";
54
54
  import "./chunk-523DITKR.js";
55
55
  import {
56
56
  streamAgentChatTurn
57
- } from "./chunk-CTPFBJAF.js";
57
+ } from "./chunk-YHNZZIAH.js";
58
58
  import "./chunk-BYXBJQAS.js";
59
59
  import "./chunk-QYPE3TS3.js";
60
60
  import "./chunk-A5BLRE3G.js";
package/index.js CHANGED
@@ -106,9 +106,9 @@ async function runScript(script, forwardedArgs, env) {
106
106
  return proc.exited;
107
107
  }
108
108
  async function launchTuiWorkspace(args2) {
109
- const { startTuiWorkspace } = await import("./readlineWorkspace-CEX5TXGM.js");
109
+ const { startTuiWorkspace } = await import("./readlineWorkspace-I5XZFI2E.js");
110
110
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-FSOADMXK.js");
111
- const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-HRAB7P5E.js");
111
+ const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-LVPGHOJK.js");
112
112
  setCliAutoCompactionSummaryFallback(
113
113
  createTuiSummaryLlmCaller(args2.env, { timeoutMs: 3e4 })
114
114
  );
@@ -120,7 +120,7 @@ async function launchTuiWorkspace(args2) {
120
120
  });
121
121
  }
122
122
  async function main() {
123
- const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-4JHVRMW7.js");
123
+ const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-RM2Z2DVF.js");
124
124
  const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KN3N2BLF.js");
125
125
  const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-2Y7BALTO.js");
126
126
  const runtimeEnv = {