@character-foundry/character-foundry 0.4.0 → 0.4.1
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 +12 -12
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.d.cts +63 -54
- package/dist/charx.d.ts +63 -54
- package/dist/charx.js +12 -12
- package/dist/charx.js.map +1 -1
- package/dist/exporter.cjs +12 -12
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.d.cts +63 -54
- package/dist/exporter.d.ts +63 -54
- package/dist/exporter.js +12 -12
- package/dist/exporter.js.map +1 -1
- package/dist/federation.d.cts +63 -54
- package/dist/federation.d.ts +63 -54
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +147 -126
- package/dist/index.d.ts +147 -126
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +13 -13
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +98 -84
- package/dist/loader.d.ts +98 -84
- package/dist/loader.js +13 -13
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.cjs +2 -2
- package/dist/lorebook.cjs.map +1 -1
- package/dist/lorebook.d.cts +119 -102
- package/dist/lorebook.d.ts +119 -102
- package/dist/lorebook.js +2 -2
- package/dist/lorebook.js.map +1 -1
- package/dist/normalizer.cjs +13 -13
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.d.cts +210 -180
- package/dist/normalizer.d.ts +210 -180
- package/dist/normalizer.js +13 -13
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +12 -12
- package/dist/png.cjs.map +1 -1
- package/dist/png.d.cts +112 -96
- package/dist/png.d.ts +112 -96
- package/dist/png.js +12 -12
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs +12 -12
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +336 -288
- package/dist/schemas.d.ts +336 -288
- package/dist/schemas.js +12 -12
- package/dist/schemas.js.map +1 -1
- package/dist/voxta.cjs +12 -12
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.d.cts +98 -84
- package/dist/voxta.d.ts +98 -84
- package/dist/voxta.js +12 -12
- package/dist/voxta.js.map +1 -1
- package/package.json +6 -6
package/dist/loader.cjs
CHANGED
|
@@ -492,18 +492,18 @@ var CCv2LorebookEntrySchema = import_zod2.z.object({
|
|
|
492
492
|
content: import_zod2.z.string(),
|
|
493
493
|
enabled: import_zod2.z.boolean().default(true),
|
|
494
494
|
// Default to enabled if missing
|
|
495
|
-
insertion_order: import_zod2.z.number().int().default(0),
|
|
495
|
+
insertion_order: import_zod2.z.number().int().nullable().default(0),
|
|
496
496
|
// Optional fields - be lenient with nulls since wild data has them
|
|
497
497
|
extensions: import_zod2.z.record(import_zod2.z.unknown()).optional(),
|
|
498
498
|
case_sensitive: import_zod2.z.boolean().nullable().optional(),
|
|
499
499
|
name: import_zod2.z.string().optional(),
|
|
500
|
-
priority: import_zod2.z.number().int().optional(),
|
|
501
|
-
id: import_zod2.z.number().int().optional(),
|
|
502
|
-
comment: import_zod2.z.string().optional(),
|
|
500
|
+
priority: import_zod2.z.number().int().nullable().optional(),
|
|
501
|
+
id: import_zod2.z.number().int().nullable().optional(),
|
|
502
|
+
comment: import_zod2.z.string().nullable().optional(),
|
|
503
503
|
selective: import_zod2.z.boolean().nullable().optional(),
|
|
504
|
-
secondary_keys: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
504
|
+
secondary_keys: import_zod2.z.array(import_zod2.z.string()).nullable().optional(),
|
|
505
505
|
constant: import_zod2.z.boolean().nullable().optional(),
|
|
506
|
-
position: import_zod2.z.union([import_zod2.z.enum(["before_char", "after_char"]), import_zod2.z.number().int()]).nullable().optional()
|
|
506
|
+
position: import_zod2.z.union([import_zod2.z.enum(["before_char", "after_char"]), import_zod2.z.number().int(), import_zod2.z.literal("")]).nullable().optional()
|
|
507
507
|
}).passthrough();
|
|
508
508
|
var CCv2CharacterBookSchema = import_zod2.z.object({
|
|
509
509
|
name: import_zod2.z.string().optional(),
|
|
@@ -557,17 +557,17 @@ var CCv3LorebookEntrySchema = import_zod3.z.object({
|
|
|
557
557
|
content: import_zod3.z.string(),
|
|
558
558
|
enabled: import_zod3.z.boolean().default(true),
|
|
559
559
|
// Default to enabled if missing
|
|
560
|
-
insertion_order: import_zod3.z.number().int().default(0),
|
|
560
|
+
insertion_order: import_zod3.z.number().int().nullable().default(0),
|
|
561
561
|
// Optional fields - be lenient with nulls since wild data has them
|
|
562
562
|
case_sensitive: import_zod3.z.boolean().nullable().optional(),
|
|
563
563
|
name: import_zod3.z.string().optional(),
|
|
564
|
-
priority: import_zod3.z.number().int().optional(),
|
|
565
|
-
id: import_zod3.z.number().int().optional(),
|
|
566
|
-
comment: import_zod3.z.string().optional(),
|
|
564
|
+
priority: import_zod3.z.number().int().nullable().optional(),
|
|
565
|
+
id: import_zod3.z.number().int().nullable().optional(),
|
|
566
|
+
comment: import_zod3.z.string().nullable().optional(),
|
|
567
567
|
selective: import_zod3.z.boolean().nullable().optional(),
|
|
568
|
-
secondary_keys: import_zod3.z.array(import_zod3.z.string()).optional(),
|
|
568
|
+
secondary_keys: import_zod3.z.array(import_zod3.z.string()).nullable().optional(),
|
|
569
569
|
constant: import_zod3.z.boolean().nullable().optional(),
|
|
570
|
-
position: import_zod3.z.union([import_zod3.z.enum(["before_char", "after_char"]), import_zod3.z.number().int()]).nullable().optional(),
|
|
570
|
+
position: import_zod3.z.union([import_zod3.z.enum(["before_char", "after_char"]), import_zod3.z.number().int(), import_zod3.z.literal("")]).nullable().optional(),
|
|
571
571
|
extensions: import_zod3.z.record(import_zod3.z.unknown()).optional(),
|
|
572
572
|
// v3 specific - also lenient with types since SillyTavern uses numbers for enums
|
|
573
573
|
automation_id: import_zod3.z.string().optional(),
|
|
@@ -7779,7 +7779,7 @@ var DELTA_MAX_FILE_SIZE = 50 * 1024 * 1024;
|
|
|
7779
7779
|
|
|
7780
7780
|
// ../normalizer/dist/index.js
|
|
7781
7781
|
function normalizePosition(position) {
|
|
7782
|
-
if (position === void 0 || position === null) return "before_char";
|
|
7782
|
+
if (position === void 0 || position === null || position === "") return "before_char";
|
|
7783
7783
|
if (typeof position === "string") return position;
|
|
7784
7784
|
return position;
|
|
7785
7785
|
}
|