nolo-cli 0.188.0-alpha.1 → 0.188.0

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 (158) hide show
  1. package/{_executeModel-DIRZ5OVD.js → _executeModel-WQ7BV3G7.js} +53 -52
  2. package/{accountResolver-NQJ57BVU.js → accountResolver-42BYPMVY.js} +5 -5
  3. package/{action-GPPJC5TI.js → action-BHWB4MOK.js} +6 -5
  4. package/{addContentAction-XJQEJ4XW.js → addContentAction-BY375D35.js} +11 -10
  5. package/{addDialogAgentAction-5WZX5CAY.js → addDialogAgentAction-HOZYOCWC.js} +13 -12
  6. package/{agentDeleteCommand-YBR3WPMA.js → agentDeleteCommand-4DK6X4S4.js} +91 -90
  7. package/{agentEmailCommands-HCAJUPVT.js → agentEmailCommands-CYPIYPOK.js} +81 -80
  8. package/agentFavoriteCommands-GAFEXKKP.js +187 -0
  9. package/{agentListCommands-6N32GUGS.js → agentListCommands-MAG736RU.js} +53 -52
  10. package/{agentMachineCommands-ICARPI2D.js → agentMachineCommands-7VTOWHHD.js} +36 -35
  11. package/{agentProviderCommands-FXEMNSZ2.js → agentProviderCommands-XSZUCNIR.js} +5 -5
  12. package/{agentPullCommand-7LHBOEYH.js → agentPullCommand-LGASFNH7.js} +5 -5
  13. package/{agentRecordCommands-SCC37ID4.js → agentRecordCommands-VK3NEK5G.js} +74 -73
  14. package/{agentRunCommand-LIEO5YKT.js → agentRunCommand-7MFVUHWX.js} +79 -78
  15. package/{agentRunControl-SBHIICUQ.js → agentRunControl-6HHESKDB.js} +6 -6
  16. package/{agentRuntimeLocal-KMJAV6JL.js → agentRuntimeLocal-NAAYNHCW.js} +25 -24
  17. package/{agentSlice-XZODTFTF.js → agentSlice-TZRLTBEJ.js} +12 -11
  18. package/{appDeleteCommands-KDKRH2S2.js → appDeleteCommands-VDHCDVBF.js} +34 -33
  19. package/{appDeployCommands-YNZIYHDK.js → appDeployCommands-V6UTKVXR.js} +34 -33
  20. package/{appDeployStatusCommands-CPGP7ELY.js → appDeployStatusCommands-4UIFSEPC.js} +34 -33
  21. package/{appGetCommands-VXKSPF54.js → appGetCommands-XKDXLC3C.js} +34 -33
  22. package/{appListCommands-3QHVAMFI.js → appListCommands-BELRVX2Y.js} +34 -33
  23. package/{authCommand-NR6NELQ7.js → authCommand-RV5MQDWN.js} +27 -26
  24. package/{authCommands-PIUTADO5.js → authCommands-MZUXPRYJ.js} +9 -8
  25. package/{builtinSkillRegistry-RR35BY57.js → builtinSkillRegistry-7MBUY5EY.js} +4 -3
  26. package/{chromeCommands-EXJZ5HH5.js → chromeCommands-IVYZCGFL.js} +2 -2
  27. package/{chromeOpsCommands-ITBZEFBX.js → chromeOpsCommands-C46BXHEE.js} +8 -8
  28. package/{chunk-GCOCWLIE.js → chunk-2NAE7IVE.js} +2 -2
  29. package/{chunk-YBTP3PUM.js → chunk-4CEAZRZ4.js} +4 -4
  30. package/{chunk-SJGHZTLV.js → chunk-4MYCKDSI.js} +2 -2
  31. package/{chunk-KHMJI7GE.js → chunk-53RSTB7T.js} +5 -5
  32. package/{chunk-IBZ2HGY7.js → chunk-5DIFZFYF.js} +9 -9
  33. package/{chunk-K3TVMCV3.js → chunk-5DPVRMSY.js} +1 -1
  34. package/{chunk-ZZE2IJ5U.js → chunk-5HAPEKNH.js} +1 -1
  35. package/{chunk-EXAJ6DCR.js → chunk-5ZMIIR23.js} +3 -0
  36. package/{chunk-77IXQ7PZ.js → chunk-63JHZKGZ.js} +56 -54
  37. package/{chunk-62TBKWTV.js → chunk-7DQSP7JU.js} +1 -1
  38. package/{chunk-ESMZW5PE.js → chunk-A5BLRE3G.js} +1 -1
  39. package/{chunk-OKKTPAKC.js → chunk-ABMBNULR.js} +12 -12
  40. package/{chunk-PO4IRXQ7.js → chunk-ADTJJVDJ.js} +239 -72
  41. package/{chunk-CDLP56BS.js → chunk-B2N5GZBU.js} +17 -15
  42. package/{chunk-JWEXJ573.js → chunk-B6EZB6DW.js} +2 -2
  43. package/{chunk-MAYW6V3E.js → chunk-BA2FHPS4.js} +1 -1
  44. package/{chunk-CI5DVWU7.js → chunk-BTBT2566.js} +3 -3
  45. package/{chunk-ZKYRYOPF.js → chunk-CGKSIL4D.js} +12 -10
  46. package/{chunk-YPG7TUQD.js → chunk-CNMQATUF.js} +1 -1
  47. package/{chunk-NMFV26UG.js → chunk-CVMMWN6P.js} +6 -0
  48. package/{chunk-IF7V3CBU.js → chunk-DFF6B7P7.js} +4 -4
  49. package/{chunk-D2J22QSE.js → chunk-DYQXB46J.js} +10 -10
  50. package/{chunk-5EMSBTQ6.js → chunk-ECX3NKRD.js} +526 -224
  51. package/{chunk-4NCLVO4U.js → chunk-EVF6F3QU.js} +3 -3
  52. package/{chunk-V7QTD5MP.js → chunk-EXSR7DXT.js} +3 -3
  53. package/{chunk-W6E5IXIP.js → chunk-GTP6VNWH.js} +1 -1
  54. package/{chunk-IHQ7RMRS.js → chunk-GYVLAHA4.js} +6 -6
  55. package/{chunk-AA5GKA2X.js → chunk-HTLIKE5U.js} +5 -5
  56. package/{chunk-LHRW5KFN.js → chunk-I3HWJODB.js} +1 -1
  57. package/{chunk-KMSMIOOL.js → chunk-IIX6VWLW.js} +2 -2
  58. package/{chunk-GFHDRA4C.js → chunk-IOIPWEL4.js} +22 -22
  59. package/{chunk-UKDHLQHS.js → chunk-JG6IWEAW.js} +21 -19
  60. package/{chunk-BAWAKW7X.js → chunk-JGJVDP2W.js} +19 -19
  61. package/{chunk-NSASNKVD.js → chunk-K6TZSON4.js} +8 -6
  62. package/{chunk-U7BOZFAD.js → chunk-KDBKEYUW.js} +108 -81
  63. package/{chunk-NHEWV5FD.js → chunk-LBXUNNDS.js} +1 -1
  64. package/{chunk-OFFL4DCR.js → chunk-LEC5ALIN.js} +1 -1
  65. package/{chunk-GAGGEA7D.js → chunk-LEJSZV6V.js} +9 -9
  66. package/{chunk-APB44JID.js → chunk-MJWUBTK7.js} +1 -1
  67. package/{chunk-CR5WXQX7.js → chunk-N7E3LQ4A.js} +4 -4
  68. package/{chunk-SQOLMMXQ.js → chunk-NMDAOZRN.js} +57 -55
  69. package/{chunk-QNLRCES2.js → chunk-NVOYW6H4.js} +3 -3
  70. package/{chunk-HEYJFOL6.js → chunk-OHRDHS4N.js} +1 -1
  71. package/{chunk-D6222KXV.js → chunk-OUSUFO5W.js} +2 -2
  72. package/{chunk-FDLDMJTM.js → chunk-P64WRQYV.js} +1 -1
  73. package/{chunk-FSIJK37C.js → chunk-PD2YRFAI.js} +1 -1
  74. package/{chunk-P2BGRAW7.js → chunk-PVD7CRYV.js} +2 -2
  75. package/{chunk-JOUFPRE4.js → chunk-QU3TLYBR.js} +5 -5
  76. package/{chunk-YYKHIX4X.js → chunk-RJ3EYB5G.js} +1 -1
  77. package/{chunk-7XISFN2T.js → chunk-SM56M7N7.js} +1 -1
  78. package/{chunk-KVUMIWLL.js → chunk-TFSMPRAY.js} +28 -28
  79. package/{chunk-QSJLGX7K.js → chunk-TZLPJRNO.js} +15 -15
  80. package/{chunk-6JCZZDET.js → chunk-UC5RISH3.js} +135 -109
  81. package/{chunk-XLQ646HU.js → chunk-UGCQKKXW.js} +13 -13
  82. package/{chunk-YO3O7H2X.js → chunk-UNOILAZP.js} +14 -0
  83. package/{chunk-DEO4FC7J.js → chunk-UVWBGWBO.js} +9 -3
  84. package/{chunk-GUGCJ3DT.js → chunk-V62MBA65.js} +14 -14
  85. package/{chunk-IIGDVODZ.js → chunk-WAZ6BTSC.js} +1 -1
  86. package/{chunk-XAFCJN32.js → chunk-WFUIXNKC.js} +1 -1
  87. package/{chunk-H5EQ2VTC.js → chunk-WVGVGT44.js} +7 -7
  88. package/chunk-XJWWBO34.js +69 -0
  89. package/{chunk-MILA23IG.js → chunk-YARN6MCX.js} +20 -18
  90. package/{chunk-TDBNIGUJ.js → chunk-YHNZZIAH.js} +10 -10
  91. package/{chunk-3L5MSPWX.js → chunk-YIRADHSY.js} +1 -1
  92. package/{chunk-XI7DGLUK.js → chunk-ZSO5B6SW.js} +3 -3
  93. package/cliAuthorityBrokerClient-PM3U6Q6J.js +21 -0
  94. package/cliAuthorityStoreDriver-TKLXNNTG.js +20 -0
  95. package/{commandRegistry-I6CNP54W.js → commandRegistry-RM2Z2DVF.js} +95 -91
  96. package/{contentThunks-U5ZQJBCJ.js → contentThunks-RP4BYNUC.js} +27 -26
  97. package/{cooldownCommands-IUU3ZH3L.js → cooldownCommands-4XKJFEBW.js} +1 -1
  98. package/{createAgentAutomationAction-O5MAEWFH.js → createAgentAutomationAction-AYFAMQ5D.js} +30 -29
  99. package/{createDialogAction-6FEVBVYE.js → createDialogAction-NV5TEAIN.js} +29 -28
  100. package/{createPageAction-QJJX3V2F.js → createPageAction-FJGDX55N.js} +32 -31
  101. package/cursorProvider-YGGNMVWX.js +1 -1
  102. package/{dbSlice-6PVPY44C.js → dbSlice-QAUXABCC.js} +10 -9
  103. package/{deleteFile-YM6NDPAR.js → deleteFile-R5OBP7OM.js} +5 -5
  104. package/{dialogCommands-EDFRNBDA.js → dialogCommands-4BGV6DPD.js} +41 -40
  105. package/{dialogSlice-4J2R6S63.js → dialogSlice-ZUYNLTF6.js} +25 -24
  106. package/dialogUsageCommand-QTG6ILEJ.js +299 -0
  107. package/{docCreateCommands-J6RRFAAL.js → docCreateCommands-3CW75UF2.js} +33 -32
  108. package/{docDeleteCommands-4KIMCR5H.js → docDeleteCommands-NL4ZYMN5.js} +34 -33
  109. package/{docReadCommands-2UZQOOA7.js → docReadCommands-HXCNVDPQ.js} +33 -32
  110. package/{docStore-CMJSEKU5.js → docStore-EPAZ4HLD.js} +12 -11
  111. package/{docUpdateCommands-OLZENBFB.js → docUpdateCommands-RMVBAMDE.js} +33 -32
  112. package/{fetchMessages-IIJWQ3HR.js → fetchMessages-HWBVATSE.js} +4 -3
  113. package/{getPricing-2UPNNW3Y.js → getPricing-E2PLNWCR.js} +3 -3
  114. package/{handleSendMessageAction-ON2OCZ2O.js → handleSendMessageAction-5UH3DA6V.js} +46 -45
  115. package/index.js +9 -9
  116. package/keys-P4ZDOVJW.js +180 -0
  117. package/{localDialogRead-FSOMOPDZ.js → localDialogRead-CT5HGDMC.js} +1 -1
  118. package/{localRuntimeAdapter-KYWEHSY3.js → localRuntimeAdapter-LVPGHOJK.js} +71 -70
  119. package/{localRuntimeAuthority-BPN5OAQG.js → localRuntimeAuthority-NEGF3LRQ.js} +3 -3
  120. package/{localRuntimeDb-QIVAXMUL.js → localRuntimeDb-SDYFAEKA.js} +1 -1
  121. package/{machineCommands-PZYWWGXH.js → machineCommands-O6RDJGLV.js} +79 -78
  122. package/{machineWsRunDispatch-H7OSNRUO.js → machineWsRunDispatch-GVDQO742.js} +72 -71
  123. package/{memberThunks-AZINUM4S.js → memberThunks-QWAAGQBS.js} +167 -63
  124. package/package.json +1 -1
  125. package/{providerPresetApply-MBMGCNKZ.js → providerPresetApply-JGNMO2KX.js} +5 -5
  126. package/{providerRegistry-P4KYS6SE.js → providerRegistry-33J3ZYFJ.js} +5 -5
  127. package/{read-7JPIWRBQ.js → read-D6NEWSGG.js} +5 -5
  128. package/{readDocTool-AAQTB2Y3.js → readDocTool-NTAXO7SX.js} +1 -1
  129. package/{readlineWorkspace-DTAJBA43.js → readlineWorkspace-I5XZFI2E.js} +169 -122
  130. package/{removeDialogAgentAction-RMVRILLK.js → removeDialogAgentAction-YEPO5AYI.js} +15 -14
  131. package/{runAgentClientLoop-KW7EFI6H.js → runAgentClientLoop-LV2HYQPH.js} +49 -48
  132. package/{runtimeDoctorCommands-DXJH5HIB.js → runtimeDoctorCommands-NYBOTA6D.js} +20 -20
  133. package/{secretCommands-UZV7CPJY.js → secretCommands-N6CMCJDZ.js} +1 -1
  134. package/{setDialogExtraReferencesAction-L3V7JTMG.js → setDialogExtraReferencesAction-EH5GWDAJ.js} +12 -11
  135. package/{setPrimaryDialogAgentAction-X52JQGTJ.js → setPrimaryDialogAgentAction-PNWRK6IY.js} +15 -14
  136. package/{settingThunks-N6XFWPOU.js → settingThunks-7VCWB6P7.js} +12 -10
  137. package/{spaceCommands-AUZVTCVH.js → spaceCommands-ZUI4CTSO.js} +32 -31
  138. package/{streamAgentChatTurn-TGC24NGV.js → streamAgentChatTurn-ZCHIQR35.js} +67 -66
  139. package/{switchDialogAgentAction-ZJ5CGU7J.js → switchDialogAgentAction-23BFWJMV.js} +13 -12
  140. package/{tools-N77X52PL.js → tools-2DZDJWHZ.js} +43 -42
  141. package/{tuiSummaryLlmCaller-5D3XCH2C.js → tuiSummaryLlmCaller-FSOADMXK.js} +12 -12
  142. package/{updateCommands-MZCY6FXK.js → updateCommands-KE6LP3QX.js} +5 -5
  143. package/{updateDialogTitleAction-EH3LIVRX.js → updateDialogTitleAction-QZWVKVVW.js} +32 -31
  144. package/{windowsSelfUpdate-XV2MMQAC.js → windowsSelfUpdate-26TSFXEZ.js} +2 -2
  145. package/dialogUsageCommand-ZPESQB6W.js +0 -136
  146. package/{agentGrantCommands-LPVAJ6KR.js → agentGrantCommands-V5FOQKFD.js} +3 -3
  147. package/{chunk-I2QHI2XM.js → chunk-4YMD7B4Y.js} +3 -3
  148. package/{chunk-ZJ7UHBJS.js → chunk-5XBUWM6I.js} +3 -3
  149. package/{chunk-YXTMZQGX.js → chunk-7JWW65DU.js} +3 -3
  150. package/{chunk-43OFVLWJ.js → chunk-7UODCAWW.js} +8 -8
  151. package/{chunk-CSINZLH7.js → chunk-JIFYXQRD.js} +3 -3
  152. package/{chunk-LIQJTQRN.js → chunk-TRZP7JZ7.js} +3 -3
  153. package/{chunk-FKOCI2WR.js → chunk-UBLITLAZ.js} +3 -3
  154. package/{chunk-TDNAAXUQ.js → chunk-ZBCBFOWC.js} +3 -3
  155. package/{memoryCommands-YLT3ADGQ.js → memoryCommands-ASCE5STX.js} +3 -3
  156. package/{offlineMarxistsAgentCommand-3GLX4QQY.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +3 -3
  157. package/{tableCommands-IVC5S7Y3.js → tableCommands-QYB64L5I.js} +7 -7
  158. package/{workloadLifecycle-2F5YKFGW.js → workloadLifecycle-JA75D6JR.js} +3 -3
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-CDLP56BS.js";
10
+ } from "./chunk-B2N5GZBU.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
333
333
  ).unwrap();
