@randomplay/data 0.0.4 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randomplay/data",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -23,13 +23,14 @@
23
23
  "dist",
24
24
  "cleaned",
25
25
  "README.md",
26
- "package.json"
26
+ "package.json",
27
+ "source-registry.json"
27
28
  ],
28
29
  "publishConfig": {
29
30
  "access": "public"
30
31
  },
31
32
  "dependencies": {
32
- "@randomplay/core": "0.0.4"
33
+ "@randomplay/core": "0.1.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "cheerio": "^1.2.0",
@@ -38,16 +39,24 @@
38
39
  },
39
40
  "scripts": {
40
41
  "audit:excel": "node scripts/excel-source.mjs audit --generated-at 2026-05-05T17:40:00+08:00",
41
- "audit:golden-v1": "tsx scripts/golden-v1-replay.ts audit --generated-at 2026-05-05T18:20:00+08:00",
42
+ "audit:golden-v1": "tsx scripts/golden-v1-replay.ts audit --generated-at 2026-05-15T18:46:10+08:00",
43
+ "audit:nanoka-runtime": "tsx scripts/nanoka-runtime-game-data.ts audit",
44
+ "audit:source-migration": "node scripts/source-migration-drift.mjs audit",
42
45
  "build": "tsdown src/index.ts src/types.ts --format esm --dts --clean --out-dir dist",
43
46
  "check": "tsc -p tsconfig.json --noEmit",
44
47
  "fetch:buhflipexplode-da": "node scripts/buhflipexplode-da-source.mjs fetch",
45
48
  "fetch:mihoyo-da": "node scripts/mihoyo-da-source.mjs fetch",
49
+ "fetch:nanoka": "node scripts/nanoka-source.mjs fetch",
50
+ "derive:patch-history": "tsx scripts/nanoka-patch-history.ts",
46
51
  "sync-cleaned": "node scripts/sync-cleaned.mjs",
47
52
  "test": "vitest run",
48
53
  "verify:buhflipexplode-da": "node scripts/buhflipexplode-da-source.mjs verify --snapshot 2026-05-05T0445Z",
49
54
  "verify:excel": "node scripts/excel-source.mjs verify",
50
55
  "verify:golden-v1": "tsx scripts/golden-v1-replay.ts verify",
51
- "verify:mihoyo-da": "node scripts/mihoyo-da-source.mjs verify --snapshot 2026-05-05T0850Z"
56
+ "verify:mihoyo-da": "node scripts/mihoyo-da-source.mjs verify --snapshot 2026-05-05T0850Z",
57
+ "verify:nanoka": "node scripts/nanoka-source.mjs verify --snapshot 2.8",
58
+ "verify:nanoka-runtime": "tsx scripts/nanoka-runtime-game-data.ts verify",
59
+ "verify:source-migration": "node scripts/source-migration-drift.mjs verify",
60
+ "verify:source-registry": "node scripts/verify-source-registry.mjs"
52
61
  }
53
62
  }
