tauri-agent-tools 0.5.1 → 0.6.0

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 (65) hide show
  1. package/.agents/skills/tauri-agent-tools/SKILL.md +105 -12
  2. package/.agents/skills/tauri-bridge-setup/SKILL.md +42 -6
  3. package/AGENTS.md +9 -7
  4. package/README.md +51 -11
  5. package/dist/bridge/client.d.ts +5 -2
  6. package/dist/bridge/client.js +38 -3
  7. package/dist/bridge/client.js.map +1 -1
  8. package/dist/cli.js +22 -0
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/capture.d.ts +3 -0
  11. package/dist/commands/capture.js +218 -0
  12. package/dist/commands/capture.js.map +1 -0
  13. package/dist/commands/check.d.ts +5 -0
  14. package/dist/commands/check.js +174 -0
  15. package/dist/commands/check.js.map +1 -0
  16. package/dist/commands/eval.js +16 -3
  17. package/dist/commands/eval.js.map +1 -1
  18. package/dist/commands/interact/click.d.ts +6 -0
  19. package/dist/commands/interact/click.js +102 -0
  20. package/dist/commands/interact/click.js.map +1 -0
  21. package/dist/commands/interact/focus.d.ts +3 -0
  22. package/dist/commands/interact/focus.js +40 -0
  23. package/dist/commands/interact/focus.js.map +1 -0
  24. package/dist/commands/interact/navigate.d.ts +3 -0
  25. package/dist/commands/interact/navigate.js +49 -0
  26. package/dist/commands/interact/navigate.js.map +1 -0
  27. package/dist/commands/interact/scroll.d.ts +11 -0
  28. package/dist/commands/interact/scroll.js +110 -0
  29. package/dist/commands/interact/scroll.js.map +1 -0
  30. package/dist/commands/interact/select.d.ts +3 -0
  31. package/dist/commands/interact/select.js +59 -0
  32. package/dist/commands/interact/select.js.map +1 -0
  33. package/dist/commands/interact/shared.d.ts +23 -0
  34. package/dist/commands/interact/shared.js +62 -0
  35. package/dist/commands/interact/shared.js.map +1 -0
  36. package/dist/commands/interact/type.d.ts +6 -0
  37. package/dist/commands/interact/type.js +59 -0
  38. package/dist/commands/interact/type.js.map +1 -0
  39. package/dist/commands/invoke.d.ts +3 -0
  40. package/dist/commands/invoke.js +53 -0
  41. package/dist/commands/invoke.js.map +1 -0
  42. package/dist/commands/probe.d.ts +2 -0
  43. package/dist/commands/probe.js +117 -0
  44. package/dist/commands/probe.js.map +1 -0
  45. package/dist/commands/shared.d.ts +10 -4
  46. package/dist/commands/shared.js +23 -3
  47. package/dist/commands/shared.js.map +1 -1
  48. package/dist/commands/storeInspect.d.ts +13 -0
  49. package/dist/commands/storeInspect.js +156 -0
  50. package/dist/commands/storeInspect.js.map +1 -0
  51. package/dist/schemas/bridge.d.ts +34 -0
  52. package/dist/schemas/bridge.js +13 -0
  53. package/dist/schemas/bridge.js.map +1 -1
  54. package/dist/schemas/commands.d.ts +126 -0
  55. package/dist/schemas/commands.js +28 -0
  56. package/dist/schemas/commands.js.map +1 -1
  57. package/dist/schemas/index.d.ts +3 -2
  58. package/dist/schemas/index.js +3 -2
  59. package/dist/schemas/index.js.map +1 -1
  60. package/dist/schemas/interact.d.ts +118 -0
  61. package/dist/schemas/interact.js +31 -0
  62. package/dist/schemas/interact.js.map +1 -0
  63. package/examples/tauri-bridge/src/dev_bridge.rs +88 -2
  64. package/package.json +1 -1
  65. package/rust-bridge/README.md +7 -5
@@ -1,5 +1,5 @@
1
1
  import { BridgeClient } from '../bridge/client.js';
