@runtypelabs/persona 3.26.0 → 3.27.0
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/README.md +29 -13
- package/dist/animations/glyph-cycle.d.cts +1 -1
- package/dist/animations/glyph-cycle.d.ts +1 -1
- package/dist/animations/{types-BZVr1YOV.d.cts → types-CxvHw0X6.d.cts} +551 -1
- package/dist/animations/{types-BZVr1YOV.d.ts → types-CxvHw0X6.d.ts} +551 -1
- package/dist/animations/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1230 -3
- package/dist/index.d.ts +1230 -3
- package/dist/index.global.js +34 -34
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/launcher.global.js +133 -0
- package/dist/launcher.global.js.map +1 -0
- package/dist/smart-dom-reader.d.cts +551 -1
- package/dist/smart-dom-reader.d.ts +551 -1
- package/dist/theme-editor.d.cts +551 -1
- package/dist/theme-editor.d.ts +551 -1
- package/package.json +8 -4
- package/src/client.test.ts +9 -9
- package/src/generated/runtype-openapi-contract.ts +1249 -0
- package/src/index-core.ts +19 -0
- package/src/install.test.ts +442 -0
- package/src/install.ts +283 -49
- package/src/launcher-global.ts +115 -0
- package/src/runtime/init.test.ts +71 -0
- package/src/runtime/init.ts +17 -1
- package/src/types.ts +14 -8
package/dist/index.d.ts
CHANGED
|
@@ -730,6 +730,1226 @@ interface CreateThemeOptions {
|
|
|
730
730
|
extend?: PersonaTheme;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
+
type RuntypeAgentSSEEvent = {
|
|
734
|
+
agentId: string;
|
|
735
|
+
agentName: string;
|
|
736
|
+
config?: {
|
|
737
|
+
enableReflection?: boolean;
|
|
738
|
+
model?: string;
|
|
739
|
+
};
|
|
740
|
+
executionId: string;
|
|
741
|
+
maxTurns: number;
|
|
742
|
+
seq: number;
|
|
743
|
+
startedAt: string;
|
|
744
|
+
type: "agent_start";
|
|
745
|
+
} | {
|
|
746
|
+
executionId: string;
|
|
747
|
+
iteration: number;
|
|
748
|
+
maxTurns: number;
|
|
749
|
+
seq: number;
|
|
750
|
+
startedAt: string;
|
|
751
|
+
totalCost?: number;
|
|
752
|
+
type: "agent_iteration_start";
|
|
753
|
+
} | ({
|
|
754
|
+
executionId: string;
|
|
755
|
+
iteration: number;
|
|
756
|
+
role: "user" | "assistant" | "system";
|
|
757
|
+
seq: number;
|
|
758
|
+
turnId: string;
|
|
759
|
+
turnIndex: number;
|
|
760
|
+
type: "agent_turn_start";
|
|
761
|
+
}) | ({
|
|
762
|
+
contentType: "text" | "thinking" | "tool_input";
|
|
763
|
+
delta: string;
|
|
764
|
+
executionId: string;
|
|
765
|
+
iteration: number;
|
|
766
|
+
seq: number;
|
|
767
|
+
turnId: string;
|
|
768
|
+
type: "agent_turn_delta";
|
|
769
|
+
}) | ({
|
|
770
|
+
completedAt: string;
|
|
771
|
+
content?: string;
|
|
772
|
+
cost?: number;
|
|
773
|
+
estimatedContextBreakdown?: {
|
|
774
|
+
categories: Record<string, {
|
|
775
|
+
chars: number;
|
|
776
|
+
estimatedTokens: number;
|
|
777
|
+
}>;
|
|
778
|
+
contextWindowSize?: number;
|
|
779
|
+
estimatedTotalTokens: number;
|
|
780
|
+
estimatedUtilizationPercent?: number;
|
|
781
|
+
};
|
|
782
|
+
executionId: string;
|
|
783
|
+
iteration: number;
|
|
784
|
+
role: "user" | "assistant" | "system";
|
|
785
|
+
seq: number;
|
|
786
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
787
|
+
tokens?: {
|
|
788
|
+
input: number;
|
|
789
|
+
output: number;
|
|
790
|
+
};
|
|
791
|
+
turnId: string;
|
|
792
|
+
type: "agent_turn_complete";
|
|
793
|
+
}) | ({
|
|
794
|
+
executionId: string;
|
|
795
|
+
iteration: number;
|
|
796
|
+
origin?: "webmcp" | "sdk";
|
|
797
|
+
pageOrigin?: string;
|
|
798
|
+
parameters?: Record<string, unknown>;
|
|
799
|
+
seq: number;
|
|
800
|
+
toolCallId: string;
|
|
801
|
+
toolName: string;
|
|
802
|
+
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
803
|
+
type: "agent_tool_start";
|
|
804
|
+
}) | {
|
|
805
|
+
delta: string;
|
|
806
|
+
executionId: string;
|
|
807
|
+
iteration: number;
|
|
808
|
+
seq: number;
|
|
809
|
+
toolCallId: string;
|
|
810
|
+
type: "agent_tool_delta";
|
|
811
|
+
} | {
|
|
812
|
+
delta: string;
|
|
813
|
+
executionId: string;
|
|
814
|
+
iteration: number;
|
|
815
|
+
seq: number;
|
|
816
|
+
toolCallId: string;
|
|
817
|
+
type: "agent_tool_input_delta";
|
|
818
|
+
} | {
|
|
819
|
+
executionId: string;
|
|
820
|
+
hiddenParameterNames?: Array<string>;
|
|
821
|
+
iteration: number;
|
|
822
|
+
parameters: Record<string, unknown>;
|
|
823
|
+
seq: number;
|
|
824
|
+
toolCallId: string;
|
|
825
|
+
toolName: string;
|
|
826
|
+
type: "agent_tool_input_complete";
|
|
827
|
+
} | {
|
|
828
|
+
executionId: string;
|
|
829
|
+
executionTime?: number;
|
|
830
|
+
iteration: number;
|
|
831
|
+
result?: unknown;
|
|
832
|
+
seq: number;
|
|
833
|
+
success: boolean;
|
|
834
|
+
toolCallId: string;
|
|
835
|
+
toolName: string;
|
|
836
|
+
type: "agent_tool_complete";
|
|
837
|
+
} | ({
|
|
838
|
+
executionId?: string;
|
|
839
|
+
iteration: number;
|
|
840
|
+
media: Array<({
|
|
841
|
+
annotations?: {
|
|
842
|
+
audience?: Array<"user" | "assistant">;
|
|
843
|
+
};
|
|
844
|
+
data: string;
|
|
845
|
+
mediaType: string;
|
|
846
|
+
type: "media";
|
|
847
|
+
}) | ({
|
|
848
|
+
annotations?: {
|
|
849
|
+
audience?: Array<"user" | "assistant">;
|
|
850
|
+
};
|
|
851
|
+
mediaType?: string;
|
|
852
|
+
type: "image-url";
|
|
853
|
+
url: string;
|
|
854
|
+
}) | ({
|
|
855
|
+
annotations?: {
|
|
856
|
+
audience?: Array<"user" | "assistant">;
|
|
857
|
+
};
|
|
858
|
+
mediaType: string;
|
|
859
|
+
type: "file-url";
|
|
860
|
+
url: string;
|
|
861
|
+
})>;
|
|
862
|
+
seq?: number;
|
|
863
|
+
toolCallId: string;
|
|
864
|
+
toolName: string;
|
|
865
|
+
type: "agent_media";
|
|
866
|
+
}) | {
|
|
867
|
+
approvalId: string;
|
|
868
|
+
description: string;
|
|
869
|
+
executionId: string;
|
|
870
|
+
externalAgent?: {
|
|
871
|
+
contextId?: string;
|
|
872
|
+
taskId?: string;
|
|
873
|
+
};
|
|
874
|
+
iteration?: number;
|
|
875
|
+
parameters?: Record<string, unknown>;
|
|
876
|
+
seq: number;
|
|
877
|
+
startedAt: string;
|
|
878
|
+
timeout: number;
|
|
879
|
+
toolCallId: string;
|
|
880
|
+
toolName: string;
|
|
881
|
+
toolType: string;
|
|
882
|
+
type: "agent_approval_start";
|
|
883
|
+
} | ({
|
|
884
|
+
approvalId: string;
|
|
885
|
+
completedAt: string;
|
|
886
|
+
decision: "approved" | "denied" | "timeout";
|
|
887
|
+
executionId: string;
|
|
888
|
+
resolvedBy: "user" | "system";
|
|
889
|
+
seq: number;
|
|
890
|
+
type: "agent_approval_complete";
|
|
891
|
+
}) | ({
|
|
892
|
+
awaitedAt: string;
|
|
893
|
+
executionId: string;
|
|
894
|
+
origin?: "webmcp" | "sdk";
|
|
895
|
+
pageOrigin?: string;
|
|
896
|
+
parameters?: Record<string, unknown>;
|
|
897
|
+
seq: number;
|
|
898
|
+
toolCallId?: string;
|
|
899
|
+
toolId: string;
|
|
900
|
+
toolName: string;
|
|
901
|
+
type: "agent_await";
|
|
902
|
+
}) | {
|
|
903
|
+
completedAt: string;
|
|
904
|
+
cost?: number;
|
|
905
|
+
duration?: number;
|
|
906
|
+
estimatedContextBreakdown?: {
|
|
907
|
+
categories: Record<string, {
|
|
908
|
+
chars: number;
|
|
909
|
+
estimatedTokens: number;
|
|
910
|
+
}>;
|
|
911
|
+
contextWindowSize?: number;
|
|
912
|
+
estimatedTotalTokens: number;
|
|
913
|
+
estimatedUtilizationPercent?: number;
|
|
914
|
+
};
|
|
915
|
+
executionId: string;
|
|
916
|
+
iteration: number;
|
|
917
|
+
output?: string;
|
|
918
|
+
runningTotalCost?: number;
|
|
919
|
+
seq: number;
|
|
920
|
+
stopConditionMet: boolean;
|
|
921
|
+
tokens?: {
|
|
922
|
+
input: number;
|
|
923
|
+
output: number;
|
|
924
|
+
};
|
|
925
|
+
toolCallsMade: number;
|
|
926
|
+
type: "agent_iteration_complete";
|
|
927
|
+
} | {
|
|
928
|
+
executionId: string;
|
|
929
|
+
iteration: number;
|
|
930
|
+
reflection?: string;
|
|
931
|
+
seq: number;
|
|
932
|
+
type: "agent_reflection";
|
|
933
|
+
} | {
|
|
934
|
+
activatedCapabilities: Array<string>;
|
|
935
|
+
executionId: string;
|
|
936
|
+
iteration: number;
|
|
937
|
+
seq: number;
|
|
938
|
+
skill: string;
|
|
939
|
+
toolCallId: string;
|
|
940
|
+
type: "agent_skill_loaded";
|
|
941
|
+
} | ({
|
|
942
|
+
executionId: string;
|
|
943
|
+
iteration: number;
|
|
944
|
+
outcome: "pending_approval" | "auto_published";
|
|
945
|
+
proposalId?: string;
|
|
946
|
+
seq: number;
|
|
947
|
+
skill: string;
|
|
948
|
+
toolCallId: string;
|
|
949
|
+
type: "agent_skill_proposed";
|
|
950
|
+
}) | ({
|
|
951
|
+
agentId: string;
|
|
952
|
+
completedAt: string;
|
|
953
|
+
duration?: number;
|
|
954
|
+
error?: string;
|
|
955
|
+
executionId: string;
|
|
956
|
+
externalAgent?: {
|
|
957
|
+
contextId?: string;
|
|
958
|
+
taskId?: string;
|
|
959
|
+
};
|
|
960
|
+
finalOutput?: string;
|
|
961
|
+
iterations: number;
|
|
962
|
+
seq: number;
|
|
963
|
+
stopReason: "complete" | "end_turn" | "max_turns" | "max_cost" | "timeout" | "error";
|
|
964
|
+
success: boolean;
|
|
965
|
+
totalCost?: number;
|
|
966
|
+
totalTokens?: {
|
|
967
|
+
input: number;
|
|
968
|
+
output: number;
|
|
969
|
+
};
|
|
970
|
+
type: "agent_complete";
|
|
971
|
+
}) | {
|
|
972
|
+
error: {
|
|
973
|
+
code: string;
|
|
974
|
+
details?: Record<string, unknown>;
|
|
975
|
+
message: string;
|
|
976
|
+
};
|
|
977
|
+
executionId: string;
|
|
978
|
+
iteration?: number;
|
|
979
|
+
recoverable: boolean;
|
|
980
|
+
seq: number;
|
|
981
|
+
type: "agent_error";
|
|
982
|
+
} | {
|
|
983
|
+
executionId: string;
|
|
984
|
+
seq: number;
|
|
985
|
+
timestamp: string;
|
|
986
|
+
type: "agent_ping";
|
|
987
|
+
};
|
|
988
|
+
type RuntypeFlowSSEEvent = {
|
|
989
|
+
executionContext?: Record<string, unknown>;
|
|
990
|
+
executionId?: string;
|
|
991
|
+
flowId: string;
|
|
992
|
+
flowName?: string;
|
|
993
|
+
input?: unknown;
|
|
994
|
+
seq?: number;
|
|
995
|
+
source?: string;
|
|
996
|
+
startedAt: string;
|
|
997
|
+
toolContext?: {
|
|
998
|
+
executionId: string;
|
|
999
|
+
stepId: string;
|
|
1000
|
+
toolId: string;
|
|
1001
|
+
};
|
|
1002
|
+
totalSteps?: number;
|
|
1003
|
+
type: "flow_start";
|
|
1004
|
+
} | {
|
|
1005
|
+
completedAt?: string;
|
|
1006
|
+
completedSteps?: number;
|
|
1007
|
+
duration?: number;
|
|
1008
|
+
executionContext?: Record<string, unknown>;
|
|
1009
|
+
executionId?: string;
|
|
1010
|
+
executionTime?: number;
|
|
1011
|
+
failedSteps?: number;
|
|
1012
|
+
finalOutput?: string;
|
|
1013
|
+
flowId?: string;
|
|
1014
|
+
output?: unknown;
|
|
1015
|
+
seq?: number;
|
|
1016
|
+
source?: string;
|
|
1017
|
+
success?: boolean;
|
|
1018
|
+
successfulSteps?: number;
|
|
1019
|
+
toolContext?: {
|
|
1020
|
+
executionId: string;
|
|
1021
|
+
stepId: string;
|
|
1022
|
+
toolId: string;
|
|
1023
|
+
};
|
|
1024
|
+
totalSteps?: number;
|
|
1025
|
+
totalTokensUsed?: number;
|
|
1026
|
+
type: "flow_complete";
|
|
1027
|
+
} | ({
|
|
1028
|
+
code?: string;
|
|
1029
|
+
error: string | {
|
|
1030
|
+
code: string;
|
|
1031
|
+
message: string;
|
|
1032
|
+
stepId?: string;
|
|
1033
|
+
stepType?: string;
|
|
1034
|
+
};
|
|
1035
|
+
executionId?: string;
|
|
1036
|
+
executionTime?: number;
|
|
1037
|
+
flowId?: string;
|
|
1038
|
+
seq?: number;
|
|
1039
|
+
timestamp?: string;
|
|
1040
|
+
toolContext?: {
|
|
1041
|
+
executionId: string;
|
|
1042
|
+
stepId: string;
|
|
1043
|
+
toolId: string;
|
|
1044
|
+
};
|
|
1045
|
+
type: "flow_error";
|
|
1046
|
+
upgradeUrl?: string;
|
|
1047
|
+
}) | ({
|
|
1048
|
+
awaitedAt: string;
|
|
1049
|
+
executionId?: string;
|
|
1050
|
+
flowId: string;
|
|
1051
|
+
origin?: "webmcp" | "sdk";
|
|
1052
|
+
pageOrigin?: string;
|
|
1053
|
+
parameters?: Record<string, unknown>;
|
|
1054
|
+
seq?: number;
|
|
1055
|
+
toolCallId?: string;
|
|
1056
|
+
toolId?: string;
|
|
1057
|
+
toolName?: string;
|
|
1058
|
+
type: "flow_await";
|
|
1059
|
+
}) | {
|
|
1060
|
+
estimatedTokens?: number;
|
|
1061
|
+
executionId?: string;
|
|
1062
|
+
id?: string;
|
|
1063
|
+
index?: number;
|
|
1064
|
+
name?: string;
|
|
1065
|
+
seq?: number;
|
|
1066
|
+
startedAt: string;
|
|
1067
|
+
stepId?: string;
|
|
1068
|
+
stepName?: string;
|
|
1069
|
+
stepType?: string;
|
|
1070
|
+
toolContext?: {
|
|
1071
|
+
executionId: string;
|
|
1072
|
+
stepId: string;
|
|
1073
|
+
toolId: string;
|
|
1074
|
+
};
|
|
1075
|
+
totalSteps?: number;
|
|
1076
|
+
type: "step_start";
|
|
1077
|
+
} | {
|
|
1078
|
+
delta?: string;
|
|
1079
|
+
executionId?: string;
|
|
1080
|
+
id?: string;
|
|
1081
|
+
messageId?: string;
|
|
1082
|
+
partId?: string;
|
|
1083
|
+
seq?: number;
|
|
1084
|
+
text?: string;
|
|
1085
|
+
toolContext?: {
|
|
1086
|
+
executionId: string;
|
|
1087
|
+
stepId: string;
|
|
1088
|
+
toolId: string;
|
|
1089
|
+
};
|
|
1090
|
+
toolId?: string;
|
|
1091
|
+
type: "step_delta";
|
|
1092
|
+
} | ({
|
|
1093
|
+
completedAt?: string;
|
|
1094
|
+
duration?: number;
|
|
1095
|
+
durationMs?: number;
|
|
1096
|
+
error?: string;
|
|
1097
|
+
executionId?: string;
|
|
1098
|
+
executionTime?: number;
|
|
1099
|
+
id?: string;
|
|
1100
|
+
index?: number;
|
|
1101
|
+
name?: string;
|
|
1102
|
+
output?: unknown;
|
|
1103
|
+
result?: unknown;
|
|
1104
|
+
seq?: number;
|
|
1105
|
+
stepId?: string;
|
|
1106
|
+
stepName?: string;
|
|
1107
|
+
stepType?: string;
|
|
1108
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
1109
|
+
success?: boolean;
|
|
1110
|
+
tokensUsed?: number;
|
|
1111
|
+
toolContext?: {
|
|
1112
|
+
executionId: string;
|
|
1113
|
+
stepId: string;
|
|
1114
|
+
toolId: string;
|
|
1115
|
+
};
|
|
1116
|
+
type: "step_complete";
|
|
1117
|
+
}) | {
|
|
1118
|
+
error: string;
|
|
1119
|
+
executionId?: string;
|
|
1120
|
+
executionTime?: number;
|
|
1121
|
+
id?: string;
|
|
1122
|
+
index?: number;
|
|
1123
|
+
name?: string;
|
|
1124
|
+
seq?: number;
|
|
1125
|
+
stepType?: string;
|
|
1126
|
+
type: "step_error";
|
|
1127
|
+
} | {
|
|
1128
|
+
error?: string;
|
|
1129
|
+
executionId?: string;
|
|
1130
|
+
id: string;
|
|
1131
|
+
index?: number;
|
|
1132
|
+
name?: string;
|
|
1133
|
+
seq?: number;
|
|
1134
|
+
skippedAt: string;
|
|
1135
|
+
stepType: string;
|
|
1136
|
+
totalSteps: number;
|
|
1137
|
+
type: "step_skip";
|
|
1138
|
+
when: string;
|
|
1139
|
+
} | {
|
|
1140
|
+
executionId?: string;
|
|
1141
|
+
seq?: number;
|
|
1142
|
+
type: "step_await";
|
|
1143
|
+
[key: string]: unknown;
|
|
1144
|
+
} | ({
|
|
1145
|
+
agentContext?: {
|
|
1146
|
+
executionId: string;
|
|
1147
|
+
iteration: number;
|
|
1148
|
+
seq: number;
|
|
1149
|
+
};
|
|
1150
|
+
executionId?: string;
|
|
1151
|
+
hiddenParameterNames?: Array<string>;
|
|
1152
|
+
name?: string;
|
|
1153
|
+
parameters?: Record<string, unknown>;
|
|
1154
|
+
providerOptions?: Record<string, unknown>;
|
|
1155
|
+
seq?: number;
|
|
1156
|
+
startedAt?: string;
|
|
1157
|
+
stepId?: string;
|
|
1158
|
+
toolCallId?: string;
|
|
1159
|
+
toolId?: string;
|
|
1160
|
+
toolName?: string;
|
|
1161
|
+
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
1162
|
+
type: "tool_start";
|
|
1163
|
+
[key: string]: unknown;
|
|
1164
|
+
}) | {
|
|
1165
|
+
delta?: string;
|
|
1166
|
+
executionId?: string;
|
|
1167
|
+
seq?: number;
|
|
1168
|
+
toolId?: string;
|
|
1169
|
+
type: "tool_delta";
|
|
1170
|
+
[key: string]: unknown;
|
|
1171
|
+
} | {
|
|
1172
|
+
delta: string;
|
|
1173
|
+
executionId?: string;
|
|
1174
|
+
seq?: number;
|
|
1175
|
+
stepId?: string;
|
|
1176
|
+
toolCallId?: string;
|
|
1177
|
+
toolId?: string;
|
|
1178
|
+
type: "tool_input_delta";
|
|
1179
|
+
} | {
|
|
1180
|
+
executionId?: string;
|
|
1181
|
+
hiddenParameterNames?: Array<string>;
|
|
1182
|
+
parameters: Record<string, unknown>;
|
|
1183
|
+
providerOptions?: Record<string, unknown>;
|
|
1184
|
+
seq?: number;
|
|
1185
|
+
stepId?: string;
|
|
1186
|
+
toolCallId?: string;
|
|
1187
|
+
toolId?: string;
|
|
1188
|
+
toolName?: string;
|
|
1189
|
+
type: "tool_input_complete";
|
|
1190
|
+
} | {
|
|
1191
|
+
agentContext?: {
|
|
1192
|
+
executionId: string;
|
|
1193
|
+
iteration: number;
|
|
1194
|
+
seq: number;
|
|
1195
|
+
};
|
|
1196
|
+
completedAt?: string;
|
|
1197
|
+
error?: string;
|
|
1198
|
+
executionId?: string;
|
|
1199
|
+
executionTime?: number;
|
|
1200
|
+
name?: string;
|
|
1201
|
+
result?: unknown;
|
|
1202
|
+
seq?: number;
|
|
1203
|
+
stepId?: string;
|
|
1204
|
+
success: boolean;
|
|
1205
|
+
toolCallId?: string;
|
|
1206
|
+
toolCost?: number;
|
|
1207
|
+
toolId?: string;
|
|
1208
|
+
toolName?: string;
|
|
1209
|
+
type: "tool_complete";
|
|
1210
|
+
} | {
|
|
1211
|
+
agentContext?: {
|
|
1212
|
+
executionId: string;
|
|
1213
|
+
iteration: number;
|
|
1214
|
+
seq: number;
|
|
1215
|
+
};
|
|
1216
|
+
error: string;
|
|
1217
|
+
executionId?: string;
|
|
1218
|
+
executionTime?: number;
|
|
1219
|
+
failedAt?: string;
|
|
1220
|
+
name: string;
|
|
1221
|
+
seq?: number;
|
|
1222
|
+
toolId: string;
|
|
1223
|
+
type: "tool_error";
|
|
1224
|
+
} | {
|
|
1225
|
+
executionId?: string;
|
|
1226
|
+
id: string;
|
|
1227
|
+
seq?: number;
|
|
1228
|
+
text: string;
|
|
1229
|
+
type: "chunk";
|
|
1230
|
+
} | {
|
|
1231
|
+
executionId?: string;
|
|
1232
|
+
seq?: number;
|
|
1233
|
+
type: "text_start";
|
|
1234
|
+
[key: string]: unknown;
|
|
1235
|
+
} | {
|
|
1236
|
+
executionId?: string;
|
|
1237
|
+
seq?: number;
|
|
1238
|
+
type: "text_end";
|
|
1239
|
+
[key: string]: unknown;
|
|
1240
|
+
} | {
|
|
1241
|
+
executionId?: string;
|
|
1242
|
+
seq?: number;
|
|
1243
|
+
type: "reason_start";
|
|
1244
|
+
[key: string]: unknown;
|
|
1245
|
+
} | {
|
|
1246
|
+
executionId?: string;
|
|
1247
|
+
seq?: number;
|
|
1248
|
+
type: "reason_delta";
|
|
1249
|
+
[key: string]: unknown;
|
|
1250
|
+
} | {
|
|
1251
|
+
executionId?: string;
|
|
1252
|
+
seq?: number;
|
|
1253
|
+
type: "reason_complete";
|
|
1254
|
+
[key: string]: unknown;
|
|
1255
|
+
} | {
|
|
1256
|
+
executionId?: string;
|
|
1257
|
+
seq?: number;
|
|
1258
|
+
type: "source";
|
|
1259
|
+
[key: string]: unknown;
|
|
1260
|
+
} | {
|
|
1261
|
+
executionId?: string;
|
|
1262
|
+
seq?: number;
|
|
1263
|
+
type: "fallback_start";
|
|
1264
|
+
[key: string]: unknown;
|
|
1265
|
+
} | {
|
|
1266
|
+
executionId?: string;
|
|
1267
|
+
seq?: number;
|
|
1268
|
+
type: "fallback_complete";
|
|
1269
|
+
[key: string]: unknown;
|
|
1270
|
+
} | {
|
|
1271
|
+
executionId?: string;
|
|
1272
|
+
seq?: number;
|
|
1273
|
+
type: "fallback_exhausted";
|
|
1274
|
+
[key: string]: unknown;
|
|
1275
|
+
};
|
|
1276
|
+
type RuntypeDispatchSSEEvent = {
|
|
1277
|
+
agentId: string;
|
|
1278
|
+
agentName: string;
|
|
1279
|
+
config?: {
|
|
1280
|
+
enableReflection?: boolean;
|
|
1281
|
+
model?: string;
|
|
1282
|
+
};
|
|
1283
|
+
executionId: string;
|
|
1284
|
+
maxTurns: number;
|
|
1285
|
+
seq: number;
|
|
1286
|
+
startedAt: string;
|
|
1287
|
+
type: "agent_start";
|
|
1288
|
+
} | {
|
|
1289
|
+
executionId: string;
|
|
1290
|
+
iteration: number;
|
|
1291
|
+
maxTurns: number;
|
|
1292
|
+
seq: number;
|
|
1293
|
+
startedAt: string;
|
|
1294
|
+
totalCost?: number;
|
|
1295
|
+
type: "agent_iteration_start";
|
|
1296
|
+
} | ({
|
|
1297
|
+
executionId: string;
|
|
1298
|
+
iteration: number;
|
|
1299
|
+
role: "user" | "assistant" | "system";
|
|
1300
|
+
seq: number;
|
|
1301
|
+
turnId: string;
|
|
1302
|
+
turnIndex: number;
|
|
1303
|
+
type: "agent_turn_start";
|
|
1304
|
+
}) | ({
|
|
1305
|
+
contentType: "text" | "thinking" | "tool_input";
|
|
1306
|
+
delta: string;
|
|
1307
|
+
executionId: string;
|
|
1308
|
+
iteration: number;
|
|
1309
|
+
seq: number;
|
|
1310
|
+
turnId: string;
|
|
1311
|
+
type: "agent_turn_delta";
|
|
1312
|
+
}) | ({
|
|
1313
|
+
completedAt: string;
|
|
1314
|
+
content?: string;
|
|
1315
|
+
cost?: number;
|
|
1316
|
+
estimatedContextBreakdown?: {
|
|
1317
|
+
categories: Record<string, {
|
|
1318
|
+
chars: number;
|
|
1319
|
+
estimatedTokens: number;
|
|
1320
|
+
}>;
|
|
1321
|
+
contextWindowSize?: number;
|
|
1322
|
+
estimatedTotalTokens: number;
|
|
1323
|
+
estimatedUtilizationPercent?: number;
|
|
1324
|
+
};
|
|
1325
|
+
executionId: string;
|
|
1326
|
+
iteration: number;
|
|
1327
|
+
role: "user" | "assistant" | "system";
|
|
1328
|
+
seq: number;
|
|
1329
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
1330
|
+
tokens?: {
|
|
1331
|
+
input: number;
|
|
1332
|
+
output: number;
|
|
1333
|
+
};
|
|
1334
|
+
turnId: string;
|
|
1335
|
+
type: "agent_turn_complete";
|
|
1336
|
+
}) | ({
|
|
1337
|
+
executionId: string;
|
|
1338
|
+
iteration: number;
|
|
1339
|
+
origin?: "webmcp" | "sdk";
|
|
1340
|
+
pageOrigin?: string;
|
|
1341
|
+
parameters?: Record<string, unknown>;
|
|
1342
|
+
seq: number;
|
|
1343
|
+
toolCallId: string;
|
|
1344
|
+
toolName: string;
|
|
1345
|
+
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
1346
|
+
type: "agent_tool_start";
|
|
1347
|
+
}) | {
|
|
1348
|
+
delta: string;
|
|
1349
|
+
executionId: string;
|
|
1350
|
+
iteration: number;
|
|
1351
|
+
seq: number;
|
|
1352
|
+
toolCallId: string;
|
|
1353
|
+
type: "agent_tool_delta";
|
|
1354
|
+
} | {
|
|
1355
|
+
delta: string;
|
|
1356
|
+
executionId: string;
|
|
1357
|
+
iteration: number;
|
|
1358
|
+
seq: number;
|
|
1359
|
+
toolCallId: string;
|
|
1360
|
+
type: "agent_tool_input_delta";
|
|
1361
|
+
} | {
|
|
1362
|
+
executionId: string;
|
|
1363
|
+
hiddenParameterNames?: Array<string>;
|
|
1364
|
+
iteration: number;
|
|
1365
|
+
parameters: Record<string, unknown>;
|
|
1366
|
+
seq: number;
|
|
1367
|
+
toolCallId: string;
|
|
1368
|
+
toolName: string;
|
|
1369
|
+
type: "agent_tool_input_complete";
|
|
1370
|
+
} | {
|
|
1371
|
+
executionId: string;
|
|
1372
|
+
executionTime?: number;
|
|
1373
|
+
iteration: number;
|
|
1374
|
+
result?: unknown;
|
|
1375
|
+
seq: number;
|
|
1376
|
+
success: boolean;
|
|
1377
|
+
toolCallId: string;
|
|
1378
|
+
toolName: string;
|
|
1379
|
+
type: "agent_tool_complete";
|
|
1380
|
+
} | ({
|
|
1381
|
+
executionId?: string;
|
|
1382
|
+
iteration: number;
|
|
1383
|
+
media: Array<({
|
|
1384
|
+
annotations?: {
|
|
1385
|
+
audience?: Array<"user" | "assistant">;
|
|
1386
|
+
};
|
|
1387
|
+
data: string;
|
|
1388
|
+
mediaType: string;
|
|
1389
|
+
type: "media";
|
|
1390
|
+
}) | ({
|
|
1391
|
+
annotations?: {
|
|
1392
|
+
audience?: Array<"user" | "assistant">;
|
|
1393
|
+
};
|
|
1394
|
+
mediaType?: string;
|
|
1395
|
+
type: "image-url";
|
|
1396
|
+
url: string;
|
|
1397
|
+
}) | ({
|
|
1398
|
+
annotations?: {
|
|
1399
|
+
audience?: Array<"user" | "assistant">;
|
|
1400
|
+
};
|
|
1401
|
+
mediaType: string;
|
|
1402
|
+
type: "file-url";
|
|
1403
|
+
url: string;
|
|
1404
|
+
})>;
|
|
1405
|
+
seq?: number;
|
|
1406
|
+
toolCallId: string;
|
|
1407
|
+
toolName: string;
|
|
1408
|
+
type: "agent_media";
|
|
1409
|
+
}) | {
|
|
1410
|
+
approvalId: string;
|
|
1411
|
+
description: string;
|
|
1412
|
+
executionId: string;
|
|
1413
|
+
externalAgent?: {
|
|
1414
|
+
contextId?: string;
|
|
1415
|
+
taskId?: string;
|
|
1416
|
+
};
|
|
1417
|
+
iteration?: number;
|
|
1418
|
+
parameters?: Record<string, unknown>;
|
|
1419
|
+
seq: number;
|
|
1420
|
+
startedAt: string;
|
|
1421
|
+
timeout: number;
|
|
1422
|
+
toolCallId: string;
|
|
1423
|
+
toolName: string;
|
|
1424
|
+
toolType: string;
|
|
1425
|
+
type: "agent_approval_start";
|
|
1426
|
+
} | ({
|
|
1427
|
+
approvalId: string;
|
|
1428
|
+
completedAt: string;
|
|
1429
|
+
decision: "approved" | "denied" | "timeout";
|
|
1430
|
+
executionId: string;
|
|
1431
|
+
resolvedBy: "user" | "system";
|
|
1432
|
+
seq: number;
|
|
1433
|
+
type: "agent_approval_complete";
|
|
1434
|
+
}) | ({
|
|
1435
|
+
awaitedAt: string;
|
|
1436
|
+
executionId: string;
|
|
1437
|
+
origin?: "webmcp" | "sdk";
|
|
1438
|
+
pageOrigin?: string;
|
|
1439
|
+
parameters?: Record<string, unknown>;
|
|
1440
|
+
seq: number;
|
|
1441
|
+
toolCallId?: string;
|
|
1442
|
+
toolId: string;
|
|
1443
|
+
toolName: string;
|
|
1444
|
+
type: "agent_await";
|
|
1445
|
+
}) | {
|
|
1446
|
+
completedAt: string;
|
|
1447
|
+
cost?: number;
|
|
1448
|
+
duration?: number;
|
|
1449
|
+
estimatedContextBreakdown?: {
|
|
1450
|
+
categories: Record<string, {
|
|
1451
|
+
chars: number;
|
|
1452
|
+
estimatedTokens: number;
|
|
1453
|
+
}>;
|
|
1454
|
+
contextWindowSize?: number;
|
|
1455
|
+
estimatedTotalTokens: number;
|
|
1456
|
+
estimatedUtilizationPercent?: number;
|
|
1457
|
+
};
|
|
1458
|
+
executionId: string;
|
|
1459
|
+
iteration: number;
|
|
1460
|
+
output?: string;
|
|
1461
|
+
runningTotalCost?: number;
|
|
1462
|
+
seq: number;
|
|
1463
|
+
stopConditionMet: boolean;
|
|
1464
|
+
tokens?: {
|
|
1465
|
+
input: number;
|
|
1466
|
+
output: number;
|
|
1467
|
+
};
|
|
1468
|
+
toolCallsMade: number;
|
|
1469
|
+
type: "agent_iteration_complete";
|
|
1470
|
+
} | {
|
|
1471
|
+
executionId: string;
|
|
1472
|
+
iteration: number;
|
|
1473
|
+
reflection?: string;
|
|
1474
|
+
seq: number;
|
|
1475
|
+
type: "agent_reflection";
|
|
1476
|
+
} | {
|
|
1477
|
+
activatedCapabilities: Array<string>;
|
|
1478
|
+
executionId: string;
|
|
1479
|
+
iteration: number;
|
|
1480
|
+
seq: number;
|
|
1481
|
+
skill: string;
|
|
1482
|
+
toolCallId: string;
|
|
1483
|
+
type: "agent_skill_loaded";
|
|
1484
|
+
} | ({
|
|
1485
|
+
executionId: string;
|
|
1486
|
+
iteration: number;
|
|
1487
|
+
outcome: "pending_approval" | "auto_published";
|
|
1488
|
+
proposalId?: string;
|
|
1489
|
+
seq: number;
|
|
1490
|
+
skill: string;
|
|
1491
|
+
toolCallId: string;
|
|
1492
|
+
type: "agent_skill_proposed";
|
|
1493
|
+
}) | ({
|
|
1494
|
+
agentId: string;
|
|
1495
|
+
completedAt: string;
|
|
1496
|
+
duration?: number;
|
|
1497
|
+
error?: string;
|
|
1498
|
+
executionId: string;
|
|
1499
|
+
externalAgent?: {
|
|
1500
|
+
contextId?: string;
|
|
1501
|
+
taskId?: string;
|
|
1502
|
+
};
|
|
1503
|
+
finalOutput?: string;
|
|
1504
|
+
iterations: number;
|
|
1505
|
+
seq: number;
|
|
1506
|
+
stopReason: "complete" | "end_turn" | "max_turns" | "max_cost" | "timeout" | "error";
|
|
1507
|
+
success: boolean;
|
|
1508
|
+
totalCost?: number;
|
|
1509
|
+
totalTokens?: {
|
|
1510
|
+
input: number;
|
|
1511
|
+
output: number;
|
|
1512
|
+
};
|
|
1513
|
+
type: "agent_complete";
|
|
1514
|
+
}) | {
|
|
1515
|
+
error: {
|
|
1516
|
+
code: string;
|
|
1517
|
+
details?: Record<string, unknown>;
|
|
1518
|
+
message: string;
|
|
1519
|
+
};
|
|
1520
|
+
executionId: string;
|
|
1521
|
+
iteration?: number;
|
|
1522
|
+
recoverable: boolean;
|
|
1523
|
+
seq: number;
|
|
1524
|
+
type: "agent_error";
|
|
1525
|
+
} | {
|
|
1526
|
+
executionId: string;
|
|
1527
|
+
seq: number;
|
|
1528
|
+
timestamp: string;
|
|
1529
|
+
type: "agent_ping";
|
|
1530
|
+
} | {
|
|
1531
|
+
executionContext?: Record<string, unknown>;
|
|
1532
|
+
executionId?: string;
|
|
1533
|
+
flowId: string;
|
|
1534
|
+
flowName?: string;
|
|
1535
|
+
input?: unknown;
|
|
1536
|
+
seq?: number;
|
|
1537
|
+
source?: string;
|
|
1538
|
+
startedAt: string;
|
|
1539
|
+
toolContext?: {
|
|
1540
|
+
executionId: string;
|
|
1541
|
+
stepId: string;
|
|
1542
|
+
toolId: string;
|
|
1543
|
+
};
|
|
1544
|
+
totalSteps?: number;
|
|
1545
|
+
type: "flow_start";
|
|
1546
|
+
} | {
|
|
1547
|
+
completedAt?: string;
|
|
1548
|
+
completedSteps?: number;
|
|
1549
|
+
duration?: number;
|
|
1550
|
+
executionContext?: Record<string, unknown>;
|
|
1551
|
+
executionId?: string;
|
|
1552
|
+
executionTime?: number;
|
|
1553
|
+
failedSteps?: number;
|
|
1554
|
+
finalOutput?: string;
|
|
1555
|
+
flowId?: string;
|
|
1556
|
+
output?: unknown;
|
|
1557
|
+
seq?: number;
|
|
1558
|
+
source?: string;
|
|
1559
|
+
success?: boolean;
|
|
1560
|
+
successfulSteps?: number;
|
|
1561
|
+
toolContext?: {
|
|
1562
|
+
executionId: string;
|
|
1563
|
+
stepId: string;
|
|
1564
|
+
toolId: string;
|
|
1565
|
+
};
|
|
1566
|
+
totalSteps?: number;
|
|
1567
|
+
totalTokensUsed?: number;
|
|
1568
|
+
type: "flow_complete";
|
|
1569
|
+
} | ({
|
|
1570
|
+
code?: string;
|
|
1571
|
+
error: string | {
|
|
1572
|
+
code: string;
|
|
1573
|
+
message: string;
|
|
1574
|
+
stepId?: string;
|
|
1575
|
+
stepType?: string;
|
|
1576
|
+
};
|
|
1577
|
+
executionId?: string;
|
|
1578
|
+
executionTime?: number;
|
|
1579
|
+
flowId?: string;
|
|
1580
|
+
seq?: number;
|
|
1581
|
+
timestamp?: string;
|
|
1582
|
+
toolContext?: {
|
|
1583
|
+
executionId: string;
|
|
1584
|
+
stepId: string;
|
|
1585
|
+
toolId: string;
|
|
1586
|
+
};
|
|
1587
|
+
type: "flow_error";
|
|
1588
|
+
upgradeUrl?: string;
|
|
1589
|
+
}) | ({
|
|
1590
|
+
awaitedAt: string;
|
|
1591
|
+
executionId?: string;
|
|
1592
|
+
flowId: string;
|
|
1593
|
+
origin?: "webmcp" | "sdk";
|
|
1594
|
+
pageOrigin?: string;
|
|
1595
|
+
parameters?: Record<string, unknown>;
|
|
1596
|
+
seq?: number;
|
|
1597
|
+
toolCallId?: string;
|
|
1598
|
+
toolId?: string;
|
|
1599
|
+
toolName?: string;
|
|
1600
|
+
type: "flow_await";
|
|
1601
|
+
}) | {
|
|
1602
|
+
estimatedTokens?: number;
|
|
1603
|
+
executionId?: string;
|
|
1604
|
+
id?: string;
|
|
1605
|
+
index?: number;
|
|
1606
|
+
name?: string;
|
|
1607
|
+
seq?: number;
|
|
1608
|
+
startedAt: string;
|
|
1609
|
+
stepId?: string;
|
|
1610
|
+
stepName?: string;
|
|
1611
|
+
stepType?: string;
|
|
1612
|
+
toolContext?: {
|
|
1613
|
+
executionId: string;
|
|
1614
|
+
stepId: string;
|
|
1615
|
+
toolId: string;
|
|
1616
|
+
};
|
|
1617
|
+
totalSteps?: number;
|
|
1618
|
+
type: "step_start";
|
|
1619
|
+
} | {
|
|
1620
|
+
delta?: string;
|
|
1621
|
+
executionId?: string;
|
|
1622
|
+
id?: string;
|
|
1623
|
+
messageId?: string;
|
|
1624
|
+
partId?: string;
|
|
1625
|
+
seq?: number;
|
|
1626
|
+
text?: string;
|
|
1627
|
+
toolContext?: {
|
|
1628
|
+
executionId: string;
|
|
1629
|
+
stepId: string;
|
|
1630
|
+
toolId: string;
|
|
1631
|
+
};
|
|
1632
|
+
toolId?: string;
|
|
1633
|
+
type: "step_delta";
|
|
1634
|
+
} | ({
|
|
1635
|
+
completedAt?: string;
|
|
1636
|
+
duration?: number;
|
|
1637
|
+
durationMs?: number;
|
|
1638
|
+
error?: string;
|
|
1639
|
+
executionId?: string;
|
|
1640
|
+
executionTime?: number;
|
|
1641
|
+
id?: string;
|
|
1642
|
+
index?: number;
|
|
1643
|
+
name?: string;
|
|
1644
|
+
output?: unknown;
|
|
1645
|
+
result?: unknown;
|
|
1646
|
+
seq?: number;
|
|
1647
|
+
stepId?: string;
|
|
1648
|
+
stepName?: string;
|
|
1649
|
+
stepType?: string;
|
|
1650
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
1651
|
+
success?: boolean;
|
|
1652
|
+
tokensUsed?: number;
|
|
1653
|
+
toolContext?: {
|
|
1654
|
+
executionId: string;
|
|
1655
|
+
stepId: string;
|
|
1656
|
+
toolId: string;
|
|
1657
|
+
};
|
|
1658
|
+
type: "step_complete";
|
|
1659
|
+
}) | {
|
|
1660
|
+
error: string;
|
|
1661
|
+
executionId?: string;
|
|
1662
|
+
executionTime?: number;
|
|
1663
|
+
id?: string;
|
|
1664
|
+
index?: number;
|
|
1665
|
+
name?: string;
|
|
1666
|
+
seq?: number;
|
|
1667
|
+
stepType?: string;
|
|
1668
|
+
type: "step_error";
|
|
1669
|
+
} | {
|
|
1670
|
+
error?: string;
|
|
1671
|
+
executionId?: string;
|
|
1672
|
+
id: string;
|
|
1673
|
+
index?: number;
|
|
1674
|
+
name?: string;
|
|
1675
|
+
seq?: number;
|
|
1676
|
+
skippedAt: string;
|
|
1677
|
+
stepType: string;
|
|
1678
|
+
totalSteps: number;
|
|
1679
|
+
type: "step_skip";
|
|
1680
|
+
when: string;
|
|
1681
|
+
} | {
|
|
1682
|
+
executionId?: string;
|
|
1683
|
+
seq?: number;
|
|
1684
|
+
type: "step_await";
|
|
1685
|
+
[key: string]: unknown;
|
|
1686
|
+
} | ({
|
|
1687
|
+
agentContext?: {
|
|
1688
|
+
executionId: string;
|
|
1689
|
+
iteration: number;
|
|
1690
|
+
seq: number;
|
|
1691
|
+
};
|
|
1692
|
+
executionId?: string;
|
|
1693
|
+
hiddenParameterNames?: Array<string>;
|
|
1694
|
+
name?: string;
|
|
1695
|
+
parameters?: Record<string, unknown>;
|
|
1696
|
+
providerOptions?: Record<string, unknown>;
|
|
1697
|
+
seq?: number;
|
|
1698
|
+
startedAt?: string;
|
|
1699
|
+
stepId?: string;
|
|
1700
|
+
toolCallId?: string;
|
|
1701
|
+
toolId?: string;
|
|
1702
|
+
toolName?: string;
|
|
1703
|
+
toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
|
|
1704
|
+
type: "tool_start";
|
|
1705
|
+
[key: string]: unknown;
|
|
1706
|
+
}) | {
|
|
1707
|
+
delta?: string;
|
|
1708
|
+
executionId?: string;
|
|
1709
|
+
seq?: number;
|
|
1710
|
+
toolId?: string;
|
|
1711
|
+
type: "tool_delta";
|
|
1712
|
+
[key: string]: unknown;
|
|
1713
|
+
} | {
|
|
1714
|
+
delta: string;
|
|
1715
|
+
executionId?: string;
|
|
1716
|
+
seq?: number;
|
|
1717
|
+
stepId?: string;
|
|
1718
|
+
toolCallId?: string;
|
|
1719
|
+
toolId?: string;
|
|
1720
|
+
type: "tool_input_delta";
|
|
1721
|
+
} | {
|
|
1722
|
+
executionId?: string;
|
|
1723
|
+
hiddenParameterNames?: Array<string>;
|
|
1724
|
+
parameters: Record<string, unknown>;
|
|
1725
|
+
providerOptions?: Record<string, unknown>;
|
|
1726
|
+
seq?: number;
|
|
1727
|
+
stepId?: string;
|
|
1728
|
+
toolCallId?: string;
|
|
1729
|
+
toolId?: string;
|
|
1730
|
+
toolName?: string;
|
|
1731
|
+
type: "tool_input_complete";
|
|
1732
|
+
} | {
|
|
1733
|
+
agentContext?: {
|
|
1734
|
+
executionId: string;
|
|
1735
|
+
iteration: number;
|
|
1736
|
+
seq: number;
|
|
1737
|
+
};
|
|
1738
|
+
completedAt?: string;
|
|
1739
|
+
error?: string;
|
|
1740
|
+
executionId?: string;
|
|
1741
|
+
executionTime?: number;
|
|
1742
|
+
name?: string;
|
|
1743
|
+
result?: unknown;
|
|
1744
|
+
seq?: number;
|
|
1745
|
+
stepId?: string;
|
|
1746
|
+
success: boolean;
|
|
1747
|
+
toolCallId?: string;
|
|
1748
|
+
toolCost?: number;
|
|
1749
|
+
toolId?: string;
|
|
1750
|
+
toolName?: string;
|
|
1751
|
+
type: "tool_complete";
|
|
1752
|
+
} | {
|
|
1753
|
+
agentContext?: {
|
|
1754
|
+
executionId: string;
|
|
1755
|
+
iteration: number;
|
|
1756
|
+
seq: number;
|
|
1757
|
+
};
|
|
1758
|
+
error: string;
|
|
1759
|
+
executionId?: string;
|
|
1760
|
+
executionTime?: number;
|
|
1761
|
+
failedAt?: string;
|
|
1762
|
+
name: string;
|
|
1763
|
+
seq?: number;
|
|
1764
|
+
toolId: string;
|
|
1765
|
+
type: "tool_error";
|
|
1766
|
+
} | {
|
|
1767
|
+
executionId?: string;
|
|
1768
|
+
id: string;
|
|
1769
|
+
seq?: number;
|
|
1770
|
+
text: string;
|
|
1771
|
+
type: "chunk";
|
|
1772
|
+
} | {
|
|
1773
|
+
executionId?: string;
|
|
1774
|
+
seq?: number;
|
|
1775
|
+
type: "text_start";
|
|
1776
|
+
[key: string]: unknown;
|
|
1777
|
+
} | {
|
|
1778
|
+
executionId?: string;
|
|
1779
|
+
seq?: number;
|
|
1780
|
+
type: "text_end";
|
|
1781
|
+
[key: string]: unknown;
|
|
1782
|
+
} | {
|
|
1783
|
+
executionId?: string;
|
|
1784
|
+
seq?: number;
|
|
1785
|
+
type: "reason_start";
|
|
1786
|
+
[key: string]: unknown;
|
|
1787
|
+
} | {
|
|
1788
|
+
executionId?: string;
|
|
1789
|
+
seq?: number;
|
|
1790
|
+
type: "reason_delta";
|
|
1791
|
+
[key: string]: unknown;
|
|
1792
|
+
} | {
|
|
1793
|
+
executionId?: string;
|
|
1794
|
+
seq?: number;
|
|
1795
|
+
type: "reason_complete";
|
|
1796
|
+
[key: string]: unknown;
|
|
1797
|
+
} | {
|
|
1798
|
+
executionId?: string;
|
|
1799
|
+
seq?: number;
|
|
1800
|
+
type: "source";
|
|
1801
|
+
[key: string]: unknown;
|
|
1802
|
+
} | {
|
|
1803
|
+
executionId?: string;
|
|
1804
|
+
seq?: number;
|
|
1805
|
+
type: "fallback_start";
|
|
1806
|
+
[key: string]: unknown;
|
|
1807
|
+
} | {
|
|
1808
|
+
executionId?: string;
|
|
1809
|
+
seq?: number;
|
|
1810
|
+
type: "fallback_complete";
|
|
1811
|
+
[key: string]: unknown;
|
|
1812
|
+
} | {
|
|
1813
|
+
executionId?: string;
|
|
1814
|
+
seq?: number;
|
|
1815
|
+
type: "fallback_exhausted";
|
|
1816
|
+
[key: string]: unknown;
|
|
1817
|
+
} | ({
|
|
1818
|
+
artifactType: "markdown" | "component";
|
|
1819
|
+
component?: string;
|
|
1820
|
+
id: string;
|
|
1821
|
+
title?: string;
|
|
1822
|
+
type: "artifact_start";
|
|
1823
|
+
}) | {
|
|
1824
|
+
delta: string;
|
|
1825
|
+
id: string;
|
|
1826
|
+
type: "artifact_delta";
|
|
1827
|
+
} | {
|
|
1828
|
+
component: string;
|
|
1829
|
+
id: string;
|
|
1830
|
+
props: Record<string, unknown>;
|
|
1831
|
+
type: "artifact_update";
|
|
1832
|
+
} | {
|
|
1833
|
+
id: string;
|
|
1834
|
+
type: "artifact_complete";
|
|
1835
|
+
} | ({
|
|
1836
|
+
artifactType?: "markdown" | "component";
|
|
1837
|
+
component?: string;
|
|
1838
|
+
content?: string;
|
|
1839
|
+
id?: string;
|
|
1840
|
+
props?: Record<string, unknown>;
|
|
1841
|
+
title?: string;
|
|
1842
|
+
type: "artifact";
|
|
1843
|
+
[key: string]: unknown;
|
|
1844
|
+
});
|
|
1845
|
+
type RuntypeStreamEventOf<U, T extends string> = Extract<U, {
|
|
1846
|
+
type: T;
|
|
1847
|
+
}>;
|
|
1848
|
+
type RuntypeAgentTurnCompleteEvent = RuntypeStreamEventOf<RuntypeAgentSSEEvent, "agent_turn_complete">;
|
|
1849
|
+
type RuntypeStepCompleteEvent = RuntypeStreamEventOf<RuntypeFlowSSEEvent, "step_complete">;
|
|
1850
|
+
type RuntypeStopReasonKind = NonNullable<RuntypeAgentTurnCompleteEvent["stopReason"] | RuntypeStepCompleteEvent["stopReason"]>;
|
|
1851
|
+
type RuntypeClientInitRequest = {
|
|
1852
|
+
flowId?: string;
|
|
1853
|
+
sessionId?: string;
|
|
1854
|
+
token: string;
|
|
1855
|
+
};
|
|
1856
|
+
type RuntypeClientInitResponse = {
|
|
1857
|
+
config: {
|
|
1858
|
+
placeholder?: string;
|
|
1859
|
+
theme?: unknown;
|
|
1860
|
+
welcomeMessage?: string | null;
|
|
1861
|
+
};
|
|
1862
|
+
expiresAt: string;
|
|
1863
|
+
flow: {
|
|
1864
|
+
description?: string | null;
|
|
1865
|
+
id: string;
|
|
1866
|
+
name?: string | null;
|
|
1867
|
+
};
|
|
1868
|
+
sessionId: string;
|
|
1869
|
+
};
|
|
1870
|
+
type RuntypeClientChatRequest = {
|
|
1871
|
+
assistantMessageId?: string;
|
|
1872
|
+
clientTools?: Array<{
|
|
1873
|
+
description: string;
|
|
1874
|
+
name: string;
|
|
1875
|
+
origin?: "webmcp" | "sdk";
|
|
1876
|
+
pageOrigin?: string;
|
|
1877
|
+
parametersSchema: {
|
|
1878
|
+
type: "object";
|
|
1879
|
+
[key: string]: unknown;
|
|
1880
|
+
};
|
|
1881
|
+
}>;
|
|
1882
|
+
clientToolsFingerprint?: string;
|
|
1883
|
+
inputs?: Record<string, unknown>;
|
|
1884
|
+
messages: Array<{
|
|
1885
|
+
content: string | (Array<{
|
|
1886
|
+
text: string;
|
|
1887
|
+
type: "text";
|
|
1888
|
+
} | {
|
|
1889
|
+
image: string;
|
|
1890
|
+
mimeType?: string;
|
|
1891
|
+
type: "image";
|
|
1892
|
+
} | {
|
|
1893
|
+
data: string;
|
|
1894
|
+
filename: string;
|
|
1895
|
+
mimeType: string;
|
|
1896
|
+
type: "file";
|
|
1897
|
+
} | {
|
|
1898
|
+
providerOptions?: Record<string, unknown>;
|
|
1899
|
+
text: string;
|
|
1900
|
+
type: "reasoning";
|
|
1901
|
+
}>);
|
|
1902
|
+
id?: string;
|
|
1903
|
+
role: "user" | "assistant" | "system";
|
|
1904
|
+
}>;
|
|
1905
|
+
metadata?: Record<string, unknown>;
|
|
1906
|
+
sessionId: string;
|
|
1907
|
+
submitMode?: "normal" | "interrupt";
|
|
1908
|
+
turnId?: string;
|
|
1909
|
+
};
|
|
1910
|
+
type RuntypeClientChatStreamEvent = RuntypeFlowSSEEvent;
|
|
1911
|
+
type RuntypeClientResumeRequest = {
|
|
1912
|
+
executionId: string;
|
|
1913
|
+
messages?: Array<{
|
|
1914
|
+
content: string | (Array<{
|
|
1915
|
+
text: string;
|
|
1916
|
+
type: "text";
|
|
1917
|
+
} | {
|
|
1918
|
+
image: string;
|
|
1919
|
+
mimeType?: string;
|
|
1920
|
+
type: "image";
|
|
1921
|
+
} | {
|
|
1922
|
+
data: string;
|
|
1923
|
+
filename: string;
|
|
1924
|
+
mimeType: string;
|
|
1925
|
+
type: "file";
|
|
1926
|
+
} | {
|
|
1927
|
+
providerOptions?: Record<string, unknown>;
|
|
1928
|
+
text: string;
|
|
1929
|
+
type: "reasoning";
|
|
1930
|
+
}>);
|
|
1931
|
+
role: "system" | "user" | "assistant";
|
|
1932
|
+
}>;
|
|
1933
|
+
sessionId: string;
|
|
1934
|
+
streamResponse?: boolean;
|
|
1935
|
+
toolOutputs?: Record<string, unknown>;
|
|
1936
|
+
};
|
|
1937
|
+
type RuntypeClientResumeStreamEvent = RuntypeDispatchSSEEvent;
|
|
1938
|
+
type RuntypeClientFeedbackRequest = {
|
|
1939
|
+
comment?: string;
|
|
1940
|
+
messageId?: string;
|
|
1941
|
+
metadata?: Record<string, unknown>;
|
|
1942
|
+
rating?: number;
|
|
1943
|
+
sessionId: string;
|
|
1944
|
+
type: "upvote" | "downvote" | "copy" | "csat" | "nps";
|
|
1945
|
+
};
|
|
1946
|
+
type RuntypeClientFeedbackResponse = {
|
|
1947
|
+
feedbackId: string;
|
|
1948
|
+
message?: string;
|
|
1949
|
+
success: true;
|
|
1950
|
+
};
|
|
1951
|
+
type RuntypeClientFeedbackType = RuntypeClientFeedbackRequest["type"];
|
|
1952
|
+
|
|
733
1953
|
/**
|
|
734
1954
|
* Text content part for multi-modal messages
|
|
735
1955
|
*/
|
|
@@ -2786,11 +4006,15 @@ type ClientChatRequest = {
|
|
|
2786
4006
|
* widget retries once with the full `clientTools[]`.
|
|
2787
4007
|
*/
|
|
2788
4008
|
clientToolsFingerprint?: string;
|
|
4009
|
+
/** Stable client-owned turn ID for stale stream suppression (from Core public OpenAPI). */
|
|
4010
|
+
turnId?: RuntypeClientChatRequest['turnId'];
|
|
4011
|
+
/** Whether this turn should interrupt a prior in-flight response (from Core public OpenAPI). */
|
|
4012
|
+
submitMode?: RuntypeClientChatRequest['submitMode'];
|
|
2789
4013
|
};
|
|
2790
4014
|
/**
|
|
2791
4015
|
* Feedback types supported by the API
|
|
2792
4016
|
*/
|
|
2793
|
-
type ClientFeedbackType = '
|
|
4017
|
+
type ClientFeedbackType = RuntypeClientFeedbackRequest['type'];
|
|
2794
4018
|
/**
|
|
2795
4019
|
* Request payload for /v1/client/feedback endpoint
|
|
2796
4020
|
*/
|
|
@@ -4306,7 +5530,7 @@ type AgentWidgetMessageVariant = "assistant" | "reasoning" | "tool" | "approval"
|
|
|
4306
5530
|
*
|
|
4307
5531
|
* Absent (`undefined`) means "not reported" — distinct from `'unknown'`.
|
|
4308
5532
|
*/
|
|
4309
|
-
type StopReasonKind =
|
|
5533
|
+
type StopReasonKind = RuntypeStopReasonKind;
|
|
4310
5534
|
/**
|
|
4311
5535
|
* Represents a message in the chat conversation.
|
|
4312
5536
|
*
|
|
@@ -4609,6 +5833,9 @@ type AgentWidgetInitOptions = {
|
|
|
4609
5833
|
target: string | HTMLElement;
|
|
4610
5834
|
config?: AgentWidgetConfig;
|
|
4611
5835
|
useShadowDom?: boolean;
|
|
5836
|
+
/** Fired when the widget controller is mounted and its API is callable. */
|
|
5837
|
+
onChatReady?: () => void;
|
|
5838
|
+
/** @deprecated Use `onChatReady`. Retained as an alias; removed in the next major. */
|
|
4612
5839
|
onReady?: () => void;
|
|
4613
5840
|
windowKey?: string;
|
|
4614
5841
|
debugTools?: boolean;
|
|
@@ -7263,4 +8490,4 @@ interface DemoCarouselHandle {
|
|
|
7263
8490
|
}
|
|
7264
8491
|
declare function createDemoCarousel(container: HTMLElement, options: DemoCarouselOptions): DemoCarouselHandle;
|
|
7265
8492
|
|
|
7266
|
-
export { ASK_USER_QUESTION_TOOL_NAME, type AgentConfig, type AgentExecutionState, type AgentLoopConfig, type AgentMessageMetadata, type AgentRequestOptions, type AgentToolsConfig, type AgentWidgetActionContext, type AgentWidgetActionEventPayload, type AgentWidgetActionHandler, type AgentWidgetActionHandlerResult, type AgentWidgetActionParser, type AgentWidgetAgentRequestPayload, type AgentWidgetApproval, type AgentWidgetApprovalConfig, type AgentWidgetArtifactsFeature, type AgentWidgetArtifactsLayoutConfig, type AgentWidgetAskUserQuestionFeature, type AgentWidgetAskUserQuestionStyles, type AgentWidgetAttachmentsConfig, type AgentWidgetAvatarConfig, AgentWidgetClient, type AgentWidgetComposerConfig, type AgentWidgetConfig, type AgentWidgetContextProvider, type AgentWidgetContextProviderContext, type AgentWidgetController, type AgentWidgetControllerEventMap, type AgentWidgetCustomFetch, type AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, type AgentWidgetLayoutConfig, type AgentWidgetLoadingIndicatorConfig, type AgentWidgetMarkdownConfig, type AgentWidgetMarkdownOptions, type AgentWidgetMarkdownRendererOverrides, type AgentWidgetMessage, type AgentWidgetMessageActionsConfig, type AgentWidgetMessageFeedback, type AgentWidgetMessageLayoutConfig, type AgentWidgetParsedAction, type AgentWidgetPlugin, type AgentWidgetRequestPayload, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetTimestampConfig, type AgentWidgetWebMcpConfig, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type BorderScale, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRenderer, type ComponentTokens, type ComposerBuildContext, type ComposerElements, type ContentPart, type CreateComboButtonOptions, type CreateDropdownOptions, type CreateIconButtonOptions, type CreateLabelButtonOptions, type CreateStandardBubbleOptions, type CreateThemeOptions, type CreateToggleGroupOptions, DEFAULT_COMPONENTS, DEFAULT_FLOATING_LAUNCHER_MAX_WIDTH, DEFAULT_FLOATING_LAUNCHER_WIDTH, DEFAULT_PALETTE, DEFAULT_SEMANTIC, DEFAULT_WIDGET_CONFIG, type DeepPartial, type DemoCarouselHandle, type DemoCarouselItem, type DemoCarouselOptions, type DomContextMode, type DomContextOptions, type DropdownMenuHandle, type DropdownMenuItem, type EnrichedPageElement, type EventStreamBadgeColor, type EventStreamConfig, type EventStreamPayloadRenderContext, type EventStreamRowRenderContext, type EventStreamToolbarRenderContext, type EventStreamViewRenderContext, type FormatEnrichedContextOptions, type HeaderBuildContext, type HeaderElements, type HeaderLayoutContext, type HeaderLayoutRenderer, type HeaderRenderContext, type IconButtonTokens, type IconName, type IdleIndicatorRenderContext, type ImageContentPart, type InjectAssistantMessageOptions, type InjectComponentDirectiveOptions, type InjectMessageOptions, type InjectSystemMessageOptions, type InjectUserMessageOptions, type LabelButtonTokens, type LoadingIndicatorRenderContext, type LoadingIndicatorRenderer, type MarkdownProcessorOptions, type MessageActionCallbacks, type MessageContent, type MessageRenderContext, type MessageTransform, type NPSFeedbackOptions, PRESETS, PRESET_FULLSCREEN, PRESET_MINIMAL, PRESET_SHOP, type ParseOptionsConfig, type ParseRule, type PendingAttachment, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactRecord, type PersonaTheme, type PersonaThemePlugin, type RadiusScale, type RuleScoringContext, type SSEEventCallback, type SSEEventRecord, type SanitizeFunction, type SemanticColors, type SemanticSpacing, type SemanticTypography, type ShadowScale, type SlotRenderContext, type SlotRenderer, type SpacingScale, type StreamAnimationContext, type StreamAnimationPlugin, THEME_ZONES, type TextContentPart, type ThemeValidationError, type ThemeValidationResult, type ThemeZone, type ToggleGroupHandle, type ToggleGroupItem, type ToggleGroupTokens, type TokenReference, type TypographyScale, VERSION, type VoiceConfig, type VoiceProvider, type VoiceResult, type VoiceStatus, WEBMCP_TOOL_PREFIX, WebMcpBridge, type WebMcpConfirmHandler, type WebMcpConfirmInfo, type WebMcpToolResult, type WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, collectEnrichedPageContext, componentRegistry, createActionManager, createAgentExperience, createAskUserQuestionBubble, createBestAvailableVoiceProvider, createBubbleWithLayout, createCSATFeedback, createComboButton, createComponentMiddleware, createComponentStreamParser, createDefaultSanitizer, createDemoCarousel, createDirectivePostprocessor, createDropdownMenu, createFlexibleJsonStreamParser, createIconButton, createImagePart, createJsonStreamParser, createLabelButton, createLocalStorageAdapter, createMarkdownProcessor, createMarkdownProcessorFromConfig, createMessageActions, createNPSFeedback, createPlainTextParser, createPlugin, createRegexJsonParser, createStandardBubble, createTextPart, createTheme, createThemeObserver, createToggleGroup, createTypingIndicator, createVoiceProvider, createWidgetHostLayout, createXmlParser, initAgentWidget as default, defaultActionHandlers, defaultJsonActionParser, defaultParseRules, detectColorScheme, directivePostprocessor, ensureAskUserQuestionSheet, escapeHtml, extractComponentDirectiveFromMessage, fileToImagePart, formatEnrichedContext, generateAssistantMessageId, generateCodeSnippet, generateMessageId, generateStableSelector, generateUserMessageId, getActiveTheme, getColorScheme, getDisplayText, getHeaderLayout, getImageParts, getPreset, hasComponentDirective, hasImages, headerLayouts, highContrastPlugin, initAgentWidget, isAskUserQuestionMessage, isComponentDirectiveType, isDockedMountMode, isVoiceSupported, isWebMcpToolName, listRegisteredStreamAnimations, markdownPostprocessor, mergeWithDefaults, normalizeContent, parseAskUserQuestionPayload, pluginRegistry, reducedMotionPlugin, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveDockConfig, resolveSanitizer, resolveTokens, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };
|
|
8493
|
+
export { ASK_USER_QUESTION_TOOL_NAME, type AgentConfig, type AgentExecutionState, type AgentLoopConfig, type AgentMessageMetadata, type AgentRequestOptions, type AgentToolsConfig, type AgentWidgetActionContext, type AgentWidgetActionEventPayload, type AgentWidgetActionHandler, type AgentWidgetActionHandlerResult, type AgentWidgetActionParser, type AgentWidgetAgentRequestPayload, type AgentWidgetApproval, type AgentWidgetApprovalConfig, type AgentWidgetArtifactsFeature, type AgentWidgetArtifactsLayoutConfig, type AgentWidgetAskUserQuestionFeature, type AgentWidgetAskUserQuestionStyles, type AgentWidgetAttachmentsConfig, type AgentWidgetAvatarConfig, AgentWidgetClient, type AgentWidgetComposerConfig, type AgentWidgetConfig, type AgentWidgetContextProvider, type AgentWidgetContextProviderContext, type AgentWidgetController, type AgentWidgetControllerEventMap, type AgentWidgetCustomFetch, type AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, type AgentWidgetLayoutConfig, type AgentWidgetLoadingIndicatorConfig, type AgentWidgetMarkdownConfig, type AgentWidgetMarkdownOptions, type AgentWidgetMarkdownRendererOverrides, type AgentWidgetMessage, type AgentWidgetMessageActionsConfig, type AgentWidgetMessageFeedback, type AgentWidgetMessageLayoutConfig, type AgentWidgetParsedAction, type AgentWidgetPlugin, type AgentWidgetRequestPayload, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetTimestampConfig, type AgentWidgetWebMcpConfig, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type BorderScale, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRenderer, type ComponentTokens, type ComposerBuildContext, type ComposerElements, type ContentPart, type CreateComboButtonOptions, type CreateDropdownOptions, type CreateIconButtonOptions, type CreateLabelButtonOptions, type CreateStandardBubbleOptions, type CreateThemeOptions, type CreateToggleGroupOptions, DEFAULT_COMPONENTS, DEFAULT_FLOATING_LAUNCHER_MAX_WIDTH, DEFAULT_FLOATING_LAUNCHER_WIDTH, DEFAULT_PALETTE, DEFAULT_SEMANTIC, DEFAULT_WIDGET_CONFIG, type DeepPartial, type DemoCarouselHandle, type DemoCarouselItem, type DemoCarouselOptions, type DomContextMode, type DomContextOptions, type DropdownMenuHandle, type DropdownMenuItem, type EnrichedPageElement, type EventStreamBadgeColor, type EventStreamConfig, type EventStreamPayloadRenderContext, type EventStreamRowRenderContext, type EventStreamToolbarRenderContext, type EventStreamViewRenderContext, type FormatEnrichedContextOptions, type HeaderBuildContext, type HeaderElements, type HeaderLayoutContext, type HeaderLayoutRenderer, type HeaderRenderContext, type IconButtonTokens, type IconName, type IdleIndicatorRenderContext, type ImageContentPart, type InjectAssistantMessageOptions, type InjectComponentDirectiveOptions, type InjectMessageOptions, type InjectSystemMessageOptions, type InjectUserMessageOptions, type LabelButtonTokens, type LoadingIndicatorRenderContext, type LoadingIndicatorRenderer, type MarkdownProcessorOptions, type MessageActionCallbacks, type MessageContent, type MessageRenderContext, type MessageTransform, type NPSFeedbackOptions, PRESETS, PRESET_FULLSCREEN, PRESET_MINIMAL, PRESET_SHOP, type ParseOptionsConfig, type ParseRule, type PendingAttachment, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactRecord, type PersonaTheme, type PersonaThemePlugin, type RadiusScale, type RuleScoringContext, type RuntypeAgentSSEEvent, type RuntypeAgentTurnCompleteEvent, type RuntypeClientChatRequest, type RuntypeClientChatStreamEvent, type RuntypeClientFeedbackRequest, type RuntypeClientFeedbackResponse, type RuntypeClientFeedbackType, type RuntypeClientInitRequest, type RuntypeClientInitResponse, type RuntypeClientResumeRequest, type RuntypeClientResumeStreamEvent, type RuntypeDispatchSSEEvent, type RuntypeFlowSSEEvent, type RuntypeStepCompleteEvent, type RuntypeStopReasonKind, type RuntypeStreamEventOf, type SSEEventCallback, type SSEEventRecord, type SanitizeFunction, type SemanticColors, type SemanticSpacing, type SemanticTypography, type ShadowScale, type SlotRenderContext, type SlotRenderer, type SpacingScale, type StreamAnimationContext, type StreamAnimationPlugin, THEME_ZONES, type TextContentPart, type ThemeValidationError, type ThemeValidationResult, type ThemeZone, type ToggleGroupHandle, type ToggleGroupItem, type ToggleGroupTokens, type TokenReference, type TypographyScale, VERSION, type VoiceConfig, type VoiceProvider, type VoiceResult, type VoiceStatus, WEBMCP_TOOL_PREFIX, WebMcpBridge, type WebMcpConfirmHandler, type WebMcpConfirmInfo, type WebMcpToolResult, type WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, collectEnrichedPageContext, componentRegistry, createActionManager, createAgentExperience, createAskUserQuestionBubble, createBestAvailableVoiceProvider, createBubbleWithLayout, createCSATFeedback, createComboButton, createComponentMiddleware, createComponentStreamParser, createDefaultSanitizer, createDemoCarousel, createDirectivePostprocessor, createDropdownMenu, createFlexibleJsonStreamParser, createIconButton, createImagePart, createJsonStreamParser, createLabelButton, createLocalStorageAdapter, createMarkdownProcessor, createMarkdownProcessorFromConfig, createMessageActions, createNPSFeedback, createPlainTextParser, createPlugin, createRegexJsonParser, createStandardBubble, createTextPart, createTheme, createThemeObserver, createToggleGroup, createTypingIndicator, createVoiceProvider, createWidgetHostLayout, createXmlParser, initAgentWidget as default, defaultActionHandlers, defaultJsonActionParser, defaultParseRules, detectColorScheme, directivePostprocessor, ensureAskUserQuestionSheet, escapeHtml, extractComponentDirectiveFromMessage, fileToImagePart, formatEnrichedContext, generateAssistantMessageId, generateCodeSnippet, generateMessageId, generateStableSelector, generateUserMessageId, getActiveTheme, getColorScheme, getDisplayText, getHeaderLayout, getImageParts, getPreset, hasComponentDirective, hasImages, headerLayouts, highContrastPlugin, initAgentWidget, isAskUserQuestionMessage, isComponentDirectiveType, isDockedMountMode, isVoiceSupported, isWebMcpToolName, listRegisteredStreamAnimations, markdownPostprocessor, mergeWithDefaults, normalizeContent, parseAskUserQuestionPayload, pluginRegistry, reducedMotionPlugin, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveDockConfig, resolveSanitizer, resolveTokens, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };
|