nolo-cli 0.71.0 → 0.72.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/{_executeModel-GOV2OHC7.js → _executeModel-TKD22VDA.js} +10 -10
  2. package/{agentEmailCommands-YZQ2VVHY.js → agentEmailCommands-G53VVKIL.js} +9 -9
  3. package/{agentMachineCommands-UCYM5RRQ.js → agentMachineCommands-A7D55KN2.js} +1 -1
  4. package/{agentRecordCommands-TPBYOPMA.js → agentRecordCommands-UVU5UPJB.js} +9 -9
  5. package/{agentRunCommand-HBC2EQVU.js → agentRunCommand-PDKUP3L4.js} +9 -9
  6. package/{agentSlice-ZPODGT3P.js → agentSlice-FZBFYKP3.js} +1 -1
  7. package/{chatQueueReduxAdapter-Z67OC4WO.js → chatQueueReduxAdapter-E2D4NR2W.js} +2 -2
  8. package/{chunk-ZIUMSKK4.js → chunk-3LBE76GR.js} +8 -8
  9. package/{chunk-RFMPSCHX.js → chunk-4NI7LU7J.js} +7 -7
  10. package/{chunk-PWGW5JTK.js → chunk-7GCIXOQA.js} +1 -1
  11. package/{chunk-NUTDASGX.js → chunk-AOKRQAUQ.js} +2 -2
  12. package/{chunk-DQAEUZSQ.js → chunk-I5O24WHB.js} +2 -2
  13. package/{chunk-VLX45P4L.js → chunk-JWXTOIGR.js} +2 -2
  14. package/{chunk-BLCUMZNV.js → chunk-R4XZMDRV.js} +1 -1
  15. package/{chunk-FCCT2LU2.js → chunk-R5NCDOHB.js} +47 -19
  16. package/{chunk-F657NADX.js → chunk-RVCBKVIR.js} +3 -3
  17. package/{chunk-AAWBX67U.js → chunk-S2RB4LMB.js} +5 -5
  18. package/{chunk-YYLLD6H6.js → chunk-S4IVP3JA.js} +2 -2
  19. package/{chunk-SPQ7GSUX.js → chunk-SV63E2UZ.js} +26 -14
  20. package/{chunk-TVDZABBT.js → chunk-U4N7NIN3.js} +3 -3
  21. package/{chunk-3NVAU4WZ.js → chunk-ZDB5QFH4.js} +1 -1
  22. package/{contentThunks-VGXYTSKU.js → contentThunks-QLAU2LGJ.js} +3 -3
  23. package/{createAgentAutomationAction-6YBZFLET.js → createAgentAutomationAction-JUSLLNYE.js} +3 -3
  24. package/{createDialogAction-N7CTNKB5.js → createDialogAction-B52IPGBY.js} +4 -4
  25. package/{createPageAction-RXOOVKVO.js → createPageAction-ACAIWRDQ.js} +3 -3
  26. package/{dialogSlice-NLSKRXBN.js → dialogSlice-RM3EW5AO.js} +2 -2
  27. package/{docStore-CIAYE5WP.js → docStore-Q45M4B2I.js} +1 -1
  28. package/{handleSendMessageAction-ENUNMW3Z.js → handleSendMessageAction-I6KFXKDM.js} +2 -2
  29. package/index.js +15 -15
  30. package/{machineCommands-APIJY7UA.js → machineCommands-QEYH5J5E.js} +9 -9
  31. package/{machineWsRunDispatch-42WKRDE7.js → machineWsRunDispatch-MFYQADTQ.js} +9 -9
  32. package/package.json +1 -1
  33. package/{readlineWorkspace-MUV7VRD4.js → readlineWorkspace-WQZX3WSK.js} +155 -40
  34. package/{runAgentClientLoop-A4OXYOCL.js → runAgentClientLoop-SLKSZWCS.js} +8 -8
  35. package/{streamAgentChatTurn-YHKNJEFR.js → streamAgentChatTurn-FLA6GTFJ.js} +9 -9
  36. package/{tools-S5RSWF3R.js → tools-NA2SK5QX.js} +6 -6
  37. package/{updateDialogTitleAction-BU2VPE5B.js → updateDialogTitleAction-55Q3R6RJ.js} +3 -3
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  fetchAgentContexts
3
- } from "./chunk-3NVAU4WZ.js";
3
+ } from "./chunk-ZDB5QFH4.js";
4
4
  import {
5
5
  filterAndCleanMessages,
6
6
  sendOpenAICompletionsRequest
7
- } from "./chunk-AAWBX67U.js";
7
+ } from "./chunk-S2RB4LMB.js";
8
8
  import "./chunk-JEXVIMYZ.js";
