nolo-cli 0.8.0-alpha.20 → 0.8.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/{_executeModel-WRUCQIV5.js → _executeModel-42U3VOVZ.js} +19 -19
  2. package/{action-R4M4ORGA.js → action-TLI3V62L.js} +7 -7
  3. package/{addContentAction-UYFFTEWJ.js → addContentAction-57RSIIMR.js} +6 -6
  4. package/{addDialogAgentAction-OT4XZAVP.js → addDialogAgentAction-G3VWEA6E.js} +5 -5
  5. package/{agentEmailCommands-IASM2YBQ.js → agentEmailCommands-6FACJBU4.js} +19 -19
  6. package/{agentMachineCommands-OUP3YQP7.js → agentMachineCommands-VKLIGMZA.js} +1 -1
  7. package/{agentRecordCommands-QKGE2JTA.js → agentRecordCommands-7TZICYDT.js} +19 -19
  8. package/{agentRunCommand-TVZXUBQ5.js → agentRunCommand-L4OM23KV.js} +19 -19
  9. package/{agentSlice-T4PMW7W6.js → agentSlice-BX7GXSNO.js} +6 -6
  10. package/{chunk-PP4S6RTL.js → chunk-25LCXTML.js} +3 -3
  11. package/{chunk-IHBCLYEE.js → chunk-2ECQG4YX.js} +28 -42
  12. package/{chunk-BCIOM4NZ.js → chunk-2JCXITPK.js} +2 -2
  13. package/{chunk-TIMLUWQA.js → chunk-4O3CARJ4.js} +1 -1
  14. package/{chunk-MNJDFJND.js → chunk-4XENYTF5.js} +1 -1
  15. package/{chunk-Z6EKEXJW.js → chunk-5EFXE3O7.js} +4 -4
  16. package/{chunk-2EHX7F5G.js → chunk-6KHNO3SK.js} +9 -9
  17. package/{chunk-PFTAG6DY.js → chunk-7GNGZRLZ.js} +7 -7
  18. package/{chunk-GLYVN7EQ.js → chunk-7U44LYTR.js} +2 -2
  19. package/{chunk-ZDRZMLKO.js → chunk-AL2KDGR2.js} +19 -19
  20. package/{chunk-PMKQGGGM.js → chunk-AS4PVWA4.js} +1 -1
  21. package/{chunk-K777STIO.js → chunk-DSZUWUYB.js} +2 -2
  22. package/{chunk-QJ7FZNYN.js → chunk-ENOG22KJ.js} +3 -3
  23. package/{chunk-7T5PWAZN.js → chunk-FSO5B7GH.js} +1 -1
  24. package/{chunk-FM5IVZXO.js → chunk-GU3PEVGZ.js} +4 -4
  25. package/{chunk-RGIM3WLT.js → chunk-I6XMPTMR.js} +2 -2
  26. package/{chunk-WI4XWASA.js → chunk-OOSFSFMA.js} +82 -19
  27. package/{chunk-YN4XDB7B.js → chunk-RCSJFQPB.js} +5 -5
  28. package/{chunk-IJGXKGXW.js → chunk-UB6SN4NJ.js} +3 -3
  29. package/{chunk-TISCADJH.js → chunk-URUUZLPA.js} +6 -6
  30. package/{chunk-XBROXIGL.js → chunk-UTLZINAP.js} +1 -1
  31. package/{chunk-4FBRSEV4.js → chunk-VUW5FBDB.js} +5 -5
  32. package/{chunk-K6BPOQLF.js → chunk-VX3SXJ3N.js} +4 -4
  33. package/{chunk-5W3VUFOX.js → chunk-XBUBEFNX.js} +1 -1
  34. package/{createAgentAutomationAction-CCABEOM6.js → createAgentAutomationAction-RJF3N2QY.js} +10 -10
  35. package/{createDialogAction-YPKF5ITI.js → createDialogAction-DRSPS6CE.js} +11 -11
  36. package/{createPageAction-YEZ7EK5F.js → createPageAction-6B2WMNO3.js} +10 -10
  37. package/{dbSlice-QPVZHBOE.js → dbSlice-Q3TM2FJV.js} +5 -5
  38. package/{deleteFile-SV5MS23W.js → deleteFile-OW53A6BX.js} +3 -3
  39. package/{dialogSlice-OVTO7QGW.js → dialogSlice-3M7KX2TX.js} +10 -10
  40. package/{docStore-ZAYLW2HN.js → docStore-SV7E34D4.js} +11 -11
  41. package/{handleSendMessageAction-TZMZ4EP5.js → handleSendMessageAction-JYETO5RZ.js} +10 -10
  42. package/index.js +26 -26
  43. package/{machineCommands-M4ZJZIMS.js → machineCommands-RIO3RP5Q.js} +19 -19
  44. package/{machineWsRunDispatch-TPJAUGLP.js → machineWsRunDispatch-W7UYLGB5.js} +19 -19
  45. package/package.json +1 -2
  46. package/{read-EBMWX4Z6.js → read-GW7ZEI23.js} +3 -3
  47. package/{readDocTool-2MWHSTQE.js → readDocTool-HUFU6OCT.js} +1 -1
  48. package/{readlineWorkspace-OMCIU3WT.js → readlineWorkspace-27JR7WPW.js} +19 -19
  49. package/{removeDialogAgentAction-SNZ662NP.js → removeDialogAgentAction-CXKR4NJI.js} +7 -7
  50. package/{runAgentClientLoop-H6NGOUAM.js → runAgentClientLoop-HZFAPJHS.js} +17 -17
  51. package/{setDialogExtraReferencesAction-XDI2KM2N.js → setDialogExtraReferencesAction-6RKUSXHX.js} +5 -5
  52. package/{setPrimaryDialogAgentAction-PYEC4N4Z.js → setPrimaryDialogAgentAction-T3UTBEFG.js} +7 -7
  53. package/{settingSlice-NOWHY2FK.js → settingSlice-IVKXJXMG.js} +6 -6
  54. package/{spaceSlice-QHBPICA2.js → spaceSlice-TSVROA5U.js} +10 -10
  55. package/{streamAgentChatTurn-3XTBA2HN.js → streamAgentChatTurn-3C5RQZJF.js} +19 -19
  56. package/{tableCommands-R5UCM63M.js → tableCommands-O7O2LBEG.js} +1 -1
  57. package/{tools-GHLZ3XD6.js → tools-EQDEKR6N.js} +15 -15
  58. package/{updateDialogTitleAction-XA2OZTLP.js → updateDialogTitleAction-3XV7VWSZ.js} +10 -10
