nolo-cli 0.97.5 → 0.97.6

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 (140) hide show
  1. package/{_executeModel-GWED52PB.js → _executeModel-E64QIKWF.js} +69 -67
  2. package/action-PNPQLJHG.js +20 -0
  3. package/{addContentAction-B2DRF7P6.js → addContentAction-DX6T34JR.js} +13 -12
  4. package/{addDialogAgentAction-T3I7IXPK.js → addDialogAgentAction-6SGG37BF.js} +17 -16
  5. package/{agentDeleteCommand-FH462XO5.js → agentDeleteCommand-76VXVM3N.js} +40 -39
  6. package/{agentEmailCommands-6UNG6QKI.js → agentEmailCommands-URGNKPPJ.js} +79 -77
  7. package/{agentListCommands-7QQZXKMN.js → agentListCommands-62NGDFOS.js} +50 -49
  8. package/{agentMachineCommands-DCBE3CPT.js → agentMachineCommands-SDIABR4D.js} +38 -37
  9. package/{agentProviderCommands-EMZCM6VA.js → agentProviderCommands-SG535ZMY.js} +1 -1
  10. package/{agentPullCommand-HF4A42D4.js → agentPullCommand-5DOL6RGF.js} +1 -1
  11. package/{agentRecordCommands-TNOVFCQ3.js → agentRecordCommands-ZICUGEEH.js} +73 -71
  12. package/{agentRunCommand-PAUTLE6D.js → agentRunCommand-66NCRPQ7.js} +76 -74
  13. package/{agentRunControl-2TTTUTSW.js → agentRunControl-3HWA2LLQ.js} +2 -2
  14. package/{agentRuntimeLocal-AY6YNUAL.js → agentRuntimeLocal-EZPUCRMS.js} +35 -34
  15. package/{agentSlice-FRLSN5HD.js → agentSlice-V2EDVUXC.js} +15 -14
  16. package/{appDeleteCommands-DFA4W66A.js → appDeleteCommands-7WLUFWPE.js} +35 -34
  17. package/{appDeployCommands-RDTG2IGP.js → appDeployCommands-NK22AMAW.js} +35 -34
  18. package/{appDeployStatusCommands-43XL5KEM.js → appDeployStatusCommands-PIWSMQET.js} +35 -34
  19. package/{appGetCommands-AKEAHGIG.js → appGetCommands-J3H6IHUT.js} +35 -34
  20. package/{appListCommands-F2H37K7K.js → appListCommands-CF4NYHRY.js} +35 -34
  21. package/{authCommand-2YPMMIJN.js → authCommand-T6UO5KPG.js} +20 -20
  22. package/{authCommands-FFDS4FVX.js → authCommands-KTIUCVVG.js} +4 -4
  23. package/{builtinSkillRegistry-CALVIJTX.js → builtinSkillRegistry-MAR5LPAC.js} +7 -6
  24. package/{chunk-4J3Q2KJL.js → chunk-2LM7XUCX.js} +10 -8
  25. package/{chunk-EKS2APRJ.js → chunk-2TYM4V33.js} +2 -2
  26. package/{chunk-O26PCYLS.js → chunk-2WJ57RJA.js} +6 -6
  27. package/{chunk-XVLDUNF7.js → chunk-3PELUSVV.js} +4 -4
  28. package/{chunk-C53ZG23R.js → chunk-4XYBLM4D.js} +4 -4
  29. package/{chunk-ZOVKKMF6.js → chunk-74D5HEDI.js} +1 -1
  30. package/{chunk-UQNS32WZ.js → chunk-7MTCBOOS.js} +1 -1
  31. package/chunk-A4SQRTZ6.js +15 -0
  32. package/chunk-AGIM7IMJ.js +147 -0
  33. package/{chunk-7WCQEMPB.js → chunk-ANRWQGOV.js} +27 -27
  34. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  35. package/{chunk-4HXY5QQG.js → chunk-APVTZ66V.js} +1 -1
  36. package/{chunk-OTEMQQZI.js → chunk-BFWQ65IZ.js} +1 -1
  37. package/{chunk-QMX4FNL4.js → chunk-BS7YHAQP.js} +84 -84
  38. package/{chunk-6D2JFXLY.js → chunk-BZ7NPA6G.js} +0 -2
  39. package/{chunk-34TW5T2M.js → chunk-CERE5KFG.js} +1 -1
  40. package/{chunk-TU5NE4U3.js → chunk-CV366NXM.js} +7 -7
  41. package/{chunk-KLMW4NNN.js → chunk-DBOMSOYX.js} +1 -1
  42. package/{chunk-AWF3WO5R.js → chunk-DHA6B3LS.js} +7 -7
  43. package/chunk-DZ7R5V3Y.js +164 -0
  44. package/{chunk-I3QNET24.js → chunk-E3YWHWCR.js} +20 -1
  45. package/{chunk-Z4CSIXYP.js → chunk-ELIMCKNX.js} +5 -5
  46. package/{chunk-CTUQJVQM.js → chunk-EMQZSES6.js} +1 -1
  47. package/{chunk-RSEEDUMS.js → chunk-EPCAQM3U.js} +2 -2
  48. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  49. package/{chunk-DCLMZ5TX.js → chunk-HP57OUJO.js} +5 -5
  50. package/{chunk-WILHZY7K.js → chunk-JNXHAQPJ.js} +4 -4
  51. package/{chunk-AZRHIN5B.js → chunk-K6U4NKFJ.js} +1 -1
  52. package/{chunk-3R7EAVTC.js → chunk-KFJ7ZWBF.js} +38 -38
  53. package/{chunk-PQ3B6KI6.js → chunk-LYKHXIQC.js} +92 -92
  54. package/{chunk-HYZIYH2H.js → chunk-NVRC52JS.js} +22 -20
  55. package/chunk-NWENLDMM.js +42 -0
  56. package/{chunk-YXXI6MJ2.js → chunk-OCZQEXMX.js} +56 -60
  57. package/{chunk-P6GMCCAT.js → chunk-OW4APERY.js} +1 -1
  58. package/{chunk-RJK4MLDC.js → chunk-OXEHLZNH.js} +18 -20
  59. package/{chunk-DSSTTEKI.js → chunk-PQ6BKMXB.js} +2 -2
  60. package/{chunk-VN45QM57.js → chunk-QNTL2KFU.js} +76 -76
  61. package/{chunk-QJC7X767.js → chunk-RJYTVNWD.js} +1 -1
  62. package/{chunk-CPUFH46E.js → chunk-ROFPWC4X.js} +12 -12
  63. package/{chunk-IAESIMK7.js → chunk-RX4HD4H7.js} +8 -8
  64. package/{chunk-7AEF6ZXP.js → chunk-SBFHKTI7.js} +7 -7
  65. package/{chunk-VVXRRZXE.js → chunk-SESH42J6.js} +3 -3
  66. package/{chunk-DDBBIUXZ.js → chunk-SH7KLR4U.js} +20 -20
  67. package/{chunk-DAWDCRIG.js → chunk-TAWF7YAW.js} +1 -1
  68. package/{chunk-ZYWQNCBN.js → chunk-TVCAR26G.js} +1 -1
  69. package/{chunk-APMUYAPK.js → chunk-U3C3IA32.js} +1 -1
  70. package/chunk-UJXNKP5V.js +760 -0
  71. package/{chunk-O2OWEFII.js → chunk-VCAQFMVN.js} +1 -1
  72. package/{chunk-KCDUTE5V.js → chunk-VEYL5MO5.js} +4 -4
  73. package/{chunk-WIWM4FE3.js → chunk-VY6VFGKR.js} +7 -746
  74. package/{chunk-XAYSAKSS.js → chunk-VZZUQTBR.js} +2 -2
  75. package/{chunk-CU3QB4HW.js → chunk-W72ISAKC.js} +3 -3
  76. package/{chunk-QKUMVP3O.js → chunk-WCGC6S77.js} +4 -4
  77. package/{chunk-SEZZCP3H.js → chunk-WGPKQLZO.js} +27 -27
  78. package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
  79. package/{chunk-6ZWMH6TJ.js → chunk-WS2VEVHS.js} +4 -5
  80. package/{chunk-7CHC4W22.js → chunk-XBIYSBSG.js} +5 -5
  81. package/{chunk-NR4IWY23.js → chunk-YWLAWZYQ.js} +40 -260
  82. package/{chunk-R5VLGKMK.js → chunk-Z7A2EDGT.js} +15 -15
  83. package/{chunk-VFWN2MLE.js → chunk-ZGNDLCYH.js} +170 -153
  84. package/{commandRegistry-PUSRUY6V.js → commandRegistry-N47CRDOH.js} +70 -70
  85. package/{contentThunks-JFPH7ZGN.js → contentThunks-RRD2XMWB.js} +32 -32
  86. package/{createAgentAutomationAction-AYUD3TVG.js → createAgentAutomationAction-OW4WEVHP.js} +35 -35
  87. package/{createDialogAction-5EJGAQL5.js → createDialogAction-L3WMTD5Z.js} +36 -35
  88. package/{createPageAction-OJVJJSAD.js → createPageAction-PWG3K3K7.js} +43 -42
  89. package/{dbSlice-DQ32LYTJ.js → dbSlice-BUB77DHH.js} +12 -11
  90. package/{deleteFile-NX6QHCWZ.js → deleteFile-HG4BF3CS.js} +8 -7
  91. package/{dialogCommands-TQ2EYOO3.js → dialogCommands-CNXJGME5.js} +38 -38
  92. package/{dialogSlice-L5SA2HCW.js → dialogSlice-M7ZWTW5D.js} +31 -31
  93. package/{docCreateCommands-YGTVED6F.js → docCreateCommands-U2TEDZHS.js} +34 -33
  94. package/{docDeleteCommands-Y2K6UBU5.js → docDeleteCommands-K4ME6F6S.js} +35 -34
  95. package/{docReadCommands-JSJTTCVY.js → docReadCommands-ZUAVR3HH.js} +34 -33
  96. package/{docStore-DAAP4WFC.js → docStore-IX7ASJUP.js} +13 -12
  97. package/{docUpdateCommands-X2ZC37D3.js → docUpdateCommands-UKEOVRTF.js} +34 -33
  98. package/{fetchMessages-67MEFPZR.js → fetchMessages-N2BW2L62.js} +4 -4
  99. package/getPricing-NMMFT3YI.js +1 -1
  100. package/{handleSendMessageAction-NCZABULQ.js → handleSendMessageAction-KMPC6UD4.js} +36 -36
  101. package/index.js +3 -3
  102. package/{localDialogRead-EBRS242U.js → localDialogRead-3FHUPYAR.js} +1 -1
  103. package/{localRuntimeDb-3LRMNLCM.js → localRuntimeDb-AXJREE2T.js} +1 -1
  104. package/{machineCommands-GRIO3LQG.js → machineCommands-U4RRZGU6.js} +79 -77
  105. package/{machineWsRunDispatch-65IU4CLA.js → machineWsRunDispatch-V3IOP2P2.js} +71 -69
  106. package/{memberThunks-5ZXPR63F.js → memberThunks-LEUNURN2.js} +21 -19
  107. package/package.json +1 -1
  108. package/{providerPresetApply-76AVU3HD.js → providerPresetApply-76AHT34P.js} +4 -4
  109. package/{providerRegistry-Z62NC45X.js → providerRegistry-6HAQAQXB.js} +4 -4
  110. package/{read-EPTJRAEF.js → read-TBK4DFHP.js} +8 -7
  111. package/{readDocTool-W4NDXNEX.js → readDocTool-TJFCZ3ND.js} +1 -1
  112. package/{readlineWorkspace-6F27WVAV.js → readlineWorkspace-QTCU2BC4.js} +327 -110
  113. package/{removeDialogAgentAction-BVAWQKXE.js → removeDialogAgentAction-CT5HGRZH.js} +20 -22
  114. package/{runAgentClientLoop-CKC7RYAK.js → runAgentClientLoop-4VOARXQF.js} +65 -63
  115. package/{runtimeDoctorCommands-3USD722U.js → runtimeDoctorCommands-EQJA4MGD.js} +2 -2
  116. package/{setDialogExtraReferencesAction-LYY45IAD.js → setDialogExtraReferencesAction-JOENKFTX.js} +14 -13
  117. package/{setPrimaryDialogAgentAction-73IL7DLU.js → setPrimaryDialogAgentAction-MHWOGXP3.js} +20 -22
  118. package/{chunk-SONWNI3L.js → settingThunks-KLPZNA6L.js} +104 -921
  119. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  120. package/{spaceCommands-JZO2QK77.js → spaceCommands-ZESRWSTC.js} +36 -35
  121. package/{streamAgentChatTurn-4PBF5RK5.js → streamAgentChatTurn-VDAVK7N3.js} +110 -108
  122. package/{switchDialogAgentAction-UUXDSQ6X.js → switchDialogAgentAction-JHA4JEYA.js} +14 -13
  123. package/{tableCommands-G7RV3RU3.js → tableCommands-6U4BMLRR.js} +7 -7
  124. package/{toolApiClient-INIQCPGY.js → toolApiClient-EJT6TMFG.js} +4 -4
  125. package/{tools-BQ375D2L.js → tools-VJ3L5V6D.js} +53 -51
  126. package/{tuiSummaryLlmCaller-74NRRLVW.js → tuiSummaryLlmCaller-QUCBFGZK.js} +18 -17
  127. package/{updateDialogTitleAction-DTREH6RR.js → updateDialogTitleAction-GBUSLAQR.js} +39 -39
  128. package/action-GI44T4DR.js +0 -31
  129. package/browser-image-compression-MFDTD7K6.js +0 -1763
  130. package/chatQueueReduxAdapter-B3PSJ3GC.js +0 -187
  131. package/chunk-MEYIRKDN.js +0 -8967
  132. package/chunk-Y5GCAMGP.js +0 -9
  133. package/chunk-YPREESF4.js +0 -225
  134. package/settingSlice-Q6EKL7EQ.js +0 -204
  135. package/syncMapping-N6RGXGBW.js +0 -437
  136. package/{chunk-6PHKBY2Q.js → chunk-4YSOUKUR.js} +8 -8
  137. package/{chunk-S5XGT6GB.js → chunk-UA324D4O.js} +3 -3
  138. package/{chunk-MX574M24.js → chunk-V4UYSDTH.js} +3 -3
  139. package/{chunk-ESRMFY7G.js → chunk-XFUBXRVI.js} +5 -5
  140. package/{localRuntimeAuthority-5W6IJRAD.js → localRuntimeAuthority-AENMRPGX.js} +5 -5
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-ZYWQNCBN.js";
4
+ } from "./chunk-TVCAR26G.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-SV5IJK6K.js";
@@ -523,7 +523,7 @@ async function buildCreatedAgentRecord(args) {
523
523
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
524
524
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
525
525
  if (args.parsed.presetId) {
526
- const { resolveProviderPresetFields } = await import("./providerPresetApply-76AVU3HD.js");
526
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-76AHT34P.js");
527
527
  const fields = resolveProviderPresetFields(args.parsed.presetId);
528
528
  if (fields.kind === "manual") {
529
529
  throw new Error(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-SONWNI3L.js";
4
+ } from "./chunk-NWENLDMM.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -14,10 +14,10 @@ import {
14
14
  import {
15
15
  noloDeleteRequest,
16
16
  noloWriteRequest
17
- } from "./chunk-WIWM4FE3.js";
17
+ } from "./chunk-VY6VFGKR.js";
18
18
  import {
19
19
  normalizeTimeFields
20
- } from "./chunk-QOKAKDPE.js";
20
+ } from "./chunk-HIM3FCLF.js";
21
21
  import {
22
22
  selectIdentityUser,
23
23
  selectIdentityUserId
@@ -1,13 +1,13 @@
1
+ import {
2
+ SYSTEM_AGENT_CAPABILITIES,
3
+ SYSTEM_AGENT_CAPABILITY_IDS
4
+ } from "./chunk-WJ3B6FX6.js";
1
5
  import {
2
6
  buildSkillDocMarkdown
3
7
  } from "./chunk-AUDNYVRC.js";
4
8
  import {
5
9
  CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES
6
10
  } from "./chunk-5J3PYNUP.js";
7
- import {
8
- SYSTEM_AGENT_CAPABILITIES,
9
- SYSTEM_AGENT_CAPABILITY_IDS
10
- } from "./chunk-QDSINZM3.js";
11
11
  import {
12
12
  createKey
13
13
  } from "./chunk-3AH7LNUB.js";
@@ -5,17 +5,14 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-PQ3B6KI6.js";
9
- import {
10
- parseApiError
11
- } from "./chunk-OCZKATRC.js";
8
+ } from "./chunk-LYKHXIQC.js";
12
9
  import {
13
10
  INVALID_TOOL_ARGS_REPLACEMENT,
14
11
  buildInvalidToolCallSelfHealResult,
15
12
  parseToolCallArguments,
16
13
  performFetchRequest,
17
14
  sanitizeOutboundMessages
18
- } from "./chunk-3R7EAVTC.js";
15
+ } from "./chunk-KFJ7ZWBF.js";
19
16
  import {
20
17
  createSSEParser,
21
18
  createToolRunId,
@@ -26,7 +23,13 @@ import {
26
23
  toolRunSetPending,
27
24
  toolRunStarted,
28
25
  toolRunSucceeded
29
- } from "./chunk-VFWN2MLE.js";
26
+ } from "./chunk-ZGNDLCYH.js";
27
+ import {
28
+ getPublicImageAgentMode
29
+ } from "./chunk-VIDPVFP3.js";
30
+ import {
31
+ parseApiError
32
+ } from "./chunk-OCZKATRC.js";
30
33
  import {
31
34
  getCurrentSpaceId
32
35
  } from "./chunk-ZJ7UHBJS.js";