334
334
  if (dbSpaceId) {
335
335
  try {
336
- const { updateContentTitle } = await import("./contentThunks-U5ZQJBCJ.js");
336
+ const { updateContentTitle } = await import("./contentThunks-RP4BYNUC.js");
337
337
  await dispatch(
338
338
  updateContentTitle({
339
339
  spaceId: dbSpaceId,
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
372
372
  }
373
373
  }
374
374
  async function createDocState(args, thunkApi) {
375
- const { createPageAction } = await import("./createPageAction-QJJX3V2F.js");
375
+ const { createPageAction } = await import("./createPageAction-FJGDX55N.js");
376
376
  return createPageAction(args, thunkApi);
377
377
  }
378
378
  function subscribe(listener) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-IBZ2HGY7.js";
4
+ } from "./chunk-5DIFZFYF.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-77IXQ7PZ.js";
7
+ } from "./chunk-63JHZKGZ.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -12,7 +12,7 @@ import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-HEYJFOL6.js";
15
+ } from "./chunk-OHRDHS4N.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelPricing
3
- } from "./chunk-TDNAAXUQ.js";
3
+ } from "./chunk-ZBCBFOWC.js";
4
4
  import {
5
5
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
6
6
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
@@ -3,13 +3,13 @@ import {
3
3
  classifyAgentApiKeyRef,
4
4
  formatUnsupportedAgentApiKeyRefMessage,
5
5
  shouldReadAgentKeyRemotely
6
- } from "./chunk-YYKHIX4X.js";
6
+ } from "./chunk-RJ3EYB5G.js";
7
7
  import {
8
8
  resolveCliAgentKeyInput
9
9
  } from "./chunk-NBTY7YJF.js";