2
- import { discoverBridge } from '../bridge/tokenDiscovery.js';
2
+ import { discoverBridge, discoverBridgesByPid } from '../bridge/tokenDiscovery.js';
3
3
  /**
4
4
  * Parse a value with a Zod enum schema, throwing a human-readable error on failure.
5
5
  * Replaces raw `.parse()` calls that would surface cryptic ZodError messages.
@@ -14,14 +14,34 @@ export function parseEnum(schema, value, label) {
14
14
  export function addBridgeOptions(cmd) {
15
15
  return cmd
16
16
  .option('--port <number>', 'Bridge port (auto-discover if omitted)', parseInt)
17
- .option('--token <string>', 'Bridge token (auto-discover if omitted)');
17
+ .option('--token <string>', 'Bridge token (auto-discover if omitted)')
18
+ .option('--pid <number>', 'Target app PID (auto-discover if omitted)', parseInt)
19
+ .option('--window-label <label>', 'Target window label (default: main)');
18
20
  }
19
21
  export async function resolveBridge(opts) {
20
22
  let config;
21
23
  if (opts.port && opts.token) {
24
+ // Explicit port + token: skip discovery entirely
22
25
  config = { port: opts.port, token: opts.token };
23
26
  }
27
+ else if (opts.pid !== undefined) {
28
+ // PID-targeted discovery
29
+ const bridges = await discoverBridgesByPid();
30
+ const match = bridges.get(opts.pid);
31
+ if (!match) {
32
+ const pids = [...bridges.keys()];
33
+ const listing = pids.length > 0
34
+ ? `Running bridges:\n${pids.map((p) => ` PID ${p}`).join('\n')}`
35
+ : 'No running bridges found.';
36
+ throw new Error(`No bridge found for PID ${opts.pid}.\n${listing}`);
37
+ }
38
+ config = {
39
+ port: opts.port ?? match.port,
40
+ token: opts.token ?? match.token,
41
+ };
42
+ }
24
43
  else {
44
+ // First-match discovery
25
45
  const discovered = await discoverBridge();
26
46
  if (!discovered) {
27
47
  throw new Error('No bridge found. Either:\n' +
@@ -33,6 +53,6 @@ export async function resolveBridge(opts) {
33
53
  token: opts.token ?? discovered.token,
34
54
  };
35
55
  }
36
- return new BridgeClient(config);
56
+ return new BridgeClient(config, opts.windowLabel);
37
57
  }
38
58
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/commands/shared.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D;;;GAGG;AACH,MAAM,UAAU,SAAS,CACvB,MAAoB,EACpB,KAAa,EACb,KAAa;IAEb,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,KAAK,KAAK,qBAAqB,MAAM,CAAC,OAAO,CAAC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AAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACjE,CAAC,CAAC,2BAA2B,CAAC;YAClC,MAAM,IAAI,KAAK,CACb,2BAA2B,IAAI,CAAC,GAAG,MAAM,OAAO,EAAE,CACnD,CAAC;QACJ,CAAC;QACD,MAAM,GAAG;YACP,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK;SACjC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,wBAAwB;QACxB,MAAM,UAAU,GAAG,MAAM,cAAc,EAAE,CAAC;QAC1C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,4BAA4B;gBAC1B,mDAAmD;gBACnD,0CAA0C,CAC7C,CAAC;QACJ,CAAC;QACD,MAAM,GAAG;YACP,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI;YAClC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK;SACtC,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Command } from 'commander';
2
+ /**
3
+ * Builds a JavaScript IIFE that detects and serializes reactive stores
4
+ * from the target framework running in the Tauri webview.
5
+ *
6
+ * Detection priority:
7
+ * 1. window.__DEBUG_STORES__ (app-registered hook)
8
+ * 2. window.__pinia (Pinia store)
9
+ * 3. window.__VUE_DEVTOOLS_GLOBAL_HOOK__ (Vue devtools hook)
10
+ * 4. Fallback: unknown with empty stores
11
+ */
12
+ export declare function buildStoreDetectionScript(framework: string, storeName?: string, depth?: number): string;
13
+ export declare function registerStoreInspect(program: Command): void;
@@ -0,0 +1,156 @@
1
+ import { Command } from 'commander';
2
+ import { addBridgeOptions, resolveBridge } from './shared.js';
3
+ import { StoreInspectResultSchema } from '../schemas/commands.js';
4
+ /**
5
+ * Builds a JavaScript IIFE that detects and serializes reactive stores
6
+ * from the target framework running in the Tauri webview.
7
+ *
8
+ * Detection priority:
9
+ * 1. window.__DEBUG_STORES__ (app-registered hook)
10
+ * 2. window.__pinia (Pinia store)
11
+ * 3. window.__VUE_DEVTOOLS_GLOBAL_HOOK__ (Vue devtools hook)
12
+ * 4. Fallback: unknown with empty stores
13
+ */
14
+ export function buildStoreDetectionScript(framework, storeName, depth = 3) {
15
+ const storeNameFilter = storeName ? JSON.stringify(storeName) : 'null';
16
+ return `(function() {
17
+ var maxDepth = ${depth};
18
+ var storeNameFilter = ${storeNameFilter};
19
+
20
+ function serialize(obj, maxD, currentD) {
21
+ if (currentD === undefined) currentD = 0;
22
+ try {
23
+ if (obj === null || obj === undefined) return obj;
24
+ if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean') return obj;
25
+ if (currentD >= maxD) return '[max depth]';
26
+ if (Array.isArray(obj)) {
27
+ var arr = obj.slice(0, 100).map(function(item) { return serialize(item, maxD, currentD + 1); });
28
+ if (obj.length > 100) arr.push('[truncated, ' + (obj.length - 100) + ' more]');
29
+ return arr;
30
+ }
31
+ if (typeof obj === 'object') {
32
+ var keys = Object.keys(obj).slice(0, 50);
33
+ var result = {};
34
+ for (var i = 0; i < keys.length; i++) {
35
+ var k = keys[i];
36
+ try { result[k] = serialize(obj[k], maxD, currentD + 1); } catch(e) { result[k] = '[error]'; }
37
+ }
38
+ if (Object.keys(obj).length > 50) result['__truncated__'] = true;
39
+ return result;
40
+ }
41
+ return String(obj);
42
+ } catch(e) {
43
+ return '[error]';
44
+ }
45
+ }
46
+
47
+ // Check for app-registered debug hook first
48
+ if (typeof window.__DEBUG_STORES__ === 'function') {
49
+ try {
50
+ var hookResult = window.__DEBUG_STORES__();
51
+ var hookStores = {};
52
+ if (hookResult && typeof hookResult === 'object') {
53
+ var hookKeys = Object.keys(hookResult);
54
+ for (var i = 0; i < hookKeys.length; i++) {
55
+ var key = hookKeys[i];
56
+ if (storeNameFilter === null || key === storeNameFilter) {
57
+ hookStores[key] = serialize(hookResult[key], maxDepth, 0);
58
+ }
59
+ }
60
+ }
61
+ return JSON.stringify({ framework: 'custom', stores: hookStores });
62
+ } catch(e) {
63
+ // fall through to framework detection
64
+ }
65
+ }
66
+
67
+ var stores = {};
68
+ var detectedFramework = 'unknown';
69
+
70
+ // Pinia detection
71
+ if ((${framework === 'auto' || framework === 'pinia' ? 'true' : 'false'}) && window.__pinia) {
72
+ try {
73
+ var pinia = window.__pinia;
74
+ if (pinia._s && typeof pinia._s.forEach === 'function') {
75
+ pinia._s.forEach(function(store, id) {
76
+ if (storeNameFilter === null || id === storeNameFilter) {
77
+ try {
78
+ var state = store.$state;
79
+ stores[id] = serialize(state, maxDepth, 0);
80
+ } catch(e) {
81
+ stores[id] = '[error]';
82
+ }
83
+ }
84
+ });
85
+ detectedFramework = 'pinia';
86
+ }
87
+ } catch(e) {
88
+ // continue to next detection
89
+ }
90
+ }
91
+
92
+ // Vue devtools hook detection
93
+ if ((${framework === 'auto' || framework === 'vue' ? 'true' : 'false'}) && detectedFramework === 'unknown' && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
94
+ try {
95
+ var hook = window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
96
+ if (hook.store) {
97
+ var vueStoreId = storeNameFilter || 'vuex';
98
+ if (storeNameFilter === null || storeNameFilter === 'vuex') {
99
+ stores[vueStoreId] = serialize(hook.store.state, maxDepth, 0);
100
+ }
101
+ detectedFramework = 'vue';
102
+ } else if (hook.stores && typeof hook.stores.forEach === 'function') {
103
+ hook.stores.forEach(function(store) {
104
+ var sid = (store.$id || store.id || 'store');
105
+ if (storeNameFilter === null || sid === storeNameFilter) {
106
+ stores[sid] = serialize(store.$state || store.state, maxDepth, 0);
107
+ }
108
+ });
109
+ detectedFramework = 'vue';
110
+ }
111
+ } catch(e) {
112
+ // continue to fallback
113
+ }
114
+ }
115
+
116
+ return JSON.stringify({ framework: detectedFramework, stores: stores });
117
+ })()`;
118
+ }
119
+ function formatStoreInspectResult(result) {
120
+ const storeKeys = Object.keys(result.stores);
121
+ const lines = [`Framework: ${result.framework}`];
122
+ if (storeKeys.length === 0) {
123
+ lines.push('Stores: (none detected)');
124
+ }
125
+ else {
126
+ lines.push(`Stores (${storeKeys.length}):`);
127
+ for (const key of storeKeys) {
128
+ lines.push(` ${key}:`);
129
+ lines.push(` ${JSON.stringify(result.stores[key], null, 2).replace(/\n/g, '\n ')}`);
130
+ }
131
+ }
132
+ return lines.join('\n');
133
+ }
134
+ export function registerStoreInspect(program) {
135
+ const cmd = new Command('store-inspect')
136
+ .description('Inspect reactive stores (Pinia, Vue, or custom app-registered hook)')
137
+ .option('--framework <name>', 'Framework to inspect: auto, pinia, vue', 'auto')
138
+ .option('--store <name>', 'Filter to a specific store by name')
139
+ .option('--depth <n>', 'Serialization depth', parseInt, 3)
140
+ .option('--json', 'Output as JSON');
141
+ addBridgeOptions(cmd);
142
+ cmd.action(async (opts) => {
143
+ const bridge = await resolveBridge(opts);
144
+ const script = buildStoreDetectionScript(opts.framework, opts.store, opts.depth);
145
+ const raw = await bridge.eval(script);
146
+ const result = StoreInspectResultSchema.parse(JSON.parse(String(raw)));
147
+ if (opts.json) {
148
+ console.log(JSON.stringify(result, null, 2));
149
+ }
150
+ else {
151
+ console.log(formatStoreInspectResult(result));
152
+ }
153
+ });
154
+ program.addCommand(cmd);
155
+ }
156
+ //# sourceMappingURL=storeInspect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeInspect.js","sourceRoot":"","sources":["../../src/commands/storeInspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAA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,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC"}
@@ -118,3 +118,37 @@ export declare const BridgeLogsResponseSchema: z.ZodObject<{
118
118
  source: string;
119
119
  }[];