@@ -35,18 +38,15 @@ import {
35
38
  messageStreamEnd,
36
39
  messageStreaming,
37
40
  updateToolMessage
38
- } from "./chunk-QMX4FNL4.js";
41
+ } from "./chunk-BS7YHAQP.js";
39
42
  import {
40
43
  streamAgentChatTurn
41
- } from "./chunk-4J3Q2KJL.js";
44
+ } from "./chunk-2LM7XUCX.js";
42
45
  import {
43
46
  addActiveController,
44
47
  removeActiveController,
45
48
  tokenUsageLiveUpdate
46
- } from "./chunk-6D2JFXLY.js";
47
- import {
48
- getPublicImageAgentMode
49
- } from "./chunk-VIDPVFP3.js";
49
+ } from "./chunk-BZ7NPA6G.js";
50
50
  import {
51
51
  accumulateToolCallDelta,
52
52
  createThinkParserState,
@@ -59,19 +59,25 @@ import {
59
59
  import {
60
60
  EMPTY_ASSISTANT_REPAIR_PROMPT,
61
61
  getModelInfo
62
- } from "./chunk-WILHZY7K.js";
62
+ } from "./chunk-JNXHAQPJ.js";
63
63
  import {
64
- toErrorMessage
65
- } from "./chunk-HNMXYYJR.js";
64
+ write
65
+ } from "./chunk-NVRC52JS.js";
66
66
  import {
67
67
  getApiEndpoint
68
68
  } from "./chunk-3BXNTXYI.js";
