nolo-cli 0.16.0-alpha.14 → 0.16.0-alpha.16

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 (59) hide show
  1. package/{_executeModel-UU2JO5OB.js → _executeModel-UD2KY354.js} +11 -11
  2. package/{agentDeleteCommand-L6JRXPYK.js → agentDeleteCommand-UVL3YSRK.js} +6 -6
  3. package/{agentEmailCommands-FE3GY3T5.js → agentEmailCommands-77H4MECZ.js} +13 -13
  4. package/{agentListCommands-ZWSAIC4W.js → agentListCommands-J2F4E5C6.js} +7 -7
  5. package/{agentMachineCommands-VWQ2GZBY.js → agentMachineCommands-DKDXHUDO.js} +6 -6
  6. package/{agentRecordCommands-PYVZMRZM.js → agentRecordCommands-KESYXWJZ.js} +13 -13
  7. package/{agentRunCommand-3ADJ2J5U.js → agentRunCommand-LZMUCDVH.js} +13 -13
  8. package/{agentRuntimeLocal-LXTR6SAU.js → agentRuntimeLocal-44OVOJQ7.js} +3 -3
  9. package/{agentSlice-TI6ECUGN.js → agentSlice-R4TX7ZSI.js} +1 -1
  10. package/{appDeleteCommands-QIS37SXE.js → appDeleteCommands-KXZCWKF2.js} +7 -7
  11. package/{appDeployCommands-WBHB7T5B.js → appDeployCommands-JNXA3HP7.js} +7 -7
  12. package/{appDeployStatusCommands-A3OUV6GO.js → appDeployStatusCommands-IZ225RMY.js} +7 -7
  13. package/{appGetCommands-LCVYIH63.js → appGetCommands-WALF7VTA.js} +7 -7
  14. package/{appListCommands-PC7QOBUO.js → appListCommands-Y3KMGFVO.js} +7 -7
  15. package/{chunk-UUDRNDC7.js → chunk-3ZLCL32L.js} +1 -1
  16. package/{chunk-NZBK3ZET.js → chunk-4PIVMGLG.js} +1 -1
  17. package/{chunk-FTNTMGXT.js → chunk-5PWAAPWU.js} +1 -1
  18. package/{chunk-GFPESFS6.js → chunk-6HV3GSA4.js} +2 -2
  19. package/{chunk-W6OKITU6.js → chunk-ARJBFRBT.js} +8 -13
  20. package/{chunk-2ZLEOGS5.js → chunk-DLH6BOUO.js} +1 -1
  21. package/{chunk-YZXEEGKV.js → chunk-FQLNGLOX.js} +1 -1
  22. package/{chunk-64IEIMN4.js → chunk-HYURMZU3.js} +1 -1
  23. package/{chunk-TUWPYUVR.js → chunk-IAXU3LK5.js} +7 -7
  24. package/{chunk-PFW2ZEON.js → chunk-IIHJMUV5.js} +0 -2
  25. package/{chunk-Q6B6XJBG.js → chunk-IPY6NKPP.js} +13 -7
  26. package/{chunk-HGDFFA6T.js → chunk-IRLFPNG7.js} +2 -2
  27. package/{chunk-2OK7P5XF.js → chunk-LBOJLRSS.js} +10 -26
  28. package/{chunk-5QJFYG2N.js → chunk-NKN2NIW7.js} +1 -1
  29. package/{chunk-URVWRKFU.js → chunk-PVHN3TZV.js} +10 -15
  30. package/{chunk-ECGTEOC2.js → chunk-PXZY7NIS.js} +3 -3
  31. package/{chunk-6IGLIDDE.js → chunk-QW7K3Y7V.js} +4 -4
  32. package/{chunk-U3DCTSPN.js → chunk-RADTZFVM.js} +10 -12
  33. package/{chunk-XG7CSGP3.js → chunk-SR4IC7DS.js} +1 -1
  34. package/{chunk-GM37ZF7R.js → chunk-TX6S7JCM.js} +1 -1
  35. package/{chunk-W63ZTRQU.js → chunk-UIVHASVR.js} +3 -3
  36. package/{chunk-BOBNE3XT.js → chunk-X6LNYUFU.js} +2 -2
  37. package/{chunk-ZDDHKIWB.js → chunk-Y62XMRMG.js} +1 -1
  38. package/{createAgentAutomationAction-N4ZB7VX2.js → createAgentAutomationAction-HXIGGMHG.js} +3 -3
  39. package/{createDialogAction-KF6HXCCZ.js → createDialogAction-HDNEXHMH.js} +4 -4
  40. package/{createPageAction-FXWSJONZ.js → createPageAction-F37QJEHE.js} +3 -3
  41. package/{dialogCommands-ULS6HV5V.js → dialogCommands-6HHOMMSZ.js} +7 -7
  42. package/{dialogSlice-K32QLYS7.js → dialogSlice-ZCVFV3WX.js} +3 -3
  43. package/{docCreateCommands-RZTRTRU4.js → docCreateCommands-C6DUOJZQ.js} +6 -6
  44. package/{docDeleteCommands-FU36A663.js → docDeleteCommands-WAKYWSKE.js} +7 -7
  45. package/{docReadCommands-IX4JXD4X.js → docReadCommands-QXWKU7NB.js} +6 -6
  46. package/{docStore-L6HBNJ3R.js → docStore-CSWTGKJJ.js} +4 -4
  47. package/{docUpdateCommands-W4OCR55Z.js → docUpdateCommands-7AX4KLZZ.js} +6 -6
  48. package/{handleSendMessageAction-MFKKZXV7.js → handleSendMessageAction-3KHB7J7E.js} +3 -3
  49. package/index.js +40 -40
  50. package/{machineCommands-4MFLZERH.js → machineCommands-GKOAG4SD.js} +12 -12
  51. package/{machineWsRunDispatch-AAHRNKIR.js → machineWsRunDispatch-CBRB2L3Q.js} +12 -12
  52. package/package.json +1 -1
  53. package/{readlineWorkspace-7OPITHTN.js → readlineWorkspace-LTW3NLCR.js} +17 -23
  54. package/{runAgentClientLoop-HRWV7KE2.js → runAgentClientLoop-LVE52RH4.js} +8 -8
  55. package/{spaceCommands-GMMQTMHK.js → spaceCommands-7RB3OWGN.js} +6 -6
  56. package/{spaceSlice-V2P5TTQU.js → spaceSlice-HLNFOVCA.js} +3 -3
  57. package/{streamAgentChatTurn-ZANOYOUR.js → streamAgentChatTurn-VS5W3C3N.js} +37 -40
  58. package/{tools-YHZP6NXU.js → tools-RWQXREN7.js} +6 -6
  59. package/{updateDialogTitleAction-IKTPGPPE.js → updateDialogTitleAction-C6WFIIAW.js} +3 -3
