fix type errors
This commit is contained in:
parent
100dce5461
commit
517f439c66
1 changed files with 10 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import {
|
|||
editInteractionEventSchema_0_2_0,
|
||||
editInteractionEventSchema_0_2_0_noCode,
|
||||
} from "./editInteraction/v0.2.0.js";
|
||||
import { editOutcomeEventAllSchema } from "./editOutcome/index.js";
|
||||
import {
|
||||
editOutcomeEventSchema_0_2_0,
|
||||
editOutcomeEventSchema_0_2_0_noCode,
|
||||
|
|
@ -51,6 +52,11 @@ import {
|
|||
tokensGeneratedEventSchema_0_2_0,
|
||||
tokensGeneratedEventSchema_0_2_0_noCode,
|
||||
} from "./tokensGenerated/v0.2.0.js";
|
||||
import { toolUsageEventAllSchema } from "./toolUsage/index.js";
|
||||
import {
|
||||
toolUsageEventSchema_0_2_0,
|
||||
toolUsageEventSchema_0_2_0_noCode,
|
||||
} from "./toolUsage/v0.2.0.js";
|
||||
|
||||
const semverRegex =
|
||||
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/;
|
||||
|
|
@ -81,7 +87,9 @@ const devEventAllVersionDataSchemas = z.object({
|
|||
tokensGenerated: tokensGeneratedEventAllSchema,
|
||||
chatInteraction: chatInteractionEventAllSchema,
|
||||
editInteraction: editInteractionEventAllSchema,
|
||||
editOutcome: editOutcomeEventAllSchema,
|
||||
nextEdit: nextEditEventAllSchema,
|
||||
toolUsage: toolUsageEventAllSchema,
|
||||
});
|
||||
|
||||
// Version and level specific schemas are organized here
|
||||
|
|
@ -109,6 +117,7 @@ export const devDataVersionedSchemas = {
|
|||
editInteraction: editInteractionEventSchema_0_2_0,
|
||||
editOutcome: editOutcomeEventSchema_0_2_0,
|
||||
nextEdit: nextEditEventSchema_0_2_0,
|
||||
toolUsage: toolUsageEventSchema_0_2_0,
|
||||
},
|
||||
noCode: {
|
||||
autocomplete: autocompleteEventSchema_0_2_0_noCode,
|
||||
|
|
@ -118,6 +127,7 @@ export const devDataVersionedSchemas = {
|
|||
editInteraction: editInteractionEventSchema_0_2_0_noCode,
|
||||
editOutcome: editOutcomeEventSchema_0_2_0_noCode,
|
||||
nextEdit: nextEditEventSchema_0_2_0_noCode,
|
||||
toolUsage: toolUsageEventSchema_0_2_0_noCode,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue