@camerontaylor/paseo-protocol 0.11.2-fork.2 → 0.12.0-fork.1
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-message.d.ts +18 -0
- package/dist/agent-message.js +11 -0
- package/dist/agent-types.d.ts +2 -0
- package/dist/browser-automation/rpc-schemas.d.ts +3 -3
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +16984 -0
- package/dist/generated/validation/ws-outbound-schema-metadata.js +246 -0
- package/dist/generated/validation/ws-outbound.aot.d.ts +487 -1
- package/dist/generated/validation/ws-outbound.aot.js +121459 -108058
- package/dist/messages.d.ts +971 -24
- package/dist/messages.js +59 -8
- package/dist/paseo-tool-call-detail.d.ts +1 -14
- package/dist/paseo-tool-call-detail.js +2 -304
- package/dist/paseo-tool-presentation/agent-message.d.ts +10 -0
- package/dist/paseo-tool-presentation/agent-message.js +22 -0
- package/dist/paseo-tool-presentation/catalog.d.ts +309 -0
- package/dist/paseo-tool-presentation/catalog.js +315 -0
- package/dist/paseo-tool-presentation/detail-sections.d.ts +15 -0
- package/dist/paseo-tool-presentation/detail-sections.js +161 -0
- package/dist/paseo-tool-presentation/index.d.ts +22 -0
- package/dist/paseo-tool-presentation/index.js +62 -0
- package/dist/paseo-tool-presentation/summary-text.d.ts +7 -0
- package/dist/paseo-tool-presentation/summary-text.js +22 -0
- package/dist/provider-icon-names.js +4 -0
- package/dist/tool-call-display.d.ts +3 -1
- package/dist/tool-call-display.js +16 -8
- package/dist/validation/ws-outbound-envelope.d.ts +16258 -0
- package/dist/validation/ws-outbound-envelope.js +17 -0
- package/dist/validation/ws-outbound.d.ts +3 -3
- package/dist/validation/ws-outbound.js +34 -4
- package/dist/websocket-message-limit.d.ts +5 -0
- package/dist/websocket-message-limit.js +5 -0
- package/package.json +1 -1
- package/dist/validation/ws-outbound-schema-metadata.d.ts +0 -16062
- package/dist/validation/ws-outbound-schema-metadata.js +0 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Semantic provenance, independent of provider envelopes and timeline presentation. */
|
|
3
|
+
export declare const AgentMessageSchema: z.ZodObject<{
|
|
4
|
+
event: z.ZodEnum<{
|
|
5
|
+
finished: "finished";
|
|
6
|
+
closed: "closed";
|
|
7
|
+
message: "message";
|
|
8
|
+
errored: "errored";
|
|
9
|
+
"permission-required": "permission-required";
|
|
10
|
+
}>;
|
|
11
|
+
sender: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
title: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
text: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type AgentMessage = z.infer<typeof AgentMessageSchema>;
|
|
18
|
+
//# sourceMappingURL=agent-message.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Semantic provenance, independent of provider envelopes and timeline presentation. */
|
|
3
|
+
export const AgentMessageSchema = z.object({
|
|
4
|
+
event: z.enum(["message", "finished", "errored", "permission-required", "closed"]),
|
|
5
|
+
sender: z.object({
|
|
6
|
+
id: z.string().min(1),
|
|
7
|
+
title: z.string().min(1).optional(),
|
|
8
|
+
}),
|
|
9
|
+
text: z.string(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=agent-message.js.map
|
package/dist/agent-types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AgentMessage } from "./agent-message.js";
|
|
1
2
|
import type { AgentAttachment } from "./messages.js";
|
|
2
3
|
export type AgentProvider = string;
|
|
3
4
|
export type AgentArtifactKind = "html" | "markdown" | "image" | "svg" | "pdf" | "diff";
|
|
@@ -270,6 +271,7 @@ export type ToolCallDetail = {
|
|
|
270
271
|
output: unknown;
|
|
271
272
|
};
|
|
272
273
|
interface ToolCallBase {
|
|
274
|
+
agentMessage?: AgentMessage;
|
|
273
275
|
[key: string]: unknown;
|
|
274
276
|
type: "tool_call";
|
|
275
277
|
callId: string;
|
|
@@ -423,8 +423,8 @@ export declare const BrowserAutomationWaitResultSchema: z.ZodObject<{
|
|
|
423
423
|
command: z.ZodLiteral<"wait">;
|
|
424
424
|
browserId: z.ZodString;
|
|
425
425
|
matched: z.ZodEnum<{
|
|
426
|
-
url: "url";
|
|
427
426
|
text: "text";
|
|
427
|
+
url: "url";
|
|
428
428
|
}>;
|
|
429
429
|
}, z.core.$strip>;
|
|
430
430
|
export declare const BrowserAutomationTypeResultSchema: z.ZodObject<{
|
|
@@ -604,8 +604,8 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
604
604
|
command: z.ZodLiteral<"wait">;
|
|
605
605
|
browserId: z.ZodString;
|
|
606
606
|
matched: z.ZodEnum<{
|
|
607
|
-
url: "url";
|
|
608
607
|
text: "text";
|
|
608
|
+
url: "url";
|
|
609
609
|
}>;
|
|
610
610
|
}, z.core.$strip>, z.ZodObject<{
|
|
611
611
|
command: z.ZodLiteral<"type">;
|
|
@@ -946,8 +946,8 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
946
946
|
command: z.ZodLiteral<"wait">;
|
|
947
947
|
browserId: z.ZodString;
|
|
948
948
|
matched: z.ZodEnum<{
|
|
949
|
-
url: "url";
|
|
950
949
|
text: "text";
|
|
950
|
+
url: "url";
|
|
951
951
|
}>;
|
|
952
952
|
}, z.core.$strip>, z.ZodObject<{
|
|
953
953
|
command: z.ZodLiteral<"type">;
|