nolo-cli 0.74.0-alpha.1 → 0.75.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 (63) hide show
  1. package/{_executeModel-YEVZAJYX.js → _executeModel-CNEEELFV.js} +10 -10
  2. package/{agentDeleteCommand-FSIMTL4K.js → agentDeleteCommand-WVO3JTH6.js} +4 -4
  3. package/{agentEmailCommands-HQT4EUOA.js → agentEmailCommands-VX5OYTHG.js} +13 -12
  4. package/{agentListCommands-2YWZYH52.js → agentListCommands-XWLQZ2ZH.js} +5 -5
  5. package/{agentMachineCommands-3TR7DVYO.js → agentMachineCommands-IG6KJFNN.js} +4 -4
  6. package/{agentRecordCommands-TRUY7Z6N.js → agentRecordCommands-V5LRQDDX.js} +13 -12
  7. package/{agentRunCommand-EHJOESHA.js → agentRunCommand-RUUOF2DY.js} +13 -12
  8. package/{agentSlice-RRZS2UII.js → agentSlice-S3JFDTH4.js} +1 -1
  9. package/{appDeleteCommands-HIJNWSK7.js → appDeleteCommands-426QK2XG.js} +5 -5
  10. package/{appDeployCommands-XULV2ZN6.js → appDeployCommands-FIGFGXIJ.js} +5 -5
  11. package/{appDeployStatusCommands-ETY4Z7K6.js → appDeployStatusCommands-D3B235FQ.js} +5 -5
  12. package/{appGetCommands-M253LKDA.js → appGetCommands-U6RZJII4.js} +5 -5
  13. package/{appListCommands-XYFXJMNP.js → appListCommands-732PFEWM.js} +5 -5
  14. package/{chatQueueReduxAdapter-LSBTGZW2.js → chatQueueReduxAdapter-CHJZ2O2P.js} +2 -2
  15. package/chromeCommands-VOIRNJBL.js +499 -0
  16. package/chromeOpsCommands-M7DPCX2T.js +258 -0
  17. package/{chunk-FARB62OB.js → chunk-5WUTIRKL.js} +7 -7
  18. package/{chunk-TI4CCL34.js → chunk-6RUYWJXO.js} +3 -3
  19. package/{chunk-B62OSA77.js → chunk-AFIKMMGC.js} +1 -1
  20. package/{chunk-Q4OT2DC7.js → chunk-AFIWC5NH.js} +1 -1
  21. package/{chunk-57VRXRLF.js → chunk-BNLAGFPO.js} +1 -1
  22. package/{chunk-QBA5KMJI.js → chunk-D42DMWKD.js} +22 -8
  23. package/{chunk-XGZM6BTX.js → chunk-DDWYTB5N.js} +1 -1
  24. package/{chunk-JWO3RQSH.js → chunk-DWPNOYMB.js} +1 -1
  25. package/{chunk-T7PQFKJU.js → chunk-FSFQ3A7S.js} +1 -1
  26. package/{chunk-AWPU7GXU.js → chunk-ITFKTCHH.js} +2 -2
  27. package/{chunk-YCDWJX45.js → chunk-KC5FAHVS.js} +1 -1
  28. package/{chunk-I4UWPYBH.js → chunk-KG7ANYLN.js} +2 -2
  29. package/{chunk-3U3EA3BO.js → chunk-L2Y24GRM.js} +2 -2
  30. package/{chunk-OXY5PKLG.js → chunk-MWV66JTV.js} +2 -2
  31. package/{chunk-XPQJXIF5.js → chunk-NU6FRRNU.js} +43 -4
  32. package/{chunk-VOEW2KF3.js → chunk-PEBKIEA5.js} +8 -8
  33. package/{chunk-AUKZOZFG.js → chunk-QA6YKM3H.js} +1 -1
  34. package/chunk-QCZX4FTW.js +242 -0
  35. package/{chunk-OH5WRY7G.js → chunk-RUX46F4O.js} +16 -4
  36. package/{chunk-2JCTE5UN.js → chunk-WD4SMAPR.js} +2 -2
  37. package/{chunk-IDZTNRP2.js → chunk-X7HHHIOZ.js} +10 -2
  38. package/{chunk-DFY6PUV4.js → chunk-ZHIOJU46.js} +5 -5
  39. package/{chunk-CS36XM4N.js → chunk-ZNZCVXRV.js} +3 -3
  40. package/{contentThunks-476Y6CFR.js → contentThunks-P73Q4WUM.js} +3 -3
  41. package/{createAgentAutomationAction-DN4SFTP5.js → createAgentAutomationAction-JLHVMB4X.js} +3 -3
  42. package/{createDialogAction-2GS4JCMU.js → createDialogAction-6ZKSFM5O.js} +4 -4
  43. package/{createPageAction-44WTUMZ5.js → createPageAction-MN4VOJYH.js} +3 -3
  44. package/{dialogCommands-PE5FEFJ5.js → dialogCommands-7FH6Z2YK.js} +5 -5
  45. package/{dialogSlice-7HEVCJFT.js → dialogSlice-P2G3GRRG.js} +2 -2
  46. package/{docCreateCommands-IPDFZVPG.js → docCreateCommands-GN5E5ULM.js} +4 -4
  47. package/{docDeleteCommands-VQ4Y66CM.js → docDeleteCommands-OQWPPQME.js} +5 -5
  48. package/{docReadCommands-PD33VV27.js → docReadCommands-E4QK2223.js} +4 -4
  49. package/{docStore-LJ7KNKFB.js → docStore-GUHCPV37.js} +1 -1
  50. package/{docUpdateCommands-CGUQ2JY3.js → docUpdateCommands-ZDJE4SI7.js} +4 -4
  51. package/{handleSendMessageAction-ETA5QZIN.js → handleSendMessageAction-NLDMT3LZ.js} +2 -2
  52. package/index.js +107 -47
  53. package/{machineCommands-INAP62WH.js → machineCommands-BCCBSQQR.js} +12 -11
  54. package/{machineWsRunDispatch-MT7VRNKX.js → machineWsRunDispatch-7FMVGMI6.js} +12 -11
  55. package/package.json +1 -1
  56. package/{readlineWorkspace-5TV6ES57.js → readlineWorkspace-S5ZQIVWS.js} +17 -16
  57. package/{runAgentClientLoop-2PGZSCET.js → runAgentClientLoop-UANNODBO.js} +8 -8
  58. package/{spaceCommands-Y47DDAQD.js → spaceCommands-GSQCO2LI.js} +4 -4
  59. package/{streamAgentChatTurn-I6FUM6RV.js → streamAgentChatTurn-76WFI2YK.js} +9 -9
  60. package/{tools-KU4X5HGZ.js → tools-XJGU2HAF.js} +6 -6
  61. package/{updateCommands-AJYSD73Y.js → updateCommands-Y363MC3L.js} +2 -2
  62. package/{updateDialogTitleAction-E3SNB75W.js → updateDialogTitleAction-5BHRK2XV.js} +3 -3
  63. package/{agentRuntimeLocal-O6DZDTK4.js → agentRuntimeLocal-ZSUEMWRL.js} +1 -1
