@plasius/ai-game 0.1.13 → 0.3.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 +31 -0
- package/README.md +39 -0
- package/dist/index.cjs +621 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +205 -1
- package/dist/index.d.ts +205 -1
- package/dist/index.js +575 -6
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0011-player-system-core-contract-boundary.md +56 -0
- package/docs/adrs/adr-0012-identity-projection-contract-boundary.md +55 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,35 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
17
17
|
- **Security**
|
|
18
18
|
- (placeholder)
|
|
19
19
|
|
|
20
|
+
## [0.3.0] - 2026-07-10
|
|
21
|
+
|
|
22
|
+
- **Added**
|
|
23
|
+
- (placeholder)
|
|
24
|
+
|
|
25
|
+
- **Changed**
|
|
26
|
+
- (placeholder)
|
|
27
|
+
|
|
28
|
+
- **Fixed**
|
|
29
|
+
- (placeholder)
|
|
30
|
+
|
|
31
|
+
- **Security**
|
|
32
|
+
- (placeholder)
|
|
33
|
+
|
|
34
|
+
## [0.2.0] - 2026-07-10
|
|
35
|
+
|
|
36
|
+
- **Added**
|
|
37
|
+
- Added versioned Player System session, focus-mode, module, alert-priority, and preference-learning contracts under `isekai.player-system.core.enabled`.
|
|
38
|
+
- Added identity projection and target-classification contracts under `isekai.player-system.identity.enabled`, with self/full, knowledge-gated partial, and line-of-sight-safe target payloads.
|
|
39
|
+
|
|
40
|
+
- **Changed**
|
|
41
|
+
- (placeholder)
|
|
42
|
+
|
|
43
|
+
- **Fixed**
|
|
44
|
+
- (placeholder)
|
|
45
|
+
|
|
46
|
+
- **Security**
|
|
47
|
+
- (placeholder)
|
|
48
|
+
|
|
20
49
|
## [0.1.13] - 2026-06-28
|
|
21
50
|
|
|
22
51
|
- **Added**
|
|
@@ -150,3 +179,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
150
179
|
[0.1.11]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.11
|
|
151
180
|
[0.1.12]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.12
|
|
152
181
|
[0.1.13]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.13
|
|
182
|
+
[0.2.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.2.0
|
|
183
|
+
[0.3.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.3.0
|
package/README.md
CHANGED
|
@@ -67,6 +67,25 @@ The martial slice remains a bridge surface over the published
|
|
|
67
67
|
of barracks drills, mission-earned unlocks, martial techniques, and bounded
|
|
68
68
|
anti-spell fieldcraft without redefining those authority models locally.
|
|
69
69
|
|
|
70
|
+
## Player System core contracts
|
|
71
|
+
|
|
72
|
+
The Player System core contracts are dependency-free shared boundaries under
|
|
73
|
+
`isekai.player-system.core.enabled`. They provide:
|
|
74
|
+
|
|
75
|
+
- versioned ambient, focused, and combat-safe focus-mode contracts;
|
|
76
|
+
- module descriptors for identity, missions, guild quests, event logs, MCC,
|
|
77
|
+
tutorials, and the points store;
|
|
78
|
+
- alert priorities with combat-safe delivery filtering that preserves critical
|
|
79
|
+
and high-priority alerts; and
|
|
80
|
+
- privacy-safe preference-learning inputs with bounded confidence scores,
|
|
81
|
+
confidence bands, and immutable session profiles.
|
|
82
|
+
|
|
83
|
+
Use `createAiGamePlayerSystemSession()`,
|
|
84
|
+
`createAiGamePlayerSystemPreferenceProfile()`, and
|
|
85
|
+
`selectAiGamePlayerSystemAlertsForFocusMode()` at package boundaries. The
|
|
86
|
+
contracts intentionally contain no account identifiers, credentials, or raw
|
|
87
|
+
player telemetry.
|
|
88
|
+
|
|
70
89
|
## Quiet Measure contracts
|
|
71
90
|
|
|
72
91
|
The Quiet Measure surface is intentionally structured as a hidden-runtime contract, not a turnkey morality meter.
|
|
@@ -77,6 +96,24 @@ The Quiet Measure surface is intentionally structured as a hidden-runtime contra
|
|
|
77
96
|
- Runtime helpers validate and defensively copy public Quiet Measure request, title, dominant-read, and reason-code payloads so malformed host input fails closed without leaking hidden-score internals.
|
|
78
97
|
- Evaluation fixtures for hero, villain, counterfeit, tyrant, and redemption regression cases belong in `@plasius/ai-evals`, not this package.
|
|
79
98
|
|
|
99
|
+
## Identity projection contracts
|
|
100
|
+
|
|
101
|
+
Identity projections are versioned, projection-only payloads under
|
|
102
|
+
`isekai.player-system.identity.enabled`. The identity-card boundary remains the
|
|
103
|
+
authority of record; `@plasius/ai-game` only defines portable consumer
|
|
104
|
+
contracts.
|
|
105
|
+
|
|
106
|
+
- Self projections are full reads.
|
|
107
|
+
- Visible targets are full only when both line of sight and full knowledge are
|
|
108
|
+
present; otherwise fields are redacted into a partial read.
|
|
109
|
+
- Occluded targets always become partial reads with `Withheld` field values.
|
|
110
|
+
- Target categories are `allied`, `neutral`, `unknown`, and `unfriendly`.
|
|
111
|
+
|
|
112
|
+
Use `createAiGameIdentityProjectionContract()` to build an immutable payload
|
|
113
|
+
and `selectAiGameVisibleIdentityTargets()` before rendering line-of-sight
|
|
114
|
+
surfaces. The contract does not carry hidden truth or authority-owned mutation
|
|
115
|
+
data.
|
|
116
|
+
|
|
80
117
|
## Development
|
|
81
118
|
|
|
82
119
|
```bash
|
|
@@ -96,6 +133,8 @@ npm run pack:check
|
|
|
96
133
|
- `ai.game.npc-gossip.perspective.enabled`
|
|
97
134
|
- `ai.game.npc-gossip.lifecycle.enabled`
|
|
98
135
|
- `isekai.player-system.quiet-measure.enabled`
|
|
136
|
+
- `isekai.player-system.core.enabled`
|
|
137
|
+
- `isekai.player-system.identity.enabled`
|
|
99
138
|
- `isekai.training.institutions.enabled`
|
|
100
139
|
- `isekai.training.academies.enabled`
|
|
101
140
|
- `isekai.training.martial.enabled`
|