69
69
  import {
70
- selectCurrentServer
71
- } from "./chunk-SONWNI3L.js";
70
+ toErrorMessage
71
+ } from "./chunk-HNMXYYJR.js";
72
72
  import {
73
- write
74
- } from "./chunk-HYZIYH2H.js";
73
+ extractCustomId
74
+ } from "./chunk-M2EJHDJP.js";
75
+ import {
76
+ isRecord
77
+ } from "./chunk-KUG52IAP.js";
78
+ import {
79
+ selectCurrentServer
80
+ } from "./chunk-NWENLDMM.js";
75
81
  import {
76
82
  createDialogMessageKeyAndId,
77
83
  dialogMessageKey,
@@ -79,19 +85,13 @@ import {
79
85
  } from "./chunk-3AH7LNUB.js";
80
86
  import {
81
87
  createAsyncThunk
82
- } from "./chunk-WIWM4FE3.js";
88
+ } from "./chunk-VY6VFGKR.js";
83
89
  import {
84
90
  isAbortError
85
- } from "./chunk-QOKAKDPE.js";
91
+ } from "./chunk-HIM3FCLF.js";
86
92
  import {
87
93
  selectIdentityToken
88
94
  } from "./chunk-SEJ5OS6F.js";
89
- import {
90
- isRecord
91
- } from "./chunk-KUG52IAP.js";
92
- import {
93
- extractCustomId
94
- } from "./chunk-M2EJHDJP.js";
95
95
  import {
96
96
  asTrimmedString
97
97
  } from "./chunk-3EUW3WEO.js";
