@getpaseo/protocol 0.1.84
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/README.md +12 -0
- package/dist/agent-attention-notification.d.ts +41 -0
- package/dist/agent-attention-notification.js +140 -0
- package/dist/agent-labels.d.ts +2 -0
- package/dist/agent-labels.js +2 -0
- package/dist/agent-lifecycle.d.ts +3 -0
- package/dist/agent-lifecycle.js +8 -0
- package/dist/agent-state-bucket.d.ts +13 -0
- package/dist/agent-state-bucket.js +41 -0
- package/dist/agent-title-limits.d.ts +3 -0
- package/dist/agent-title-limits.js +3 -0
- package/dist/agent-types.d.ts +421 -0
- package/dist/agent-types.js +22 -0
- package/dist/binary-frames/file-transfer.d.ts +56 -0
- package/dist/binary-frames/file-transfer.js +108 -0
- package/dist/binary-frames/index.d.ts +3 -0
- package/dist/binary-frames/index.js +3 -0
- package/dist/binary-frames/terminal.d.ts +37 -0
- package/dist/binary-frames/terminal.js +101 -0
- package/dist/chat/rpc-schemas.d.ts +728 -0
- package/dist/chat/rpc-schemas.js +103 -0
- package/dist/chat/types.d.ts +75 -0
- package/dist/chat/types.js +22 -0
- package/dist/client-capabilities.d.ts +6 -0
- package/dist/client-capabilities.js +9 -0
- package/dist/connection-offer.d.ts +80 -0
- package/dist/connection-offer.js +53 -0
- package/dist/daemon-endpoints.d.ts +47 -0
- package/dist/daemon-endpoints.js +201 -0
- package/dist/error-utils.d.ts +11 -0
- package/dist/error-utils.js +27 -0
- package/dist/git-remote.d.ts +16 -0
- package/dist/git-remote.js +72 -0
- package/dist/host-connection-schema.d.ts +23 -0
- package/dist/host-connection-schema.js +9 -0
- package/dist/importable-providers.d.ts +7 -0
- package/dist/importable-providers.js +7 -0
- package/dist/literal-union.d.ts +2 -0
- package/dist/literal-union.js +2 -0
- package/dist/loop/rpc-schemas.d.ts +3005 -0
- package/dist/loop/rpc-schemas.js +163 -0
- package/dist/messages.d.ts +144995 -0
- package/dist/messages.js +3338 -0
- package/dist/paseo-config-schema.d.ts +915 -0
- package/dist/paseo-config-schema.js +77 -0
- package/dist/path-utils.d.ts +2 -0
- package/dist/path-utils.js +16 -0
- package/dist/provider-config.d.ts +602 -0
- package/dist/provider-config.js +123 -0
- package/dist/provider-manifest.d.ts +33 -0
- package/dist/provider-manifest.js +219 -0
- package/dist/schedule/rpc-schemas.d.ts +3993 -0
- package/dist/schedule/rpc-schemas.js +151 -0
- package/dist/schedule/types.d.ts +745 -0
- package/dist/schedule/types.js +74 -0
- package/dist/terminal-input-mode.d.ts +26 -0
- package/dist/terminal-input-mode.js +151 -0
- package/dist/terminal-key-input.d.ts +13 -0
- package/dist/terminal-key-input.js +201 -0
- package/dist/terminal-snapshot.d.ts +3 -0
- package/dist/terminal-snapshot.js +165 -0
- package/dist/terminal-stream-protocol.d.ts +2 -0
- package/dist/terminal-stream-protocol.js +2 -0
- package/dist/tool-call-display.d.ts +11 -0
- package/dist/tool-call-display.js +135 -0
- package/dist/tool-name-normalization.d.ts +9 -0
- package/dist/tool-name-normalization.js +82 -0
- package/package.json +34 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ScheduleCadenceSchema, ScheduleRunSchema, ScheduleSummarySchema, StoredScheduleSchema, ScheduleTargetSchema, } from "./types.js";
|
|
3
|
+
const ScheduleCreateTargetSchema = z.discriminatedUnion("type", [
|
|
4
|
+
z.object({
|
|
5
|
+
type: z.literal("self"),
|
|
6
|
+
agentId: z.string().uuid(),
|
|
7
|
+
}),
|
|
8
|
+
z.object({
|
|
9
|
+
type: z.literal("agent"),
|
|
10
|
+
agentId: z.string().uuid(),
|
|
11
|
+
}),
|
|
12
|
+
z.object({
|
|
13
|
+
type: z.literal("new-agent"),
|
|
14
|
+
config: ScheduleTargetSchema.options[1].shape.config,
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
17
|
+
export const ScheduleCreateRequestSchema = z.object({
|
|
18
|
+
type: z.literal("schedule/create"),
|
|
19
|
+
requestId: z.string(),
|
|
20
|
+
prompt: z.string().min(1),
|
|
21
|
+
name: z.string().optional(),
|
|
22
|
+
cadence: ScheduleCadenceSchema,
|
|
23
|
+
target: ScheduleCreateTargetSchema,
|
|
24
|
+
maxRuns: z.number().int().positive().optional(),
|
|
25
|
+
expiresAt: z.string().optional(),
|
|
26
|
+
runOnCreate: z.boolean().optional(),
|
|
27
|
+
});
|
|
28
|
+
export const ScheduleListRequestSchema = z.object({
|
|
29
|
+
type: z.literal("schedule/list"),
|
|
30
|
+
requestId: z.string(),
|
|
31
|
+
});
|
|
32
|
+
export const ScheduleInspectRequestSchema = z.object({
|
|
33
|
+
type: z.literal("schedule/inspect"),
|
|
34
|
+
requestId: z.string(),
|
|
35
|
+
scheduleId: z.string(),
|
|
36
|
+
});
|
|
37
|
+
export const ScheduleLogsRequestSchema = z.object({
|
|
38
|
+
type: z.literal("schedule/logs"),
|
|
39
|
+
requestId: z.string(),
|
|
40
|
+
scheduleId: z.string(),
|
|
41
|
+
});
|
|
42
|
+
export const SchedulePauseRequestSchema = z.object({
|
|
43
|
+
type: z.literal("schedule/pause"),
|
|
44
|
+
requestId: z.string(),
|
|
45
|
+
scheduleId: z.string(),
|
|
46
|
+
});
|
|
47
|
+
export const ScheduleResumeRequestSchema = z.object({
|
|
48
|
+
type: z.literal("schedule/resume"),
|
|
49
|
+
requestId: z.string(),
|
|
50
|
+
scheduleId: z.string(),
|
|
51
|
+
});
|
|
52
|
+
export const ScheduleDeleteRequestSchema = z.object({
|
|
53
|
+
type: z.literal("schedule/delete"),
|
|
54
|
+
requestId: z.string(),
|
|
55
|
+
scheduleId: z.string(),
|
|
56
|
+
});
|
|
57
|
+
export const ScheduleRunOnceRequestSchema = z.object({
|
|
58
|
+
type: z.literal("schedule/run-once"),
|
|
59
|
+
requestId: z.string(),
|
|
60
|
+
scheduleId: z.string(),
|
|
61
|
+
});
|
|
62
|
+
const ScheduleUpdateNewAgentConfigSchema = z.object({
|
|
63
|
+
provider: z.string().trim().min(1).optional(),
|
|
64
|
+
model: z.string().trim().min(1).nullable().optional(),
|
|
65
|
+
modeId: z.string().trim().min(1).nullable().optional(),
|
|
66
|
+
cwd: z.string().trim().min(1).optional(),
|
|
67
|
+
});
|
|
68
|
+
export const ScheduleUpdateRequestSchema = z.object({
|
|
69
|
+
type: z.literal("schedule/update"),
|
|
70
|
+
requestId: z.string(),
|
|
71
|
+
scheduleId: z.string(),
|
|
72
|
+
name: z.string().nullable().optional(),
|
|
73
|
+
prompt: z.string().min(1).optional(),
|
|
74
|
+
cadence: ScheduleCadenceSchema.optional(),
|
|
75
|
+
newAgentConfig: ScheduleUpdateNewAgentConfigSchema.optional(),
|
|
76
|
+
maxRuns: z.number().int().positive().nullable().optional(),
|
|
77
|
+
expiresAt: z.string().nullable().optional(),
|
|
78
|
+
});
|
|
79
|
+
export const ScheduleCreateResponseSchema = z.object({
|
|
80
|
+
type: z.literal("schedule/create/response"),
|
|
81
|
+
payload: z.object({
|
|
82
|
+
requestId: z.string(),
|
|
83
|
+
schedule: ScheduleSummarySchema.nullable(),
|
|
84
|
+
error: z.string().nullable(),
|
|
85
|
+
}),
|
|
86
|
+
});
|
|
87
|
+
export const ScheduleListResponseSchema = z.object({
|
|
88
|
+
type: z.literal("schedule/list/response"),
|
|
89
|
+
payload: z.object({
|
|
90
|
+
requestId: z.string(),
|
|
91
|
+
schedules: z.array(ScheduleSummarySchema),
|
|
92
|
+
error: z.string().nullable(),
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
95
|
+
export const ScheduleInspectResponseSchema = z.object({
|
|
96
|
+
type: z.literal("schedule/inspect/response"),
|
|
97
|
+
payload: z.object({
|
|
98
|
+
requestId: z.string(),
|
|
99
|
+
schedule: StoredScheduleSchema.nullable(),
|
|
100
|
+
error: z.string().nullable(),
|
|
101
|
+
}),
|
|
102
|
+
});
|
|
103
|
+
export const ScheduleLogsResponseSchema = z.object({
|
|
104
|
+
type: z.literal("schedule/logs/response"),
|
|
105
|
+
payload: z.object({
|
|
106
|
+
requestId: z.string(),
|
|
107
|
+
runs: z.array(ScheduleRunSchema),
|
|
108
|
+
error: z.string().nullable(),
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
export const SchedulePauseResponseSchema = z.object({
|
|
112
|
+
type: z.literal("schedule/pause/response"),
|
|
113
|
+
payload: z.object({
|
|
114
|
+
requestId: z.string(),
|
|
115
|
+
schedule: ScheduleSummarySchema.nullable(),
|
|
116
|
+
error: z.string().nullable(),
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
119
|
+
export const ScheduleResumeResponseSchema = z.object({
|
|
120
|
+
type: z.literal("schedule/resume/response"),
|
|
121
|
+
payload: z.object({
|
|
122
|
+
requestId: z.string(),
|
|
123
|
+
schedule: ScheduleSummarySchema.nullable(),
|
|
124
|
+
error: z.string().nullable(),
|
|
125
|
+
}),
|
|
126
|
+
});
|
|
127
|
+
export const ScheduleDeleteResponseSchema = z.object({
|
|
128
|
+
type: z.literal("schedule/delete/response"),
|
|
129
|
+
payload: z.object({
|
|
130
|
+
requestId: z.string(),
|
|
131
|
+
scheduleId: z.string(),
|
|
132
|
+
error: z.string().nullable(),
|
|
133
|
+
}),
|
|
134
|
+
});
|
|
135
|
+
export const ScheduleRunOnceResponseSchema = z.object({
|
|
136
|
+
type: z.literal("schedule/run-once/response"),
|
|
137
|
+
payload: z.object({
|
|
138
|
+
requestId: z.string(),
|
|
139
|
+
schedule: StoredScheduleSchema.nullable(),
|
|
140
|
+
error: z.string().nullable(),
|
|
141
|
+
}),
|
|
142
|
+
});
|
|
143
|
+
export const ScheduleUpdateResponseSchema = z.object({
|
|
144
|
+
type: z.literal("schedule/update/response"),
|
|
145
|
+
payload: z.object({
|
|
146
|
+
requestId: z.string(),
|
|
147
|
+
schedule: StoredScheduleSchema.nullable(),
|
|
148
|
+
error: z.string().nullable(),
|
|
149
|
+
}),
|
|
150
|
+
});
|
|
151
|
+
//# sourceMappingURL=rpc-schemas.js.map
|