@multiplayer-app/ai-agent-react 0.1.0-beta.3 → 0.1.0-beta.5
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.
|
@@ -820,7 +820,7 @@ var Hh;
|
|
|
820
820
|
(function(e) {
|
|
821
821
|
e.API_TOOL = "api_tool", e.WEB_SEARCH = "web_search", e.LOCAL_FUNCTION = "local_function";
|
|
822
822
|
})(Hh || (Hh = {}));
|
|
823
|
-
|
|
823
|
+
var Qo = {
|
|
824
824
|
ChatNew: "chat:new",
|
|
825
825
|
MessageNew: "message:new",
|
|
826
826
|
ChatUpdate: "chat:update"
|
|
@@ -900,16 +900,21 @@ const Qo = {
|
|
|
900
900
|
domPath: V.string().min(1).max(2e3).optional()
|
|
901
901
|
}).strict(), E7 = mo.extend({
|
|
902
902
|
// any non-built-in kind
|
|
903
|
-
kind: V.string().min(1).max(100).refine((e)
|
|
903
|
+
kind: V.string().min(1).max(100).refine(function(e) {
|
|
904
|
+
return !g7.includes(e);
|
|
905
|
+
}, "kind must not collide with built-in kinds"),
|
|
904
906
|
title: V.string().min(1).max(200).optional(),
|
|
905
907
|
summary: V.string().min(1).max(4e3).optional(),
|
|
906
908
|
data: V.record(V.string().min(1).max(200), V.unknown()).optional()
|
|
907
|
-
}).strict().superRefine((e, t)
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
}).strict().superRefine(function(e, t) {
|
|
910
|
+
if (e.data) {
|
|
911
|
+
var n = JSON.stringify(e.data);
|
|
912
|
+
n.length > 12e3 && t.addIssue({
|
|
913
|
+
code: "custom",
|
|
914
|
+
message: "data is too large (max ~12k JSON chars)",
|
|
915
|
+
path: ["data"]
|
|
916
|
+
});
|
|
917
|
+
}
|
|
913
918
|
}), M7 = V.union([
|
|
914
919
|
_7,
|
|
915
920
|
w7,
|