@@ -8,7 +8,7 @@ import {
8
8
  buildLocalAgentLookupKeys,
9
9
  normalizeAgentHandle,
10
10
  shouldReadAgentKeyRemotely
11
- } from "./chunk-XG7CSGP3.js";
11
+ } from "./chunk-SR4IC7DS.js";
12
12
  import {
13
13
  LOCAL_CODEX_AGENT_ID,
14
14
  LOCAL_CODEX_AGENT_KEY,
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  inlineImageUrlsForCustomProvider,
23
23
  prepareTools
24
- } from "./chunk-GM37ZF7R.js";
24
+ } from "./chunk-TX6S7JCM.js";
25
25
  import {
26
26
  getAntigravityUserAgent,
27
27
  isAntigravityOAuthAgent,
@@ -42,7 +42,7 @@ import {
42
42
  readXhsProfileFunctionSchema,
43
43
  rememberMemoryFunctionSchema,
44
44
  resolveEffectiveEnabledPacks
45
- } from "./chunk-URVWRKFU.js";
45
+ } from "./chunk-PVHN3TZV.js";
46
46
  import {
47
47
  createDrainExhaustedResponse,
48
48
  isCoreDrainingBody,
@@ -54,13 +54,13 @@ import {
54
54
  } from "./chunk-OWOHNGCN.js";
55
55
  import {
56
56
  prepareTokenUsageData
57
- } from "./chunk-2OK7P5XF.js";
57
+ } from "./chunk-LBOJLRSS.js";
58
58
  import {
59
59
  BUILTIN_TITLE_LLM_CONFIG
60
60
  } from "./chunk-XOIF2TNF.js";