@@ -0,0 +1,258 @@
1
+ import {
2
+ createChromeConnectorClient
3
+ } from "./chunk-QCZX4FTW.js";
4
+ import {
5
+ toErrorMessage
6
+ } from "./chunk-HNMXYYJR.js";
7
+ import {
8
+ readOption
9
+ } from "./chunk-A7GB5UGH.js";
10
+ import "./chunk-OLZBQWZU.js";
11
+ import "./chunk-KUG52IAP.js";
12
+ import "./chunk-LCBAMY2M.js";
13
+ import "./chunk-4SN6J65J.js";
14
+ import "./chunk-CF7PE763.js";
15
+ import "./chunk-G3SUCT4W.js";
16
+ import "./chunk-4VNS5WPM.js";
17
+
18
+ // packages/cli/chromeOpsCommands.ts
19
+ import { writeFile } from "node:fs/promises";
20
+ function wantsHelp(args) {
21
+ return args.includes("--help") || args.includes("-h");
22
+ }
23
+ function readTrimmedOption(args, flag) {
24
+ return (readOption(args, flag) ?? "").trim();
25
+ }
26
+ function readIntOption(args, flag, usage) {
27
+ const raw = readOption(args, flag);
28
+ if (raw === void 0) return void 0;
29
+ const value = Number.parseInt(raw, 10);
30
+ if (!Number.isFinite(value)) {
31
+ throw new Error(`Invalid ${flag} <N>. Usage: ${usage}`);
32
+ }
33
+ return value;
34
+ }
35
+ function requireTabId(args, usage) {
36
+ const tabId = readTrimmedOption(args, "--tab");
37
+ if (!tabId) {
38
+ throw new Error(`Missing required --tab <id>. Usage: ${usage}`);
39
+ }
40
+ return tabId;
41
+ }
42
+ function requireTarget(args, usage) {
43
+ const elementRef = readTrimmedOption(args, "--ref");
44
+ const selector = readTrimmedOption(args, "--selector");
45
+ if (!elementRef && !selector) {
46
+ throw new Error(
47
+ `Provide --ref <elementRef> (from read-page) or --selector <css>. Usage: ${usage}`
48
+ );
49
+ }
50
+ return {
51
+ ...elementRef ? { elementRef } : {},
52
+ ...selector ? { selector } : {}
53
+ };
54
+ }
55
+ var CHROME_OPS_SUBCOMMANDS = {
56
+ "list-tabs": {
57
+ action: "list_tabs",
58
+ usage: "nolo chrome list-tabs",
59
+ payload: () => ({})
60
+ },
61
+ "open-tab": {
62
+ action: "open_tab",
63
+ usage: "nolo chrome open-tab --url <url> [--active]",
64
+ payload: (args, usage) => {
65
+ const url = readTrimmedOption(args, "--url");
66
+ if (!url) {
67
+ throw new Error(`Missing required --url <url>. Usage: ${usage}`);
68
+ }
69
+ return { url, active: args.includes("--active") };
70
+ }
71
+ },
72
+ "close-tab": {
73
+ action: "close_tab",
74
+ usage: "nolo chrome close-tab --tab <id>",
75
+ payload: (args, usage) => ({ tabId: requireTabId(args, usage) })
76
+ },
77
+ "read-page": {
78
+ action: "read_page",
79
+ usage: "nolo chrome read-page --tab <id> [--selector <css>] [--detail compact|full] [--max-elements N]",
80
+ payload: (args, usage) => {
81
+ const payload = { tabId: requireTabId(args, usage) };
82
+ const selector = readTrimmedOption(args, "--selector");
83
+ if (selector) payload.selector = selector;
84
+ const detail = readTrimmedOption(args, "--detail");
85
+ if (detail) payload.detail = detail;
86
+ const maxElements = readIntOption(args, "--max-elements", usage);
87
+ if (maxElements !== void 0) payload.maxElements = maxElements;
88
+ return payload;
89
+ }
90
+ },
91
+ click: {
92
+ action: "click",
93
+ usage: "nolo chrome click --tab <id> (--ref <elementRef> | --selector <css>)",
94
+ payload: (args, usage) => ({
95
+ tabId: requireTabId(args, usage),
96
+ ...requireTarget(args, usage)
97
+ })
98
+ },
99
+ type: {
100
+ action: "type",
101
+ usage: "nolo chrome type --tab <id> (--ref <elementRef> | --selector <css>) --text <text> [--append]",
102
+ payload: (args, usage) => {
103
+ const text = readOption(args, "--text");
104
+ if (text === void 0 || text.startsWith("--")) {
105
+ throw new Error(`Missing required --text <text>. Usage: ${usage}`);
106
+ }
107
+ return {
108
+ tabId: requireTabId(args, usage),
109
+ ...requireTarget(args, usage),
110
+ text,
111
+ ...args.includes("--append") ? { clearFirst: false } : {}
112
+ };
113
+ }
114
+ },
115
+ press: {
116
+ action: "press",
117
+ usage: "nolo chrome press --tab <id> --key <key>",
118
+ payload: (args, usage) => {
119
+ const key = readTrimmedOption(args, "--key");
120
+ if (!key) {
121
+ throw new Error(`Missing required --key <key>. Usage: ${usage}`);
122
+ }
123
+ return { tabId: requireTabId(args, usage), key };
124
+ }
125
+ },
126
+ scroll: {
127
+ action: "scroll",
128
+ usage: "nolo chrome scroll --tab <id> [--delta-x N] [--delta-y N]",
129
+ payload: (args, usage) => {
130
+ const payload = { tabId: requireTabId(args, usage) };
131
+ const deltaX = readIntOption(args, "--delta-x", usage);
132
+ const deltaY = readIntOption(args, "--delta-y", usage);
133
+ if (deltaX !== void 0) payload.deltaX = deltaX;
134
+ if (deltaY !== void 0) payload.deltaY = deltaY;
135
+ return payload;
136
+ }
137
+ },
138
+ screenshot: {
139
+ action: "screenshot",
140
+ usage: "nolo chrome screenshot --tab <id> [--out <path>] [--full-page]",
141
+ payload: (args, usage) => ({
142
+ tabId: requireTabId(args, usage),
143
+ ...args.includes("--full-page") ? { fullPage: true } : {}
144
+ })
145
+ },
146
+ "read-console": {
147
+ action: "read_console",
148
+ usage: "nolo chrome read-console --tab <id> [--limit N]",
149
+ payload: (args, usage) => {
150
+ const payload = { tabId: requireTabId(args, usage) };
151
+ const limit = readIntOption(args, "--limit", usage);
152
+ if (limit !== void 0) payload.limit = limit;
153
+ return payload;
154
+ }
155
+ },
156
+ "read-network": {
157
+ action: "read_network",
158
+ usage: "nolo chrome read-network --tab <id> [--limit N] [--include-assets]",
159
+ payload: (args, usage) => {
160
+ const payload = { tabId: requireTabId(args, usage) };
161
+ const limit = readIntOption(args, "--limit", usage);
162
+ if (limit !== void 0) payload.limit = limit;
163
+ if (args.includes("--include-assets")) payload.includeAssets = true;
164
+ return payload;
165
+ }
166
+ }
167
+ };
168
+ function renderChromeOpsHelp() {
169
+ const lines = [
170
+ "Operate the user's Chrome through the Nolo Chrome connector (the desktop bridge;",
171
+ "the same RPC the chrome_* agent tools use).",
172
+ "",
173
+ "Usage:",
174
+ " nolo chrome <subcommand> [flags]",
175
+ "",
176
+ "Subcommands:",
177
+ ...Object.values(CHROME_OPS_SUBCOMMANDS).map(
178
+ (spec) => ` ${spec.usage.replace(/^nolo chrome /, "")}`
179
+ ),
180
+ "",
181
+ "Notes:",
182
+ " --ref takes an elementRef copied from `nolo chrome read-page` (revision-scoped,",
183
+ " preferred over --selector); --selector takes a CSS selector.",
184
+ " Actions the connector classifies as irreversible (Submit / Delete / Pay ...)",
185
+ " are refused with CONFIRMATION_REQUIRED \u2014 ask the user to perform them.",
186
+ " Every subcommand prints the connector's raw JSON result; failures exit 1.",
187
+ " Endpoint: NOLO_CHROME_CONNECTOR_RPC_URL or http://127.0.0.1:38947/rpc."
188
+ ];
189
+ return lines.join("\n");
190
+ }
191
+ var CHROME_OPS_HELP_TEXT = renderChromeOpsHelp();
192
+ async function runChromeOpsCommand(subcommand, args, deps = {}) {
193
+ const io = {
194
+ stdout: (text) => console.log(text),
195
+ stderr: (text) => console.error(text),
196
+ ...deps.io
197
+ };
198
+ const spec = CHROME_OPS_SUBCOMMANDS[subcommand];
199
+ if (!spec) {
200
+ io.stderr(`Unknown chrome subcommand: ${subcommand}
201
+
202
+ ${CHROME_OPS_HELP_TEXT}`);
203
+ return 1;
204
+ }
205
+ if (wantsHelp(args)) {
206
+ io.stdout(CHROME_OPS_HELP_TEXT);
207
+ return 0;
208
+ }
209
+ let payload;
210
+ try {
211
+ payload = spec.payload(args, spec.usage);
212
+ } catch (error) {
213
+ io.stderr(toErrorMessage(error));
214
+ return 1;
215
+ }
216
+ let result;
217
+ try {
218
+ const client = deps.client ?? createChromeConnectorClient();
219
+ result = await client.request(spec.action, payload);
220
+ } catch (error) {
221
+ const code = typeof error?.code === "string" ? error.code : "CHROME_COMMAND_FAILED";
222
+ io.stderr(JSON.stringify({ ok: false, error: { code, message: toErrorMessage(error) } }, null, 2));
223
+ return 1;
224
+ }
225
+ if (subcommand === "screenshot") {
226
+ const out = readTrimmedOption(args, "--out");
227
+ const dataUrl = result?.dataUrl;
228
+ if (out && typeof dataUrl === "string") {
229
+ const base64 = dataUrl.includes(",") ? dataUrl.slice(dataUrl.indexOf(",") + 1) : dataUrl;
230
+ const bytes = Buffer.from(base64, "base64");
231
+ try {
232
+ await writeFile(out, bytes);
233
+ } catch (error) {
234
+ io.stderr(
235
+ JSON.stringify(
236
+ {
237
+ ok: false,
238
+ error: { code: "SCREENSHOT_WRITE_FAILED", message: toErrorMessage(error) }
239
+ },
240
+ null,
241
+ 2
242
+ )
243
+ );
244
+ return 1;
245
+ }
246
+ io.stdout(JSON.stringify({ ok: true, result: { savedTo: out, bytes: bytes.byteLength } }, null, 2));
247
+ return 0;
248
+ }
249
+ }
250
+ io.stdout(JSON.stringify({ ok: true, result }, null, 2));
251
+ return 0;
252
+ }
253
+ export {
254
+ CHROME_OPS_HELP_TEXT,
255
+ CHROME_OPS_SUBCOMMANDS,
256
+ renderChromeOpsHelp,
257
+ runChromeOpsCommand
258
+ };
@@ -27,7 +27,7 @@ import {
27
27
  resolveLocalUserId,
28
28
  t,
29
29
  toolLabel
30
- } from "./chunk-XPQJXIF5.js";
30
+ } from "./chunk-NU6FRRNU.js";
31
31
  import {
32
32
  createRunActivityTracker,
33
33
  popSingleQueueMessage,
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  readDbRecord,
49
49
  resolveAgentRecordFromHybridStore
50
- } from "./chunk-AUKZOZFG.js";
50
+ } from "./chunk-QA6YKM3H.js";
51
51
  import {
52
52
  isLocalCliAgentKey
53
53
  } from "./chunk-SPAQ4PVV.js";
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-LTRXGFMS.js";
64
64
  import {
65
65
  formatAgentListCard
66
- } from "./chunk-QBA5KMJI.js";
66
+ } from "./chunk-D42DMWKD.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-2JCTE5UN.js";
87
+ } from "./chunk-WD4SMAPR.js";
88
88
  import {
89
89
  API_REPORTED_COST_MULTIPLIER,
90
90
  parseUiAskChoiceContent
91
- } from "./chunk-VOEW2KF3.js";
91
+ } from "./chunk-PEBKIEA5.js";
92
92
  import {
93
93
  isOAuthApiKeyRef
94
94
  } from "./chunk-YYLHWIW6.js";
