tauri-agent-tools 0.5.1 → 0.7.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 (128) hide show
  1. package/.agents/skills/tauri-agent-tools/SKILL.md +195 -13
  2. package/.agents/skills/tauri-bridge-setup/SKILL.md +82 -14
  3. package/.agents/skills/tauri-debug-quickstart/SKILL.md +80 -0
  4. package/AGENTS.md +9 -7
  5. package/README.md +119 -11
  6. package/dist/bridge/client.d.ts +21 -2
  7. package/dist/bridge/client.js +119 -3
  8. package/dist/bridge/client.js.map +1 -1
  9. package/dist/cli.js +47 -0
  10. package/dist/cli.js.map +1 -1
  11. package/dist/commands/appPaths.d.ts +2 -0
  12. package/dist/commands/appPaths.js +97 -0
  13. package/dist/commands/appPaths.js.map +1 -0
  14. package/dist/commands/capabilitiesAudit.d.ts +2 -0
  15. package/dist/commands/capabilitiesAudit.js +105 -0
  16. package/dist/commands/capabilitiesAudit.js.map +1 -0
  17. package/dist/commands/capture.d.ts +3 -0
  18. package/dist/commands/capture.js +218 -0
  19. package/dist/commands/capture.js.map +1 -0
  20. package/dist/commands/check.d.ts +5 -0
  21. package/dist/commands/check.js +174 -0
  22. package/dist/commands/check.js.map +1 -0
  23. package/dist/commands/configInspect.d.ts +2 -0
  24. package/dist/commands/configInspect.js +223 -0
  25. package/dist/commands/configInspect.js.map +1 -0
  26. package/dist/commands/diagnose.d.ts +2 -0
  27. package/dist/commands/diagnose.js +311 -0
  28. package/dist/commands/diagnose.js.map +1 -0
  29. package/dist/commands/eval.js +16 -3
  30. package/dist/commands/eval.js.map +1 -1
  31. package/dist/commands/forensics.d.ts +2 -0
  32. package/dist/commands/forensics.js +331 -0
  33. package/dist/commands/forensics.js.map +1 -0
  34. package/dist/commands/health.d.ts +2 -0
  35. package/dist/commands/health.js +39 -0
  36. package/dist/commands/health.js.map +1 -0
  37. package/dist/commands/interact/click.d.ts +6 -0
  38. package/dist/commands/interact/click.js +102 -0
  39. package/dist/commands/interact/click.js.map +1 -0
  40. package/dist/commands/interact/focus.d.ts +3 -0
  41. package/dist/commands/interact/focus.js +40 -0
  42. package/dist/commands/interact/focus.js.map +1 -0
  43. package/dist/commands/interact/navigate.d.ts +3 -0
  44. package/dist/commands/interact/navigate.js +49 -0
  45. package/dist/commands/interact/navigate.js.map +1 -0
  46. package/dist/commands/interact/scroll.d.ts +11 -0
  47. package/dist/commands/interact/scroll.js +110 -0
  48. package/dist/commands/interact/scroll.js.map +1 -0
  49. package/dist/commands/interact/select.d.ts +3 -0
  50. package/dist/commands/interact/select.js +59 -0
  51. package/dist/commands/interact/select.js.map +1 -0
  52. package/dist/commands/interact/shared.d.ts +23 -0
  53. package/dist/commands/interact/shared.js +62 -0
  54. package/dist/commands/interact/shared.js.map +1 -0
  55. package/dist/commands/interact/type.d.ts +6 -0
  56. package/dist/commands/interact/type.js +59 -0
  57. package/dist/commands/interact/type.js.map +1 -0
  58. package/dist/commands/invoke.d.ts +3 -0
  59. package/dist/commands/invoke.js +53 -0
  60. package/dist/commands/invoke.js.map +1 -0
  61. package/dist/commands/osLogs.d.ts +2 -0
  62. package/dist/commands/osLogs.js +130 -0
  63. package/dist/commands/osLogs.js.map +1 -0
  64. package/dist/commands/probe.d.ts +2 -0
  65. package/dist/commands/probe.js +117 -0
  66. package/dist/commands/probe.js.map +1 -0
  67. package/dist/commands/processTree.d.ts +2 -0
  68. package/dist/commands/processTree.js +45 -0
  69. package/dist/commands/processTree.js.map +1 -0
  70. package/dist/commands/shared.d.ts +10 -4
  71. package/dist/commands/shared.js +23 -3
  72. package/dist/commands/shared.js.map +1 -1
  73. package/dist/commands/sidecarReplay.d.ts +7 -0
  74. package/dist/commands/sidecarReplay.js +93 -0
  75. package/dist/commands/sidecarReplay.js.map +1 -0
  76. package/dist/commands/sidecarTap.d.ts +2 -0
  77. package/dist/commands/sidecarTap.js +118 -0
  78. package/dist/commands/sidecarTap.js.map +1 -0
  79. package/dist/commands/storeInspect.d.ts +13 -0
  80. package/dist/commands/storeInspect.js +156 -0
  81. package/dist/commands/storeInspect.js.map +1 -0
  82. package/dist/commands/webviewAttach.d.ts +2 -0
  83. package/dist/commands/webviewAttach.js +64 -0
  84. package/dist/commands/webviewAttach.js.map +1 -0
  85. package/dist/platform/oslog/darwin.d.ts +21 -0
  86. package/dist/platform/oslog/darwin.js +72 -0
  87. package/dist/platform/oslog/darwin.js.map +1 -0
  88. package/dist/platform/oslog/linux.d.ts +16 -0
  89. package/dist/platform/oslog/linux.js +47 -0
  90. package/dist/platform/oslog/linux.js.map +1 -0
  91. package/dist/platform/oslog/windows.d.ts +15 -0
  92. package/dist/platform/oslog/windows.js +16 -0
  93. package/dist/platform/oslog/windows.js.map +1 -0
  94. package/dist/schemas/bridge.d.ts +256 -0
  95. package/dist/schemas/bridge.js +57 -0
  96. package/dist/schemas/bridge.js.map +1 -1
  97. package/dist/schemas/commands.d.ts +126 -0
  98. package/dist/schemas/commands.js +28 -0
  99. package/dist/schemas/commands.js.map +1 -1
  100. package/dist/schemas/index.d.ts +3 -2
  101. package/dist/schemas/index.js +3 -2
  102. package/dist/schemas/index.js.map +1 -1
  103. package/dist/schemas/interact.d.ts +118 -0
  104. package/dist/schemas/interact.js +31 -0
  105. package/dist/schemas/interact.js.map +1 -0
  106. package/dist/schemas/osLog.d.ts +34 -0
  107. package/dist/schemas/osLog.js +18 -0
  108. package/dist/schemas/osLog.js.map +1 -0
  109. package/dist/schemas/sidecar.d.ts +33 -0
  110. package/dist/schemas/sidecar.js +17 -0
  111. package/dist/schemas/sidecar.js.map +1 -0
  112. package/dist/schemas/tauriConfig.d.ts +825 -0
  113. package/dist/schemas/tauriConfig.js +102 -0
  114. package/dist/schemas/tauriConfig.js.map +1 -0
  115. package/dist/util/ndjson.d.ts +37 -0
  116. package/dist/util/ndjson.js +82 -0
  117. package/dist/util/ndjson.js.map +1 -0
  118. package/dist/util/tauriConfig.d.ts +63 -0
  119. package/dist/util/tauriConfig.js +235 -0
  120. package/dist/util/tauriConfig.js.map +1 -0
  121. package/examples/frontend-stub/index.html +1 -0
  122. package/examples/tauri-bridge/Cargo.toml +6 -0
  123. package/examples/tauri-bridge/build.rs +3 -0
  124. package/examples/tauri-bridge/icons/icon.png +0 -0
  125. package/examples/tauri-bridge/src/dev_bridge.rs +509 -10
  126. package/examples/tauri-bridge/tauri.conf.json +25 -0
  127. package/package.json +3 -1
  128. package/rust-bridge/README.md +7 -5