61
61
  import {
62
62
  fetchServerSyncedCredential
63
- } from "./chunk-ECGTEOC2.js";
63
+ } from "./chunk-PXZY7NIS.js";
64
64
  import {
65
65
  buildAgentRuntimeDialogWritePlan,
66
66
  buildLocalWorkspaceOpenAiTools,
@@ -74,7 +74,7 @@ import {
74
74
  parseSseDataLineObject,
75
75
  readOpenAiCompatibleSseCompletion,
76
76
  resolveOpenAiCompatibleProviderConfig
77
- } from "./chunk-5QJFYG2N.js";
77
+ } from "./chunk-NKN2NIW7.js";
78
78
  import {
79
79
  buildPlatformChatCompletionRequest,
80
80
  canUsePlatformChatProvider,
@@ -89,7 +89,7 @@ import {
89
89
  } from "./chunk-OIQPORYI.js";
90
90
  import {
91
91
  summarizeToolArguments
92
- } from "./chunk-ZDDHKIWB.js";
92
+ } from "./chunk-Y62XMRMG.js";
93
93
  import {
94
94
  convertMessagesToResponsesInput,
95
95
  toResponsesTools
@@ -2216,8 +2216,6 @@ function buildServerPlatformToolExecutors(args) {
2216
2216
  }
2217
2217
  const body = { userInput: query };
2218
2218
  if (args.agentKey) body.agentKey = args.agentKey;
2219
- const memorySubjectId = typeof call.runtimeContext?.memorySubjectId === "string" ? call.runtimeContext.memorySubjectId.trim() : args.memorySubjectId?.trim();
2220
- if (memorySubjectId) body.memorySubjectId = memorySubjectId;
2221
2219
  const raw = await postServer("/api/memory/query", body, {
2222
2220
  retryTransient: true
2223
2221
  });
@@ -2244,8 +2242,6 @@ function buildServerPlatformToolExecutors(args) {
2244
2242
  source: "agent-inferred"
2245
2243
  };
2246
2244
  if (args.agentKey) body.agentKey = args.agentKey;
2247
- const memorySubjectId = typeof call.runtimeContext?.memorySubjectId === "string" ? call.runtimeContext.memorySubjectId.trim() : args.memorySubjectId?.trim();
2248
- if (memorySubjectId) body.memorySubjectId = memorySubjectId;
2249
2245
  const raw = await postServer("/api/memory/remember", body, {
2250
2246
  retryTransient: true
2251
2247
  });
@@ -3014,8 +3010,7 @@ function buildLocalToolExecutors(args) {
3014
3010
  ...buildServerPlatformToolExecutors({
3015
3011
  env: args.env,
3016
3012
  fetchImpl: args.fetchImpl,
3017
- agentKey: args.agentKey,
3018
- memorySubjectId: args.memorySubjectId
3013
+ agentKey: args.agentKey
3019
3014
  }),
3020
3015
  ...buildCliWorkspaceToolExecutors({
3021
3016
  env: args.env,
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-NZBK3ZET.js";
5
+ } from "./chunk-4PIVMGLG.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-FTNTMGXT.js";
3
+ } from "./chunk-5PWAAPWU.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-A7GB5UGH.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-2ZLEOGS5.js";
10
+ } from "./chunk-DLH6BOUO.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
@@ -5,10 +5,10 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-GM37ZF7R.js";
8
+ } from "./chunk-TX6S7JCM.js";
9
9
  import {
10
10
  performFetchRequest
11
- } from "./chunk-6IGLIDDE.js";
11
+ } from "./chunk-QW7K3Y7V.js";
12
12
  import {
13
13
  createSSEParser,
14
14
  createToolRunId,
@@ -19,7 +19,7 @@ import {
19
19
  toolRunSetPending,
20
20
  toolRunStarted,
21
21
  toolRunSucceeded
22
- } from "./chunk-URVWRKFU.js";
22
+ } from "./chunk-PVHN3TZV.js";
23
23
  import {
24
24
  getPublicImageAgentMode
25
25
  } from "./chunk-VIDPVFP3.js";
@@ -29,13 +29,13 @@ import {
29
29
  messageStreaming,
30
30
  selectCurrentSpaceId,
31
31
  updateToolMessage
32
- } from "./chunk-2OK7P5XF.js";
32
+ } from "./chunk-LBOJLRSS.js";
33
33
  import {
34
34
  streamAgentChatTurn
35
- } from "./chunk-ECGTEOC2.js";
35
+ } from "./chunk-PXZY7NIS.js";
36
36
  import {
37
37
  EMPTY_ASSISTANT_REPAIR_PROMPT
38
- } from "./chunk-ZDDHKIWB.js";
38
+ } from "./chunk-Y62XMRMG.js";
39
39
  import {
40
40
  accumulateToolCallDelta,
41
41
  createThinkParserState,
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-LSFAWXKC.js";
48
48
  import {
49
49
  getModelInfo
50
- } from "./chunk-PFW2ZEON.js";
50
+ } from "./chunk-IIHJMUV5.js";
51
51
  import {
52
52
  getApiEndpoint
53
53
  } from "./chunk-HQPG2PIV.js";
@@ -544,7 +544,6 @@ function planCompression(input) {
544
544
  }
545
545
 
546
546
  // packages/agent-runtime/autoExecutionProfiles.ts
