@character-foundry/character-foundry 0.4.0-dev.1765937896 → 0.4.0-dev.1765938243
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 +2 -2
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.d.cts +18 -9
- package/dist/charx.d.ts +18 -9
- package/dist/charx.js +2 -2
- package/dist/charx.js.map +1 -1
- package/dist/exporter.cjs +2 -2
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.d.cts +18 -9
- package/dist/exporter.d.ts +18 -9
- package/dist/exporter.js +2 -2
- package/dist/exporter.js.map +1 -1
- package/dist/federation.d.cts +18 -9
- package/dist/federation.d.ts +18 -9
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -21
- package/dist/index.d.ts +42 -21
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +3 -3
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +28 -14
- package/dist/loader.d.ts +28 -14
- package/dist/loader.js +3 -3
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.d.cts +34 -17
- package/dist/lorebook.d.ts +34 -17
- package/dist/normalizer.cjs +3 -3
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.d.cts +60 -30
- package/dist/normalizer.d.ts +60 -30
- package/dist/normalizer.js +3 -3
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +2 -2
- package/dist/png.cjs.map +1 -1
- package/dist/png.d.cts +32 -16
- package/dist/png.d.ts +32 -16
- package/dist/png.js +2 -2
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs +2 -2
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +96 -48
- package/dist/schemas.d.ts +96 -48
- package/dist/schemas.js +2 -2
- package/dist/schemas.js.map +1 -1
- package/dist/voxta.cjs +2 -2
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.d.cts +28 -14
- package/dist/voxta.d.ts +28 -14
- package/dist/voxta.js +2 -2
- package/dist/voxta.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -35,7 +35,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
35
35
|
"before_char",
|
|
36
36
|
"after_char"
|
|
37
37
|
]>,
|
|
38
|
-
z.ZodNumber
|
|
38
|
+
z.ZodNumber,
|
|
39
|
+
z.ZodLiteral<"">
|
|
39
40
|
]>>>;
|
|
40
41
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
42
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -77,7 +78,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
77
78
|
"before_char",
|
|
78
79
|
"after_char"
|
|
79
80
|
]>,
|
|
80
|
-
z.ZodNumber
|
|
81
|
+
z.ZodNumber,
|
|
82
|
+
z.ZodLiteral<"">
|
|
81
83
|
]>>>;
|
|
82
84
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
85
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -119,7 +121,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
119
121
|
"before_char",
|
|
120
122
|
"after_char"
|
|
121
123
|
]>,
|
|
122
|
-
z.ZodNumber
|
|
124
|
+
z.ZodNumber,
|
|
125
|
+
z.ZodLiteral<"">
|
|
123
126
|
]>>>;
|
|
124
127
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
128
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -163,7 +166,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
163
166
|
"before_char",
|
|
164
167
|
"after_char"
|
|
165
168
|
]>,
|
|
166
|
-
z.ZodNumber
|
|
169
|
+
z.ZodNumber,
|
|
170
|
+
z.ZodLiteral<"">
|
|
167
171
|
]>>>;
|
|
168
172
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
169
173
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -213,7 +217,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
213
217
|
"before_char",
|
|
214
218
|
"after_char"
|
|
215
219
|
]>,
|
|
216
|
-
z.ZodNumber
|
|
220
|
+
z.ZodNumber,
|
|
221
|
+
z.ZodLiteral<"">
|
|
217
222
|
]>>>;
|
|
218
223
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
219
224
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -288,7 +293,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
288
293
|
"before_char",
|
|
289
294
|
"after_char"
|
|
290
295
|
]>,
|
|
291
|
-
z.ZodNumber
|
|
296
|
+
z.ZodNumber,
|
|
297
|
+
z.ZodLiteral<"">
|
|
292
298
|
]>>>;
|
|
293
299
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
294
300
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -330,7 +336,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
330
336
|
"before_char",
|
|
331
337
|
"after_char"
|
|
332
338
|
]>,
|
|
333
|
-
z.ZodNumber
|
|
339
|
+
z.ZodNumber,
|
|
340
|
+
z.ZodLiteral<"">
|
|
334
341
|
]>>>;
|
|
335
342
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
343
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -372,7 +379,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
372
379
|
"before_char",
|
|
373
380
|
"after_char"
|
|
374
381
|
]>,
|
|
375
|
-
z.ZodNumber
|
|
382
|
+
z.ZodNumber,
|
|
383
|
+
z.ZodLiteral<"">
|
|
376
384
|
]>>>;
|
|
377
385
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
386
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -416,7 +424,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
416
424
|
"before_char",
|
|
417
425
|
"after_char"
|
|
418
426
|
]>,
|
|
419
|
-
z.ZodNumber
|
|
427
|
+
z.ZodNumber,
|
|
428
|
+
z.ZodLiteral<"">
|
|
420
429
|
]>>>;
|
|
421
430
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
422
431
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -466,7 +475,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
466
475
|
"before_char",
|
|
467
476
|
"after_char"
|
|
468
477
|
]>,
|
|
469
|
-
z.ZodNumber
|
|
478
|
+
z.ZodNumber,
|
|
479
|
+
z.ZodLiteral<"">
|
|
470
480
|
]>>>;
|
|
471
481
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
472
482
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -564,7 +574,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
564
574
|
"before_char",
|
|
565
575
|
"after_char"
|
|
566
576
|
]>,
|
|
567
|
-
z.ZodNumber
|
|
577
|
+
z.ZodNumber,
|
|
578
|
+
z.ZodLiteral<"">
|
|
568
579
|
]>>>;
|
|
569
580
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
570
581
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -638,7 +649,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
638
649
|
"before_char",
|
|
639
650
|
"after_char"
|
|
640
651
|
]>,
|
|
641
|
-
z.ZodNumber
|
|
652
|
+
z.ZodNumber,
|
|
653
|
+
z.ZodLiteral<"">
|
|
642
654
|
]>>>;
|
|
643
655
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
644
656
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -722,7 +734,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
722
734
|
"before_char",
|
|
723
735
|
"after_char"
|
|
724
736
|
]>,
|
|
725
|
-
z.ZodNumber
|
|
737
|
+
z.ZodNumber,
|
|
738
|
+
z.ZodLiteral<"">
|
|
726
739
|
]>>>;
|
|
727
740
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
728
741
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -800,7 +813,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
800
813
|
"before_char",
|
|
801
814
|
"after_char"
|
|
802
815
|
]>,
|
|
803
|
-
z.ZodNumber
|
|
816
|
+
z.ZodNumber,
|
|
817
|
+
z.ZodLiteral<"">
|
|
804
818
|
]>>>;
|
|
805
819
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
806
820
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -918,7 +932,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
918
932
|
"before_char",
|
|
919
933
|
"after_char"
|
|
920
934
|
]>,
|
|
921
|
-
z.ZodNumber
|
|
935
|
+
z.ZodNumber,
|
|
936
|
+
z.ZodLiteral<"">
|
|
922
937
|
]>>>;
|
|
923
938
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
924
939
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -939,7 +954,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
939
954
|
"before_char",
|
|
940
955
|
"after_char"
|
|
941
956
|
]>,
|
|
942
|
-
z.ZodNumber
|
|
957
|
+
z.ZodNumber,
|
|
958
|
+
z.ZodLiteral<"">
|
|
943
959
|
]>>>;
|
|
944
960
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
945
961
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -960,7 +976,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
960
976
|
"before_char",
|
|
961
977
|
"after_char"
|
|
962
978
|
]>,
|
|
963
|
-
z.ZodNumber
|
|
979
|
+
z.ZodNumber,
|
|
980
|
+
z.ZodLiteral<"">
|
|
964
981
|
]>>>;
|
|
965
982
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
966
983
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -983,7 +1000,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
983
1000
|
"before_char",
|
|
984
1001
|
"after_char"
|
|
985
1002
|
]>,
|
|
986
|
-
z.ZodNumber
|
|
1003
|
+
z.ZodNumber,
|
|
1004
|
+
z.ZodLiteral<"">
|
|
987
1005
|
]>>>;
|
|
988
1006
|
}, z.ZodTypeAny, "passthrough">[];
|
|
989
1007
|
name?: string | undefined;
|
|
@@ -1012,7 +1030,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1012
1030
|
"before_char",
|
|
1013
1031
|
"after_char"
|
|
1014
1032
|
]>,
|
|
1015
|
-
z.ZodNumber
|
|
1033
|
+
z.ZodNumber,
|
|
1034
|
+
z.ZodLiteral<"">
|
|
1016
1035
|
]>>>;
|
|
1017
1036
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1018
1037
|
name?: string | undefined;
|
|
@@ -1058,7 +1077,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1058
1077
|
"before_char",
|
|
1059
1078
|
"after_char"
|
|
1060
1079
|
]>,
|
|
1061
|
-
z.ZodNumber
|
|
1080
|
+
z.ZodNumber,
|
|
1081
|
+
z.ZodLiteral<"">
|
|
1062
1082
|
]>>>;
|
|
1063
1083
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1064
1084
|
name?: string | undefined;
|
|
@@ -1103,7 +1123,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1103
1123
|
"before_char",
|
|
1104
1124
|
"after_char"
|
|
1105
1125
|
]>,
|
|
1106
|
-
z.ZodNumber
|
|
1126
|
+
z.ZodNumber,
|
|
1127
|
+
z.ZodLiteral<"">
|
|
1107
1128
|
]>>>;
|
|
1108
1129
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1109
1130
|
name?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
35
35
|
"before_char",
|
|
36
36
|
"after_char"
|
|
37
37
|
]>,
|
|
38
|
-
z.ZodNumber
|
|
38
|
+
z.ZodNumber,
|
|
39
|
+
z.ZodLiteral<"">
|
|
39
40
|
]>>>;
|
|
40
41
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
42
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -77,7 +78,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
77
78
|
"before_char",
|
|
78
79
|
"after_char"
|
|
79
80
|
]>,
|
|
80
|
-
z.ZodNumber
|
|
81
|
+
z.ZodNumber,
|
|
82
|
+
z.ZodLiteral<"">
|
|
81
83
|
]>>>;
|
|
82
84
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
85
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -119,7 +121,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
119
121
|
"before_char",
|
|
120
122
|
"after_char"
|
|
121
123
|
]>,
|
|
122
|
-
z.ZodNumber
|
|
124
|
+
z.ZodNumber,
|
|
125
|
+
z.ZodLiteral<"">
|
|
123
126
|
]>>>;
|
|
124
127
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
128
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -163,7 +166,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
163
166
|
"before_char",
|
|
164
167
|
"after_char"
|
|
165
168
|
]>,
|
|
166
|
-
z.ZodNumber
|
|
169
|
+
z.ZodNumber,
|
|
170
|
+
z.ZodLiteral<"">
|
|
167
171
|
]>>>;
|
|
168
172
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
169
173
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -213,7 +217,8 @@ declare const CCv3CharacterBookSchema: z.ZodObject<{
|
|
|
213
217
|
"before_char",
|
|
214
218
|
"after_char"
|
|
215
219
|
]>,
|
|
216
|
-
z.ZodNumber
|
|
220
|
+
z.ZodNumber,
|
|
221
|
+
z.ZodLiteral<"">
|
|
217
222
|
]>>>;
|
|
218
223
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
219
224
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -288,7 +293,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
288
293
|
"before_char",
|
|
289
294
|
"after_char"
|
|
290
295
|
]>,
|
|
291
|
-
z.ZodNumber
|
|
296
|
+
z.ZodNumber,
|
|
297
|
+
z.ZodLiteral<"">
|
|
292
298
|
]>>>;
|
|
293
299
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
294
300
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -330,7 +336,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
330
336
|
"before_char",
|
|
331
337
|
"after_char"
|
|
332
338
|
]>,
|
|
333
|
-
z.ZodNumber
|
|
339
|
+
z.ZodNumber,
|
|
340
|
+
z.ZodLiteral<"">
|
|
334
341
|
]>>>;
|
|
335
342
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
343
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -372,7 +379,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
372
379
|
"before_char",
|
|
373
380
|
"after_char"
|
|
374
381
|
]>,
|
|
375
|
-
z.ZodNumber
|
|
382
|
+
z.ZodNumber,
|
|
383
|
+
z.ZodLiteral<"">
|
|
376
384
|
]>>>;
|
|
377
385
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
386
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -416,7 +424,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
416
424
|
"before_char",
|
|
417
425
|
"after_char"
|
|
418
426
|
]>,
|
|
419
|
-
z.ZodNumber
|
|
427
|
+
z.ZodNumber,
|
|
428
|
+
z.ZodLiteral<"">
|
|
420
429
|
]>>>;
|
|
421
430
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
422
431
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -466,7 +475,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
466
475
|
"before_char",
|
|
467
476
|
"after_char"
|
|
468
477
|
]>,
|
|
469
|
-
z.ZodNumber
|
|
478
|
+
z.ZodNumber,
|
|
479
|
+
z.ZodLiteral<"">
|
|
470
480
|
]>>>;
|
|
471
481
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
472
482
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -564,7 +574,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
564
574
|
"before_char",
|
|
565
575
|
"after_char"
|
|
566
576
|
]>,
|
|
567
|
-
z.ZodNumber
|
|
577
|
+
z.ZodNumber,
|
|
578
|
+
z.ZodLiteral<"">
|
|
568
579
|
]>>>;
|
|
569
580
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
570
581
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -638,7 +649,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
638
649
|
"before_char",
|
|
639
650
|
"after_char"
|
|
640
651
|
]>,
|
|
641
|
-
z.ZodNumber
|
|
652
|
+
z.ZodNumber,
|
|
653
|
+
z.ZodLiteral<"">
|
|
642
654
|
]>>>;
|
|
643
655
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
644
656
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -722,7 +734,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
722
734
|
"before_char",
|
|
723
735
|
"after_char"
|
|
724
736
|
]>,
|
|
725
|
-
z.ZodNumber
|
|
737
|
+
z.ZodNumber,
|
|
738
|
+
z.ZodLiteral<"">
|
|
726
739
|
]>>>;
|
|
727
740
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
728
741
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -800,7 +813,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
800
813
|
"before_char",
|
|
801
814
|
"after_char"
|
|
802
815
|
]>,
|
|
803
|
-
z.ZodNumber
|
|
816
|
+
z.ZodNumber,
|
|
817
|
+
z.ZodLiteral<"">
|
|
804
818
|
]>>>;
|
|
805
819
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
806
820
|
automation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -918,7 +932,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
918
932
|
"before_char",
|
|
919
933
|
"after_char"
|
|
920
934
|
]>,
|
|
921
|
-
z.ZodNumber
|
|
935
|
+
z.ZodNumber,
|
|
936
|
+
z.ZodLiteral<"">
|
|
922
937
|
]>>>;
|
|
923
938
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
924
939
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -939,7 +954,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
939
954
|
"before_char",
|
|
940
955
|
"after_char"
|
|
941
956
|
]>,
|
|
942
|
-
z.ZodNumber
|
|
957
|
+
z.ZodNumber,
|
|
958
|
+
z.ZodLiteral<"">
|
|
943
959
|
]>>>;
|
|
944
960
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
945
961
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -960,7 +976,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
960
976
|
"before_char",
|
|
961
977
|
"after_char"
|
|
962
978
|
]>,
|
|
963
|
-
z.ZodNumber
|
|
979
|
+
z.ZodNumber,
|
|
980
|
+
z.ZodLiteral<"">
|
|
964
981
|
]>>>;
|
|
965
982
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
966
983
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -983,7 +1000,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
983
1000
|
"before_char",
|
|
984
1001
|
"after_char"
|
|
985
1002
|
]>,
|
|
986
|
-
z.ZodNumber
|
|
1003
|
+
z.ZodNumber,
|
|
1004
|
+
z.ZodLiteral<"">
|
|
987
1005
|
]>>>;
|
|
988
1006
|
}, z.ZodTypeAny, "passthrough">[];
|
|
989
1007
|
name?: string | undefined;
|
|
@@ -1012,7 +1030,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1012
1030
|
"before_char",
|
|
1013
1031
|
"after_char"
|
|
1014
1032
|
]>,
|
|
1015
|
-
z.ZodNumber
|
|
1033
|
+
z.ZodNumber,
|
|
1034
|
+
z.ZodLiteral<"">
|
|
1016
1035
|
]>>>;
|
|
1017
1036
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1018
1037
|
name?: string | undefined;
|
|
@@ -1058,7 +1077,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1058
1077
|
"before_char",
|
|
1059
1078
|
"after_char"
|
|
1060
1079
|
]>,
|
|
1061
|
-
z.ZodNumber
|
|
1080
|
+
z.ZodNumber,
|
|
1081
|
+
z.ZodLiteral<"">
|
|
1062
1082
|
]>>>;
|
|
1063
1083
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1064
1084
|
name?: string | undefined;
|
|
@@ -1103,7 +1123,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
1103
1123
|
"before_char",
|
|
1104
1124
|
"after_char"
|
|
1105
1125
|
]>,
|
|
1106
|
-
z.ZodNumber
|
|
1126
|
+
z.ZodNumber,
|
|
1127
|
+
z.ZodLiteral<"">
|
|
1107
1128
|
]>>>;
|
|
1108
1129
|
}, z.ZodTypeAny, "passthrough">[];
|
|
1109
1130
|
name?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -596,7 +596,7 @@ var CCv2LorebookEntrySchema = z2.object({
|
|
|
596
596
|
selective: z2.boolean().nullable().optional(),
|
|
597
597
|
secondary_keys: z2.array(z2.string()).optional(),
|
|
598
598
|
constant: z2.boolean().nullable().optional(),
|
|
599
|
-
position: z2.union([z2.enum(["before_char", "after_char"]), z2.number().int()]).nullable().optional()
|
|
599
|
+
position: z2.union([z2.enum(["before_char", "after_char"]), z2.number().int(), z2.literal("")]).nullable().optional()
|
|
600
600
|
}).passthrough();
|
|
601
601
|
var CCv2CharacterBookSchema = z2.object({
|
|
602
602
|
name: z2.string().optional(),
|
|
@@ -660,7 +660,7 @@ var CCv3LorebookEntrySchema = z3.object({
|
|
|
660
660
|
selective: z3.boolean().nullable().optional(),
|
|
661
661
|
secondary_keys: z3.array(z3.string()).optional(),
|
|
662
662
|
constant: z3.boolean().nullable().optional(),
|
|
663
|
-
position: z3.union([z3.enum(["before_char", "after_char"]), z3.number().int()]).nullable().optional(),
|
|
663
|
+
position: z3.union([z3.enum(["before_char", "after_char"]), z3.number().int(), z3.literal("")]).nullable().optional(),
|
|
664
664
|
extensions: z3.record(z3.unknown()).optional(),
|
|
665
665
|
// v3 specific - also lenient with types since SillyTavern uses numbers for enums
|
|
666
666
|
automation_id: z3.string().optional(),
|
|
@@ -8353,7 +8353,7 @@ var DELTA_MAX_FILE_SIZE = 50 * 1024 * 1024;
|
|
|
8353
8353
|
|
|
8354
8354
|
// ../normalizer/dist/index.js
|
|
8355
8355
|
function normalizePosition(position) {
|
|
8356
|
-
if (position === void 0 || position === null) return "before_char";
|
|
8356
|
+
if (position === void 0 || position === null || position === "") return "before_char";
|
|
8357
8357
|
if (typeof position === "string") return position;
|
|
8358
8358
|
return position;
|
|
8359
8359
|
}
|