9
- import "./chunk-NUTDASGX.js";
9
+ import "./chunk-AOKRQAUQ.js";
10
10
  import {
11
11
  generateRequestBody,
12
12
  mergeReferences,
13
13
  performFetchRequest,
14
14
  sanitizeOutboundBody
15
- } from "./chunk-TVDZABBT.js";
15
+ } from "./chunk-U4N7NIN3.js";
16
16
  import "./chunk-EDKF7RX4.js";
17
17
  import "./chunk-HS7MLR74.js";
18
- import "./chunk-FCCT2LU2.js";
18
+ import "./chunk-R5NCDOHB.js";
19
19
  import "./chunk-5XTOKQLW.js";
20
20
  import "./chunk-NF64D32W.js";
21
21
  import "./chunk-3L2WKC3W.js";
@@ -32,20 +32,20 @@ import "./chunk-FZGV4FGK.js";
32
32
  import "./chunk-MEYIRKDN.js";
33
33
  import "./chunk-63W5N6P3.js";
34
34
  import "./chunk-VF4K2QE6.js";
35
- import "./chunk-DQAEUZSQ.js";
36
- import "./chunk-VLX45P4L.js";
37
- import "./chunk-BLCUMZNV.js";
35
+ import "./chunk-I5O24WHB.js";
36
+ import "./chunk-JWXTOIGR.js";
37
+ import "./chunk-R4XZMDRV.js";
38
38
  import "./chunk-ZJ7UHBJS.js";
39
39
  import {
40
40
  selectAllMsgs,
41
41
  selectCurrentDialogConfig,
42
42
  updateTokensAction
43
- } from "./chunk-ZIUMSKK4.js";
43
+ } from "./chunk-3LBE76GR.js";
44
44
  import "./chunk-EVBFYPDC.js";
45
45
  import "./chunk-HQUORJTM.js";
46
46
  import "./chunk-YYLHWIW6.js";
47
47
  import "./chunk-AGGIDPCZ.js";
48
- import "./chunk-F657NADX.js";
48
+ import "./chunk-RVCBKVIR.js";
49
49
  import "./chunk-BJCWNHVU.js";
50
50
  import "./chunk-5RGU3J7P.js";
51
51
  import "./chunk-6YTOJY35.js";
@@ -8,8 +8,8 @@ import {
8
8
  } from "./chunk-JYYZCK2Z.js";
9
9
  import {
10
10
  runAgentCreateCommand
11
- } from "./chunk-PWGW5JTK.js";
12
- import "./chunk-SPQ7GSUX.js";
11
+ } from "./chunk-7GCIXOQA.js";
12
+ import "./chunk-SV63E2UZ.js";
13
13
  import "./chunk-GBPZKFYK.js";
14
14
  import "./chunk-EADNWBAZ.js";
15
15
  import "./chunk-HH65VA5U.js";
@@ -29,9 +29,9 @@ import "./chunk-MP64VFGD.js";
29
29
  import "./chunk-JBTJAPUF.js";
30
30
  import "./chunk-3QPYFHAH.js";
31
31
  import "./chunk-ATNTHIZI.js";
32
- import "./chunk-NUTDASGX.js";
32
+ import "./chunk-AOKRQAUQ.js";
33
33
  import "./chunk-HS7MLR74.js";
34
- import "./chunk-FCCT2LU2.js";
34
+ import "./chunk-R5NCDOHB.js";
35
35
  import "./chunk-5XTOKQLW.js";
36
36
  import "./chunk-NF64D32W.js";
37
37
  import "./chunk-3L2WKC3W.js";
@@ -47,16 +47,16 @@ import "./chunk-FZGV4FGK.js";
47
47
  import "./chunk-MEYIRKDN.js";
48
48
  import "./chunk-63W5N6P3.js";
49
49
  import "./chunk-VF4K2QE6.js";
50
- import "./chunk-DQAEUZSQ.js";
51
- import "./chunk-VLX45P4L.js";
52
- import "./chunk-BLCUMZNV.js";
50
+ import "./chunk-I5O24WHB.js";
51
+ import "./chunk-JWXTOIGR.js";
52
+ import "./chunk-R4XZMDRV.js";
53
53
  import "./chunk-ZJ7UHBJS.js";
