@otto-code/protocol 0.8.10 → 0.8.12
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-queue.d.ts +87 -0
- package/dist/agent-queue.js +106 -0
- package/dist/brain.d.ts +2321 -0
- package/dist/brain.js +1082 -0
- package/dist/client-capabilities.d.ts +2 -0
- package/dist/client-capabilities.js +10 -0
- package/dist/code-intelligence.d.ts +917 -0
- package/dist/code-intelligence.js +699 -0
- package/dist/communications.d.ts +1106 -0
- package/dist/communications.js +384 -0
- package/dist/context.d.ts +787 -0
- package/dist/context.js +295 -0
- package/dist/daemon-config.d.ts +377 -0
- package/dist/daemon-config.js +395 -0
- package/dist/file-operations.d.ts +380 -0
- package/dist/file-operations.js +282 -0
- package/dist/generated/validation/ws-outbound.aot.js +54927 -48878
- package/dist/git-hosting.d.ts +117 -0
- package/dist/git-hosting.js +109 -0
- package/dist/git-operations.d.ts +255 -0
- package/dist/git-operations.js +221 -0
- package/dist/integration-authorization.d.ts +195 -0
- package/dist/integration-authorization.js +125 -0
- package/dist/kanban.d.ts +341 -0
- package/dist/kanban.js +273 -0
- package/dist/loop/rpc-schemas.d.ts +6 -6
- package/dist/meetings.d.ts +95 -0
- package/dist/meetings.js +57 -0
- package/dist/messages.d.ts +21054 -24042
- package/dist/messages.js +4355 -8731
- package/dist/orchestration.d.ts +726 -0
- package/dist/orchestration.js +232 -0
- package/dist/personality-schemas.d.ts +221 -0
- package/dist/personality-schemas.js +340 -0
- package/dist/preview.d.ts +140 -0
- package/dist/preview.js +98 -0
- package/dist/project-knowledge.d.ts +740 -0
- package/dist/project-knowledge.js +229 -0
- package/dist/project-links.d.ts +102 -0
- package/dist/project-links.js +62 -0
- package/dist/provider-config.d.ts +87 -2
- package/dist/provider-config.js +110 -0
- package/dist/refine.d.ts +93 -0
- package/dist/refine.js +78 -0
- package/dist/schedule/rpc-schemas.d.ts +47 -47
- package/dist/schedule/types.d.ts +13 -13
- package/dist/speech.d.ts +180 -0
- package/dist/speech.js +177 -0
- package/dist/storage.d.ts +79 -0
- package/dist/storage.js +107 -0
- package/dist/suggested-tasks.d.ts +106 -0
- package/dist/suggested-tasks.js +81 -0
- package/dist/terminal-compatibility.d.ts +55 -0
- package/dist/terminal-compatibility.js +35 -0
- package/dist/usage-stats.d.ts +255 -0
- package/dist/usage-stats.js +162 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +1404 -274
- package/dist/worktree-ops.d.ts +81 -0
- package/dist/worktree-ops.js +88 -0
- package/package.json +1 -1
package/dist/orchestration.js
CHANGED
|
@@ -630,4 +630,236 @@ function validateGraphNodeLoop(node) {
|
|
|
630
630
|
}
|
|
631
631
|
return [];
|
|
632
632
|
}
|
|
633
|
+
// ── Orchestration runs (agent-orchestration) ────────────────────────────────
|
|
634
|
+
// Daemon-owned multi-agent Run projection + control. Gated by
|
|
635
|
+
// server_info.features.agentOrchestration. See projects/agent-orchestration.
|
|
636
|
+
export const RunsGetSnapshotRequestSchema = z.object({
|
|
637
|
+
type: z.literal("runs.get_snapshot.request"),
|
|
638
|
+
requestId: z.string(),
|
|
639
|
+
});
|
|
640
|
+
export const RunsGetSnapshotResponseSchema = z.object({
|
|
641
|
+
type: z.literal("runs.get_snapshot.response"),
|
|
642
|
+
payload: z.object({
|
|
643
|
+
runs: z.array(RunSchema),
|
|
644
|
+
requestId: z.string(),
|
|
645
|
+
}),
|
|
646
|
+
});
|
|
647
|
+
// Single-run push, broadcast on every phase/status change. Clients merge by id.
|
|
648
|
+
export const RunsUpdatedNotificationSchema = z.object({
|
|
649
|
+
type: z.literal("runs.updated.notification"),
|
|
650
|
+
payload: z.object({
|
|
651
|
+
run: RunSchema,
|
|
652
|
+
}),
|
|
653
|
+
});
|
|
654
|
+
// Answer an attended run's `gate` phase (approve or reject, with an optional
|
|
655
|
+
// note). `accepted` is false when the run wasn't awaiting a gate.
|
|
656
|
+
export const RunsGateRespondRequestSchema = z.object({
|
|
657
|
+
type: z.literal("runs.gate_respond.request"),
|
|
658
|
+
runId: z.string(),
|
|
659
|
+
phaseId: z.string(),
|
|
660
|
+
approved: z.boolean(),
|
|
661
|
+
note: z.string().optional(),
|
|
662
|
+
requestId: z.string(),
|
|
663
|
+
});
|
|
664
|
+
export const RunsGateRespondResponseSchema = z.object({
|
|
665
|
+
type: z.literal("runs.gate_respond.response"),
|
|
666
|
+
payload: z.object({
|
|
667
|
+
runId: z.string(),
|
|
668
|
+
accepted: z.boolean(),
|
|
669
|
+
requestId: z.string(),
|
|
670
|
+
}),
|
|
671
|
+
});
|
|
672
|
+
export const RunsCancelRequestSchema = z.object({
|
|
673
|
+
type: z.literal("runs.cancel.request"),
|
|
674
|
+
runId: z.string(),
|
|
675
|
+
requestId: z.string(),
|
|
676
|
+
});
|
|
677
|
+
export const RunsCancelResponseSchema = z.object({
|
|
678
|
+
type: z.literal("runs.cancel.response"),
|
|
679
|
+
payload: z.object({
|
|
680
|
+
runId: z.string(),
|
|
681
|
+
canceled: z.boolean(),
|
|
682
|
+
requestId: z.string(),
|
|
683
|
+
}),
|
|
684
|
+
});
|
|
685
|
+
// Delete every finished (done/failed/canceled) run from disk and memory.
|
|
686
|
+
// Active/paused runs are left untouched. Gated by
|
|
687
|
+
// server_info.features.runsClear.
|
|
688
|
+
export const RunsClearRequestSchema = z.object({
|
|
689
|
+
type: z.literal("runs.clear.request"),
|
|
690
|
+
requestId: z.string(),
|
|
691
|
+
});
|
|
692
|
+
export const RunsClearResponseSchema = z.object({
|
|
693
|
+
type: z.literal("runs.clear.response"),
|
|
694
|
+
payload: z.object({
|
|
695
|
+
runIds: z.array(z.string()),
|
|
696
|
+
requestId: z.string(),
|
|
697
|
+
}),
|
|
698
|
+
});
|
|
699
|
+
// Delete one run by id. Terminal (done/failed/canceled) and draft runs only -
|
|
700
|
+
// deleting an active run is refused so a cleanup click can't silently orphan
|
|
701
|
+
// running agents; cancel it first. Gated by server_info.features.runsDelete.
|
|
702
|
+
export const RunsDeleteRequestSchema = z.object({
|
|
703
|
+
type: z.literal("runs.delete.request"),
|
|
704
|
+
requestId: z.string(),
|
|
705
|
+
runId: z.string(),
|
|
706
|
+
});
|
|
707
|
+
export const RunsDeleteResponseSchema = z.object({
|
|
708
|
+
type: z.literal("runs.delete.response"),
|
|
709
|
+
payload: z.object({
|
|
710
|
+
// The deleted id, or absent when nothing was deleted (unknown or still
|
|
711
|
+
// active) - `error` then carries why.
|
|
712
|
+
runId: z.string().optional(),
|
|
713
|
+
error: z.string().optional(),
|
|
714
|
+
requestId: z.string(),
|
|
715
|
+
}),
|
|
716
|
+
});
|
|
717
|
+
// Broadcast to every connected client (including the requester) so all
|
|
718
|
+
// caches drop the same runs, mirroring runs.updated.notification's upsert.
|
|
719
|
+
// Serves both runs.clear (many ids) and runs.delete (one).
|
|
720
|
+
export const RunsClearedNotificationSchema = z.object({
|
|
721
|
+
type: z.literal("runs.cleared.notification"),
|
|
722
|
+
payload: z.object({
|
|
723
|
+
runIds: z.array(z.string()),
|
|
724
|
+
}),
|
|
725
|
+
});
|
|
726
|
+
// ── Orchestration graphs (user orchestrations) ──────────────────────────────
|
|
727
|
+
// Host-level reusable graph templates + user-initiated orchestration start.
|
|
728
|
+
// Gated by server_info.features.orchestrationGraphs. UI says "Orchestration"
|
|
729
|
+
// and "Graph"; the wire keeps the short `runs.` namespace (see docs/glossary.md).
|
|
730
|
+
// See projects/orchestration-graphs.
|
|
731
|
+
export const RunsGraphsListRequestSchema = z.object({
|
|
732
|
+
type: z.literal("runs.graphs.list.request"),
|
|
733
|
+
requestId: z.string(),
|
|
734
|
+
});
|
|
735
|
+
export const RunsGraphsListResponseSchema = z.object({
|
|
736
|
+
type: z.literal("runs.graphs.list.response"),
|
|
737
|
+
payload: z.object({
|
|
738
|
+
graphs: z.array(OrchestrationGraphSchema),
|
|
739
|
+
requestId: z.string(),
|
|
740
|
+
}),
|
|
741
|
+
});
|
|
742
|
+
// Upsert a graph template (create when the id is new). Built-in graphs are
|
|
743
|
+
// copy-on-edit daemon-side: saving over a builtIn id persists a user copy.
|
|
744
|
+
export const RunsGraphsSaveRequestSchema = z.object({
|
|
745
|
+
type: z.literal("runs.graphs.save.request"),
|
|
746
|
+
graph: OrchestrationGraphSchema,
|
|
747
|
+
requestId: z.string(),
|
|
748
|
+
});
|
|
749
|
+
export const RunsGraphsSaveResponseSchema = z.object({
|
|
750
|
+
type: z.literal("runs.graphs.save.response"),
|
|
751
|
+
payload: z.object({
|
|
752
|
+
graph: OrchestrationGraphSchema.optional(),
|
|
753
|
+
error: z.string().optional(),
|
|
754
|
+
requestId: z.string(),
|
|
755
|
+
}),
|
|
756
|
+
});
|
|
757
|
+
export const RunsGraphsDeleteRequestSchema = z.object({
|
|
758
|
+
type: z.literal("runs.graphs.delete.request"),
|
|
759
|
+
graphId: z.string(),
|
|
760
|
+
requestId: z.string(),
|
|
761
|
+
});
|
|
762
|
+
export const RunsGraphsDeleteResponseSchema = z.object({
|
|
763
|
+
type: z.literal("runs.graphs.delete.response"),
|
|
764
|
+
payload: z.object({
|
|
765
|
+
deleted: z.boolean(),
|
|
766
|
+
error: z.string().optional(),
|
|
767
|
+
requestId: z.string(),
|
|
768
|
+
}),
|
|
769
|
+
});
|
|
770
|
+
// Broadcast after any save/delete so every client's graph cache converges,
|
|
771
|
+
// mirroring runs.updated.notification's role for runs.
|
|
772
|
+
export const RunsGraphsChangedNotificationSchema = z.object({
|
|
773
|
+
type: z.literal("runs.graphs.changed.notification"),
|
|
774
|
+
payload: z.object({
|
|
775
|
+
graphs: z.array(OrchestrationGraphSchema),
|
|
776
|
+
}),
|
|
777
|
+
});
|
|
778
|
+
// ── Prompt templates ────────────────────────────────────────────────────────
|
|
779
|
+
// Host-level reusable prompts and snippets a graph node can bind to. Same shape
|
|
780
|
+
// as the graph trio above, for the same reason: one store, list/save/delete,
|
|
781
|
+
// plus a full-list push so every client converges.
|
|
782
|
+
export const RunsTemplatesListRequestSchema = z.object({
|
|
783
|
+
type: z.literal("runs.templates.list.request"),
|
|
784
|
+
requestId: z.string(),
|
|
785
|
+
});
|
|
786
|
+
export const RunsTemplatesListResponseSchema = z.object({
|
|
787
|
+
type: z.literal("runs.templates.list.response"),
|
|
788
|
+
payload: z.object({
|
|
789
|
+
templates: z.array(PromptTemplateSchema),
|
|
790
|
+
requestId: z.string(),
|
|
791
|
+
}),
|
|
792
|
+
});
|
|
793
|
+
export const RunsTemplatesSaveRequestSchema = z.object({
|
|
794
|
+
type: z.literal("runs.templates.save.request"),
|
|
795
|
+
template: PromptTemplateSchema,
|
|
796
|
+
requestId: z.string(),
|
|
797
|
+
});
|
|
798
|
+
export const RunsTemplatesSaveResponseSchema = z.object({
|
|
799
|
+
type: z.literal("runs.templates.save.response"),
|
|
800
|
+
payload: z.object({
|
|
801
|
+
template: PromptTemplateSchema.optional(),
|
|
802
|
+
error: z.string().optional(),
|
|
803
|
+
requestId: z.string(),
|
|
804
|
+
}),
|
|
805
|
+
});
|
|
806
|
+
export const RunsTemplatesDeleteRequestSchema = z.object({
|
|
807
|
+
type: z.literal("runs.templates.delete.request"),
|
|
808
|
+
templateId: z.string(),
|
|
809
|
+
requestId: z.string(),
|
|
810
|
+
});
|
|
811
|
+
export const RunsTemplatesDeleteResponseSchema = z.object({
|
|
812
|
+
type: z.literal("runs.templates.delete.response"),
|
|
813
|
+
payload: z.object({
|
|
814
|
+
deleted: z.boolean(),
|
|
815
|
+
error: z.string().optional(),
|
|
816
|
+
requestId: z.string(),
|
|
817
|
+
}),
|
|
818
|
+
});
|
|
819
|
+
export const RunsTemplatesChangedNotificationSchema = z.object({
|
|
820
|
+
type: z.literal("runs.templates.changed.notification"),
|
|
821
|
+
payload: z.object({
|
|
822
|
+
templates: z.array(PromptTemplateSchema),
|
|
823
|
+
}),
|
|
824
|
+
});
|
|
825
|
+
// Start (or draft) a user-initiated orchestration from the New Orchestration
|
|
826
|
+
// dialog. `flavor` is an open vocabulary: "ai" (prompt-and-go - the daemon
|
|
827
|
+
// spawns an orchestrator agent that declares its own plan via start_run) or
|
|
828
|
+
// "graph" (deterministic - the daemon executes `graphId` with `graphInputs`).
|
|
829
|
+
// `draft: true` creates the record without executing (the designer flow);
|
|
830
|
+
// `runId` executes an existing draft in place - or, with `draft: true`, re-saves
|
|
831
|
+
// that draft in place (Edit Orchestration).
|
|
832
|
+
export const RunsStartRequestSchema = z.object({
|
|
833
|
+
type: z.literal("runs.start.request"),
|
|
834
|
+
flavor: z.string(),
|
|
835
|
+
cwd: z.string(),
|
|
836
|
+
workspaceId: z.string().optional(),
|
|
837
|
+
title: z.string().optional(),
|
|
838
|
+
description: z.string().optional(),
|
|
839
|
+
// Orchestrator seat when the active team doesn't fill it: a personality, or
|
|
840
|
+
// a bare provider/model pair.
|
|
841
|
+
orchestratorPersonalityId: z.string().optional(),
|
|
842
|
+
orchestratorProvider: z.string().optional(),
|
|
843
|
+
orchestratorModel: z.string().optional(),
|
|
844
|
+
orchestratorThinkingOptionId: z.string().optional(),
|
|
845
|
+
prompt: z.string().optional(),
|
|
846
|
+
graphId: z.string().optional(),
|
|
847
|
+
graphInputs: z.record(z.string(), z.string()).optional(),
|
|
848
|
+
draft: z.boolean().optional(),
|
|
849
|
+
runId: z.string().optional(),
|
|
850
|
+
requestId: z.string(),
|
|
851
|
+
});
|
|
852
|
+
export const RunsStartResponseSchema = z.object({
|
|
853
|
+
type: z.literal("runs.start.response"),
|
|
854
|
+
payload: z.object({
|
|
855
|
+
runId: z.string().optional(),
|
|
856
|
+
// The root/orchestrator agent whose chat the client navigates to, and the
|
|
857
|
+
// workspace the daemon resolved it into (the dialog only knows a project
|
|
858
|
+
// target's cwd).
|
|
859
|
+
agentId: z.string().optional(),
|
|
860
|
+
workspaceId: z.string().optional(),
|
|
861
|
+
error: z.string().optional(),
|
|
862
|
+
requestId: z.string(),
|
|
863
|
+
}),
|
|
864
|
+
});
|
|
633
865
|
//# sourceMappingURL=orchestration.js.map
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Otto agent-personality wire schemas. Kept out of agent-personalities.ts because that module imports from messages.ts, and out of messages.ts because personalities are a fork-only capability.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PERSONALITY_ROLES: readonly ["chatter", "artificer", "scheduler", "researcher", "planner", "judger", "advisor", "coder", "designer", "writer", "orchestrator"];
|
|
6
|
+
export type PersonalityRole = (typeof PERSONALITY_ROLES)[number];
|
|
7
|
+
export declare const PersonalityMemoryEntrySchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
scope: z.ZodString;
|
|
11
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
12
|
+
createdAt: z.ZodString;
|
|
13
|
+
updatedAt: z.ZodString;
|
|
14
|
+
source: z.ZodString;
|
|
15
|
+
reinforcedCount: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
transferredFrom: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
export declare const PersonalityMemoryListRequestMessageSchema: z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"personality.memory.list.request">;
|
|
20
|
+
requestId: z.ZodString;
|
|
21
|
+
personalityId: z.ZodString;
|
|
22
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const PersonalityMemoryListResponseMessageSchema: z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"personality.memory.list.response">;
|
|
27
|
+
payload: z.ZodObject<{
|
|
28
|
+
requestId: z.ZodString;
|
|
29
|
+
personalityId: z.ZodString;
|
|
30
|
+
personalityName: z.ZodString;
|
|
31
|
+
enabled: z.ZodBoolean;
|
|
32
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
text: z.ZodString;
|
|
35
|
+
scope: z.ZodString;
|
|
36
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
updatedAt: z.ZodString;
|
|
39
|
+
source: z.ZodString;
|
|
40
|
+
reinforcedCount: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
transferredFrom: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
brief: z.ZodString;
|
|
44
|
+
briefTokens: z.ZodNumber;
|
|
45
|
+
briefOmittedCount: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const PersonalityMemoryUpdateRequestMessageSchema: z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"personality.memory.update.request">;
|
|
51
|
+
requestId: z.ZodString;
|
|
52
|
+
personalityId: z.ZodString;
|
|
53
|
+
entryId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
text: z.ZodOptional<z.ZodString>;
|
|
55
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
56
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
58
|
+
drop: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const PersonalityMemoryUpdateResponseMessageSchema: z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"personality.memory.update.response">;
|
|
62
|
+
payload: z.ZodObject<{
|
|
63
|
+
requestId: z.ZodString;
|
|
64
|
+
ok: z.ZodBoolean;
|
|
65
|
+
error: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const PersonalityMemoryTransferRequestMessageSchema: z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"personality.memory.transfer.request">;
|
|
70
|
+
requestId: z.ZodString;
|
|
71
|
+
fromPersonalityId: z.ZodString;
|
|
72
|
+
toPersonalityId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
mode: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const PersonalityMemoryTransferResponseMessageSchema: z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"personality.memory.transfer.response">;
|
|
77
|
+
payload: z.ZodObject<{
|
|
78
|
+
requestId: z.ZodString;
|
|
79
|
+
ok: z.ZodBoolean;
|
|
80
|
+
transferred: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
merged: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
error: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const PersonalityMemoryStatsRequestMessageSchema: z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"personality.memory.stats.request">;
|
|
87
|
+
requestId: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const PersonalityMemoryStatsResponseMessageSchema: z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<"personality.memory.stats.response">;
|
|
91
|
+
payload: z.ZodObject<{
|
|
92
|
+
requestId: z.ZodString;
|
|
93
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type PersonalityMemoryEntryPayload = z.infer<typeof PersonalityMemoryEntrySchema>;
|
|
97
|
+
export type PersonalityMemoryListResponseMessage = z.infer<typeof PersonalityMemoryListResponseMessageSchema>;
|
|
98
|
+
export type PersonalityMemoryUpdateResponseMessage = z.infer<typeof PersonalityMemoryUpdateResponseMessageSchema>;
|
|
99
|
+
export type PersonalityMemoryTransferResponseMessage = z.infer<typeof PersonalityMemoryTransferResponseMessageSchema>;
|
|
100
|
+
export type PersonalityMemoryStatsResponseMessage = z.infer<typeof PersonalityMemoryStatsResponseMessageSchema>;
|
|
101
|
+
export declare const AgentTeamAvatarSchema: z.ZodObject<{
|
|
102
|
+
color: z.ZodOptional<z.ZodString>;
|
|
103
|
+
imageId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
export declare const AgentTeamSchema: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
avatar: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
color: z.ZodOptional<z.ZodString>;
|
|
110
|
+
imageId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$loose>>;
|
|
112
|
+
teamPrompt: z.ZodOptional<z.ZodString>;
|
|
113
|
+
memberIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
+
}, z.core.$loose>;
|
|
115
|
+
export type AgentTeam = z.infer<typeof AgentTeamSchema>;
|
|
116
|
+
export type AgentTeamAvatar = z.infer<typeof AgentTeamAvatarSchema>;
|
|
117
|
+
export declare const AgentPersonalitiesGetStatsRequestSchema: z.ZodObject<{
|
|
118
|
+
type: z.ZodLiteral<"agentPersonalities.get_stats.request">;
|
|
119
|
+
requestId: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export declare const AgentPersonalitiesGenerateProfileRequestSchema: z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"agentPersonalities.generate_profile.request">;
|
|
123
|
+
requestId: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
glowA: z.ZodOptional<z.ZodString>;
|
|
127
|
+
glowB: z.ZodOptional<z.ZodString>;
|
|
128
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export declare const AgentPersonalitiesGetStatsResponseSchema: z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"agentPersonalities.get_stats.response">;
|
|
132
|
+
payload: z.ZodObject<{
|
|
133
|
+
requestId: z.ZodString;
|
|
134
|
+
stats: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
135
|
+
}, z.core.$loose>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export declare const AgentPersonalitiesGenerateProfileResponseSchema: z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<"agentPersonalities.generate_profile.response">;
|
|
139
|
+
payload: z.ZodObject<{
|
|
140
|
+
requestId: z.ZodString;
|
|
141
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
142
|
+
error: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$loose>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type AgentPersonalitiesGenerateProfileResult = z.infer<typeof AgentPersonalitiesGenerateProfileResponseSchema>["payload"];
|
|
146
|
+
export declare const CUE_MOMENTS: readonly ["join", "thinking", "waiting", "done"];
|
|
147
|
+
export type CueMoment = (typeof CUE_MOMENTS)[number];
|
|
148
|
+
export declare const AgentPersonalitySpinnerSchema: z.ZodObject<{
|
|
149
|
+
glowA: z.ZodString;
|
|
150
|
+
glowB: z.ZodString;
|
|
151
|
+
}, z.core.$loose>;
|
|
152
|
+
export declare const AgentPersonalityVoiceSchema: z.ZodObject<{
|
|
153
|
+
provider: z.ZodString;
|
|
154
|
+
model: z.ZodString;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
}, z.core.$loose>;
|
|
157
|
+
export declare const AgentPersonalityVoiceCuesSchema: z.ZodObject<{
|
|
158
|
+
join: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
|
+
thinking: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
done: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
}, z.core.$loose>;
|
|
163
|
+
export type AgentPersonalityVoiceCues = z.infer<typeof AgentPersonalityVoiceCuesSchema>;
|
|
164
|
+
export declare const AgentPersonalitySchema: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
provider: z.ZodString;
|
|
168
|
+
model: z.ZodString;
|
|
169
|
+
effortLevel: z.ZodOptional<z.ZodString>;
|
|
170
|
+
modeId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
personalityPrompt: z.ZodOptional<z.ZodString>;
|
|
172
|
+
respectGlobalAppendPrompt: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
spinner: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
glowA: z.ZodString;
|
|
176
|
+
glowB: z.ZodString;
|
|
177
|
+
}, z.core.$loose>>;
|
|
178
|
+
voice: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
provider: z.ZodString;
|
|
180
|
+
model: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
}, z.core.$loose>>;
|
|
183
|
+
voiceCues: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
join: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
thinking: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
186
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
|
+
done: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
}, z.core.$loose>>;
|
|
189
|
+
memoryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$loose>;
|
|
191
|
+
export type AgentPersonality = z.infer<typeof AgentPersonalitySchema>;
|
|
192
|
+
export type AgentPersonalityVoice = z.infer<typeof AgentPersonalityVoiceSchema>;
|
|
193
|
+
export declare const VisualizerVoiceCuesGenerateRequestSchema: z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<"visualizer.voiceCues.generate.request">;
|
|
195
|
+
requestId: z.ZodString;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
199
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
+
moment: z.ZodOptional<z.ZodEnum<{
|
|
201
|
+
join: "join";
|
|
202
|
+
thinking: "thinking";
|
|
203
|
+
waiting: "waiting";
|
|
204
|
+
done: "done";
|
|
205
|
+
}>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export declare const VisualizerVoiceCuesGenerateResponseSchema: z.ZodObject<{
|
|
208
|
+
type: z.ZodLiteral<"visualizer.voiceCues.generate.response">;
|
|
209
|
+
payload: z.ZodObject<{
|
|
210
|
+
requestId: z.ZodString;
|
|
211
|
+
cues: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
join: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
213
|
+
thinking: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
214
|
+
waiting: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
215
|
+
done: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
|
+
}, z.core.$loose>>;
|
|
217
|
+
error: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$loose>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export type VisualizerVoiceCuesResult = z.infer<typeof VisualizerVoiceCuesGenerateResponseSchema>["payload"];
|
|
221
|
+
//# sourceMappingURL=personality-schemas.d.ts.map
|