@plasius/ai-game 0.6.6 → 0.6.8
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 +35 -0
- package/README.md +14 -2
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0020-hosted-oidc-package-publication.md +4 -0
- package/docs/adrs/adr-0021-training-upgrade-rollout-compatibility.md +39 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +9 -9
|
@@ -20,6 +20,10 @@ checks. No product capability is introduced.
|
|
|
20
20
|
|
|
21
21
|
Publication is phase-isolated: dependency installation, package validation, SBOM generation, and immutable tarball packing run in `validate_and_pack` without the `production` environment or OIDC permission. The final hosted `publish` job downloads only that sealed artifact, explicitly installs npm 11.6.2, runs no repository dependency code, and publishes the tarball with lifecycle scripts disabled. It re-fetches current `main` immediately before the first release mutation and again immediately before npm publication. `.npmrc` contains no registry-auth placeholder, and release preparation returns the reviewed current `main` HEAD rather than package-file history.
|
|
22
22
|
|
|
23
|
+
Reviewed CI runs on explicit GitHub-hosted capacity with package-manager caching
|
|
24
|
+
disabled. Fork pull-request code is rejected before package validation, and the
|
|
25
|
+
same exact workflow can be dispatched manually for branch-head verification.
|
|
26
|
+
|
|
23
27
|
The final npm publication job in `.github/workflows/cd.yml`:
|
|
24
28
|
|
|
25
29
|
1. runs on the literal `ubuntu-latest` GitHub-hosted runner;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ADR 0021: Preserve AI-game rollout keys across the training 1.x upgrade
|
|
2
|
+
|
|
3
|
+
Status: Accepted
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
Dependency Task #6 under Plasius-LTD/plasius-ltd-site#293 upgrades the bridge
|
|
8
|
+
from training 0.2 to the published training 1.0.2 package. The upstream package
|
|
9
|
+
renamed its rollout constants from `isekai.training.*` to `harmony.training.*`.
|
|
10
|
+
Re-exporting those constants changed AI-game's existing public string values
|
|
11
|
+
and failed its contract tests, even though the authority types and helpers
|
|
12
|
+
remain compatible.
|
|
13
|
+
|
|
14
|
+
## Decision
|
|
15
|
+
|
|
16
|
+
Continue using the canonical training package for all institutions, trust,
|
|
17
|
+
specialization types, validation, and construction. Keep the three established
|
|
18
|
+
AI-game training rollout identifiers as explicit compatibility constants at the
|
|
19
|
+
bridge boundary. The bridge does not evaluate flags or duplicate authority
|
|
20
|
+
logic. A separate, intentional API migration is required to rename these keys.
|
|
21
|
+
|
|
22
|
+
The dependency wave inherits `ops.dependency-refresh.latest-stable.2026-05.enabled`
|
|
23
|
+
from the parent Feature; application rollout remains site-controlled. Direct
|
|
24
|
+
training consumers retain training's new Harmony keys.
|
|
25
|
+
|
|
26
|
+
## Alternatives and consequences
|
|
27
|
+
|
|
28
|
+
Adopting the new string values would silently change configured rollout gates.
|
|
29
|
+
Keeping the old dependency would leave consumers behind the verified upstream
|
|
30
|
+
release. Explicit compatibility constants allow the upgrade without either
|
|
31
|
+
behavior. Existing callers and their rollout configuration remain unchanged.
|
|
32
|
+
|
|
33
|
+
## Validation and rollback
|
|
34
|
+
|
|
35
|
+
A regression test checks the upstream 1.x key and all three stable bridge keys.
|
|
36
|
+
Existing training behavior tests, typecheck, build, lint, coverage and package
|
|
37
|
+
checks verify the upgrade. Every changed source file must appear in LCOV.
|
|
38
|
+
Rollback pins the prior published AI-game version; existing flag keys require
|
|
39
|
+
no operator migration.
|
package/docs/adrs/index.md
CHANGED
|
@@ -20,3 +20,5 @@
|
|
|
20
20
|
- [ADR-0017: Tutorial contract boundary](./adr-0017-tutorial-contract-boundary.md)
|
|
21
21
|
- [ADR-0018: Apprenticeship handoff contract boundary](./adr-0018-apprenticeship-handoff-contract-boundary.md)
|
|
22
22
|
- [ADR-0020: Hosted OIDC Package Publication](./adr-0020-hosted-oidc-package-publication.md)
|
|
23
|
+
|
|
24
|
+
- [ADR 0021: Training upgrade rollout compatibility](adr-0021-training-upgrade-rollout-compatibility.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/ai-game",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"description": "Game-domain AI contracts for player action validation, NPC actions, gossip, and feedback.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"homepage": "https://github.com/Plasius-LTD/ai-game#readme",
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint/js": "^10.0.1",
|
|
66
|
-
"@types/node": "^26.
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
68
|
-
"@typescript-eslint/parser": "^8.
|
|
69
|
-
"@vitest/coverage-v8": "^4.1.
|
|
70
|
-
"eslint": "^10.
|
|
71
|
-
"globals": "^17.
|
|
66
|
+
"@types/node": "^26.4.0",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
69
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
70
|
+
"eslint": "^10.9.1",
|
|
71
|
+
"globals": "^17.11.0",
|
|
72
72
|
"rimraf": "^6.1.3",
|
|
73
73
|
"tsup": "^8.5.1",
|
|
74
74
|
"typescript": "^6.0.3",
|
|
75
|
-
"vitest": "^4.1.
|
|
75
|
+
"vitest": "^4.1.11"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
@@ -98,6 +98,6 @@
|
|
|
98
98
|
"minimatch": "^10.2.1"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@plasius/training": "^0.
|
|
101
|
+
"@plasius/training": "^1.0.2"
|
|
102
102
|
}
|
|
103
103
|
}
|