10
10
  import {
11
- createAgentKey
12
- } from "./chunk-5EMSBTQ6.js";
11
+ toErrorMessage
12
+ } from "./chunk-HNMXYYJR.js";
13
13
  import {
14
14
  parseUserIdFromAuthToken,
15
15
  readOption,
@@ -22,8 +22,8 @@ import {
22
22
  spawnProcess
23
23
  } from "./chunk-Y6ROFCZO.js";
24
24
  import {
25
- toErrorMessage
26
- } from "./chunk-HNMXYYJR.js";
25
+ createAgentKey
26
+ } from "./chunk-ECX3NKRD.js";
27
27
 
28
28
  // packages/cli/agentRecordHelpers.ts
29
29
  import { readFileSync } from "node:fs";
@@ -556,7 +556,7 @@ async function buildCreatedAgentRecord(args) {
556
556
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
557
557
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
558
558
  if (args.parsed.presetId) {
559
- const { resolveProviderPresetFields } = await import("./providerPresetApply-MBMGCNKZ.js");
559
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-JGNMO2KX.js");
560
560
  const fields = resolveProviderPresetFields(args.parsed.presetId);
561
561
  if (fields.kind === "manual") {
562
562
  throw new Error(
@@ -4,6 +4,9 @@ import {
4
4
  import {
5
5
  DEFAULT_NOLO_SERVER_URL
6
6
  } from "./chunk-OLZBQWZU.js";
7
+ import {
8
+ normalizeServerOrigin
9
+ } from "./chunk-CF7PE763.js";
7
10
  import {
8
11
  loadProfileConfig
9
12
  } from "./chunk-R5GO3YZP.js";
@@ -12,13 +15,10 @@ import {
12
15
  } from "./chunk-Y6ROFCZO.js";
13
16
  import {
14
17
  scheduleWindowsSelfUpdate
15
- } from "./chunk-IIGDVODZ.js";
18
+ } from "./chunk-WAZ6BTSC.js";
16
19
  import {
17
20
  t
18
- } from "./chunk-YO3O7H2X.js";
19
- import {
20
- normalizeServerOrigin
21
- } from "./chunk-CF7PE763.js";
21
+ } from "./chunk-UNOILAZP.js";
22
22
 
23
23
  // packages/cli/updateCommands.ts
24
24
  import { existsSync, readFileSync, accessSync, constants } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AGENT_SELECTION_PRIORITY_INSTRUCTIONS
3
- } from "./chunk-FKOCI2WR.js";
3
+ } from "./chunk-UBLITLAZ.js";
4
4
  import {
5
5
  canonicalizeToolNames
6
6
  } from "./chunk-AKE53VMW.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-HNUWUO75.js";
4
4
  import {
5
5
  resolveToolImagePolicy
6
- } from "./chunk-P2BGRAW7.js";
6
+ } from "./chunk-PVD7CRYV.js";
7
7
  import {
8
8
  projectOpenAiToolImages
9
9
  } from "./chunk-E2BESSAW.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  readAntigravityProjectId,