@@ -15,10 +15,10 @@ import {
15
15
  import {
16
16
  deleteServerSyncedCredential,
17
17
  runLlm
18
- } from "./chunk-4FBRSEV4.js";
18
+ } from "./chunk-VUW5FBDB.js";
19
19
  import {
20
20
  cleanupCliSessionForDialog
21
- } from "./chunk-Z6EKEXJW.js";
21
+ } from "./chunk-5EFXE3O7.js";
22
22
  import {
23
23
  getDialogAgentIds,
24
24
  getPrimaryDialogAgentId
@@ -34,7 +34,7 @@ import {
34
34
  addContentAction,
35
35
  checkSpaceMembership,
36
36
  localSpaceAuthorityPatchStamp
37
- } from "./chunk-RGIM3WLT.js";
37
+ } from "./chunk-I6XMPTMR.js";
38
38
  import {
39
39
  createSpaceKey,
40
40
  normalizeSpaceId
@@ -80,7 +80,7 @@ import {
80
80
  selectRemoteServer,
81
81
  selectRemoteServers,
82
82
  selectRemoteSyncServers
83
- } from "./chunk-K6BPOQLF.js";
83
+ } from "./chunk-VX3SXJ3N.js";
84
84
  import {
85
85
  patch,
86
86
  read,
@@ -93,7 +93,7 @@ import {
93
93
  uploadFileAction,
94
94
  upsertSSREntity,
95
95
  write
96
- } from "./chunk-TISCADJH.js";
96
+ } from "./chunk-URUUZLPA.js";
97
97
  import {
98
98
  resolveFileCategory
99
99
  } from "./chunk-AZPCASRE.js";
@@ -137,7 +137,7 @@ import {
137
137
  } from "./chunk-QSJ3HFEF.js";
