@hyperdrive.bot/paseo-protocol 0.3.34 → 0.3.36
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-labels.d.ts +17 -0
- package/dist/agent-labels.js +42 -0
- package/dist/fleet/decisions.d.ts +178 -0
- package/dist/fleet/decisions.js +149 -0
- package/dist/fleet/params.d.ts +84 -0
- package/dist/fleet/params.js +142 -0
- package/dist/fleet/rpc-schemas.d.ts +792 -0
- package/dist/fleet/rpc-schemas.js +187 -0
- package/dist/fleet/types.d.ts +170 -0
- package/dist/fleet/types.js +80 -0
- package/dist/generated/validation/ws-outbound.aot.js +10628 -6724
- package/dist/messages.d.ts +2626 -6
- package/dist/messages.js +126 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +716 -1
- package/package.json +1 -1
package/dist/messages.js
CHANGED
|
@@ -9,6 +9,7 @@ import { FileBeginMetadataSchema } from "./binary-frames/file-transfer.js";
|
|
|
9
9
|
import { ChatCreateRequestSchema, ChatListRequestSchema, ChatInspectRequestSchema, ChatDeleteRequestSchema, ChatPostRequestSchema, ChatReadRequestSchema, ChatWaitRequestSchema, ChatCreateResponseSchema, ChatListResponseSchema, ChatInspectResponseSchema, ChatDeleteResponseSchema, ChatPostResponseSchema, ChatReadResponseSchema, ChatWaitResponseSchema, } from "./chat/rpc-schemas.js";
|
|
10
10
|
import { ScheduleCreateRequestSchema, ScheduleListRequestSchema, ScheduleInspectRequestSchema, ScheduleLogsRequestSchema, SchedulePauseRequestSchema, ScheduleResumeRequestSchema, ScheduleDeleteRequestSchema, ScheduleRunOnceRequestSchema, ScheduleUpdateRequestSchema, ScheduleCreateResponseSchema, ScheduleListResponseSchema, ScheduleInspectResponseSchema, ScheduleLogsResponseSchema, SchedulePauseResponseSchema, ScheduleResumeResponseSchema, ScheduleDeleteResponseSchema, ScheduleRunOnceResponseSchema, ScheduleUpdateResponseSchema, } from "./schedule/rpc-schemas.js";
|
|
11
11
|
import { LoopRunRequestSchema, LoopListRequestSchema, LoopInspectRequestSchema, LoopLogsRequestSchema, LoopStopRequestSchema, LoopRunResponseSchema, LoopListResponseSchema, LoopInspectResponseSchema, LoopLogsResponseSchema, LoopStopResponseSchema, } from "./loop/rpc-schemas.js";
|
|
12
|
+
import { FleetListRequestSchema, FleetInspectRequestSchema, FleetRunNowRequestSchema, FleetPauseRequestSchema, FleetResumeRequestSchema, FleetSetModeRequestSchema, FleetAskRequestSchema, FleetDecisionsRequestSchema, FleetResolveDecisionRequestSchema, FleetSetParamsRequestSchema, FleetCreateRequestSchema, FleetExecutionsRequestSchema, FleetListResponseSchema, FleetInspectResponseSchema, FleetRunNowResponseSchema, FleetPauseResponseSchema, FleetResumeResponseSchema, FleetSetModeResponseSchema, FleetAskResponseSchema, FleetDecisionsResponseSchema, FleetResolveDecisionResponseSchema, FleetSetParamsResponseSchema, FleetCreateResponseSchema, FleetExecutionsResponseSchema, } from "./fleet/rpc-schemas.js";
|
|
12
13
|
import { BrowserAutomationExecuteRequestSchema, BrowserAutomationExecuteResponseSchema, } from "./browser-automation/rpc-schemas.js";
|
|
13
14
|
import { BrowserAutomationHostCapabilitySchema } from "./browser-automation/capabilities.js";
|
|
14
15
|
import { PaseoConfigRawSchema, PaseoLifecycleCommandRawSchema, PaseoMetadataGenerationEntrySchema, PaseoMetadataGenerationSchema, PaseoScriptEntryRawSchema, PaseoWorktreeConfigRawSchema, PaseoConfigRevisionSchema, ProjectConfigRpcErrorSchema, } from "./paseo-config-schema.js";
|
|
@@ -917,6 +918,65 @@ export const ArchiveAgentRequestMessageSchema = z.object({
|
|
|
917
918
|
* inside Claude Code. `taskId` names the shell the user dismissed (for
|
|
918
919
|
* symmetry/logging); the kill is the CLI's global stop-background-work action.
|
|
919
920
|
*/
|
|
921
|
+
export const BackgroundTaskStatusSchema = z.enum(["running", "completed", "failed", "canceled"]);
|
|
922
|
+
/**
|
|
923
|
+
* One background shell an agent owns: a command the provider launched with
|
|
924
|
+
* `run_in_background` so it outlives the turn. Mirrors what the Claude Code CLI
|
|
925
|
+
* shows for its own background tasks -- the command, how long it has run, and
|
|
926
|
+
* where its output is being captured -- so paseo can surface the same view.
|
|
927
|
+
*/
|
|
928
|
+
export const BackgroundTaskPayloadSchema = z.object({
|
|
929
|
+
agentId: z.string(),
|
|
930
|
+
/** Agent title at list time, so a cross-agent list reads without a join. */
|
|
931
|
+
agentTitle: z.string().nullable().optional(),
|
|
932
|
+
taskId: z.string(),
|
|
933
|
+
command: z.string().nullable(),
|
|
934
|
+
description: z.string().nullable(),
|
|
935
|
+
status: BackgroundTaskStatusSchema,
|
|
936
|
+
/** ISO start time, from the output file's birth time where one exists. */
|
|
937
|
+
startedAt: z.string(),
|
|
938
|
+
endedAt: z.string().nullable(),
|
|
939
|
+
summary: z.string().nullable(),
|
|
940
|
+
/** True when the provider captured output that can be read back. */
|
|
941
|
+
hasOutput: z.boolean(),
|
|
942
|
+
});
|
|
943
|
+
/**
|
|
944
|
+
* List an agent's background shells, or every agent's when `agentId` is omitted.
|
|
945
|
+
* Fetched on demand (like `list_terminals_request`) rather than pushed on every
|
|
946
|
+
* snapshot, so the per-agent count stays the only thing on the hot path.
|
|
947
|
+
*/
|
|
948
|
+
export const ListBackgroundTasksRequestMessageSchema = z.object({
|
|
949
|
+
type: z.literal("list_background_tasks_request"),
|
|
950
|
+
agentId: z.string().optional(),
|
|
951
|
+
requestId: z.string(),
|
|
952
|
+
});
|
|
953
|
+
export const ListBackgroundTasksResponseSchema = z.object({
|
|
954
|
+
type: z.literal("list_background_tasks_response"),
|
|
955
|
+
payload: z.object({
|
|
956
|
+
tasks: z.array(BackgroundTaskPayloadSchema),
|
|
957
|
+
requestId: z.string(),
|
|
958
|
+
}),
|
|
959
|
+
});
|
|
960
|
+
/** Read back a background shell's captured output (tailed and redacted). */
|
|
961
|
+
export const BackgroundTaskOutputRequestMessageSchema = z.object({
|
|
962
|
+
type: z.literal("background_task_output_request"),
|
|
963
|
+
agentId: z.string(),
|
|
964
|
+
taskId: z.string(),
|
|
965
|
+
maxBytes: z.number().int().positive().optional(),
|
|
966
|
+
requestId: z.string(),
|
|
967
|
+
});
|
|
968
|
+
export const BackgroundTaskOutputResponseSchema = z.object({
|
|
969
|
+
type: z.literal("background_task_output_response"),
|
|
970
|
+
payload: z.object({
|
|
971
|
+
agentId: z.string(),
|
|
972
|
+
taskId: z.string(),
|
|
973
|
+
/** Null when the shell is unknown to the daemon or captured nothing. */
|
|
974
|
+
text: z.string().nullable(),
|
|
975
|
+
truncated: z.boolean(),
|
|
976
|
+
byteSize: z.number().int().nonnegative(),
|
|
977
|
+
requestId: z.string(),
|
|
978
|
+
}),
|
|
979
|
+
});
|
|
920
980
|
export const DismissBackgroundTaskRequestMessageSchema = z.object({
|
|
921
981
|
type: z.literal("dismiss_background_task_request"),
|
|
922
982
|
agentId: z.string(),
|
|
@@ -1324,6 +1384,17 @@ export const GetProvidersSnapshotRequestMessageSchema = z.object({
|
|
|
1324
1384
|
cwd: z.string().optional(),
|
|
1325
1385
|
requestId: z.string(),
|
|
1326
1386
|
});
|
|
1387
|
+
/**
|
|
1388
|
+
* Re-read `agents.providers` from `$PASEO_HOME/config.json` into the live
|
|
1389
|
+
* provider registry without restarting the daemon. Unlike
|
|
1390
|
+
* `set_daemon_config_request` (which deep-merges a patch and can therefore only
|
|
1391
|
+
* add or update), this replaces the base override map, so providers deleted
|
|
1392
|
+
* from the file are actually removed.
|
|
1393
|
+
*/
|
|
1394
|
+
export const ProvidersReloadConfigRequestMessageSchema = z.object({
|
|
1395
|
+
type: z.literal("providers.reload_config.request"),
|
|
1396
|
+
requestId: z.string(),
|
|
1397
|
+
});
|
|
1327
1398
|
export const RefreshProvidersSnapshotRequestMessageSchema = z.object({
|
|
1328
1399
|
type: z.literal("refresh_providers_snapshot_request"),
|
|
1329
1400
|
cwd: z.string().optional(),
|
|
@@ -2427,6 +2498,8 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
2427
2498
|
DeleteAgentRequestMessageSchema,
|
|
2428
2499
|
ArchiveAgentRequestMessageSchema,
|
|
2429
2500
|
DismissBackgroundTaskRequestMessageSchema,
|
|
2501
|
+
ListBackgroundTasksRequestMessageSchema,
|
|
2502
|
+
BackgroundTaskOutputRequestMessageSchema,
|
|
2430
2503
|
CloseItemsRequestMessageSchema,
|
|
2431
2504
|
UpdateAgentRequestMessageSchema,
|
|
2432
2505
|
ProjectRenameRequestSchema,
|
|
@@ -2458,6 +2531,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
2458
2531
|
ListProviderFeaturesRequestMessageSchema,
|
|
2459
2532
|
ListAvailableProvidersRequestMessageSchema,
|
|
2460
2533
|
GetProvidersSnapshotRequestMessageSchema,
|
|
2534
|
+
ProvidersReloadConfigRequestMessageSchema,
|
|
2461
2535
|
RefreshProvidersSnapshotRequestMessageSchema,
|
|
2462
2536
|
ProviderDiagnosticRequestMessageSchema,
|
|
2463
2537
|
ProviderUsageListRequestMessageSchema,
|
|
@@ -2572,6 +2646,18 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
2572
2646
|
LoopInspectRequestSchema,
|
|
2573
2647
|
LoopLogsRequestSchema,
|
|
2574
2648
|
LoopStopRequestSchema,
|
|
2649
|
+
FleetListRequestSchema,
|
|
2650
|
+
FleetInspectRequestSchema,
|
|
2651
|
+
FleetRunNowRequestSchema,
|
|
2652
|
+
FleetPauseRequestSchema,
|
|
2653
|
+
FleetResumeRequestSchema,
|
|
2654
|
+
FleetSetModeRequestSchema,
|
|
2655
|
+
FleetAskRequestSchema,
|
|
2656
|
+
FleetDecisionsRequestSchema,
|
|
2657
|
+
FleetResolveDecisionRequestSchema,
|
|
2658
|
+
FleetSetParamsRequestSchema,
|
|
2659
|
+
FleetCreateRequestSchema,
|
|
2660
|
+
FleetExecutionsRequestSchema,
|
|
2575
2661
|
WatchNotificationActionMessageSchema,
|
|
2576
2662
|
WatchSessionSearchMessageSchema,
|
|
2577
2663
|
WatchComposerDictateMessageSchema,
|
|
@@ -2738,6 +2824,12 @@ export const ServerInfoStatusPayloadSchema = z
|
|
|
2738
2824
|
// Daemon serves the global session list + recall FTS over WS (works
|
|
2739
2825
|
// over the relay); client falls back to HTTP when this flag is absent.
|
|
2740
2826
|
sessionsListRpc: z.boolean().optional(),
|
|
2827
|
+
// COMPAT(loopDecisions): added in v0.3.X, drop the gate when floor >= v0.3.X.
|
|
2828
|
+
// Daemon serves fleet/ask, fleet/decisions, fleet/resolve-decision and
|
|
2829
|
+
// fleet/set-params. Absent on older daemons; new clients then hide the
|
|
2830
|
+
// decision inbox and the parameters form rather than calling an RPC that
|
|
2831
|
+
// would come back as an unknown-message error.
|
|
2832
|
+
loopDecisions: z.boolean().optional(),
|
|
2741
2833
|
// COMPAT(workflows): added in v0.1.X, remove gate after 2026-12-17.
|
|
2742
2834
|
// Daemon exposes `workflow.list/get/cancel/events` over WS. Absent on
|
|
2743
2835
|
// older daemons; new clients then hide the workflows feature.
|
|
@@ -4242,6 +4334,25 @@ export const GetProvidersSnapshotResponseMessageSchema = z.object({
|
|
|
4242
4334
|
requestId: z.string(),
|
|
4243
4335
|
}),
|
|
4244
4336
|
});
|
|
4337
|
+
/**
|
|
4338
|
+
* Result of a provider config reload. Reports provider *ids* only — never the
|
|
4339
|
+
* resolved `env`, which routinely holds API keys (see docs/custom-providers.md).
|
|
4340
|
+
*/
|
|
4341
|
+
export const ProvidersReloadConfigResponseMessageSchema = z.object({
|
|
4342
|
+
type: z.literal("providers.reload_config.response"),
|
|
4343
|
+
payload: z.object({
|
|
4344
|
+
added: z.array(z.string()),
|
|
4345
|
+
updated: z.array(z.string()),
|
|
4346
|
+
removed: z.array(z.string()),
|
|
4347
|
+
unchanged: z.array(z.string()),
|
|
4348
|
+
providers: z.array(z.object({
|
|
4349
|
+
provider: z.string(),
|
|
4350
|
+
label: z.string(),
|
|
4351
|
+
enabled: z.boolean(),
|
|
4352
|
+
})),
|
|
4353
|
+
requestId: z.string(),
|
|
4354
|
+
}),
|
|
4355
|
+
});
|
|
4245
4356
|
// COMPAT(providersSnapshot): added in v0.1.48, remove gating when all clients use snapshot
|
|
4246
4357
|
export const ProvidersSnapshotUpdateMessageSchema = z.object({
|
|
4247
4358
|
type: z.literal("providers_snapshot_update"),
|
|
@@ -4553,6 +4664,8 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
4553
4664
|
AgentDeletedMessageSchema,
|
|
4554
4665
|
AgentArchivedMessageSchema,
|
|
4555
4666
|
BackgroundTaskDismissedMessageSchema,
|
|
4667
|
+
ListBackgroundTasksResponseSchema,
|
|
4668
|
+
BackgroundTaskOutputResponseSchema,
|
|
4556
4669
|
CloseItemsResponseSchema,
|
|
4557
4670
|
CheckoutStatusResponseSchema,
|
|
4558
4671
|
CheckoutStatusUpdateSchema,
|
|
@@ -4595,6 +4708,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
4595
4708
|
ListProviderFeaturesResponseMessageSchema,
|
|
4596
4709
|
ListAvailableProvidersResponseSchema,
|
|
4597
4710
|
GetProvidersSnapshotResponseMessageSchema,
|
|
4711
|
+
ProvidersReloadConfigResponseMessageSchema,
|
|
4598
4712
|
ProvidersSnapshotUpdateMessageSchema,
|
|
4599
4713
|
RefreshProvidersSnapshotResponseMessageSchema,
|
|
4600
4714
|
ProviderDiagnosticResponseMessageSchema,
|
|
@@ -4630,6 +4744,18 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
|
|
4630
4744
|
LoopInspectResponseSchema,
|
|
4631
4745
|
LoopLogsResponseSchema,
|
|
4632
4746
|
LoopStopResponseSchema,
|
|
4747
|
+
FleetListResponseSchema,
|
|
4748
|
+
FleetInspectResponseSchema,
|
|
4749
|
+
FleetRunNowResponseSchema,
|
|
4750
|
+
FleetPauseResponseSchema,
|
|
4751
|
+
FleetResumeResponseSchema,
|
|
4752
|
+
FleetSetModeResponseSchema,
|
|
4753
|
+
FleetAskResponseSchema,
|
|
4754
|
+
FleetDecisionsResponseSchema,
|
|
4755
|
+
FleetResolveDecisionResponseSchema,
|
|
4756
|
+
FleetSetParamsResponseSchema,
|
|
4757
|
+
FleetCreateResponseSchema,
|
|
4758
|
+
FleetExecutionsResponseSchema,
|
|
4633
4759
|
RewindSessionResponseMessageSchema,
|
|
4634
4760
|
EditMessageResponseMessageSchema,
|
|
4635
4761
|
ListWorkspaceSessionsResponseMessageSchema,
|