@plasius/ai-game 0.1.2 → 0.1.6

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 CHANGED
@@ -2,10 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
5
+ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)**, and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0.0.html)**.
7
6
  ## [Unreleased]
8
-
9
7
  - **Added**
10
8
  - (placeholder)
11
9
 
@@ -15,6 +13,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
15
13
  - **Fixed**
16
14
  - (placeholder)
17
15
 
16
+ - **Security**
17
+ - (placeholder)
18
+ ## [0.1.6] - 2026-06-13
19
+
20
+ - **Added**
21
+ - Implemented canonical world event contracts with candidate and canonical envelopes, taxonomy, payload typing, and visibility classes.
22
+ - Added authoritative ingestion interfaces and replay-safe projection/checkpoint contracts.
23
+ - Added incident lifecycle, resolution link, and impact vector models.
24
+ - Added structured gossip topic contracts with lifecycle, confidence, and perspective projection projections.
25
+ - Documented the public `@plasius/ai-game` contract boundary for Quiet Measure hidden-character inference, mission probes, and Judgment verdict models while keeping raw runtime scores host-private by default.
26
+ - Added Player System Points Store ledger, spend-policy, authority-boundary, and proto-social devolution contracts for `PP`, `ESP`, `TIS`, and `DIS`.
27
+
28
+ - **Changed**
29
+ - Extended public package surface to include all world-event, gossip, and points-store contract families needed by `ai-game` and Player System consumers.
30
+ - Moved npm publication to a protected-main-safe release-prep PR workflow with reconciled package, tag, and npm version state.
31
+
32
+ - **Fixed**
33
+ - Preserved release-branch version and changelog edits so protected-main publish runs can complete from prepared metadata on `main`.
34
+ - Detected unpublished prepared releases from `main` metadata instead of merge-commit titles so merged release PRs actually publish.
35
+ - Promoted `Unreleased` changelog entries into versioned release sections through a tested helper instead of fragile inline shell parsing.
36
+
18
37
  - **Security**
19
38
  - (placeholder)
20
39
 
@@ -40,3 +59,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
40
59
 
41
60
  [0.1.1]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.1
42
61
  [0.1.2]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.2
62
+ [0.1.6]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.6
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @plasius/ai-game
2
2
 
3
- Game-domain AI contracts for player action validation, NPC actions, gossip, and feedback.
3
+ Game-domain AI contracts for player action validation, NPC actions, gossip, feedback, and points-store authority seams.
4
4
 
5
5
  ## Scope
6
6
 
7
- This package is part of the layered `@plasius/ai-*` package family. It is intentionally bootstrapped with a small public contract surface so implementation can evolve behind tracked Feature/Story/Task work.
7
+ This package is part of the layered `@plasius/ai-*` package family. It exports canonical public contracts for world events, world-event ingestion, incident impact state, gossip topic projection, and Player System points-store ledgers and spend policies.
8
8
 
9
9
  ## Install
10
10
 
@@ -12,12 +12,24 @@ This package is part of the layered `@plasius/ai-*` package family. It is intent
12
12
  npm install @plasius/ai-game
13
13
  ```
14
14
 
15
- ## Usage
15
+ ## Exports
16
16
 
17
17
  ```ts
18
- import { packageDescriptor } from "@plasius/ai-game";
19
-
20
- console.log(packageDescriptor.packageName);
18
+ import {
19
+ AI_GAME_PACKAGE,
20
+ AI_GAME_FEATURE_FLAG_ID,
21
+ AI_GAME_POINTS_STORE_FEATURE_FLAG_ID,
22
+ aiGameFeatureFlags,
23
+ getAiGameProtoSocialDevolutionPolicy,
24
+ getDefaultAiGamePointsSpendPolicies,
25
+ packageDescriptor,
26
+ type GameWorldEvent,
27
+ type WorldEventIngestionPort,
28
+ type WorldIncidentThread,
29
+ type GossipTopic,
30
+ type GossipPerspectiveProjection,
31
+ type AiGamePointsLedgerSnapshot
32
+ } from "@plasius/ai-game";
21
33
  ```
22
34
 
23
35
  ## Development
@@ -30,6 +42,32 @@ npm run test:coverage
30
42
  npm run pack:check
31
43
  ```
32
44
 
45
+ ## Release Workflow
46
+
47
+ Protected `main` releases use a two-step flow:
48
+
49
+ 1. Run `.github/workflows/cd.yml` with `bump=patch|minor|major` to push a `release/vX.Y.Z` prep branch and, when repository settings allow it, open the matching PR from `main`. The workflow creates that branch before committing the versioned `package.json` and `CHANGELOG.md` updates, and a tested helper promotes the current `Unreleased` section into the matching version header so the release metadata is preserved for review and publish.
50
+ 2. Merge that PR to `main` so the next `main` push can detect the unpublished versioned metadata, tag the release, publish to npm, and publish the GitHub release.
51
+
52
+ If a release version is already prepared on `main` and only publication remains, rerun `.github/workflows/cd.yml` with `bump=none` to publish the current version from `main` without creating a new release branch.
53
+
54
+ ## Feature flags
55
+
56
+ - `ai.game.event-recorder.contracts.enabled`
57
+ - `ai.game.event-recorder.ingestion.enabled`
58
+ - `ai.game.event-recorder.impact.enabled`
59
+ - `ai.game.npc-gossip.topics.enabled`
60
+ - `ai.game.npc-gossip.perspective.enabled`
61
+ - `ai.game.npc-gossip.lifecycle.enabled`
62
+ - `isekai.player-system.points-store.enabled`
63
+
64
+ ## Points Store contracts
65
+
66
+ - `AI_GAME_POINTS_LEDGER_IDS` exports the canonical `PP`, `ESP`, `TIS`, and `DIS` ledger IDs as `pp`, `esp`, `tis`, and `dis`.
67
+ - `resolveAiGamePointsAuthorityBoundary()` maps each ledger to its public authority band and owning external system.
68
+ - `getDefaultAiGamePointsSpendPolicies()` describes the documented spend-policy surface for each ledger.
69
+ - `getAiGameProtoSocialDevolutionPolicy()` and `evaluateAiGameProtoSocialDevolutionEligibility()` define the one-time proto-social PP devolution window and its closure after social-form lock.
70
+
33
71
  ## Governance
34
72
 
35
73
  - Security policy: [SECURITY.md](./SECURITY.md)