@character-foundry/character-foundry 0.1.9-dev.1765913722 → 0.1.9-dev.1765933047
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/app-framework.cjs +1 -1
- package/dist/app-framework.cjs.map +1 -1
- package/dist/app-framework.js +1 -1
- package/dist/app-framework.js.map +1 -1
- package/dist/charx.cjs +27 -22
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.d.cts +368 -207
- package/dist/charx.d.ts +368 -207
- package/dist/charx.js +27 -22
- package/dist/charx.js.map +1 -1
- package/dist/exporter.cjs +27 -22
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.d.cts +368 -207
- package/dist/exporter.d.ts +368 -207
- package/dist/exporter.js +27 -22
- package/dist/exporter.js.map +1 -1
- package/dist/federation.d.cts +368 -207
- package/dist/federation.d.ts +368 -207
- package/dist/index.cjs +33 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +708 -423
- package/dist/index.d.ts +708 -423
- package/dist/index.js +33 -23
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +33 -23
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +564 -318
- package/dist/loader.d.ts +564 -318
- package/dist/loader.js +33 -23
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.cjs +5 -5
- package/dist/lorebook.cjs.map +1 -1
- package/dist/lorebook.d.cts +674 -381
- package/dist/lorebook.d.ts +674 -381
- package/dist/lorebook.js +5 -5
- package/dist/lorebook.js.map +1 -1
- package/dist/normalizer.cjs +33 -23
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.d.cts +896 -560
- package/dist/normalizer.d.ts +896 -560
- package/dist/normalizer.js +33 -23
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +27 -22
- package/dist/png.cjs.map +1 -1
- package/dist/png.d.cts +512 -312
- package/dist/png.d.ts +512 -312
- package/dist/png.js +27 -22
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs +27 -22
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +1444 -896
- package/dist/schemas.d.ts +1444 -896
- package/dist/schemas.js +27 -22
- package/dist/schemas.js.map +1 -1
- package/dist/voxta.cjs +27 -22
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.d.cts +564 -318
- package/dist/voxta.d.ts +564 -318
- package/dist/voxta.js +27 -22
- package/dist/voxta.js.map +1 -1
- package/package.json +7 -7
package/dist/charx.cjs
CHANGED
|
@@ -484,22 +484,24 @@ var ExtractedAssetSchema = import_zod.z.object({
|
|
|
484
484
|
mimeType: import_zod.z.string()
|
|
485
485
|
});
|
|
486
486
|
var CCv2LorebookEntrySchema = import_zod2.z.object({
|
|
487
|
-
keys: import_zod2.z.array(import_zod2.z.string()),
|
|
487
|
+
keys: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
488
|
+
// Some tools use 'key' instead
|
|
488
489
|
content: import_zod2.z.string(),
|
|
489
|
-
enabled: import_zod2.z.boolean(),
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
enabled: import_zod2.z.boolean().default(true),
|
|
491
|
+
// Default to enabled if missing
|
|
492
|
+
insertion_order: import_zod2.z.number().int().default(0),
|
|
493
|
+
// Optional fields - be lenient with nulls since wild data has them
|
|
492
494
|
extensions: import_zod2.z.record(import_zod2.z.unknown()).optional(),
|
|
493
|
-
case_sensitive: import_zod2.z.boolean().optional(),
|
|
495
|
+
case_sensitive: import_zod2.z.boolean().nullable().optional(),
|
|
494
496
|
name: import_zod2.z.string().optional(),
|
|
495
497
|
priority: import_zod2.z.number().int().optional(),
|
|
496
498
|
id: import_zod2.z.number().int().optional(),
|
|
497
499
|
comment: import_zod2.z.string().optional(),
|
|
498
|
-
selective: import_zod2.z.boolean().optional(),
|
|
500
|
+
selective: import_zod2.z.boolean().nullable().optional(),
|
|
499
501
|
secondary_keys: import_zod2.z.array(import_zod2.z.string()).optional(),
|
|
500
|
-
constant: import_zod2.z.boolean().optional(),
|
|
501
|
-
position: import_zod2.z.enum(["before_char", "after_char"]).optional()
|
|
502
|
-
});
|
|
502
|
+
constant: import_zod2.z.boolean().nullable().optional(),
|
|
503
|
+
position: import_zod2.z.union([import_zod2.z.enum(["before_char", "after_char"]), import_zod2.z.number().int()]).nullable().optional()
|
|
504
|
+
}).passthrough();
|
|
503
505
|
var CCv2CharacterBookSchema = import_zod2.z.object({
|
|
504
506
|
name: import_zod2.z.string().optional(),
|
|
505
507
|
description: import_zod2.z.string().optional(),
|
|
@@ -536,31 +538,34 @@ var CCv2WrappedSchema = import_zod2.z.object({
|
|
|
536
538
|
data: CCv2DataSchema
|
|
537
539
|
});
|
|
538
540
|
var CCv3LorebookEntrySchema = import_zod3.z.object({
|
|
539
|
-
keys: import_zod3.z.array(import_zod3.z.string()),
|
|
541
|
+
keys: import_zod3.z.array(import_zod3.z.string()).optional(),
|
|
542
|
+
// Some tools use 'key' instead
|
|
540
543
|
content: import_zod3.z.string(),
|
|
541
|
-
enabled: import_zod3.z.boolean(),
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
544
|
+
enabled: import_zod3.z.boolean().default(true),
|
|
545
|
+
// Default to enabled if missing
|
|
546
|
+
insertion_order: import_zod3.z.number().int().default(0),
|
|
547
|
+
// Optional fields - be lenient with nulls since wild data has them
|
|
548
|
+
case_sensitive: import_zod3.z.boolean().nullable().optional(),
|
|
545
549
|
name: import_zod3.z.string().optional(),
|
|
546
550
|
priority: import_zod3.z.number().int().optional(),
|
|
547
551
|
id: import_zod3.z.number().int().optional(),
|
|
548
552
|
comment: import_zod3.z.string().optional(),
|
|
549
|
-
selective: import_zod3.z.boolean().optional(),
|
|
553
|
+
selective: import_zod3.z.boolean().nullable().optional(),
|
|
550
554
|
secondary_keys: import_zod3.z.array(import_zod3.z.string()).optional(),
|
|
551
|
-
constant: import_zod3.z.boolean().optional(),
|
|
552
|
-
position: import_zod3.z.enum(["before_char", "after_char"]).optional(),
|
|
555
|
+
constant: import_zod3.z.boolean().nullable().optional(),
|
|
556
|
+
position: import_zod3.z.union([import_zod3.z.enum(["before_char", "after_char"]), import_zod3.z.number().int()]).nullable().optional(),
|
|
553
557
|
extensions: import_zod3.z.record(import_zod3.z.unknown()).optional(),
|
|
554
|
-
// v3 specific
|
|
558
|
+
// v3 specific - also lenient with types since SillyTavern uses numbers for enums
|
|
555
559
|
automation_id: import_zod3.z.string().optional(),
|
|
556
|
-
role: import_zod3.z.enum(["system", "user", "assistant"]).optional(),
|
|
560
|
+
role: import_zod3.z.union([import_zod3.z.enum(["system", "user", "assistant"]), import_zod3.z.number().int()]).nullable().optional(),
|
|
557
561
|
group: import_zod3.z.string().optional(),
|
|
558
562
|
scan_frequency: import_zod3.z.number().int().nonnegative().optional(),
|
|
559
|
-
probability: import_zod3.z.number().min(0).max(
|
|
563
|
+
probability: import_zod3.z.number().min(0).max(100).optional(),
|
|
564
|
+
// Some tools use 0-100 instead of 0-1
|
|
560
565
|
use_regex: import_zod3.z.boolean().optional(),
|
|
561
566
|
depth: import_zod3.z.number().int().nonnegative().optional(),
|
|
562
|
-
selective_logic: import_zod3.z.enum(["AND", "NOT"]).optional()
|
|
563
|
-
});
|
|
567
|
+
selective_logic: import_zod3.z.union([import_zod3.z.enum(["AND", "NOT"]), import_zod3.z.number().int()]).optional()
|
|
568
|
+
}).passthrough();
|
|
564
569
|
var CCv3CharacterBookSchema = import_zod3.z.object({
|
|
565
570
|
name: import_zod3.z.string().optional(),
|
|
566
571
|
description: import_zod3.z.string().optional(),
|