@camerontaylor/paseo-protocol 0.8.0-fork.1 → 0.9.0-beta.2.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-profile.d.ts +31 -0
- package/dist/agent-profile.js +32 -0
- package/dist/agent-types.d.ts +2 -0
- package/dist/agent-types.js +11 -0
- package/dist/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +2 -1
- package/dist/browser-automation/rpc-schemas.js +1 -0
- package/dist/client-capabilities.d.ts +2 -0
- package/dist/client-capabilities.js +4 -0
- package/dist/generated/validation/ws-outbound.aot.js +56675 -54803
- package/dist/messages.d.ts +2551 -274
- package/dist/messages.js +224 -68
- package/dist/plugin-config.d.ts +18 -0
- package/dist/plugin-config.js +13 -0
- package/dist/plugin-requirements.js +1 -1
- package/dist/plugin-source-reference.d.ts +3 -0
- package/dist/plugin-source-reference.js +20 -1
- package/dist/search/text-match.d.ts +2 -5
- package/dist/search/text-match.js +7 -1
- package/dist/terminal-profile.d.ts +10 -0
- package/dist/terminal-profile.js +11 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +448 -44
- package/package.json +5 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* A named launch bundle: a provider plus the agent-config values a client would
|
|
4
|
+
* otherwise set one control at a time. Field names mirror `AgentSessionConfig`
|
|
5
|
+
* so applying a profile is a copy rather than a translation table.
|
|
6
|
+
*
|
|
7
|
+
* There is deliberately no system prompt here. `AgentSessionConfig.systemPrompt`
|
|
8
|
+
* is creation-only, so a profile carrying one would apply when starting a new
|
|
9
|
+
* agent and silently do nothing when applied to a running one.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AgentProfileSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
15
|
+
color: z.ZodOptional<z.ZodString>;
|
|
16
|
+
provider: z.ZodString;
|
|
17
|
+
model: z.ZodOptional<z.ZodString>;
|
|
18
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
thinkingOptionId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
featureValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
export type AgentProfile = z.infer<typeof AgentProfileSchema>;
|
|
24
|
+
export declare const AgentSkillSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
+
mode: z.ZodLiteral<"all">;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
mode: z.ZodLiteral<"custom">;
|
|
28
|
+
skills: z.ZodArray<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>], "mode">;
|
|
30
|
+
export type AgentSkillSelection = z.infer<typeof AgentSkillSelectionSchema>;
|
|
31
|
+
//# sourceMappingURL=agent-profile.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* A named launch bundle: a provider plus the agent-config values a client would
|
|
4
|
+
* otherwise set one control at a time. Field names mirror `AgentSessionConfig`
|
|
5
|
+
* so applying a profile is a copy rather than a translation table.
|
|
6
|
+
*
|
|
7
|
+
* There is deliberately no system prompt here. `AgentSessionConfig.systemPrompt`
|
|
8
|
+
* is creation-only, so a profile carrying one would apply when starting a new
|
|
9
|
+
* agent and silently do nothing when applied to a running one.
|
|
10
|
+
*/
|
|
11
|
+
export const AgentProfileSchema = z
|
|
12
|
+
.object({
|
|
13
|
+
id: z.string(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
/** A key into the client's icon registry, not a glyph. Unknown keys draw the default. */
|
|
16
|
+
icon: z.string().optional(),
|
|
17
|
+
/** An identity colour name shared with host badges. Unknown values draw unthemed. */
|
|
18
|
+
color: z.string().optional(),
|
|
19
|
+
provider: z.string(),
|
|
20
|
+
model: z.string().optional(),
|
|
21
|
+
modeId: z.string().optional(),
|
|
22
|
+
thinkingOptionId: z.string().optional(),
|
|
23
|
+
featureValues: z.record(z.string(), z.unknown()).optional(),
|
|
24
|
+
/** Free text, surfaced to orchestrating agents by the `list_profiles` MCP tool. */
|
|
25
|
+
notes: z.string().optional(),
|
|
26
|
+
})
|
|
27
|
+
.passthrough();
|
|
28
|
+
export const AgentSkillSelectionSchema = z.discriminatedUnion("mode", [
|
|
29
|
+
z.object({ mode: z.literal("all") }).strict(),
|
|
30
|
+
z.object({ mode: z.literal("custom"), skills: z.array(z.string()) }).strict(),
|
|
31
|
+
]);
|
|
32
|
+
//# sourceMappingURL=agent-profile.js.map
|
package/dist/agent-types.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ export interface AgentSelectOption {
|
|
|
88
88
|
metadata?: AgentMetadata;
|
|
89
89
|
}
|
|
90
90
|
export declare function normalizeAgentModelDefinition(model: AgentModelDefinition): AgentModelDefinition;
|
|
91
|
+
/** A provider addresses models by ID; repeated rows retain the first definition. */
|
|
92
|
+
export declare function normalizeAgentModelCatalog(models: AgentModelDefinition[]): AgentModelDefinition[];
|
|
91
93
|
export interface ProviderSnapshotEntry {
|
|
92
94
|
provider: AgentProvider;
|
|
93
95
|
status: ProviderStatus;
|
package/dist/agent-types.js
CHANGED
|
@@ -5,6 +5,17 @@ export function normalizeAgentModelDefinition(model) {
|
|
|
5
5
|
}
|
|
6
6
|
return { ...model, defaultThinkingOptionId };
|
|
7
7
|
}
|
|
8
|
+
/** A provider addresses models by ID; repeated rows retain the first definition. */
|
|
9
|
+
export function normalizeAgentModelCatalog(models) {
|
|
10
|
+
const ids = new Set();
|
|
11
|
+
const unique = models.filter((model) => {
|
|
12
|
+
if (ids.has(model.id))
|
|
13
|
+
return false;
|
|
14
|
+
ids.add(model.id);
|
|
15
|
+
return true;
|
|
16
|
+
});
|
|
17
|
+
return unique.length === models.length ? models : unique;
|
|
18
|
+
}
|
|
8
19
|
export const TOOL_CALL_ICON_NAMES = [
|
|
9
20
|
"wrench",
|
|
10
21
|
"square_terminal",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrowserAutomationHostCapabilitySchema: z.ZodObject<{
|
|
3
|
-
supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("
|
|
3
|
+
supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "select" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
|
|
4
4
|
hostKind: z.ZodDefault<z.ZodString>;
|
|
5
5
|
}, z.core.$loose>;
|
|
6
6
|
export type BrowserAutomationHostCapability = z.infer<typeof BrowserAutomationHostCapabilitySchema>;
|
|
@@ -13,8 +13,8 @@ export declare const BrowserAutomationErrorCodeSchema: z.ZodEnum<{
|
|
|
13
13
|
}>;
|
|
14
14
|
export declare const BROWSER_AUTOMATION_COMMAND_NAMES: readonly ["list_tabs", "new_tab", "snapshot", "click", "fill", "wait", "type", "keypress", "navigate", "back", "forward", "reload", "screenshot", "upload", "select", "hover", "drag", "logs", "evaluate", "scroll", "resize", "close_tab"];
|
|
15
15
|
export declare const BrowserAutomationCommandNameSchema: z.ZodEnum<{
|
|
16
|
-
select: "select";
|
|
17
16
|
type: "type";
|
|
17
|
+
select: "select";
|
|
18
18
|
fill: "fill";
|
|
19
19
|
logs: "logs";
|
|
20
20
|
list_tabs: "list_tabs";
|
|
@@ -740,6 +740,7 @@ export declare const BrowserAutomationDialogEventSchema: z.ZodObject<{
|
|
|
740
740
|
}, z.core.$strip>;
|
|
741
741
|
export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
742
742
|
type: z.ZodLiteral<"browser.automation.execute.request">;
|
|
743
|
+
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
743
744
|
requestId: z.ZodString;
|
|
744
745
|
agentId: z.ZodOptional<z.ZodString>;
|
|
745
746
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -435,6 +435,7 @@ export const BrowserAutomationDialogEventSchema = z.object({
|
|
|
435
435
|
export const BrowserAutomationExecuteRequestSchema = z
|
|
436
436
|
.object({
|
|
437
437
|
type: z.literal("browser.automation.execute.request"),
|
|
438
|
+
subscriptionId: z.string().optional(),
|
|
438
439
|
requestId: z.string().min(1),
|
|
439
440
|
agentId: z.string().min(1).optional(),
|
|
440
441
|
cwd: z.string().min(1).optional(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const CLIENT_CAPS: {
|
|
2
|
+
readonly ownedSubscriptions: "owned_subscriptions";
|
|
2
3
|
readonly explicitEventSubscriptions: "explicit_event_subscriptions";
|
|
3
4
|
readonly allProviders: "all_providers";
|
|
4
5
|
readonly selectiveAgentTimeline: "selective_agent_timeline";
|
|
@@ -7,6 +8,7 @@ export declare const CLIENT_CAPS: {
|
|
|
7
8
|
readonly terminalReflowableSnapshot: "terminal_reflowable_snapshot";
|
|
8
9
|
readonly providerSubagents: "provider_subagents";
|
|
9
10
|
readonly sideConversations: "side_conversations";
|
|
11
|
+
readonly projectedSubagentTimeline: "projected_subagent_timeline";
|
|
10
12
|
readonly projectUpdates: "project_updates";
|
|
11
13
|
readonly compactProviderSnapshots: "compact_provider_snapshots";
|
|
12
14
|
readonly providerSnapshotReferences: "provider_snapshot_references";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export const CLIENT_CAPS = {
|
|
2
|
+
// COMPAT(ownedSubscriptions): added in v0.8.0, remove legacy ownership after 2027-03-09.
|
|
3
|
+
ownedSubscriptions: "owned_subscriptions",
|
|
2
4
|
// Clients outside the Paseo app version series can explicitly accept provider IDs.
|
|
3
5
|
// COMPAT(explicitEventSubscriptions): added in v0.8.0, remove legacy broadcasts after 2027-03-08.
|
|
4
6
|
explicitEventSubscriptions: "explicit_event_subscriptions",
|
|
@@ -24,6 +26,8 @@ export const CLIENT_CAPS = {
|
|
|
24
26
|
providerSubagents: "provider_subagents",
|
|
25
27
|
// COMPAT(sideConversations): added in 0.7.0-beta.2.fork.1, fork-only — stock peers never gain it, so the gate lasts as long as stock peers are supported.
|
|
26
28
|
sideConversations: "side_conversations",
|
|
29
|
+
// COMPAT(projectedSubagentTimeline): added after v0.8.0, remove gates after 2027-03-14; retain wire capability.
|
|
30
|
+
projectedSubagentTimeline: "projected_subagent_timeline",
|
|
27
31
|
// COMPAT(projectUpdates): added in v0.1.109, remove gate after 2027-01-15.
|
|
28
32
|
projectUpdates: "project_updates",
|
|
29
33
|
// COMPAT(compactProviderSnapshots): added in v0.2.X. Capable clients receive
|