nolo-cli 0.246.0-alpha.1 → 0.247.0-alpha.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 (152) hide show
  1. package/{_executeModel-5FOV5A3C.js → _executeModel-GIFVXKDT.js} +35 -35
  2. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  3. package/{action-R2EIXR7I.js → action-WZTKEF5H.js} +5 -5
  4. package/{addContentAction-W6JVLQ6H.js → addContentAction-MLI6GOBV.js} +8 -8
  5. package/{addDialogAgentAction-LVNKMXKZ.js → addDialogAgentAction-ARGQM22H.js} +7 -7
  6. package/{agentDeleteCommand-EKGFL4M7.js → agentDeleteCommand-MEJNOUQB.js} +53 -53
  7. package/{agentEmailCommands-YHEW42IW.js → agentEmailCommands-RBQXQLVY.js} +53 -53
  8. package/{agentListCommands-CVYNO54Q.js → agentListCommands-U436UABA.js} +15 -15
  9. package/{agentMachineCommands-2XWZXMAN.js → agentMachineCommands-R6WKJ622.js} +11 -11
  10. package/{agentPullCommand-QQQZSC6S.js → agentPullCommand-4EQZYHU4.js} +1 -1
  11. package/{agentRecordCommands-25R5YL5N.js → agentRecordCommands-5MAINXNS.js} +52 -52
  12. package/{agentRunCommand-TW4YOXIV.js → agentRunCommand-DNBAO4PN.js} +52 -52
  13. package/{agentRunControl-CSMSJFFB.js → agentRunControl-RN2P6AOD.js} +2 -2
  14. package/{agentRuntimeLocal-NC6CTZED.js → agentRuntimeLocal-4Y47ZSIP.js} +7 -7
  15. package/{agentSlice-6V2DXM4I.js → agentSlice-ZGMOH6TE.js} +8 -8
  16. package/{appDeleteCommands-LH7LQ6IZ.js → appDeleteCommands-KTYELLHJ.js} +12 -12
  17. package/{appDeployCommands-HLXUS5WI.js → appDeployCommands-HH4ZVRIS.js} +12 -12
  18. package/{appDeployStatusCommands-6IGCM32K.js → appDeployStatusCommands-KSIDBUL2.js} +12 -12
  19. package/{appGetCommands-G7PYU6CW.js → appGetCommands-N5E5L24Z.js} +12 -12
  20. package/{appListCommands-YWFISFO3.js → appListCommands-7QC63Y6R.js} +12 -12
  21. package/{authCommand-PVZ45QRO.js → authCommand-3C3RN4OU.js} +7 -7
  22. package/{authCommands-6AUYO65N.js → authCommands-ZMVEDCQD.js} +3 -3
  23. package/{builtinSkillRegistry-K7XDZWQJ.js → builtinSkillRegistry-VRCMQ77Q.js} +1 -1
  24. package/{chromeCommands-S7AW3AOD.js → chromeCommands-O4IIKTBD.js} +1 -1
  25. package/{chromeOpsCommands-TBPM6MR4.js → chromeOpsCommands-NZITLHWO.js} +3 -3
  26. package/{chunk-ZMRPZPEZ.js → chunk-2BKNICGK.js} +1 -1
  27. package/{chunk-3Z7YM7RQ.js → chunk-3DJJ4CFG.js} +4 -4
  28. package/{chunk-Y7N45DS6.js → chunk-3UPWX4NA.js} +3 -3
  29. package/{chunk-O72CE7QS.js → chunk-45L3GRIE.js} +171 -55
  30. package/{chunk-QIVE5WJE.js → chunk-4IQN6FWY.js} +1 -1
  31. package/{chunk-MU2PJQ4K.js → chunk-6CXQ3YNJ.js} +10 -10
  32. package/{chunk-AKKID57M.js → chunk-6MTVACLN.js} +47 -10
  33. package/{chunk-XGWRH3OF.js → chunk-6TVYUQRM.js} +22 -6
  34. package/{chunk-QOURTDZL.js → chunk-6XVPMGXK.js} +1 -1
  35. package/{chunk-MEDPR36J.js → chunk-73PZD7JZ.js} +2 -2
  36. package/{chunk-R7PFDD5L.js → chunk-7IEJYF7U.js} +4 -4
  37. package/{chunk-2TIH3JQK.js → chunk-ABG4QNBR.js} +371 -49
  38. package/{chunk-VEVLLBFK.js → chunk-ADOOL3PG.js} +1 -1
  39. package/{chunk-XKV53E4E.js → chunk-AEZBAFC6.js} +21 -6
  40. package/{chunk-AVSZ6PBM.js → chunk-ARFCL53U.js} +3 -3
  41. package/{chunk-MECW2HJG.js → chunk-BAH3BAUZ.js} +4 -4
  42. package/{chunk-LELADM5Q.js → chunk-BFKJ2RS3.js} +1 -1
  43. package/{chunk-56O2J2Y4.js → chunk-BVEDT6DM.js} +2 -2
  44. package/{chunk-IFWXH7LH.js → chunk-CD64YXRB.js} +1 -1
  45. package/{chunk-EQZZASCD.js → chunk-CIGCTSBF.js} +1 -1
  46. package/{chunk-X3XNXLHF.js → chunk-CIUZXD5D.js} +2 -2
  47. package/{chunk-TB5KTLNB.js → chunk-CTIEJRTP.js} +25 -1
  48. package/{chunk-DLT2DN4M.js → chunk-D25ONVOH.js} +1 -1
  49. package/{chunk-OGZE6BZG.js → chunk-E5RYFR7E.js} +29 -16
  50. package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
  51. package/{chunk-RXTZB2DH.js → chunk-FFFKAOJN.js} +1 -1
  52. package/{chunk-PUNGLYNR.js → chunk-FTWAOKFU.js} +29 -29
  53. package/{chunk-YRIRQSEP.js → chunk-HCCQEMTK.js} +9 -9
  54. package/{chunk-PDAXMBLW.js → chunk-HZDK56EK.js} +7 -7
  55. package/{chunk-7VNVB4OY.js → chunk-IIOSZAJX.js} +2 -2
  56. package/{chunk-UJUDZCJ7.js → chunk-IJZC2KIJ.js} +1 -1
  57. package/{chunk-2DWSICJH.js → chunk-ITBX27W6.js} +1 -1
  58. package/{chunk-X5QZF3ZS.js → chunk-J2VIGDJN.js} +3 -3
  59. package/{chunk-WPXDXATD.js → chunk-JEWMQR6J.js} +1 -1
  60. package/{chunk-KMDHRVS7.js → chunk-JFRJEPFI.js} +2 -2
  61. package/{chunk-RC3ZT4AH.js → chunk-JU7VN4LF.js} +6 -6
  62. package/{chunk-TGFFUUVC.js → chunk-K4CHT35N.js} +102 -61
  63. package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
  64. package/{chunk-5QX6DBZP.js → chunk-KLAMJNKQ.js} +2 -2
  65. package/{chunk-JRRDP7EB.js → chunk-KXOPLLFP.js} +16 -0
  66. package/{chunk-XOZNL36S.js → chunk-KZ5OD2MO.js} +2 -2
  67. package/{chunk-IOIWS357.js → chunk-LMGFVH65.js} +10 -10
  68. package/{chunk-76HAJUOJ.js → chunk-MTM4LRVG.js} +2 -2
  69. package/{chunk-XWJXQLQB.js → chunk-N74XL3NI.js} +6 -6
  70. package/{chunk-QRZZV4NY.js → chunk-OAZP4TSA.js} +1 -1
  71. package/{chunk-E4BAGLDK.js → chunk-ODBYGVO2.js} +4 -4
  72. package/{chunk-SESKIWB4.js → chunk-OLGFIQN2.js} +1 -1
  73. package/{chunk-F26GAEH3.js → chunk-OYUMJMC5.js} +5 -0
  74. package/{chunk-4TVOZGOS.js → chunk-PBPXXMWZ.js} +1 -1
  75. package/{chunk-NYLA6SRJ.js → chunk-QMNVV3YM.js} +8 -8
  76. package/{chunk-T23G6PXQ.js → chunk-RHBD22LV.js} +1 -1
  77. package/{chunk-UTGHPMQL.js → chunk-RR3MB26M.js} +2 -2
  78. package/{chunk-7GZY6HB7.js → chunk-S4UP27EG.js} +2 -2
  79. package/{chunk-KC2QVCI7.js → chunk-SPU3L3OR.js} +5 -4
  80. package/{chunk-QLUYDJST.js → chunk-TMRJGSK2.js} +1 -1
  81. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  82. package/{chunk-KB5RQRSJ.js → chunk-UF6J7NXV.js} +1 -1
  83. package/{chunk-EQ7LQZ6U.js → chunk-UOUMPHS5.js} +1 -0
  84. package/{chunk-CJQBWHNM.js → chunk-V4IYI3SB.js} +2 -2
  85. package/{chunk-EXZBHOTV.js → chunk-VKCPKCSS.js} +4 -4
  86. package/{chunk-2BSLGODA.js → chunk-W6T4FNZP.js} +1 -1
  87. package/{chunk-FMYNIAI6.js → chunk-WQDTSK5U.js} +2 -2
  88. package/{chunk-QE5WJFUT.js → chunk-X22AUZKL.js} +9 -9
  89. package/{chunk-2IPR4PBB.js → chunk-X3OZ655T.js} +2 -2
  90. package/{chunk-VX5ABJWX.js → chunk-XCA4WHX5.js} +1 -1
  91. package/{chunk-LC5CVWP2.js → chunk-XJSEST7D.js} +3 -3
  92. package/{chunk-TIZSX3UY.js → chunk-XSRSAU3O.js} +3 -3
  93. package/{chunk-TCQ27BXD.js → chunk-Y4NPF2UN.js} +3 -3
  94. package/{chunk-VHXADZ32.js → chunk-YDRRGVT5.js} +1 -1
  95. package/{chunk-PPIQDGJT.js → chunk-YFW4H6DL.js} +20 -20
  96. package/{chunk-5PASH2MB.js → chunk-YHNUDTU4.js} +4 -3
  97. package/{chunk-WBSJAIZP.js → chunk-YJPK35HB.js} +5 -0
  98. package/{chunk-EJYSKGP2.js → chunk-Z7KE4K3H.js} +2 -2
  99. package/{chunk-5VVP7DW3.js → chunk-ZM5AZTQG.js} +2 -2
  100. package/{cliLocalAgentRecordReader-P2DQNSEC.js → cliLocalAgentRecordReader-LWMGOH3X.js} +9 -9
  101. package/{commandRegistry-LDTVFRZB.js → commandRegistry-ZZUPMMTU.js} +86 -86
  102. package/{contentThunks-7NW3FSQG.js → contentThunks-SPXTX5U2.js} +14 -14
  103. package/{cooldownCommands-QL6DWGVU.js → cooldownCommands-TIFCHCUN.js} +1 -1
  104. package/{createAgentAutomationAction-TGVXPVGN.js → createAgentAutomationAction-KUQKCOXB.js} +14 -14
  105. package/{createDialogAction-RJHKOVR6.js → createDialogAction-HJN5U3XS.js} +15 -15
  106. package/{createPageAction-ITSOI5CP.js → createPageAction-ZAHRDOAU.js} +15 -15
  107. package/{db-6NRZLEW2.js → db-CMUTP3W5.js} +2 -2
  108. package/{dbSlice-5MQ3ELID.js → dbSlice-656PMWR2.js} +7 -7
  109. package/{deleteFile-VCCHS72Y.js → deleteFile-ZCQESEEQ.js} +5 -5
  110. package/{dialogCommands-NL4R34MT.js → dialogCommands-2JL3C5A3.js} +16 -16
  111. package/{dialogSlice-Q7G57NZU.js → dialogSlice-BXIERQHO.js} +12 -12
  112. package/{dialogUsageCommand-BZPKR3DW.js → dialogUsageCommand-6RW2FY6K.js} +1 -1
  113. package/{docCreateCommands-ZBB6DEY3.js → docCreateCommands-CZOVKJM5.js} +11 -11
  114. package/{docDeleteCommands-2Z5BTK3R.js → docDeleteCommands-WOVJXKOC.js} +12 -12
  115. package/{docReadCommands-GQIS4TGE.js → docReadCommands-ZHBKTJLT.js} +11 -11
  116. package/{docStore-623WNKKR.js → docStore-FZ75HWP2.js} +8 -8
  117. package/{docUpdateCommands-NZ7B235E.js → docUpdateCommands-UYXQNOU7.js} +11 -11
  118. package/{handleSendMessageAction-JR7DIXB3.js → handleSendMessageAction-KP6GGBFY.js} +26 -26
  119. package/{hostCredentialCreate-TNV4AR2P.js → hostCredentialCreate-6UGOSRDR.js} +52 -52
  120. package/index.js +8 -8
  121. package/{localDialogRead-3T2KMCRC.js → localDialogRead-CIOTQM5T.js} +1 -1
  122. package/{localRuntimeAdapter-AE5LKWC7.js → localRuntimeAdapter-R25LKDEH.js} +50 -50
  123. package/{localRuntimeAuthority-7DKIT7UH.js → localRuntimeAuthority-TYHQCTZN.js} +2 -2
  124. package/{localRuntimeDb-5WZ4RJJO.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
  125. package/{machineCommands-Q62F6WLR.js → machineCommands-CNIN7M4X.js} +51 -51
  126. package/{machineWsRunDispatch-N23VJDOE.js → machineWsRunDispatch-GLJGQSXX.js} +51 -51
  127. package/{mcpLocalAuthorizeCommand-DA6DT6B6.js → mcpLocalAuthorizeCommand-TI656UWC.js} +4 -4
  128. package/{memberThunks-KC3WJGL3.js → memberThunks-JFYC4Z5L.js} +9 -9
  129. package/package.json +1 -1
  130. package/{projectArchive-SJ72VBM2.js → projectArchive-NU2Z5HOR.js} +15 -15
  131. package/{read-T7VU2IMO.js → read-BRZHXUJ6.js} +5 -5
  132. package/{readDocTool-BPQ3QJSD.js → readDocTool-N7RVFQEE.js} +1 -1
  133. package/{readlineWorkspace-YCPJTRW5.js → readlineWorkspace-RZCJAWF7.js} +586 -216
  134. package/{removeDialogAgentAction-FEUUVMYC.js → removeDialogAgentAction-J7XU7OUX.js} +9 -9
  135. package/{runAgentClientLoop-4Y6A5RP2.js → runAgentClientLoop-O2GRCGRZ.js} +33 -33
  136. package/{runtimeDoctorCommands-XQD4MN4I.js → runtimeDoctorCommands-RDRJXMXC.js} +2 -2
  137. package/{secretCommands-LH7QTJO2.js → secretCommands-2FEMRUFM.js} +2 -2
  138. package/{setDialogExtraReferencesAction-JSTQJPXL.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +8 -8
  139. package/{setPrimaryDialogAgentAction-Z2BQE3IY.js → setPrimaryDialogAgentAction-742H5S6T.js} +9 -9
  140. package/{settingThunks-VP3E3JRQ.js → settingThunks-T4FXSV6M.js} +11 -11
  141. package/{spaceCommands-DT7C6IJY.js → spaceCommands-C4UE2TNV.js} +11 -11
  142. package/{streamAgentChatTurn-CO345TNB.js → streamAgentChatTurn-OWDJMU5E.js} +36 -36
  143. package/{switchDialogAgentAction-G7XVAOGH.js → switchDialogAgentAction-HLDLHRRA.js} +7 -7
  144. package/{tableCommands-UHEA5QNL.js → tableCommands-44GC4N6J.js} +2 -2
  145. package/{tools-DYRSY7A7.js → tools-O7SGGVA3.js} +29 -29
  146. package/{tuiRestart-3J7LRMPR.js → tuiRestart-EOGC2BYY.js} +3 -3
  147. package/{tuiSummaryLlmCaller-2J6NG53N.js → tuiSummaryLlmCaller-TM5BU73J.js} +2 -2
  148. package/{updateCommands-5OYND6EF.js → updateCommands-FBYA5WVG.js} +3 -3
  149. package/{updateDialogTitleAction-SHVYVWSO.js → updateDialogTitleAction-EXSZGTLL.js} +14 -14
  150. package/{usageCommand-SK7JTEPC.js → usageCommand-L4OFWXEU.js} +2 -2
  151. package/{usageRebuildCommand-DF3HUP6F.js → usageRebuildCommand-7JR33UHS.js} +2 -2
  152. package/{windowsSelfUpdate-HIYNL3VR.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-E6A5NHDH.js";
4
4
  import {
5
5
  t
6
- } from "./chunk-OGZE6BZG.js";
6
+ } from "./chunk-E5RYFR7E.js";
7
7
 
8
8
  // packages/core/secretsStore.ts
9
9
  import {
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-S25VJYXV.js";
6
6
  import {
7
7
  findPowerShellExecutable
8
- } from "./chunk-TB5KTLNB.js";
8
+ } from "./chunk-CTIEJRTP.js";
9
9
  import {
10
10
  AUTH_ERROR_PATTERNS
11
11
  } from "./chunk-EWQ3HGNZ.js";
@@ -2781,10 +2781,13 @@ function releaseUnspawnedLocalWriterClaim(runId, deps) {
2781
2781
  }, { strict: true });
2782
2782
  if (!released) throw new Error(`[local-writer-resource] release lock busy: ${runId}`);
2783
2783
  }