547
- var AUTO_ASSISTANT_MEMORY_SUBJECT_ID = "builtin:auto";
548
547
  var createProfile = (input) => ({
549
548
  id: input.id,
550
549
  tier: input.tier,
@@ -598,7 +597,6 @@ export {
598
597
  serializeMessageContent,
599
598
  normalizeAssistantContentBuffer,
600
599
  planCompression,
601
- AUTO_ASSISTANT_MEMORY_SUBJECT_ID,
602
600
  DEFAULT_AUTO_EXECUTION_PROFILE,
603
601
  resolveAutoExecutionProfile
604
602
  };
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-2OK7P5XF.js";
6
+ } from "./chunk-LBOJLRSS.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -333,12 +333,18 @@ function resolveAgentMemoryPolicy(input) {
333
333
  }
334
334
  function buildMemorySubjectsForAgent(input) {
335
335
  const policy = input.policy ?? resolveAgentMemoryPolicy({ agentKey: input.agentKey });
336
- const subjectId = input.memorySubjectId?.trim() || input.agentKey;
337
- return [
338
- { subjectType: "agent", subjectId },
339
- policy.includeUserSubject && input.userId ? { subjectType: "user", subjectId: input.userId } : null,
340
- input.spaceId ? { subjectType: "space", subjectId: input.spaceId } : null
341
- ].filter(Boolean);
336
+ const result = [];
337
+ const agentSubject = input.memorySubjectId?.trim();
338
+ if (agentSubject) {
339
+ result.push({ subjectType: "agent", subjectId: agentSubject });
340
+ }
341
+ if (policy.includeUserSubject && input.userId) {
342
+ result.push({ subjectType: "user", subjectId: input.userId });
343
+ }
344
+ if (input.spaceId) {
345
+ result.push({ subjectType: "space", subjectId: input.spaceId });
346
+ }
347
+ return result;
342
348
  }
343
349
 
344
350
  // packages/ai/memory/recentRelationshipRecap.ts
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-2ZLEOGS5.js";
4
+ } from "./chunk-DLH6BOUO.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-NZBK3ZET.js";
7
+ } from "./chunk-4PIVMGLG.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
10
  } from "./chunk-XJITGCTM.js";
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  deleteServerSyncedCredential,
17
17
  runLlm
18
- } from "./chunk-ECGTEOC2.js";
18
+ } from "./chunk-PXZY7NIS.js";
19
19
  import {
20
20
  cleanupCliSessionForDialog
21
21
  } from "./chunk-RPDGJO4D.js";
@@ -30,7 +30,6 @@ import {
30
30
  require_date_fns
31
31
  } from "./chunk-M76ECQRD.js";
