character-ai-sdk 1.0.0 → 1.0.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/README.md +16 -16
- package/build-cache.mjs +2 -2
- package/cache-sweep.mjs +2 -2
- package/cache-warm.mjs +2 -2
- package/package.json +1 -1
- package/personas.mjs +7 -0
- package/workspaces.js +2 -2
package/package.json
CHANGED
package/personas.mjs
CHANGED
|
@@ -11,6 +11,13 @@ for (const id of IDS) {
|
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
// warm the shared persona cache once at load so first access is fast
|
|
15
|
+
for (const id of IDS) {
|
|
16
|
+
try {
|
|
17
|
+
personaCache(String(id), cards[id].traits);
|
|
18
|
+
} catch {}
|
|
19
|
+
}
|
|
20
|
+
|
|
14
21
|
export const personas = cards;
|
|
15
22
|
export const DEFAULT_PERSONAS = ["atlas", "sage"];
|
|
16
23
|
|