2784
+ var startupPhaseOrder = { spawn: 0, initializing: 1, protocol_validated: 2, model: 3 };
2784
2785
  async function recordRunStartup(runId, phase, deps = {}) {
2785
2786
  const attempt = () => withRunRecordLock(runId, deps, () => {
2786
2787
  const record = readRunRecord(runId, deps);
2787
2788
  if (!record || isRunTerminalStatus(record.status)) return true;
2789
+ if (record.pid != null && record.pid !== process.pid) return true;
2790
+ if (record.startup && startupPhaseOrder[record.startup.phase] >= startupPhaseOrder[phase]) return true;
2788
2791
  record.startup = { protocol: AGENT_RUN_PROTOCOL, phase };
2789
2792
  writeRunRecord(record, deps);
2790
2793
  return true;
@@ -3201,6 +3204,9 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
3201
3204
  const settled = withRunRecordLock(runId, deps, () => {
3202
3205
  const record2 = readRunRecord(runId, deps);
3203
3206
  if (!record2) return { kind: "not_found" };
3207
+ if (options.expectedPid != null && record2.pid != null && record2.pid !== options.expectedPid) {
3208
+ return { kind: "kept", record: record2 };
3209
+ }
3204
3210
  const orphanCorrection = options.allowOverOrphaned === true && record2.status === "orphaned" && (update.status === "done" || update.status === "failed");
3205
3211
  if (isAgentRunTerminalStatus(record2.status) && !orphanCorrection) {
3206
3212
  if (update.processExit) {
@@ -3349,8 +3355,11 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
3349
3355
  }
3350
3356
  var AUTHORITATIVE_SETTLE_MAX_ATTEMPTS = 4;
3351
3357
  var AUTHORITATIVE_SETTLE_RETRY_DELAY_MS = 15;
3352
- async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transition = transitionRunToTerminal) {
3353
- const attempt = () => transition(runId, update, deps, { allowOverOrphaned: true });
3358
+ async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transition = transitionRunToTerminal, options = {}) {
3359
+ const attempt = () => transition(runId, update, deps, {
3360
+ allowOverOrphaned: true,
3361
+ ...options.expectedPid != null ? { expectedPid: options.expectedPid } : {}
3362
+ });
3354
3363
  let result = attempt();
3355
3364
  for (let attemptNo = 1; result?.kind === "contended" && attemptNo < AUTHORITATIVE_SETTLE_MAX_ATTEMPTS; attemptNo += 1) {
3356
3365
  await (deps.sleep ?? defaultSleep)(AUTHORITATIVE_SETTLE_RETRY_DELAY_MS);
@@ -3361,9 +3370,15 @@ async function settleRunTerminalAuthoritatively(runId, update, deps = {}, transi
3361
3370
  `[nolo] authoritative settlement for run ${runId} lost the record lock ${AUTHORITATIVE_SETTLE_MAX_ATTEMPTS} times; durable record still ${result.record.status} \u2014 terminal status pending reconcile, child outcome (exitCode/dialogId/credits/DoD) may be lost`
3362
3371
  );
3363
3372
  } else if (result?.kind === "kept" && result.record.status !== update.status) {
3364
- console.warn(
3365
- `[nolo] run ${runId} already terminal (${result.record.status}); keeping the durable outcome over intended ${update.status}`
3366
- );
3373
+ if (options.expectedPid != null && result.record.pid != null && result.record.pid !== options.expectedPid) {
3374
+ console.warn(
3375
+ `[nolo] run ${runId} belongs to PID ${result.record.pid}, not ${options.expectedPid}; keeping the durable record (${result.record.status}) over intended ${update.status}`
3376
+ );
3377
+ } else {
3378
+ console.warn(
3379
+ `[nolo] run ${runId} already terminal (${result.record.status}); keeping the durable outcome over intended ${update.status}`
3380
+ );
3381
+ }
3367
3382
  }
3368
3383
  return result ?? { kind: "not_found" };
3369
3384
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  patch
3
- } from "./chunk-PDAXMBLW.js";
3
+ } from "./chunk-HZDK56EK.js";
4
4
  import {
5
5
  selectCurrentServer
6
- } from "./chunk-76HAJUOJ.js";
6
+ } from "./chunk-MTM4LRVG.js";
7
7
  import {
8
8
  getIsDesktopApp
9
- } from "./chunk-5PASH2MB.js";
9
+ } from "./chunk-YHNUDTU4.js";
10
10
  import {
11
11
  selectIdentityToken
12
12
  } from "./chunk-PXYBUFDB.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  defaultOpenBrowser
3
- } from "./chunk-KC2QVCI7.js";
3
+ } from "./chunk-SPU3L3OR.js";
4
4
  import {
5
5
  generateCloudflareEmailRoutingToken,
6
6
  parseFlagWithOptionalValue,
7
7
  runCloudflareOAuthLogin,
8
8
  upsertEnvVariable
9
- } from "./chunk-KB5RQRSJ.js";
9
+ } from "./chunk-UF6J7NXV.js";
10
10
  import {
11
11
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
12
12
  ANTHROPIC_OAUTH_CALLBACK_PORT,
@@ -50,7 +50,7 @@ import {
50
50
  startCallbackServer,
51
51
  validateXAIEndpoint,
52
52
  xaiOAuthDiscovery
53
- } from "./chunk-XGWRH3OF.js";
53
+ } from "./chunk-6TVYUQRM.js";
54
54
  import {
55
55
  extractGoogleValidationLink
56
56
  } from "./chunk-BMQ2MJUK.js";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-R5GO3YZP.js";
