@camerontaylor/paseo-protocol 0.8.0-fork.3 → 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.
@@ -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
@@ -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;
@@ -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<("select" | "type" | "fill" | "logs" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "hover" | "drag" | "evaluate" | "scroll" | "resize" | "close_tab")[], string[]>>;
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";
@@ -8,6 +8,7 @@ export declare const CLIENT_CAPS: {
8
8
  readonly terminalReflowableSnapshot: "terminal_reflowable_snapshot";
9
9
  readonly providerSubagents: "provider_subagents";
10
10
  readonly sideConversations: "side_conversations";
11
+ readonly projectedSubagentTimeline: "projected_subagent_timeline";
11
12
  readonly projectUpdates: "project_updates";
12
13
  readonly compactProviderSnapshots: "compact_provider_snapshots";
13
14
  readonly providerSnapshotReferences: "provider_snapshot_references";
@@ -26,6 +26,8 @@ export const CLIENT_CAPS = {
26
26
  providerSubagents: "provider_subagents",
27
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.
28
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",
29
31
  // COMPAT(projectUpdates): added in v0.1.109, remove gate after 2027-01-15.
30
32
  projectUpdates: "project_updates",
31
33
  // COMPAT(compactProviderSnapshots): added in v0.2.X. Capable clients receive