@@ -1,7 +1,3 @@
1
- import {
2
- BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-BNGW5ASC.js";
4
-
5
1
  // packages/ai/tools/agentCapabilities.ts
6
2
  var SYSTEM_AGENT_CAPABILITIES = [
7
3
  {
@@ -47,17 +43,8 @@ var DEFAULT_SYSTEM_AGENT_CAPABILITIES = Object.fromEntries(
47
43
  ])
48
44
  );
49
45
 
50
- // packages/core/init.ts
51
- var nolotusId = "0e95801d90";
52
- var ADMIN_IDS = /* @__PURE__ */ new Set([nolotusId]);
53
- var isSystemAdmin = (userId) => userId != null && ADMIN_IDS.has(userId);
54
- var noloAgentId = BUILTIN_NOLO_AGENT_KEY;
55
-
56
46
  export {
57
47
  SYSTEM_AGENT_CAPABILITIES,
58
48
  SYSTEM_AGENT_CAPABILITY_IDS,
59
- DEFAULT_SYSTEM_AGENT_CAPABILITIES,
60
- nolotusId,
61
- isSystemAdmin,
62
- noloAgentId
49
+ DEFAULT_SYSTEM_AGENT_CAPABILITIES
63
50
  };
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-PSCNXBYA.js";
4
4
  import {
5
5
  addContentAction
6
- } from "./chunk-RSEEDUMS.js";
6
+ } from "./chunk-EPCAQM3U.js";
7
7
  import {
8
8
  upload
9
- } from "./chunk-HYZIYH2H.js";
9
+ } from "./chunk-NVRC52JS.js";
10
10
  import {
11
11
  getRuntimeServerContext
12
- } from "./chunk-WIWM4FE3.js";
12
+ } from "./chunk-UJXNKP5V.js";
13
13
  import {
14
14
  API_ENDPOINTS
15
15
  } from "./chunk-LCBAMY2M.js";