75
75
  import {
76
76
  t
77
- } from "./chunk-OGZE6BZG.js";
77
+ } from "./chunk-E5RYFR7E.js";
78
78
  import {
79
79
  toErrorMessage
80
80
  } from "./chunk-HNMXYYJR.js";
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-7DKIT7UH.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TYHQCTZN.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-YNIYE47Z.js";
37
37
  import {
38
38
  getDefaultCliLocalRuntimeDb
39
- } from "./chunk-LELADM5Q.js";
39
+ } from "./chunk-BFKJ2RS3.js";
40
40
  import {
41
41
  createTokenStatsKey
42
42
  } from "./chunk-SYTHYBMI.js";
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-DF3HUP6F.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-7JR33UHS.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
206
206
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
207
207
  }
208
208
  try {
209
- const { readAction } = await import("./read-T7VU2IMO.js");
209
+ const { readAction } = await import("./read-BRZHXUJ6.js");
210
210
  const pageData = await readAction({ dbKey: id }, thunkApi);
211
211
  if (!pageData) {
212
212
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveRunsDir
3
- } from "./chunk-XKV53E4E.js";
3
+ } from "./chunk-AEZBAFC6.js";
4
4
  import {
5
5
  isLoopbackHostname
6
6
  } from "./chunk-4SN6J65J.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  buildLocalAgentLookupKeys,
