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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# ✦ Character AI SDK
|
|
4
4
|
|
|
5
5
|
### Default personas, durable character memory, and provider adapters in a single package
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Pick a persona, wire a model, and ship a character that remembers. The package c
|
|
|
8
8
|
Labs persona catalog with a provider-neutral memory and response runtime.
|
|
9
9
|
|
|
10
10
|
<p>
|
|
11
|
-
<img alt="Version 1.0.
|
|
11
|
+
<img alt="Version 1.0.1" src="https://img.shields.io/badge/version-1.0.1-7c3aed?style=for-the-badge" />
|
|
12
12
|
<img alt="Node.js 20 or newer" src="https://img.shields.io/badge/node-%3E%3D20-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" />
|
|
13
13
|
<img alt="TypeScript strict" src="https://img.shields.io/badge/TypeScript-strict-3178C6?style=for-the-badge&logo=typescript&logoColor=white" />
|
|
14
14
|
<img alt="MIT license" src="https://img.shields.io/badge/license-MIT-22c55e?style=for-the-badge" />
|
|
@@ -22,8 +22,8 @@ Labs persona catalog with a provider-neutral memory and response runtime.
|
|
|
22
22
|
<img alt="SillyTavern compatible" src="https://img.shields.io/badge/SillyTavern-compatible-e879f9?style=flat-square" />
|
|
23
23
|
</p>
|
|
24
24
|
|
|
25
|
-
[Quick start](#quick-start)
|
|
26
|
-
[Documentation](#documentation)
|
|
25
|
+
[Quick start](#quick-start) · [Personas](#personas) · [Choose your stack](#choose-your-stack) ·
|
|
26
|
+
[Documentation](#documentation) · [API reference](./docs/API_REFERENCE.md) ·
|
|
27
27
|
[Contributing](./CONTRIBUTING.md)
|
|
28
28
|
|
|
29
29
|
</div>
|
|
@@ -42,11 +42,11 @@ are often tangled together:
|
|
|
42
42
|
|
|
43
43
|
| Layer | Responsibility | Replaceable? |
|
|
44
44
|
| ----------- | ------------------------------------------------------------------------ | :----------: |
|
|
45
|
-
| Personas | Ready-made cards: prompts, traits, greetings, and memory seeds |
|
|
46
|
-
| Memory | Extraction, provenance, consolidation, visibility, recall, and lifecycle |
|
|
47
|
-
| Model | Character response generation |
|
|
48
|
-
| Persistence | Memory records and persona state |
|
|
49
|
-
| Interface | Chat, voice, game, HTTP service, or SillyTavern |
|
|
45
|
+
| Personas | Ready-made cards: prompts, traits, greetings, and memory seeds | ✓ |
|
|
46
|
+
| Memory | Extraction, provenance, consolidation, visibility, recall, and lifecycle | ✓ |
|
|
47
|
+
| Model | Character response generation | ✓ |
|
|
48
|
+
| Persistence | Memory records and persona state | ✓ |
|
|
49
|
+
| Interface | Chat, voice, game, HTTP service, or SillyTavern | ✓ |
|
|
50
50
|
|
|
51
51
|
The persona catalog and runtime share one versioned package, so applications can adopt a bundled
|
|
52
52
|
character without coupling its identity or memory to one provider.
|
|
@@ -68,8 +68,8 @@ character without coupling its identity or memory to one provider.
|
|
|
68
68
|
|
|
69
69
|
```mermaid
|
|
70
70
|
flowchart LR
|
|
71
|
-
Cards[Persona cards
|
|
72
|
-
UI[Chat
|
|
71
|
+
Cards[Persona cards · atlas · sage · …] --> Manifest[Persona manifest]
|
|
72
|
+
UI[Chat · Voice · Game · SillyTavern] --> Runtime[Persona Runtime]
|
|
73
73
|
Runtime --> Compiler[Persona Compiler]
|
|
74
74
|
Runtime --> Recall[Memory Recall]
|
|
75
75
|
Runtime --> Model[Character Model]
|
|
@@ -255,7 +255,7 @@ reject them according to confidence and provenance rules.
|
|
|
255
255
|
| `lumen` | Lumen | technical explainer |
|
|
256
256
|
| `mica` | Mica | operations dispatcher, incident triage |
|
|
257
257
|
|
|
258
|
-
`DEFAULT_PERSONAS` is `["atlas", "sage"]
|
|
258
|
+
`DEFAULT_PERSONAS` is `["atlas", "sage"]`—the pair used in Tavern Labs demos. `getPersona(id)`
|
|
259
259
|
returns Atlas when an unknown ID is supplied; call `personaIds()` first when unknown IDs should be
|
|
260
260
|
treated as errors.
|
|
261
261
|
|
|
@@ -371,7 +371,7 @@ tenant-partitioned database such as PostgreSQL or DynamoDB.
|
|
|
371
371
|
|
|
372
372
|
## Documentation
|
|
373
373
|
|
|
374
|
-
| Guide | Use it when
|
|
374
|
+
| Guide | Use it when… |
|
|
375
375
|
| -------------------------------------------- | ------------------------------------------------------------- |
|
|
376
376
|
| [Getting started](./docs/GETTING_STARTED.md) | You want a complete first integration with environment setup |
|
|
377
377
|
| [Concepts](./docs/CONCEPTS.md) | You need to understand memory scopes, lifecycle, and branches |
|
|
@@ -407,7 +407,7 @@ list.
|
|
|
407
407
|
|
|
408
408
|
## Project status
|
|
409
409
|
|
|
410
|
-
Version `1.0.
|
|
410
|
+
Version `1.0.1` includes the memory runtime, both provider adapters, the SQLite store, the persona
|
|
411
411
|
layer with relationship state, SillyTavern compatibility, the service adapter, and eight default
|
|
412
412
|
persona cards.
|
|
413
413
|
|
|
@@ -421,7 +421,7 @@ When referencing the software, cite the package name, semantic version, and exac
|
|
|
421
421
|
result can be reproduced:
|
|
422
422
|
|
|
423
423
|
```text
|
|
424
|
-
character-ai-sdk, version 1.0.
|
|
424
|
+
character-ai-sdk, version 1.0.1, commit <git-commit>, MIT License.
|
|
425
425
|
```
|
|
426
426
|
|
|
427
427
|
Released under the [MIT License](./LICENSE). See [CHANGELOG.md](./CHANGELOG.md) for version history.
|
|
@@ -430,6 +430,6 @@ Released under the [MIT License](./LICENSE). See [CHANGELOG.md](./CHANGELOG.md)
|
|
|
430
430
|
|
|
431
431
|
<div align="center">
|
|
432
432
|
|
|
433
|
-
Built for characters that should remember who they are
|
|
433
|
+
Built for characters that should remember who they are—and who you are to them.
|
|
434
434
|
|
|
435
435
|
</div>
|