13
13
  resolveAntigravityCloudCodeBaseUrl
14
- } from "./chunk-JOUFPRE4.js";
14
+ } from "./chunk-QU3TLYBR.js";
15
15
  import {
16
16
  asOptionalTrimmedString
17
17
  } from "./chunk-G3SUCT4W.js";
@@ -7,7 +7,7 @@ import {
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-IBZ2HGY7.js";
10
+ } from "./chunk-5DIFZFYF.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -20,7 +20,10 @@ import {
20
20
  selectSpaceContextLevel,
21
21
  selectUserTonePreset,
22
22
  uiCardFallback
23
- } from "./chunk-H5EQ2VTC.js";
23
+ } from "./chunk-WVGVGT44.js";
24
+ import {
25
+ getDocState
26
+ } from "./chunk-EVF6F3QU.js";
24
27
  import {
25
28
  resolveToolBaseUrl
26
29
  } from "./chunk-MYOH447Z.js";
@@ -29,29 +32,26 @@ import {
29
32
  getModelPricing,
30
33
  getPrices,
31
34
  hasExplicitAgentPricing
32
- } from "./chunk-TDNAAXUQ.js";
33
- import {
34
- getDocState
35
- } from "./chunk-4NCLVO4U.js";
35
+ } from "./chunk-ZBCBFOWC.js";
36
36
  import {
37
37
  getTableState
38
- } from "./chunk-MILA23IG.js";
38
+ } from "./chunk-YARN6MCX.js";
39
39
  import {
40
40
  getCurrentSpaceIdRaw,
41
41
  getViewMode
42
- } from "./chunk-ZJ7UHBJS.js";
42
+ } from "./chunk-5XBUWM6I.js";
43
43
  import {
44
44
  PERSONALIZATION_DIALOG_CATEGORY,
45
45
  buildPersonalizationDialogPolicyContext,
46
46
  selectAllMsgs
47
- } from "./chunk-77IXQ7PZ.js";
47
+ } from "./chunk-63JHZKGZ.js";
48
48
  import {
49
49
  selectPendingFiles
50
50
  } from "./chunk-OWYYDMGJ.js";