138
138
  import {
139
139
  readAction
140
- } from "./chunk-K777STIO.js";
140
+ } from "./chunk-DSZUWUYB.js";
141
141
  import {
142
142
  DEVICE_LOCAL_OWNER_ID,
143
143
  asyncThunkCreator,
@@ -158,14 +158,15 @@ import {
158
158
  selectIdentityToken,
159
159
  selectIdentityUserId,
160
160
  selectRuntimeSnapshot
161
- } from "./chunk-XBROXIGL.js";
161
+ } from "./chunk-UTLZINAP.js";
162
162
  import {
163
+ createClientLogger,
163
164
  fetchFromServer,
164
165
  fetchWithTransientReadRetry,
165
166
  getAllServers,
166
167
  isAbortError,
167
168
  logger
168
- } from "./chunk-WI4XWASA.js";
169
+ } from "./chunk-OOSFSFMA.js";
169
170
  import {
170
171
  buildTombstoneRecord,
171
172
  isTombstoneRecord,
@@ -12740,7 +12741,7 @@ var messageSlice = createSliceWithThunks({
12740
12741
  runtimeOptions: args.runtimeOptions
12741
12742
  });
12742
12743
  if (agentKeyToUse) {
12743
- const { streamAgentChatTurn } = await import("./agentSlice-T4PMW7W6.js");
12744
+ const { streamAgentChatTurn } = await import("./agentSlice-BX7GXSNO.js");
12744
12745
  await dispatch(
12745
12746
  streamAgentChatTurn({
12746
12747
  agentKey: agentKeyToUse,
@@ -12862,8 +12863,7 @@ var import_date_fns = __toESM(require_date_fns());
12862
12863
  import { ulid as ulid3 } from "ulid";
12863
12864
 
12864
12865
  // packages/ai/token/saveTokenRecord.ts
12865
- import { pino } from "pino";
12866
- var logger2 = pino({ name: "token-record", level: "info" });
12866
+ var logger2 = createClientLogger("token-record");
12867
12867
  var createTokenRecord = (data, { cost, inputPrice, outputPrice } = {}) => ({
12868
12868
  ...data,
12869
12869
  cost: cost || data.cost,
@@ -12899,9 +12899,6 @@ var saveTokenRecord = async (tokenData, record, thunkApi) => {
12899
12899
  }
12900
12900
  };
12901
12901
 
12902
- // packages/chat/dialog/actions/updateTokensAction.ts
12903
- import { pino as pino2 } from "pino";
12904
-
12905
12902
  // packages/core/generateMainKey.ts
12906
12903
  import nacl from "tweetnacl";
12907
12904
  var generateUserIdV1 = (publicKey, username, language, extra = "") => {
@@ -15018,7 +15015,7 @@ var prepareTokenUsageData = ({
15018
15015
  };
15019
15016
 
15020
15017
  // packages/chat/dialog/actions/updateTokensAction.ts
15021
- var logger3 = pino2({ name: "token-usage", level: "info" });
15018
+ var logger3 = createClientLogger("token-usage");
15022
15019
  var dialogTokenPatchQueue = /* @__PURE__ */ new Map();
15023
15020
  var queueDialogTokenPatch = async (dialogKey, task) => {
15024
15021
  const previousTask = dialogTokenPatchQueue.get(dialogKey) ?? Promise.resolve();
@@ -15286,7 +15283,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15286
15283
  metadataReadFailures
15287
15284
  });
15288
15285
  if (!plan.deleteCandidates.length) return plan;
15289
- const { deleteFileAction } = await import("./deleteFile-SV5MS23W.js");
15286
+ const { deleteFileAction } = await import("./deleteFile-OW53A6BX.js");
15290
15287
  for (const candidate of plan.deleteCandidates) {
15291
15288
  if (candidate.fileDbKey) {
15292
15289
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15348,7 +15345,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15348
15345
  }
15349
15346
  if (isCurrentDialog) {
15350
15347
  await thunkApi.dispatch(resetMsgs());
15351
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-OVTO7QGW.js");
15348
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-3M7KX2TX.js");
15352
15349
  dispatch(clearPendingAttachments2());
15353
15350
  clearWorkflow();
15354
15351
  }
@@ -15357,35 +15354,35 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15357
15354
 
15358
15355
  // packages/chat/dialog/dialogSlice.ts
15359
15356
  var runCreateDialogAction = async (args, thunkApi) => {
15360
- const { createDialogAction } = await import("./createDialogAction-YPKF5ITI.js");
15357
+ const { createDialogAction } = await import("./createDialogAction-DRSPS6CE.js");
15361
15358
  return createDialogAction(args, thunkApi);
15362
15359
  };
15363
15360
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15364
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-CCABEOM6.js");
15361
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-RJF3N2QY.js");
15365
15362
  return createAgentAutomationAction(args, thunkApi);
15366
15363
  };
15367
15364
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15368
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-XA2OZTLP.js");
15365
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-3XV7VWSZ.js");
15369
15366
  return updateDialogTitleAction(args, thunkApi);
15370
15367
  };
15371
15368
  var runAddDialogAgentAction = async (args, thunkApi) => {
15372
- const { addDialogAgentAction } = await import("./addDialogAgentAction-OT4XZAVP.js");
15369
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-G3VWEA6E.js");
15373
15370
  return addDialogAgentAction(args, thunkApi);
15374
15371
  };
15375
15372
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15376
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-SNZ662NP.js");
15373
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-CXKR4NJI.js");
15377
15374
  return removeDialogAgentAction(args, thunkApi);
15378
15375
  };
15379
15376
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15380
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-PYEC4N4Z.js");
15377
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-T3UTBEFG.js");
15381
15378
  return setPrimaryDialogAgentAction(args, thunkApi);
15382
15379
  };
15383
15380
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15384
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-XDI2KM2N.js");
15381
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-6RKUSXHX.js");
15385
15382
  return setDialogExtraReferencesAction(args, thunkApi);
15386
15383
  };
15387
15384
  var runHandleSendMessageAction = async (args, thunkApi) => {
15388
- const { handleSendMessageAction } = await import("./handleSendMessageAction-TZMZ4EP5.js");
15385
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-JYETO5RZ.js");
15389
15386
  return handleSendMessageAction(args, thunkApi);
15390
15387
  };
15391
15388
  function clearDialogState() {
@@ -15398,7 +15395,7 @@ var createPageAndAddReference = createAsyncThunk(
15398
15395
  async (payload, { dispatch, getState, rejectWithValue }) => {
15399
15396
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15400
15397
  try {
15401
- const { createDocState } = await import("./docStore-ZAYLW2HN.js");
15398
+ const { createDocState } = await import("./docStore-SV7E34D4.js");
15402
15399
  const pageKey = await createDocState(
15403
15400
  { slateData, title },
15404
15401
  { dispatch, getState }
@@ -19355,11 +19352,11 @@ var ENTITY_DELETE_STRATEGIES = {
19355
19352
  await dispatch(deleteTable({ dbKey: key })).unwrap();
19356
19353
  },
19357
19354
  file: async (key, { thunkAPI }) => {
19358
- const { deleteFileAction } = await import("./deleteFile-SV5MS23W.js");
19355
+ const { deleteFileAction } = await import("./deleteFile-OW53A6BX.js");
19359
19356
  await deleteFileAction(key, thunkAPI);
19360
19357
  },
19361
19358
  image: async (key, { thunkAPI }) => {
19362
- const { deleteFileAction } = await import("./deleteFile-SV5MS23W.js");
19359
+ const { deleteFileAction } = await import("./deleteFile-OW53A6BX.js");
19363
19360
  await deleteFileAction(key, thunkAPI);
19364
19361
  },
19365
19362
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -19455,12 +19452,7 @@ var deleteContentFromSpaceAction = async (input, thunkAPI) => {
19455
19452
  };
19456
19453
 
19457
19454
  // packages/create/space/content/moveContentAction.ts
19458
- import pino3 from "pino";
19459
- var logger4 = pino3({
19460
- level: "info"
19461
- // 或根据环境调整
19462
- // transport: { target: "pino-pretty" },
19463
- });
19455
+ var logger4 = createClientLogger("move-content");
19464
19456
  var moveContentAction = async (input, thunkAPI) => {
19465
19457
  const {
19466
19458
  contentKey,
@@ -19921,13 +19913,7 @@ var updateContentCategoryAction = async (input, thunkAPI) => {
19921
19913
  };
19922
19914
 
19923
19915
  // packages/create/space/content/deleteMultipleContentAction.ts
19924
- import pino4 from "pino";
19925
- var logger5 = pino4({
19926
- level: "info"
19927
- // transport: {
19928
- // target: "pino-pretty",
19929
- // },
19930
- });
19916
+ var logger5 = createClientLogger("delete-multiple-content");
19931
19917
  var deleteMultipleContentAction = async (input, thunkAPI) => {
19932
19918
  const { contentKeys, spaceId } = input;
19933
19919
  if (!contentKeys || contentKeys.length === 0) {
@@ -21538,7 +21524,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
21538
21524
  const spaceKey = createSpaceKey.space(spaceId);
21539
21525
  const readSpace = async (dbKey) => {
21540
21526
  try {
21541
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-QPVZHBOE.js");
21527
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-Q3TM2FJV.js");
21542
21528
  if (fresh) {
21543
21529
  return await dispatch(readAndWait2(dbKey)).unwrap();
21544
21530
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-YN4XDB7B.js";
4
+ } from "./chunk-RCSJFQPB.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-ZDRZMLKO.js";
7
+ } from "./chunk-AL2KDGR2.js";
8
8
  import {
9
9
  readPipeText,
10
10
  spawnProcess
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_AGENT_BASE_POLICY,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE
4
- } from "./chunk-K6BPOQLF.js";
4
+ } from "./chunk-VX3SXJ3N.js";
5
5
 
6
6
  // packages/ai/policy/runtimePolicy.ts
7
7
  var clampLevel = (value, fallback) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-YN4XDB7B.js";
3
+ } from "./chunk-RCSJFQPB.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-W4NVOSFF.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-K6BPOQLF.js";
3
+ } from "./chunk-VX3SXJ3N.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-TISCADJH.js";
6
+ } from "./chunk-URUUZLPA.js";
7
7
  import {
8
8
  selectIdentityToken
9
- } from "./chunk-XBROXIGL.js";
9
+ } from "./chunk-UTLZINAP.js";
10
10
  import {
11
11
  getIsDesktopApp
12
- } from "./chunk-WI4XWASA.js";
12
+ } from "./chunk-OOSFSFMA.js";
13
13
 
14
14
  // packages/ai/agent/cliChatClient.ts
15
15
  function getCliChatRequestConfig(thunkApi) {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-JEXVIMYZ.js";
4
4
  import {
5
5
  prepareTools
6
- } from "./chunk-7T5PWAZN.js";
6
+ } from "./chunk-FSO5B7GH.js";
7
7
  import {
8
8
  performFetchRequest
9
- } from "./chunk-PFTAG6DY.js";
9
+ } from "./chunk-7GNGZRLZ.js";
10
10
  import {
11
11
  getPublicImageAgentMode
12
12
  } from "./chunk-VIDPVFP3.js";
@@ -20,7 +20,7 @@ import {
20
20
  toolRunSetPending,
21
21
  toolRunStarted,
22
22
  toolRunSucceeded
23
- } from "./chunk-ZDRZMLKO.js";
23
+ } from "./chunk-AL2KDGR2.js";
24
24
  import {
25
25
  addToolMessage,
26
26
  getModelInfo,
@@ -28,10 +28,10 @@ import {
28
28
  messageStreaming,
29
29
  selectCurrentSpaceId,
30
30
  updateToolMessage
31
- } from "./chunk-IHBCLYEE.js";
31
+ } from "./chunk-2ECQG4YX.js";
32
32
  import {
33
33
  streamAgentChatTurn
34
- } from "./chunk-4FBRSEV4.js";
34
+ } from "./chunk-VUW5FBDB.js";
35
35
  import {
36
36
  EMPTY_ASSISTANT_REPAIR_PROMPT
37
37
  } from "./chunk-4QEWT7KD.js";
@@ -59,10 +59,10 @@ import {
59
59
  } from "./chunk-HNMXYYJR.js";
60
60
  import {
61
61
  selectCurrentServer
62
- } from "./chunk-K6BPOQLF.js";
62
+ } from "./chunk-VX3SXJ3N.js";
63
63
  import {
64
64
  write
65
- } from "./chunk-TISCADJH.js";
65
+ } from "./chunk-URUUZLPA.js";
66
66
  import {
67
67
  createDialogMessageKeyAndId,
68
68
  dialogMessageKey,
@@ -71,10 +71,10 @@ import {
71
71
  import {
72
72
  createAsyncThunk,
73
73
  selectIdentityToken
74
- } from "./chunk-XBROXIGL.js";
74
+ } from "./chunk-UTLZINAP.js";
75
75
  import {
76
76
  isAbortError
77
- } from "./chunk-WI4XWASA.js";
77
+ } from "./chunk-OOSFSFMA.js";
78
78
  import {
79
79
  asTrimmedString
80
80
  } from "./chunk-3EUW3WEO.js";
@@ -5,14 +5,14 @@ import {
5
5
  import {
6
6
  clipMultilineText,
7
7
  fetchAndSerializeTable
8
- } from "./chunk-ZDRZMLKO.js";
8
+ } from "./chunk-AL2KDGR2.js";
9
9
  import {
10
10
  normalizeNonNegativeMs,
11
11
  parseRetryAfterHeaderMs
12
12
  } from "./chunk-GAKEBQD6.js";
13
13
  import {
14
14
  slateToSimplifiedMarkdown
15
- } from "./chunk-PMKQGGGM.js";
15
+ } from "./chunk-AS4PVWA4.js";
16
16
  import {
17
17
  extractCategorizedMentions
18
18
  } from "./chunk-VP4WJWKW.js";
@@ -22,10 +22,10 @@ import {
22
22
  import {
23
23
  estimateTokenCount,
24
24
  fetchAndCacheMessages
25
- } from "./chunk-IHBCLYEE.js";
25
+ } from "./chunk-2ECQG4YX.js";
26
26
  import {
27
27
  fetchServerSyncedCredential
28
- } from "./chunk-4FBRSEV4.js";
28
+ } from "./chunk-VUW5FBDB.js";
29
29
  import {
30
30
  createSpaceKey
31
31
  } from "./chunk-UAD2WT54.js";
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-HNMXYYJR.js";
69
69
  import {
70
70
  read
71
- } from "./chunk-TISCADJH.js";
71
+ } from "./chunk-URUUZLPA.js";
72
72
  import {
73
73
  asNonEmptyStringArray
74
74
  } from "./chunk-I42VC5KR.js";
