termfc 0.2.0 → 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/README.md +8 -5
- package/dist/cli.js +982 -166
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,9 +75,11 @@ espn.com use in the browser. It is **not affiliated with or endorsed by FIFA
|
|
|
75
75
|
or ESPN**. These endpoints are undocumented and may change or disappear at
|
|
76
76
|
any time — the adapter layer isolates that risk, and polling is deliberately
|
|
77
77
|
polite (~10s intervals, identified User-Agent). Match facts (scores, times,
|
|
78
|
-
events) are not copyrightable
|
|
79
|
-
|
|
80
|
-
structured event data
|
|
78
|
+
events) are not copyrightable, and no FIFA/ESPN prose ships with this
|
|
79
|
+
package or repo: ESPN-fallback sentences are always generated locally from
|
|
80
|
+
structured event data, and the bundled demo match and recorded test fixtures
|
|
81
|
+
carry locally synthesized sentences too (`scripts/sanitize-fixtures.mjs`).
|
|
82
|
+
FIFA's own feed text only appears live on screen while you watch.
|
|
81
83
|
|
|
82
84
|
## Development
|
|
83
85
|
|
|
@@ -86,8 +88,9 @@ npm install
|
|
|
86
88
|
npm test # vitest — unit + real-response fixture tests
|
|
87
89
|
npm run build # tsup -> dist/cli.js (single ESM file)
|
|
88
90
|
node dist/cli.js demo
|
|
89
|
-
node scripts/dump-fifa-events.mjs
|
|
90
|
-
node scripts/
|
|
91
|
+
node scripts/dump-fifa-events.mjs # refresh event-code map from live data
|
|
92
|
+
node scripts/sanitize-fixtures.mjs # re-synthesize fixture sentences (no source prose)
|
|
93
|
+
node scripts/make-demo.mjs # rebuild the bundled demo match
|
|
91
94
|
```
|
|
92
95
|
|
|
93
96
|
Architecture (ports & adapters): `core/` pure logic (model, diff, clock,
|