nolo-cli 0.263.0-alpha.1 → 0.264.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 (58) hide show
  1. package/{_executeModel-GZEGNZDC.js → _executeModel-YQNZNR2Y.js} +15 -15
  2. package/{agentDeleteCommand-PYQFS2IO.js → agentDeleteCommand-S5FVPYKT.js} +13 -13
  3. package/{agentEmailCommands-MSPYHNQA.js → agentEmailCommands-ZEFMGVKM.js} +14 -14
  4. package/{agentMachineCommands-HHH7DR26.js → agentMachineCommands-COJD2KPZ.js} +2 -2
  5. package/{agentRecordCommands-ANOOR7DX.js → agentRecordCommands-JZ35AC5A.js} +14 -14
  6. package/{agentRun-P6GEVWAT.js → agentRun-UIO43TUG.js} +14 -14
  7. package/{agentRunCommand-SF4QKUF2.js → agentRunCommand-ATLKKD6O.js} +15 -15
  8. package/{agentSlice-NWSWCYRW.js → agentSlice-HHNKNNYM.js} +1 -1
  9. package/{chunk-6S4VPBSW.js → chunk-4RUQ2PFX.js} +4 -4
  10. package/{chunk-L4KZCAIJ.js → chunk-4UNN45DS.js} +5 -5
  11. package/{chunk-KUZSTAE3.js → chunk-7422ZLGL.js} +7 -7
  12. package/{chunk-KTK64ZZN.js → chunk-7E6YXSFZ.js} +2 -2
  13. package/{chunk-JUMQJSQF.js → chunk-DALXH7BG.js} +211 -177
  14. package/{chunk-OV47NSYQ.js → chunk-DBCWXGOC.js} +8 -8
  15. package/{chunk-DPFHC2DK.js → chunk-DBEOW57U.js} +2 -2
  16. package/{chunk-YSYTCIFN.js → chunk-EBH4RFJ6.js} +216 -33
  17. package/{chunk-5MGXBQ3H.js → chunk-EODBQPRM.js} +2 -2
  18. package/{chunk-BUO76CEE.js → chunk-HXEO5DNV.js} +2 -2
  19. package/chunk-JDMWYVUF.js +449 -0
  20. package/{chunk-WWE3TYSA.js → chunk-LTQ6ECCF.js} +3 -3
  21. package/{chunk-ZMOKHBV5.js → chunk-LYPJYBE5.js} +2 -2
  22. package/{chunk-OLJSB44A.js → chunk-MALPQFGT.js} +6 -6
  23. package/{chunk-QAUBNGF2.js → chunk-OKPOQGQJ.js} +3 -3
  24. package/{chunk-6KA4XDEI.js → chunk-PDSXYHNI.js} +2 -2
  25. package/{chunk-QHSF7SPP.js → chunk-QAU6KM2U.js} +1 -1
  26. package/{chunk-ZZOXGB2Z.js → chunk-QAW6BEWQ.js} +6 -6
  27. package/{chunk-Z7TB2J74.js → chunk-T3MWVUBE.js} +1 -1
  28. package/{chunk-JTRU7WEG.js → chunk-TGVVE5BA.js} +177 -44
  29. package/{chunk-PJVJIDTH.js → chunk-TKLBBR7P.js} +3 -3
  30. package/{chunk-CQNGHKSG.js → chunk-U7OULUMF.js} +3 -3
  31. package/{chunk-WJ5IXN23.js → chunk-ZCMAKAZM.js} +1 -1
  32. package/{chunk-XCPC4RXE.js → chunk-ZSZBHRLP.js} +4 -4
  33. package/{cliExecutor-Z62UBJ5S.js → cliExecutor-N3445G2Z.js} +1 -1
  34. package/{commandRegistry-ZEZY7MPW.js → commandRegistry-ENNFT77C.js} +18 -18
  35. package/{contentThunks-N3DDKRNJ.js → contentThunks-ERA42OXW.js} +4 -4
  36. package/{createAgentAutomationAction-W3B6KOIW.js → createAgentAutomationAction-DMD2VDPI.js} +4 -4
  37. package/{createDialogAction-V6WA7USR.js → createDialogAction-3SPOJQAK.js} +5 -5
  38. package/{createPageAction-P2HDHBCU.js → createPageAction-AVXUMZVT.js} +5 -5
  39. package/{deleteDbKey-TDXLWHVF.js → deleteDbKey-KV6MYBAI.js} +5 -5
  40. package/{dialogSlice-TEV6XXOO.js → dialogSlice-Q7H2YVNO.js} +2 -2
  41. package/{docStore-OVBEONC7.js → docStore-GWPFDV6Y.js} +1 -1
  42. package/{handleSendMessageAction-5GZ44SKK.js → handleSendMessageAction-FHGUFT2X.js} +9 -9
  43. package/{hostCredentialCreate-WOLFFVCM.js → hostCredentialCreate-2VEYBXJV.js} +14 -14
  44. package/index.js +3 -3
  45. package/{localAutomationCommands-L333FJPR.js → localAutomationCommands-XSK7SM7I.js} +1 -1
  46. package/{localAutomationRuntime-CIHGJBSC.js → localAutomationRuntime-5WBO7HGQ.js} +1 -1
  47. package/{localRuntimeAdapter-6WNR7IYN.js → localRuntimeAdapter-Y6H6XRIH.js} +13 -13
  48. package/{machineCommands-CP7NCD6O.js → machineCommands-RVB5OG2X.js} +16 -16
  49. package/{machineWsRunDispatch-YIAY2LPK.js → machineWsRunDispatch-Y5SJGCEE.js} +14 -14
  50. package/{memberThunks-TD76IFGA.js → memberThunks-NEZRAW5K.js} +18 -175
  51. package/package.json +1 -1
  52. package/{projectArchive-KJRBIY3O.js → projectArchive-WE3VVPZ2.js} +5 -5
  53. package/{readlineWorkspace-2PLTEZDM.js → readlineWorkspace-ZH5FGDMI.js} +18 -18
  54. package/{runAgentClientLoop-IBWSCK2D.js → runAgentClientLoop-2SFASHDS.js} +13 -13
  55. package/{streamAgentChatTurn-JAAROGLD.js → streamAgentChatTurn-KOUWITHH.js} +15 -15
  56. package/{tools-TCOYT5DJ.js → tools-WN4AVSNS.js} +10 -10
  57. package/{updateDialogTitleAction-O3TRFRIH.js → updateDialogTitleAction-XOSLNRT3.js} +4 -4
  58. package/chunk-EHFDVQF5.js +0 -247
