@sharpee/chord 3.0.0 → 3.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/analyzer.d.ts +11 -3
- package/analyzer.d.ts.map +1 -1
- package/analyzer.js +1217 -33
- package/analyzer.js.map +1 -1
- package/ast.d.ts +458 -9
- package/ast.d.ts.map +1 -1
- package/catalog.d.ts +57 -1
- package/catalog.d.ts.map +1 -1
- package/catalog.js +95 -3
- package/catalog.js.map +1 -1
- package/diagnostics.d.ts +1 -1
- package/diagnostics.d.ts.map +1 -1
- package/index.d.ts +31 -13
- package/index.d.ts.map +1 -1
- package/index.js +110 -30
- package/index.js.map +1 -1
- package/ir.d.ts +316 -7
- package/ir.d.ts.map +1 -1
- package/lexer.d.ts +11 -3
- package/lexer.d.ts.map +1 -1
- package/lexer.js +36 -8
- package/lexer.js.map +1 -1
- package/manifests/combat.d.ts +16 -0
- package/manifests/combat.d.ts.map +1 -0
- package/manifests/combat.js +38 -0
- package/manifests/combat.js.map +1 -0
- package/manifests/index.d.ts +21 -0
- package/manifests/index.d.ts.map +1 -0
- package/manifests/index.js +46 -0
- package/manifests/index.js.map +1 -0
- package/manifests/npc.d.ts +19 -0
- package/manifests/npc.d.ts.map +1 -0
- package/manifests/npc.js +38 -0
- package/manifests/npc.js.map +1 -0
- package/manifests/state-machines.d.ts +17 -0
- package/manifests/state-machines.d.ts.map +1 -0
- package/manifests/state-machines.js +8 -0
- package/manifests/state-machines.js.map +1 -0
- package/manifests/types.d.ts +41 -0
- package/manifests/types.d.ts.map +1 -0
- package/manifests/types.js +18 -0
- package/manifests/types.js.map +1 -0
- package/message-alias-catalog.d.ts +22 -0
- package/message-alias-catalog.d.ts.map +1 -0
- package/message-alias-catalog.js +830 -0
- package/message-alias-catalog.js.map +1 -0
- package/package.json +1 -1
- package/parser.d.ts +2 -2
- package/parser.d.ts.map +1 -1
- package/parser.js +1566 -148
- package/parser.js.map +1 -1
- package/phrasebooks.d.ts +28 -0
- package/phrasebooks.d.ts.map +1 -0
- package/phrasebooks.js +6 -0
- package/phrasebooks.js.map +1 -0
package/phrasebooks.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* phrasebooks.ts — the packaged-phrasebook manifest registry (ADR-250 D3).
|
|
3
|
+
*
|
|
4
|
+
* Purpose: compile-time knowledge of the packaged phrasebooks a story may
|
|
5
|
+
* `use` — name plus covered key list. This is the ADR-215
|
|
6
|
+
* names-vs-mappings split applied to books: the manifest is DATA the
|
|
7
|
+
* analyzer reads (so a key supplied only by a used book still passes the
|
|
8
|
+
* missing-phrase gate), while the loader's data registry carries the
|
|
9
|
+
* actual entries and is conformance-checked against these keys at load
|
|
10
|
+
* (mismatch = LoadError). Initially empty — no books ship in this gate;
|
|
11
|
+
* hosts and tests register through this seam.
|
|
12
|
+
*
|
|
13
|
+
* Public interface: PhrasebookManifest, PHRASEBOOK_REGISTRY.
|
|
14
|
+
* Owner context: @sharpee/chord (language frontend; browser-safe).
|
|
15
|
+
*
|
|
16
|
+
* Invariants:
|
|
17
|
+
* - Keys are story-namespace keys (single kebab-case words) — never
|
|
18
|
+
* dotted platform message IDs (ADR-250 D1, David 2026-07-21).
|
|
19
|
+
*/
|
|
20
|
+
export interface PhrasebookManifest {
|
|
21
|
+
/** Single kebab-case book name (extension-name form). */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Story-namespace keys the book covers — the book's documented surface. */
|
|
24
|
+
keys: string[];
|
|
25
|
+
}
|
|
26
|
+
/** name → manifest. Mutable by design: hosts and tests register here. */
|
|
27
|
+
export declare const PHRASEBOOK_REGISTRY: Map<string, PhrasebookManifest>;
|
|
28
|
+
//# sourceMappingURL=phrasebooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phrasebooks.d.ts","sourceRoot":"","sources":["../../../repos/sharpee_v2/packages/chord/src/phrasebooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,kBAAkB;IACjC,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,iCAAwC,CAAC"}
|
package/phrasebooks.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHRASEBOOK_REGISTRY = void 0;
|
|
4
|
+
/** name → manifest. Mutable by design: hosts and tests register here. */
|
|
5
|
+
exports.PHRASEBOOK_REGISTRY = new Map();
|
|
6
|
+
//# sourceMappingURL=phrasebooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phrasebooks.js","sourceRoot":"","sources":["../../../repos/sharpee_v2/packages/chord/src/phrasebooks.ts"],"names":[],"mappings":";;;AA0BA,yEAAyE;AAC5D,QAAA,mBAAmB,GAAG,IAAI,GAAG,EAA8B,CAAC"}
|