@@ -39,8 +39,7 @@ var serializeMessageContent = (content, imagePlaceholder = "[\u56FE\u7247]") =>
39
39
  return null;
40
40
  };
41
41
 
42
- // packages/app/utils/imageUtils.ts
43
- var BYTES_PER_MB = 1024 * 1024;
42
+ // packages/core/file/dataUrl.ts
44
43
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
45
44
  var parseDataUrl = (dataUrl) => {
46
45
  const trimmed = dataUrl.trim();
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-WIWM4FE3.js";
4
+ } from "./chunk-UJXNKP5V.js";
5
+ import {
6
+ buildTombstoneRecord
7
+ } from "./chunk-GBRG75BQ.js";
5
8
  import {
6
9
  fetchFromClientDb
7
- } from "./chunk-QOKAKDPE.js";
10
+ } from "./chunk-HIM3FCLF.js";
8
11
  import {
9
12
  selectIdentityToken
10
13
  } from "./chunk-SEJ5OS6F.js";
11
- import {
12
- buildTombstoneRecord
13
- } from "./chunk-GBRG75BQ.js";
14
14
 
15
15
  // packages/database/fileStorage.ts
16
16
  var DB_NAME = "nolo-file-storage";
@@ -3,34 +3,33 @@ import {
3
3
  getCurrentSpaceIdRaw,
4
4
  updateCurrentSpaceIfMatch
5
5
  } from "./chunk-ZJ7UHBJS.js";
6
- import {
7
- formatISO
8
- } from "./chunk-ZRAU6T47.js";
9
6
  import {
10
7
  deleteDialog,
11
- i18nBaseConfig,
12
- instance,
8
+ runtime_default,
13
9
  toast
14
- } from "./chunk-QMX4FNL4.js";
10
+ } from "./chunk-BS7YHAQP.js";
11
+ import {
12
+ formatISO
13
+ } from "./chunk-ZRAU6T47.js";
15
14
  import {
16
15
  require_react
17
16
  } from "./chunk-YDH3FDFQ.js";
17
+ import {
18
+ isSystemAdmin
19
+ } from "./chunk-A4SQRTZ6.js";
20
+ import {
21
+ asRecordOrEmpty
22
+ } from "./chunk-KX6YBIHG.js";
18
23
  import {
19
24
  UNCATEGORIZED_ID,
20
25
  addContentAction,
21
26
  checkSpaceMembership,
22
27
  localSpaceAuthorityPatchStamp
23
- } from "./chunk-RSEEDUMS.js";
28
+ } from "./chunk-EPCAQM3U.js";
24
29
  import {
25
30
  createSpaceKey,
26
31
  normalizeSpaceId
27
32
  } from "./chunk-UAD2WT54.js";
