@sharpee/engine 1.0.0 → 1.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/README.md +73 -72
- package/action-context-factory.d.ts +3 -3
- package/action-context-factory.d.ts.map +1 -1
- package/action-context-factory.js +3 -3
- package/capability-dispatch-helper.d.ts +3 -3
- package/capability-dispatch-helper.d.ts.map +1 -1
- package/capability-dispatch-helper.js +1 -1
- package/command-executor.d.ts +6 -6
- package/command-executor.d.ts.map +1 -1
- package/command-executor.js +2 -2
- package/events/event-emitter.d.ts +2 -2
- package/events/event-emitter.d.ts.map +1 -1
- package/game-engine.d.ts +7 -7
- package/game-engine.d.ts.map +1 -1
- package/game-engine.js +7 -7
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/language-provider-interface.d.ts +1 -1
- package/language-provider-interface.d.ts.map +1 -1
- package/narrative/index.d.ts.map +1 -1
- package/narrative/narrative-settings.d.ts +1 -1
- package/narrative/narrative-settings.d.ts.map +1 -1
- package/package.json +12 -12
- package/parser-interface.d.ts +2 -2
- package/parser-interface.d.ts.map +1 -1
- package/platform-operations.d.ts +2 -2
- package/platform-operations.d.ts.map +1 -1
- package/platform-operations.js +1 -1
- package/prose-pipeline/assemble.d.ts +1 -1
- package/prose-pipeline/assemble.d.ts.map +1 -1
- package/prose-pipeline/decorations/index.d.ts.map +1 -1
- package/prose-pipeline/decorations/parser.d.ts.map +1 -1
- package/prose-pipeline/decorations/parser.js +26 -8
- package/prose-pipeline/decorations/parser.js.map +1 -1
- package/prose-pipeline/decorations/platform-vocabulary.d.ts +9 -1
- package/prose-pipeline/decorations/platform-vocabulary.d.ts.map +1 -1
- package/prose-pipeline/decorations/platform-vocabulary.js +17 -1
- package/prose-pipeline/decorations/platform-vocabulary.js.map +1 -1
- package/prose-pipeline/decorations/resolver.d.ts.map +1 -1
- package/prose-pipeline/decorations/types.d.ts +1 -1
- package/prose-pipeline/decorations/types.d.ts.map +1 -1
- package/prose-pipeline/handlers/about.d.ts +2 -2
- package/prose-pipeline/handlers/about.d.ts.map +1 -1
- package/prose-pipeline/handlers/audibility.d.ts +2 -2
- package/prose-pipeline/handlers/audibility.d.ts.map +1 -1
- package/prose-pipeline/handlers/audibility.js +1 -1
- package/prose-pipeline/handlers/banner.d.ts +1 -1
- package/prose-pipeline/handlers/banner.d.ts.map +1 -1
- package/prose-pipeline/handlers/client-query.d.ts +2 -2
- package/prose-pipeline/handlers/client-query.d.ts.map +1 -1
- package/prose-pipeline/handlers/client-query.js +1 -1
- package/prose-pipeline/handlers/command-failed.d.ts +2 -2
- package/prose-pipeline/handlers/command-failed.d.ts.map +1 -1
- package/prose-pipeline/handlers/command-failed.js +1 -1
- package/prose-pipeline/handlers/domain-message.d.ts +2 -2
- package/prose-pipeline/handlers/domain-message.d.ts.map +1 -1
- package/prose-pipeline/handlers/domain-message.js +1 -1
- package/prose-pipeline/handlers/game.d.ts +2 -2
- package/prose-pipeline/handlers/game.d.ts.map +1 -1
- package/prose-pipeline/handlers/generic.d.ts +2 -2
- package/prose-pipeline/handlers/generic.d.ts.map +1 -1
- package/prose-pipeline/handlers/generic.js +1 -1
- package/prose-pipeline/handlers/help.d.ts +2 -2
- package/prose-pipeline/handlers/help.d.ts.map +1 -1
- package/prose-pipeline/handlers/implicit-take.d.ts +2 -2
- package/prose-pipeline/handlers/implicit-take.d.ts.map +1 -1
- package/prose-pipeline/handlers/implicit-take.js +1 -1
- package/prose-pipeline/handlers/index.d.ts.map +1 -1
- package/prose-pipeline/handlers/revealed.d.ts +2 -2
- package/prose-pipeline/handlers/revealed.d.ts.map +1 -1
- package/prose-pipeline/handlers/revealed.js +1 -1
- package/prose-pipeline/handlers/room.d.ts +2 -2
- package/prose-pipeline/handlers/room.d.ts.map +1 -1
- package/prose-pipeline/handlers/room.js +1 -1
- package/prose-pipeline/handlers/types.d.ts +3 -3
- package/prose-pipeline/handlers/types.d.ts.map +1 -1
- package/prose-pipeline/index.d.ts.map +1 -1
- package/prose-pipeline/pipeline.d.ts +3 -3
- package/prose-pipeline/pipeline.d.ts.map +1 -1
- package/prose-pipeline/stages/filter.d.ts +1 -1
- package/prose-pipeline/stages/filter.d.ts.map +1 -1
- package/prose-pipeline/stages/index.d.ts.map +1 -1
- package/prose-pipeline/stages/sort.d.ts +1 -1
- package/prose-pipeline/stages/sort.d.ts.map +1 -1
- package/prose-pipeline/types.d.ts +2 -2
- package/prose-pipeline/types.d.ts.map +1 -1
- package/save-restore-service.d.ts +3 -3
- package/save-restore-service.d.ts.map +1 -1
- package/save-restore-service.js +1 -1
- package/scene-evaluation-plugin.d.ts +2 -2
- package/scene-evaluation-plugin.d.ts.map +1 -1
- package/scene-evaluation-plugin.js +1 -1
- package/shared-data-keys.d.ts +3 -3
- package/shared-data-keys.d.ts.map +1 -1
- package/sound/dispatcher.d.ts +3 -3
- package/sound/dispatcher.d.ts.map +1 -1
- package/sound/dispatcher.js +2 -2
- package/sound/index.d.ts.map +1 -1
- package/sound/propagation.d.ts +3 -3
- package/sound/propagation.d.ts.map +1 -1
- package/sound/propagation.js +2 -2
- package/story.d.ts +4 -4
- package/story.d.ts.map +1 -1
- package/test-helpers/mock-prose-pipeline.d.ts +2 -2
- package/test-helpers/mock-prose-pipeline.d.ts.map +1 -1
- package/turn-event-processor.d.ts +3 -3
- package/turn-event-processor.d.ts.map +1 -1
- package/turn-event-processor.js +1 -1
- package/types.d.ts +4 -4
- package/types.d.ts.map +1 -1
- package/vocabulary-manager.d.ts +1 -1
- package/vocabulary-manager.d.ts.map +1 -1
- package/vocabulary-manager.js +1 -1
- package/event-adapter.d.ts +0 -44
- package/event-adapter.d.ts.map +0 -1
- package/event-adapter.js +0 -127
- package/event-adapter.js.map +0 -1
- package/event-sequencer.d.ts +0 -73
- package/event-sequencer.d.ts.map +0 -1
- package/event-sequencer.js +0 -134
- package/event-sequencer.js.map +0 -1
- package/test-helpers/mock-text-service.d.ts +0 -11
- package/test-helpers/mock-text-service.d.ts.map +0 -1
- package/test-helpers/mock-text-service.js +0 -47
- package/test-helpers/mock-text-service.js.map +0 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @see ADR-174 §Markup syntax (decoration parsing)
|
|
13
13
|
* @see ADR-133 (preserved): blocks have keys and structured content.
|
|
14
14
|
*/
|
|
15
|
-
import type { ITextBlock } from
|
|
15
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
16
16
|
/**
|
|
17
17
|
* Options for `createBlock`.
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assemble.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"assemble.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/assemble.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAGpE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,kBAAkB,GACxB,UAAU,CASZ;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAcpE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAW1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CAgDhE"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.parseDecorations = parseDecorations;
|
|
16
16
|
const resolver_1 = require("./resolver");
|
|
17
|
+
const platform_vocabulary_1 = require("./platform-vocabulary");
|
|
17
18
|
/**
|
|
18
19
|
* Parse a template string into a `TextContent[]` tree.
|
|
19
20
|
*
|
|
@@ -111,20 +112,37 @@ function parseBracketAt(template, openIndex) {
|
|
|
111
112
|
const colonIndex = indexOfUnescapedColon(inner);
|
|
112
113
|
const nextIndex = closeIndex + 1;
|
|
113
114
|
if (colonIndex === -1) {
|
|
114
|
-
//
|
|
115
|
+
// ADR-183: a colon-less `[name]` is a void macro (e.g. `[br]`, `[p]`) iff the
|
|
116
|
+
// name is registered; otherwise AC-11 applies and the whole segment is literal.
|
|
117
|
+
if (platform_vocabulary_1.VOID_MACROS.has(inner)) {
|
|
118
|
+
return {
|
|
119
|
+
kind: 'decoration',
|
|
120
|
+
decoration: { className: (0, resolver_1.resolveClassName)(inner), content: [] },
|
|
121
|
+
nextIndex,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
115
124
|
return { kind: 'literal', text: template.slice(openIndex, nextIndex), nextIndex };
|
|
116
125
|
}
|
|
117
|
-
const
|
|
126
|
+
const namePart = inner.slice(0, colonIndex);
|
|
118
127
|
const innerContent = inner.slice(colonIndex + 1);
|
|
128
|
+
// ADR-183: an optional `=value` in the name segment carries a parameter
|
|
129
|
+
// (e.g. `[center=50:…]`). Split on the first `=`; the value may itself contain
|
|
130
|
+
// `=`. Content (after the colon) is unaffected.
|
|
131
|
+
let rawName = namePart;
|
|
132
|
+
let value;
|
|
133
|
+
const eqIndex = namePart.indexOf('=');
|
|
134
|
+
if (eqIndex !== -1) {
|
|
135
|
+
rawName = namePart.slice(0, eqIndex);
|
|
136
|
+
value = namePart.slice(eqIndex + 1);
|
|
137
|
+
}
|
|
119
138
|
if (rawName === '') {
|
|
120
|
-
// AC-12: empty class name → emit inner content as plain entries.
|
|
139
|
+
// AC-12: empty class name → emit inner content as plain entries (value ignored).
|
|
121
140
|
return { kind: 'children', children: parseDecorations(innerContent), nextIndex };
|
|
122
141
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
};
|
|
142
|
+
const decoration = value !== undefined
|
|
143
|
+
? { className: (0, resolver_1.resolveClassName)(rawName), content: parseDecorations(innerContent), value }
|
|
144
|
+
: { className: (0, resolver_1.resolveClassName)(rawName), content: parseDecorations(innerContent) };
|
|
145
|
+
return { kind: 'decoration', decoration, nextIndex };
|
|
128
146
|
}
|
|
129
147
|
/**
|
|
130
148
|
* Find the matching `]` for the `[` at `openIndex`, respecting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAyBH,4CAgDC;AAvED,yCAA8C;AAC9C,+DAAoD;AAGpD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,MAAM,KAAK,GAAG,GAAS,EAAE;QACvB,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACrB,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAEzB,MAAM,UAAU,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC9C,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;YACxB,OAAO,IAAI,UAAU,CAAC;YACtB,CAAC,IAAI,CAAC,CAAC;YACP,SAAS;QACX,CAAC;QAED,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjB,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;YAC5C,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC/B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;gBACxB,CAAC,GAAG,OAAO,CAAC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AAC;IACV,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC1C,CAAC,IAAI,CAAC,CAAC;YACP,SAAS;QACX,CAAC;QACD,IAAI,IAAI,KAAK,GAAG;YAAE,OAAO,CAAC,CAAC;QAC3B,CAAC,EAAE,CAAC;IACN,CAAC;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"}
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @see ADR-174 §Closed platform vocabulary
|
|
12
12
|
*/
|
|
13
|
-
declare const VOCABULARY_NAMES: readonly ["em", "strong", "u", "st", "code", "super", "sub", "item", "npc", "room", "direction", "command", "quote", "color-red", "color-blue", "color-green", "color-yellow", "color-magenta", "color-cyan", "color-white", "color-grey", "color-black", "bgcolor-red", "bgcolor-blue", "bgcolor-green", "bgcolor-yellow", "bgcolor-magenta", "bgcolor-cyan", "bgcolor-white", "bgcolor-grey", "bgcolor-black", "size-small", "size-large", "font-mono"];
|
|
13
|
+
declare const VOCABULARY_NAMES: readonly ["em", "strong", "u", "st", "code", "super", "sub", "item", "npc", "room", "direction", "command", "quote", "color-red", "color-blue", "color-green", "color-yellow", "color-magenta", "color-cyan", "color-white", "color-grey", "color-black", "bgcolor-red", "bgcolor-blue", "bgcolor-green", "bgcolor-yellow", "bgcolor-magenta", "bgcolor-cyan", "bgcolor-white", "bgcolor-grey", "bgcolor-black", "size-small", "size-large", "font-mono", "br", "p", "indent", "center", "right"];
|
|
14
|
+
/**
|
|
15
|
+
* Names that take **no content** — written `[br]` / `[p]` (no colon). The
|
|
16
|
+
* parser treats a colon-less `[name]` as a void decoration iff `name` is
|
|
17
|
+
* listed here; any other colon-less bracket stays literal (ADR-174 AC-11).
|
|
18
|
+
*
|
|
19
|
+
* @see ADR-183 §1 — Vocabulary, §2 — Syntax
|
|
20
|
+
*/
|
|
21
|
+
export declare const VOID_MACROS: ReadonlySet<string>;
|
|
14
22
|
/**
|
|
15
23
|
* Frozen set of every name the platform reserves under the `sharpee-`
|
|
16
24
|
* namespace. Adding a new entry requires both updating this list and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-vocabulary.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"platform-vocabulary.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/platform-vocabulary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,QAAA,MAAM,gBAAgB,meAuDZ,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,MAAM,CAE3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAEnD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,sBAAsB,CACtC,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @see ADR-174 §Closed platform vocabulary
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PLATFORM_VOCABULARY_NAMES = exports.PLATFORM_VOCABULARY = void 0;
|
|
15
|
+
exports.PLATFORM_VOCABULARY_NAMES = exports.PLATFORM_VOCABULARY = exports.VOID_MACROS = void 0;
|
|
16
16
|
const VOCABULARY_NAMES = [
|
|
17
17
|
// Switches — apply on/off, no parameter.
|
|
18
18
|
'em',
|
|
@@ -54,7 +54,23 @@ const VOCABULARY_NAMES = [
|
|
|
54
54
|
'size-large',
|
|
55
55
|
// Class vocabulary — font-*.
|
|
56
56
|
'font-mono',
|
|
57
|
+
// Layout macros (ADR-183). `br`/`p` are void (no content); `indent`/`center`
|
|
58
|
+
// accept an optional `=value` (level / width %); `right` is plain. All
|
|
59
|
+
// presentation lives in the platform stylesheet, author-overridable en masse.
|
|
60
|
+
'br',
|
|
61
|
+
'p',
|
|
62
|
+
'indent',
|
|
63
|
+
'center',
|
|
64
|
+
'right',
|
|
57
65
|
];
|
|
66
|
+
/**
|
|
67
|
+
* Names that take **no content** — written `[br]` / `[p]` (no colon). The
|
|
68
|
+
* parser treats a colon-less `[name]` as a void decoration iff `name` is
|
|
69
|
+
* listed here; any other colon-less bracket stays literal (ADR-174 AC-11).
|
|
70
|
+
*
|
|
71
|
+
* @see ADR-183 §1 — Vocabulary, §2 — Syntax
|
|
72
|
+
*/
|
|
73
|
+
exports.VOID_MACROS = Object.freeze(new Set(['br', 'p']));
|
|
58
74
|
/**
|
|
59
75
|
* Frozen set of every name the platform reserves under the `sharpee-`
|
|
60
76
|
* namespace. Adding a new entry requires both updating this list and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-vocabulary.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/platform-vocabulary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,MAAM,gBAAgB,GAAG;IACvB,yCAAyC;IACzC,IAAI;IACJ,QAAQ;IACR,GAAG;IACH,IAAI;IACJ,MAAM;IACN,OAAO;IACP,KAAK;IAEL,0DAA0D;IAC1D,MAAM;IACN,KAAK;IACL,MAAM;IACN,WAAW;IACX,SAAS;IACT,OAAO;IAEP,8CAA8C;IAC9C,WAAW;IACX,YAAY;IACZ,aAAa;IACb,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,aAAa;IAEb,6CAA6C;IAC7C,aAAa;IACb,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IAEf,6BAA6B;IAC7B,YAAY;IACZ,YAAY;IAEZ,6BAA6B;IAC7B,WAAW;
|
|
1
|
+
{"version":3,"file":"platform-vocabulary.js","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/platform-vocabulary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,MAAM,gBAAgB,GAAG;IACvB,yCAAyC;IACzC,IAAI;IACJ,QAAQ;IACR,GAAG;IACH,IAAI;IACJ,MAAM;IACN,OAAO;IACP,KAAK;IAEL,0DAA0D;IAC1D,MAAM;IACN,KAAK;IACL,MAAM;IACN,WAAW;IACX,SAAS;IACT,OAAO;IAEP,8CAA8C;IAC9C,WAAW;IACX,YAAY;IACZ,aAAa;IACb,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,aAAa;IAEb,6CAA6C;IAC7C,aAAa;IACb,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IAEf,6BAA6B;IAC7B,YAAY;IACZ,YAAY;IAEZ,6BAA6B;IAC7B,WAAW;IAEX,6EAA6E;IAC7E,uEAAuE;IACvE,8EAA8E;IAC9E,IAAI;IACJ,GAAG;IACH,QAAQ;IACR,QAAQ;IACR,OAAO;CACC,CAAC;AAEX;;;;;;GAMG;AACU,QAAA,WAAW,GAAwB,MAAM,CAAC,MAAM,CAC3D,IAAI,GAAG,CAAS,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAC7B,CAAC;AAEF;;;;GAIG;AACU,QAAA,mBAAmB,GAAwB,MAAM,CAAC,MAAM,CACnE,IAAI,GAAG,CAAS,gBAAgB,CAAC,CAClC,CAAC;AAQW,QAAA,yBAAyB,GACpC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/decorations/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
16
16
|
*/
|
|
17
|
-
import type { ITextBlock } from
|
|
18
|
-
import type { ISemanticEvent } from
|
|
17
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
18
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
19
19
|
import type { HandlerContext } from './types';
|
|
20
20
|
/**
|
|
21
21
|
* Handle `if.event.about_displayed` by showing the structured banner.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"about.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/about.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAoBd"}
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
* @see ADR-172 — Spatial Sound Propagation §Channel routing
|
|
31
31
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
32
32
|
*/
|
|
33
|
-
import type { ITextBlock } from
|
|
34
|
-
import type { ISemanticEvent } from
|
|
33
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
34
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
35
35
|
import type { HandlerContext } from './types';
|
|
36
36
|
/**
|
|
37
37
|
* Handle a `sound.audibility.heard` event.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audibility.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"audibility.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/audibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAiCd"}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.handleAudibilityHeard = handleAudibilityHeard;
|
|
36
|
-
const text_blocks_1 = require("
|
|
36
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
37
37
|
const assemble_1 = require("../assemble");
|
|
38
38
|
const AUDIBILITY_TEMPLATE_PREFIX = 'sound.heard';
|
|
39
39
|
/**
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Owner context: `@sharpee/engine` — internal prose pipeline.
|
|
23
23
|
*/
|
|
24
|
-
import type { ITextBlock } from
|
|
24
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
25
25
|
import type { HandlerContext } from './types';
|
|
26
26
|
/**
|
|
27
27
|
* Subset of story metadata used by the banner builder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/banner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,eAAe,GAAG,SAAS,EAClC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAmDd"}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @see ADR-174 §Engine-internal prose pipeline (extracted from
|
|
16
16
|
* text-service.ts inline)
|
|
17
17
|
*/
|
|
18
|
-
import type { ITextBlock } from
|
|
19
|
-
import type { ISemanticEvent } from
|
|
18
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
19
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
20
20
|
import type { HandlerContext } from './types';
|
|
21
21
|
export declare function handleClientQuery(event: ISemanticEvent, context: HandlerContext): ITextBlock[];
|
|
22
22
|
//# sourceMappingURL=client-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-query.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"client-query.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/client-query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAU9C,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAgBd"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.handleClientQuery = handleClientQuery;
|
|
21
|
-
const text_blocks_1 = require("
|
|
21
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
22
22
|
const assemble_1 = require("../assemble");
|
|
23
23
|
function handleClientQuery(event, context) {
|
|
24
24
|
const data = event.data;
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* @see ADR-174 §Engine-internal prose pipeline (extracted from
|
|
18
18
|
* text-service.ts inline)
|
|
19
19
|
*/
|
|
20
|
-
import type { ITextBlock } from
|
|
21
|
-
import type { ISemanticEvent } from
|
|
20
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
21
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
22
22
|
import type { HandlerContext } from './types';
|
|
23
23
|
export declare function handleCommandFailed(event: ISemanticEvent, context: HandlerContext): ITextBlock[];
|
|
24
24
|
//# sourceMappingURL=command-failed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-failed.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"command-failed.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/command-failed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQ9C,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CA6Bd"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.handleCommandFailed = handleCommandFailed;
|
|
23
|
-
const text_blocks_1 = require("
|
|
23
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
24
24
|
const assemble_1 = require("../assemble");
|
|
25
25
|
function handleCommandFailed(event, context) {
|
|
26
26
|
const data = event.data;
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* @see ADR-174 §Engine-internal prose pipeline (extracted from
|
|
17
17
|
* text-service.ts inline)
|
|
18
18
|
*/
|
|
19
|
-
import type { ITextBlock } from
|
|
20
|
-
import type { ISemanticEvent } from
|
|
19
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
20
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
21
21
|
import type { HandlerContext } from './types';
|
|
22
22
|
/**
|
|
23
23
|
* Process domain events that carry messageId directly (ADR-097).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-message.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"domain-message.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/domain-message.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAU9C;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,GAAG,IAAI,CA4CrB"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.tryProcessDomainEventMessage = tryProcessDomainEventMessage;
|
|
22
|
-
const text_blocks_1 = require("
|
|
22
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
23
23
|
const assemble_1 = require("../assemble");
|
|
24
24
|
/**
|
|
25
25
|
* Process domain events that carry messageId directly (ADR-097).
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @see ADR-097 IGameEvent Deprecation
|
|
16
16
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
17
17
|
*/
|
|
18
|
-
import type { ITextBlock } from
|
|
19
|
-
import type { ISemanticEvent } from
|
|
18
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
19
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
20
20
|
import type { HandlerContext } from './types';
|
|
21
21
|
/**
|
|
22
22
|
* Handle the `game.started` event to produce the opening banner.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"game.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/game.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAA4B,MAAM,eAAe,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAQd"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
11
11
|
*/
|
|
12
|
-
import type { ITextBlock } from
|
|
13
|
-
import type { ISemanticEvent } from
|
|
12
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
13
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
14
14
|
import type { HandlerContext } from './types';
|
|
15
15
|
/**
|
|
16
16
|
* Handle `game.message` events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/generic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,SAAS,CAAC;AAUhE;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAmBd;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAiCd"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.handleGameMessage = handleGameMessage;
|
|
15
15
|
exports.handleGenericEvent = handleGenericEvent;
|
|
16
|
-
const text_blocks_1 = require("
|
|
16
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
17
17
|
const assemble_1 = require("../assemble");
|
|
18
18
|
/**
|
|
19
19
|
* Handle `game.message` events.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
13
13
|
*/
|
|
14
|
-
import type { ITextBlock } from
|
|
15
|
-
import type { ISemanticEvent } from
|
|
14
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
15
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
16
16
|
import type { HandlerContext } from './types';
|
|
17
17
|
/**
|
|
18
18
|
* Handle `if.event.help_displayed` to produce the help text block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/help.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAgD9C;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,cAAc,GACvB,UAAU,EAAE,CAEd"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* @see ADR-174 §Engine-internal prose pipeline (extracted from
|
|
14
14
|
* text-service.ts inline)
|
|
15
15
|
*/
|
|
16
|
-
import type { ITextBlock } from
|
|
17
|
-
import type { ISemanticEvent } from
|
|
16
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
17
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
18
18
|
import type { HandlerContext } from './types';
|
|
19
19
|
export declare function handleImplicitTake(event: ISemanticEvent, _context: HandlerContext): ITextBlock[];
|
|
20
20
|
//# sourceMappingURL=implicit-take.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implicit-take.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"implicit-take.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/implicit-take.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAO9C,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,cAAc,GACvB,UAAU,EAAE,CAId"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.handleImplicitTake = handleImplicitTake;
|
|
19
|
-
const text_blocks_1 = require("
|
|
19
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
20
20
|
const assemble_1 = require("../assemble");
|
|
21
21
|
function handleImplicitTake(event, _context) {
|
|
22
22
|
const data = event.data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* @see ADR-094 Event Chaining
|
|
15
15
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
16
16
|
*/
|
|
17
|
-
import type { ITextBlock } from
|
|
18
|
-
import type { ISemanticEvent } from
|
|
17
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
18
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
19
19
|
import type { HandlerContext } from './types';
|
|
20
20
|
/**
|
|
21
21
|
* Handle `if.event.revealed` events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revealed.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"revealed.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/revealed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,SAAS,CAAC;AAelE;;GAEG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CAkCd"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.handleRevealed = handleRevealed;
|
|
20
|
-
const text_blocks_1 = require("
|
|
20
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
21
21
|
const assemble_1 = require("../assemble");
|
|
22
22
|
/**
|
|
23
23
|
* Handle `if.event.revealed` events.
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @see ADR-107 — Dual-mode literal/messageId handling
|
|
16
16
|
* @see ADR-174 §Engine-internal prose pipeline (port from text-service)
|
|
17
17
|
*/
|
|
18
|
-
import type { ITextBlock } from
|
|
19
|
-
import type { ISemanticEvent } from
|
|
18
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
19
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
20
20
|
import type { HandlerContext } from './types';
|
|
21
21
|
/**
|
|
22
22
|
* Handle room description events.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/room.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0B9C;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,GACtB,UAAU,EAAE,CA8Dd"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.handleRoomDescription = handleRoomDescription;
|
|
21
|
-
const text_blocks_1 = require("
|
|
21
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
22
22
|
const assemble_1 = require("../assemble");
|
|
23
23
|
/**
|
|
24
24
|
* Handle room description events.
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* @see ADR-174 §Engine-internal prose pipeline
|
|
11
11
|
* @see ADR-094 (chain metadata semantics, preserved)
|
|
12
12
|
*/
|
|
13
|
-
import type { ITextBlock } from
|
|
14
|
-
import type { LanguageProvider } from
|
|
15
|
-
import type { ISemanticEvent } from
|
|
13
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
14
|
+
import type { LanguageProvider } from '@sharpee/if-domain';
|
|
15
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
16
16
|
/**
|
|
17
17
|
* Context passed to event handlers.
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/handlers/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CACzB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,cAAc,KACpB,UAAU,EAAE,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGhE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGrE,YAAY,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
* @see ADR-094 Event Chaining (sort stage)
|
|
22
22
|
* @see ADR-097 Domain Events with messageId (domain-message handler)
|
|
23
23
|
*/
|
|
24
|
-
import type { ITextBlock } from
|
|
25
|
-
import type { LanguageProvider } from
|
|
26
|
-
import type { ISemanticEvent } from
|
|
24
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
25
|
+
import type { LanguageProvider } from '@sharpee/if-domain';
|
|
26
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
27
27
|
import type { ITextService } from './types';
|
|
28
28
|
/**
|
|
29
29
|
* Engine-internal prose pipeline.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAqBpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;;;GAQG;AACH,qBAAa,aAAc,YAAW,YAAY;IAChD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;gBAExC,gBAAgB,EAAE,gBAAgB;IAS9C,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE;IAgBnD;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;CA6CvB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,gBAAgB,GACjC,YAAY,CAEd"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @see ADR-096 (preserved): the filter responsibility ports unchanged
|
|
12
12
|
* from `@sharpee/text-service`.
|
|
13
13
|
*/
|
|
14
|
-
import type { ISemanticEvent } from
|
|
14
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
15
15
|
/**
|
|
16
16
|
* Filter events that should produce text output.
|
|
17
17
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/stages/filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAUvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/stages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ports from `@sharpee/text-service`)
|
|
14
14
|
* @see ADR-174 §Engine-internal prose pipeline
|
|
15
15
|
*/
|
|
16
|
-
import type { ISemanticEvent } from
|
|
16
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
17
17
|
/**
|
|
18
18
|
* Event data with chain metadata (ADR-094).
|
|
19
19
|
*/
|