@hyperdrive.bot/paseo-protocol 0.3.46 → 0.3.47
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-filter.d.ts +248 -0
- package/dist/agent-filter.js +340 -0
- package/dist/messages.d.ts +119 -117
- package/dist/messages.js +19 -1
- package/dist/validation/ws-outbound-schema-metadata.d.ts +24 -24
- package/package.json +1 -1
package/dist/messages.js
CHANGED
|
@@ -923,6 +923,24 @@ export const AgentListItemPayloadSchema = z.object({
|
|
|
923
923
|
labels: z.record(z.string(), z.string()).default({}),
|
|
924
924
|
digest: SessionDigestSchema.optional(),
|
|
925
925
|
activeBackgroundTaskCount: z.number().int().nonnegative().optional(),
|
|
926
|
+
/**
|
|
927
|
+
* Permission requests this agent is blocked on. Present so a consumer of the
|
|
928
|
+
* LIST can derive `needs_input` itself; without it the bucket has to be
|
|
929
|
+
* inferred from `attentionReason`, which is set on a different path and is
|
|
930
|
+
* absent for an agent that is blocked but was never marked.
|
|
931
|
+
*/
|
|
932
|
+
pendingPermissionCount: z.number().int().nonnegative().optional(),
|
|
933
|
+
/**
|
|
934
|
+
* Still-alive work this agent owns: running subagents PLUS in-flight
|
|
935
|
+
* background tasks (shells, monitors, crons).
|
|
936
|
+
*
|
|
937
|
+
* This is the input `deriveAgentStateBucket` needs to return `pending`, and
|
|
938
|
+
* it is a ROLLUP over the whole corpus rather than a property of one record,
|
|
939
|
+
* so only a projection that saw every agent can fill it. Absent means "not
|
|
940
|
+
* computed", which the derivation treats as zero -- and zero is why armed
|
|
941
|
+
* background work read as `done` on every surface that skipped it.
|
|
942
|
+
*/
|
|
943
|
+
activeChildCount: z.number().int().nonnegative().optional(),
|
|
926
944
|
providerUnavailable: z.boolean().optional(),
|
|
927
945
|
});
|
|
928
946
|
export const RecentProviderSessionDescriptorPayloadSchema = z.object({
|
|
@@ -1230,7 +1248,7 @@ export const FetchAgentsRequestMessageSchema = z.object({
|
|
|
1230
1248
|
})
|
|
1231
1249
|
.optional(),
|
|
1232
1250
|
});
|
|
1233
|
-
const WorkspaceStateBucketSchema = z.enum([
|
|
1251
|
+
export const WorkspaceStateBucketSchema = z.enum([
|
|
1234
1252
|
"needs_input",
|
|
1235
1253
|
"failed",
|
|
1236
1254
|
"running",
|
|
@@ -318,9 +318,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
318
318
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
319
319
|
status: import("zod").ZodEnum<{
|
|
320
320
|
error: "error";
|
|
321
|
-
initializing: "initializing";
|
|
322
321
|
idle: "idle";
|
|
323
322
|
running: "running";
|
|
323
|
+
initializing: "initializing";
|
|
324
324
|
closed: "closed";
|
|
325
325
|
}>;
|
|
326
326
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -490,9 +490,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
490
490
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
491
491
|
archivingAt: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
492
492
|
status: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
493
|
-
running: "running";
|
|
494
493
|
attention: "attention";
|
|
495
494
|
needs_input: "needs_input";
|
|
495
|
+
running: "running";
|
|
496
496
|
failed: "failed";
|
|
497
497
|
pending: "pending";
|
|
498
498
|
done: "done";
|
|
@@ -674,7 +674,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
674
674
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
675
675
|
name: string;
|
|
676
676
|
archivingAt: string | null;
|
|
677
|
-
status: "
|
|
677
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
678
678
|
statusEnteredAt: string | null;
|
|
679
679
|
activityAt: string | null;
|
|
680
680
|
scripts: {
|
|
@@ -777,7 +777,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
777
777
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
778
778
|
name: string;
|
|
779
779
|
archivingAt: string | null;
|
|
780
|
-
status: "
|
|
780
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
781
781
|
statusEnteredAt: string | null;
|
|
782
782
|
activityAt: string | null;
|
|
783
783
|
scripts: {
|
|
@@ -1089,9 +1089,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1089
1089
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1090
1090
|
status: import("zod").ZodEnum<{
|
|
1091
1091
|
error: "error";
|
|
1092
|
-
initializing: "initializing";
|
|
1093
1092
|
idle: "idle";
|
|
1094
1093
|
running: "running";
|
|
1094
|
+
initializing: "initializing";
|
|
1095
1095
|
closed: "closed";
|
|
1096
1096
|
}>;
|
|
1097
1097
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -1191,9 +1191,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1191
1191
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1192
1192
|
status: import("zod").ZodEnum<{
|
|
1193
1193
|
error: "error";
|
|
1194
|
-
initializing: "initializing";
|
|
1195
1194
|
idle: "idle";
|
|
1196
1195
|
running: "running";
|
|
1196
|
+
initializing: "initializing";
|
|
1197
1197
|
closed: "closed";
|
|
1198
1198
|
}>;
|
|
1199
1199
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -1376,9 +1376,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1376
1376
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1377
1377
|
status: import("zod").ZodEnum<{
|
|
1378
1378
|
error: "error";
|
|
1379
|
-
initializing: "initializing";
|
|
1380
1379
|
idle: "idle";
|
|
1381
1380
|
running: "running";
|
|
1381
|
+
initializing: "initializing";
|
|
1382
1382
|
closed: "closed";
|
|
1383
1383
|
}>;
|
|
1384
1384
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -1562,9 +1562,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1562
1562
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
1563
1563
|
archivingAt: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
1564
1564
|
status: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
1565
|
-
running: "running";
|
|
1566
1565
|
attention: "attention";
|
|
1567
1566
|
needs_input: "needs_input";
|
|
1567
|
+
running: "running";
|
|
1568
1568
|
failed: "failed";
|
|
1569
1569
|
pending: "pending";
|
|
1570
1570
|
done: "done";
|
|
@@ -1746,7 +1746,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1746
1746
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
1747
1747
|
name: string;
|
|
1748
1748
|
archivingAt: string | null;
|
|
1749
|
-
status: "
|
|
1749
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
1750
1750
|
statusEnteredAt: string | null;
|
|
1751
1751
|
activityAt: string | null;
|
|
1752
1752
|
scripts: {
|
|
@@ -1849,7 +1849,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
1849
1849
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
1850
1850
|
name: string;
|
|
1851
1851
|
archivingAt: string | null;
|
|
1852
|
-
status: "
|
|
1852
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
1853
1853
|
statusEnteredAt: string | null;
|
|
1854
1854
|
activityAt: string | null;
|
|
1855
1855
|
scripts: {
|
|
@@ -2008,9 +2008,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2008
2008
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
2009
2009
|
archivingAt: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
2010
2010
|
status: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
2011
|
-
running: "running";
|
|
2012
2011
|
attention: "attention";
|
|
2013
2012
|
needs_input: "needs_input";
|
|
2013
|
+
running: "running";
|
|
2014
2014
|
failed: "failed";
|
|
2015
2015
|
pending: "pending";
|
|
2016
2016
|
done: "done";
|
|
@@ -2192,7 +2192,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2192
2192
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
2193
2193
|
name: string;
|
|
2194
2194
|
archivingAt: string | null;
|
|
2195
|
-
status: "
|
|
2195
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
2196
2196
|
statusEnteredAt: string | null;
|
|
2197
2197
|
activityAt: string | null;
|
|
2198
2198
|
scripts: {
|
|
@@ -2295,7 +2295,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2295
2295
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
2296
2296
|
name: string;
|
|
2297
2297
|
archivingAt: string | null;
|
|
2298
|
-
status: "
|
|
2298
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
2299
2299
|
statusEnteredAt: string | null;
|
|
2300
2300
|
activityAt: string | null;
|
|
2301
2301
|
scripts: {
|
|
@@ -2470,9 +2470,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2470
2470
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2471
2471
|
status: import("zod").ZodEnum<{
|
|
2472
2472
|
error: "error";
|
|
2473
|
-
initializing: "initializing";
|
|
2474
2473
|
idle: "idle";
|
|
2475
2474
|
running: "running";
|
|
2475
|
+
initializing: "initializing";
|
|
2476
2476
|
closed: "closed";
|
|
2477
2477
|
}>;
|
|
2478
2478
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -2650,9 +2650,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2650
2650
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2651
2651
|
status: import("zod").ZodEnum<{
|
|
2652
2652
|
error: "error";
|
|
2653
|
-
initializing: "initializing";
|
|
2654
2653
|
idle: "idle";
|
|
2655
2654
|
running: "running";
|
|
2655
|
+
initializing: "initializing";
|
|
2656
2656
|
closed: "closed";
|
|
2657
2657
|
}>;
|
|
2658
2658
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -2824,9 +2824,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2824
2824
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2825
2825
|
status: import("zod").ZodEnum<{
|
|
2826
2826
|
error: "error";
|
|
2827
|
-
initializing: "initializing";
|
|
2828
2827
|
idle: "idle";
|
|
2829
2828
|
running: "running";
|
|
2829
|
+
initializing: "initializing";
|
|
2830
2830
|
closed: "closed";
|
|
2831
2831
|
}>;
|
|
2832
2832
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -2925,9 +2925,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
2925
2925
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2926
2926
|
status: import("zod").ZodEnum<{
|
|
2927
2927
|
error: "error";
|
|
2928
|
-
initializing: "initializing";
|
|
2929
2928
|
idle: "idle";
|
|
2930
2929
|
running: "running";
|
|
2930
|
+
initializing: "initializing";
|
|
2931
2931
|
closed: "closed";
|
|
2932
2932
|
}>;
|
|
2933
2933
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -3009,9 +3009,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
3009
3009
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
3010
3010
|
archivingAt: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
3011
3011
|
status: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
3012
|
-
running: "running";
|
|
3013
3012
|
attention: "attention";
|
|
3014
3013
|
needs_input: "needs_input";
|
|
3014
|
+
running: "running";
|
|
3015
3015
|
failed: "failed";
|
|
3016
3016
|
pending: "pending";
|
|
3017
3017
|
done: "done";
|
|
@@ -3193,7 +3193,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
3193
3193
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
3194
3194
|
name: string;
|
|
3195
3195
|
archivingAt: string | null;
|
|
3196
|
-
status: "
|
|
3196
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
3197
3197
|
statusEnteredAt: string | null;
|
|
3198
3198
|
activityAt: string | null;
|
|
3199
3199
|
scripts: {
|
|
@@ -3296,7 +3296,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
3296
3296
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
3297
3297
|
name: string;
|
|
3298
3298
|
archivingAt: string | null;
|
|
3299
|
-
status: "
|
|
3299
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
3300
3300
|
statusEnteredAt: string | null;
|
|
3301
3301
|
activityAt: string | null;
|
|
3302
3302
|
scripts: {
|
|
@@ -4014,9 +4014,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
4014
4014
|
lastUserMessageAt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4015
4015
|
status: import("zod").ZodEnum<{
|
|
4016
4016
|
error: "error";
|
|
4017
|
-
initializing: "initializing";
|
|
4018
4017
|
idle: "idle";
|
|
4019
4018
|
running: "running";
|
|
4019
|
+
initializing: "initializing";
|
|
4020
4020
|
closed: "closed";
|
|
4021
4021
|
}>;
|
|
4022
4022
|
capabilities: import("zod").ZodType<import("../agent-types.js").AgentCapabilityFlags, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentCapabilityFlags, unknown>>;
|
|
@@ -5047,9 +5047,9 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5047
5047
|
title: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
5048
5048
|
archivingAt: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
5049
5049
|
status: import("zod").ZodCatch<import("zod").ZodEnum<{
|
|
5050
|
-
running: "running";
|
|
5051
5050
|
attention: "attention";
|
|
5052
5051
|
needs_input: "needs_input";
|
|
5052
|
+
running: "running";
|
|
5053
5053
|
failed: "failed";
|
|
5054
5054
|
pending: "pending";
|
|
5055
5055
|
done: "done";
|
|
@@ -5231,7 +5231,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5231
5231
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
5232
5232
|
name: string;
|
|
5233
5233
|
archivingAt: string | null;
|
|
5234
|
-
status: "
|
|
5234
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
5235
5235
|
statusEnteredAt: string | null;
|
|
5236
5236
|
activityAt: string | null;
|
|
5237
5237
|
scripts: {
|
|
@@ -5334,7 +5334,7 @@ export declare const WSOutboundMessageSchema: {
|
|
|
5334
5334
|
workspaceKind: "worktree" | "checkout" | "directory" | "local_checkout";
|
|
5335
5335
|
name: string;
|
|
5336
5336
|
archivingAt: string | null;
|
|
5337
|
-
status: "
|
|
5337
|
+
status: "attention" | "needs_input" | "running" | "failed" | "pending" | "done";
|
|
5338
5338
|
statusEnteredAt: string | null;
|
|
5339
5339
|
activityAt: string | null;
|
|
5340
5340
|
scripts: {
|