@@ -2,13 +2,17 @@ import {
2
2
  getAllMemberSpaces,
3
3
  getCurrentSpaceId,
4
4
  getCurrentSpaceIdRaw,
5
+ isRemoteAccountSpace,
6
+ mutateDbOps,
7
+ spItemKey,
8
+ syncLocalSpaceEntityCache,
5
9
  updateCurrentSpaceIfMatch
6
- } from "./chunk-EHFDVQF5.js";
10
+ } from "./chunk-JDMWYVUF.js";
7
11
  import {
8
12
  deleteDialog,
9
13
  runtime_default,
10
14
  toast
11
- } from "./chunk-OV47NSYQ.js";
15
+ } from "./chunk-DBCWXGOC.js";
12
16
  import {
13
17
  isSystemAdmin
14
18
  } from "./chunk-IB5AR52X.js";
@@ -1869,22 +1873,48 @@ var unlinkSpaceContentAction = async (input, thunkAPI) => {
1869
1873
  entitySpaceSync: "no-record"
1870
1874
  };
1871
1875
  if (spaceData.contents?.[contentKey]) {
1876
+ const state3 = getState();
1877
+ const trimmedOrigin = sourceServerOrigin?.trim();
1878
+ const apiOpts = trimmedOrigin ? { serverOrigin: trimmedOrigin } : void 0;
1872
1879
  let updatedSpaceData;
1873
- try {
1874
- updatedSpaceData = await dispatch(
1875
- patch({
1876
- dbKey: spaceKey,
1877
- changes: {
1878
- contents: { [contentKey]: null },
1879
- updatedAt: Date.now(),
1880
- ...localSpaceAuthorityPatchStamp(spaceData)
1881
- }
1882
- })
1883
- ).unwrap();
1884
- } catch (patchError) {
1885
- throw new Error(
1886
- `\u4ECE\u7A7A\u95F4\u79FB\u9664\u5F15\u7528\u5931\u8D25: ${patchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
1887
- );
1880
+ if (isRemoteAccountSpace(spaceData, state3, apiOpts)) {
1881
+ let effectiveUpdatedAt = Date.now();
1882
+ try {
1883
+ const res = await mutateDbOps(
1884
+ state3,
1885
+ [{ op: "tombstone", key: spItemKey(spaceId, contentKey) }],
1886
+ apiOpts
1887
+ );
1888
+ effectiveUpdatedAt = res?.applied?.[0]?.updatedAt ?? effectiveUpdatedAt;
1889
+ } catch (apiError) {
1890
+ throw new Error(
1891
+ `\u4ECE\u7A7A\u95F4\u79FB\u9664\u5F15\u7528\u5931\u8D25: ${apiError?.message || "\u672A\u77E5\u9519\u8BEF"}`
1892
+ );
1893
+ }
1894
+ const nextContents = { ...spaceData.contents ?? {} };
1895
+ delete nextContents[contentKey];
1896
+ updatedSpaceData = await syncLocalSpaceEntityCache(thunkAPI, spaceKey, {
1897
+ ...spaceData,
1898
+ contents: nextContents,
1899
+ updatedAt: effectiveUpdatedAt
1900
+ });
1901
+ } else {
1902
+ try {
1903
+ updatedSpaceData = await dispatch(
1904
+ patch({
1905
+ dbKey: spaceKey,
1906
+ changes: {
1907
+ contents: { [contentKey]: null },
1908
+ updatedAt: Date.now(),
1909
+ ...localSpaceAuthorityPatchStamp(spaceData)
1910
+ }
1911
+ })
1912
+ ).unwrap();
1913
+ } catch (patchError) {
1914
+ throw new Error(
1915
+ `\u4ECE\u7A7A\u95F4\u79FB\u9664\u5F15\u7528\u5931\u8D25: ${patchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
1916
+ );
1917
+ }
1888
1918
  }
1889
1919
  result.removed = true;
1890
1920
  result.updatedSpaceData = updatedSpaceData;
@@ -2200,17 +2230,56 @@ var updateContentTitleAction = async (input, thunkAPI) => {
2200
2230
  },
2201
2231
  updatedAt: now
2202
2232
  };