@@ -159,7 +159,7 @@ import {
159
159
  import {
160
160
  readPipeText,
161
161
  spawnProcess
162
- } from "./chunk-IDZTNRP2.js";
162
+ } from "./chunk-X7HHHIOZ.js";
163
163
  import {
164
164
  resolveAuthToken
165
165
  } from "./chunk-A7GB5UGH.js";
@@ -10407,7 +10407,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
10407
10407
  // packages/cli/client/agentRun.ts
10408
10408
  import { ulid } from "ulid";
10409
10409
  async function loadRunLocalAgentTurn() {
10410
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-O6DZDTK4.js");
10410
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-ZSUEMWRL.js");
10411
10411
  return runLocalAgentTurn;
10412
10412
  }
10413
10413
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -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-YEVZAJYX.js");
307
+ const { _executeModel } = await import("./_executeModel-CNEEELFV.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-2PGZSCET.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-UANNODBO.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-I6FUM6RV.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-76WFI2YK.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-AUKZOZFG.js";
4
+ } from "./chunk-QA6YKM3H.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-AUKZOZFG.js";
5
+ } from "./chunk-QA6YKM3H.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-CS36XM4N.js";
4
+ } from "./chunk-ZNZCVXRV.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -81,14 +81,14 @@ import {
81
81
  } from "./chunk-VF4K2QE6.js";