@@ -77,10 +77,10 @@ import {
77
77
  } from "./chunk-QSJ3HFEF.js";
78
78
  import {
79
79
  getRuntimeServerContext
80
- } from "./chunk-XBROXIGL.js";
80
+ } from "./chunk-UTLZINAP.js";
81
81
  import {
82
82
  isAbortError
83
- } from "./chunk-WI4XWASA.js";
83
+ } from "./chunk-OOSFSFMA.js";
84
84
  import {
85
85
  isLoopbackUrl
86
86
  } from "./chunk-4SN6J65J.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-XBROXIGL.js";
4
+ } from "./chunk-UTLZINAP.js";
5
5
  import {
6
6
  fetchFromClientDb
7
- } from "./chunk-WI4XWASA.js";
7
+ } from "./chunk-OOSFSFMA.js";
8
8
  import {
9
9
  buildTombstoneRecord
10
10
  } from "./chunk-GBRG75BQ.js";
@@ -13,7 +13,7 @@ import {
13
13
  readPageFunc,
14
14
  readPageFunctionSchema,
15
15
  slateToSimplifiedMarkdown
16
- } from "./chunk-PMKQGGGM.js";
16
+ } from "./chunk-AS4PVWA4.js";
17
17
  import {
18
18
  markdownToSlate
19
19
  } from "./chunk-3LY4F7SV.js";