51
51
  import {
52
52
  read,
53
53
  selectById
54
- } from "./chunk-CDLP56BS.js";
54
+ } from "./chunk-B2N5GZBU.js";
55
55
  import {
56
56
  getSessionSnapshotForState,
57
57
  selectIdentityUserBalance,
@@ -66,7 +66,7 @@ import {
66
66
  expandEnabledPackPromptPatches,
67
67
  expandEnabledPacks,
68
68
  resolveEffectiveEnabledPacks
69
- } from "./chunk-7XISFN2T.js";
69
+ } from "./chunk-SM56M7N7.js";
70
70
  import {
71
71
  projectToolMessageContent
72
72
  } from "./chunk-2WZXXAQD.js";
@@ -76,11 +76,11 @@ import {
76
76
  } from "./chunk-WJZOQR2J.js";
77
77
  import {
78
78
  extractReferenceKeysFromMessage
79
- } from "./chunk-NSASNKVD.js";
79
+ } from "./chunk-K6TZSON4.js";
80
80
  import {
81
81
  getModelContextWindow,
82
82
  planContextUsage
83
- } from "./chunk-CSINZLH7.js";
83
+ } from "./chunk-JIFYXQRD.js";
84
84
  import {
85
85
  asRecordOrEmpty
86
86
  } from "./chunk-KX6YBIHG.js";