54
- import "./chunk-ZIUMSKK4.js";
54
+ import "./chunk-3LBE76GR.js";
55
55
  import "./chunk-EVBFYPDC.js";
56
56
  import "./chunk-HQUORJTM.js";
57
57
  import "./chunk-YYLHWIW6.js";
58
58
  import "./chunk-AGGIDPCZ.js";
59
- import "./chunk-F657NADX.js";
59
+ import "./chunk-RVCBKVIR.js";
60
60
  import "./chunk-BJCWNHVU.js";
61
61
  import "./chunk-5RGU3J7P.js";
62
62
  import "./chunk-6YTOJY35.js";
@@ -89,7 +89,7 @@ async function defaultExecuteCli(provider, prompt, options) {
89
89
  return executeCli(provider, prompt, options);
90
90
  }
91
91
  async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
92
- const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-42WKRDE7.js");
92
+ const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-MFYQADTQ.js");
93
93
  return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
94
94
  }
95
95
  async function detectLaunchableMachineInfo() {
@@ -2,8 +2,8 @@ import {
2
2
  runAgentCreateCommand,
3
3
  runAgentReadCommand,
4
4
  runAgentUpdateCommand
5
- } from "./chunk-PWGW5JTK.js";
6
- import "./chunk-SPQ7GSUX.js";
5
+ } from "./chunk-7GCIXOQA.js";
6
+ import "./chunk-SV63E2UZ.js";
7
7
  import "./chunk-GBPZKFYK.js";
8
8
  import "./chunk-EADNWBAZ.js";
9
9
  import "./chunk-HH65VA5U.js";
@@ -16,9 +16,9 @@ import "./chunk-MP64VFGD.js";
16
16
  import "./chunk-JBTJAPUF.js";
17
17
  import "./chunk-3QPYFHAH.js";
18
18
  import "./chunk-ATNTHIZI.js";
19
- import "./chunk-NUTDASGX.js";
19
+ import "./chunk-AOKRQAUQ.js";
20
20
  import "./chunk-HS7MLR74.js";
21
- import "./chunk-FCCT2LU2.js";
21
+ import "./chunk-R5NCDOHB.js";
22
22
  import "./chunk-5XTOKQLW.js";
23
23
  import "./chunk-NF64D32W.js";
24
24
  import "./chunk-3L2WKC3W.js";
@@ -34,16 +34,16 @@ import "./chunk-FZGV4FGK.js";
34
34
  import "./chunk-MEYIRKDN.js";
35
35
  import "./chunk-63W5N6P3.js";
36
36
  import "./chunk-VF4K2QE6.js";
37
- import "./chunk-DQAEUZSQ.js";
38
- import "./chunk-VLX45P4L.js";
39
- import "./chunk-BLCUMZNV.js";
37
+ import "./chunk-I5O24WHB.js";
38
+ import "./chunk-JWXTOIGR.js";
39
+ import "./chunk-R4XZMDRV.js";
40
40
  import "./chunk-ZJ7UHBJS.js";
41
- import "./chunk-ZIUMSKK4.js";
41
+ import "./chunk-3LBE76GR.js";
42
42
  import "./chunk-EVBFYPDC.js";
43
43
  import "./chunk-HQUORJTM.js";
44
44
  import "./chunk-YYLHWIW6.js";
45
45
  import "./chunk-AGGIDPCZ.js";
46
- import "./chunk-F657NADX.js";
46
+ import "./chunk-RVCBKVIR.js";
47
47
  import "./chunk-BJCWNHVU.js";
48
48
  import "./chunk-5RGU3J7P.js";
49
49
  import "./chunk-6YTOJY35.js";
@@ -8,12 +8,12 @@ import {
8
8
  resolveRunSettlementNote,
9
9
  resolveWorkflowReference,
10
10
  runAgentRunCommand
11
- } from "./chunk-RFMPSCHX.js";
11
+ } from "./chunk-4NI7LU7J.js";
12
12
  import "./chunk-S7Z2HMCN.js";
13
13
  import {
14
14
  parseAgentRunArgs
15
15
  } from "./chunk-JYYZCK2Z.js";
16
- import "./chunk-SPQ7GSUX.js";
16
+ import "./chunk-SV63E2UZ.js";
17
17
  import "./chunk-GBPZKFYK.js";
18
18
  import "./chunk-EADNWBAZ.js";
19
19
  import "./chunk-HH65VA5U.js";
@@ -29,9 +29,9 @@ import "./chunk-LTRXGFMS.js";
29
29
  import "./chunk-3QPYFHAH.js";