@@ -118,3 +118,259 @@ 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>;
155
+ export declare const SidecarSummarySchema: z.ZodObject<{
156
+ name: z.ZodString;
157
+ pid: z.ZodNumber;
158
+ exe: z.ZodOptional<z.ZodString>;
159
+ args: z.ZodArray<z.ZodString, "many">;
160
+ alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ args: string[];
163
+ pid: number;
164
+ name: string;
165
+ exe?: string | undefined;
166
+ alive?: boolean | null | undefined;
167
+ }, {
168
+ args: string[];
169
+ pid: number;
170
+ name: string;
171
+ exe?: string | undefined;
172
+ alive?: boolean | null | undefined;
173
+ }>;
174
+ export type SidecarSummary = z.infer<typeof SidecarSummarySchema>;
175
+ export declare const TauriProcessInfoSchema: z.ZodObject<{
176
+ pid: z.ZodNumber;
177
+ exe: z.ZodOptional<z.ZodString>;
178
+ args: z.ZodArray<z.ZodString, "many">;
179
+ uptime_ms: z.ZodNumber;
180
+ }, "strip", z.ZodTypeAny, {
181
+ args: string[];
182
+ pid: number;
183
+ uptime_ms: number;
184
+ exe?: string | undefined;
185
+ }, {
186
+ args: string[];
187
+ pid: number;
188
+ uptime_ms: number;
189
+ exe?: string | undefined;
190
+ }>;
191
+ export type TauriProcessInfo = z.infer<typeof TauriProcessInfoSchema>;
192
+ export declare const ProcessResponseSchema: z.ZodObject<{
193
+ tauri: z.ZodObject<{
194
+ pid: z.ZodNumber;
195
+ exe: z.ZodOptional<z.ZodString>;
196
+ args: z.ZodArray<z.ZodString, "many">;
197
+ uptime_ms: z.ZodNumber;
198
+ }, "strip", z.ZodTypeAny, {
199
+ args: string[];
200
+ pid: number;
201
+ uptime_ms: number;
202
+ exe?: string | undefined;
203
+ }, {
204
+ args: string[];
205
+ pid: number;
206
+ uptime_ms: number;
207
+ exe?: string | undefined;
208
+ }>;
209
+ sidecars: z.ZodArray<z.ZodObject<{
210
+ name: z.ZodString;
211
+ pid: z.ZodNumber;
212
+ exe: z.ZodOptional<z.ZodString>;
213
+ args: z.ZodArray<z.ZodString, "many">;
214
+ alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ args: string[];
217
+ pid: number;
218
+ name: string;
219
+ exe?: string | undefined;
220
+ alive?: boolean | null | undefined;
221
+ }, {
222
+ args: string[];
223
+ pid: number;
224
+ name: string;
225
+ exe?: string | undefined;
226
+ alive?: boolean | null | undefined;
227
+ }>, "many">;
228
+ }, "strip", z.ZodTypeAny, {
229
+ tauri: {
230
+ args: string[];
231
+ pid: number;
232
+ uptime_ms: number;
233
+ exe?: string | undefined;
234
+ };
235
+ sidecars: {
236
+ args: string[];
237
+ pid: number;
238
+ name: string;
239
+ exe?: string | undefined;
240
+ alive?: boolean | null | undefined;
241
+ }[];
242
+ }, {
243
+ tauri: {
244
+ args: string[];
245
+ pid: number;
246
+ uptime_ms: number;
247
+ exe?: string | undefined;
248
+ };
249
+ sidecars: {
250
+ args: string[];
251
+ pid: number;
252
+ name: string;
253
+ exe?: string | undefined;
254
+ alive?: boolean | null | undefined;
255
+ }[];
256
+ }>;
257
+ export type ProcessResponse = z.infer<typeof ProcessResponseSchema>;
258
+ export declare const LiveCapabilityEntrySchema: z.ZodObject<{
259
+ identifier: z.ZodString;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ windows: z.ZodArray<z.ZodString, "many">;
262
+ permissions: z.ZodArray<z.ZodString, "many">;
263
+ }, "strip", z.ZodTypeAny, {
264
+ windows: string[];
265
+ identifier: string;
266
+ permissions: string[];
267
+ description?: string | undefined;
268
+ }, {
269
+ windows: string[];
270
+ identifier: string;
271
+ permissions: string[];
272
+ description?: string | undefined;
273
+ }>;
274
+ export type LiveCapabilityEntry = z.infer<typeof LiveCapabilityEntrySchema>;
275
+ export declare const CapabilitiesResponseSchema: z.ZodObject<{
276
+ declared: z.ZodArray<z.ZodObject<{
277
+ identifier: z.ZodString;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ windows: z.ZodArray<z.ZodString, "many">;
280
+ permissions: z.ZodArray<z.ZodString, "many">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ windows: string[];
283
+ identifier: string;
284
+ permissions: string[];
285
+ description?: string | undefined;
286
+ }, {
287
+ windows: string[];
288
+ identifier: string;
289
+ permissions: string[];
290
+ description?: string | undefined;
291
+ }>, "many">;
292
+ windows: z.ZodArray<z.ZodString, "many">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ windows: string[];
295
+ declared: {
296
+ windows: string[];
297
+ identifier: string;
298
+ permissions: string[];
299
+ description?: string | undefined;
300
+ }[];
301
+ }, {
302
+ windows: string[];
303
+ declared: {
304
+ windows: string[];
305
+ identifier: string;
306
+ permissions: string[];
307
+ description?: string | undefined;
308
+ }[];
309
+ }>;
310
+ export type CapabilitiesResponse = z.infer<typeof CapabilitiesResponseSchema>;
311
+ export declare const DevtoolsPlatformSchema: z.ZodEnum<["wkwebview", "webview2", "webkitgtk"]>;
312
+ export type DevtoolsPlatform = z.infer<typeof DevtoolsPlatformSchema>;
313
+ export declare const DevtoolsResponseSchema: z.ZodObject<{
314
+ platform: z.ZodEnum<["wkwebview", "webview2", "webkitgtk"]>;
315
+ inspectable: z.ZodBoolean;
316
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ hint: z.ZodString;
318
+ }, "strip", z.ZodTypeAny, {
319
+ platform: "wkwebview" | "webview2" | "webkitgtk";
320
+ inspectable: boolean;
321
+ hint: string;
322
+ url?: string | null | undefined;
323
+ }, {
324
+ platform: "wkwebview" | "webview2" | "webkitgtk";
325
+ inspectable: boolean;
326
+ hint: string;
327
+ url?: string | null | undefined;
328
+ }>;
329
+ export type DevtoolsResponse = z.infer<typeof DevtoolsResponseSchema>;
330
+ export declare const HealthResponseSchema: z.ZodObject<{
331
+ uptime_ms: z.ZodNumber;
332
+ webview_ready: z.ZodBoolean;
333
+ sidecars_alive: z.ZodBoolean;
334
+ sidecars: z.ZodArray<z.ZodObject<{
335
+ name: z.ZodString;
336
+ pid: z.ZodNumber;
337
+ exe: z.ZodOptional<z.ZodString>;
338
+ args: z.ZodArray<z.ZodString, "many">;
339
+ alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ args: string[];
342
+ pid: number;
343
+ name: string;
344
+ exe?: string | undefined;
345
+ alive?: boolean | null | undefined;
346
+ }, {
347
+ args: string[];
348
+ pid: number;
349
+ name: string;
350
+ exe?: string | undefined;
351
+ alive?: boolean | null | undefined;
352
+ }>, "many">;
353
+ }, "strip", z.ZodTypeAny, {
354
+ uptime_ms: number;
355
+ sidecars: {
356
+ args: string[];
357
+ pid: number;
358
+ name: string;
359
+ exe?: string | undefined;
360
+ alive?: boolean | null | undefined;
361
+ }[];
362
+ webview_ready: boolean;
363
+ sidecars_alive: boolean;
364
+ }, {
365
+ uptime_ms: number;
366
+ sidecars: {
367
+ args: string[];
368
+ pid: number;
369
+ name: string;
370
+ exe?: string | undefined;
371
+ alive?: boolean | null | undefined;
372
+ }[];
373
+ webview_ready: boolean;
374
+ sidecars_alive: boolean;
375
+ }>;
376
+ export type HealthResponse = z.infer<typeof HealthResponseSchema>;
@@ -35,4 +35,61 @@ 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
+ });
51
+ // === /process ===
52
+ export const SidecarSummarySchema = z.object({
53
+ name: z.string(),
54
+ pid: z.number().int(),
55
+ exe: z.string().optional(),
56
+ args: z.array(z.string()),
57
+ alive: z.boolean().nullable().optional(),
58
+ });
59
+ export const TauriProcessInfoSchema = z.object({
60
+ pid: z.number().int(),
61
+ exe: z.string().optional(),
62
+ args: z.array(z.string()),
63
+ uptime_ms: z.number().int(),
64
+ });
65
+ export const ProcessResponseSchema = z.object({
66
+ tauri: TauriProcessInfoSchema,
67
+ sidecars: z.array(SidecarSummarySchema),
68
+ });
69
+ // === /capabilities ===
70
+ export const LiveCapabilityEntrySchema = z.object({
71
+ identifier: z.string(),
72
+ description: z.string().optional(),
73
+ windows: z.array(z.string()),
74
+ permissions: z.array(z.string()),
75
+ });
76
+ export const CapabilitiesResponseSchema = z.object({
77
+ declared: z.array(LiveCapabilityEntrySchema),
78
+ windows: z.array(z.string()),
79
+ });
80
+ // === /devtools ===
81
+ export const DevtoolsPlatformSchema = z.enum(['wkwebview', 'webview2', 'webkitgtk']);
82
+ export const DevtoolsResponseSchema = z.object({
83
+ platform: DevtoolsPlatformSchema,
84
+ inspectable: z.boolean(),
85
+ url: z.string().nullable().optional(),
86
+ hint: z.string(),
87
+ });
88
+ // === /health ===
89
+ export const HealthResponseSchema = z.object({
90
+ uptime_ms: z.number().int(),
91
+ webview_ready: z.boolean(),
92
+ sidecars_alive: z.boolean(),
93
+ sidecars: z.array(SidecarSummarySchema),
94
+ });
38
95
  //# 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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EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACxC,CAAC,CAAC"}
@@ -235,6 +235,44 @@ export declare const StorageTypeSchema: z.ZodEnum<["local", "session", "cookies"
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,EAA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W,CAAC,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,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>;