@@ -98,18 +98,9 @@ import {
98
98
  import {
99
99
  extractCustomId
100
100
  } from "./chunk-M2EJHDJP.js";
101
- import {
102
- metaKey
103
- } from "./chunk-5EMSBTQ6.js";
104
- import {
105
- asNonEmptyStringArray
106
- } from "./chunk-I42VC5KR.js";
107
101
  import {
108
102
  estimateTokenCount
109
103
  } from "./chunk-PSCNXBYA.js";
110
- import {
111
- asOptionalFiniteNumber
112
- } from "./chunk-WWC7I6TA.js";
113
104
  import {
114
105
  getModelConfig,
115
106
  getProviderByModelName
@@ -117,6 +108,15 @@ import {
117
108
  import {
118
109
  isRecord
119
110
  } from "./chunk-KUG52IAP.js";
111
+ import {
112
+ metaKey
113
+ } from "./chunk-ECX3NKRD.js";
114
+ import {
115
+ asNonEmptyStringArray
116
+ } from "./chunk-I42VC5KR.js";
117
+ import {
118
+ asOptionalFiniteNumber
119
+ } from "./chunk-WWC7I6TA.js";
120
120
  import {
121
121
  asTrimmedString
122
122
  } from "./chunk-3EUW3WEO.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-D6222KXV.js";
8
+ } from "./chunk-OUSUFO5W.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-GUGCJ3DT.js";
17
+ } from "./chunk-V62MBA65.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-6JCZZDET.js";
21
+ } from "./chunk-UC5RISH3.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-IBZ2HGY7.js";
26
+ } from "./chunk-5DIFZFYF.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,23 +32,23 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-H5EQ2VTC.js";
35
+ } from "./chunk-WVGVGT44.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
39
39
  import {
40
40
  getCurrentSpaceId
41
- } from "./chunk-ZJ7UHBJS.js";
41
+ } from "./chunk-5XBUWM6I.js";
42
42
  import {
43
43
  addToolMessage,
44
44
  messageStreamEnd,
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-77IXQ7PZ.js";
48
+ } from "./chunk-63JHZKGZ.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-TDBNIGUJ.js";
51
+ } from "./chunk-YHNZZIAH.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-CDLP56BS.js";
62
+ } from "./chunk-B2N5GZBU.js";
63
63
  import {
64
64
  createAsyncThunk
65
65
  } from "./chunk-WRCZXJ4N.js";
