@ai-rpg-engine/modules 1.0.0 → 2.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/README.md +66 -0
- package/package.json +38 -34
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/mcp-tool-shop-org/brand/main/logos/ai-rpg-engine/readme.png" width="400" alt="AI RPG Engine">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/mcp-tool-shop-org/ai-rpg-engine/actions/workflows/ci.yml"><img src="https://github.com/mcp-tool-shop-org/ai-rpg-engine/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
7
|
+
<a href="https://github.com/mcp-tool-shop-org/ai-rpg-engine/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
|
8
|
+
<a href="https://mcp-tool-shop-org.github.io/ai-rpg-engine/"><img src="https://img.shields.io/badge/Landing_Page-live-blue" alt="Landing Page"></a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
# @ai-rpg-engine/modules
|
|
12
|
+
|
|
13
|
+
17 composable simulation modules for AI RPG Engine — combat, dialogue, cognition, perception, factions, and more.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @ai-rpg-engine/modules
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Modules
|
|
22
|
+
|
|
23
|
+
| Module | Description |
|
|
24
|
+
|--------|-------------|
|
|
25
|
+
| `combatCore` | Attack/defend, damage, defeat, stamina |
|
|
26
|
+
| `dialogueCore` | Graph-based dialogue trees with conditions |
|
|
27
|
+
| `inventoryCore` | Items, equipment, use/equip/unequip |
|
|
28
|
+
| `traversalCore` | Zone movement and exit validation |
|
|
29
|
+
| `statusCore` | Status effects with duration and stacking |
|
|
30
|
+
| `environmentCore` | Dynamic zone properties, hazards, decay |
|
|
31
|
+
| `cognitionCore` | AI beliefs, intent, morale, memory |
|
|
32
|
+
| `perceptionFilter` | Sensory channels, clarity, cross-zone hearing |
|
|
33
|
+
| `narrativeAuthority` | Truth vs presentation, concealment, distortion |
|
|
34
|
+
| `progressionCore` | Currency-based advancement, skill trees |
|
|
35
|
+
| `factionCognition` | Faction beliefs, trust, inter-faction knowledge |
|
|
36
|
+
| `rumorPropagation` | Information spread with confidence decay |
|
|
37
|
+
| `knowledgeDecay` | Time-based confidence erosion |
|
|
38
|
+
| `districtCore` | Spatial memory, zone metrics, alert thresholds |
|
|
39
|
+
| `beliefProvenance` | Trace reconstruction across perception/cognition/rumor |
|
|
40
|
+
| `observerPresentation` | Per-observer event filtering, divergence tracking |
|
|
41
|
+
| `simulationInspector` | Runtime inspection, health checks, diagnostics |
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { Engine } from '@ai-rpg-engine/core';
|
|
47
|
+
import { combatCore, dialogueCore, cognitionCore, perceptionFilter } from '@ai-rpg-engine/modules';
|
|
48
|
+
|
|
49
|
+
const engine = new Engine({
|
|
50
|
+
manifest: { /* ... */ },
|
|
51
|
+
seed: 42,
|
|
52
|
+
modules: [combatCore(), dialogueCore(), cognitionCore(), perceptionFilter()],
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Documentation
|
|
57
|
+
|
|
58
|
+
- [Modules (Ch. 6)](https://mcp-tool-shop-org.github.io/ai-rpg-engine/handbook/06-modules/)
|
|
59
|
+
- [AI Cognition (Ch. 8)](https://mcp-tool-shop-org.github.io/ai-rpg-engine/handbook/08-ai-cognition/)
|
|
60
|
+
- [Perception (Ch. 9)](https://mcp-tool-shop-org.github.io/ai-rpg-engine/handbook/09-perception-layers/)
|
|
61
|
+
- [Handbook](https://mcp-tool-shop-org.github.io/ai-rpg-engine/handbook/)
|
|
62
|
+
- [GitHub](https://github.com/mcp-tool-shop-org/ai-rpg-engine)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
Built by <a href="https://mcp-tool-shop.github.io/">MCP Tool Shop</a>
|
package/package.json
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ai-rpg-engine/modules",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "AI RPG Engine built-in modules: combat, dialogue, inventory, traversal, status",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": ["dist"],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsc",
|
|
17
|
-
"test": "vitest run"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@ai-rpg-engine/core": "*",
|
|
21
|
-
"@ai-rpg-engine/content-schema": "*"
|
|
22
|
-
},
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"author": "mcp-tool-shop",
|
|
25
|
-
"homepage": "https://mcp-tool-shop-org.github.io/ai-rpg-engine/",
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "https://github.com/mcp-tool-shop-org/ai-rpg-engine.git",
|
|
29
|
-
"directory": "packages/modules"
|
|
30
|
-
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ai-rpg-engine/modules",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "AI RPG Engine built-in modules: combat, dialogue, inventory, traversal, status",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist"],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"test": "vitest run"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@ai-rpg-engine/core": "*",
|
|
21
|
+
"@ai-rpg-engine/content-schema": "*"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "mcp-tool-shop",
|
|
25
|
+
"homepage": "https://mcp-tool-shop-org.github.io/ai-rpg-engine/",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/mcp-tool-shop-org/ai-rpg-engine.git",
|
|
29
|
+
"directory": "packages/modules"
|
|
30
|
+
},
|
|
31
|
+
"keywords": ["rpg", "game-engine", "simulation", "combat", "perception", "cognition", "factions"],
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/mcp-tool-shop-org/ai-rpg-engine/issues"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=20"
|
|
37
|
+
}
|
|
38
|
+
}
|