soulcore 0.0.0-stage → 1.0.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ - Finalized Stage 1–10 character intelligence modules.
6
+ - Added public configuration, diagnostics, serialization, adapters, and benchmark tooling.
7
+ - Added optional Phaser translation adapter.
8
+ - Added optional Conversation Lab foundation.
9
+ - Added ESM and CommonJS package builds.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SoulCore
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
- # Temporary Holding Version
1
+ # SoulCore
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ SoulCore is an offline-first character intelligence engine for TypeScript applications and games. It coordinates personality, nature, behaviour, emotion, memory, relationships, conversation, planning, autonomy, and communication.
4
+
5
+ ## Requirements
6
+
7
+
8
+
9
+ - Node.js 18 or newer
10
+ - npm
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install soulcore
16
+ ```
17
+
18
+ ## Quick Start
19
+
20
+ ```ts
21
+ import { SoulCore } from "soulcore";
22
+
23
+ const soul = new SoulCore({ offline: true, seed: 12345 });
24
+ await soul.initialize();
25
+
26
+ const kael = soul.characters.create({
27
+ id: "kael",
28
+ name: "Kael",
29
+ personality: { confidence: 90, aggression: 85, patience: 20 },
30
+ nature: "impulsive",
31
+ });
32
+
33
+ const decision = soul.behaviour.decide("kael", {
34
+ canAct: true,
35
+ enemyVisible: true,
36
+ dangerLevel: 80,
37
+ hasEscapeRoute: true,
38
+ });
39
+
40
+ const response = await soul.communication.communicate({
41
+ speakerId: "kael",
42
+ recipientId: "player",
43
+ intent: "ANSWER",
44
+ incomingMessage: "Why should I trust you?",
45
+ });
46
+
47
+ const exportData = await soul.serialization.exportCharacter(kael.id);
48
+ console.log(decision, response, exportData);
49
+ await soul.shutdown();
50
+ ```
51
+
52
+ ## Development
53
+
54
+ ```bash
55
+ npm run typecheck
56
+ npm test
57
+ npm run build
58
+ npm run release:check
59
+ ```
60
+
61
+ ## Documentation
62
+
63
+ - `docs/API.md` - core API
64
+ - `docs/ADVANCED_INTELLIGENCE_API.md` - goals, plans, autonomy, and simulation
65
+ - `docs/CONVERSATION_API.md` - dialogue and response intelligence
66
+ - `docs/COMMUNICATION_API.md` - languages, styles, talking types, voices, and sounds
67
+ - `docs/MEMORY_API.md` - memory formation and recall
68
+ - `tools/conversation-lab/` - optional developer testing interface
69
+
70
+ SoulCore remains independent of game engines and external AI services. The host application executes proposed actions and renders generated communication results.