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.
- package/.agents/skills/tauri-agent-tools/SKILL.md +195 -13
- package/.agents/skills/tauri-bridge-setup/SKILL.md +82 -14
- package/.agents/skills/tauri-debug-quickstart/SKILL.md +80 -0
- package/AGENTS.md +9 -7
- package/README.md +119 -11
- package/dist/bridge/client.d.ts +21 -2
- package/dist/bridge/client.js +119 -3
- package/dist/bridge/client.js.map +1 -1
- package/dist/cli.js +47 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/appPaths.d.ts +2 -0
- package/dist/commands/appPaths.js +97 -0
- package/dist/commands/appPaths.js.map +1 -0
- package/dist/commands/capabilitiesAudit.d.ts +2 -0
- package/dist/commands/capabilitiesAudit.js +105 -0
- package/dist/commands/capabilitiesAudit.js.map +1 -0
- package/dist/commands/capture.d.ts +3 -0
- package/dist/commands/capture.js +218 -0
- package/dist/commands/capture.js.map +1 -0
- package/dist/commands/check.d.ts +5 -0
- package/dist/commands/check.js +174 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/configInspect.d.ts +2 -0
- package/dist/commands/configInspect.js +223 -0
- package/dist/commands/configInspect.js.map +1 -0
- package/dist/commands/diagnose.d.ts +2 -0
- package/dist/commands/diagnose.js +311 -0
- package/dist/commands/diagnose.js.map +1 -0
- package/dist/commands/eval.js +16 -3
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/forensics.d.ts +2 -0
- package/dist/commands/forensics.js +331 -0
- package/dist/commands/forensics.js.map +1 -0
- package/dist/commands/health.d.ts +2 -0
- package/dist/commands/health.js +39 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/interact/click.d.ts +6 -0
- package/dist/commands/interact/click.js +102 -0
- package/dist/commands/interact/click.js.map +1 -0
- package/dist/commands/interact/focus.d.ts +3 -0
- package/dist/commands/interact/focus.js +40 -0
- package/dist/commands/interact/focus.js.map +1 -0
- package/dist/commands/interact/navigate.d.ts +3 -0
- package/dist/commands/interact/navigate.js +49 -0
- package/dist/commands/interact/navigate.js.map +1 -0
- package/dist/commands/interact/scroll.d.ts +11 -0
- package/dist/commands/interact/scroll.js +110 -0
- package/dist/commands/interact/scroll.js.map +1 -0
- package/dist/commands/interact/select.d.ts +3 -0
- package/dist/commands/interact/select.js +59 -0
- package/dist/commands/interact/select.js.map +1 -0
- package/dist/commands/interact/shared.d.ts +23 -0
- package/dist/commands/interact/shared.js +62 -0
- package/dist/commands/interact/shared.js.map +1 -0
- package/dist/commands/interact/type.d.ts +6 -0
- package/dist/commands/interact/type.js +59 -0
- package/dist/commands/interact/type.js.map +1 -0
- package/dist/commands/invoke.d.ts +3 -0
- package/dist/commands/invoke.js +53 -0
- package/dist/commands/invoke.js.map +1 -0
- package/dist/commands/osLogs.d.ts +2 -0
- package/dist/commands/osLogs.js +130 -0
- package/dist/commands/osLogs.js.map +1 -0
- package/dist/commands/probe.d.ts +2 -0
- package/dist/commands/probe.js +117 -0
- package/dist/commands/probe.js.map +1 -0
- package/dist/commands/processTree.d.ts +2 -0
- package/dist/commands/processTree.js +45 -0
- package/dist/commands/processTree.js.map +1 -0
- package/dist/commands/shared.d.ts +10 -4
- package/dist/commands/shared.js +23 -3
- package/dist/commands/shared.js.map +1 -1
- package/dist/commands/sidecarReplay.d.ts +7 -0
- package/dist/commands/sidecarReplay.js +93 -0
- package/dist/commands/sidecarReplay.js.map +1 -0
- package/dist/commands/sidecarTap.d.ts +2 -0
- package/dist/commands/sidecarTap.js +118 -0
- package/dist/commands/sidecarTap.js.map +1 -0
- package/dist/commands/storeInspect.d.ts +13 -0
- package/dist/commands/storeInspect.js +156 -0
- package/dist/commands/storeInspect.js.map +1 -0
- package/dist/commands/webviewAttach.d.ts +2 -0
- package/dist/commands/webviewAttach.js +64 -0
- package/dist/commands/webviewAttach.js.map +1 -0
- package/dist/platform/oslog/darwin.d.ts +21 -0
- package/dist/platform/oslog/darwin.js +72 -0
- package/dist/platform/oslog/darwin.js.map +1 -0
- package/dist/platform/oslog/linux.d.ts +16 -0
- package/dist/platform/oslog/linux.js +47 -0
- package/dist/platform/oslog/linux.js.map +1 -0
- package/dist/platform/oslog/windows.d.ts +15 -0
- package/dist/platform/oslog/windows.js +16 -0
- package/dist/platform/oslog/windows.js.map +1 -0
- package/dist/schemas/bridge.d.ts +256 -0
- package/dist/schemas/bridge.js +57 -0
- package/dist/schemas/bridge.js.map +1 -1
- package/dist/schemas/commands.d.ts +126 -0
- package/dist/schemas/commands.js +28 -0
- package/dist/schemas/commands.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.js +3 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/interact.d.ts +118 -0
- package/dist/schemas/interact.js +31 -0
- package/dist/schemas/interact.js.map +1 -0
- package/dist/schemas/osLog.d.ts +34 -0
- package/dist/schemas/osLog.js +18 -0
- package/dist/schemas/osLog.js.map +1 -0
- package/dist/schemas/sidecar.d.ts +33 -0
- package/dist/schemas/sidecar.js +17 -0
- package/dist/schemas/sidecar.js.map +1 -0
- package/dist/schemas/tauriConfig.d.ts +825 -0
- package/dist/schemas/tauriConfig.js +102 -0
- package/dist/schemas/tauriConfig.js.map +1 -0
- package/dist/util/ndjson.d.ts +37 -0
- package/dist/util/ndjson.js +82 -0
- package/dist/util/ndjson.js.map +1 -0
- package/dist/util/tauriConfig.d.ts +63 -0
- package/dist/util/tauriConfig.js +235 -0
- package/dist/util/tauriConfig.js.map +1 -0
- package/examples/frontend-stub/index.html +1 -0
- package/examples/tauri-bridge/Cargo.toml +6 -0
- package/examples/tauri-bridge/build.rs +3 -0
- package/examples/tauri-bridge/icons/icon.png +0 -0
- package/examples/tauri-bridge/src/dev_bridge.rs +509 -10
- package/examples/tauri-bridge/tauri.conf.json +25 -0
- package/package.json +3 -1
- package/rust-bridge/README.md +7 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// === Interaction Results ===
|
|
3
|
+
export const InteractionResultSchema = z.object({
|
|
4
|
+
success: z.boolean(),
|
|
5
|
+
selector: z.string().optional(),
|
|
6
|
+
tagName: z.string().optional(),
|
|
7
|
+
error: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
export const ClickResultSchema = InteractionResultSchema.extend({
|
|
10
|
+
text: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
export const TypeResultSchema = InteractionResultSchema.extend({
|
|
13
|
+
value: z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
export const ScrollResultSchema = z.object({
|
|
16
|
+
success: z.boolean(),
|
|
17
|
+
scrollX: z.number().optional(),
|
|
18
|
+
scrollY: z.number().optional(),
|
|
19
|
+
error: z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
export const SelectResultSchema = InteractionResultSchema.extend({
|
|
22
|
+
value: z.string().optional(),
|
|
23
|
+
checked: z.boolean().optional(),
|
|
24
|
+
});
|
|
25
|
+
export const InvokeResultSchema = z.object({
|
|
26
|
+
success: z.boolean(),
|
|
27
|
+
command: z.string(),
|
|
28
|
+
result: z.unknown().optional(),
|
|
29
|
+
error: z.string().optional(),
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=interact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interact.js","sourceRoot":"","sources":["../../src/schemas/interact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8BAA8B;AAE9B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,E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n", "error"]>;
|
|
3
|
+
export type OsLogLevel = z.infer<typeof OsLogLevelSchema>;
|
|
4
|
+
export declare const OsLogSourceSchema: z.ZodEnum<["main", "webview", "sidecar", "all"]>;
|
|
5
|
+
export type OsLogSource = z.infer<typeof OsLogSourceSchema>;
|
|
6
|
+
/**
|
|
7
|
+
* Normalized log envelope emitted by `os-logs`. The raw upstream payload
|
|
8
|
+
* (macOS log JSON, journalctl JSON, …) is preserved in `raw` so consumers
|
|
9
|
+
* can recover any platform-specific field that didn't make it into the
|
|
10
|
+
* normalized projection.
|
|
11
|
+
*/
|
|
12
|
+
export declare const NormalizedLogEntrySchema: z.ZodObject<{
|
|
13
|
+
ts: z.ZodString;
|
|
14
|
+
level: z.ZodEnum<["debug", "info", "warn", "error"]>;
|
|
15
|
+
source: z.ZodString;
|
|
16
|
+
subsystem: z.ZodString;
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
raw: z.ZodUnknown;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
message: string;
|
|
21
|
+
level: "warn" | "error" | "info" | "debug";
|
|
22
|
+
source: string;
|
|
23
|
+
ts: string;
|
|
24
|
+
subsystem: string;
|
|
25
|
+
raw?: unknown;
|
|
26
|
+
}, {
|
|
27
|
+
message: string;
|
|
28
|
+
level: "warn" | "error" | "info" | "debug";
|
|
29
|
+
source: string;
|
|
30
|
+
ts: string;
|
|
31
|
+
subsystem: string;
|
|
32
|
+
raw?: unknown;
|
|
33
|
+
}>;
|
|
34
|
+
export type NormalizedLogEntry = z.infer<typeof NormalizedLogEntrySchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const OsLogLevelSchema = z.enum(['debug', 'info', 'warn', 'error']);
|
|
3
|
+
export const OsLogSourceSchema = z.enum(['main', 'webview', 'sidecar', 'all']);
|
|
4
|
+
/**
|
|
5
|
+
* Normalized log envelope emitted by `os-logs`. The raw upstream payload
|
|
6
|
+
* (macOS log JSON, journalctl JSON, …) is preserved in `raw` so consumers
|
|
7
|
+
* can recover any platform-specific field that didn't make it into the
|
|
8
|
+
* normalized projection.
|
|
9
|
+
*/
|
|
10
|
+
export const NormalizedLogEntrySchema = z.object({
|
|
11
|
+
ts: z.string(),
|
|
12
|
+
level: OsLogLevelSchema,
|
|
13
|
+
source: z.string(),
|
|
14
|
+
subsystem: z.string(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
raw: z.unknown(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=osLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osLog.js","sourceRoot":"","sources":["../../src/schemas/osLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAG3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAG/E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* One envelope emitted by `sidecar tap`. The raw line is preserved in
|
|
4
|
+
* `payload` after JSON.parse if the line was parseable, otherwise it lives in
|
|
5
|
+
* `rawLine`. `valid` reflects either schema conformance (when a schema is
|
|
6
|
+
* supplied) or simple JSON-parse success.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SidecarEnvelopeSchema: z.ZodObject<{
|
|
9
|
+
ts: z.ZodString;
|
|
10
|
+
direction: z.ZodEnum<["sidecar→", "←parent"]>;
|
|
11
|
+
valid: z.ZodBoolean;
|
|
12
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
13
|
+
rawLine: z.ZodOptional<z.ZodString>;
|
|
14
|
+
parseError: z.ZodOptional<z.ZodString>;
|
|
15
|
+
schemaErrors: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
valid: boolean;
|
|
18
|
+
ts: string;
|
|
19
|
+
direction: "sidecar→" | "←parent";
|
|
20
|
+
payload?: unknown;
|
|
21
|
+
rawLine?: string | undefined;
|
|
22
|
+
parseError?: string | undefined;
|
|
23
|
+
schemaErrors?: unknown[] | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
valid: boolean;
|
|
26
|
+
ts: string;
|
|
27
|
+
direction: "sidecar→" | "←parent";
|
|
28
|
+
payload?: unknown;
|
|
29
|
+
rawLine?: string | undefined;
|
|
30
|
+
parseError?: string | undefined;
|
|
31
|
+
schemaErrors?: unknown[] | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type SidecarEnvelope = z.infer<typeof SidecarEnvelopeSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* One envelope emitted by `sidecar tap`. The raw line is preserved in
|
|
4
|
+
* `payload` after JSON.parse if the line was parseable, otherwise it lives in
|
|
5
|
+
* `rawLine`. `valid` reflects either schema conformance (when a schema is
|
|
6
|
+
* supplied) or simple JSON-parse success.
|
|
7
|
+
*/
|
|
8
|
+
export const SidecarEnvelopeSchema = z.object({
|
|
9
|
+
ts: z.string(),
|
|
10
|
+
direction: z.enum(['sidecar→', '←parent']),
|
|
11
|
+
valid: z.boolean(),
|
|
12
|
+
payload: z.unknown().optional(),
|
|
13
|
+
rawLine: z.string().optional(),
|
|
14
|
+
parseError: z.string().optional(),
|
|
15
|
+
schemaErrors: z.array(z.unknown()).optional(),
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=sidecar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidecar.js","sourceRoot":"","sources":["../../src/schemas/sidecar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,OAAO,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,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
|