32
32
  import {
33
- AUTO_ASSISTANT_MEMORY_SUBJECT_ID,
34
33
  DEFAULT_AUTO_EXECUTION_PROFILE,
35
34
  DEFAULT_CONTEXT_WINDOW,
36
35
  getModelContextWindow,
@@ -39,7 +38,7 @@ import {
39
38
  planCompression,
40
39
  resolveAutoExecutionProfile,
41
40
  serializeMessageContent
42
- } from "./chunk-PFW2ZEON.js";
41
+ } from "./chunk-IIHJMUV5.js";
43
42
  import {
44
43
  findModelConfig,
45
44
  getModelConfig
@@ -3819,15 +3818,6 @@ var resolveDialogAutoTier = (dialog) => {
3819
3818
  const tier = asOptionalTrimmedString(dialog?.autoRoute?.stickyTier);
3820
3819
  return tier === "flash" || tier === "balanced" || tier === "quality" || tier === "image" ? tier : void 0;
3821
3820
  };
3822
- var resolveDialogMemorySubjectId = (dialog, explicitAgentKey) => {
3823
- const explicit = asOptionalTrimmedString(explicitAgentKey);
3824
- if (explicit) return explicit;
3825
- if (resolveDialogAgentMode(dialog) === "fixed") {
3826
- const fixed = getPrimaryDialogAgentId(dialog);
3827
- if (fixed) return fixed;
3828
- }
3829
- return AUTO_ASSISTANT_MEMORY_SUBJECT_ID;
3830
- };
3831
3821
  var resolveDialogRuntimeAgentKey = (dialog, explicitAgentKey) => {
3832
3822
  const explicit = asOptionalTrimmedString(explicitAgentKey);
3833
3823
  if (explicit) return explicit;
@@ -3843,13 +3833,9 @@ var resolveDialogRuntimeAgentKey = (dialog, explicitAgentKey) => {
3843
3833
  // packages/chat/dialog/actions/handleSendMessageResolver.ts
3844
3834
  function resolveHandleSendMessageContext(input) {
3845
3835
  const { dialogConfig, targetAgentKey, runtimeOptions } = input;
3846
- const memoryRuntimeOptions = {
3847
- ...runtimeOptions ?? {},
3848
- memorySubjectId: resolveDialogMemorySubjectId(dialogConfig, targetAgentKey)
3849
- };
3850
3836
  return {
3851
3837
  agentKeyToUse: resolveDialogRuntimeAgentKey(dialogConfig, targetAgentKey),
3852
- effectiveRuntimeOptions: dialogConfig.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationRuntimeOptions(memoryRuntimeOptions) : memoryRuntimeOptions
3838
+ effectiveRuntimeOptions: dialogConfig.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationRuntimeOptions(runtimeOptions ?? {}) : runtimeOptions
3853
3839
  };
3854
3840
  }
3855
3841
 
@@ -4648,7 +4634,6 @@ async function captureUnderstandingFromCompletedUiTurn(input) {
4648
4634
  },
4649
4635
  body: JSON.stringify({
4650
4636
  agentKey: input.agentKey,
4651
- memorySubjectId: resolveDialogMemorySubjectId(dialog),
4652
4637
  dialogId: input.dialogId,
4653
4638
  userInput: latestUserInput,
4654
4639
  assistantText: input.assistantText,
@@ -5568,7 +5553,7 @@ var messageSlice = createSliceWithThunks({
5568
5553
  runtimeOptions: args.runtimeOptions
5569
5554
  });
5570
5555
  if (agentKeyToUse) {
5571
- const { streamAgentChatTurn } = await import("./agentSlice-TI6ECUGN.js");
5556
+ const { streamAgentChatTurn } = await import("./agentSlice-R4TX7ZSI.js");
5572
5557
  await dispatch(
5573
5558
  streamAgentChatTurn({
5574
5559
  agentKey: agentKeyToUse,
@@ -8288,7 +8273,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8288
8273
  }
8289
8274
  if (isCurrentDialog) {
8290
8275
  await thunkApi.dispatch(resetMsgs());
8291
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-K32QLYS7.js");
8276
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ZCVFV3WX.js");
8292
8277
  dispatch(clearPendingAttachments2());
8293
8278
  clearWorkflow();
8294
8279
  }
@@ -8297,15 +8282,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
8297
8282
 
8298
8283
  // packages/chat/dialog/dialogSlice.ts
8299
8284
  var runCreateDialogAction = async (args, thunkApi) => {
8300
- const { createDialogAction } = await import("./createDialogAction-KF6HXCCZ.js");
8285
+ const { createDialogAction } = await import("./createDialogAction-HDNEXHMH.js");
8301
8286
  return createDialogAction(args, thunkApi);
8302
8287
  };
8303
8288
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
8304
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-N4ZB7VX2.js");
8289
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-HXIGGMHG.js");
8305
8290
  return createAgentAutomationAction(args, thunkApi);
8306
8291
  };
8307
8292
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
8308
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-IKTPGPPE.js");
8293
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-C6WFIIAW.js");
8309
8294
  return updateDialogTitleAction(args, thunkApi);
8310
8295
  };
8311
8296
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -8325,7 +8310,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
8325
8310
  return setDialogExtraReferencesAction(args, thunkApi);
8326
8311
  };
8327
8312
  var runHandleSendMessageAction = async (args, thunkApi) => {
8328
- const { handleSendMessageAction } = await import("./handleSendMessageAction-MFKKZXV7.js");
8313
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-3KHB7J7E.js");
8329
8314
  return handleSendMessageAction(args, thunkApi);
8330
8315
  };
8331
8316
  function clearDialogState() {
@@ -8338,7 +8323,7 @@ var createPageAndAddReference = createAsyncThunk(
8338
8323
  async (payload, { dispatch, getState, rejectWithValue }) => {
8339
8324
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
8340
8325
  try {
8341
- const { createDocState } = await import("./docStore-L6HBNJ3R.js");
8326
+ const { createDocState } = await import("./docStore-CSWTGKJJ.js");
8342
8327
  const pageKey = await createDocState(
8343
8328
  { slateData, title },
8344
8329
  { dispatch, getState }
@@ -15183,7 +15168,6 @@ export {
15183
15168
  parseUiAskChoiceContent,
15184
15169
  PERSONALIZATION_DIALOG_CATEGORY,
15185
15170
  buildPersonalizationDialogPolicyContext,
15186
- resolveDialogMemorySubjectId,
15187
15171
  resolveDialogRuntimeAgentKey,
15188
15172
  resolveHandleSendMessageContext,
15189
15173
  estimateMissingUsage,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-AAODAAUQ.js";
8
8
  import {
9
9
  parseToolArgumentsJson
10
- } from "./chunk-ZDDHKIWB.js";
10
+ } from "./chunk-Y62XMRMG.js";
11
11
  import {
12
12
  createThinkParserState,
13
13
  createToolCallAccumulator,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-KQHGZWSV.js";
16
16
  import {
17
17
  createDocState
18
- } from "./chunk-GFPESFS6.js";
18
+ } from "./chunk-6HV3GSA4.js";
19
19
  import {
20
20
  readDocFunc,
21
21
  readDocFunctionSchema,
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-VF4K2QE6.js";
38
38
  import {
39
39
  createDialogAction
40
- } from "./chunk-Q6B6XJBG.js";
40
+ } from "./chunk-IPY6NKPP.js";
41
41
  import {
42
42
  buildSkillDocMarkdown,
43
43
  normalizeSkillBudgetTier,
@@ -63,7 +63,6 @@ import {
63
63
  instance,
64
64
  loadTableRows,
65
65
  normalizeAppRouteId,
66
- resolveDialogMemorySubjectId,
67
66
  resolveDialogRuntimeAgentKey,
68
67
  selectAllMemberSpaces,
69
68
  selectAllMsgs,
@@ -78,13 +77,13 @@ import {
78
77
  updateContentCategory,
79
78
  updateContentTitle,
80
79
  updateStep
81
- } from "./chunk-2OK7P5XF.js";
80
+ } from "./chunk-LBOJLRSS.js";
82
81
  import {
83
82
  createAgent,
84
83
  runLlm,
85
84
  streamAgentChatTurn,
86
85
  updateAgent
87
- } from "./chunk-ECGTEOC2.js";
86
+ } from "./chunk-PXZY7NIS.js";
88
87
  import {
89
88
  NOLO_WORKSPACE_TOOL_NAMES,
90
89
  buildNoloSubjectRefQueryTarget,
@@ -103,7 +102,7 @@ import {
103
102
  } from "./chunk-OSIJVBXP.js";
104
103
  import {
105
104
  buildDatabaseFileContentUrl
106
- } from "./chunk-PFW2ZEON.js";
105
+ } from "./chunk-IIHJMUV5.js";
107
106
  import {
108
107
  DEFAULT_MODEL
109
108
  } from "./chunk-HQPG2PIV.js";
@@ -14169,7 +14168,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14169
14168
  const deletedDialogIds = [];
14170
14169
  const deletedDialogKeys = [];
14171
14170
  const failures = [];
14172
- const { deleteDialog } = await import("./dialogSlice-K32QLYS7.js");
14171
+ const { deleteDialog } = await import("./dialogSlice-ZCVFV3WX.js");
14173
14172
  for (const target of targets) {
14174
14173
  try {
14175
14174
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -20682,8 +20681,6 @@ async function rememberMemoryFunc(args, thunkApi) {
20682
20681
  const spaceId = selectCurrentSpaceId(state) || void 0;
20683
20682
  const content = String(args.content ?? "").trim();
20684
20683
  const scope = args.scope ?? "auto";
20685
- const dialogKey = getActiveDialogKey();
20686
- const dialog = dialogKey ? selectById(state, dialogKey) : null;
20687
20684
  const kind = args.kind ?? "episodic";
20688
20685
  if (!content) {
20689
20686
  throw new Error("rememberMemory \u9700\u8981\u975E\u7A7A content\u3002");
@@ -20695,8 +20692,7 @@ async function rememberMemoryFunc(args, thunkApi) {
20695
20692
  content,
20696
20693
  scope,
20697
20694
  kind,
20698
- spaceId,
20699
- ...scope === "auto" ? { memorySubjectId: resolveDialogMemorySubjectId(dialog) } : {}
20695
+ spaceId
20700
20696
  },
20701
20697
  { withAuth: true }
20702
20698
  );
@@ -20743,7 +20739,6 @@ async function queryMemoryFunc(args, thunkApi) {
20743
20739
  "/api/memory/query",
20744
20740
  {
20745
20741
  agentKey: resolveDialogRuntimeAgentKey(dialog),
20746
- memorySubjectId: resolveDialogMemorySubjectId(dialog),
20747
20742
  userInput: query,
20748
20743
  ...selectCurrentSpaceId(state) ? { spaceId: selectCurrentSpaceId(state) } : {}
20749
20744
  },
@@ -23437,7 +23432,7 @@ var executeToolRun = createAsyncThunk(
23437
23432
  if (!executionInput) {
23438
23433
  throw new Error(`ToolRun ${id} has no input to execute with.`);
23439
23434
  }
23440
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-YHZP6NXU.js");
23435
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-RWQXREN7.js");
23441
23436
  const { executor } = findToolExecutor2(run.toolName);
23442
23437
  toolRunStarted({
23443
23438
  id: run.id,
@@ -23461,7 +23456,7 @@ var executeToolRun = createAsyncThunk(
23461
23456
  const latestState = thunkApi.getState();
23462
23457
  const userId = latestState.auth?.currentUser?.userId;
23463
23458
  if (userId) {
23464
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-V2P5TTQU.js");
23459
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-HLNFOVCA.js");
23465
23460
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
23466
23461
  }
23467
23462
  }
@@ -25944,7 +25939,7 @@ async function updateDocFunc(args, thunkApi) {
25944
25939
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25945
25940
  };
25946
25941
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25947
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-L6HBNJ3R.js");
25942
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-CSWTGKJJ.js");
25948
25943
  if (getDocState().pageKey === id) {
25949
25944
  applyExternalDocUpdate({
25950
25945
  slateData: finalSlateData,
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
300
300
  const overrides = {};
301
301
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
302
302
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
303
- const { _executeModel } = await import("./_executeModel-UU2JO5OB.js");
303
+ const { _executeModel } = await import("./_executeModel-UD2KY354.js");
304
304
  return _executeModel(
305
305
  {
306
306
  isStreaming: args.isStreaming ?? false,
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
321
321
  * - 循环直到无工具调用或触发其他运行时停止条件
322
322
  */
323
323
  runAgent: create.asyncThunk(async (args, thunkApi) => {
324
- const { runAgentClientLoop } = await import("./runAgentClientLoop-HRWV7KE2.js");
324
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-LVE52RH4.js");
325
325
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
326
326
  {
327
327
  agentKey: args.agentKey,
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
337
337
  * 聊天轮次流式 Agent 调用
338
338
  */
339
339
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
340
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-ZANOYOUR.js");
340
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VS5W3C3N.js");
341
341
  return streamAgentChatTurnHandler(args, thunkApi);
342
342
  }),
343
343
  /**
@@ -6,7 +6,7 @@ import {
6
6
  clipMultilineText,
7
7
  fetchAndSerializeTable,
8
8
  waitForAbortableDelay
9
- } from "./chunk-URVWRKFU.js";
9
+ } from "./chunk-PVHN3TZV.js";
10
10
  import {
11
11
  createDrainExhaustedResponse,
12
12
  isCoreDrainingBody,
@@ -26,10 +26,10 @@ import {
26
26
  import {
27
27
  fetchAndCacheMessages,
28
28
  shouldUseServerProxy
29
- } from "./chunk-2OK7P5XF.js";
29
+ } from "./chunk-LBOJLRSS.js";
30
30
  import {
31
31
  fetchServerSyncedCredential
32
- } from "./chunk-ECGTEOC2.js";
32
+ } from "./chunk-PXZY7NIS.js";
33
33
  import {
34
34
  buildCurrentTimeBlock,
35
35
  buildIdentityBlock,
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OSIJVBXP.js";
53
53
  import {
54
54
  estimateTokenCount
55
- } from "./chunk-PFW2ZEON.js";
55
+ } from "./chunk-IIHJMUV5.js";
56
56
  import {
57
57
  clampReasoningEffort,
58
58
  getModelConfig,
@@ -20,17 +20,17 @@ import {
20
20
  parseAgentRunEvent,
21
21
  t,
22
22
  toolLabel
23
- } from "./chunk-W6OKITU6.js";
23
+ } from "./chunk-ARJBFRBT.js";
24
24
  import {
25
25
  getReadableCliDb
26
26
  } from "./chunk-W4NVOSFF.js";
27
27
  import {
28
28
  readDbRecord,
29
29
  resolveAgentRecordFromHybridStore
30
- } from "./chunk-NZBK3ZET.js";
30
+ } from "./chunk-4PIVMGLG.js";
31
31
  import {
32
32
  normalizeAgentHandle
33
- } from "./chunk-XG7CSGP3.js";
33
+ } from "./chunk-SR4IC7DS.js";
34
34
  import {
35
35
  NOLO_PROJECT_MANAGER_AGENT_KEY,
36
36
  isLocalCliAgentKey
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-LTRXGFMS.js";
42
42
  import {
43
43
  formatAgentListCard
44
- } from "./chunk-URVWRKFU.js";
44
+ } from "./chunk-PVHN3TZV.js";
45
45
  import {
46
46
  isGatewayHttpStatus
47
47
  } from "./chunk-RQSOAMPJ.js";
@@ -50,7 +50,7 @@ import {
50
50
  chooseMemoryOwners,
51
51
  loadMemoryCandidatesFromDb,
52
52
  resolveAgentMemoryPolicy
53
- } from "./chunk-Q6B6XJBG.js";
53
+ } from "./chunk-IPY6NKPP.js";
54
54
  import {
55
55
  parseExternalSkillMarkdown,
56
56
  parseSkillDocProtocol
@@ -59,7 +59,7 @@ import {
59
59
  API_REPORTED_COST_MULTIPLIER,
60
60
  normalizeUsage,
61
61
  parseUiAskChoiceContent
62
- } from "./chunk-2OK7P5XF.js";
62
+ } from "./chunk-LBOJLRSS.js";
63
63
  import {
64
64
  buildSkillDiscoveryContextBlock
65
65
  } from "./chunk-7OBMZCRD.js";
@@ -75,7 +75,7 @@ import {
75
75
  LOCAL_TURN_ABORTED_CODE,
76
76
  readActionGate,
77
77
  readCommandActionGatePayload
78
- } from "./chunk-ZDDHKIWB.js";
78
+ } from "./chunk-Y62XMRMG.js";
79
79
  import {
80
80
  createThinkParserState,
81
81
  flushThinkParser,
@@ -88,7 +88,7 @@ import {
88
88
  import {
89
89
  DEFAULT_CONTEXT_WINDOW,
90
90
  getModelContextWindow
91
- } from "./chunk-PFW2ZEON.js";
91
+ } from "./chunk-IIHJMUV5.js";
92
92
  import {
93
93
  clipCompactText
94
94
  } from "./chunk-5MMAK75Q.js";
@@ -3528,7 +3528,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
3528
3528
  // packages/cli/client/agentRun.ts
3529
3529
  import { ulid } from "ulid";
3530
3530
  async function loadRunLocalAgentTurn() {
3531
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-LXTR6SAU.js");
3531
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-44OVOJQ7.js");
3532
3532
  return runLocalAgentTurn;
3533
3533
  }
3534
3534
  async function resolveCurrentMachineId(options) {
@@ -3796,7 +3796,6 @@ async function runHttpAgentTurn(options, authToken) {
3796
3796
  entrypoint: "nolo-cli",
3797
3797
  capabilities: ["text-io", "streaming", "slash-commands"],
3798
3798
  ...options.dialogAgentMode ? { dialogAgentMode: options.dialogAgentMode } : {},
3799
- ...options.memorySubjectId ? { memorySubjectId: options.memorySubjectId } : {},
3800
3799
  ...subjectRefs ? { subjectRefs } : {},
3801
3800
  ...allowedChildAgentKeys?.length ? { allowedChildAgentKeys } : {},
3802
3801
  ...blockedToolNames?.length ? { blockedToolNames } : {},
@@ -3961,7 +3960,6 @@ async function runLocalAgentTurnForCli(options, settings) {
3961
3960
  const runtimeContext = subjectRefs || allowedChildAgentKeys?.length || allowedToolNames?.length || blockedToolNames?.length || options.parentWakeOnTerminal || options.dialogAgentMode ? {
3962
3961
  ...subjectRefs ? { subjectRefs } : {},
3963
3962
  ...options.dialogAgentMode ? { dialogAgentMode: options.dialogAgentMode } : {},
3964
- ...options.memorySubjectId ? { memorySubjectId: options.memorySubjectId } : {},
3965
3963
  ...allowedChildAgentKeys?.length ? { allowedChildAgentKeys } : {},
3966
3964
  ...allowedToolNames?.length ? { allowedToolNames } : {},
3967
3965
  ...blockedToolNames?.length ? { blockedToolNames } : {},
@@ -3970,7 +3968,7 @@ async function runLocalAgentTurnForCli(options, settings) {
3970
3968
  } : void 0;
3971
3969
  const currentDialogId = options.continueDialogId ?? ulid();
3972
3970
  const runChildTurn = async (input) => {
3973
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-LXTR6SAU.js");
3971
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-44OVOJQ7.js");
3974
3972
  return runLocalAgentTurn(input);
3975
3973
  };
3976
3974
  const createFreshChildBaseAdapter = () => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-5QJFYG2N.js";
4
+ } from "./chunk-NKN2NIW7.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-URVWRKFU.js";
4
+ } from "./chunk-PVHN3TZV.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-OSIJVBXP.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-W6OKITU6.js";
4
+ } from "./chunk-ARJBFRBT.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-URVWRKFU.js";
7
+ } from "./chunk-PVHN3TZV.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-ZDDHKIWB.js";
10
+ } from "./chunk-Y62XMRMG.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-5CS33IBL.js";