@vue/devtools-agent 9.0.0-rc.1 → 9.0.0-rc.3

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.
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import process from "node:process";
3
3
  import { cac } from "cac";
4
- //#region src/cli.ts
4
+ // src/cli.ts
5
5
  async function main() {
6
6
  const cli = cac("vue-devtools-agent");
7
7
  cli.command("connect", "Discover running Devframe projects and expose their tools over stdio MCP").option("--port <port>", "Probe an additional port (repeatable or comma-separated)").option("--base <path>", "Base path for explicit port probes", { default: "/" }).option("--instances-dir <dir>", "Override the Devframe instance registry directory").option("--timeout <ms>", "Probe timeout per instance in milliseconds", { default: "1000" }).action(async (options) => {
@@ -31,7 +31,4 @@ main().catch((error) => {
31
31
  console.error(error instanceof Error ? error.message : String(error));
32
32
  process.exitCode = 1;
33
33
  });
34
- //#endregion
35
34
  export {};
36
-
37
- //# sourceMappingURL=cli.mjs.map
@@ -1,7 +1,4 @@
1
- import { i as VueDevtoolsAgentPage, n as createVueDevtoolsAgentSession, r as VueDevtoolsAgentConnection, t as VueDevtoolsAgentSession } from "./session-1Buaf6lK.mjs";
2
- //#region src/mcp/page.d.ts
1
+ import { i as VueDevtoolsAgentPage, n as createVueDevtoolsAgentSession, r as VueDevtoolsAgentConnection, t as VueDevtoolsAgentSession } from "./session-CwQ_t9xf.mjs";
3
2
  /** Register inspection and optional editing tools in Devframe's browser registry, using a unique document namespace. */
4
3
  export declare function registerVueDevtoolsAgentPage(connection: VueDevtoolsAgentConnection, page: VueDevtoolsAgentPage): () => void;
5
- //#endregion
6
- export { type VueDevtoolsAgentSession, createVueDevtoolsAgentSession };
7
- //# sourceMappingURL=devframe.d.mts.map
4
+ export { type VueDevtoolsAgentSession, createVueDevtoolsAgentSession };
package/dist/devframe.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { n as createVueDevtoolsAgentTools, t as createVueDevtoolsAgentSession } from "./session-D7L9Vjbr.mjs";
1
+ import { n as createVueDevtoolsAgentTools, t as createVueDevtoolsAgentSession } from "./session-BXZNXNPo.mjs";
2
2
  import { createPageScriptChannel } from "devframe/in-page-channel";
3
- //#region src/mcp/page.ts
3
+ // src/mcp/page.ts
4
4
  /** Register inspection and optional editing tools in Devframe's browser registry, using a unique document namespace. */
5
5
  function registerVueDevtoolsAgentPage(connection, page) {
6
6
  const channel = createPageScriptChannel({
@@ -9,7 +9,4 @@ function registerVueDevtoolsAgentPage(connection, page) {
9
9
  });
10
10
  return () => channel.close();
11
11
  }
12
- //#endregion
13
12
  export { createVueDevtoolsAgentSession, registerVueDevtoolsAgentPage };
14
-
15
- //# sourceMappingURL=devframe.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { a as VueDevtoolsAgentSnapshot, i as VueDevtoolsAgentPage, n as createVueDevtoolsAgentSession, r as VueDevtoolsAgentConnection, t as VueDevtoolsAgentSession } from "./session-1Buaf6lK.mjs";
1
+ import { a as VueDevtoolsAgentSnapshot, i as VueDevtoolsAgentPage, n as createVueDevtoolsAgentSession, r as VueDevtoolsAgentConnection, t as VueDevtoolsAgentSession } from "./session-CwQ_t9xf.mjs";
2
2
  import { z } from "zod";
3
- //#region src/mcp/tools.d.ts
4
3
  export declare function createVueDevtoolsAgentTools(connection: VueDevtoolsAgentConnection, page: VueDevtoolsAgentPage): {
5
4
  'expand-value': {
6
5
  type: "query" | "action";
@@ -493,6 +492,4 @@ export declare function createVueDevtoolsAgentTools(connection: VueDevtoolsAgent
493
492
  }): Promise<VueDevtoolsAgentSnapshot>;
494
493
  };
495
494
  };
496
- //#endregion
497
- export { type VueDevtoolsAgentConnection, type VueDevtoolsAgentPage, type VueDevtoolsAgentSession, type VueDevtoolsAgentSnapshot, createVueDevtoolsAgentSession };
498
- //# sourceMappingURL=index.d.mts.map
495
+ export { type VueDevtoolsAgentConnection, type VueDevtoolsAgentPage, type VueDevtoolsAgentSession, type VueDevtoolsAgentSnapshot, createVueDevtoolsAgentSession };
package/dist/index.mjs CHANGED
@@ -1,2 +1 @@
1
- import { n as createVueDevtoolsAgentTools, t as createVueDevtoolsAgentSession } from "./session-D7L9Vjbr.mjs";
2
- export { createVueDevtoolsAgentSession, createVueDevtoolsAgentTools };
1
+ export { t as createVueDevtoolsAgentSession, n as createVueDevtoolsAgentTools } from "./session-BXZNXNPo.mjs";
package/dist/node.d.mts CHANGED
@@ -1,6 +1,3 @@
1
1
  import { DevframeNodeContext } from "devframe/types";
2
- //#region src/mcp/host.d.ts
3
2
  /** Prime the host agent surface so its automatic MCP route exists before the page connects. */
4
- export declare function registerVueDevtoolsAgentHost(ctx: Pick<DevframeNodeContext, 'agent'>): () => void;
5
- //#endregion
6
- //# sourceMappingURL=node.d.mts.map
3
+ export declare function registerVueDevtoolsAgentHost(ctx: Pick<DevframeNodeContext, 'agent'>): () => void;
package/dist/node.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/mcp/host.ts
1
+ // src/mcp/host.ts
2
2
  /** Prime the host agent surface so its automatic MCP route exists before the page connects. */
3
3
  function registerVueDevtoolsAgentHost(ctx) {
4
4
  const handle = ctx.agent.registerTool({
@@ -9,7 +9,4 @@ function registerVueDevtoolsAgentHost(ctx) {
9
9
  });
10
10
  return () => handle.unregister();
11
11
  }
12
- //#endregion
13
12
  export { registerVueDevtoolsAgentHost };
14
-
15
- //# sourceMappingURL=node.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { configure } from "safe-stable-stringify";
3
- //#region src/mcp/schemas.ts
3
+ // src/mcp/schemas.ts
4
4
  const jsonRecord = z.record(z.string(), z.json());
5
5
  const encodedValue = z.lazy(() => z.union([
6
6
  z.object({ kind: z.enum(["null", "undefined"]) }),
@@ -238,8 +238,7 @@ function snapshotSchema(result) {
238
238
  result
239
239
  });
240
240
  }
241
- //#endregion
242
- //#region src/mcp/tools.ts
241
+ // src/mcp/tools.ts
243
242
  const stringify = configure({
244
243
  bigint: false,
245
244
  circularValue: "[Circular]",
@@ -449,8 +448,7 @@ function toSnapshot(page, result) {
449
448
  function toJson(value) {
450
449
  return JSON.parse(stringify(value) ?? "null");
451
450
  }
452
- //#endregion
453
- //#region src/session.ts
451
+ // src/session.ts
454
452
  /** Connect on the first call and retain the connection until the host disposes it. */
455
453
  function createVueDevtoolsAgentSession(connect) {
456
454
  let connection;
@@ -476,7 +474,4 @@ function createVueDevtoolsAgentSession(connect) {
476
474
  }
477
475
  };
478
476
  }
479
- //#endregion
480
477
  export { createVueDevtoolsAgentTools as n, createVueDevtoolsAgentSession as t };
481
-
482
- //# sourceMappingURL=session-D7L9Vjbr.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { RuntimeCommandRequest, RuntimeCommandResult, RuntimeRequests } from "@vue/devtools-kit";
2
- //#region src/types.d.ts
3
2
  /** A host supplies a connection to its existing Vue runtime. `command` enables state editing and cursor cleanup. */
4
3
  type VueDevtoolsAgentConnection = Pick<RuntimeRequests, 'query'> & Partial<Pick<RuntimeRequests, 'command'>>;
5
4
  interface VueDevtoolsAgentPage {
@@ -13,8 +12,6 @@ interface VueDevtoolsAgentSnapshot {
13
12
  capturedAt: number;
14
13
  result: unknown;
15
14
  }
16
- //#endregion
17
- //#region src/session.d.ts
18
15
  interface VueDevtoolsAgentSession extends VueDevtoolsAgentConnection {
19
16
  command(request: RuntimeCommandRequest): Promise<RuntimeCommandResult>;
20
17
  dispose(): void;
@@ -23,6 +20,4 @@ interface VueDevtoolsAgentSession extends VueDevtoolsAgentConnection {
23
20
  declare function createVueDevtoolsAgentSession(connect: () => VueDevtoolsAgentConnection & {
24
21
  dispose(): void;
25
22
  }): VueDevtoolsAgentSession;
26
- //#endregion
27
- export { VueDevtoolsAgentSnapshot as a, VueDevtoolsAgentPage as i, createVueDevtoolsAgentSession as n, VueDevtoolsAgentConnection as r, VueDevtoolsAgentSession as t };
28
- //# sourceMappingURL=session-1Buaf6lK.d.mts.map
23
+ export { VueDevtoolsAgentSnapshot as a, VueDevtoolsAgentPage as i, createVueDevtoolsAgentSession as n, VueDevtoolsAgentConnection as r, VueDevtoolsAgentSession as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/devtools-agent",
3
- "version": "9.0.0-rc.1",
3
+ "version": "9.0.0-rc.3",
4
4
  "description": "Agent tools and host adapters for Vue DevTools",
5
5
  "license": "MIT",
6
6
  "author": "webfansplz",
@@ -40,15 +40,15 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@devframes/agentic": "^1.1.0",
44
- "@vue/devtools-kit": "9.0.0-rc.1",
45
- "cac": "^7.0.0",
46
- "devframe": "^1.1.0",
47
- "safe-stable-stringify": "^2.5.0",
48
- "zod": "^4.6.5"
43
+ "@devframes/agentic": "^1.3.2",
44
+ "@vue/devtools-kit": "9.0.0-rc.3",
45
+ "cac": "^7.1.0",
46
+ "devframe": "^1.3.2",
47
+ "safe-stable-stringify": "^3.0.0",
48
+ "zod": "^4.6.7"
49
49
  },
50
50
  "devDependencies": {
51
- "tsdown": "^0.23.0"
51
+ "tsdown": "^0.23.5"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22.12.0"
package/dist/cli.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.mjs","names":[],"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport process from 'node:process'\nimport { cac } from 'cac'\n\nasync function main() {\n const cli = cac('vue-devtools-agent')\n cli\n .command('connect', 'Discover running Devframe projects and expose their tools over stdio MCP')\n .option('--port <port>', 'Probe an additional port (repeatable or comma-separated)')\n .option('--base <path>', 'Base path for explicit port probes', { default: '/' })\n .option('--instances-dir <dir>', 'Override the Devframe instance registry directory')\n .option('--timeout <ms>', 'Probe timeout per instance in milliseconds', { default: '1000' })\n .action(async (options) => {\n const ports = [options.port ?? []]\n .flat()\n .flatMap((value: string | number) => String(value).split(','))\n .filter((value) => value.trim() !== '')\n .map(Number)\n if (ports.some((port) => !Number.isInteger(port) || port < 1 || port > 65535)) {\n throw new Error('--port must be an integer between 1 and 65535')\n }\n const timeoutMs = Number(options.timeout)\n if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {\n throw new Error('--timeout must be a positive number of milliseconds')\n }\n const { startConnectServer } = await import('@devframes/agentic/connect')\n await startConnectServer({\n ports,\n base: options.base,\n instancesDir: options.instancesDir,\n timeoutMs,\n authToken: process.env.DEVFRAME_MCP_AUTH_TOKEN,\n })\n process.stdin.resume()\n })\n cli.help()\n cli.parse(process.argv, { run: false })\n if (!cli.matchedCommand) {\n if (!cli.options.help) cli.outputHelp()\n return\n }\n await cli.runMatchedCommand()\n}\n\nvoid main().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : String(error))\n process.exitCode = 1\n})\n"],"mappings":";;;;AAIA,eAAe,OAAO;CACpB,MAAM,MAAM,IAAI,oBAAoB;CACpC,IACG,QAAQ,WAAW,0EAA0E,CAAC,CAC9F,OAAO,iBAAiB,0DAA0D,CAAC,CACnF,OAAO,iBAAiB,sCAAsC,EAAE,SAAS,IAAI,CAAC,CAAC,CAC/E,OAAO,yBAAyB,mDAAmD,CAAC,CACpF,OAAO,kBAAkB,8CAA8C,EAAE,SAAS,OAAO,CAAC,CAAC,CAC3F,OAAO,OAAO,YAAY;EACzB,MAAM,QAAQ,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,CAC/B,KAAK,CAAC,CACN,SAAS,UAA2B,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7D,QAAQ,UAAU,MAAM,KAAK,MAAM,EAAE,CAAC,CACtC,IAAI,MAAM;EACb,IAAI,MAAM,MAAM,SAAS,CAAC,OAAO,UAAU,IAAI,KAAK,OAAO,KAAK,OAAO,KAAK,GAC1E,MAAM,IAAI,MAAM,+CAA+C;EAEjE,MAAM,YAAY,OAAO,QAAQ,OAAO;EACxC,IAAI,CAAC,OAAO,SAAS,SAAS,KAAK,aAAa,GAC9C,MAAM,IAAI,MAAM,qDAAqD;EAEvE,MAAM,EAAE,uBAAuB,MAAM,OAAO;EAC5C,MAAM,mBAAmB;GACvB;GACA,MAAM,QAAQ;GACd,cAAc,QAAQ;GACtB;GACA,WAAW,QAAQ,IAAI;EACzB,CAAC;EACD,QAAQ,MAAM,OAAO;CACvB,CAAC;CACH,IAAI,KAAK;CACT,IAAI,MAAM,QAAQ,MAAM,EAAE,KAAK,MAAM,CAAC;CACtC,IAAI,CAAC,IAAI,gBAAgB;EACvB,IAAI,CAAC,IAAI,QAAQ,MAAM,IAAI,WAAW;EACtC;CACF;CACA,MAAM,IAAI,kBAAkB;AAC9B;AAEK,KAAK,CAAC,CAAC,OAAO,UAAmB;CACpC,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CACpE,QAAQ,WAAW;AACrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"devframe.mjs","names":[],"sources":["../src/mcp/page.ts"],"sourcesContent":["import { createPageScriptChannel } from 'devframe/in-page-channel'\nimport { createVueDevtoolsAgentTools } from './tools'\nimport type { VueDevtoolsAgentConnection, VueDevtoolsAgentPage } from '../types'\n\n/** Register inspection and optional editing tools in Devframe's browser registry, using a unique document namespace. */\nexport function registerVueDevtoolsAgentPage(\n connection: VueDevtoolsAgentConnection,\n page: VueDevtoolsAgentPage,\n): () => void {\n const channel = createPageScriptChannel({\n name: `vue-devtools:agent:${page.id}`,\n functions: createVueDevtoolsAgentTools(connection, page),\n })\n return () => channel.close()\n}\n"],"mappings":";;;;AAKA,SAAgB,6BACd,YACA,MACY;CACZ,MAAM,UAAU,wBAAwB;EACtC,MAAM,sBAAsB,KAAK;EACjC,WAAW,4BAA4B,YAAY,IAAI;CACzD,CAAC;CACD,aAAa,QAAQ,MAAM;AAC7B"}
package/dist/node.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.mjs","names":[],"sources":["../src/mcp/host.ts"],"sourcesContent":["import type { DevframeNodeContext } from 'devframe/types'\n\n/** Prime the host agent surface so its automatic MCP route exists before the page connects. */\nexport function registerVueDevtoolsAgentHost(ctx: Pick<DevframeNodeContext, 'agent'>): () => void {\n const handle = ctx.agent.registerTool({\n id: 'vue-devtools:agent:help',\n description:\n 'Explain how to discover Vue runtime tools. Call if Vue page tools are missing or to understand page selection.',\n safety: 'read',\n handler: () => ({\n instructions:\n 'Open the application in a browser and allow the Vite DevTools connection. List tools again to discover page-specific Vue tools. Each page has a unique namespace; use list-apps to identify its URL and app IDs before querying. Reloading the page invalidates its old namespace, component IDs and value handles. Paging rules are in each paginated tool description.',\n }),\n })\n return () => handle.unregister()\n}\n"],"mappings":";;AAGA,SAAgB,6BAA6B,KAAqD;CAChG,MAAM,SAAS,IAAI,MAAM,aAAa;EACpC,IAAI;EACJ,aACE;EACF,QAAQ;EACR,gBAAgB,EACd,cACE,2WACJ;CACF,CAAC;CACD,aAAa,OAAO,WAAW;AACjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-D7L9Vjbr.mjs","names":[],"sources":["../src/mcp/schemas.ts","../src/mcp/tools.ts","../src/session.ts"],"sourcesContent":["import { z } from 'zod'\n\nconst jsonRecord = z.record(z.string(), z.json())\n// Preserve codec tags: a present undefined/null value is not a missing field.\nconst encodedValue: z.ZodType = z.lazy(() =>\n z.union([\n z.object({ kind: z.enum(['null', 'undefined']) }),\n z.object({ kind: z.literal('boolean'), value: z.boolean() }),\n z.object({\n kind: z.literal('number'),\n value: z.union([z.number(), z.enum(['NaN', 'Infinity', '-Infinity'])]),\n }),\n z.object({\n kind: z.literal('string'),\n value: z.string(),\n truncated: z.boolean().optional(),\n length: z.number().optional(),\n }),\n z.object({ kind: z.enum(['bigint', 'date', 'regexp']), value: z.string() }),\n z.object({ kind: z.literal('symbol'), description: z.string() }),\n z.object({\n kind: z.literal('function'),\n name: z.string().optional(),\n sourcePreview: z.string().optional(),\n }),\n z.object({\n kind: z.literal('array'),\n length: z.number(),\n preview: z.array(valueEntry),\n handle: z.string().optional(),\n }),\n z.object({\n kind: z.literal('object'),\n name: z.string(),\n entries: z.number(),\n preview: z.array(valueEntry),\n handle: z.string().optional(),\n }),\n z.object({\n kind: z.enum(['map', 'set']),\n size: z.number(),\n preview: z.array(valueEntry),\n handle: z.string().optional(),\n }),\n z.object({ kind: z.literal('component'), id: z.string().optional(), name: z.string() }),\n z.object({\n kind: z.literal('dom'),\n tag: z.string(),\n id: z.string().optional(),\n className: z.string().optional(),\n }),\n z.looseObject({\n kind: z.literal('custom'),\n value: encodedValue,\n handle: z.string().optional(),\n readOnly: z.boolean().optional(),\n }),\n z.object({\n kind: z.literal('error'),\n name: z.string(),\n message: z.string(),\n stack: z.string().optional(),\n }),\n z.object({ kind: z.literal('circular'), handle: z.string() }),\n ]),\n)\nconst valueEntry = z.object({ key: z.string(), value: encodedValue })\nconst treeNode = z.looseObject({\n id: z.string(),\n appId: z.string(),\n name: z.string(),\n parentId: z.string().optional(),\n file: z.string().optional(),\n childCount: z.number().optional(),\n updatedAt: z.number(),\n})\nconst inspectorNode: z.ZodType = z.lazy(() =>\n z.looseObject({ id: z.string(), label: z.string(), children: z.array(inspectorNode).optional() }),\n)\nconst route: z.ZodType = z.lazy(() =>\n z.object({\n path: z.string(),\n name: z.string().optional(),\n meta: jsonRecord.optional(),\n children: z.array(route).optional(),\n }),\n)\nconst pagination = z.object({\n total: z.number().int().nonnegative(),\n pageSize: z.number().int().positive(),\n current: z.number().int().positive(),\n next: z.number().int().positive().nullable(),\n})\nconst state = z.object({\n snapshotId: z.string(),\n pagination,\n componentId: z.string(),\n version: z.number(),\n sections: z.array(\n z.object({\n id: z.string(),\n label: z.string(),\n partial: z.boolean().optional(),\n entries: z.array(\n valueEntry.extend({\n path: z.array(z.string()),\n editable: z.boolean(),\n meta: jsonRecord.optional(),\n }),\n ),\n }),\n ),\n reactivityGraph: z\n .object({\n nodes: z.array(\n z.object({ id: z.string(), type: z.string(), label: z.string(), data: jsonRecord }),\n ),\n relationships: z.array(z.object({ id: z.string(), from: z.string(), to: z.string() })),\n })\n .optional(),\n})\nconst stateValueSchema = z.discriminatedUnion('found', [\n z.object({ found: z.literal(false) }),\n z.object({\n found: z.literal(true),\n editable: z.boolean(),\n value: encodedValue,\n snapshotId: z.string().optional(),\n pagination: pagination.optional(),\n }),\n])\nexport const resultSchemas = {\n apps: z.object({\n apps: z.array(\n z.object({\n id: z.string(),\n name: z.string(),\n version: z.string().optional(),\n componentCount: z.number(),\n }),\n ),\n }),\n plugins: z.object({\n plugins: z.array(\n z.looseObject({ id: z.string(), settings: jsonRecord, settingValues: jsonRecord }),\n ),\n }),\n health: z.object({\n status: z.literal('ready'),\n performance: z.object({\n receivedEvents: z.number(),\n emittedEvents: z.number(),\n droppedEvents: z.number(),\n coalescedEvents: z.number(),\n bufferedEvents: z.number(),\n bufferedBytes: z.number(),\n collectionActive: z.boolean(),\n attachedClients: z.number(),\n }),\n }),\n tree: z.object({\n appId: z.string().optional(),\n version: z.number().optional(),\n nodes: z.array(treeNode),\n }),\n children: z.object({ nodes: z.array(treeNode), cursor: z.string().optional() }),\n command: z.object({ status: z.union([z.literal(0), z.literal(1)]), error: z.json().optional() }),\n state: state.nullable(),\n inspectors: z.object({\n inspectors: z.array(z.looseObject({ id: z.string(), label: z.string() })),\n }),\n inspectorTree: z.object({ inspectorId: z.string(), rootNodes: z.array(inspectorNode) }),\n renderCode: z.string().nullable(),\n router: z.object({\n appId: z.string().optional(),\n currentRoute: z\n .looseObject({\n path: z.string().optional(),\n fullPath: z.string().optional(),\n matched: z.array(route).optional(),\n })\n .optional(),\n routes: z.array(route),\n }),\n matches: z.object({ appId: z.string().optional(), path: z.string(), routes: z.array(route) }),\n expanded: z.object({\n handle: z.string(),\n path: z.array(z.string()),\n value: encodedValue,\n snapshotId: z.string(),\n pagination,\n }),\n stateValue: stateValueSchema,\n edited: z.object({ status: z.literal(1), state: stateValueSchema }),\n}\n\nexport function snapshotSchema(result: z.ZodType) {\n return z.object({\n page: z.object({ id: z.string(), url: z.string(), title: z.string() }),\n capturedAt: z.number(),\n result,\n })\n}\n","import type { RuntimeCommandRequest, StateValueMessage } from '@vue/devtools-kit'\nimport { z } from 'zod'\nimport { resultSchemas, snapshotSchema } from './schemas'\nimport { configure } from 'safe-stable-stringify'\nimport type {\n VueDevtoolsAgentConnection,\n VueDevtoolsAgentPage,\n VueDevtoolsAgentSnapshot,\n} from '../types'\n\nconst stringify = configure({ bigint: false, circularValue: '[Circular]', deterministic: false })\n\nexport function createVueDevtoolsAgentTools(\n connection: VueDevtoolsAgentConnection,\n page: VueDevtoolsAgentPage,\n) {\n const appId = z.string().min(1)\n const target = z.strictObject({ appId })\n const component = target.extend({ componentId: z.string().min(1) })\n const inspector = target.extend({ inspectorId: z.string().min(1) })\n const pagination = {\n page: z.number().int().min(1).default(1),\n pageSize: z.number().int().min(1).max(500).default(50),\n snapshotId: z.string().min(1).optional(),\n }\n const valuePagination = {\n page: z.number().int().min(1).optional(),\n pageSize: z.number().int().min(1).max(5000).optional(),\n snapshotId: pagination.snapshotId,\n }\n // Inline so the protocol reaches agents on hosts that never register the help tool.\n const pagingGuide =\n ' Paging: start at page 1, then pass the returned snapshotId and pagination.next as page with the same target and pageSize until next is null. Pages may hold fewer entries to fit the response budget. Restart without snapshotId if it expires.'\n const previewNote = ' Objects and arrays preview 30 entries.'\n const handleNote = ' Handles expire when the same target is read again or the page reloads.'\n\n function tool<S extends z.ZodType>(\n description: string,\n schema: S,\n handler: (input: z.output<S>) => Promise<unknown>,\n resultSchema: z.ZodType,\n kind: 'query' | 'action' = 'query',\n ) {\n return {\n type: kind,\n jsonSerializable: true as const,\n args: [schema] as [S],\n returns: snapshotSchema(resultSchema),\n agent: { description, safety: kind === 'query' ? ('read' as const) : ('action' as const) },\n async handler(input: z.input<S>) {\n const result = await handler(schema.parse(input))\n return toSnapshot(page, result)\n },\n }\n }\n\n function noArgTool(\n description: string,\n handler: () => Promise<unknown>,\n resultSchema: z.ZodType,\n ) {\n const definition = tool(description, z.strictObject({}), handler, resultSchema)\n return { ...definition, args: [], handler: () => definition.handler({}) }\n }\n\n const field = z.object({\n sectionId: z.string().min(1),\n path: z\n .array(\n z\n .string()\n .refine(\n (segment) => !['__proto__', 'prototype', 'constructor'].includes(segment),\n 'Unsafe state path',\n ),\n )\n .min(1)\n .max(20),\n })\n const componentField = component.extend(field.shape)\n const inspectorField = inspector.extend({ nodeId: z.string().min(1), ...field.shape })\n\n async function editField(command: RuntimeCommandRequest, read: () => Promise<StateValueMessage>) {\n if (!connection.command) throw new Error('This host does not support state editing')\n // requireEditable makes the runtime reject missing or read-only paths before any plugin hook runs.\n const result = await connection.command({\n ...command,\n payload: { ...command.payload, requireEditable: true },\n } as RuntimeCommandRequest)\n if (result.status !== 1) {\n const reason = stringify(result.error) ?? 'the runtime rejected the edit'\n throw new Error(\n reason.includes('not found')\n ? 'State path was not found. Read the current component or inspector state and correct the path before editing.'\n : reason.includes('read-only')\n ? 'State field is read-only. Choose an editable field from the current state.'\n : `State edit failed: ${reason}`,\n )\n }\n try {\n return { status: 1 as const, state: await read() }\n } catch (error) {\n throw new Error(\n `The edit command completed, but reading back the value failed. Inspect the state before retrying the edit. ${String(error)}`,\n )\n }\n }\n\n const listApps = noArgTool(\n 'Identify this page and list its Vue apps. Call before inspecting an app. IDs and value handles belong to this document and expire on reload. page.url follows the document location; use router-state for the Vue route.',\n () => connection.query({ type: 'apps:snapshot' }),\n resultSchemas.apps,\n )\n const listPlugins = noArgTool(\n 'List Vue DevTools plugins registered on this page, including their settings.',\n () => connection.query({ type: 'plugins:snapshot' }),\n resultSchemas.plugins,\n )\n const runtimeHealth = noArgTool(\n 'Read whether the Vue runtime is collecting and a small performance snapshot. Use this when component data looks empty or stalled.',\n () => connection.query({ type: 'runtime:health' }),\n resultSchemas.health,\n )\n\n return {\n 'list-apps': listApps,\n 'list-plugins': listPlugins,\n 'runtime-health': runtimeHealth,\n 'component-tree': tool(\n 'List the initially expanded Vue component tree and source files. With filter, search every component in the app by name or source file (up to 100 matches, each with its parentId) instead. The tree can be partial; use component-children for childCount and cursors. If a cursor expires, restart component-children for that component.',\n target.extend({ filter: z.string().max(200).optional() }),\n ({ appId, filter }) =>\n filter\n ? connection.query({ type: 'components:search', appId, payload: { filter } })\n : connection.query({ type: 'components:treeSnapshot', appId, payload: {} }),\n resultSchemas.tree,\n ),\n 'component-children': tool(\n 'Read one page of a component’s children. Pass the returned cursor to read the next page in the same app and document. If a cursor expires, restart without it. Use cancel-component-children to drop a cursor you will not finish.',\n component.extend({ cursor: z.string().min(1).optional() }),\n ({ appId, ...payload }) =>\n connection.query({ type: 'components:treeChildren', appId, payload }),\n resultSchemas.children,\n ),\n 'cancel-component-children': tool(\n 'Drop a component-children cursor that will not be read again.',\n target.extend({ cursor: z.string().min(1) }),\n ({ appId, cursor }) => {\n if (!connection.command) throw new Error('This host cannot cancel component expansion')\n return connection.command({\n type: 'components:cancelTreeChildren',\n appId,\n payload: { cursor },\n })\n },\n resultSchemas.command,\n ),\n 'component-state': tool(\n 'Read a page of component state, grouped by section. pagination.total counts top-level fields across all sections. Use expand-value or component-value for nested contents. A null result means the component was not found.' +\n previewNote +\n pagingGuide,\n component.extend(pagination),\n ({ appId, ...payload }) =>\n connection.query({ type: 'components:stateSnapshot', appId, payload }),\n resultSchemas.state,\n ),\n 'list-inspectors': tool(\n 'List plugin inspectors, including Pinia when registered. Use inspector-tree and inspector-state to inspect stores or other plugin data.',\n target,\n ({ appId }) => connection.query({ type: 'inspectors:list', appId }),\n resultSchemas.inspectors,\n ),\n 'inspector-tree': tool(\n 'Find nodes in a plugin inspector, such as Pinia stores. Use inspector IDs from list-inspectors. filter is interpreted by that plugin, not as a plain name search.',\n inspector.extend({ filter: z.string().max(200).optional() }),\n ({ appId, ...payload }) =>\n connection.query({ type: 'inspectors:treeSnapshot', appId, payload }),\n resultSchemas.inspectorTree,\n ),\n 'inspector-state': tool(\n 'Read a page of Inspector state, such as a Pinia store, grouped by section. pagination.total counts fields across all sections. Use node IDs from inspector-tree and inspector-value for a known path. The plugin state hook runs when starting a batch. A null result means no matching state was found.' +\n previewNote +\n pagingGuide,\n inspector.extend({ nodeId: z.string().min(1), ...pagination }),\n ({ appId, ...payload }) =>\n connection.query({ type: 'inspectors:stateSnapshot', appId, payload }),\n resultSchemas.state,\n ),\n 'component-render-code': tool(\n 'Read the render function source for one component, when the runtime can recover it.',\n component,\n ({ appId, componentId }) =>\n connection.query({ type: 'components:getRenderCode', appId, payload: { componentId } }),\n resultSchemas.renderCode,\n ),\n 'router-state': tool(\n 'Inspect the app’s current route and registered routes to diagnose navigation and matched components.',\n target,\n ({ appId }) => connection.query({ type: 'router:snapshot', appId }),\n resultSchemas.router,\n ),\n 'router-matches': tool(\n 'Match a path against the app router without navigating. Use router-state for the current route.',\n target.extend({ path: z.string().min(1).max(2000) }),\n ({ appId, path }) =>\n connection.query({ type: 'router:matchedRoutes', appId, payload: { path } }),\n resultSchemas.matches,\n ),\n 'component-value': tool(\n 'Read a known field in a component state section without a snapshot or handle, including fields outside the current page. Get sectionId from component-state (for example props, data, setup); path uses property names or array indexes as strings. found:false means the target or path is missing; a present null/undefined value has a codec tag. Pass page:1 to paginate (strings default to 5000 UTF-16 units, collections to 50 entries).' +\n previewNote +\n pagingGuide,\n componentField.extend(valuePagination),\n ({ appId, ...payload }) =>\n connection.query({ type: 'components:stateValue', appId, payload }),\n resultSchemas.stateValue,\n ),\n 'inspector-value': tool(\n 'Read one field through an existing plugin Inspector, including Pinia. Use inspector/node/section IDs from list-inspectors, inspector-tree and inspector-state. path starts with the state entry key, followed by nested keys. found:false means no matching target or path. The plugin getInspectorState hook still runs, but only the requested value is encoded. Pass page:1 to paginate (strings default to 5000 UTF-16 units, collections to 50 entries).' +\n previewNote +\n pagingGuide,\n inspectorField.extend(valuePagination),\n ({ appId, ...payload }) =>\n connection.query({ type: 'inspectors:stateValue', appId, payload }),\n resultSchemas.stateValue,\n ),\n ...(connection.command\n ? {\n 'edit-component-state': tool(\n 'Change one existing editable component field through the Kit edit command. First read component-value and check editable. Accepts JSON values only; no delete or rename. Props can be overwritten by the parent. Returns the actual value read after the command; status:1 is command acknowledgement, not proof that the requested value persisted. If transport/readback fails, read state before retrying; do not blindly repeat a mutation.',\n componentField.extend({ value: z.json() }),\n ({ appId, value, ...payload }) =>\n editField(\n { type: 'components:editState', appId, payload: { ...payload, value } },\n () => connection.query({ type: 'components:stateValue', appId, payload }),\n ),\n resultSchemas.edited,\n 'action',\n ),\n 'edit-inspector-state': tool(\n 'Change one existing editable Inspector field through its plugin edit hook, including Pinia. First read inspector-value and check editable. Accepts a JSON value at the entry path; does not replace the entire store. Returns the actual value read after the command, which a plugin may transform or leave unchanged. If transport/readback fails, inspect state before retrying.',\n inspectorField.extend({ value: z.json() }),\n ({ appId, value, ...payload }) =>\n editField(\n { type: 'inspectors:editState', appId, payload: { ...payload, value } },\n () => connection.query({ type: 'inspectors:stateValue', appId, payload }),\n ),\n resultSchemas.edited,\n 'action',\n ),\n }\n : {}),\n 'expand-value': tool(\n 'Expand an encoded value handle from a previous state or inspector query in this app and document. Read only the necessary path. If a handle expired, rerun the original query for a new one.' +\n handleNote +\n pagingGuide,\n target.extend({\n handle: z.string().min(1),\n path: z.array(z.string()).max(20).optional(),\n ...pagination,\n pageSize: z.number().int().min(1).max(5000).optional(),\n }),\n async ({ appId, ...payload }) => {\n const result = await connection.query({ type: 'values:expand', appId, payload })\n if (result == null) {\n throw new Error(\n 'Value handle is expired or unknown. Rerun the original component-state or inspector-state query, then retry expand-value with the new handle. If the page reloaded, rediscover its tools first.',\n )\n }\n if ('found' in result && result.found === false) {\n throw new Error(\n 'Value path was not found. Read the current value and correct the path before expanding again.',\n )\n }\n return result\n },\n resultSchemas.expanded,\n ),\n }\n}\n\nfunction toSnapshot(page: VueDevtoolsAgentPage, result: unknown): VueDevtoolsAgentSnapshot {\n return {\n page: { id: page.id, url: page.url, title: page.title },\n capturedAt: Date.now(),\n result: toJson(result) ?? null,\n }\n}\n\n// The codec output is JSON-safe; this pass only normalizes the few non-codec results\n// (render code, router data, plugin settings) into plain JSON.\nfunction toJson(value: unknown): unknown {\n return JSON.parse(stringify(value) ?? 'null')\n}\n","import type { RuntimeCommandRequest, RuntimeCommandResult } from '@vue/devtools-kit'\nimport type { VueDevtoolsAgentConnection } from './types'\n\nexport interface VueDevtoolsAgentSession extends VueDevtoolsAgentConnection {\n command(request: RuntimeCommandRequest): Promise<RuntimeCommandResult>\n dispose(): void\n}\n\n/** Connect on the first call and retain the connection until the host disposes it. */\nexport function createVueDevtoolsAgentSession(\n connect: () => VueDevtoolsAgentConnection & { dispose(): void },\n): VueDevtoolsAgentSession {\n let connection: (VueDevtoolsAgentConnection & { dispose(): void }) | undefined\n let disposed = false\n\n function getConnection() {\n if (disposed) throw new Error('Vue DevTools agent session is disposed')\n return (connection ??= connect())\n }\n\n return {\n async query(request) {\n return getConnection().query(request)\n },\n async command(request) {\n const current = getConnection()\n if (!current.command) throw new Error('Vue DevTools agent session cannot send commands')\n return current.command(request)\n },\n dispose() {\n disposed = true\n const current = connection\n connection = undefined\n current?.dispose()\n },\n }\n}\n"],"mappings":";;;AAEA,MAAM,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC;AAEhD,MAAM,eAA0B,EAAE,WAChC,EAAE,MAAM;CACN,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,WAAW,CAAC,EAAE,CAAC;CAChD,EAAE,OAAO;EAAE,MAAM,EAAE,QAAQ,SAAS;EAAG,OAAO,EAAE,QAAQ;CAAE,CAAC;CAC3D,EAAE,OAAO;EACP,MAAM,EAAE,QAAQ,QAAQ;EACxB,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,KAAK;GAAC;GAAO;GAAY;EAAW,CAAC,CAAC,CAAC;CACvE,CAAC;CACD,EAAE,OAAO;EACP,MAAM,EAAE,QAAQ,QAAQ;EACxB,OAAO,EAAE,OAAO;EACh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