82
82
  import {
83
83
  createDocState
84
- } from "./chunk-AWPU7GXU.js";
84
+ } from "./chunk-ITFKTCHH.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-2JCTE5UN.js";
91
+ } from "./chunk-WD4SMAPR.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-XGZM6BTX.js";
109
+ } from "./chunk-DDWYTB5N.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-VOEW2KF3.js";
131
+ } from "./chunk-PEBKIEA5.js";
132
132
  import {
133
133
  createAgent,
134
134
  deleteServerSyncedCredential,
135
135
  runLlm,
136
136
  streamAgentChatTurn,
137
137
  updateAgent
138
- } from "./chunk-TI4CCL34.js";
138
+ } from "./chunk-6RUYWJXO.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-7HEVCJFT.js");
4675
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-P2G3GRRG.js");
4676
4676
  for (const target of targets) {
4677
4677
  try {
4678
4678
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -9933,6 +9933,19 @@ ${preview}`
9933
9933
  }
9934
9934
 
9935
9935
  // packages/ai/tools/chromeConnectorTools.ts
9936
+ var CHROME_CONNECTOR_TOOL_NAMES = [
9937
+ "chrome_list_tabs",
9938
+ "chrome_open_tab",
9939
+ "chrome_close_tab",
9940
+ "chrome_read_page",
9941
+ "chrome_click",
9942
+ "chrome_type",
9943
+ "chrome_press",
9944
+ "chrome_scroll",
9945
+ "chrome_screenshot",
9946
+ "chrome_read_console",
9947
+ "chrome_read_network"
9948
+ ];
9936
9949
  var CHROME_CONNECTOR_READ_TOOL_NAMES = [
9937
9950
  "chrome_list_tabs",
9938
9951
  "chrome_read_page",
@@ -15533,7 +15546,7 @@ var executeToolRun = createAsyncThunk(
15533
15546
  if (!executionInput) {
15534
15547
  throw new Error(`ToolRun ${id} has no input to execute with.`);
15535
15548
  }
15536
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-KU4X5HGZ.js");
15549
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-XJGU2HAF.js");
15537
15550
  const { executor } = findToolExecutor2(run.toolName);
15538
15551
  toolRunStarted({
15539
15552
  id: run.id,
@@ -18040,7 +18053,7 @@ async function updateDocFunc(args, thunkApi) {
18040
18053
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18041
18054
  };
18042
18055
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18043
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-LJ7KNKFB.js");
18056
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-GUHCPV37.js");
18044
18057
  if (getDocState().pageKey === id) {
18045
18058
  applyExternalDocUpdate({
18046
18059
  slateData: finalSlateData,
@@ -20343,6 +20356,7 @@ export {
20343
20356
  readXPostFunc,
20344
20357
  readXhsProfileFunctionSchema,
20345
20358
  readXhsProfileFunc,
20359
+ CHROME_CONNECTOR_TOOL_NAMES,
20346
20360
  rememberMemoryFunctionSchema,
20347
20361
  deleteMemoryFunctionSchema,
20348
20362
  queryMemoryFunctionSchema,
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-VOEW2KF3.js";
12
+ } from "./chunk-PEBKIEA5.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-B62OSA77.js";
3
+ } from "./chunk-AFIKMMGC.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-Q4OT2DC7.js";
10
+ } from "./chunk-AFIWC5NH.js";
11
11
  import {
12
12
  fetchWithTransientRetry
13
13
  } from "./chunk-5XTOKQLW.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-476Y6CFR.js");
329
+ const { updateContentTitle } = await import("./contentThunks-P73Q4WUM.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-44WTUMZ5.js");
368
+ const { createPageAction } = await import("./createPageAction-MN4VOJYH.js");
369
369
  return createPageAction(args, thunkApi);
370
370
  }
371
371
  function subscribe(listener) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2KDR4CWE.js";
4
4
  import {
5
5
  resolveDefaultSpawn
6
- } from "./chunk-IDZTNRP2.js";
6
+ } from "./chunk-X7HHHIOZ.js";
7
7
  import {
8
8
  isCompiledBinary
9
9
  } from "./chunk-A7GB5UGH.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-QBA5KMJI.js";
3
+ } from "./chunk-D42DMWKD.js";
4
4
  import {
5
5
  i18n_default
6
- } from "./chunk-VOEW2KF3.js";
6
+ } from "./chunk-PEBKIEA5.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
9
  } from "./chunk-O6OSWFZQ.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-Q4OT2DC7.js";
4
+ } from "./chunk-AFIWC5NH.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-AUKZOZFG.js";
7
+ } from "./chunk-QA6YKM3H.js";
8
8
  import {
9
9
  deriveCredentialGroup,
10
10
  toSafeAgentSummary
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-XPQJXIF5.js";
3
+ } from "./chunk-NU6FRRNU.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-RXX4GDIH.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-AUKZOZFG.js";
15
+ } from "./chunk-QA6YKM3H.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-SPAQ4PVV.js";