@@ -85,13 +85,13 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-HEYJFOL6.js";
88
+ } from "./chunk-OHRDHS4N.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-NSASNKVD.js";
91
+ } from "./chunk-K6TZSON4.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-CSINZLH7.js";
94
+ } from "./chunk-JIFYXQRD.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
@@ -99,22 +99,24 @@ import {
99
99
  extractCustomId
100
100
  } from "./chunk-M2EJHDJP.js";
101
101
  import {
102
- createDialogMessageKeyAndId,
103
- dialogMessageKey,
104
- toTrimmedString
105
- } from "./chunk-5EMSBTQ6.js";
102
+ toErrorMessage
103
+ } from "./chunk-HNMXYYJR.js";
106
104
  import {
107
105
  getApiEndpoint
108
106
  } from "./chunk-GC64WGMD.js";
109
107
  import {
110
108
  isRecord
111
109
  } from "./chunk-KUG52IAP.js";
110
+ import {
111
+ toTrimmedString
112
+ } from "./chunk-ECX3NKRD.js";
113
+ import {
114
+ createDialogMessageKeyAndId,
115
+ dialogMessageKey
116
+ } from "./chunk-XJWWBO34.js";
112
117
  import {
113
118
  asTrimmedString
114
119
  } from "./chunk-3EUW3WEO.js";
115
- import {
116
- toErrorMessage
117
- } from "./chunk-HNMXYYJR.js";
118
120
  import {
119
121
  asOptionalTrimmedString
120
122
  } from "./chunk-G3SUCT4W.js";
@@ -1,13 +1,17 @@
1
1
  import {
2
- require_react
3
- } from "./chunk-YDH3FDFQ.js";
2
+ getCurrentSpaceIdRaw,
3
+ setCurrentSpaceBoth
4
+ } from "./chunk-5XBUWM6I.js";
4
5
  import {
5
6
  createSpaceKey,
6
7
  normalizeSpaceId
7
8
  } from "./chunk-UAD2WT54.js";