30
30
  import "./chunk-ATNTHIZI.js";
31
31
  import "./chunk-JEXVIMYZ.js";
32
- import "./chunk-NUTDASGX.js";
32
+ import "./chunk-AOKRQAUQ.js";
33
33
  import "./chunk-HS7MLR74.js";
34
- import "./chunk-FCCT2LU2.js";
34
+ import "./chunk-R5NCDOHB.js";
35
35
  import "./chunk-5XTOKQLW.js";
36
36
  import "./chunk-NF64D32W.js";
37
37
  import "./chunk-3L2WKC3W.js";
@@ -47,16 +47,16 @@ import "./chunk-FZGV4FGK.js";
47
47
  import "./chunk-MEYIRKDN.js";
48
48
  import "./chunk-63W5N6P3.js";
49
49
  import "./chunk-VF4K2QE6.js";
50
- import "./chunk-DQAEUZSQ.js";
51
- import "./chunk-VLX45P4L.js";
52
- import "./chunk-BLCUMZNV.js";
50
+ import "./chunk-I5O24WHB.js";
51
+ import "./chunk-JWXTOIGR.js";
52
+ import "./chunk-R4XZMDRV.js";
53
53
  import "./chunk-ZJ7UHBJS.js";
54
- import "./chunk-ZIUMSKK4.js";
54
+ import "./chunk-3LBE76GR.js";
55
55
  import "./chunk-EVBFYPDC.js";
56
56
  import "./chunk-HQUORJTM.js";
57
57
  import "./chunk-YYLHWIW6.js";
58
58
  import "./chunk-AGGIDPCZ.js";
59
- import "./chunk-F657NADX.js";
59
+ import "./chunk-RVCBKVIR.js";
60
60
  import "./chunk-BJCWNHVU.js";
61
61
  import "./chunk-5RGU3J7P.js";
62
62
  import "./chunk-6YTOJY35.js";
@@ -7,7 +7,7 @@ import {
7
7
  slice,
8
8
  streamAgentChatTurn,
9
9
  updateAgent
10
- } from "./chunk-F657NADX.js";
10
+ } from "./chunk-RVCBKVIR.js";
11
11
  import "./chunk-3JQ2NRYU.js";
12
12
  import "./chunk-ONXOABJR.js";
13
13
  import "./chunk-KX6YBIHG.js";
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-YPREESF4.js";
5
5
  import {
6
6
  handleSendMessage
7
- } from "./chunk-ZIUMSKK4.js";
7
+ } from "./chunk-3LBE76GR.js";
8
8
  import "./chunk-EVBFYPDC.js";
9
9
  import "./chunk-HQUORJTM.js";
10
10
  import "./chunk-YYLHWIW6.js";
11
11
  import "./chunk-AGGIDPCZ.js";
12
- import "./chunk-F657NADX.js";
12
+ import "./chunk-RVCBKVIR.js";
13
13
  import "./chunk-BJCWNHVU.js";
14
14
  import "./chunk-5RGU3J7P.js";
15
15
  import {
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-F657NADX.js";
16
+ } from "./chunk-RVCBKVIR.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
19
  } from "./chunk-BJCWNHVU.js";
@@ -17086,7 +17086,7 @@ var messageSlice = createSliceWithThunks({
17086
17086
  runtimeOptions: args.runtimeOptions
17087
17087
  });
17088
17088
  if (agentKeyToUse) {
17089
- const { streamAgentChatTurn } = await import("./agentSlice-ZPODGT3P.js");
17089
+ const { streamAgentChatTurn } = await import("./agentSlice-FZBFYKP3.js");
17090
17090
  await dispatch(
17091
17091
  streamAgentChatTurn({
17092
17092
  agentKey: agentKeyToUse,
@@ -18219,7 +18219,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18219
18219
  }
18220
18220
  if (isCurrentDialog) {
18221
18221
  await thunkApi.dispatch(resetMsgs());
18222
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-NLSKRXBN.js");
18222
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-RM3EW5AO.js");
18223
18223
  dispatch(clearPendingAttachments2());
18224
18224
  }
18225
18225
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -18227,15 +18227,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18227
18227
 
18228
18228
  // packages/chat/dialog/dialogSlice.ts
18229
18229
  var runCreateDialogAction = async (args, thunkApi) => {
18230
- const { createDialogAction } = await import("./createDialogAction-N7CTNKB5.js");
18230
+ const { createDialogAction } = await import("./createDialogAction-B52IPGBY.js");
18231
18231
  return createDialogAction(args, thunkApi);
18232
18232
  };
18233
18233
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
18234
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-6YBZFLET.js");
18234
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-JUSLLNYE.js");
18235
18235
  return createAgentAutomationAction(args, thunkApi);
18236
18236
  };
18237
18237
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
18238
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-BU2VPE5B.js");
18238
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-55Q3R6RJ.js");
18239
18239
  return updateDialogTitleAction(args, thunkApi);
18240
18240
  };
18241
18241
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -18259,7 +18259,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
18259
18259
  return setDialogExtraReferencesAction(args, thunkApi);
18260
18260
  };