@@ -0,0 +1,199 @@
1
+ {
2
+ "schemaVersion": "source-registry/v0.1.0",
3
+ "generatedAt": "2026-05-15T18:46:10+08:00",
4
+ "sources": [
5
+ {
6
+ "sourceId": "nanoka-zzz",
7
+ "kind": "wiki-static-json",
8
+ "scope": "numeric-primary",
9
+ "runtimeRole": "runtime-primary",
10
+ "license": "unknown",
11
+ "tosStatus": "audited-pending",
12
+ "redistributionRisk": "accepted-by-owner",
13
+ "redistributionRiskRef": "D-20#8",
14
+ "server": "live",
15
+ "releaseChannel": "stable",
16
+ "configuredLiveVersion": "2.8",
17
+ "liveVersionRef": "manifest.zzz.live",
18
+ "latestResearchVersion": "3.0.2+15625449",
19
+ "approvedLiveVersions": [
20
+ "2.8"
21
+ ],
22
+ "approvedLiveVersionsScope": "runtime-primary | snapshot-diff-historical-input | archived-audit-fixture",
23
+ "urlAllowlist": {
24
+ "manifestUrl": "^https://static\\.nanoka\\.cc/manifest\\.json$",
25
+ "versionedIndexUrls": "^https://static\\.nanoka\\.cc/zzz/(?:\\d[\\dA-Za-z.+-]*)/boss\\.json$",
26
+ "localizedDetailUrls": "^https://static\\.nanoka\\.cc/zzz/(?:\\d[\\dA-Za-z.+-]*)/(?:zh|en|ja|ko)/[a-z]+/\\d+\\.json$"
27
+ },
28
+ "fetchedAt": "2026-05-15T17:15:00+08:00",
29
+ "lastVerifiedAt": "2026-05-15T17:15:00+08:00",
30
+ "contentHash": "sha256:91494c2c3bfda6ec47beccbf71066506ab0a315513aa751cf30e4c3a1dc0817d",
31
+ "takedownPath": "docs/data-source/takedown-rollback.md#nanoka",
32
+ "fallbackPlan": "runtime rollback requires explicit lo-user hotfix approval; archived Excel/D-17/D-12 snapshots remain audit references only",
33
+ "notes": [
34
+ "D-20 R1/R6 locks nanoka as the exclusive source for source-backed cleaned data.",
35
+ "Phase 4 S1-S4 approval promotes configuredLiveVersion to runtime-primary cleaned data.",
36
+ "Current cleaned output rows must use configuredLiveVersion; archived Excel/D-17/D-12 sources must not be runtime fallbacks.",
37
+ "manifest.zzz.latest is research/drift input only unless lo-user approves a new configured live version."
38
+ ]
39
+ },
40
+ {
41
+ "sourceId": "lo-user-excel",
42
+ "kind": "excel-workbook",
43
+ "scope": "archived-audit-baseline",
44
+ "runtimeRole": "deprecated-runtime-archive",
45
+ "license": "unknown",
46
+ "tosStatus": "owner-provided-archive",
47
+ "redistributionRisk": "archived-audit-baseline",
48
+ "releaseChannel": "archived",
49
+ "configuredLiveVersion": "2.6.0_R14028417",
50
+ "approvedLiveVersions": [
51
+ "2.6.0_R14028417"
52
+ ],
53
+ "urlAllowlist": {},
54
+ "fetchedAt": "2026-05-05T17:40:00+08:00",
55
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
56
+ "contentHash": "sha256:see-data/source/excel/META.md",
57
+ "takedownPath": "docs/data-source/takedown-rollback.md#excel",
58
+ "fallbackPlan": "archive-only after Phase 4 cutover",
59
+ "notes": [
60
+ "Excel remains release evidence and drift-audit baseline after Phase 4 cutover.",
61
+ "Excel must not be referenced by runtime cleaned data after Phase 4 cutover."
62
+ ]
63
+ },
64
+ {
65
+ "sourceId": "mihoyo-zzz-critical-assault",
66
+ "kind": "official-wiki-json",
67
+ "scope": "archived-audit-baseline",
68
+ "runtimeRole": "deprecated-runtime-archive",
69
+ "license": "unknown",
70
+ "tosStatus": "requires-human-review",
71
+ "redistributionRisk": "archived-audit-baseline",
72
+ "releaseChannel": "archived",
73
+ "configuredLiveVersion": "2026-05-05T0850Z",
74
+ "approvedLiveVersions": [
75
+ "2026-05-05T0850Z"
76
+ ],
77
+ "urlAllowlist": {},
78
+ "fetchedAt": "2026-05-05T08:50:00+08:00",
79
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
80
+ "contentHash": "sha256:see-data/source/raw/mihoyo/zzz-da/2026-05-05T0850Z/fetch-manifest.json",
81
+ "takedownPath": "docs/data-source/takedown-rollback.md#mihoyo",
82
+ "fallbackPlan": "archive-only after Phase 4 cutover",
83
+ "notes": [
84
+ "D-17 runtime path is formally deprecated by Phase 4 and retained as archived audit baseline.",
85
+ "Runtime cleaned data must not reference this source under R1/R6."
86
+ ]
87
+ },
88
+ {
89
+ "sourceId": "buhflipexplode-zzz-da",
90
+ "kind": "third-party-site-json",
91
+ "scope": "archived-audit-baseline",
92
+ "runtimeRole": "deprecated-runtime-archive",
93
+ "license": "GPL-3.0-code-archive",
94
+ "tosStatus": "requires-human-review",
95
+ "redistributionRisk": "archived-audit-baseline",
96
+ "releaseChannel": "archived",
97
+ "configuredLiveVersion": "2026-05-05T0445Z",
98
+ "approvedLiveVersions": [
99
+ "2026-05-05T0445Z"
100
+ ],
101
+ "urlAllowlist": {},
102
+ "fetchedAt": "2026-05-05T04:45:00+08:00",
103
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
104
+ "contentHash": "sha256:see-data/source/raw/buhflipexplode/2026-05-05T0445Z/fetch-manifest.json",
105
+ "takedownPath": "docs/data-source/takedown-rollback.md#buhflipexplode",
106
+ "fallbackPlan": "archive-only after Phase 4 cutover",
107
+ "notes": [
108
+ "D-12 runtime path is formally deprecated by Phase 4 and retained as archived audit baseline.",
109
+ "GPL JavaScript remains audit-only and must not enter MIT runtime code or cleaned runtime data."
110
+ ]
111
+ },
112
+ {
113
+ "sourceId": "zzz-data-introduction",
114
+ "kind": "guide-reference",
115
+ "scope": "implementation-evidence",
116
+ "license": "unknown",
117
+ "tosStatus": "owner-provided-reference",
118
+ "redistributionRisk": "accepted-by-owner",
119
+ "redistributionRiskRef": "D-20#8",
120
+ "releaseChannel": "archived",
121
+ "configuredLiveVersion": "2026-05-05",
122
+ "approvedLiveVersions": [
123
+ "2026-05-05"
124
+ ],
125
+ "urlAllowlist": {},
126
+ "fetchedAt": "2026-05-05T00:00:00+08:00",
127
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
128
+ "contentHash": "sha256:see-data/source/source-manifest.json",
129
+ "takedownPath": "docs/data-source/takedown-rollback.md#guide-reference",
130
+ "fallbackPlan": "manual owner review",
131
+ "notes": [
132
+ "Reference evidence for formulas and implementation-owned constants; not a nanoka substitute."
133
+ ]
134
+ },
135
+ {
136
+ "sourceId": "nanoka-zzz-boss-manual-2026-05-07",
137
+ "kind": "manual-cross-check",
138
+ "scope": "historical-conflict-resolution",
139
+ "runtimeRole": "deprecated-runtime-archive",
140
+ "license": "unknown",
141
+ "tosStatus": "manual-lookup-only",
142
+ "redistributionRisk": "archived-audit-baseline",
143
+ "releaseChannel": "archived",
144
+ "configuredLiveVersion": "3.0.1+15390262",
145
+ "approvedLiveVersions": [
146
+ "3.0.1+15390262"
147
+ ],
148
+ "urlAllowlist": {},
149
+ "fetchedAt": "2026-05-07T00:00:00+08:00",
150
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
151
+ "contentHash": "sha256:manual-lookup-not-redistributed",
152
+ "takedownPath": "docs/data-source/takedown-rollback.md#nanoka",
153
+ "fallbackPlan": "historical audit row only",
154
+ "notes": [
155
+ "Historical manual tie-breaker for D-12/D-17 source conflicts; not part of the new nanoka adapter."
156
+ ]
157
+ },
158
+ {
159
+ "sourceId": "gachabase-zzz",
160
+ "kind": "third-party-site",
161
+ "scope": "rejected-candidate",
162
+ "license": "unknown",
163
+ "tosStatus": "requires-human-review",
164
+ "redistributionRisk": "forbidden",
165
+ "releaseChannel": "beta-route",
166
+ "configuredLiveVersion": "rejected",
167
+ "approvedLiveVersions": [],
168
+ "urlAllowlist": {},
169
+ "fetchedAt": "2026-05-14T23:30:00+08:00",
170
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
171
+ "contentHash": "sha256:see-data/cleaned/audit/source-migration-field-diff.json",
172
+ "takedownPath": "docs/data-source/takedown-rollback.md#gachabase",
173
+ "fallbackPlan": "not eligible without owner decision",
174
+ "notes": [
175
+ "PR #51 rejected Gachabase as a source candidate because routes were beta-gated."
176
+ ]
177
+ },
178
+ {
179
+ "sourceId": "prydwen-zzz",
180
+ "kind": "third-party-site",
181
+ "scope": "cross-check-only",
182
+ "license": "unknown",
183
+ "tosStatus": "requires-human-review",
184
+ "redistributionRisk": "cross-check-only",
185
+ "releaseChannel": "public-web",
186
+ "configuredLiveVersion": "sampled-pages",
187
+ "approvedLiveVersions": [],
188
+ "urlAllowlist": {},
189
+ "fetchedAt": "2026-05-14T23:30:00+08:00",
190
+ "lastVerifiedAt": "2026-05-15T10:56:36+08:00",
191
+ "contentHash": "sha256:see-data/cleaned/audit/source-migration-field-diff.json",
192
+ "takedownPath": "docs/data-source/takedown-rollback.md#prydwen",
193
+ "fallbackPlan": "not eligible without owner decision",
194
+ "notes": [
195
+ "PR #51 kept Prydwen as a sampled cross-check only; DOM scrape is not a primary source."
196
+ ]
197
+ }
198
+ ]
199
+ }