9
+ import {
10
+ require_react
11
+ } from "./chunk-YDH3FDFQ.js";
8
12
  import {
9
13
  toTimestampMs
10
- } from "./chunk-CDLP56BS.js";
14
+ } from "./chunk-B2N5GZBU.js";
11
15
  import {
12
16
  fetchFromServer,
13
17
  getAllServers
@@ -59,9 +63,6 @@ function dedupeMemberSpacesById(memberSpaces) {
59
63
  });
60
64
  return Array.from(membershipMap.values());
61
65
  }
62
- function getMemberSpaces() {
63
- return state.memberSpaces;
64
- }
65
66
  function getAllMemberSpaces() {
66
67
  const memberSpaces = dedupeMemberSpacesById(state.memberSpaces || []);
67
68
  return [...memberSpaces].sort((a, b) => {
@@ -93,15 +94,6 @@ function setMembershipRejected(errorMessage, isRemoteUnavailable) {
93
94
  };
94
95
  notify();
95
96
  }
96
- function hydrateMemberSpacesFromLocal(spaces) {
97
- if (state.memberSpaces !== null || spaces.length === 0) return;
98
- state = {
99
- ...state,
100
- memberSpaces: dedupeMemberSpacesById(spaces),
101
- loading: false
102
- };
103
- notify();
104
- }
105
97
  function appendRecoveredMemberships(recovered) {
106
98
  if (!recovered || recovered.length === 0) return;
107
99
  if (state.memberSpaces === null) {
@@ -279,6 +271,16 @@ var fetchAuthoritativeRemoteSpace = async ({
279
271
  return null;
280
272
  };
281
273
 
274
+ // packages/create/space/applyFetchSpaceFulfilled.ts
275
+ function applyFetchSpaceFulfilled(payload) {
276
+ const { spaceId, spaceData } = payload;
277
+ const currentSpaceId = getCurrentSpaceIdRaw();
278
+ if (!currentSpaceId || currentSpaceId === spaceId) {
279
+ setCurrentSpaceBoth(spaceId, spaceData);
280
+ setSpaceInitialized();
281
+ }
282
+ }
283
+
282
284
  export {
283
285
  selectSpaceRemoteAuth,
284
286
  spaceListsUser,
@@ -286,16 +288,14 @@ export {
286
288
  fetchRemoteUserSpaceMemberships,
287
289
  fetchRemoteSpace,
288
290
  fetchAuthoritativeRemoteSpace,
289
- getMemberSpaces,
290
291
  getAllMemberSpaces,
291
292
  setMemberSpaces,
292
293
  setMembershipLoading,
293
294
  setMembershipRejected,
294
- hydrateMemberSpacesFromLocal,
295
295
  appendRecoveredMemberships,
296
- setSpaceInitialized,
297
296
  setMembershipLoaded,
298
297
  addMemberSpace,
299
298
  removeMemberSpace,
300
- updateMemberSpaceName
299
+ updateMemberSpaceName,
300
+ applyFetchSpaceFulfilled
301
301
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-CSINZLH7.js";
6
+ } from "./chunk-JIFYXQRD.js";
7
7
  import {
8
8
  normalizeTimingMs
9
9
  } from "./chunk-H57T64RA.js";
@@ -11,19 +11,21 @@ import {
11
11
  BUILTIN_NOLO_AGENT_KEY
12
12
  } from "./chunk-LOEO7LRC.js";
13
13
  import {
14
- isDialogRecordKey,
14
+ isRecord
15
+ } from "./chunk-KUG52IAP.js";
16
+ import {
15
17
  isPageKey,
16
18
  isTableMetaKey
17
- } from "./chunk-5EMSBTQ6.js";
19
+ } from "./chunk-ECX3NKRD.js";
20
+ import {
21
+ isDialogRecordKey
22
+ } from "./chunk-XJWWBO34.js";
18
23
  import {
19
24
  asTrimmedNonEmptyStringArray
20
25
  } from "./chunk-I42VC5KR.js";
21
26
  import {
22
27
  asOptionalFiniteNumber
23
28
  } from "./chunk-WWC7I6TA.js";
24
- import {
25
- isRecord
26
- } from "./chunk-KUG52IAP.js";
27
29
  import {
28
30
  asTrimmedString
29
31
  } from "./chunk-3EUW3WEO.js";