@getpaseo/protocol 0.1.91-beta.1 → 0.1.91
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/agent-types.d.ts +15 -0
- package/dist/binary-frames/demux.d.ts +11 -0
- package/dist/binary-frames/demux.js +23 -0
- package/dist/binary-frames/file-transfer.d.ts +3 -0
- package/dist/binary-frames/file-transfer.js +1 -0
- package/dist/binary-frames/index.d.ts +1 -0
- package/dist/binary-frames/index.js +1 -0
- package/dist/messages.d.ts +1243 -188
- package/dist/messages.js +30 -0
- package/dist/paseo-config-schema.d.ts +6 -6
- package/dist/provider-config.d.ts +8 -0
- package/dist/provider-config.js +2 -1
- package/dist/provider-manifest.d.ts +1 -0
- package/dist/provider-manifest.js +8 -0
- package/package.json +1 -1
- package/dist/importable-providers.d.ts +0 -7
- package/dist/importable-providers.js +0 -7
package/dist/messages.js
CHANGED
|
@@ -158,16 +158,19 @@ const McpStdioServerConfigSchema = z.object({
|
|
|
158
158
|
command: z.string(),
|
|
159
159
|
args: z.array(z.string()).optional(),
|
|
160
160
|
env: z.record(z.string()).optional(),
|
|
161
|
+
alwaysLoad: z.boolean().optional(),
|
|
161
162
|
});
|
|
162
163
|
const McpHttpServerConfigSchema = z.object({
|
|
163
164
|
type: z.literal("http"),
|
|
164
165
|
url: z.string(),
|
|
165
166
|
headers: z.record(z.string()).optional(),
|
|
167
|
+
alwaysLoad: z.boolean().optional(),
|
|
166
168
|
});
|
|
167
169
|
const McpSseServerConfigSchema = z.object({
|
|
168
170
|
type: z.literal("sse"),
|
|
169
171
|
url: z.string(),
|
|
170
172
|
headers: z.record(z.string()).optional(),
|
|
173
|
+
alwaysLoad: z.boolean().optional(),
|
|
171
174
|
});
|
|
172
175
|
const McpServerConfigSchema = z.discriminatedUnion("type", [
|
|
173
176
|
McpStdioServerConfigSchema,
|
|
@@ -662,11 +665,20 @@ export const ReviewAttachmentSchema = z.object({
|
|
|
662
665
|
baseRef: z.string().nullable().optional(),
|
|
663
666
|
comments: z.array(ReviewAttachmentCommentSchema),
|
|
664
667
|
});
|
|
668
|
+
export const UploadedFileAttachmentSchema = z.object({
|
|
669
|
+
type: z.literal("uploaded_file"),
|
|
670
|
+
id: z.string(),
|
|
671
|
+
fileName: z.string(),
|
|
672
|
+
mimeType: z.string(),
|
|
673
|
+
size: z.number().int().nonnegative(),
|
|
674
|
+
path: z.string(),
|
|
675
|
+
});
|
|
665
676
|
export const AgentAttachmentSchema = z.discriminatedUnion("type", [
|
|
666
677
|
GitHubPrAttachmentSchema,
|
|
667
678
|
GitHubIssueAttachmentSchema,
|
|
668
679
|
TextAttachmentSchema,
|
|
669
680
|
ReviewAttachmentSchema,
|
|
681
|
+
UploadedFileAttachmentSchema,
|
|
670
682
|
]);
|
|
671
683
|
function normalizeAgentAttachments(input) {
|
|
672
684
|
if (!Array.isArray(input)) {
|
|
@@ -1386,6 +1398,14 @@ export const FileDownloadTokenRequestSchema = z.object({
|
|
|
1386
1398
|
path: z.string(),
|
|
1387
1399
|
requestId: z.string(),
|
|
1388
1400
|
});
|
|
1401
|
+
export const FileUploadRequestSchema = z.object({
|
|
1402
|
+
type: z.literal("file.upload.request"),
|
|
1403
|
+
fileName: z.string().min(1),
|
|
1404
|
+
mimeType: z.string().min(1),
|
|
1405
|
+
size: z.number().int().nonnegative(),
|
|
1406
|
+
modifiedAt: z.string(),
|
|
1407
|
+
requestId: z.string(),
|
|
1408
|
+
});
|
|
1389
1409
|
export const ClearAgentAttentionMessageSchema = z.object({
|
|
1390
1410
|
type: z.literal("clear_agent_attention"),
|
|
1391
1411
|
agentId: z.union([z.string(), z.array(z.string())]),
|
|
@@ -1597,6 +1617,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
1597
1617
|
FileExplorerRequestSchema,
|
|
1598
1618
|
ProjectIconRequestSchema,
|
|
1599
1619
|
FileDownloadTokenRequestSchema,
|
|
1620
|
+
FileUploadRequestSchema,
|
|
1600
1621
|
ClearAgentAttentionMessageSchema,
|
|
1601
1622
|
ClientHeartbeatMessageSchema,
|
|
1602
1623
|
PingMessageSchema,
|
|
@@ -2965,6 +2986,14 @@ export const FileDownloadTokenResponseSchema = z.object({
|
|
|
2965
2986
|
requestId: z.string(),
|
|
2966
2987
|
}),
|
|
2967
2988
|
});
|
|
2989
|
+
export const FileUploadResponseSchema = z.object({
|
|
2990
|
+
type: z.literal("file.upload.response"),
|
|
2991
|
+
payload: z.object({
|
|
2992
|
+
requestId: z.string(),
|
|
2993
|
+
file: UploadedFileAttachmentSchema.nullable(),
|
|
2994
|
+
error: z.string().nullable(),
|
|
2995
|
+
}),
|
|
2996
|
+
});
|
|
2968
2997
|
export const ListProviderModelsResponseMessageSchema = z.object({
|
|
2969
2998
|
type: z.literal("list_provider_models_response"),
|
|
2970
2999
|
payload: z.object({
|
|
@@ -3260,6 +3289,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
3260
3289
|
FileExplorerResponseSchema,
|
|
3261
3290
|
ProjectIconResponseSchema,
|
|
3262
3291
|
FileDownloadTokenResponseSchema,
|
|
3292
|
+
FileUploadResponseSchema,
|
|
3263
3293
|
ListProviderModelsResponseMessageSchema,
|
|
3264
3294
|
ListProviderModesResponseMessageSchema,
|
|
3265
3295
|
ListProviderFeaturesResponseMessageSchema,
|
|
@@ -856,11 +856,11 @@ export declare const PaseoConfigRevisionSchema: z.ZodObject<{
|
|
|
856
856
|
mtimeMs: z.ZodNumber;
|
|
857
857
|
size: z.ZodNumber;
|
|
858
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
-
mtimeMs: number;
|
|
860
859
|
size: number;
|
|
861
|
-
}, {
|
|
862
860
|
mtimeMs: number;
|
|
861
|
+
}, {
|
|
863
862
|
size: number;
|
|
863
|
+
mtimeMs: number;
|
|
864
864
|
}>;
|
|
865
865
|
export declare const ProjectConfigRpcErrorSchema: z.ZodDiscriminatedUnion<"code", [z.ZodObject<{
|
|
866
866
|
code: z.ZodLiteral<"project_not_found">;
|
|
@@ -880,23 +880,23 @@ export declare const ProjectConfigRpcErrorSchema: z.ZodDiscriminatedUnion<"code"
|
|
|
880
880
|
mtimeMs: z.ZodNumber;
|
|
881
881
|
size: z.ZodNumber;
|
|
882
882
|
}, "strip", z.ZodTypeAny, {
|
|
883
|
-
mtimeMs: number;
|
|
884
883
|
size: number;
|
|
885
|
-
}, {
|
|
886
884
|
mtimeMs: number;
|
|
885
|
+
}, {
|
|
887
886
|
size: number;
|
|
887
|
+
mtimeMs: number;
|
|
888
888
|
}>>;
|
|
889
889
|
}, "strip", z.ZodTypeAny, {
|
|
890
890
|
code: "stale_project_config";
|
|
891
891
|
currentRevision: {
|
|
892
|
-
mtimeMs: number;
|
|
893
892
|
size: number;
|
|
893
|
+
mtimeMs: number;
|
|
894
894
|
} | null;
|
|
895
895
|
}, {
|
|
896
896
|
code: "stale_project_config";
|
|
897
897
|
currentRevision: {
|
|
898
|
-
mtimeMs: number;
|
|
899
898
|
size: number;
|
|
899
|
+
mtimeMs: number;
|
|
900
900
|
} | null;
|
|
901
901
|
}>, z.ZodObject<{
|
|
902
902
|
code: z.ZodLiteral<"write_failed">;
|
|
@@ -128,6 +128,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
128
128
|
description: z.ZodOptional<z.ZodString>;
|
|
129
129
|
command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
130
130
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
131
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
131
132
|
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
133
|
id: z.ZodString;
|
|
133
134
|
label: z.ZodString;
|
|
@@ -221,6 +222,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
221
222
|
order: z.ZodOptional<z.ZodNumber>;
|
|
222
223
|
}, "strip", z.ZodTypeAny, {
|
|
223
224
|
description?: string | undefined;
|
|
225
|
+
params?: Record<string, unknown> | undefined;
|
|
224
226
|
label?: string | undefined;
|
|
225
227
|
enabled?: boolean | undefined;
|
|
226
228
|
command?: string[] | undefined;
|
|
@@ -254,6 +256,7 @@ export declare const ProviderOverrideSchema: z.ZodObject<{
|
|
|
254
256
|
order?: number | undefined;
|
|
255
257
|
}, {
|
|
256
258
|
description?: string | undefined;
|
|
259
|
+
params?: Record<string, unknown> | undefined;
|
|
257
260
|
label?: string | undefined;
|
|
258
261
|
enabled?: boolean | undefined;
|
|
259
262
|
command?: string[] | undefined;
|
|
@@ -292,6 +295,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
292
295
|
description: z.ZodOptional<z.ZodString>;
|
|
293
296
|
command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
294
297
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
298
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
295
299
|
models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
296
300
|
id: z.ZodString;
|
|
297
301
|
label: z.ZodString;
|
|
@@ -385,6 +389,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
385
389
|
order: z.ZodOptional<z.ZodNumber>;
|
|
386
390
|
}, "strip", z.ZodTypeAny, {
|
|
387
391
|
description?: string | undefined;
|
|
392
|
+
params?: Record<string, unknown> | undefined;
|
|
388
393
|
label?: string | undefined;
|
|
389
394
|
enabled?: boolean | undefined;
|
|
390
395
|
command?: string[] | undefined;
|
|
@@ -418,6 +423,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
418
423
|
order?: number | undefined;
|
|
419
424
|
}, {
|
|
420
425
|
description?: string | undefined;
|
|
426
|
+
params?: Record<string, unknown> | undefined;
|
|
421
427
|
label?: string | undefined;
|
|
422
428
|
enabled?: boolean | undefined;
|
|
423
429
|
command?: string[] | undefined;
|
|
@@ -451,6 +457,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
451
457
|
order?: number | undefined;
|
|
452
458
|
}>>, Record<string, {
|
|
453
459
|
description?: string | undefined;
|
|
460
|
+
params?: Record<string, unknown> | undefined;
|
|
454
461
|
label?: string | undefined;
|
|
455
462
|
enabled?: boolean | undefined;
|
|
456
463
|
command?: string[] | undefined;
|
|
@@ -484,6 +491,7 @@ export declare const ProviderOverridesSchema: z.ZodEffects<z.ZodRecord<z.ZodStri
|
|
|
484
491
|
order?: number | undefined;
|
|
485
492
|
}>, Record<string, {
|
|
486
493
|
description?: string | undefined;
|
|
494
|
+
params?: Record<string, unknown> | undefined;
|
|
487
495
|
label?: string | undefined;
|
|
488
496
|
enabled?: boolean | undefined;
|
|
489
497
|
command?: string[] | undefined;
|
package/dist/provider-config.js
CHANGED
|
@@ -40,13 +40,14 @@ export const ProviderOverrideSchema = z.object({
|
|
|
40
40
|
description: z.string().optional(),
|
|
41
41
|
command: z.array(z.string().min(1)).min(1).optional(),
|
|
42
42
|
env: z.record(z.string()).optional(),
|
|
43
|
+
params: z.record(z.unknown()).optional(),
|
|
43
44
|
models: z.array(ProviderProfileModelSchema).optional(),
|
|
44
45
|
additionalModels: z.array(ProviderProfileModelSchema).optional(),
|
|
45
46
|
disallowedTools: z.array(z.string()).optional(),
|
|
46
47
|
enabled: z.boolean().optional(),
|
|
47
48
|
order: z.number().optional(),
|
|
48
49
|
});
|
|
49
|
-
const BUILTIN_PROVIDER_IDS = ["claude", "codex", "copilot", "opencode", "pi"];
|
|
50
|
+
const BUILTIN_PROVIDER_IDS = ["claude", "codex", "copilot", "opencode", "pi", "omp"];
|
|
50
51
|
const PROVIDER_ID_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
51
52
|
export const ProviderOverridesSchema = z
|
|
52
53
|
.record(ProviderOverrideSchema)
|
|
@@ -169,6 +169,14 @@ export const AGENT_PROVIDER_DEFINITIONS = [
|
|
|
169
169
|
defaultModeId: null,
|
|
170
170
|
modes: [],
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
id: "omp",
|
|
174
|
+
label: "OMP",
|
|
175
|
+
description: "Pi-compatible coding agent distributed as Oh My Pi",
|
|
176
|
+
enabledByDefault: false,
|
|
177
|
+
defaultModeId: null,
|
|
178
|
+
modes: [],
|
|
179
|
+
},
|
|
172
180
|
];
|
|
173
181
|
export const DEV_AGENT_PROVIDER_DEFINITIONS = [
|
|
174
182
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Providers eligible for "import recent session" discovery. ACP-based
|
|
3
|
-
* providers (gemini, copilot, generic acp) are excluded because they either
|
|
4
|
-
* don't expose persisted history quickly or duplicate other providers.
|
|
5
|
-
*/
|
|
6
|
-
export declare const IMPORTABLE_PROVIDERS: readonly ["claude", "codex", "opencode", "pi"];
|
|
7
|
-
//# sourceMappingURL=importable-providers.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Providers eligible for "import recent session" discovery. ACP-based
|
|
3
|
-
* providers (gemini, copilot, generic acp) are excluded because they either
|
|
4
|
-
* don't expose persisted history quickly or duplicate other providers.
|
|
5
|
-
*/
|
|
6
|
-
export const IMPORTABLE_PROVIDERS = ["claude", "codex", "opencode", "pi"];
|
|
7
|
-
//# sourceMappingURL=importable-providers.js.map
|