2233
+ const state3 = typeof thunkAPI?.getState === "function" ? thunkAPI.getState() : {};
2234
+ const trimmedOrigin = sourceServerOrigin?.trim();
2235
+ const apiOpts = trimmedOrigin ? { serverOrigin: trimmedOrigin } : void 0;
2203
2236
  let updatedSpaceData;
2204
- try {
2205
- updatedSpaceData = await dispatch(
2206
- patch({
2207
- dbKey: spaceKey,
2208
- changes,
2209
- preferredServerOrigin: sourceServerOrigin
2210
- })
2211
- ).unwrap();
2212
- } catch (patchError) {
2213
- throw new Error(`\u66F4\u65B0\u5185\u5BB9\u6807\u9898\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2237
+ if (isRemoteAccountSpace(spaceData, state3, apiOpts)) {
2238
+ const nowMs = Date.now();
2239
+ try {
2240
+ const res = await mutateDbOps(
2241
+ state3,
2242
+ [
2243
+ {
2244
+ op: "patch",
2245
+ key: spItemKey(spaceId, contentKey),
2246
+ value: {
2247
+ title: trimmedTitle,
2248
+ ...skillSummary !== void 0 ? { skillSummary } : {}
2249
+ }
2250
+ }
2251
+ ],
2252
+ apiOpts
2253
+ );
2254
+ const effectiveUpdatedAt = res?.applied?.[0]?.updatedAt ?? nowMs;
2255
+ updatedSpaceData = await syncLocalSpaceEntityCache(thunkAPI, spaceKey, {
2256
+ ...spaceData,
2257
+ contents: {
2258
+ ...spaceData.contents ?? {},
2259
+ [contentKey]: {
2260
+ ...spaceData.contents[contentKey],
2261
+ title: trimmedTitle,
2262
+ updatedAt: effectiveUpdatedAt,
2263
+ ...skillSummary !== void 0 ? { skillSummary } : {}
2264
+ }
2265
+ },
2266
+ updatedAt: effectiveUpdatedAt
2267
+ });
2268
+ } catch (apiError) {
2269
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u6807\u9898\u5931\u8D25: ${apiError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2270
+ }
2271
+ } else {
2272
+ try {
2273
+ updatedSpaceData = await dispatch(
2274
+ patch({
2275
+ dbKey: spaceKey,
2276
+ changes,
2277
+ preferredServerOrigin: sourceServerOrigin
2278
+ })
2279
+ ).unwrap();
2280
+ } catch (patchError) {
2281
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u6807\u9898\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2282
+ }
2214
2283
  }
2215
2284
  await patchIndividualContentRecord(
2216
2285
  dispatch,
@@ -2272,13 +2341,42 @@ var updateContentPinnedAction = async (input, thunkAPI) => {
2272
2341
  },
2273
2342
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
2274
2343
  };
2344
+ const state3 = typeof thunkAPI?.getState === "function" ? thunkAPI.getState() : {};
2345
+ const trimmedOrigin = sourceServerOrigin?.trim();
2346
+ const apiOpts = trimmedOrigin ? { serverOrigin: trimmedOrigin } : void 0;
2275
2347
  let updatedSpaceData;
2276
- try {
2277
- updatedSpaceData = await dispatch(
2278
- patch({ dbKey: spaceKey, changes, preferredServerOrigin: sourceServerOrigin })
2279
- ).unwrap();
2280
- } catch (patchError) {
2281
- throw new Error(`\u66F4\u65B0\u5185\u5BB9\u7F6E\u9876\u72B6\u6001\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2348
+ if (isRemoteAccountSpace(spaceData, state3, apiOpts)) {
2349
+ const nowMs = Date.now();
2350
+ try {
2351
+ const res = await mutateDbOps(
2352
+ state3,
2353
+ [{ op: "patch", key: spItemKey(spaceId, contentKey), value: { pinned } }],
2354
+ apiOpts
2355
+ );
2356
+ const effectiveUpdatedAt = res?.applied?.[0]?.updatedAt ?? nowMs;
2357
+ updatedSpaceData = await syncLocalSpaceEntityCache(thunkAPI, spaceKey, {
2358
+ ...spaceData,
2359
+ contents: {
2360
+ ...spaceData.contents ?? {},
2361
+ [contentKey]: {
2362
+ ...spaceData.contents[contentKey],
2363
+ pinned,
2364
+ updatedAt: effectiveUpdatedAt
2365
+ }
2366
+ },
2367
+ updatedAt: effectiveUpdatedAt
2368
+ });
2369
+ } catch (apiError) {
2370
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u7F6E\u9876\u72B6\u6001\u5931\u8D25: ${apiError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2371
+ }
2372
+ } else {
2373
+ try {
2374
+ updatedSpaceData = await dispatch(
2375
+ patch({ dbKey: spaceKey, changes, preferredServerOrigin: sourceServerOrigin })
2376
+ ).unwrap();
2377
+ } catch (patchError) {
2378
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u7F6E\u9876\u72B6\u6001\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2379
+ }
2282
2380
  }
2283
2381
  await patchIndividualContentRecord(
2284
2382
  dispatch,
@@ -2375,17 +2473,52 @@ var updateContentCategoryAction = async (input, thunkAPI) => {
2375
2473
  return { spaceId, updatedSpaceData: spaceData };
2376
2474
  }
2377
2475
  let updatedSpaceData;
2378
- try {
2379
- updatedSpaceData = await dispatch(
2380
- patch({ dbKey: spaceKey, changes })
2381
- // 使用非空断言,因为已检查
2382
- ).unwrap();
2383
- } catch (patchError) {
2384
- console.error(
2385
- `[updateContentCategoryAction] Failed to patch space data for key ${spaceKey}:`,
2386
- patchError
2387
- );
2388
- throw new Error(`\u66F4\u65B0\u5185\u5BB9\u5206\u7C7B\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2476
+ if (isRemoteAccountSpace(spaceData, state3)) {
2477
+ try {
2478
+ const res = await mutateDbOps(state3, [
2479
+ {
2480
+ op: "patch",
2481
+ key: spItemKey(spaceId, contentKey),
2482
+ value: { categoryId: categoryIdValueForPatch }
2483
+ }
2484
+ ]);
2485
+ const effectiveUpdatedAt = res?.applied?.[0]?.updatedAt ?? now;
2486
+ const nextEntry = {
2487
+ ...currentContent,
2488
+ updatedAt: effectiveUpdatedAt
2489
+ };
2490
+ if (categoryIdValueForPatch === null) {
2491
+ delete nextEntry.categoryId;
2492
+ } else {
2493
+ nextEntry.categoryId = categoryIdValueForPatch;
2494
+ }
2495
+ updatedSpaceData = await syncLocalSpaceEntityCache(thunkAPI, spaceKey, {
2496
+ ...spaceData,
2497
+ contents: {
2498
+ ...spaceData.contents ?? {},
2499
+ [contentKey]: nextEntry
2500
+ },
2501
+ updatedAt: effectiveUpdatedAt
2502
+ });
2503
+ } catch (apiError) {
2504
+ console.error(
2505
+ `[updateContentCategoryAction] Failed to mutate item via db/mutate for ${spaceKey}:`,
2506
+ apiError
2507
+ );
2508
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u5206\u7C7B\u5931\u8D25: ${apiError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2509
+ }
2510
+ } else {
2511
+ try {
2512
+ updatedSpaceData = await dispatch(
2513
+ patch({ dbKey: spaceKey, changes })
2514
+ ).unwrap();
2515
+ } catch (patchError) {
2516
+ console.error(
2517
+ `[updateContentCategoryAction] Failed to patch space data for key ${spaceKey}:`,
2518
+ patchError
2519
+ );
2520
+ throw new Error(`\u66F4\u65B0\u5185\u5BB9\u5206\u7C7B\u5931\u8D25: ${patchError.message || "\u672A\u77E5\u9519\u8BEF"}`);
2521
+ }
2389
2522
  }
2390
2523
  return { spaceId, updatedSpaceData };
2391
2524
  };
@@ -538,7 +538,7 @@ var runLlm = agentOperation("runLlm", async (args, thunkApi) => {
538
538
  const overrides = {};
539
539
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
540
540
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
541
- const { _executeModel } = await import("./_executeModel-GZEGNZDC.js");
541
+ const { _executeModel } = await import("./_executeModel-YQNZNR2Y.js");
542
542
  return _executeModel(
543
543
  {
544
544
  isStreaming: args.isStreaming ?? false,
@@ -551,7 +551,7 @@ var runLlm = agentOperation("runLlm", async (args, thunkApi) => {
551
551
  );
552
552
  });
553
553
  var runAgent = agentOperation("runAgent", async (args, thunkApi) => {
554
- const { runAgentClientLoop } = await import("./runAgentClientLoop-IBWSCK2D.js");
554
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-2SFASHDS.js");
555
555
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
556
556
  {
557
557
  agentKey: args.agentKey,
@@ -564,7 +564,7 @@ var runAgent = agentOperation("runAgent", async (args, thunkApi) => {
564
564
  return loopContent;
565
565
  });
566
566
  var streamAgentChatTurn = agentOperation("streamAgentChatTurn", async (args, thunkApi) => {
567
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-JAAROGLD.js");
567
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-KOUWITHH.js");
568
568
  return streamAgentChatTurnHandler(args, thunkApi);
569
569
  });
570
570
  var createAgent = agentOperation(
@@ -14,13 +14,13 @@ import {
14
14
  import {
15
15
  addContentToSpace,
16
16
  resolveCreationSpaceId
17
- } from "./chunk-JTRU7WEG.js";
17
+ } from "./chunk-TGVVE5BA.js";
18
18
  import {
19
19
  getCurrentSpaceId
20
- } from "./chunk-EHFDVQF5.js";
20
+ } from "./chunk-JDMWYVUF.js";
21
21
  import {
22
22
  runtime_default
23
- } from "./chunk-OV47NSYQ.js";
23
+ } from "./chunk-DBCWXGOC.js";
24
24
  import {
25
25
  write
26
26
  } from "./chunk-6NYQHXMV.js";
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-EHFDVQF5.js";
5
+ } from "./chunk-JDMWYVUF.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-VF4K2QE6.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-JTRU7WEG.js";
9
+ } from "./chunk-TGVVE5BA.js";
10
10
  import {
11
11
  resolveDialogRuntimeAgentKey
12
- } from "./chunk-OV47NSYQ.js";
12
+ } from "./chunk-DBCWXGOC.js";
13
13
  import {
14
14
  createActionAsyncThunk
15
15
  } from "./chunk-KZO2MTVM.js";
@@ -1632,7 +1632,7 @@ var executeToolRun = createActionAsyncThunk(
1632
1632
  if (!executionInput) {
1633
1633
  throw new Error(`ToolRun ${id} has no input to execute with.`);
1634
1634
  }
1635
- const { findToolExecutor } = await import("./tools-TCOYT5DJ.js");
1635
+ const { findToolExecutor } = await import("./tools-WN4AVSNS.js");
1636
1636
  const { executor } = findToolExecutor(run.toolName);
1637
1637
  toolRunStarted({
1638
1638
  id: run.id,
@@ -1656,7 +1656,7 @@ var executeToolRun = createActionAsyncThunk(
1656
1656
  const latestState = thunkApi.getState();
1657
1657
  const userId = selectIdentityUserId(latestState);
1658
1658
  if (userId) {
1659
- const { fetchUserSpaceMemberships } = await import("./memberThunks-TD76IFGA.js");
1659
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-NEZRAW5K.js");
1660
1660
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
1661
1661
  }
1662
1662
  }
@@ -15,7 +15,7 @@ import {
15
15
  resolveGeminiCommand,
16
16
  startCliSession,
17
17
  terminateCliProcessGroupEscalating
18
- } from "./chunk-JUMQJSQF.js";
18
+ } from "./chunk-DALXH7BG.js";
19
19
  import {
20
20
  buildCliPrompt
21
21
  } from "./chunk-ATNTHIZI.js";
@@ -108,7 +108,7 @@ function createDaemonShortcutCommand(path, description, command) {
108
108
  // packages/cli/agentInternalCommandEntries.ts
109
109
  function getAgentInternalCommandEntries() {
110
110
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
111
- const { runAgentRunCommand } = await import("./agentRunCommand-SF4QKUF2.js");
111
+ const { runAgentRunCommand } = await import("./agentRunCommand-ATLKKD6O.js");
112
112
  return runAgentRunCommand(args, {
113
113
  env: ctx.env,
114
114
  scriptDir: ctx.scriptDir,
@@ -124,7 +124,7 @@ function getAgentInternalCommandEntries() {
124
124
  return runAgentListCommand(args, deps);
125
125
  }),
126
126
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
127
- const { runAgentCreateCommand } = await import("./agentRecordCommands-ANOOR7DX.js");
127
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-JZ35AC5A.js");
128
128
  return runAgentCreateCommand(args, deps);
129
129
  }),
130
130
  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) => {
@@ -140,7 +140,7 @@ function getAgentInternalCommandEntries() {
140
140
  return runAgentPullCommand(args, deps);
141
141
  }),
142
142
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
143
- const { runAgentReadCommand } = await import("./agentRecordCommands-ANOOR7DX.js");
143
+ const { runAgentReadCommand } = await import("./agentRecordCommands-JZ35AC5A.js");
144
144
  return runAgentReadCommand(args, deps);
145
145
  }),
146
146
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -185,31 +185,31 @@ function getAgentInternalCommandEntries() {
185
185
  return runSetupEbookDownloaderAgentCommand(args, deps);
186
186
  }),
187
187
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
188
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-ANOOR7DX.js");
188
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-JZ35AC5A.js");
189
189
  return runAgentUpdateCommand(args, deps);
190
190
  }),
191
191
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
192
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-MSPYHNQA.js");
192
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-ZEFMGVKM.js");
193
193
  return runAgentEmailProvisionCommand(args, deps);
194
194
  }),
195
195
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
196
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-MSPYHNQA.js");
196
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-ZEFMGVKM.js");
197
197
  return runAgentEmailBindCommand(args, deps);
198
198
  }),
199
199
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
200
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-MSPYHNQA.js");
200
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-ZEFMGVKM.js");
201
201
  return runAgentEmailTransferCommand(args, deps);
202
202
  }),
203
203
  createEnvCommand(
204
204
  ["agent", "email", "create-and-provision"],
205
205
  "Create an agent and provision its controlled inbox",
206
206
  async (args, deps) => {
207
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-MSPYHNQA.js");
207
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-ZEFMGVKM.js");
208
208
  return runAgentEmailCreateAndProvisionCommand(args, deps);
209
209
  }
210
210
  ),
211
211
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
212
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-PYQFS2IO.js");
212
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-S5FVPYKT.js");
213
213
  return runAgentDeleteCommand(args, deps);
214
214
  }),
215
215
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -225,15 +225,15 @@ function getAgentInternalCommandEntries() {
225
225
  return runAgentRevokeGrantCommand(args, deps);
226
226
  }),
227
227
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
228
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-HHH7DR26.js");
228
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-COJD2KPZ.js");
229
229
  return runAgentBindCurrentCommand(args, deps);
230
230
  }),
231
231
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
232
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-HHH7DR26.js");
232
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-COJD2KPZ.js");
233
233
  return runAgentSmokeCurrentCommand(args, deps);
234
234
  }),
235
235
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
236
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-HHH7DR26.js");
236
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-COJD2KPZ.js");
237
237
  return runAgentRuntimeDoctorCommand(args, deps);
238
238
  }),
239
239
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -604,7 +604,7 @@ function getSystemInternalCommandEntries(renderHelpText2) {
604
604
  "run-now": "Run one local automation immediately",
605
605
  tick: "Scan for due local automations once"
606
606
  }).map(([action, description]) => createContextCommand(["automation", "local", action], description, async (args, ctx) => {
607
- const { runLocalAutomationCommand } = await import("./localAutomationCommands-L333FJPR.js");
607
+ const { runLocalAutomationCommand } = await import("./localAutomationCommands-XSK7SM7I.js");
608
608
  return runLocalAutomationCommand(action, args, ctx.env, { scriptDir: ctx.scriptDir });
609
609
  })),
610
610
  ...Object.entries({
@@ -667,17 +667,17 @@ function getSystemInternalCommandEntries(renderHelpText2) {
667
667
  return runWhoamiCommand({ args, env: ctx.env });
668
668
  }),
669
669
  createEntrypointEnvCommand(["connect"], "Hold a connector websocket for this machine", async (args, deps) => {
670
- const { runMachineConnectCommand } = await import("./machineCommands-CP7NCD6O.js");
671
- const { withLocalAutomationShutdown } = await import("./localAutomationRuntime-CIHGJBSC.js");
670
+ const { runMachineConnectCommand } = await import("./machineCommands-RVB5OG2X.js");
671
+ const { withLocalAutomationShutdown } = await import("./localAutomationRuntime-5WBO7HGQ.js");
672
672
  return withLocalAutomationShutdown((signal) => runMachineConnectCommand(args, { ...deps, signal }));
673
673
  }),
674
674
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
675
- const { runMachineConnectCommand } = await import("./machineCommands-CP7NCD6O.js");
676
- const { withLocalAutomationShutdown } = await import("./localAutomationRuntime-CIHGJBSC.js");
675
+ const { runMachineConnectCommand } = await import("./machineCommands-RVB5OG2X.js");
676
+ const { withLocalAutomationShutdown } = await import("./localAutomationRuntime-5WBO7HGQ.js");
677
677
  return withLocalAutomationShutdown((signal) => runMachineConnectCommand(args, { ...deps, signal }));
678
678
  }),
679
679
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
680
- const { runMachineStatusCommand } = await import("./machineCommands-CP7NCD6O.js");
680
+ const { runMachineStatusCommand } = await import("./machineCommands-RVB5OG2X.js");
681
681
  return runMachineStatusCommand(args, deps);
682
682
  }),
683
683
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -8,14 +8,14 @@ import {
8
8
  updateContentPinned,
9
9
  updateContentTitle,
10
10
  uploadAndAddFileToSpace
11
- } from "./chunk-JTRU7WEG.js";
12
- import "./chunk-EHFDVQF5.js";
13
- import "./chunk-OV47NSYQ.js";
11
+ } from "./chunk-TGVVE5BA.js";
12
+ import "./chunk-JDMWYVUF.js";
13
+ import "./chunk-DBCWXGOC.js";
14
14
  import "./chunk-KDDXC2IH.js";
15
15
  import "./chunk-TZXPT53C.js";
16
16
  import "./chunk-6QDYSCPW.js";
17
17
  import "./chunk-FGXG6OLW.js";
18
- import "./chunk-PJVJIDTH.js";
18
+ import "./chunk-TKLBBR7P.js";
19
19
  import "./chunk-IB5AR52X.js";
20
20
  import "./chunk-BYXBJQAS.js";
21
21
  import "./chunk-KZO2MTVM.js";
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-QKM55LP2.js";
4
4
  import {
5
5
  addContentToSpace
6
- } from "./chunk-JTRU7WEG.js";
7
- import "./chunk-EHFDVQF5.js";
8
- import "./chunk-OV47NSYQ.js";
6
+ } from "./chunk-TGVVE5BA.js";
7
+ import "./chunk-JDMWYVUF.js";
8
+ import "./chunk-DBCWXGOC.js";
9
9
  import "./chunk-KDDXC2IH.js";
10
10
  import "./chunk-TZXPT53C.js";
11
11
  import "./chunk-6QDYSCPW.js";
12
12
  import "./chunk-FGXG6OLW.js";
13
- import "./chunk-PJVJIDTH.js";
13
+ import "./chunk-TKLBBR7P.js";
14
14
  import "./chunk-IB5AR52X.js";
15
15
  import "./chunk-BYXBJQAS.js";
16
16
  import "./chunk-KZO2MTVM.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createDialogAction,
3
3
  isLocalOwnerDialogAgents
4
- } from "./chunk-BUO76CEE.js";
5
- import "./chunk-JTRU7WEG.js";
6
- import "./chunk-EHFDVQF5.js";
7
- import "./chunk-OV47NSYQ.js";
4
+ } from "./chunk-HXEO5DNV.js";
5
+ import "./chunk-TGVVE5BA.js";
6
+ import "./chunk-JDMWYVUF.js";
7
+ import "./chunk-DBCWXGOC.js";
8
8
  import "./chunk-KDDXC2IH.js";
9
9
  import "./chunk-TZXPT53C.js";
10
10
  import "./chunk-6QDYSCPW.js";
11
11
  import "./chunk-FGXG6OLW.js";
12
- import "./chunk-PJVJIDTH.js";
12
+ import "./chunk-TKLBBR7P.js";
13
13
  import "./chunk-IB5AR52X.js";
14
14
  import "./chunk-BYXBJQAS.js";
15
15
  import "./chunk-KZO2MTVM.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createPageAction
3
- } from "./chunk-CQNGHKSG.js";
3
+ } from "./chunk-U7OULUMF.js";
4
4
  import "./chunk-WX266G2C.js";
5
5
  import "./chunk-63W5N6P3.js";
6
6
  import "./chunk-AGIM7IMJ.js";
7
7
  import "./chunk-VF4K2QE6.js";
8
- import "./chunk-JTRU7WEG.js";
9
- import "./chunk-EHFDVQF5.js";
10
- import "./chunk-OV47NSYQ.js";
8
+ import "./chunk-TGVVE5BA.js";
9
+ import "./chunk-JDMWYVUF.js";
10
+ import "./chunk-DBCWXGOC.js";
11
11
  import "./chunk-KDDXC2IH.js";
12
12
  import "./chunk-TZXPT53C.js";
13
13
  import "./chunk-6QDYSCPW.js";
14
14
  import "./chunk-FGXG6OLW.js";
15
- import "./chunk-PJVJIDTH.js";
15
+ import "./chunk-TKLBBR7P.js";
16
16
  import "./chunk-IB5AR52X.js";
17
17
  import "./chunk-BYXBJQAS.js";
18
18
  import "./chunk-KZO2MTVM.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  deleteDbKey,
3
3
  getDeleteErrorMessage
4
- } from "./chunk-6S4VPBSW.js";
5
- import "./chunk-JTRU7WEG.js";
6
- import "./chunk-EHFDVQF5.js";
7
- import "./chunk-OV47NSYQ.js";
4
+ } from "./chunk-4RUQ2PFX.js";
5
+ import "./chunk-TGVVE5BA.js";
6
+ import "./chunk-JDMWYVUF.js";
7
+ import "./chunk-DBCWXGOC.js";
8
8
  import "./chunk-KDDXC2IH.js";
9
9
  import "./chunk-TZXPT53C.js";
10
10
  import "./chunk-6QDYSCPW.js";
11
11
  import "./chunk-FGXG6OLW.js";
12
- import "./chunk-PJVJIDTH.js";
12
+ import "./chunk-TKLBBR7P.js";
13
13
  import "./chunk-IB5AR52X.js";
14
14
  import "./chunk-BYXBJQAS.js";
15
15
  import "./chunk-KZO2MTVM.js";
@@ -18,12 +18,12 @@ import {
18
18
  switchDialogAgent,
19
19
  updateDialogTitle,
20
20
  updateTokens
21
- } from "./chunk-OV47NSYQ.js";
21
+ } from "./chunk-DBCWXGOC.js";
22
22
  import "./chunk-KDDXC2IH.js";
23
23
  import "./chunk-TZXPT53C.js";
24
24
  import "./chunk-6QDYSCPW.js";
25
25
  import "./chunk-FGXG6OLW.js";
26
- import "./chunk-PJVJIDTH.js";
26
+ import "./chunk-TKLBBR7P.js";
27
27
  import "./chunk-IB5AR52X.js";
28
28
  import "./chunk-BYXBJQAS.js";
29
29
  import "./chunk-KZO2MTVM.js";
@@ -25,7 +25,7 @@ import {
25
25
  updateTitleDoc,
26
26
  useDocField,
27
27
  useDocState
28
- } from "./chunk-KTK64ZZN.js";
28
+ } from "./chunk-7E6YXSFZ.js";
29
29
  import "./chunk-PL5RKESU.js";
30
30
  import "./chunk-6NYQHXMV.js";
31
31
  import "./chunk-3PVYUPXK.js";