@getpaseo/protocol 0.1.97-beta.2 → 0.1.97
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/binary-frames/file-transfer.d.ts +5 -14
- package/dist/binary-frames/terminal.d.ts +1 -7
- package/dist/chat/rpc-schemas.d.ts +31 -601
- package/dist/chat/types.d.ts +4 -49
- package/dist/connection-offer.d.ts +4 -48
- package/dist/host-connection-schema.d.ts +1 -13
- package/dist/loop/rpc-schemas.d.ts +233 -2602
- package/dist/messages.d.ts +25294 -161818
- package/dist/messages.js +49 -23
- package/dist/paseo-config-schema.d.ts +43 -841
- package/dist/paseo-config-schema.js +2 -2
- package/dist/provider-config.d.ts +40 -524
- package/dist/provider-config.js +5 -5
- package/dist/schedule/rpc-schemas.d.ts +195 -3687
- package/dist/schedule/rpc-schemas.js +2 -2
- package/dist/schedule/types.d.ts +63 -619
- package/dist/schedule/types.js +6 -6
- package/dist/terminal-activity.d.ts +10 -11
- package/package.json +2 -2
package/dist/schedule/types.js
CHANGED
|
@@ -15,7 +15,7 @@ export const ScheduleCadenceSchema = z.discriminatedUnion("type", [
|
|
|
15
15
|
export const ScheduleTargetSchema = z.discriminatedUnion("type", [
|
|
16
16
|
z.object({
|
|
17
17
|
type: z.literal("agent"),
|
|
18
|
-
agentId: z.
|
|
18
|
+
agentId: z.guid(),
|
|
19
19
|
}),
|
|
20
20
|
z.object({
|
|
21
21
|
type: z.literal("new-agent"),
|
|
@@ -30,16 +30,16 @@ export const ScheduleTargetSchema = z.discriminatedUnion("type", [
|
|
|
30
30
|
sandboxMode: z.string().trim().min(1).optional(),
|
|
31
31
|
networkAccess: z.boolean().optional(),
|
|
32
32
|
webSearch: z.boolean().optional(),
|
|
33
|
-
featureValues: z.record(z.unknown()).optional(),
|
|
33
|
+
featureValues: z.record(z.string(), z.unknown()).optional(),
|
|
34
34
|
extra: z
|
|
35
35
|
.object({
|
|
36
|
-
codex: z.record(z.unknown()).optional(),
|
|
37
|
-
claude: z.record(z.unknown()).optional(),
|
|
36
|
+
codex: z.record(z.string(), z.unknown()).optional(),
|
|
37
|
+
claude: z.record(z.string(), z.unknown()).optional(),
|
|
38
38
|
})
|
|
39
39
|
.partial()
|
|
40
40
|
.optional(),
|
|
41
41
|
systemPrompt: z.string().optional(),
|
|
42
|
-
mcpServers: z.record(z.unknown()).optional(),
|
|
42
|
+
mcpServers: z.record(z.string(), z.unknown()).optional(),
|
|
43
43
|
}),
|
|
44
44
|
}),
|
|
45
45
|
]);
|
|
@@ -49,7 +49,7 @@ export const ScheduleRunSchema = z.object({
|
|
|
49
49
|
startedAt: z.string(),
|
|
50
50
|
endedAt: z.string().nullable(),
|
|
51
51
|
status: z.enum(["running", "succeeded", "failed"]),
|
|
52
|
-
agentId: z.
|
|
52
|
+
agentId: z.guid().nullable(),
|
|
53
53
|
output: z.string().nullable(),
|
|
54
54
|
error: z.string().nullable(),
|
|
55
55
|
});
|
|
@@ -4,18 +4,17 @@ export declare const TERMINAL_ACTIVITY_ATTENTION_REASONS: readonly ["finished",
|
|
|
4
4
|
export type TerminalActivityState = (typeof TERMINAL_ACTIVITY_STATES)[number];
|
|
5
5
|
export type TerminalActivityAttentionReason = (typeof TERMINAL_ACTIVITY_ATTENTION_REASONS)[number];
|
|
6
6
|
export declare const TerminalActivitySchema: z.ZodObject<{
|
|
7
|
-
state: z.ZodCatch<z.ZodEnum<
|
|
8
|
-
|
|
7
|
+
state: z.ZodCatch<z.ZodEnum<{
|
|
8
|
+
idle: "idle";
|
|
9
|
+
working: "working";
|
|
10
|
+
attention: "attention";
|
|
11
|
+
}>>;
|
|
12
|
+
attentionReason: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
13
|
+
finished: "finished";
|
|
14
|
+
needs_input: "needs_input";
|
|
15
|
+
}>>>>;
|
|
9
16
|
changedAt: z.ZodNumber;
|
|
10
|
-
},
|
|
11
|
-
state: "idle" | "working" | "attention";
|
|
12
|
-
changedAt: number;
|
|
13
|
-
attentionReason?: "finished" | "needs_input" | null | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
changedAt: number;
|
|
16
|
-
state?: unknown;
|
|
17
|
-
attentionReason?: unknown;
|
|
18
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
19
18
|
export type TerminalActivity = z.infer<typeof TerminalActivitySchema>;
|
|
20
19
|
export type TerminalActivityStatusBucket = "running" | "needs_input" | "attention";
|
|
21
20
|
export declare function deriveTerminalActivityStatusBucket(activity: TerminalActivity | null | undefined): TerminalActivityStatusBucket | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/protocol",
|
|
3
|
-
"version": "0.1.97
|
|
3
|
+
"version": "0.1.97",
|
|
4
4
|
"description": "Paseo shared protocol schemas and wire types",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "vitest run"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"zod": "^
|
|
29
|
+
"zod": "^4.4.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.9.0",
|