@getpaseo/protocol 0.1.87 → 0.1.88
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 +1 -1
- package/dist/binary-frames/file-transfer.js +2 -4
- package/dist/binary-frames/terminal.d.ts +1 -1
- package/dist/binary-frames/terminal.js +2 -4
- package/dist/client-capabilities.d.ts +1 -0
- package/dist/client-capabilities.js +6 -0
- package/dist/messages.d.ts +285 -14
- package/dist/messages.js +16 -18
- package/dist/provider-config.d.ts +23 -23
- package/dist/provider-config.js +14 -28
- package/dist/schedule/rpc-schemas.d.ts +73 -0
- package/dist/schedule/types.d.ts +13 -0
- package/dist/schedule/types.js +1 -0
- package/dist/terminal-snapshot.js +19 -6
- package/package.json +1 -1
package/dist/messages.js
CHANGED
|
@@ -354,15 +354,13 @@ const ToolCallDetailPayloadSchema = z.discriminatedUnion("type", [
|
|
|
354
354
|
output: UnknownValueSchema,
|
|
355
355
|
}),
|
|
356
356
|
]);
|
|
357
|
-
const ToolCallBasePayloadSchema = z
|
|
358
|
-
.object({
|
|
357
|
+
const ToolCallBasePayloadSchema = z.object({
|
|
359
358
|
type: z.literal("tool_call"),
|
|
360
359
|
callId: z.string(),
|
|
361
360
|
name: z.string(),
|
|
362
361
|
detail: ToolCallDetailPayloadSchema,
|
|
363
362
|
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
364
|
-
})
|
|
365
|
-
.strict();
|
|
363
|
+
});
|
|
366
364
|
const ToolCallRunningPayloadSchema = ToolCallBasePayloadSchema.extend({
|
|
367
365
|
status: z.literal("running"),
|
|
368
366
|
error: z.null(),
|
|
@@ -1496,10 +1494,8 @@ export const SubscribeTerminalRequestSchema = z.object({
|
|
|
1496
1494
|
rows: z.number().int().positive(),
|
|
1497
1495
|
cols: z.number().int().positive(),
|
|
1498
1496
|
})
|
|
1499
|
-
.strict()
|
|
1500
1497
|
.optional(),
|
|
1501
1498
|
})
|
|
1502
|
-
.strict()
|
|
1503
1499
|
.optional(),
|
|
1504
1500
|
});
|
|
1505
1501
|
export const UnsubscribeTerminalRequestSchema = z.object({
|
|
@@ -3057,8 +3053,7 @@ const TerminalInfoSchema = z.object({
|
|
|
3057
3053
|
cwd: z.string(),
|
|
3058
3054
|
title: z.string().optional(),
|
|
3059
3055
|
});
|
|
3060
|
-
export const TerminalCellSchema = z
|
|
3061
|
-
.object({
|
|
3056
|
+
export const TerminalCellSchema = z.object({
|
|
3062
3057
|
char: z.string(),
|
|
3063
3058
|
fg: z.number().optional(),
|
|
3064
3059
|
bg: z.number().optional(),
|
|
@@ -3070,28 +3065,30 @@ export const TerminalCellSchema = z
|
|
|
3070
3065
|
dim: z.boolean().optional(),
|
|
3071
3066
|
inverse: z.boolean().optional(),
|
|
3072
3067
|
strikethrough: z.boolean().optional(),
|
|
3073
|
-
})
|
|
3074
|
-
.strict();
|
|
3068
|
+
});
|
|
3075
3069
|
export const TerminalCursorStyleSchema = z.enum(["block", "underline", "bar"]);
|
|
3076
|
-
export const TerminalCursorSchema = z
|
|
3077
|
-
.object({
|
|
3070
|
+
export const TerminalCursorSchema = z.object({
|
|
3078
3071
|
row: z.number(),
|
|
3079
3072
|
col: z.number(),
|
|
3080
3073
|
hidden: z.boolean().optional(),
|
|
3081
3074
|
style: TerminalCursorStyleSchema.optional(),
|
|
3082
3075
|
blink: z.boolean().optional(),
|
|
3083
|
-
})
|
|
3084
|
-
|
|
3085
|
-
export const TerminalStateSchema = z
|
|
3086
|
-
.object({
|
|
3076
|
+
});
|
|
3077
|
+
export const TerminalStateSchema = z.object({
|
|
3087
3078
|
rows: z.number(),
|
|
3088
3079
|
cols: z.number(),
|
|
3089
3080
|
grid: z.array(z.array(TerminalCellSchema)),
|
|
3090
3081
|
scrollback: z.array(z.array(TerminalCellSchema)),
|
|
3091
3082
|
cursor: TerminalCursorSchema,
|
|
3092
3083
|
title: z.string().optional(),
|
|
3093
|
-
|
|
3094
|
-
|
|
3084
|
+
// Per-row soft-wrap flags aligned 1:1 with `grid` / `scrollback`. `true` means
|
|
3085
|
+
// the row continued onto the next row (xterm's GRID_LINE_WRAPPED equivalent),
|
|
3086
|
+
// so the client can re-wrap the logical line on resize instead of freezing it
|
|
3087
|
+
// at the snapshot width. Optional: only sent to clients that advertise the
|
|
3088
|
+
// `terminalReflowableSnapshot` capability, so old daemons/clients are unaffected.
|
|
3089
|
+
gridWrapped: z.array(z.boolean()).optional(),
|
|
3090
|
+
scrollbackWrapped: z.array(z.boolean()).optional(),
|
|
3091
|
+
});
|
|
3095
3092
|
export const ListTerminalsResponseSchema = z.object({
|
|
3096
3093
|
type: z.literal("list_terminals_response"),
|
|
3097
3094
|
payload: z.object({
|
|
@@ -3309,6 +3306,7 @@ export const WSHelloMessageSchema = z.object({
|
|
|
3309
3306
|
pushNotifications: z.boolean().optional(),
|
|
3310
3307
|
[CLIENT_CAPS.reasoningMergeEnum]: z.boolean().optional(),
|
|
3311
3308
|
[CLIENT_CAPS.customModeIcons]: z.boolean().optional(),
|
|
3309
|
+
[CLIENT_CAPS.terminalReflowableSnapshot]: z.boolean().optional(),
|
|
3312
3310
|
})
|
|
3313
3311
|
.passthrough()
|
|
3314
3312
|
.optional(),
|
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
import type { AgentProvider } from "./agent-types.js";
|
|
3
3
|
export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
4
4
|
mode: z.ZodLiteral<"default">;
|
|
5
|
-
}, "
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
mode: "default";
|
|
7
7
|
}, {
|
|
8
8
|
mode: "default";
|
|
9
9
|
}>, z.ZodObject<{
|
|
10
10
|
mode: z.ZodLiteral<"append">;
|
|
11
11
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
-
}, "
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
mode: "append";
|
|
14
14
|
args?: string[] | undefined;
|
|
15
15
|
}, {
|
|
@@ -18,7 +18,7 @@ export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<"mode", [z.Z
|
|
|
18
18
|
}>, z.ZodObject<{
|
|
19
19
|
mode: z.ZodLiteral<"replace">;
|
|
20
20
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
21
|
-
}, "
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
mode: "replace";
|
|
23
23
|
argv: string[];
|
|
24
24
|
}, {
|
|
@@ -28,14 +28,14 @@ export declare const ProviderCommandSchema: z.ZodDiscriminatedUnion<"mode", [z.Z
|
|
|
28
28
|
export declare const ProviderRuntimeSettingsSchema: z.ZodObject<{
|
|
29
29
|
command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
30
30
|
mode: z.ZodLiteral<"default">;
|
|
31
|
-
}, "
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
mode: "default";
|
|
33
33
|
}, {
|
|
34
34
|
mode: "default";
|
|
35
35
|
}>, z.ZodObject<{
|
|
36
36
|
mode: z.ZodLiteral<"append">;
|
|
37
37
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
38
|
-
}, "
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
mode: "append";
|
|
40
40
|
args?: string[] | undefined;
|
|
41
41
|
}, {
|
|
@@ -44,7 +44,7 @@ export declare const ProviderRuntimeSettingsSchema: z.ZodObject<{
|
|
|
44
44
|
}>, z.ZodObject<{
|
|
45
45
|
mode: z.ZodLiteral<"replace">;
|
|
46
46
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
47
|
-
}, "
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
mode: "replace";
|
|
49
49
|
argv: string[];
|
|
50
50
|
}, {
|
|
@@ -53,7 +53,7 @@ export declare const ProviderRuntimeSettingsSchema: z.ZodObject<{
|
|
|
53
53
|
}>]>>;
|
|
54
54
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55
55
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
-
}, "
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
command?: {
|
|
58
58
|
mode: "default";
|
|
59
59
|
} | {
|
|
@@ -88,7 +88,7 @@ export declare const ProviderProfileModelSchema: z.ZodObject<{
|
|
|
88
88
|
label: z.ZodString;
|
|
89
89
|
description: z.ZodOptional<z.ZodString>;
|
|
90
90
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
}, "
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
id: string;
|
|
93
93
|
label: string;
|
|
94
94
|
description?: string | undefined;
|
|
@@ -99,7 +99,7 @@ export declare const ProviderProfileModelSchema: z.ZodObject<{
|
|
|
99
99
|
description?: string | undefined;
|
|
100
100
|
isDefault?: boolean | undefined;
|
|
101
101
|
}>, "many">>;
|
|
102
|
-
}, "
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
id: string;
|
|
104
104
|
label: string;
|
|
105
105
|
description?: string | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
138
138
|
label: z.ZodString;
|
|
139
139
|
description: z.ZodOptional<z.ZodString>;
|
|
140
140
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
}, "
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
id: string;
|
|
143
143
|
label: string;
|
|
144
144
|
description?: string | undefined;
|
|
@@ -149,7 +149,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
149
149
|
description?: string | undefined;
|
|
150
150
|
isDefault?: boolean | undefined;
|
|
151
151
|
}>, "many">>;
|
|
152
|
-
}, "
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
id: string;
|
|
154
154
|
label: string;
|
|
155
155
|
description?: string | undefined;
|
|
@@ -182,7 +182,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
182
182
|
label: z.ZodString;
|
|
183
183
|
description: z.ZodOptional<z.ZodString>;
|
|
184
184
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
-
}, "
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
186
|
id: string;
|
|
187
187
|
label: string;
|
|
188
188
|
description?: string | undefined;
|
|
@@ -193,7 +193,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
193
193
|
description?: string | undefined;
|
|
194
194
|
isDefault?: boolean | undefined;
|
|
195
195
|
}>, "many">>;
|
|
196
|
-
}, "
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
197
|
id: string;
|
|
198
198
|
label: string;
|
|
199
199
|
description?: string | undefined;
|
|
@@ -219,7 +219,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
219
219
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
220
220
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
221
221
|
order: z.ZodOptional<z.ZodNumber>;
|
|
222
|
-
}, "
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
223
|
description?: string | undefined;
|
|
224
224
|
label?: string | undefined;
|
|
225
225
|
enabled?: boolean | undefined;
|
|
@@ -302,7 +302,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
302
302
|
label: z.ZodString;
|
|
303
303
|
description: z.ZodOptional<z.ZodString>;
|
|
304
304
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
-
}, "
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
306
|
id: string;
|
|
307
307
|
label: string;
|
|
308
308
|
description?: string | undefined;
|
|
@@ -313,7 +313,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
313
313
|
description?: string | undefined;
|
|
314
314
|
isDefault?: boolean | undefined;
|
|
315
315
|
}>, "many">>;
|
|
316
|
-
}, "
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
id: string;
|
|
318
318
|
label: string;
|
|
319
319
|
description?: string | undefined;
|
|
@@ -346,7 +346,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
346
346
|
label: z.ZodString;
|
|
347
347
|
description: z.ZodOptional<z.ZodString>;
|
|
348
348
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
349
|
-
}, "
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
350
|
id: string;
|
|
351
351
|
label: string;
|
|
352
352
|
description?: string | undefined;
|
|
@@ -357,7 +357,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
357
357
|
description?: string | undefined;
|
|
358
358
|
isDefault?: boolean | undefined;
|
|
359
359
|
}>, "many">>;
|
|
360
|
-
}, "
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
361
|
id: string;
|
|
362
362
|
label: string;
|
|
363
363
|
description?: string | undefined;
|
|
@@ -383,7 +383,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
383
383
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
384
384
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
385
385
|
order: z.ZodOptional<z.ZodNumber>;
|
|
386
|
-
}, "
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
387
|
description?: string | undefined;
|
|
388
388
|
label?: string | undefined;
|
|
389
389
|
enabled?: boolean | undefined;
|
|
@@ -519,14 +519,14 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
519
519
|
export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
520
520
|
command: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
521
521
|
mode: z.ZodLiteral<"default">;
|
|
522
|
-
}, "
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
523
|
mode: "default";
|
|
524
524
|
}, {
|
|
525
525
|
mode: "default";
|
|
526
526
|
}>, z.ZodObject<{
|
|
527
527
|
mode: z.ZodLiteral<"append">;
|
|
528
528
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
529
|
-
}, "
|
|
529
|
+
}, "strip", z.ZodTypeAny, {
|
|
530
530
|
mode: "append";
|
|
531
531
|
args?: string[] | undefined;
|
|
532
532
|
}, {
|
|
@@ -535,7 +535,7 @@ export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodEffects<z.ZodRe
|
|
|
535
535
|
}>, z.ZodObject<{
|
|
536
536
|
mode: z.ZodLiteral<"replace">;
|
|
537
537
|
argv: z.ZodArray<z.ZodString, "many">;
|
|
538
|
-
}, "
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
539
|
mode: "replace";
|
|
540
540
|
argv: string[];
|
|
541
541
|
}, {
|
|
@@ -544,7 +544,7 @@ export declare const AgentProviderRuntimeSettingsMapSchema: z.ZodEffects<z.ZodRe
|
|
|
544
544
|
}>]>>;
|
|
545
545
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
546
546
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
547
|
-
}, "
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
548
|
command?: {
|
|
549
549
|
mode: "default";
|
|
550
550
|
} | {
|
package/dist/provider-config.js
CHANGED
|
@@ -1,53 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AgentProviderSchema } from "./provider-manifest.js";
|
|
3
|
-
const ProviderCommandDefaultSchema = z
|
|
4
|
-
.object({
|
|
3
|
+
const ProviderCommandDefaultSchema = z.object({
|
|
5
4
|
mode: z.literal("default"),
|
|
6
|
-
})
|
|
7
|
-
|
|
8
|
-
const ProviderCommandAppendSchema = z
|
|
9
|
-
.object({
|
|
5
|
+
});
|
|
6
|
+
const ProviderCommandAppendSchema = z.object({
|
|
10
7
|
mode: z.literal("append"),
|
|
11
8
|
args: z.array(z.string()).optional(),
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
const ProviderCommandReplaceSchema = z
|
|
15
|
-
.object({
|
|
9
|
+
});
|
|
10
|
+
const ProviderCommandReplaceSchema = z.object({
|
|
16
11
|
mode: z.literal("replace"),
|
|
17
12
|
argv: z.array(z.string().min(1)).min(1),
|
|
18
|
-
})
|
|
19
|
-
.strict();
|
|
13
|
+
});
|
|
20
14
|
export const ProviderCommandSchema = z.discriminatedUnion("mode", [
|
|
21
15
|
ProviderCommandDefaultSchema,
|
|
22
16
|
ProviderCommandAppendSchema,
|
|
23
17
|
ProviderCommandReplaceSchema,
|
|
24
18
|
]);
|
|
25
|
-
export const ProviderRuntimeSettingsSchema = z
|
|
26
|
-
.object({
|
|
19
|
+
export const ProviderRuntimeSettingsSchema = z.object({
|
|
27
20
|
command: ProviderCommandSchema.optional(),
|
|
28
21
|
env: z.record(z.string()).optional(),
|
|
29
22
|
disallowedTools: z.array(z.string()).optional(),
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const ProviderProfileThinkingOptionSchema = z
|
|
33
|
-
.object({
|
|
23
|
+
});
|
|
24
|
+
const ProviderProfileThinkingOptionSchema = z.object({
|
|
34
25
|
id: z.string(),
|
|
35
26
|
label: z.string(),
|
|
36
27
|
description: z.string().optional(),
|
|
37
28
|
isDefault: z.boolean().optional(),
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
export const ProviderProfileModelSchema = z
|
|
41
|
-
.object({
|
|
29
|
+
});
|
|
30
|
+
export const ProviderProfileModelSchema = z.object({
|
|
42
31
|
id: z.string().min(1),
|
|
43
32
|
label: z.string().min(1),
|
|
44
33
|
description: z.string().optional(),
|
|
45
34
|
isDefault: z.boolean().optional(),
|
|
46
35
|
thinkingOptions: z.array(ProviderProfileThinkingOptionSchema).optional(),
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
export const ProviderOverrideSchema = z
|
|
50
|
-
.object({
|
|
36
|
+
});
|
|
37
|
+
export const ProviderOverrideSchema = z.object({
|
|
51
38
|
extends: z.string().optional(),
|
|
52
39
|
label: z.string().optional(),
|
|
53
40
|
description: z.string().optional(),
|
|
@@ -58,8 +45,7 @@ export const ProviderOverrideSchema = z
|
|
|
58
45
|
disallowedTools: z.array(z.string()).optional(),
|
|
59
46
|
enabled: z.boolean().optional(),
|
|
60
47
|
order: z.number().optional(),
|
|
61
|
-
})
|
|
62
|
-
.strict();
|
|
48
|
+
});
|
|
63
49
|
const BUILTIN_PROVIDER_IDS = ["claude", "codex", "copilot", "opencode", "pi"];
|
|
64
50
|
const PROVIDER_ID_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
65
51
|
export const ProviderOverridesSchema = z
|