28
- import {
29
- isSystemAdmin
30
- } from "./chunk-QDSINZM3.js";
31
- import {
32
- asRecordOrEmpty
33
- } from "./chunk-KX6YBIHG.js";
34
33
  import {
35
34
  patch,
36
35
  read,
@@ -40,7 +39,24 @@ import {
40
39
  uploadFileAction,
41
40
  upsertSSREntity,
42
41
  write
43
- } from "./chunk-HYZIYH2H.js";
42
+ } from "./chunk-NVRC52JS.js";
43
+ import {
44
+ DEVICE_LOCAL_OWNER_ID,
45
+ getRuntimeServerContext,
46
+ isDeviceLocalSpaceBody,
47
+ resolveReplicationServers,
48
+ scheduleDeleteReplication,
49
+ scheduleWriteReplication
50
+ } from "./chunk-UJXNKP5V.js";
51
+ import {
52
+ buildTombstoneRecord
53
+ } from "./chunk-GBRG75BQ.js";
54
+ import {
55
+ extractUserId
56
+ } from "./chunk-M2EJHDJP.js";
57
+ import {
58
+ isRecord
59
+ } from "./chunk-KUG52IAP.js";
44
60
  import {
45
61
  SEPARATOR,
46
62
  asTrimmedNonEmptyStringArray,
@@ -57,159 +73,30 @@ import {
57
73
  asOptionalFiniteNumber
58
74
  } from "./chunk-WWC7I6TA.js";
59
75
  import {
60
- DEVICE_LOCAL_OWNER_ID,
61
- createAsyncThunk,
62
- getRuntimeServerContext,
63
- isDeviceLocalSpaceBody,
64
- resolveReplicationServers,
65
- scheduleDeleteReplication,
66
- scheduleWriteReplication
67
- } from "./chunk-WIWM4FE3.js";
76
+ createAsyncThunk
77
+ } from "./chunk-VY6VFGKR.js";
68
78
  import {
69
79
  createClientLogger,
70
80
  isAbortError
71
- } from "./chunk-QOKAKDPE.js";
81
+ } from "./chunk-HIM3FCLF.js";
72
82
  import {
73
83
  selectIdentityUserId
74
84
  } from "./chunk-SEJ5OS6F.js";
75
85
  import {
76
- buildTombstoneRecord
77
- } from "./chunk-GBRG75BQ.js";
78
- import {
79
- isRecord
80
- } from "./chunk-KUG52IAP.js";
81
- import {
82
- extractUserId
83
- } from "./chunk-M2EJHDJP.js";
86
+ asOptionalPositiveFiniteNumber
87
+ } from "./chunk-U6VC4MU4.js";
84
88
  import {
85
89
  asTrimmedString
86
90
  } from "./chunk-3EUW3WEO.js";
87
- import {
88
- asOptionalPositiveFiniteNumber
89
- } from "./chunk-U6VC4MU4.js";
90
91
  import {
91
92
  asOptionalTrimmedString
92
93
  } from "./chunk-G3SUCT4W.js";
93
94
  import {
94
- __commonJS,
95
95
  __toESM
96
96
  } from "./chunk-4VNS5WPM.js";
97
97
 