18261
18261
  var runHandleSendMessageAction = async (args, thunkApi) => {
18262
- const { handleSendMessageAction } = await import("./handleSendMessageAction-ENUNMW3Z.js");
18262
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-I6KFXKDM.js");
18263
18263
  return handleSendMessageAction(args, thunkApi);
18264
18264
  };
18265
18265
  function clearDialogState() {
@@ -18272,7 +18272,7 @@ var createPageAndAddReference = createAsyncThunk(
18272
18272
  async (payload, { dispatch, getState, rejectWithValue }) => {
18273
18273
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
18274
18274
  try {
18275
- const { createDocState } = await import("./docStore-CIAYE5WP.js");
18275
+ const { createDocState } = await import("./docStore-Q45M4B2I.js");
18276
18276
  const pageKey = await createDocState(
18277
18277
  { slateData, title },
18278
18278
  { dispatch, getState }
@@ -27,7 +27,7 @@ import {
27
27
  resolveLocalUserId,
28
28
  t,
29
29
  toolLabel
30
- } from "./chunk-SPQ7GSUX.js";
30
+ } from "./chunk-SV63E2UZ.js";
31
31
  import {
32
32
  createRunActivityTracker,
33
33
  popSingleQueueMessage,
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-LTRXGFMS.js";
64
64
  import {
65
65
  formatAgentListCard
66
- } from "./chunk-FCCT2LU2.js";
66
+ } from "./chunk-R5NCDOHB.js";
67
67
  import {
68
68
  isTransientFetchError
69
69
  } from "./chunk-5XTOKQLW.js";
@@ -84,11 +84,11 @@ import {
84
84
  chooseMemoryOwners,
85
85
  loadMemoryCandidatesFromDb,
86
86
  resolveAgentMemoryPolicy
87
- } from "./chunk-VLX45P4L.js";
87
+ } from "./chunk-JWXTOIGR.js";
88
88
  import {
89
89
  API_REPORTED_COST_MULTIPLIER,
90
90
  parseUiAskChoiceContent
91
- } from "./chunk-ZIUMSKK4.js";
91
+ } from "./chunk-3LBE76GR.js";
92
92
  import {
93
93
  isOAuthApiKeyRef
94
94
  } from "./chunk-YYLHWIW6.js";
@@ -1479,9 +1479,9 @@ function surfaceBackgroundSequence(env = process.env, brightness = resolveTuiBri
1479
1479
  function userSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
1480
1480
  if (!supportsTruecolor(env)) return "";
1481
1481
  const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
1482
- const accentHex = palette[brightness].accent.hex;
1483
- const weight = brightness === "dark" ? 0.3 : 0.2;
1484
- return hexToBgSgr(blendHex(accentHex, resolveTerminalBaseHex(brightness), weight));
1482
+ const surfaceHex = brightness === "light" ? palette.light.chrome.hex : palette.dark.accent.hex;
1483
+ const weight = brightness === "dark" ? 0.3 : 0.08;
1484
+ return hexToBgSgr(blendHex(surfaceHex, resolveTerminalBaseHex(brightness), weight));
1485
1485
  }
1486
1486
  function themeColorSequence(token, env = process.env, brightness = resolveTuiBrightness(env)) {
1487
1487
  const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-SPQ7GSUX.js";
3
+ } from "./chunk-SV63E2UZ.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-RXX4GDIH.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-FCCT2LU2.js";
3
+ } from "./chunk-R5NCDOHB.js";
4
4
  import {
5
5
  i18n_default
6
- } from "./chunk-ZIUMSKK4.js";
6
+ } from "./chunk-3LBE76GR.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-O6OSWFZQ.js";
@@ -326,7 +326,7 @@ async function saveDocState(arg, { dispatch, getState }) {
326
326
  ).unwrap();