120
120
  }>;
121
+ export declare const DescribeResponseSchema: z.ZodObject<{
122
+ app: z.ZodOptional<z.ZodString>;
123
+ pid: z.ZodOptional<z.ZodNumber>;
124
+ windows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ surfaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
127
+ exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ pid?: number | undefined;
130
+ app?: string | undefined;
131
+ windows?: string[] | undefined;
132
+ capabilities?: string[] | undefined;
133
+ surfaces?: Record<string, string> | undefined;
134
+ exports?: Record<string, string> | undefined;
135
+ }, {
136
+ pid?: number | undefined;
137
+ app?: string | undefined;
138
+ windows?: string[] | undefined;
139
+ capabilities?: string[] | undefined;
140
+ surfaces?: Record<string, string> | undefined;
141
+ exports?: Record<string, string> | undefined;
142
+ }>;
143
+ export type DescribeResponse = z.infer<typeof DescribeResponseSchema>;
144
+ export declare const VersionResponseSchema: z.ZodObject<{
145
+ version: z.ZodString;
146
+ endpoints: z.ZodArray<z.ZodString, "many">;
147
+ }, "strip", z.ZodTypeAny, {
148
+ version: string;
149
+ endpoints: string[];
150
+ }, {
151
+ version: string;
152
+ endpoints: string[];
153
+ }>;
154
+ export type VersionResponse = z.infer<typeof VersionResponseSchema>;
@@ -35,4 +35,17 @@ export const BridgeEvalResponseSchema = z.object({
35
35
  export const BridgeLogsResponseSchema = z.object({
36
36
  entries: z.array(RustLogEntrySchema),
37
37
  });
38
+ // === Probe / Discovery Responses ===
39
+ export const DescribeResponseSchema = z.object({
40
+ app: z.string().optional(),
41
+ pid: z.number().optional(),
42
+ windows: z.array(z.string()).optional(),
43
+ capabilities: z.array(z.string()).optional(),
44
+ surfaces: z.record(z.string(), z.string()).optional(),
45
+ exports: z.record(z.string(), z.string()).optional(),
46
+ });
47
+ export const VersionResponseSchema = z.object({
48
+ version: z.string(),
49
+ endpoints: z.array(z.string()),
50
+ });
38
51
  //# sourceMappingURL=bridge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.js","sourceRoot":"","sources":["../../src/schemas/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0BAA0B;AAE1B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH,uBAAuB;AAEvB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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"
235
235
  export type StorageType = z.infer<typeof StorageTypeSchema>;
236
236
  export declare const DomModeSchema: z.ZodEnum<["dom", "accessibility"]>;
237
237
  export type DomMode = z.infer<typeof DomModeSchema>;
238
+ export declare const CaptureManifestSchema: z.ZodObject<{
239
+ timestamp: z.ZodString;
240
+ url: z.ZodOptional<z.ZodString>;
241
+ title: z.ZodOptional<z.ZodString>;
242
+ viewport: z.ZodOptional<z.ZodObject<{
243
+ width: z.ZodNumber;
244
+ height: z.ZodNumber;
245
+ }, "strip", z.ZodTypeAny, {
246
+ width: number;
247
+ height: number;
248
+ }, {
249
+ width: number;
250
+ height: number;
251
+ }>>;
252
+ errorCount: z.ZodOptional<z.ZodNumber>;
253
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ timestamp: string;
256
+ files: Record<string, string>;
257
+ url?: string | undefined;
258
+ title?: string | undefined;
259
+ viewport?: {
260
+ width: number;
261
+ height: number;
262
+ } | undefined;
263
+ errorCount?: number | undefined;
264
+ }, {
265
+ timestamp: string;
266
+ files: Record<string, string>;
267
+ url?: string | undefined;
268
+ title?: string | undefined;
269
+ viewport?: {
270
+ width: number;
271
+ height: number;
272
+ } | undefined;
273
+ errorCount?: number | undefined;
274
+ }>;
275
+ export type CaptureManifest = z.infer<typeof CaptureManifestSchema>;
238
276
  export declare const PackageJsonSchema: z.ZodObject<{
239
277
  version: z.ZodString;
240
278
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -243,3 +281,91 @@ export declare const PackageJsonSchema: z.ZodObject<{
243
281
  version: z.ZodString;
244
282
  }, z.ZodTypeAny, "passthrough">>;
245
283
  export type PackageJson = z.infer<typeof PackageJsonSchema>;
284
+ export declare const StoreInspectResultSchema: z.ZodObject<{
285
+ framework: z.ZodString;
286
+ stores: z.ZodRecord<z.ZodString, z.ZodUnknown>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ framework: string;
289
+ stores: Record<string, unknown>;
290
+ }, {
291
+ framework: string;
292
+ stores: Record<string, unknown>;
293
+ }>;
294
+ export type StoreInspectResult = z.infer<typeof StoreInspectResultSchema>;
295
+ export declare const CheckItemSchema: z.ZodObject<{
296
+ type: z.ZodEnum<["selector", "text", "eval", "no-errors"]>;
297
+ passed: z.ZodBoolean;
298
+ selector: z.ZodOptional<z.ZodString>;
299
+ pattern: z.ZodOptional<z.ZodString>;
300
+ expression: z.ZodOptional<z.ZodString>;
301
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
302
+ error: z.ZodOptional<z.ZodString>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ type: "selector" | "text" | "eval" | "no-errors";
305
+ passed: boolean;
306
+ error?: string | undefined;
307
+ selector?: string | undefined;
308
+ pattern?: string | undefined;
309
+ expression?: string | undefined;
310
+ errors?: string[] | undefined;
311
+ }, {
312
+ type: "selector" | "text" | "eval" | "no-errors";
313
+ passed: boolean;
314
+ error?: string | undefined;
315
+ selector?: string | undefined;
316
+ pattern?: string | undefined;
317
+ expression?: string | undefined;
318
+ errors?: string[] | undefined;
319
+ }>;
320
+ export type CheckItem = z.infer<typeof CheckItemSchema>;
321
+ export declare const CheckResultSchema: z.ZodObject<{
322
+ passed: z.ZodBoolean;
323
+ checks: z.ZodArray<z.ZodObject<{
324
+ type: z.ZodEnum<["selector", "text", "eval", "no-errors"]>;
325
+ passed: z.ZodBoolean;
326
+ selector: z.ZodOptional<z.ZodString>;
327
+ pattern: z.ZodOptional<z.ZodString>;
328
+ expression: z.ZodOptional<z.ZodString>;
329
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
330
+ error: z.ZodOptional<z.ZodString>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "selector" | "text" | "eval" | "no-errors";
333
+ passed: boolean;
334
+ error?: string | undefined;
335
+ selector?: string | undefined;
336
+ pattern?: string | undefined;
337
+ expression?: string | undefined;
338
+ errors?: string[] | undefined;
339
+ }, {
340
+ type: "selector" | "text" | "eval" | "no-errors";
341
+ passed: boolean;
342
+ error?: string | undefined;
343
+ selector?: string | undefined;
344
+ pattern?: string | undefined;
345
+ expression?: string | undefined;
346
+ errors?: string[] | undefined;
347
+ }>, "many">;
348
+ }, "strip", z.ZodTypeAny, {
349
+ passed: boolean;
350
+ checks: {
351
+ type: "selector" | "text" | "eval" | "no-errors";
352
+ passed: boolean;
353
+ error?: string | undefined;
354
+ selector?: string | undefined;
355
+ pattern?: string | undefined;
356
+ expression?: string | undefined;
357
+ errors?: string[] | undefined;
358
+ }[];
359
+ }, {
360
+ passed: boolean;
361
+ checks: {
362
+ type: "selector" | "text" | "eval" | "no-errors";
363
+ passed: boolean;
364
+ error?: string | undefined;
365
+ selector?: string | undefined;
366
+ pattern?: string | undefined;
367
+ expression?: string | undefined;
368
+ errors?: string[] | undefined;
369
+ }[];
370
+ }>;
371
+ export type CheckResult = z.infer<typeof CheckResultSchema>;
@@ -58,8 +58,36 @@ export const SnapshotStorageResultSchema = z.object({
58
58
  export const ImageFormatSchema = z.enum(['png', 'jpg']);
59
59
  export const StorageTypeSchema = z.enum(['local', 'session', 'cookies', 'all']);
60
60
  export const DomModeSchema = z.enum(['dom', 'accessibility']);
61
+ // === Capture manifest ===
62
+ export const CaptureManifestSchema = z.object({
63
+ timestamp: z.string(),
64
+ url: z.string().optional(),
65
+ title: z.string().optional(),
66
+ viewport: z.object({ width: z.number(), height: z.number() }).optional(),
67
+ errorCount: z.number().optional(),
68
+ files: z.record(z.string(), z.string()),
69
+ });
61
70
  // === CLI: package.json ===
62
71
  export const PackageJsonSchema = z.object({
63
72
  version: z.string(),
64
73
  }).passthrough();
74
+ // === Store Inspect ===
75
+ export const StoreInspectResultSchema = z.object({
76
+ framework: z.string(),
77
+ stores: z.record(z.string(), z.unknown()),
78
+ });
79
+ // === Check ===
80
+ export const CheckItemSchema = z.object({
81
+ type: z.enum(['selector', 'text', 'eval', 'no-errors']),
82
+ passed: z.boolean(),
83
+ selector: z.string().optional(),
84
+ pattern: z.string().optional(),
85
+ expression: z.string().optional(),
86
+ errors: z.array(z.string()).optional(),
87
+ error: z.string().optional(),
88
+ });
89
+ export const CheckResultSchema = z.object({
90
+ passed: z.boolean(),
91
+ checks: z.array(CheckItemSchema),
92
+ });
65
93
  //# sourceMappingURL=commands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/schemas/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,kBAAkB;AAElB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGH,qBAAqB;AAErB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAC7D,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAC7D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAGH,0BAA0B;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAA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,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CACjC,CAAC,CAAC"}
@@ -5,7 +5,8 @@
5
5
  * Barrel re-exports from all domain files. Consumers may import directly
6
6
  * from domain files (e.g., '../schemas/bridge.js') for explicitness.
7
7
  */
8
- export { TokenFileSchema, type TokenFile, ElementRectSchema, type ElementRect, BridgeConfigSchema, type BridgeConfig, ViewportSizeSchema, type ViewportSize, RustLogLevelSchema, type RustLogLevel, RustLogEntrySchema, type RustLogEntry, BridgeEvalResponseSchema, BridgeLogsResponseSchema, } from './bridge.js';
8
+ export { TokenFileSchema, type TokenFile, ElementRectSchema, type ElementRect, BridgeConfigSchema, type BridgeConfig, ViewportSizeSchema, type ViewportSize, RustLogLevelSchema, type RustLogLevel, RustLogEntrySchema, type RustLogEntry, BridgeEvalResponseSchema, BridgeLogsResponseSchema, DescribeResponseSchema, type DescribeResponse, VersionResponseSchema, type VersionResponse, } from './bridge.js';
9
9
  export { DomNodeSchema, type DomNode, A11yNodeSchema, type A11yNode, } from './dom.js';
10
- export { StorageEntrySchema, type StorageEntry, PageStateSchema, type PageState, ConsoleLevelSchema, type ConsoleLevel, ConsoleEntrySchema, type ConsoleEntry, MutationTypeSchema, type MutationType, MutationEntrySchema, type MutationEntry, IpcEntrySchema, type IpcEntry, SnapshotStorageResultSchema, type SnapshotStorageResult, ImageFormatSchema, type ImageFormat, StorageTypeSchema, type StorageType, DomModeSchema, type DomMode, PackageJsonSchema, type PackageJson, } from './commands.js';
10
+ export { StorageEntrySchema, type StorageEntry, PageStateSchema, type PageState, ConsoleLevelSchema, type ConsoleLevel, ConsoleEntrySchema, type ConsoleEntry, MutationTypeSchema, type MutationType, MutationEntrySchema, type MutationEntry, IpcEntrySchema, type IpcEntry, SnapshotStorageResultSchema, type SnapshotStorageResult, ImageFormatSchema, type ImageFormat, StorageTypeSchema, type StorageType, DomModeSchema, type DomMode, PackageJsonSchema, type PackageJson, CheckItemSchema, type CheckItem, CheckResultSchema, type CheckResult, StoreInspectResultSchema, type StoreInspectResult, CaptureManifestSchema, type CaptureManifest, } from './commands.js';
11
11
  export { WindowIdSchema, CGWindowInfoSchema, type CGWindowInfo, SwayNodeSchema, type SwayNode, } from './platform.js';
12
+ export { InteractionResultSchema, type InteractionResult, ClickResultSchema, type ClickResult, TypeResultSchema, type TypeResult, ScrollResultSchema, type ScrollResult, SelectResultSchema, type SelectResult, InvokeResultSchema, type InvokeResult, } from './interact.js';
@@ -5,8 +5,9 @@
5
5
  * Barrel re-exports from all domain files. Consumers may import directly
6
6
  * from domain files (e.g., '../schemas/bridge.js') for explicitness.
7
7
  */
8
- export { TokenFileSchema, ElementRectSchema, BridgeConfigSchema, ViewportSizeSchema, RustLogLevelSchema, RustLogEntrySchema, BridgeEvalResponseSchema, BridgeLogsResponseSchema, } from './bridge.js';
8
+ export { TokenFileSchema, ElementRectSchema, BridgeConfigSchema, ViewportSizeSchema, RustLogLevelSchema, RustLogEntrySchema, BridgeEvalResponseSchema, BridgeLogsResponseSchema, DescribeResponseSchema, VersionResponseSchema, } from './bridge.js';
9
9
  export { DomNodeSchema, A11yNodeSchema, } from './dom.js';
10
- export { StorageEntrySchema, PageStateSchema, ConsoleLevelSchema, ConsoleEntrySchema, MutationTypeSchema, MutationEntrySchema, IpcEntrySchema, SnapshotStorageResultSchema, ImageFormatSchema, StorageTypeSchema, DomModeSchema, PackageJsonSchema, } from './commands.js';
10
+ export { StorageEntrySchema, PageStateSchema, ConsoleLevelSchema, ConsoleEntrySchema, MutationTypeSchema, MutationEntrySchema, IpcEntrySchema, SnapshotStorageResultSchema, ImageFormatSchema, StorageTypeSchema, DomModeSchema, PackageJsonSchema, CheckItemSchema, CheckResultSchema, StoreInspectResultSchema, CaptureManifestSchema, } from './commands.js';
11
11
  export { WindowIdSchema, CGWindowInfoSchema, SwayNodeSchema, } from './platform.js';
12
+ export { InteractionResultSchema, ClickResultSchema, TypeResultSchema, ScrollResultSchema, SelectResultSchema, InvokeResultSchema, } from './interact.js';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAEf,iBAAiB,EAEjB,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EAEb,cAAc,GAEf,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,kBAAkB,EAElB,eAAe,EAEf,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,mBAAmB,EAEnB,cAAc,EAEd,2BAA2B,EAE3B,iBAAiB,EAEjB,iBAAiB,EAEjB,aAAa,EAEb,iBAAiB,GAElB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,kBAAkB,EAElB,cAAc,GAEf,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAEf,iBAAiB,EAEjB,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EAEtB,qBAAqB,GAEtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EAEb,cAAc,GAEf,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,kBAAkB,EAElB,eAAe,EAEf,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,EAElB,mBAAmB,EAEnB,cAAc,EAEd,2BAA2B,EAE3B,iBAAiB,EAEjB,iBAAiB,EAEjB,aAAa,EAEb,iBAAiB,EAEjB,eAAe,EAEf,iBAAiB,EAEjB,wBAAwB,EAExB,qBAAqB,GAEtB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,kBAAkB,EAElB,cAAc,GAEf,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,uBAAuB,EAEvB,iBAAiB,EAEjB,gBAAgB,EAEhB,kBAAkB,EAElB,kBAAkB,EAElB,kBAAkB,GAEnB,MAAM,eAAe,CAAC"}
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ export declare const InteractionResultSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ selector: z.ZodOptional<z.ZodString>;
5
+ tagName: z.ZodOptional<z.ZodString>;
6
+ error: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ success: boolean;
9
+ error?: string | undefined;
10
+ selector?: string | undefined;
11
+ tagName?: string | undefined;
12
+ }, {
13
+ success: boolean;
14
+ error?: string | undefined;
15
+ selector?: string | undefined;
16
+ tagName?: string | undefined;
17
+ }>;
18
+ export type InteractionResult = z.infer<typeof InteractionResultSchema>;
19
+ export declare const ClickResultSchema: z.ZodObject<{
20
+ success: z.ZodBoolean;
21
+ selector: z.ZodOptional<z.ZodString>;
22
+ tagName: z.ZodOptional<z.ZodString>;
23
+ error: z.ZodOptional<z.ZodString>;
24
+ } & {
25
+ text: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ success: boolean;
28
+ error?: string | undefined;
29
+ selector?: string | undefined;
30
+ text?: string | undefined;
31
+ tagName?: string | undefined;
32
+ }, {
33
+ success: boolean;
34
+ error?: string | undefined;
35
+ selector?: string | undefined;
36
+ text?: string | undefined;
37
+ tagName?: string | undefined;
38
+ }>;
39
+ export type ClickResult = z.infer<typeof ClickResultSchema>;
40
+ export declare const TypeResultSchema: z.ZodObject<{
41
+ success: z.ZodBoolean;
42
+ selector: z.ZodOptional<z.ZodString>;
43
+ tagName: z.ZodOptional<z.ZodString>;
44
+ error: z.ZodOptional<z.ZodString>;
45
+ } & {
46
+ value: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ success: boolean;
49
+ value?: string | undefined;
50
+ error?: string | undefined;
51
+ selector?: string | undefined;
52
+ tagName?: string | undefined;
53
+ }, {
54
+ success: boolean;
55
+ value?: string | undefined;
56
+ error?: string | undefined;
57
+ selector?: string | undefined;
58
+ tagName?: string | undefined;
59
+ }>;
60
+ export type TypeResult = z.infer<typeof TypeResultSchema>;
61
+ export declare const ScrollResultSchema: z.ZodObject<{
62
+ success: z.ZodBoolean;
63
+ scrollX: z.ZodOptional<z.ZodNumber>;
64
+ scrollY: z.ZodOptional<z.ZodNumber>;
65
+ error: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ success: boolean;
68
+ error?: string | undefined;
69
+ scrollX?: number | undefined;
70
+ scrollY?: number | undefined;
71
+ }, {
72
+ success: boolean;
73
+ error?: string | undefined;
74
+ scrollX?: number | undefined;
75
+ scrollY?: number | undefined;
76
+ }>;
77
+ export type ScrollResult = z.infer<typeof ScrollResultSchema>;
78
+ export declare const SelectResultSchema: z.ZodObject<{
79
+ success: z.ZodBoolean;
80
+ selector: z.ZodOptional<z.ZodString>;
81
+ tagName: z.ZodOptional<z.ZodString>;
82
+ error: z.ZodOptional<z.ZodString>;
83
+ } & {
84
+ value: z.ZodOptional<z.ZodString>;
85
+ checked: z.ZodOptional<z.ZodBoolean>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ success: boolean;
88
+ value?: string | undefined;
89
+ error?: string | undefined;
90
+ selector?: string | undefined;
91
+ tagName?: string | undefined;
92
+ checked?: boolean | undefined;
93
+ }, {
94
+ success: boolean;
95
+ value?: string | undefined;
96
+ error?: string | undefined;
97
+ selector?: string | undefined;
98
+ tagName?: string | undefined;
99
+ checked?: boolean | undefined;
100
+ }>;
101
+ export type SelectResult = z.infer<typeof SelectResultSchema>;
102
+ export declare const InvokeResultSchema: z.ZodObject<{
103
+ success: z.ZodBoolean;
104
+ command: z.ZodString;
105
+ result: z.ZodOptional<z.ZodUnknown>;
106
+ error: z.ZodOptional<z.ZodString>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ command: string;
109
+ success: boolean;
110
+ error?: string | undefined;
111
+ result?: unknown;
112
+ }, {
113
+ command: string;
114
+ success: boolean;
115
+ error?: string | undefined;
116
+ result?: unknown;
117
+ }>;
118
+ export type InvokeResult = z.infer<typeof InvokeResultSchema>;