98
- // node_modules/void-elements/index.js
99
- var require_void_elements = __commonJS({
100
- "node_modules/void-elements/index.js"(exports, module) {
101
- module.exports = {
102
- "area": true,
103
- "base": true,
104
- "br": true,
105
- "col": true,
106
- "embed": true,
107
- "hr": true,
108
- "img": true,
109
- "input": true,
110
- "link": true,
111
- "meta": true,
112
- "param": true,
113
- "source": true,
114
- "track": true,
115
- "wbr": true
116
- };
117
- }
118
- });
119
-
120
- // node_modules/html-parse-stringify/dist/html-parse-stringify.js
121
- var require_html_parse_stringify = __commonJS({
122
- "node_modules/html-parse-stringify/dist/html-parse-stringify.js"(exports, module) {
123
- var e;
124
- var t = (e = require_void_elements()) && "object" == typeof e && "default" in e ? e.default : e;
125
- var n = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;
126
- function r(e2) {
127
- var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = e2.match(/<\/?([^\s]+?)[/\s>]/);
128
- if (i2 && (r2.name = i2[1], (t[i2[1]] || "/" === e2.charAt(e2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
129
- var s2 = e2.indexOf("-->");
130
- return { type: "comment", comment: -1 !== s2 ? e2.slice(4, s2) : "" };
131
- }
132
- for (var a2 = new RegExp(n), c2 = null; null !== (c2 = a2.exec(e2)); ) if (c2[0].trim()) if (c2[1]) {
133
- var l = c2[1].trim(), o = [l, ""];
134
- l.indexOf("=") > -1 && (o = l.split("=")), r2.attrs[o[0]] = o[1], a2.lastIndex--;
135
- } else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
136
- return r2;
137
- }
138
- var i = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g;
139
- var s = /^\s*$/;
140
- var a = /* @__PURE__ */ Object.create(null);
141
- function c(e2, t2) {
142
- switch (t2.type) {
143
- case "text":
144
- return e2 + t2.content;
145
- case "tag":
146
- return e2 += "<" + t2.name + (t2.attrs ? function(e3) {
147
- var t3 = [];
148
- for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
149
- return t3.length ? " " + t3.join(" ") : "";
150
- }(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(c, "") + "</" + t2.name + ">";
151
- case "comment":
152
- return e2 + "<!--" + t2.comment + "-->";
153
- }
154
- }
155
- module.exports = { parse: function(e2, t2) {
156
- t2 || (t2 = {}), t2.components || (t2.components = a);
157
- var n2, c2 = [], l = [], o = -1, u = false;
158
- if (0 !== e2.indexOf("<")) {
159
- var h = e2.indexOf("<");
160
- c2.push({ type: "text", content: -1 === h ? e2 : e2.substring(0, h) });
161
- }
162
- for (var f, d = []; f = i.exec(e2); ) d.push(f);
163
- return d.forEach(function(e3, t3) {
164
- var n3 = e3[0];
165
- if (n3 && !n3.startsWith("<!--")) {
166
- for (var r2 = 0, i2 = 0, s2 = -1, a2 = null, c3 = 0; c3 < n3.length; c3++) {
167
- var l2 = n3.charAt(c3);
168
- a2 ? l2 === a2 && (a2 = null) : '"' === l2 || "'" === l2 ? a2 = l2 : "<" === l2 ? 2 == ++r2 && (s2 = c3) : ">" === l2 && i2++;
169
- }
170
- var o2 = s2 > -1 && /[a-zA-Z0-9\-!/]/.test(n3.charAt(s2 + 1));
171
- if (r2 > i2 && o2) {
172
- var u2 = n3.substring(0, s2), h2 = n3.substring(u2.length);
173
- d[t3][0] = h2, d[t3].index += u2.length;
174
- }
175
- }
176
- }), d.forEach(function(i2, a2) {
177
- var h2 = i2[0];
178
- if (h2) {
179
- var f2 = i2.index;
180
- if (u) {
181
- if (h2 !== "</" + n2.name + ">") return;
182
- u = false;
183
- }
184
- var v, m, p = "/" !== h2.charAt(1), x = h2.startsWith("<!--"), g = f2 + h2.length, y = e2.charAt(g), E = d[a2 + 1];
185
- if ("<" === y && E) {
186
- var b = e2.substring(g, E.index);
187
- v = b.split("<").length > b.split(">").length;
188
- }
189
- if (x) {
190
- var A = r(h2);
191
- if (o < 0) return c2.push(A), c2;
192
- (m = l[o]).children.push(A);
193
- var O = e2.slice(g, E ? E.index : void 0);
194
- return O.length > 0 && m.children.push({ type: "text", content: O }), c2;
195
- }
196
- if (p && (o++, "tag" === (n2 = r(h2)).type && t2.components[n2.name] && (n2.type = "component", u = true), n2.voidElement || u || !y || "<" === y || n2.children.push({ type: "text", content: e2.slice(g, E ? E.index : void 0) }), 0 === o && c2.push(n2), (m = l[o - 1]) && m.children.push(n2), l[o] = n2), (!p || n2.voidElement) && (o > -1 && (n2.voidElement || n2.name === h2.slice(2, -1)) && (o--, n2 = -1 === o ? c2 : l[o]), !u && ("<" !== y || v) && y)) {
197
- m = -1 === o ? c2 : l[o].children;
198
- var j = E ? E.index : -1, W = e2.slice(g, -1 === j ? void 0 : j);
199
- s.test(W) && (W = " "), (j > -1 && o + m.length >= 0 || " " !== W) && m.push({ type: "text", content: W });
200
- }
201
- }
202
- }), c2;
203
- }, stringify: function(e2) {
204
- return e2.reduce(function(e3, t2) {
205
- return e3 + c("", t2);
206
- }, "");
207
- } };
208
- }
209
- });
210
-
211
98
  // packages/render/table/tableStore.ts
212
- var import_react9 = __toESM(require_react(), 1);
99
+ var import_react = __toESM(require_react(), 1);
213
100
  import { ulid as ulid3 } from "ulid";
214
101
 
215
102
  // packages/render/table/fetchAndCacheTableRows.ts
@@ -547,112 +434,6 @@ function addColumnOptionInMeta(meta, input, deps) {
547
434
 
548
435
  // packages/render/table/createTableAction.ts
549
436
  import { ulid as ulid2 } from "ulid";
550
-
551
- // node_modules/react-i18next/dist/es/Trans.js
552
- var import_react3 = __toESM(require_react(), 1);
553
-
554
- // node_modules/react-i18next/dist/es/TransWithoutContext.js
555
- var import_react = __toESM(require_react(), 1);
556
- var import_html_parse_stringify = __toESM(require_html_parse_stringify(), 1);
557
-
558
- // node_modules/react-i18next/dist/es/unescape.js
559
- var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
560
- var htmlEntities = {
561
- "&amp;": "&",
562
- "&#38;": "&",
563
- "&lt;": "<",
564
- "&#60;": "<",
565
- "&gt;": ">",
566
- "&#62;": ">",
567
- "&apos;": "'",
568
- "&#39;": "'",
569
- "&quot;": '"',
570
- "&#34;": '"',
571
- "&nbsp;": " ",
572
- "&#160;": " ",
573
- "&copy;": "\xA9",
574
- "&#169;": "\xA9",
575
- "&reg;": "\xAE",
576
- "&#174;": "\xAE",
577
- "&hellip;": "\u2026",
578
- "&#8230;": "\u2026",
579
- "&#x2F;": "/",
580
- "&#47;": "/"
581
- };
582
- var unescapeHtmlEntity = (m) => htmlEntities[m];
583
- var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
584
-
585
- // node_modules/react-i18next/dist/es/defaults.js
586
- var defaultOptions = {
587
- bindI18n: "languageChanged",
588
- bindI18nStore: "",
589
- transEmptyNodeValue: "",
590
- transSupportBasicHtmlNodes: true,
591
- transWrapTextNodes: "",
592
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
593
- useSuspense: true,
594
- unescape
595
- };
596
- var setDefaults = function() {
597
- let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
598
- defaultOptions = {
599
- ...defaultOptions,
600
- ...options
601
- };
602
- };
603
-
604
- // node_modules/react-i18next/dist/es/i18nInstance.js
605
- var i18nInstance;
606
- var setI18n = (instance2) => {
607
- i18nInstance = instance2;
608
- };
609
-
610
- // node_modules/react-i18next/dist/es/context.js
611
- var import_react2 = __toESM(require_react(), 1);
612
-
613
- // node_modules/react-i18next/dist/es/initReactI18next.js
614
- var initReactI18next = {
615
- type: "3rdParty",
616
- init(instance2) {
617
- setDefaults(instance2.options.react);
618
- setI18n(instance2);
619
- }
620
- };
621
-
622
- // node_modules/react-i18next/dist/es/context.js
623
- var I18nContext = (0, import_react2.createContext)();
624
-
625
- // node_modules/react-i18next/dist/es/useTranslation.js
626
- var import_react4 = __toESM(require_react(), 1);
627
-
628
- // node_modules/react-i18next/dist/es/withTranslation.js
629
- var import_react5 = __toESM(require_react(), 1);
630
-
631
- // node_modules/react-i18next/dist/es/I18nextProvider.js
632
- var import_react6 = __toESM(require_react(), 1);
633
-
634
- // node_modules/react-i18next/dist/es/withSSR.js
635
- var import_react8 = __toESM(require_react(), 1);
636
-
637
- // node_modules/react-i18next/dist/es/useSSR.js
638
- var import_react7 = __toESM(require_react(), 1);
639
-
640
- // packages/app/i18n/client.ts
641
- instance.use(initReactI18next).init({
642
- ...i18nBaseConfig,
643
- lng: "zh-CN" /* ZH_CN */,
644
- fallbackLng: {
645
- ["en" /* EN */]: ["en" /* EN */],
646
- ["zh-CN" /* ZH_CN */]: ["zh-CN" /* ZH_CN */, "en" /* EN */],
647
- ["zh-Hant" /* ZH_HANT */]: ["zh-Hant" /* ZH_HANT */, "zh-CN" /* ZH_CN */, "en" /* EN */],
648
- ["ja" /* JA */]: ["ja" /* JA */, "en" /* EN */],
649
- default: ["en" /* EN */]
650
- },
651
- compatibilityJSON: "v3"
652
- });
653
- var client_default = instance;
654
-
655
- // packages/render/table/createTableAction.ts
656
437
  var DEFAULT_COLUMNS = [
657
438
  {
658
439
  name: "title",
@@ -756,7 +537,7 @@ var createTableAction = async ({
756
537
  const now = /* @__PURE__ */ new Date();
757
538
  const nowIso = formatISO(now);
758
539
  const dbKey = metaKey(userId, tableId);
759
- const defaultTitle = client_default.t("space:newTable", {
540
+ const defaultTitle = runtime_default.t("space:newTable", {
760
541
  defaultValue: "\u65B0\u5EFA\u8868\u683C"
761
542
  });
762
543
  const title = asOptionalTrimmedString(customTitle) ?? defaultTitle;
@@ -1653,11 +1434,11 @@ var ENTITY_DELETE_STRATEGIES = {
1653
1434
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1654
1435
  },
1655
1436
  file: async (key, { thunkAPI }) => {
1656
- const { deleteFileAction } = await import("./deleteFile-NX6QHCWZ.js");
1437
+ const { deleteFileAction } = await import("./deleteFile-HG4BF3CS.js");
1657
1438
  await deleteFileAction(key, thunkAPI);
1658
1439
  },
1659
1440
  image: async (key, { thunkAPI }) => {
1660
- const { deleteFileAction } = await import("./deleteFile-NX6QHCWZ.js");
1441
+ const { deleteFileAction } = await import("./deleteFile-HG4BF3CS.js");
1661
1442
  await deleteFileAction(key, thunkAPI);
1662
1443
  },
1663
1444
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -2383,7 +2164,7 @@ var writeStoredCollapsedCategories = (spaceId, collapsedCategories, storage) =>
2383
2164
  };
2384
2165
 
2385
2166
  // packages/create/space/spaceUiStore.ts
2386
- var import_react10 = __toESM(require_react(), 1);
2167
+ var import_react2 = __toESM(require_react(), 1);
2387
2168
  var DEFAULT_COLLAPSED_CATEGORIES = {
2388
2169
  [UNCATEGORIZED_ID]: false
2389
2170
  };
@@ -2591,7 +2372,6 @@ var updateContentCategory = createAsyncThunk(
2591
2372
 
2592
2373
  export {
2593
2374
  fetchAndCacheTableRows,
2594
- client_default,
2595
2375
  getTableState,
2596
2376
  loadTableRows,
2597
2377
  addRow,