327
327
  if (dbSpaceId) {
328
328
  try {
329
- const { updateContentTitle } = await import("./contentThunks-VGXYTSKU.js");
329
+ const { updateContentTitle } = await import("./contentThunks-QLAU2LGJ.js");
330
330
  await dispatch(
331
331
  updateContentTitle({
332
332
  spaceId: dbSpaceId,
@@ -365,7 +365,7 @@ async function saveDocState(arg, { dispatch, getState }) {
365
365
  }
366
366
  }
367
367
  async function createDocState(args, thunkApi) {
368
- const { createPageAction } = await import("./createPageAction-RXOOVKVO.js");
368
+ const { createPageAction } = await import("./createPageAction-ACAIWRDQ.js");
369
369
  return createPageAction(args, thunkApi);
370
370
  }
371
371
  function subscribe(listener) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-BLCUMZNV.js";
3
+ } from "./chunk-R4XZMDRV.js";
4
4
  import {
5
5
  prepareAndPersistMessage,
6
6
  uiAskChoiceFunc,
7
7
  uiAskChoiceFunctionSchema
8
- } from "./chunk-ZIUMSKK4.js";
8
+ } from "./chunk-3LBE76GR.js";
9
9
  import {
10
10
  require_date_fns
11
11
  } from "./chunk-M76ECQRD.js";
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-ZIUMSKK4.js";
12
+ } from "./chunk-3LBE76GR.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -81,14 +81,14 @@ import {
81
81
  } from "./chunk-VF4K2QE6.js";