6
6
  shouldReadAgentKeyRemotely
7
- } from "./chunk-UJUDZCJ7.js";
7
+ } from "./chunk-IJZC2KIJ.js";
8
8
  import {
9
9
  createHostCredentialBrokerChain,
10
10
  createStrictHostCredentialBroker
@@ -14,7 +14,7 @@ import {
14
14
  formatInvalidAgentSkillModeMessage,
15
15
  formatInvalidAgentSkillModesFieldMessage,
16
16
  isAgentSkillModesFieldShapeValid
17
- } from "./chunk-VHXADZ32.js";
17
+ } from "./chunk-YDRRGVT5.js";
18
18
  import {
19
19
  buildAgentApiKeyCredentialRef,
20
20
  migrateAgentSecrets
@@ -1106,6 +1106,29 @@ var shellChildEnvironment = new AsyncLocalStorage();
1106
1106
  function withShellChildEnvironment(env, run) {
1107
1107
  return shellChildEnvironment.run(env, run);
1108
1108
  }
1109
+ var STRIPPED_WORKSPACE_CHILD_ENV_KEYS = [
1110
+ "NOLO_AGENT_RUN_ID",
1111
+ "NOLO_AGENT_RUN_PROTOCOL",
1112
+ "NOLO_AGENT_RUN_CONTENT_IDENTITY",
1113
+ "NOLO_WRITER_LAUNCH_ATTEMPT"
1114
+ ];
1115
+ var STRIPPED_WORKSPACE_CHILD_ENV_UPPER = new Set(STRIPPED_WORKSPACE_CHILD_ENV_KEYS);
1116
+ function workspaceChildEnv(env = process.env, platform = process.platform) {
1117
+ const child = { ...env };
1118
+ if (platform === "win32") {
1119
+ const asciiUpper = (value) => value.replace(/[a-z]/g, (ch) => ch.toUpperCase());
1120
+ for (const key of Object.keys(child)) {
1121
+ if (STRIPPED_WORKSPACE_CHILD_ENV_UPPER.has(asciiUpper(key))) {
1122
+ delete child[key];
1123
+ }
1124
+ }
1125
+ } else {
1126
+ for (const key of STRIPPED_WORKSPACE_CHILD_ENV_KEYS) {
1127
+ delete child[key];
1128
+ }
1129
+ }
1130
+ return child;
1131
+ }
1109
1132
  var EXEC_SHELL_TIMEOUT_ENV = "NOLO_EXEC_SHELL_TIMEOUT_MS";
1110
1133
  var EXEC_SHELL_DETACH_ENV = "NOLO_EXEC_SHELL_DETACH_MS";
1111
1134
  var DEFAULT_EXEC_SHELL_DETACH_MS = 12e4;
@@ -1767,7 +1790,7 @@ async function runWorkspaceCommand(args) {
1767
1790
  const spawnedAt = Date.now();
1768
1791
  const proc = spawnChildProcess(command[0] ?? "", command.slice(1), {
1769
1792
  cwd: resolve2(args.workspaceRoot),
1770
- env: { ...process.env, ...shellChildEnvironment.getStore() },
1793
+ env: workspaceChildEnv({ ...process.env, ...shellChildEnvironment.getStore() }),
1771
1794
  stdio: [
1772
1795
  args.stdin === void 0 ? "ignore" : "pipe",
1773
1796
  "pipe",
@@ -2098,6 +2121,7 @@ export {
2098
2121
  getProcessRegistry,
2099
2122
  buildProcessTaskResultCapsule,
2100
2123
  withShellChildEnvironment,
2124
+ workspaceChildEnv,
2101
2125
  extractActivity,
2102
2126
  findPowerShellExecutable,
2103
2127
  buildWorkspaceShellPlan,
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // packages/cli/agentCommandSupport.ts
6
6
  async function getDefaultCliDb() {
7
- const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-5WZ4RJJO.js");
7
+ const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-BO7IVWAZ.js");
8
8
  return getDefaultCliLocalRuntimeDb();
9
9
  }
10
10
  function createNullCliDb() {
@@ -2493,8 +2493,15 @@ var commonStrings = {
2493
2493
  zh: "\u672C\u4F1A\u8BDD\u8FD8\u6CA1\u6709\u51FA\u73B0\u94FE\u63A5\u3002"
2494
2494
  },
2495
2495
  conversationLinksCopyHint: {
2496
- en: "Open one by copying its URL (Cmd/Ctrl + click, or select and copy).",
2497
- zh: "\u590D\u5236\u5BF9\u5E94 URL \u5373\u53EF\u6253\u5F00\uFF08Cmd/Ctrl + \u70B9\u51FB\uFF0C\u6216\u9009\u4E2D\u590D\u5236\uFF09\u3002"
2496
+ en: "Ctrl + left-click a URL to open it in your browser. If that doesn't work, select and copy the full URL into your browser.",
2497
+ zh: "\u6309\u4F4F Ctrl \u518D\u5DE6\u952E\u70B9\u51FB\u5730\u5740\uFF0C\u5373\u53EF\u7528\u6D4F\u89C8\u5668\u6253\u5F00\u3002\u5982\u679C\u6CA1\u53CD\u5E94\uFF0C\u9009\u4E2D\u5E76\u590D\u5236\u5B8C\u6574\u5730\u5740\uFF0C\u518D\u7C98\u8D34\u5230\u6D4F\u89C8\u5668\u3002"
2498
+ },
2499
+ // 直写输出通道(管道/脚本,以及任何不进 transcript 的瞬时输出)没有
2500
+ // Ctrl+左键(只命中 transcript 历史可见行),也没有 TUI 内置选区复制
2501
+ // (鼠标跟踪开着,原生拖选不保证可用),所以这里不承诺快捷键。
2502
+ conversationLinksCopyHintPipe: {
2503
+ en: "To open one, copy its full URL into your browser's address bar.",
2504
+ zh: "\u6253\u5F00\u65B9\u5F0F\uFF1A\u590D\u5236\u5B8C\u6574\u5730\u5740\uFF0C\u7C98\u8D34\u5230\u6D4F\u89C8\u5668\u5730\u5740\u680F\u3002"
2498
2505
  },
2499
2506
  conversationLinksShowing: {
2500
2507
  en: "Links in this conversation (showing first {0} of {1}):",
@@ -2835,6 +2842,7 @@ function t(key, ...params) {
2835
2842
  var TOOL_LABELS = {
2836
2843
  // Local workspace tools (packages/agent-runtime/localWorkspaceTools.ts)
2837
2844
  readFile: { en: "Read", zh: "\u8BFB\u53D6" },
2845
+ read_image: { en: "Image", zh: "\u770B\u56FE" },
2838
2846
  writeFile: { en: "Write", zh: "\u5199\u5165" },
2839
2847
  editFile: { en: "Edit", zh: "\u7F16\u8F91" },
2840
2848
  codeSearch: { en: "Search", zh: "\u641C\u7D22" },
@@ -2896,30 +2904,31 @@ var family = (id, icon, en, zh) => ({ id, icon, en, zh });
2896
2904
  var TOOL_FAMILIES = {
2897
2905
  read: family("read", "<", "Read", "\u8BFB\u53D6"),
2898
2906
  write: family("write", "+", "Write", "\u5199\u5165"),
2899
- run: family("run", "$", "Run", "\u6267\u884C"),
2900
- search: family("search", "?", "Search", "\u641C\u7D22"),
2901
- fetch: family("fetch", "^", "Fetch", "\u6293\u53D6\u7F51\u9875"),
2907
+ run: family("run", "$", "Run", "\u547D\u4EE4"),
2908
+ search: family("search", "?", "Find", "\u641C\u7D22"),
2909
+ fetch: family("fetch", "^", "Fetch", "\u7F51\u9875"),
2902
2910
  list: family("list", "=", "List", "\u5217\u8868"),
2903
- memory: family("memory", "~", "Memory", "\u8BB0\u5FC6"),
2911
+ memory: family("memory", "~", "Mem", "\u8BB0\u5FC6"),
2904
2912
  agent: family("agent", "@", "Agent", "\u667A\u80FD\u4F53"),
2905
2913
  skill: family("skill", "*", "Skill", "\u6280\u80FD"),
2906
- interaction: family("interaction", ":", "Interaction", "\u4EA4\u4E92"),
2914
+ interaction: family("interaction", ":", "Ask", "\u4EA4\u4E92"),
2907
2915
  table: family("table", "#", "Table", "\u8868\u683C"),
2908
- capture: family("capture", "|", "Capture", "\u622A\u5C4F"),
2909
- delete: family("delete", "-", "Delete", "\u5220\u9664"),
2910
- mcp: family("mcp", "%", "Plugin", "\u63D2\u4EF6"),
2916
+ capture: family("capture", "|", "Shot", "\u622A\u5C4F"),
2917
+ delete: family("delete", "-", "Del", "\u5220\u9664"),
2918
+ mcp: family("mcp", "%", "MCP", "\u63D2\u4EF6"),
2911
2919
  app: family("app", ";", "App", "\u5E94\u7528"),
2912
- browser: family("browser", ">", "Browser", "\u6D4F\u89C8\u5668"),
2920
+ browser: family("browser", ">", "Web", "\u6D4F\u89C8\u5668"),
2913
2921
  cloud: family("cloud", "/", "Cloud", "\u4E91"),
2914
- process: family("process", "&", "Process", "\u8FDB\u7A0B"),
2915
- email: family("email", "\xBB", "Email", "\u90AE\u4EF6"),
2922
+ process: family("process", "&", "Proc", "\u8FDB\u7A0B"),
2923
+ email: family("email", "\xBB", "Mail", "\u90AE\u4EF6"),
2916
2924
  scrape: family("scrape", "\xAB", "Scrape", "\u91C7\u96C6"),
2917
- media: family("media", "\u2206", "Media", "\u5A92\u4F53"),
2925
+ media: family("media", "\u2206", "Image", "\u770B\u56FE"),
2918
2926
  default: family("default", "\u25CA", "Tool", "\u5DE5\u5177")
2919
2927
  };
2920
2928
  var DEFAULT_TOOL_ICON = TOOL_FAMILIES.default.icon;
2921
2929
  var TOOL_FAMILY_OVERRIDES = {
2922
2930
  readFile: TOOL_FAMILIES.read,
2931
+ read_image: TOOL_FAMILIES.media,
2923
2932
  readDoc: TOOL_FAMILIES.read,
2924
2933
  readDialog: TOOL_FAMILIES.read,
2925
2934
  readSpace: TOOL_FAMILIES.read,
@@ -3014,7 +3023,11 @@ var TOOL_FAMILY_RULES = [
3014
3023
  { id: "run", family: TOOL_FAMILIES.run, test: startsWithWord("exec", "execute", "run") }
3015
3024
  ];
3016
3025
  var TOOL_FAMILY_BY_ICON = Object.fromEntries(
3017
- Object.values(TOOL_FAMILIES).map((fam) => [fam.icon, fam])
3026
+ Object.values(TOOL_FAMILIES).flatMap((fam) => [
3027
+ [fam.icon, fam],
3028
+ [fam.en, fam],
3029
+ [fam.zh, fam]
3030
+ ])
3018
3031
  );
3019
3032
  function toolFamilyOf(name) {
3020
3033
  const override = TOOL_FAMILY_OVERRIDES[name];
@@ -3023,7 +3036,7 @@ function toolFamilyOf(name) {
3023
3036
  return rule ? rule.family : TOOL_FAMILIES.default;
3024
3037
  }
3025
3038
  function toolIcon(name) {
3026
- return toolFamilyOf(name).icon;
3039
+ return toolFamilyOf(name)[getCliLocale()];
3027
3040
  }
3028
3041
  function toolFamilyOfIcon(icon) {
3029
3042
  return TOOL_FAMILY_BY_ICON[icon] ?? null;
@@ -20,7 +20,17 @@ async function requestBrowserShellAction(args) {
20
20
  if (!result) throw new Error("Browser host rejected original action");
21
21
  if (result.code !== "USER_APPROVAL_PENDING") return result;
22
22
  const decision = await send({ approvalId: result.approvalId, browser: args.browser });
23
- if (decision.status !== "retry_once") return { ...result, message: "Host approval was not granted; action not executed." };
23
+ if (decision.status !== "retry_once") {
24
+ const code = typeof decision.code === "string" && decision.code ? decision.code : "USER_APPROVAL_DENIED";
25
+ const outcome = typeof decision.outcome === "string" && decision.outcome ? decision.outcome : "denied";
26
+ return {
27
+ ...result,
28
+ ok: false,
29
+ code,
30
+ outcome,
31
+ message: "Host approval was not granted; action not executed."
32
+ };
33
+ }
24
34
  return args.execute(args.action, { ...payload, approvalId: result.approvalId, hostApproval: true });
25
35
  }
26
36
 
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UAD2WT54.js";
4
4
  import {
5
5
  toTimestampMs
6
- } from "./chunk-PDAXMBLW.js";
6
+ } from "./chunk-HZDK56EK.js";
7
7
  import {
8
8
  require_react
9
9
  } from "./chunk-RD3QLZQV.js";
@@ -6,7 +6,7 @@ import {
6
6
  resolveDiscoveryScope,
7
7
  resolvePaginationArgs,
8
8
  toDiscoverySafeAgentSummary
9
- } from "./chunk-VX5ABJWX.js";
9
+ } from "./chunk-XCA4WHX5.js";
10
10
  import {
11
11
  normalizeTopicKey
12
12
  } from "./chunk-MVOZ22RZ.js";
@@ -19,12 +19,12 @@ import {
19
19
  normalizeAgentUpdateFieldList,
20
20
  normalizeSystemBuiltinSkills,
21
21
  normalizeUiPlugins
22
- } from "./chunk-QRZZV4NY.js";
22
+ } from "./chunk-OAZP4TSA.js";
23
23
  import {
24
24
  applyFetchSpaceFulfilled,
25
25
  fetchAuthoritativeRemoteSpace,
26
26
  selectSpaceRemoteAuth
27
- } from "./chunk-KMDHRVS7.js";
27
+ } from "./chunk-JFRJEPFI.js";
28
28
  import {
29
29
  ToolResultError,
30
30
  clipMultilineText,
@@ -38,28 +38,28 @@ import {
38
38
  toolRunUpdated,
39
39
  uiCardFallback,
40
40
  waitForAbortableDelay
41
- } from "./chunk-IOIWS357.js";
41
+ } from "./chunk-LMGFVH65.js";
42
42
  import {
43
43
  isGatewayHttpStatus
44
44
  } from "./chunk-NF64D32W.js";
45
45
  import {
46
46
  resolveUserEnabledSkills
47
- } from "./chunk-EQ7LQZ6U.js";
47
+ } from "./chunk-UOUMPHS5.js";
48
48
  import {
49
49
  createDocState
50
- } from "./chunk-X5QZF3ZS.js";
50
+ } from "./chunk-J2VIGDJN.js";
51
51
  import {
52
52
  readDocFunc,
53
53
  readDocFunctionSchema,
54
54
  readPageFunc,
55
55
  readPageFunctionSchema,
56
56
  resolvePageReadMarkdown
57
- } from "./chunk-IFWXH7LH.js";
57
+ } from "./chunk-CD64YXRB.js";
58
58
  import {
59
59
  createDialogAction,
60
60
  uiAskChoiceFunc,
61
61
  uiAskChoiceFunctionSchema
62
- } from "./chunk-E4BAGLDK.js";
62
+ } from "./chunk-ODBYGVO2.js";
63
63
  import {
64
64
  DEFAULT_COLLAPSED_CATEGORIES,
65
65
  addContentToSpace,
@@ -76,7 +76,7 @@ import {
76
76
  updateContentCategory,
77
77
  updateContentTitle,
78
78
  writeStoredCollapsedCategories
79
- } from "./chunk-YRIRQSEP.js";
79
+ } from "./chunk-HCCQEMTK.js";
80
80
  import {
81
81
  buildDatabaseFileContentUrl,
82
82
  deleteDialog,
@@ -85,14 +85,14 @@ import {
85
85
  selectCurrentDialogConfig,
86
86
  selectCurrentDialogId,
87
87
  selectMsgById
88
- } from "./chunk-PPIQDGJT.js";
88
+ } from "./chunk-YFW4H6DL.js";
89
89
  import {
90
90
  createAgent,
91
91
  deleteServerSyncedCredential,
92
92
  runLlm,
93
93
  streamAgentChatTurn,
94
94
  updateAgent
95
- } from "./chunk-XWJXQLQB.js";
95
+ } from "./chunk-N74XL3NI.js";
96
96
  import {
97
97
  addMemberSpace,
98
98
  getAllMemberSpaces,
@@ -109,12 +109,12 @@ import {
109
109
  setViewMode,
110
110
  updateCurrentSpaceIfMatch,
111
111
  updateMemberSpaceName
112
- } from "./chunk-RXTZB2DH.js";
112
+ } from "./chunk-FFFKAOJN.js";
113
113
  import {
114
114
  UNCATEGORIZED_ID,
115
115
  addContentAction,
116
116
  checkSpaceMembership
117
- } from "./chunk-CJQBWHNM.js";
117
+ } from "./chunk-V4IYI3SB.js";
118
118
  import {
119
119
  createSpaceKey,
120
120
  normalizeSpaceId
@@ -130,7 +130,7 @@ import {
130
130
  selectEntities,
131
131
  toTimestampMs,
132
132
  write
133
- } from "./chunk-PDAXMBLW.js";
133
+ } from "./chunk-HZDK56EK.js";
134
134
  import {
135
135
  resolveDefaultReasoningEffort
136
136
  } from "./chunk-FGHEF6WI.js";
@@ -179,7 +179,7 @@ import {
179
179
  } from "./chunk-RD3QLZQV.js";
180
180
  import {
181
181
  readAction
182
- } from "./chunk-5VVP7DW3.js";
182
+ } from "./chunk-ZM5AZTQG.js";
183
183
  import {
184
184
  DEVICE_LOCAL_OWNER_ID,
185
185
  getRuntimeServerContext,
@@ -189,23 +189,23 @@ import {
189
189
  resolveEffectiveSpaceActorId,
190
190
  resolveRecordOwnerUserId,
191
191
  selectRuntimeSnapshot
192
- } from "./chunk-FMYNIAI6.js";
192
+ } from "./chunk-WQDTSK5U.js";
193
193
  import {
194
194
  shareResourceAction
195
- } from "./chunk-LC5CVWP2.js";
195
+ } from "./chunk-XJSEST7D.js";
196
196
  import {
197
197
  selectCurrentServer,
198
198
  selectSyncServers
199
- } from "./chunk-76HAJUOJ.js";
199
+ } from "./chunk-MTM4LRVG.js";
200
200
  import {
201
201
  createAsyncThunk,
202
202
  createSelector,
203
203
  noloWriteRequest
204
- } from "./chunk-QOURTDZL.js";
204
+ } from "./chunk-6XVPMGXK.js";
205
205
  import {
206
206
  googleSessionRequestToken,
207
207
  isGoogleAuthoritySession
208
- } from "./chunk-5PASH2MB.js";
208
+ } from "./chunk-YHNUDTU4.js";
209
209
  import {
210
210
  getSessionSnapshotForState,
211
211
  selectIdentityToken,
@@ -234,12 +234,12 @@ import {
234
234
  normalizeNoloSpaceInput,
235
235
  resolveNoloDialogInput,
236
236
  verifyNoloDialogSubjectRefQuery
237
- } from "./chunk-2DWSICJH.js";
237
+ } from "./chunk-ITBX27W6.js";
238
238
  import {
239
239
  MCP_CALL_TOOL_INPUT_SCHEMA,
240
240
  MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
241
241
  MCP_LIST_TOOLS_INPUT_SCHEMA
242
- } from "./chunk-JRRDP7EB.js";
242
+ } from "./chunk-KXOPLLFP.js";
243
243
  import {
244
244
  mergeAvailabilityDeadline,
245
245
  resolveCredentialKeyWithFallback
@@ -270,7 +270,7 @@ import {
270
270
  PLUGIN_MANAGEMENT_TOOL_NAMES,
271
271
  managementFailure,
272
272
  parsePluginManagementInput
273
- } from "./chunk-AKKID57M.js";
273
+ } from "./chunk-6MTVACLN.js";
274
274
  import {
275
275
  buildSkillDocMarkdown,
276
276
  normalizeSkillModalities,
@@ -4012,7 +4012,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4012
4012
  const deletedDialogIds = [];
4013
4013
  const deletedDialogKeys = [];
4014
4014
  const failures = [];
4015
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-Q7G57NZU.js");
4015
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-BXIERQHO.js");
4016
4016
  for (const target of targets) {
4017
4017
  try {
4018
4018
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4450,7 +4450,7 @@ var readSkillDocFunctionSchema = {
4450
4450
  }
4451
4451
  };
4452
4452
  async function readSkillDocFunc(args, thunkApi) {
4453
- const { buildReadDocResult } = await import("./readDocTool-BPQ3QJSD.js");
4453
+ const { buildReadDocResult } = await import("./readDocTool-N7RVFQEE.js");
4454
4454
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4455
4455
  if (typeof id !== "string" || !id.trim()) {
4456
4456
  throw new Error("readSkillDoc requires id or doc.");
@@ -5389,7 +5389,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5389
5389
  const spaceKey = createSpaceKey.space(spaceId);
5390
5390
  const readSpace = async (dbKey) => {
5391
5391
  try {
5392
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-5MQ3ELID.js");
5392
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-656PMWR2.js");
5393
5393
  const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
5394
5394
  return await withTimeout(readPromise);
5395
5395
  } catch {
@@ -12085,7 +12085,7 @@ var selectUserIdFromState = (state2) => {
12085
12085
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
12086
12086
  async function addImageContentToSpace(input) {
12087
12087
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
12088
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-W6JVLQ6H.js")).addContentAction;
12088
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-MLI6GOBV.js")).addContentAction;
12089
12089
  await addContentAction2(
12090
12090
  {
12091
12091
  spaceId: input.spaceId,
@@ -19396,7 +19396,7 @@ async function updateDocFunc(args, thunkApi) {
19396
19396
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
19397
19397
  };
19398
19398
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
19399
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-623WNKKR.js");
19399
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-FZ75HWP2.js");
19400
19400
  if (getDocState().pageKey === id) {
19401
19401
  applyExternalDocUpdate({
19402
19402
  slateData: finalSlateData,
@@ -19421,7 +19421,7 @@ async function updateDocFunc(args, thunkApi) {
19421
19421
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
19422
19422
  async function dispatchSetSettings(thunkApi, changes) {
19423
19423
  const injectedSetSettings = thunkApi?.extra?.setSettings;
19424
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-VP3E3JRQ.js")).setSettings;
19424
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-T4FXSV6M.js")).setSettings;
19425
19425
  await thunkApi.dispatch(setSettings(changes)).unwrap();
19426
19426
  }
19427
19427
  var updateUserPreferenceProfileFunctionSchema = {
@@ -2,13 +2,13 @@ import {
2
2
  deleteDialog,
3
3
  runtime_default,
4
4
  toast
5
- } from "./chunk-PPIQDGJT.js";
5
+ } from "./chunk-YFW4H6DL.js";
6
6
  import {
7
7
  getAllMemberSpaces,
8
8
  getCurrentSpaceId,
9
9
  getCurrentSpaceIdRaw,
10
10
  updateCurrentSpaceIfMatch
11
- } from "./chunk-RXTZB2DH.js";
11
+ } from "./chunk-FFFKAOJN.js";
12
12
  import {
13
13
  require_formatISO
14
14
  } from "./chunk-UVLYNWIE.js";
@@ -23,7 +23,7 @@ import {
23
23
  patchIndividualContentRecord,
24
24
  readContentRecordForSpaceSync,
25
25
  syncContentRecordSpaceId
26
- } from "./chunk-CJQBWHNM.js";
26
+ } from "./chunk-V4IYI3SB.js";
27
27
  import {
28
28
  createSpaceKey,
29
29
  normalizeSpaceId
@@ -36,7 +36,7 @@ import {
36
36
  uploadFileAction,
37
37
  upsertSSREntity,
38
38
  write
39
- } from "./chunk-PDAXMBLW.js";
39
+ } from "./chunk-HZDK56EK.js";
40
40
  import {
41
41
  resolveFileCategory
42
42
  } from "./chunk-3PVYUPXK.js";
@@ -50,13 +50,13 @@ import {
50
50
  resolveReplicationServers,
51
51
  scheduleDeleteReplication,
52
52
  scheduleWriteReplication
53
- } from "./chunk-FMYNIAI6.js";
53
+ } from "./chunk-WQDTSK5U.js";
54
54
  import {
55
55
  createAsyncThunk
56
- } from "./chunk-QOURTDZL.js";
56
+ } from "./chunk-6XVPMGXK.js";
57
57
  import {
58
58
  getIsDesktopApp
59
- } from "./chunk-5PASH2MB.js";
59
+ } from "./chunk-YHNUDTU4.js";
60
60
  import {
61
61
  createClientLogger
62
62
  } from "./chunk-QQ56R7KS.js";
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
1513
1513
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1514
1514
  },
1515
1515
  file: async (key, { thunkAPI }) => {
1516
- const { deleteFileAction } = await import("./deleteFile-VCCHS72Y.js");
1516
+ const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
1517
1517
  await deleteFileAction(key, thunkAPI);
1518
1518
  },
1519
1519
  image: async (key, { thunkAPI }) => {
1520
- const { deleteFileAction } = await import("./deleteFile-VCCHS72Y.js");
1520
+ const { deleteFileAction } = await import("./deleteFile-ZCQESEEQ.js");
1521
1521
  await deleteFileAction(key, thunkAPI);
1522
1522
  },
1523
1523
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {