@character-foundry/character-foundry 0.4.2 → 0.4.3-dev.1766103111
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/charx.cjs +87 -54
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.d.cts +40 -31
- package/dist/charx.d.ts +40 -31
- package/dist/charx.js +87 -54
- package/dist/charx.js.map +1 -1
- package/dist/exporter.cjs +106 -56
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.d.cts +37 -28
- package/dist/exporter.d.ts +37 -28
- package/dist/exporter.js +106 -56
- package/dist/exporter.js.map +1 -1
- package/dist/federation.cjs +104 -36
- package/dist/federation.cjs.map +1 -1
- package/dist/federation.d.cts +72 -28
- package/dist/federation.d.ts +72 -28
- package/dist/federation.js +104 -36
- package/dist/federation.js.map +1 -1
- package/dist/index.cjs +106 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -50
- package/dist/index.d.ts +71 -50
- package/dist/index.js +106 -56
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +173 -33
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +65 -37
- package/dist/loader.d.ts +65 -37
- package/dist/loader.js +173 -33
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.d.cts +57 -40
- package/dist/lorebook.d.ts +57 -40
- package/dist/normalizer.cjs +74 -20
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.d.cts +97 -67
- package/dist/normalizer.d.ts +97 -67
- package/dist/normalizer.js +74 -20
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +74 -20
- package/dist/png.cjs.map +1 -1
- package/dist/png.d.cts +57 -41
- package/dist/png.d.ts +57 -41
- package/dist/png.js +74 -20
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs +82 -25
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +181 -115
- package/dist/schemas.d.ts +181 -115
- package/dist/schemas.js +82 -25
- package/dist/schemas.js.map +1 -1
- package/dist/voxta.cjs +93 -22
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.d.cts +51 -37
- package/dist/voxta.d.ts +51 -37
- package/dist/voxta.js +93 -22
- package/dist/voxta.js.map +1 -1
- package/package.json +5 -5
package/dist/schemas.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export declare const CCv3LorebookEntrySchema: z.ZodObject<{
|
|
|
24
24
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
25
25
|
z.ZodEnum<[
|
|
26
26
|
"before_char",
|
|
27
|
-
"after_char"
|
|
27
|
+
"after_char",
|
|
28
|
+
"in_chat"
|
|
28
29
|
]>,
|
|
29
30
|
z.ZodNumber,
|
|
30
31
|
z.ZodLiteral<"">
|
|
@@ -67,7 +68,8 @@ export declare const CCv3LorebookEntrySchema: z.ZodObject<{
|
|
|
67
68
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
68
69
|
z.ZodEnum<[
|
|
69
70
|
"before_char",
|
|
70
|
-
"after_char"
|
|
71
|
+
"after_char",
|
|
72
|
+
"in_chat"
|
|
71
73
|
]>,
|
|
72
74
|
z.ZodNumber,
|
|
73
75
|
z.ZodLiteral<"">
|
|
@@ -110,7 +112,8 @@ export declare const CCv3LorebookEntrySchema: z.ZodObject<{
|
|
|
110
112
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
111
113
|
z.ZodEnum<[
|
|
112
114
|
"before_char",
|
|
113
|
-
"after_char"
|
|
115
|
+
"after_char",
|
|
116
|
+
"in_chat"
|
|
114
117
|
]>,
|
|
115
118
|
z.ZodNumber,
|
|
116
119
|
z.ZodLiteral<"">
|
|
@@ -139,13 +142,14 @@ export declare const CCv3LorebookEntrySchema: z.ZodObject<{
|
|
|
139
142
|
]>>;
|
|
140
143
|
}, z.ZodTypeAny, "passthrough">>;
|
|
141
144
|
/**
|
|
142
|
-
* Character book (lorebook) schema for v3 cards
|
|
145
|
+
* Character book (lorebook) schema for v3 cards.
|
|
146
|
+
* Uses preprocessing for numeric fields that often come as strings in wild data.
|
|
143
147
|
*/
|
|
144
148
|
export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
145
149
|
name: z.ZodOptional<z.ZodString>;
|
|
146
150
|
description: z.ZodOptional<z.ZodString>;
|
|
147
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
148
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
152
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
149
153
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
150
154
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
155
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -164,7 +168,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
164
168
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
165
169
|
z.ZodEnum<[
|
|
166
170
|
"before_char",
|
|
167
|
-
"after_char"
|
|
171
|
+
"after_char",
|
|
172
|
+
"in_chat"
|
|
168
173
|
]>,
|
|
169
174
|
z.ZodNumber,
|
|
170
175
|
z.ZodLiteral<"">
|
|
@@ -207,7 +212,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
207
212
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
208
213
|
z.ZodEnum<[
|
|
209
214
|
"before_char",
|
|
210
|
-
"after_char"
|
|
215
|
+
"after_char",
|
|
216
|
+
"in_chat"
|
|
211
217
|
]>,
|
|
212
218
|
z.ZodNumber,
|
|
213
219
|
z.ZodLiteral<"">
|
|
@@ -250,7 +256,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
250
256
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
251
257
|
z.ZodEnum<[
|
|
252
258
|
"before_char",
|
|
253
|
-
"after_char"
|
|
259
|
+
"after_char",
|
|
260
|
+
"in_chat"
|
|
254
261
|
]>,
|
|
255
262
|
z.ZodNumber,
|
|
256
263
|
z.ZodLiteral<"">
|
|
@@ -295,7 +302,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
295
302
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
296
303
|
z.ZodEnum<[
|
|
297
304
|
"before_char",
|
|
298
|
-
"after_char"
|
|
305
|
+
"after_char",
|
|
306
|
+
"in_chat"
|
|
299
307
|
]>,
|
|
300
308
|
z.ZodNumber,
|
|
301
309
|
z.ZodLiteral<"">
|
|
@@ -346,7 +354,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
346
354
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
347
355
|
z.ZodEnum<[
|
|
348
356
|
"before_char",
|
|
349
|
-
"after_char"
|
|
357
|
+
"after_char",
|
|
358
|
+
"in_chat"
|
|
350
359
|
]>,
|
|
351
360
|
z.ZodNumber,
|
|
352
361
|
z.ZodLiteral<"">
|
|
@@ -376,8 +385,8 @@ export declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
376
385
|
}, z.ZodTypeAny, "passthrough">[];
|
|
377
386
|
name?: string | undefined;
|
|
378
387
|
description?: string | undefined;
|
|
379
|
-
scan_depth?:
|
|
380
|
-
token_budget?:
|
|
388
|
+
scan_depth?: unknown;
|
|
389
|
+
token_budget?: unknown;
|
|
381
390
|
recursive_scanning?: boolean | undefined;
|
|
382
391
|
extensions?: Record<string, unknown> | undefined;
|
|
383
392
|
}>;
|
|
@@ -406,8 +415,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
406
415
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
407
416
|
name: z.ZodOptional<z.ZodString>;
|
|
408
417
|
description: z.ZodOptional<z.ZodString>;
|
|
409
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
410
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
418
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
419
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
411
420
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
412
421
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
413
422
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -426,7 +435,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
426
435
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
427
436
|
z.ZodEnum<[
|
|
428
437
|
"before_char",
|
|
429
|
-
"after_char"
|
|
438
|
+
"after_char",
|
|
439
|
+
"in_chat"
|
|
430
440
|
]>,
|
|
431
441
|
z.ZodNumber,
|
|
432
442
|
z.ZodLiteral<"">
|
|
@@ -469,7 +479,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
469
479
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
470
480
|
z.ZodEnum<[
|
|
471
481
|
"before_char",
|
|
472
|
-
"after_char"
|
|
482
|
+
"after_char",
|
|
483
|
+
"in_chat"
|
|
473
484
|
]>,
|
|
474
485
|
z.ZodNumber,
|
|
475
486
|
z.ZodLiteral<"">
|
|
@@ -512,7 +523,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
512
523
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
513
524
|
z.ZodEnum<[
|
|
514
525
|
"before_char",
|
|
515
|
-
"after_char"
|
|
526
|
+
"after_char",
|
|
527
|
+
"in_chat"
|
|
516
528
|
]>,
|
|
517
529
|
z.ZodNumber,
|
|
518
530
|
z.ZodLiteral<"">
|
|
@@ -557,7 +569,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
557
569
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
558
570
|
z.ZodEnum<[
|
|
559
571
|
"before_char",
|
|
560
|
-
"after_char"
|
|
572
|
+
"after_char",
|
|
573
|
+
"in_chat"
|
|
561
574
|
]>,
|
|
562
575
|
z.ZodNumber,
|
|
563
576
|
z.ZodLiteral<"">
|
|
@@ -608,7 +621,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
608
621
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
609
622
|
z.ZodEnum<[
|
|
610
623
|
"before_char",
|
|
611
|
-
"after_char"
|
|
624
|
+
"after_char",
|
|
625
|
+
"in_chat"
|
|
612
626
|
]>,
|
|
613
627
|
z.ZodNumber,
|
|
614
628
|
z.ZodLiteral<"">
|
|
@@ -638,14 +652,14 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
638
652
|
}, z.ZodTypeAny, "passthrough">[];
|
|
639
653
|
name?: string | undefined;
|
|
640
654
|
description?: string | undefined;
|
|
641
|
-
scan_depth?:
|
|
642
|
-
token_budget?:
|
|
655
|
+
scan_depth?: unknown;
|
|
656
|
+
token_budget?: unknown;
|
|
643
657
|
recursive_scanning?: boolean | undefined;
|
|
644
658
|
extensions?: Record<string, unknown> | undefined;
|
|
645
659
|
}>>>;
|
|
646
660
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
647
661
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
-
type: z.ZodEnum<[
|
|
662
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
649
663
|
"icon",
|
|
650
664
|
"background",
|
|
651
665
|
"emotion",
|
|
@@ -654,7 +668,7 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
654
668
|
"video",
|
|
655
669
|
"custom",
|
|
656
670
|
"x-risu-asset"
|
|
657
|
-
]>;
|
|
671
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
658
672
|
uri: z.ZodString;
|
|
659
673
|
name: z.ZodString;
|
|
660
674
|
ext: z.ZodString;
|
|
@@ -665,15 +679,15 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
665
679
|
ext: string;
|
|
666
680
|
}, {
|
|
667
681
|
name: string;
|
|
668
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
669
682
|
uri: string;
|
|
670
683
|
ext: string;
|
|
684
|
+
type?: unknown;
|
|
671
685
|
}>, "many">>;
|
|
672
686
|
nickname: z.ZodOptional<z.ZodString>;
|
|
673
687
|
creator_notes_multilingual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
674
688
|
source: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
675
|
-
creation_date: z.ZodOptional<z.ZodNumber>;
|
|
676
|
-
modification_date: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
creation_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
690
|
+
modification_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
677
691
|
}, "strip", z.ZodTypeAny, {
|
|
678
692
|
name: string;
|
|
679
693
|
description: string;
|
|
@@ -707,7 +721,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
707
721
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
708
722
|
z.ZodEnum<[
|
|
709
723
|
"before_char",
|
|
710
|
-
"after_char"
|
|
724
|
+
"after_char",
|
|
725
|
+
"in_chat"
|
|
711
726
|
]>,
|
|
712
727
|
z.ZodNumber,
|
|
713
728
|
z.ZodLiteral<"">
|
|
@@ -782,7 +797,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
782
797
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
783
798
|
z.ZodEnum<[
|
|
784
799
|
"before_char",
|
|
785
|
-
"after_char"
|
|
800
|
+
"after_char",
|
|
801
|
+
"in_chat"
|
|
786
802
|
]>,
|
|
787
803
|
z.ZodNumber,
|
|
788
804
|
z.ZodLiteral<"">
|
|
@@ -812,8 +828,8 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
812
828
|
}, z.ZodTypeAny, "passthrough">[];
|
|
813
829
|
name?: string | undefined;
|
|
814
830
|
description?: string | undefined;
|
|
815
|
-
scan_depth?:
|
|
816
|
-
token_budget?:
|
|
831
|
+
scan_depth?: unknown;
|
|
832
|
+
token_budget?: unknown;
|
|
817
833
|
recursive_scanning?: boolean | undefined;
|
|
818
834
|
extensions?: Record<string, unknown> | undefined;
|
|
819
835
|
} | null | undefined;
|
|
@@ -823,15 +839,15 @@ export declare const CCv3DataInnerSchema: z.ZodObject<{
|
|
|
823
839
|
group_only_greetings?: string[] | undefined;
|
|
824
840
|
assets?: {
|
|
825
841
|
name: string;
|
|
826
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
827
842
|
uri: string;
|
|
828
843
|
ext: string;
|
|
844
|
+
type?: unknown;
|
|
829
845
|
}[] | undefined;
|
|
830
846
|
nickname?: string | undefined;
|
|
831
847
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
832
848
|
source?: string[] | undefined;
|
|
833
|
-
creation_date?:
|
|
834
|
-
modification_date?:
|
|
849
|
+
creation_date?: unknown;
|
|
850
|
+
modification_date?: unknown;
|
|
835
851
|
}>;
|
|
836
852
|
/**
|
|
837
853
|
* Character Card v3 full structure schema
|
|
@@ -857,8 +873,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
857
873
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
858
874
|
name: z.ZodOptional<z.ZodString>;
|
|
859
875
|
description: z.ZodOptional<z.ZodString>;
|
|
860
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
861
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
876
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
877
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
862
878
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
863
879
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
864
880
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -877,7 +893,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
877
893
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
878
894
|
z.ZodEnum<[
|
|
879
895
|
"before_char",
|
|
880
|
-
"after_char"
|
|
896
|
+
"after_char",
|
|
897
|
+
"in_chat"
|
|
881
898
|
]>,
|
|
882
899
|
z.ZodNumber,
|
|
883
900
|
z.ZodLiteral<"">
|
|
@@ -920,7 +937,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
920
937
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
921
938
|
z.ZodEnum<[
|
|
922
939
|
"before_char",
|
|
923
|
-
"after_char"
|
|
940
|
+
"after_char",
|
|
941
|
+
"in_chat"
|
|
924
942
|
]>,
|
|
925
943
|
z.ZodNumber,
|
|
926
944
|
z.ZodLiteral<"">
|
|
@@ -963,7 +981,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
963
981
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
964
982
|
z.ZodEnum<[
|
|
965
983
|
"before_char",
|
|
966
|
-
"after_char"
|
|
984
|
+
"after_char",
|
|
985
|
+
"in_chat"
|
|
967
986
|
]>,
|
|
968
987
|
z.ZodNumber,
|
|
969
988
|
z.ZodLiteral<"">
|
|
@@ -1008,7 +1027,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1008
1027
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1009
1028
|
z.ZodEnum<[
|
|
1010
1029
|
"before_char",
|
|
1011
|
-
"after_char"
|
|
1030
|
+
"after_char",
|
|
1031
|
+
"in_chat"
|
|
1012
1032
|
]>,
|
|
1013
1033
|
z.ZodNumber,
|
|
1014
1034
|
z.ZodLiteral<"">
|
|
@@ -1059,7 +1079,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1059
1079
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1060
1080
|
z.ZodEnum<[
|
|
1061
1081
|
"before_char",
|
|
1062
|
-
"after_char"
|
|
1082
|
+
"after_char",
|
|
1083
|
+
"in_chat"
|
|
1063
1084
|
]>,
|
|
1064
1085
|
z.ZodNumber,
|
|
1065
1086
|
z.ZodLiteral<"">
|
|
@@ -1089,14 +1110,14 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1089
1110
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1090
1111
|
name?: string | undefined;
|
|
1091
1112
|
description?: string | undefined;
|
|
1092
|
-
scan_depth?:
|
|
1093
|
-
token_budget?:
|
|
1113
|
+
scan_depth?: unknown;
|
|
1114
|
+
token_budget?: unknown;
|
|
1094
1115
|
recursive_scanning?: boolean | undefined;
|
|
1095
1116
|
extensions?: Record<string, unknown> | undefined;
|
|
1096
1117
|
}>>>;
|
|
1097
1118
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1098
1119
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1099
|
-
type: z.ZodEnum<[
|
|
1120
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
1100
1121
|
"icon",
|
|
1101
1122
|
"background",
|
|
1102
1123
|
"emotion",
|
|
@@ -1105,7 +1126,7 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1105
1126
|
"video",
|
|
1106
1127
|
"custom",
|
|
1107
1128
|
"x-risu-asset"
|
|
1108
|
-
]>;
|
|
1129
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
1109
1130
|
uri: z.ZodString;
|
|
1110
1131
|
name: z.ZodString;
|
|
1111
1132
|
ext: z.ZodString;
|
|
@@ -1116,15 +1137,15 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1116
1137
|
ext: string;
|
|
1117
1138
|
}, {
|
|
1118
1139
|
name: string;
|
|
1119
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1120
1140
|
uri: string;
|
|
1121
1141
|
ext: string;
|
|
1142
|
+
type?: unknown;
|
|
1122
1143
|
}>, "many">>;
|
|
1123
1144
|
nickname: z.ZodOptional<z.ZodString>;
|
|
1124
1145
|
creator_notes_multilingual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1125
1146
|
source: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1126
|
-
creation_date: z.ZodOptional<z.ZodNumber>;
|
|
1127
|
-
modification_date: z.ZodOptional<z.ZodNumber>;
|
|
1147
|
+
creation_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1148
|
+
modification_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1128
1149
|
}, "strip", z.ZodTypeAny, {
|
|
1129
1150
|
name: string;
|
|
1130
1151
|
description: string;
|
|
@@ -1158,7 +1179,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1158
1179
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1159
1180
|
z.ZodEnum<[
|
|
1160
1181
|
"before_char",
|
|
1161
|
-
"after_char"
|
|
1182
|
+
"after_char",
|
|
1183
|
+
"in_chat"
|
|
1162
1184
|
]>,
|
|
1163
1185
|
z.ZodNumber,
|
|
1164
1186
|
z.ZodLiteral<"">
|
|
@@ -1233,7 +1255,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1233
1255
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1234
1256
|
z.ZodEnum<[
|
|
1235
1257
|
"before_char",
|
|
1236
|
-
"after_char"
|
|
1258
|
+
"after_char",
|
|
1259
|
+
"in_chat"
|
|
1237
1260
|
]>,
|
|
1238
1261
|
z.ZodNumber,
|
|
1239
1262
|
z.ZodLiteral<"">
|
|
@@ -1263,8 +1286,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1263
1286
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1264
1287
|
name?: string | undefined;
|
|
1265
1288
|
description?: string | undefined;
|
|
1266
|
-
scan_depth?:
|
|
1267
|
-
token_budget?:
|
|
1289
|
+
scan_depth?: unknown;
|
|
1290
|
+
token_budget?: unknown;
|
|
1268
1291
|
recursive_scanning?: boolean | undefined;
|
|
1269
1292
|
extensions?: Record<string, unknown> | undefined;
|
|
1270
1293
|
} | null | undefined;
|
|
@@ -1274,15 +1297,15 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1274
1297
|
group_only_greetings?: string[] | undefined;
|
|
1275
1298
|
assets?: {
|
|
1276
1299
|
name: string;
|
|
1277
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1278
1300
|
uri: string;
|
|
1279
1301
|
ext: string;
|
|
1302
|
+
type?: unknown;
|
|
1280
1303
|
}[] | undefined;
|
|
1281
1304
|
nickname?: string | undefined;
|
|
1282
1305
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
1283
1306
|
source?: string[] | undefined;
|
|
1284
|
-
creation_date?:
|
|
1285
|
-
modification_date?:
|
|
1307
|
+
creation_date?: unknown;
|
|
1308
|
+
modification_date?: unknown;
|
|
1286
1309
|
}>;
|
|
1287
1310
|
}, "strip", z.ZodTypeAny, {
|
|
1288
1311
|
data: {
|
|
@@ -1318,7 +1341,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1318
1341
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1319
1342
|
z.ZodEnum<[
|
|
1320
1343
|
"before_char",
|
|
1321
|
-
"after_char"
|
|
1344
|
+
"after_char",
|
|
1345
|
+
"in_chat"
|
|
1322
1346
|
]>,
|
|
1323
1347
|
z.ZodNumber,
|
|
1324
1348
|
z.ZodLiteral<"">
|
|
@@ -1397,7 +1421,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1397
1421
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1398
1422
|
z.ZodEnum<[
|
|
1399
1423
|
"before_char",
|
|
1400
|
-
"after_char"
|
|
1424
|
+
"after_char",
|
|
1425
|
+
"in_chat"
|
|
1401
1426
|
]>,
|
|
1402
1427
|
z.ZodNumber,
|
|
1403
1428
|
z.ZodLiteral<"">
|
|
@@ -1427,8 +1452,8 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1427
1452
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1428
1453
|
name?: string | undefined;
|
|
1429
1454
|
description?: string | undefined;
|
|
1430
|
-
scan_depth?:
|
|
1431
|
-
token_budget?:
|
|
1455
|
+
scan_depth?: unknown;
|
|
1456
|
+
token_budget?: unknown;
|
|
1432
1457
|
recursive_scanning?: boolean | undefined;
|
|
1433
1458
|
extensions?: Record<string, unknown> | undefined;
|
|
1434
1459
|
} | null | undefined;
|
|
@@ -1438,15 +1463,15 @@ export declare const CCv3DataSchema: z.ZodObject<{
|
|
|
1438
1463
|
group_only_greetings?: string[] | undefined;
|
|
1439
1464
|
assets?: {
|
|
1440
1465
|
name: string;
|
|
1441
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1442
1466
|
uri: string;
|
|
1443
1467
|
ext: string;
|
|
1468
|
+
type?: unknown;
|
|
1444
1469
|
}[] | undefined;
|
|
1445
1470
|
nickname?: string | undefined;
|
|
1446
1471
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
1447
1472
|
source?: string[] | undefined;
|
|
1448
|
-
creation_date?:
|
|
1449
|
-
modification_date?:
|
|
1473
|
+
creation_date?: unknown;
|
|
1474
|
+
modification_date?: unknown;
|
|
1450
1475
|
};
|
|
1451
1476
|
spec: "chara_card_v3";
|
|
1452
1477
|
spec_version: "3.0";
|
|
@@ -1496,6 +1521,21 @@ export declare function looksLikeV3Card(data: unknown): data is {
|
|
|
1496
1521
|
*
|
|
1497
1522
|
* Shared types used across all card formats.
|
|
1498
1523
|
*/
|
|
1524
|
+
/**
|
|
1525
|
+
* Preprocess timestamp values to Unix seconds.
|
|
1526
|
+
* Handles: ISO strings, numeric strings, milliseconds, and numbers.
|
|
1527
|
+
* Returns undefined for invalid/negative values (defensive).
|
|
1528
|
+
*/
|
|
1529
|
+
export declare function preprocessTimestamp(val: unknown): number | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* Preprocess numeric values that may come as strings.
|
|
1532
|
+
* Returns undefined for invalid values.
|
|
1533
|
+
*/
|
|
1534
|
+
export declare function preprocessNumeric(val: unknown): number | undefined;
|
|
1535
|
+
/**
|
|
1536
|
+
* Preprocess asset type - coerce unknown types to 'custom'.
|
|
1537
|
+
*/
|
|
1538
|
+
export declare function preprocessAssetType(val: unknown): string;
|
|
1499
1539
|
/**
|
|
1500
1540
|
* ISO 8601 date string schema
|
|
1501
1541
|
*/
|
|
@@ -1533,9 +1573,10 @@ export declare const OriginalShapeSchema: z.ZodEnum<[
|
|
|
1533
1573
|
"legacy"
|
|
1534
1574
|
]>;
|
|
1535
1575
|
/**
|
|
1536
|
-
* Asset type identifier schema
|
|
1576
|
+
* Asset type identifier schema.
|
|
1577
|
+
* Uses preprocessing to coerce unknown types to 'custom' for forward compatibility.
|
|
1537
1578
|
*/
|
|
1538
|
-
export declare const AssetTypeSchema: z.ZodEnum<[
|
|
1579
|
+
export declare const AssetTypeSchema: z.ZodEffects<z.ZodEnum<[
|
|
1539
1580
|
"icon",
|
|
1540
1581
|
"background",
|
|
1541
1582
|
"emotion",
|
|
@@ -1544,12 +1585,12 @@ export declare const AssetTypeSchema: z.ZodEnum<[
|
|
|
1544
1585
|
"video",
|
|
1545
1586
|
"custom",
|
|
1546
1587
|
"x-risu-asset"
|
|
1547
|
-
]>;
|
|
1588
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
1548
1589
|
/**
|
|
1549
1590
|
* Asset descriptor schema (v3 spec)
|
|
1550
1591
|
*/
|
|
1551
1592
|
export declare const AssetDescriptorSchema: z.ZodObject<{
|
|
1552
|
-
type: z.ZodEnum<[
|
|
1593
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
1553
1594
|
"icon",
|
|
1554
1595
|
"background",
|
|
1555
1596
|
"emotion",
|
|
@@ -1558,7 +1599,7 @@ export declare const AssetDescriptorSchema: z.ZodObject<{
|
|
|
1558
1599
|
"video",
|
|
1559
1600
|
"custom",
|
|
1560
1601
|
"x-risu-asset"
|
|
1561
|
-
]>;
|
|
1602
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
1562
1603
|
uri: z.ZodString;
|
|
1563
1604
|
name: z.ZodString;
|
|
1564
1605
|
ext: z.ZodString;
|
|
@@ -1569,16 +1610,16 @@ export declare const AssetDescriptorSchema: z.ZodObject<{
|
|
|
1569
1610
|
ext: string;
|
|
1570
1611
|
}, {
|
|
1571
1612
|
name: string;
|
|
1572
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1573
1613
|
uri: string;
|
|
1574
1614
|
ext: string;
|
|
1615
|
+
type?: unknown;
|
|
1575
1616
|
}>;
|
|
1576
1617
|
/**
|
|
1577
1618
|
* Extracted asset with binary data schema
|
|
1578
1619
|
*/
|
|
1579
1620
|
export declare const ExtractedAssetSchema: z.ZodObject<{
|
|
1580
1621
|
descriptor: z.ZodObject<{
|
|
1581
|
-
type: z.ZodEnum<[
|
|
1622
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
1582
1623
|
"icon",
|
|
1583
1624
|
"background",
|
|
1584
1625
|
"emotion",
|
|
@@ -1587,7 +1628,7 @@ export declare const ExtractedAssetSchema: z.ZodObject<{
|
|
|
1587
1628
|
"video",
|
|
1588
1629
|
"custom",
|
|
1589
1630
|
"x-risu-asset"
|
|
1590
|
-
]>;
|
|
1631
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
1591
1632
|
uri: z.ZodString;
|
|
1592
1633
|
name: z.ZodString;
|
|
1593
1634
|
ext: z.ZodString;
|
|
@@ -1598,9 +1639,9 @@ export declare const ExtractedAssetSchema: z.ZodObject<{
|
|
|
1598
1639
|
ext: string;
|
|
1599
1640
|
}, {
|
|
1600
1641
|
name: string;
|
|
1601
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1602
1642
|
uri: string;
|
|
1603
1643
|
ext: string;
|
|
1644
|
+
type?: unknown;
|
|
1604
1645
|
}>;
|
|
1605
1646
|
data: z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>;
|
|
1606
1647
|
mimeType: z.ZodString;
|
|
@@ -1616,9 +1657,9 @@ export declare const ExtractedAssetSchema: z.ZodObject<{
|
|
|
1616
1657
|
}, {
|
|
1617
1658
|
descriptor: {
|
|
1618
1659
|
name: string;
|
|
1619
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
1620
1660
|
uri: string;
|
|
1621
1661
|
ext: string;
|
|
1662
|
+
type?: unknown;
|
|
1622
1663
|
};
|
|
1623
1664
|
data: Uint8Array<ArrayBuffer>;
|
|
1624
1665
|
mimeType: string;
|
|
@@ -1680,7 +1721,8 @@ export declare const CCv2LorebookEntrySchema: z.ZodObject<{
|
|
|
1680
1721
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1681
1722
|
z.ZodEnum<[
|
|
1682
1723
|
"before_char",
|
|
1683
|
-
"after_char"
|
|
1724
|
+
"after_char",
|
|
1725
|
+
"in_chat"
|
|
1684
1726
|
]>,
|
|
1685
1727
|
z.ZodNumber,
|
|
1686
1728
|
z.ZodLiteral<"">
|
|
@@ -1702,7 +1744,8 @@ export declare const CCv2LorebookEntrySchema: z.ZodObject<{
|
|
|
1702
1744
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1703
1745
|
z.ZodEnum<[
|
|
1704
1746
|
"before_char",
|
|
1705
|
-
"after_char"
|
|
1747
|
+
"after_char",
|
|
1748
|
+
"in_chat"
|
|
1706
1749
|
]>,
|
|
1707
1750
|
z.ZodNumber,
|
|
1708
1751
|
z.ZodLiteral<"">
|
|
@@ -1724,20 +1767,22 @@ export declare const CCv2LorebookEntrySchema: z.ZodObject<{
|
|
|
1724
1767
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1725
1768
|
z.ZodEnum<[
|
|
1726
1769
|
"before_char",
|
|
1727
|
-
"after_char"
|
|
1770
|
+
"after_char",
|
|
1771
|
+
"in_chat"
|
|
1728
1772
|
]>,
|
|
1729
1773
|
z.ZodNumber,
|
|
1730
1774
|
z.ZodLiteral<"">
|
|
1731
1775
|
]>>>;
|
|
1732
1776
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1733
1777
|
/**
|
|
1734
|
-
* Character book (lorebook) schema for v2 cards
|
|
1778
|
+
* Character book (lorebook) schema for v2 cards.
|
|
1779
|
+
* Uses preprocessing for numeric fields that often come as strings in wild data.
|
|
1735
1780
|
*/
|
|
1736
1781
|
export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
1737
1782
|
name: z.ZodOptional<z.ZodString>;
|
|
1738
1783
|
description: z.ZodOptional<z.ZodString>;
|
|
1739
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
1740
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
1784
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1785
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1741
1786
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
1742
1787
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1743
1788
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1757,7 +1802,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1757
1802
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1758
1803
|
z.ZodEnum<[
|
|
1759
1804
|
"before_char",
|
|
1760
|
-
"after_char"
|
|
1805
|
+
"after_char",
|
|
1806
|
+
"in_chat"
|
|
1761
1807
|
]>,
|
|
1762
1808
|
z.ZodNumber,
|
|
1763
1809
|
z.ZodLiteral<"">
|
|
@@ -1779,7 +1825,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1779
1825
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1780
1826
|
z.ZodEnum<[
|
|
1781
1827
|
"before_char",
|
|
1782
|
-
"after_char"
|
|
1828
|
+
"after_char",
|
|
1829
|
+
"in_chat"
|
|
1783
1830
|
]>,
|
|
1784
1831
|
z.ZodNumber,
|
|
1785
1832
|
z.ZodLiteral<"">
|
|
@@ -1801,7 +1848,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1801
1848
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1802
1849
|
z.ZodEnum<[
|
|
1803
1850
|
"before_char",
|
|
1804
|
-
"after_char"
|
|
1851
|
+
"after_char",
|
|
1852
|
+
"in_chat"
|
|
1805
1853
|
]>,
|
|
1806
1854
|
z.ZodNumber,
|
|
1807
1855
|
z.ZodLiteral<"">
|
|
@@ -1825,7 +1873,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1825
1873
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1826
1874
|
z.ZodEnum<[
|
|
1827
1875
|
"before_char",
|
|
1828
|
-
"after_char"
|
|
1876
|
+
"after_char",
|
|
1877
|
+
"in_chat"
|
|
1829
1878
|
]>,
|
|
1830
1879
|
z.ZodNumber,
|
|
1831
1880
|
z.ZodLiteral<"">
|
|
@@ -1855,7 +1904,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1855
1904
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1856
1905
|
z.ZodEnum<[
|
|
1857
1906
|
"before_char",
|
|
1858
|
-
"after_char"
|
|
1907
|
+
"after_char",
|
|
1908
|
+
"in_chat"
|
|
1859
1909
|
]>,
|
|
1860
1910
|
z.ZodNumber,
|
|
1861
1911
|
z.ZodLiteral<"">
|
|
@@ -1863,8 +1913,8 @@ export declare const CCv2CharacterBookSchema: z.ZodObject<{
|
|
|
1863
1913
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1864
1914
|
name?: string | undefined;
|
|
1865
1915
|
description?: string | undefined;
|
|
1866
|
-
scan_depth?:
|
|
1867
|
-
token_budget?:
|
|
1916
|
+
scan_depth?: unknown;
|
|
1917
|
+
token_budget?: unknown;
|
|
1868
1918
|
recursive_scanning?: boolean | undefined;
|
|
1869
1919
|
extensions?: Record<string, unknown> | undefined;
|
|
1870
1920
|
}>;
|
|
@@ -1885,8 +1935,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1885
1935
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1886
1936
|
name: z.ZodOptional<z.ZodString>;
|
|
1887
1937
|
description: z.ZodOptional<z.ZodString>;
|
|
1888
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
1889
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
1938
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1939
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
1890
1940
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
1891
1941
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1892
1942
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1906,7 +1956,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1906
1956
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1907
1957
|
z.ZodEnum<[
|
|
1908
1958
|
"before_char",
|
|
1909
|
-
"after_char"
|
|
1959
|
+
"after_char",
|
|
1960
|
+
"in_chat"
|
|
1910
1961
|
]>,
|
|
1911
1962
|
z.ZodNumber,
|
|
1912
1963
|
z.ZodLiteral<"">
|
|
@@ -1928,7 +1979,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1928
1979
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1929
1980
|
z.ZodEnum<[
|
|
1930
1981
|
"before_char",
|
|
1931
|
-
"after_char"
|
|
1982
|
+
"after_char",
|
|
1983
|
+
"in_chat"
|
|
1932
1984
|
]>,
|
|
1933
1985
|
z.ZodNumber,
|
|
1934
1986
|
z.ZodLiteral<"">
|
|
@@ -1950,7 +2002,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1950
2002
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1951
2003
|
z.ZodEnum<[
|
|
1952
2004
|
"before_char",
|
|
1953
|
-
"after_char"
|
|
2005
|
+
"after_char",
|
|
2006
|
+
"in_chat"
|
|
1954
2007
|
]>,
|
|
1955
2008
|
z.ZodNumber,
|
|
1956
2009
|
z.ZodLiteral<"">
|
|
@@ -1974,7 +2027,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1974
2027
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
1975
2028
|
z.ZodEnum<[
|
|
1976
2029
|
"before_char",
|
|
1977
|
-
"after_char"
|
|
2030
|
+
"after_char",
|
|
2031
|
+
"in_chat"
|
|
1978
2032
|
]>,
|
|
1979
2033
|
z.ZodNumber,
|
|
1980
2034
|
z.ZodLiteral<"">
|
|
@@ -2004,7 +2058,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
2004
2058
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2005
2059
|
z.ZodEnum<[
|
|
2006
2060
|
"before_char",
|
|
2007
|
-
"after_char"
|
|
2061
|
+
"after_char",
|
|
2062
|
+
"in_chat"
|
|
2008
2063
|
]>,
|
|
2009
2064
|
z.ZodNumber,
|
|
2010
2065
|
z.ZodLiteral<"">
|
|
@@ -2012,8 +2067,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
2012
2067
|
}, z.ZodTypeAny, "passthrough">[];
|
|
2013
2068
|
name?: string | undefined;
|
|
2014
2069
|
description?: string | undefined;
|
|
2015
|
-
scan_depth?:
|
|
2016
|
-
token_budget?:
|
|
2070
|
+
scan_depth?: unknown;
|
|
2071
|
+
token_budget?: unknown;
|
|
2017
2072
|
recursive_scanning?: boolean | undefined;
|
|
2018
2073
|
extensions?: Record<string, unknown> | undefined;
|
|
2019
2074
|
}>>>;
|
|
@@ -2051,7 +2106,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
2051
2106
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2052
2107
|
z.ZodEnum<[
|
|
2053
2108
|
"before_char",
|
|
2054
|
-
"after_char"
|
|
2109
|
+
"after_char",
|
|
2110
|
+
"in_chat"
|
|
2055
2111
|
]>,
|
|
2056
2112
|
z.ZodNumber,
|
|
2057
2113
|
z.ZodLiteral<"">
|
|
@@ -2097,7 +2153,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
2097
2153
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2098
2154
|
z.ZodEnum<[
|
|
2099
2155
|
"before_char",
|
|
2100
|
-
"after_char"
|
|
2156
|
+
"after_char",
|
|
2157
|
+
"in_chat"
|
|
2101
2158
|
]>,
|
|
2102
2159
|
z.ZodNumber,
|
|
2103
2160
|
z.ZodLiteral<"">
|
|
@@ -2105,8 +2162,8 @@ export declare const CCv2DataSchema: z.ZodObject<{
|
|
|
2105
2162
|
}, z.ZodTypeAny, "passthrough">[];
|
|
2106
2163
|
name?: string | undefined;
|
|
2107
2164
|
description?: string | undefined;
|
|
2108
|
-
scan_depth?:
|
|
2109
|
-
token_budget?:
|
|
2165
|
+
scan_depth?: unknown;
|
|
2166
|
+
token_budget?: unknown;
|
|
2110
2167
|
recursive_scanning?: boolean | undefined;
|
|
2111
2168
|
extensions?: Record<string, unknown> | undefined;
|
|
2112
2169
|
} | null | undefined;
|
|
@@ -2134,8 +2191,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2134
2191
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2135
2192
|
name: z.ZodOptional<z.ZodString>;
|
|
2136
2193
|
description: z.ZodOptional<z.ZodString>;
|
|
2137
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
2138
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
2194
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
2195
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
2139
2196
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
2140
2197
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2141
2198
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -2155,7 +2212,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2155
2212
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2156
2213
|
z.ZodEnum<[
|
|
2157
2214
|
"before_char",
|
|
2158
|
-
"after_char"
|
|
2215
|
+
"after_char",
|
|
2216
|
+
"in_chat"
|
|
2159
2217
|
]>,
|
|
2160
2218
|
z.ZodNumber,
|
|
2161
2219
|
z.ZodLiteral<"">
|
|
@@ -2177,7 +2235,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2177
2235
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2178
2236
|
z.ZodEnum<[
|
|
2179
2237
|
"before_char",
|
|
2180
|
-
"after_char"
|
|
2238
|
+
"after_char",
|
|
2239
|
+
"in_chat"
|
|
2181
2240
|
]>,
|
|
2182
2241
|
z.ZodNumber,
|
|
2183
2242
|
z.ZodLiteral<"">
|
|
@@ -2199,7 +2258,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2199
2258
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2200
2259
|
z.ZodEnum<[
|
|
2201
2260
|
"before_char",
|
|
2202
|
-
"after_char"
|
|
2261
|
+
"after_char",
|
|
2262
|
+
"in_chat"
|
|
2203
2263
|
]>,
|
|
2204
2264
|
z.ZodNumber,
|
|
2205
2265
|
z.ZodLiteral<"">
|
|
@@ -2223,7 +2283,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2223
2283
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2224
2284
|
z.ZodEnum<[
|
|
2225
2285
|
"before_char",
|
|
2226
|
-
"after_char"
|
|
2286
|
+
"after_char",
|
|
2287
|
+
"in_chat"
|
|
2227
2288
|
]>,
|
|
2228
2289
|
z.ZodNumber,
|
|
2229
2290
|
z.ZodLiteral<"">
|
|
@@ -2253,7 +2314,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2253
2314
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2254
2315
|
z.ZodEnum<[
|
|
2255
2316
|
"before_char",
|
|
2256
|
-
"after_char"
|
|
2317
|
+
"after_char",
|
|
2318
|
+
"in_chat"
|
|
2257
2319
|
]>,
|
|
2258
2320
|
z.ZodNumber,
|
|
2259
2321
|
z.ZodLiteral<"">
|
|
@@ -2261,8 +2323,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2261
2323
|
}, z.ZodTypeAny, "passthrough">[];
|
|
2262
2324
|
name?: string | undefined;
|
|
2263
2325
|
description?: string | undefined;
|
|
2264
|
-
scan_depth?:
|
|
2265
|
-
token_budget?:
|
|
2326
|
+
scan_depth?: unknown;
|
|
2327
|
+
token_budget?: unknown;
|
|
2266
2328
|
recursive_scanning?: boolean | undefined;
|
|
2267
2329
|
extensions?: Record<string, unknown> | undefined;
|
|
2268
2330
|
}>>>;
|
|
@@ -2300,7 +2362,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2300
2362
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2301
2363
|
z.ZodEnum<[
|
|
2302
2364
|
"before_char",
|
|
2303
|
-
"after_char"
|
|
2365
|
+
"after_char",
|
|
2366
|
+
"in_chat"
|
|
2304
2367
|
]>,
|
|
2305
2368
|
z.ZodNumber,
|
|
2306
2369
|
z.ZodLiteral<"">
|
|
@@ -2346,7 +2409,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2346
2409
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2347
2410
|
z.ZodEnum<[
|
|
2348
2411
|
"before_char",
|
|
2349
|
-
"after_char"
|
|
2412
|
+
"after_char",
|
|
2413
|
+
"in_chat"
|
|
2350
2414
|
]>,
|
|
2351
2415
|
z.ZodNumber,
|
|
2352
2416
|
z.ZodLiteral<"">
|
|
@@ -2354,8 +2418,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2354
2418
|
}, z.ZodTypeAny, "passthrough">[];
|
|
2355
2419
|
name?: string | undefined;
|
|
2356
2420
|
description?: string | undefined;
|
|
2357
|
-
scan_depth?:
|
|
2358
|
-
token_budget?:
|
|
2421
|
+
scan_depth?: unknown;
|
|
2422
|
+
token_budget?: unknown;
|
|
2359
2423
|
recursive_scanning?: boolean | undefined;
|
|
2360
2424
|
extensions?: Record<string, unknown> | undefined;
|
|
2361
2425
|
} | null | undefined;
|
|
@@ -2394,7 +2458,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2394
2458
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2395
2459
|
z.ZodEnum<[
|
|
2396
2460
|
"before_char",
|
|
2397
|
-
"after_char"
|
|
2461
|
+
"after_char",
|
|
2462
|
+
"in_chat"
|
|
2398
2463
|
]>,
|
|
2399
2464
|
z.ZodNumber,
|
|
2400
2465
|
z.ZodLiteral<"">
|
|
@@ -2444,7 +2509,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2444
2509
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
2445
2510
|
z.ZodEnum<[
|
|
2446
2511
|
"before_char",
|
|
2447
|
-
"after_char"
|
|
2512
|
+
"after_char",
|
|
2513
|
+
"in_chat"
|
|
2448
2514
|
]>,
|
|
2449
2515
|
z.ZodNumber,
|
|
2450
2516
|
z.ZodLiteral<"">
|
|
@@ -2452,8 +2518,8 @@ export declare const CCv2WrappedSchema: z.ZodObject<{
|
|
|
2452
2518
|
}, z.ZodTypeAny, "passthrough">[];
|
|
2453
2519
|
name?: string | undefined;
|
|
2454
2520
|
description?: string | undefined;
|
|
2455
|
-
scan_depth?:
|
|
2456
|
-
token_budget?:
|
|
2521
|
+
scan_depth?: unknown;
|
|
2522
|
+
token_budget?: unknown;
|
|
2457
2523
|
recursive_scanning?: boolean | undefined;
|
|
2458
2524
|
extensions?: Record<string, unknown> | undefined;
|
|
2459
2525
|
} | null | undefined;
|