@@ -28,10 +28,10 @@ import {
28
28
  } from "./chunk-VF4K2QE6.js";
29
29
  import {
30
30
  createDocState
31
- } from "./chunk-IJGXKGXW.js";
31
+ } from "./chunk-UB6SN4NJ.js";
32
32
  import {
33
33
  createDialogAction
34
- } from "./chunk-QJ7FZNYN.js";
34
+ } from "./chunk-ENOG22KJ.js";
35
35
  import {
36
36
  buildSkillDocMarkdown,
37
37
  normalizeSkillBudgetTier,
@@ -43,7 +43,7 @@ import {
43
43
  } from "./chunk-VC6OZXO5.js";
44
44
  import {
45
45
  shareResourceAction
46
- } from "./chunk-PP4S6RTL.js";
46
+ } from "./chunk-25LCXTML.js";
47
47
  import {
48
48
  addCategory,
49
49
  addContentToSpace,
@@ -74,16 +74,16 @@ import {
74
74
  updateContentCategory,
75
75
  updateContentTitle,
76
76
  updateStep
77
- } from "./chunk-IHBCLYEE.js";
77
+ } from "./chunk-2ECQG4YX.js";
78
78
  import {
79
79
  createAgent,
80
80
  runLlm,
81
81
  streamAgentChatTurn,
82
82
  updateAgent
83
- } from "./chunk-4FBRSEV4.js";
83
+ } from "./chunk-VUW5FBDB.js";
84
84
  import {
85
85
  addContentAction
86
- } from "./chunk-RGIM3WLT.js";
86
+ } from "./chunk-I6XMPTMR.js";
87
87
  import {
88
88
  createSpaceKey,
89
89
  normalizeSpaceId
@@ -136,7 +136,7 @@ import {
136
136
  selectAutoApproveSelfUpdateFields,
137
137
  selectCurrentServer,
138
138
  selectSyncServers
139
- } from "./chunk-K6BPOQLF.js";
139
+ } from "./chunk-VX3SXJ3N.js";
140
140
  import {
141
141
  patch,
142
142
  read,
@@ -144,7 +144,7 @@ import {
144
144
  readAndWaitAction,
145
145
  toTimestampMs,
146
146
  write
147
- } from "./chunk-TISCADJH.js";
147
+ } from "./chunk-URUUZLPA.js";
148
148
  import {
149
149
  asRecordOrEmpty
150
150
  } from "./chunk-KX6YBIHG.js";
@@ -172,7 +172,7 @@ import {
172
172
  } from "./chunk-QSJ3HFEF.js";
173
173
  import {
174
174
  readAction
175
- } from "./chunk-K777STIO.js";
175
+ } from "./chunk-DSZUWUYB.js";
176
176
  import {
177
177
  createAsyncThunk,
178
178
  getRuntimeServerContext,
@@ -180,10 +180,10 @@ import {
180
180
  selectIdentityToken,
181
181
  selectIdentityUserId,
182
182
  selectRuntimeSnapshot
183
- } from "./chunk-XBROXIGL.js";
183
+ } from "./chunk-UTLZINAP.js";
184
184
  import {
185
185
  isAbortError
186
- } from "./chunk-WI4XWASA.js";
186
+ } from "./chunk-OOSFSFMA.js";
187
187
  import {
188
188
  DEFAULT_LOCAL_API_ORIGIN
189
189
  } from "./chunk-4SN6J65J.js";
@@ -13706,7 +13706,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13706
13706
  const deletedDialogIds = [];
13707
13707
  const deletedDialogKeys = [];
13708
13708
  const failures = [];
13709
- const { deleteDialog } = await import("./dialogSlice-OVTO7QGW.js");
13709
+ const { deleteDialog } = await import("./dialogSlice-3M7KX2TX.js");
13710
13710
  for (const target of targets) {
13711
13711
  try {
13712
13712
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -13900,7 +13900,7 @@ var readSkillDocFunctionSchema = {
13900
13900
  }
13901
13901
  };
13902
13902
  async function readSkillDocFunc(args, thunkApi) {
13903
- const { buildReadDocResult } = await import("./readDocTool-2MWHSTQE.js");
13903
+ const { buildReadDocResult } = await import("./readDocTool-HUFU6OCT.js");
13904
13904
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
13905
13905
  if (typeof id !== "string" || !id.trim()) {
13906
13906
  throw new Error("readSkillDoc requires id or doc.");
@@ -19288,7 +19288,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19288
19288
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19289
19289
  async function addImageContentToSpace(input) {
19290
19290
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19291
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-UYFFTEWJ.js")).addContentAction;
19291
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-57RSIIMR.js")).addContentAction;
19292
19292
  await addContentAction2(
19293
19293
  {
19294
19294
  spaceId: input.spaceId,
@@ -22652,7 +22652,7 @@ var executeToolRun = createAsyncThunk(
22652
22652
  if (!executionInput) {
22653
22653
  throw new Error(`ToolRun ${id} has no input to execute with.`);
22654
22654
  }
22655
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-GHLZ3XD6.js");
22655
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-EQDEKR6N.js");
22656
22656
  const { executor } = findToolExecutor2(run.toolName);
22657
22657
  toolRunStarted({
22658
22658
  id: run.id,
@@ -22676,7 +22676,7 @@ var executeToolRun = createAsyncThunk(
22676
22676
  const latestState = thunkApi.getState();
22677
22677
  const userId = latestState.auth?.currentUser?.userId;
22678
22678
  if (userId) {
22679
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-QHBPICA2.js");
22679
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-TSVROA5U.js");
22680
22680
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
22681
22681
  }
22682
22682
  }
@@ -25079,7 +25079,7 @@ async function updateDocFunc(args, thunkApi) {
25079
25079
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25080
25080
  };
25081
25081
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25082
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-ZAYLW2HN.js");
25082
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-SV7E34D4.js");
25083
25083
  if (getDocState().pageKey === id) {
25084
25084
  applyExternalDocUpdate({
25085
25085
  slateData: finalSlateData,
@@ -25104,7 +25104,7 @@ async function updateDocFunc(args, thunkApi) {
25104
25104
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
25105
25105
  async function dispatchSetSettings(thunkApi, changes) {
25106
25106
  const injectedSetSettings = thunkApi?.extra?.setSettings;
25107
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-NOWHY2FK.js")).setSettings;
25107
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-IVKXJXMG.js")).setSettings;
25108
25108
  await thunkApi.dispatch(setSettings(changes)).unwrap();
25109
25109
  }
25110
25110
  var updateUserPreferenceProfileFunctionSchema = {
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
199
199
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
200
200
  }
201
201
  try {
202
- const { readAction } = await import("./read-EBMWX4Z6.js");
202
+ const { readAction } = await import("./read-GW7ZEI23.js");
203
203
  const pageData = await readAction({ dbKey: id }, thunkApi);
204
204
  if (!pageData) {
205
205
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -7,14 +7,14 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-XBROXIGL.js";
10
+ } from "./chunk-UTLZINAP.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
14
  isAbortError,
15
15
  isReadTimeoutError,
16
16
  logger
17
- } from "./chunk-WI4XWASA.js";
17
+ } from "./chunk-OOSFSFMA.js";
18
18
  import {
19
19
  shouldReplaceWithNextRecord
20
20
  } from "./chunk-GBRG75BQ.js";
@@ -7,7 +7,7 @@ import {
7
7
  prepareAndPersistMessage,
8
8
  uiAskChoiceFunc,
9
9
  uiAskChoiceFunctionSchema
10
- } from "./chunk-IHBCLYEE.js";
10
+ } from "./chunk-2ECQG4YX.js";
11
11
  import {
12
12
  require_date_fns
13
13
  } from "./chunk-M76ECQRD.js";
@@ -27,7 +27,7 @@ import {
27
27
  removeCachedEntity,
28
28
  upsertSSREntity,
29
29
  write
30
- } from "./chunk-TISCADJH.js";
30
+ } from "./chunk-URUUZLPA.js";
31
31
  import {
32
32
  createAgentKey,
33
33
  createDialogKey,
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-O4BU24WZ.js";
37
37
  import {
38
38
  selectIdentityUserId
39
- } from "./chunk-XBROXIGL.js";
39
+ } from "./chunk-UTLZINAP.js";
40
40
  import {
41
41
  asTrimmedString
42
42
  } from "./chunk-3EUW3WEO.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-ZDRZMLKO.js";
4
+ } from "./chunk-AL2KDGR2.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-P3PKED2I.js";
@@ -19,7 +19,7 @@ import {
19
19
  createCliCallAgentToolExecutor,
20
20
  createCliLocalRuntimeAdapter,
21
21
  isBuiltinNoloAgentRef
22
- } from "./chunk-YN4XDB7B.js";
22
+ } from "./chunk-RCSJFQPB.js";
23
23
  import {
24
24
  getReadableCliDb
25
25
  } from "./chunk-W4NVOSFF.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  buildMemorySubjectsForAgent,
49
49
  resolveAgentMemoryPolicy
50
- } from "./chunk-QJ7FZNYN.js";
50
+ } from "./chunk-ENOG22KJ.js";
51
51
  import {
52
52
  parseExternalSkillMarkdown,
53
53
  parseSkillDocProtocol
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  getModelContextWindow,
64
64
  parseUiAskChoiceContent
65
- } from "./chunk-IHBCLYEE.js";
65
+ } from "./chunk-2ECQG4YX.js";
66
66
  import {
67
67
  readPipeText,
68
68
  spawnProcess
@@ -119,7 +119,7 @@ import {
119
119
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_KEY,
120
120
  PUBLIC_GLM_52_AGENT_KEY,
121
121
  PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
122
- } from "./chunk-K777STIO.js";
122
+ } from "./chunk-DSZUWUYB.js";
123
123
  import {
124
124
  isLoopbackUrl
125
125
  } from "./chunk-4SN6J65J.js";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-TISCADJH.js";
7
+ } from "./chunk-URUUZLPA.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody,
11
11
  selectIdentityUserId
12
- } from "./chunk-XBROXIGL.js";
12
+ } from "./chunk-UTLZINAP.js";
13
13
 
14
14
  // packages/create/space/utils/permissions.ts
15
15
  var checkSpaceMembership = (spaceData, userId) => {