82
82
  import {
83
83
  createDocState
84
- } from "./chunk-DQAEUZSQ.js";
84
+ } from "./chunk-I5O24WHB.js";
85
85
  import {
86
86
  BUILTIN_OBJECT_SKILL_IDS,
87
87
  buildBuiltinObjectSkillConfig,
88
88
  buildBuiltinObjectSkillDbKey,
89
89
  buildBuiltinObjectSkillPageContent,
90
90
  createDialogAction
91
- } from "./chunk-VLX45P4L.js";
91
+ } from "./chunk-JWXTOIGR.js";
92
92
  import {
93
93
  DEFAULT_COLLAPSED_CATEGORIES,
94
94
  addContentToSpace,
@@ -106,7 +106,7 @@ import {
106
106
  updateContentCategory,
107
107
  updateContentTitle,
108
108
  writeStoredCollapsedCategories
109
- } from "./chunk-BLCUMZNV.js";
109
+ } from "./chunk-R4XZMDRV.js";
110
110
  import {
111
111
  getCurrentSpaceId,
112
112
  getCurrentSpaceIdRaw,
@@ -128,14 +128,14 @@ import {
128
128
  selectMsgById,
129
129
  uiAskChoiceFunc,
130
130
  uiAskChoiceFunctionSchema
131
- } from "./chunk-ZIUMSKK4.js";
131
+ } from "./chunk-3LBE76GR.js";
132
132
  import {
133
133
  createAgent,
134
134
  deleteServerSyncedCredential,
135
135
  runLlm,
136
136
  streamAgentChatTurn,
137
137
  updateAgent
138
- } from "./chunk-F657NADX.js";
138
+ } from "./chunk-RVCBKVIR.js";
139
139
  import {
140
140
  getActiveDialogKey,
141
141
  selectCurrentDialogKey,
@@ -4672,7 +4672,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4672
4672
  const deletedDialogIds = [];
4673
4673
  const deletedDialogKeys = [];
4674
4674
  const failures = [];
4675
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-NLSKRXBN.js");
4675
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-RM3EW5AO.js");
4676
4676
  for (const target of targets) {
4677
4677
  try {
4678
4678
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -9957,9 +9957,13 @@ var tabId = {
9957
9957
  type: "string",
9958
9958
  description: "Chrome tab id returned by chrome_list_tabs or chrome_open_tab."
9959
9959
  };
9960
+ var elementRef = {
9961
+ type: "string",
9962
+ description: "Revision-scoped ref like 1a2b3c4d-e2, copied verbatim from chrome_read_page; preferred over selector when available."
9963
+ };
9960
9964
  var selector = {
9961
9965
  type: "string",
9962
- description: "CSS selector for the visible page element to operate on."
9966
+ description: "CSS selector for the visible page element to operate on; fallback when no elementRef is available."
9963
9967
  };
9964
9968
  var chromeListTabsFunctionSchema = baseSchema(
9965
9969
  "chrome_list_tabs",
@@ -9981,32 +9985,51 @@ var chromeOpenTabFunctionSchema = baseSchema(
9981
9985
  },
9982
9986
  ["url"]
9983
9987
  );
9988
+ var chromeCloseTabFunctionSchema = baseSchema(
9989
+ "chrome_close_tab",
9990
+ "Close a Chrome tab through the Nolo desktop Chrome connector. Prefer closing the tabs your own run opened with chrome_open_tab, and ask the user before closing a tab they are using. Pinned tabs are refused (TAB_PINNED); unknown tab ids fail (TAB_NOT_FOUND).",
9991
+ {
9992
+ tabId
9993
+ },
9994
+ ["tabId"]
9995
+ );
9984
9996
  var chromeReadPageFunctionSchema = baseSchema(
9985
9997
  "chrome_read_page",
9986
- "Read visible text and lightweight DOM state from a Chrome tab without reading cookies or profile databases.",
9998
+ "Read a compact view of a Chrome tab: visible text (hard cap 6000 chars) plus short-lived elementRefs (hard cap 35) and a pageRevision. Reuse those refs for chrome_click and chrome_type instead of guessing selectors; use region to focus a big page. Does not read cookies or profile databases.",
9987
9999
  {
9988
10000
  tabId,
9989
- selector: {
9990
- ...selector,
9991
- description: "Optional CSS selector to limit the read to part of the page."
10001
+ region: {
10002
+ type: "string",
10003
+ description: "Optional CSS selector limiting the read to part of the page."
10004
+ },
10005
+ maxChars: {
10006
+ type: "number",
10007
+ description: "Optional text character budget; the connector clamps it to a hard maximum."
10008
+ },
10009
+ detail: {
10010
+ type: "string",
10011
+ enum: ["compact", "full"],
10012
+ description: "compact (default) returns budgeted text; full raises the budget and adds capped HTML."
9992
10013
  }
9993
10014
  },
9994
10015
  ["tabId"]
9995
10016
  );
9996
10017
  var chromeClickFunctionSchema = baseSchema(
9997
10018
  "chrome_click",
9998
- "Click a visible element in a Chrome tab. Do not use this for final submit/delete/payment/permission actions without action-time user confirmation.",
10019
+ "Click a visible element in a Chrome tab by elementRef from chrome_read_page, or by CSS selector. Controls whose name indicates an irreversible external action (payment, send, delete, publish, permission change) are refused with SENSITIVE_ACTION_REQUIRES_CONFIRMATION: this desktop runtime has no approval channel, so name the control and ask the user to activate it themselves.",
9999
10020
  {
10000
10021
  tabId,
10022
+ elementRef,
10001
10023
  selector
10002
10024
  },
10003
- ["tabId", "selector"]
10025
+ ["tabId"]
10004
10026
  );
10005
10027
  var chromeTypeFunctionSchema = baseSchema(
10006
10028
  "chrome_type",
10007
- "Type text into a Chrome page element. Typing sensitive data into a third-party site counts as data transmission.",
10029
+ "Type text into a Chrome page element identified by elementRef from chrome_read_page or by CSS selector. Typing into a control whose name indicates an irreversible external action is refused with SENSITIVE_ACTION_REQUIRES_CONFIRMATION, same as clicking it.",
10008
10030
  {
10009
10031
  tabId,
10032
+ elementRef,
10010
10033
  selector,
10011
10034
  text: {
10012
10035
  type: "string",
@@ -10017,11 +10040,11 @@ var chromeTypeFunctionSchema = baseSchema(
10017
10040
  description: "Whether to clear the field before typing. Defaults to true."
10018
10041
  }
10019
10042
  },
10020
- ["tabId", "selector", "text"]
10043
+ ["tabId", "text"]
10021
10044
  );
10022
10045
  var chromePressFunctionSchema = baseSchema(
10023
10046
  "chrome_press",
10024
- "Send a keyboard key or shortcut to a Chrome tab.",
10047
+ "Send a keyboard key or shortcut to a Chrome tab. Enter-like keys are refused with SENSITIVE_ACTION_REQUIRES_CONFIRMATION when the focused control is an irreversible action.",
10025
10048
  {
10026
10049
  tabId,
10027
10050
  key: {
@@ -10073,12 +10096,16 @@ var chromeReadConsoleFunctionSchema = baseSchema(
10073
10096
  );
10074
10097
  var chromeReadNetworkFunctionSchema = baseSchema(
10075
10098
  "chrome_read_network",
10076
- "Read a recent network summary from a Chrome tab using debugger-backed connector state.",
10099
+ "Read a deduplicated recent network summary from a Chrome tab using debugger-backed connector state. Static assets are filtered unless includeAssets is set.",
10077
10100
  {
10078
10101
  tabId,
10079
10102
  limit: {
10080
10103
  type: "number",
10081
10104
  description: "Maximum number of recent network entries to return."
10105
+ },
10106
+ includeAssets: {
10107
+ type: "boolean",
10108
+ description: "Include images, CSS, fonts and other static assets. Defaults to false."
10082
10109
  }
10083
10110
  },
10084
10111
  ["tabId"]
@@ -10086,6 +10113,7 @@ var chromeReadNetworkFunctionSchema = baseSchema(
10086
10113
  var chromeConnectorToolSchemas = [
10087
10114
  chromeListTabsFunctionSchema,
10088
10115
  chromeOpenTabFunctionSchema,
10116
+ chromeCloseTabFunctionSchema,
10089
10117
  chromeReadPageFunctionSchema,
10090
10118
  chromeClickFunctionSchema,
10091
10119
  chromeTypeFunctionSchema,
@@ -15505,7 +15533,7 @@ var executeToolRun = createAsyncThunk(
15505
15533
  if (!executionInput) {
15506
15534
  throw new Error(`ToolRun ${id} has no input to execute with.`);
15507
15535
  }
15508
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-S5RSWF3R.js");
15536
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-NA2SK5QX.js");
15509
15537
  const { executor } = findToolExecutor2(run.toolName);
15510
15538
  toolRunStarted({
15511
15539
  id: run.id,
@@ -18012,7 +18040,7 @@ async function updateDocFunc(args, thunkApi) {
18012
18040
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18013
18041
  };
18014
18042
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18015
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-CIAYE5WP.js");
18043
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-Q45M4B2I.js");
18016
18044
  if (getDocState().pageKey === id) {
18017
18045
  applyExternalDocUpdate({
18018
18046
  slateData: finalSlateData,
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
304
304
  const overrides = {};
305
305
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
306
306
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
307
- const { _executeModel } = await import("./_executeModel-GOV2OHC7.js");
307
+ const { _executeModel } = await import("./_executeModel-TKD22VDA.js");
308
308
  return _executeModel(
309
309
  {
310
310
  isStreaming: args.isStreaming ?? false,
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
325
325
  * - 循环直到无工具调用或触发其他运行时停止条件
326
326
  */
327
327
  runAgent: create.asyncThunk(async (args, thunkApi) => {
328
- const { runAgentClientLoop } = await import("./runAgentClientLoop-A4OXYOCL.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-SLKSZWCS.js");
329
329
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
330
330
  {
331
331
  agentKey: args.agentKey,
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
341
341
  * 聊天轮次流式 Agent 调用
342
342
  */
343
343
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
344
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YHKNJEFR.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-FLA6GTFJ.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**
@@ -5,14 +5,14 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-NUTDASGX.js";
8
+ } from "./chunk-AOKRQAUQ.js";
9
9
  import {
10
10
  INVALID_TOOL_ARGS_REPLACEMENT,
11
11
  buildInvalidToolCallSelfHealResult,
12
12
  parseToolCallArguments,
13
13
  performFetchRequest,
14
14
  sanitizeOutboundMessages
15
- } from "./chunk-TVDZABBT.js";
15
+ } from "./chunk-U4N7NIN3.js";
16
16
  import {
17
17
  createSSEParser,
18
18
  createToolRunId,
@@ -23,7 +23,7 @@ import {
23
23
  toolRunSetPending,
24
24
  toolRunStarted,
25
25
  toolRunSucceeded
26
- } from "./chunk-FCCT2LU2.js";
26
+ } from "./chunk-R5NCDOHB.js";
27
27
  import {
28
28
  getPublicImageAgentMode
29
29
  } from "./chunk-VIDPVFP3.js";
@@ -35,10 +35,10 @@ import {
35
35
  messageStreamEnd,
36
36
  messageStreaming,
37
37
  updateToolMessage
38
- } from "./chunk-ZIUMSKK4.js";
38
+ } from "./chunk-3LBE76GR.js";
39
39
  import {
40
40
  streamAgentChatTurn
41
- } from "./chunk-F657NADX.js";
41
+ } from "./chunk-RVCBKVIR.js";
42
42
  import {
43
43
  addActiveController,
44
44
  removeActiveController,