@getpaseo/protocol 0.1.91-beta.2 → 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/messages.js CHANGED
@@ -665,11 +665,20 @@ export const ReviewAttachmentSchema = z.object({
665
665
  baseRef: z.string().nullable().optional(),
666
666
  comments: z.array(ReviewAttachmentCommentSchema),
667
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
+ });
668
676
  export const AgentAttachmentSchema = z.discriminatedUnion("type", [
669
677
  GitHubPrAttachmentSchema,
670
678
  GitHubIssueAttachmentSchema,
671
679
  TextAttachmentSchema,
672
680
  ReviewAttachmentSchema,
681
+ UploadedFileAttachmentSchema,
673
682
  ]);
674
683
  function normalizeAgentAttachments(input) {
675
684
  if (!Array.isArray(input)) {
@@ -1389,6 +1398,14 @@ export const FileDownloadTokenRequestSchema = z.object({
1389
1398
  path: z.string(),
1390
1399
  requestId: z.string(),
1391
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
+ });
1392
1409
  export const ClearAgentAttentionMessageSchema = z.object({
1393
1410
  type: z.literal("clear_agent_attention"),
1394
1411
  agentId: z.union([z.string(), z.array(z.string())]),
@@ -1600,6 +1617,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
1600
1617
  FileExplorerRequestSchema,
1601
1618
  ProjectIconRequestSchema,
1602
1619
  FileDownloadTokenRequestSchema,
1620
+ FileUploadRequestSchema,
1603
1621
  ClearAgentAttentionMessageSchema,
1604
1622
  ClientHeartbeatMessageSchema,
1605
1623
  PingMessageSchema,
@@ -2968,6 +2986,14 @@ export const FileDownloadTokenResponseSchema = z.object({
2968
2986
  requestId: z.string(),
2969
2987
  }),
2970
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
+ });
2971
2997
  export const ListProviderModelsResponseMessageSchema = z.object({
2972
2998
  type: z.literal("list_provider_models_response"),
2973
2999
  payload: z.object({
@@ -3263,6 +3289,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3263
3289
  FileExplorerResponseSchema,
3264
3290
  ProjectIconResponseSchema,
3265
3291
  FileDownloadTokenResponseSchema,
3292
+ FileUploadResponseSchema,
3266
3293
  ListProviderModelsResponseMessageSchema,
3267
3294
  ListProviderModesResponseMessageSchema,
3268
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;
@@ -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)
@@ -13,6 +13,7 @@ export interface AgentProviderDefinition {
13
13
  id: string;
14
14
  label: string;
15
15
  description: string;
16
+ enabledByDefault?: boolean;
16
17
  defaultModeId: string | null;
17
18
  modes: AgentProviderModeDefinition[];
18
19
  voice?: {
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.91-beta.2",
3
+ "version": "0.1.91",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",
@@ -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