@plasius/ai-game 0.4.0 → 0.6.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 +34 -0
- package/README.md +37 -1
- package/dist/index.cjs +450 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -1
- package/dist/index.d.ts +135 -1
- package/dist/index.js +417 -5
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0014-player-system-guidance-cue-contract-boundary.md +43 -0
- package/docs/adrs/adr-0016-observed-event-log-and-gossip-export-contract-boundary.md +52 -0
- package/docs/adrs/index.md +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,38 @@ 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.6.0] - 2026-07-11
|
|
21
|
+
|
|
22
|
+
- **Added**
|
|
23
|
+
- Added observed-event log, recency-window, highlight-summary, and gossip-export contracts under `isekai.player-system.logs.enabled`.
|
|
24
|
+
- Added defensive validation and immutable factories so gossip highlights can only reference the observed events in their source window.
|
|
25
|
+
|
|
26
|
+
- **Changed**
|
|
27
|
+
- (placeholder)
|
|
28
|
+
|
|
29
|
+
- **Fixed**
|
|
30
|
+
- (placeholder)
|
|
31
|
+
|
|
32
|
+
- **Security**
|
|
33
|
+
- (placeholder)
|
|
34
|
+
|
|
35
|
+
## [0.5.0] - 2026-07-11
|
|
36
|
+
|
|
37
|
+
- **Added**
|
|
38
|
+
- (placeholder)
|
|
39
|
+
- Added bounded Player System guidance cue contracts with explicit alert
|
|
40
|
+
priority, multimodal fallback identifiers, payload-size, and frequency
|
|
41
|
+
metadata under `isekai.player-system.guidance-nfr.enabled`.
|
|
42
|
+
|
|
43
|
+
- **Changed**
|
|
44
|
+
- (placeholder)
|
|
45
|
+
|
|
46
|
+
- **Fixed**
|
|
47
|
+
- (placeholder)
|
|
48
|
+
|
|
49
|
+
- **Security**
|
|
50
|
+
- (placeholder)
|
|
51
|
+
|
|
20
52
|
## [0.4.0] - 2026-07-10
|
|
21
53
|
|
|
22
54
|
- **Added**
|
|
@@ -196,3 +228,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
|
|
|
196
228
|
[0.2.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.2.0
|
|
197
229
|
[0.3.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.3.0
|
|
198
230
|
[0.4.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.4.0
|
|
231
|
+
[0.5.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.5.0
|
|
232
|
+
[0.6.0]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.6.0
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @plasius/ai-game
|
|
2
2
|
|
|
3
|
-
Game-domain AI contracts for player action validation, adaptive System missions, NPC actions, gossip, Quiet Measure mission probes, Judgment disclosure surfaces, and Player System-readable training recommendations.
|
|
3
|
+
Game-domain AI contracts for player action validation, adaptive System missions, NPC actions, gossip, observed event logs, Quiet Measure mission probes, Judgment disclosure surfaces, and Player System-readable training recommendations.
|
|
4
4
|
|
|
5
5
|
## Scope
|
|
6
6
|
|
|
@@ -86,6 +86,19 @@ Use `createAiGamePlayerSystemSession()`,
|
|
|
86
86
|
contracts intentionally contain no account identifiers, credentials, or raw
|
|
87
87
|
player telemetry.
|
|
88
88
|
|
|
89
|
+
### Guidance cue contracts
|
|
90
|
+
|
|
91
|
+
Guidance cues reuse the core alert-priority vocabulary while adding explicit
|
|
92
|
+
multimodal fallback identifiers and bounded delivery assumptions under
|
|
93
|
+
`isekai.player-system.guidance-nfr.enabled`:
|
|
94
|
+
|
|
95
|
+
- `createAiGamePlayerSystemGuidanceCue()` validates cue source/fallback pairs.
|
|
96
|
+
- `maxPayloadBytes` is capped at 4,096 bytes and
|
|
97
|
+
`maxOccurrencesPerMinute` is capped at 30 to make client performance
|
|
98
|
+
assumptions machine-checkable.
|
|
99
|
+
- Voice, narration, and speech-capture failures map to touch/text summaries,
|
|
100
|
+
live-region status copy, and visible manual actions respectively.
|
|
101
|
+
|
|
89
102
|
## Adaptive mission contracts
|
|
90
103
|
|
|
91
104
|
Adaptive System missions are versioned, dependency-free shared contracts under
|
|
@@ -143,6 +156,27 @@ and `selectAiGameVisibleIdentityTargets()` before rendering line-of-sight
|
|
|
143
156
|
surfaces. The contract does not carry hidden truth or authority-owned mutation
|
|
144
157
|
data.
|
|
145
158
|
|
|
159
|
+
## Observed event log and gossip export contracts
|
|
160
|
+
|
|
161
|
+
Observed event contracts provide a shared, privacy-safe basis for Player System
|
|
162
|
+
logs and gossip transport under `isekai.player-system.logs.enabled`:
|
|
163
|
+
|
|
164
|
+
- `AiGameObservedEvent` carries bounded domain references, summaries, visibility,
|
|
165
|
+
significance, and tags without raw player telemetry or account identifiers.
|
|
166
|
+
- `AiGameObservedEventRecencyWindow` validates that events fall inside a single
|
|
167
|
+
time-bounded window.
|
|
168
|
+
- `AiGameObservedEventHighlightSummary` references event IDs from its source
|
|
169
|
+
window rather than copying event truth.
|
|
170
|
+
- `AiGameGossipExport` packages one recency window and validated highlights for
|
|
171
|
+
a declared player, NPC, or public audience.
|
|
172
|
+
|
|
173
|
+
Use `createAiGameObservedEvent()`,
|
|
174
|
+
`createAiGameObservedEventRecencyWindow()`,
|
|
175
|
+
`createAiGameObservedEventHighlightSummary()`, and
|
|
176
|
+
`createAiGameGossipExport()` at package boundaries. Audience authorization,
|
|
177
|
+
feature-flag evaluation, persistence, and gossip generation remain the
|
|
178
|
+
responsibility of consuming services.
|
|
179
|
+
|
|
146
180
|
## Development
|
|
147
181
|
|
|
148
182
|
```bash
|
|
@@ -163,7 +197,9 @@ npm run pack:check
|
|
|
163
197
|
- `ai.game.npc-gossip.lifecycle.enabled`
|
|
164
198
|
- `isekai.player-system.quiet-measure.enabled`
|
|
165
199
|
- `isekai.player-system.core.enabled`
|
|
200
|
+
- `isekai.player-system.guidance-nfr.enabled`
|
|
166
201
|
- `isekai.player-system.identity.enabled`
|
|
202
|
+
- `isekai.player-system.logs.enabled`
|
|
167
203
|
- `isekai.training.institutions.enabled`
|
|
168
204
|
- `isekai.training.academies.enabled`
|
|
169
205
|
- `isekai.training.martial.enabled`
|