@sharpee/engine 1.0.0 → 1.0.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/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
|
@@ -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
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../../../../repos/sharpee/packages/engine/src/prose-pipeline/stages/sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;GAEG;AACH,UAAU,aAAa;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAUD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAgD7E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,aAAa,CAQrE"}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
*
|
|
19
19
|
* @see ADR-174 §Internal interfaces
|
|
20
20
|
*/
|
|
21
|
-
import type { ISemanticEvent } from
|
|
22
|
-
import type { ITextBlock } from
|
|
21
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
22
|
+
import type { ITextBlock } from '@sharpee/text-blocks';
|
|
23
23
|
/**
|
|
24
24
|
* Per-turn prose translator.
|
|
25
25
|
*
|
|
@@ -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/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;OASG;IACH,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE,CAAC;CACrD"}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* the ScoreLedger, capabilities, world state values, relationships,
|
|
19
19
|
* ID counters, and sub-container containment.
|
|
20
20
|
*/
|
|
21
|
-
import { WorldModel } from
|
|
22
|
-
import { ISaveData, ISerializedTurn, ISemanticEventSource } from
|
|
23
|
-
import { PluginRegistry } from
|
|
21
|
+
import { WorldModel } from '@sharpee/world-model';
|
|
22
|
+
import { ISaveData, ISerializedTurn, ISemanticEventSource } from '@sharpee/core';
|
|
23
|
+
import { PluginRegistry } from '@sharpee/plugins';
|
|
24
24
|
import { TurnResult, GameContext } from './types';
|
|
25
25
|
import { Story } from './story';
|
|
26
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-restore-service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"save-restore-service.d.ts","sourceRoot":"","sources":["../../../../../../repos/sharpee/packages/engine/src/save-restore-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,SAAS,EAIT,eAAe,EAEf,oBAAoB,EAErB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA0DhC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,IAAI,UAAU,CAAC;IACvB,UAAU,IAAI,WAAW,CAAC;IAC1B,QAAQ,IAAI,KAAK,GAAG,SAAS,CAAC;IAC9B,cAAc,IAAI,oBAAoB,CAAC;IACvC,iBAAiB,IAAI,cAAc,CAAC;IACpC,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,kBAAkB;IAE7B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,iBAAiB,CAAgB;IACzC,OAAO,CAAC,gBAAgB,CAAS;gBAErB,MAAM,CAAC,EAAE,UAAU;IAI/B;;OAEG;IACH,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAiBhE;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAehD;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,kBAAkB,IAAI,IAAI;IAK1B;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,yBAAyB,GAAG,SAAS;IAwC9D;;;OAGG;IACH,YAAY,CACV,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,yBAAyB,GAClC;QACD,WAAW,EAAE,oBAAoB,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC;KACrB;IA4CD;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA6B1B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAgB9B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAwB5B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,sBAAsB,CACpB,KAAK,EAAE,eAAe,EAAE,EACxB,WAAW,EAAE,oBAAoB,GAChC,UAAU,EAAE;IAoBf;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAU7B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAEhF"}
|
package/save-restore-service.js
CHANGED
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
exports.SaveRestoreService = void 0;
|
|
24
24
|
exports.createSaveRestoreService = createSaveRestoreService;
|
|
25
25
|
const fflate_1 = require("fflate");
|
|
26
|
-
const core_1 = require("
|
|
26
|
+
const core_1 = require("@sharpee/core");
|
|
27
27
|
/**
|
|
28
28
|
* Save format version. Bumped from `1.0.0` → `2.0.0` when the partial
|
|
29
29
|
* `spatialIndex` serializer was replaced with the full `worldSnapshot`
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Public interface: SceneEvaluationPlugin (TurnPlugin implementation).
|
|
13
13
|
* Owner context: @sharpee/engine — turn cycle
|
|
14
14
|
*/
|
|
15
|
-
import { ISemanticEvent } from
|
|
16
|
-
import type { TurnPlugin, TurnPluginContext } from
|
|
15
|
+
import { ISemanticEvent } from '@sharpee/core';
|
|
16
|
+
import type { TurnPlugin, TurnPluginContext } from '@sharpee/plugins';
|
|
17
17
|
export declare class SceneEvaluationPlugin implements TurnPlugin {
|
|
18
18
|
id: string;
|
|
19
19
|
priority: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-evaluation-plugin.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"scene-evaluation-plugin.d.ts","sourceRoot":"","sources":["../../../../../../repos/sharpee/packages/engine/src/scene-evaluation-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAiBtE,qBAAa,qBAAsB,YAAW,UAAU;IACtD,EAAE,SAA8B;IAChC,QAAQ,SAAM;IAEd;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,cAAc,EAAE;CAmE5D"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SceneEvaluationPlugin = void 0;
|
|
18
|
-
const world_model_1 = require("
|
|
18
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
19
19
|
let eventCounter = 0;
|
|
20
20
|
/**
|
|
21
21
|
* Creates a minimal ISemanticEvent with the given type and data.
|
package/shared-data-keys.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* This file defines only engine-level keys. Actions define their own
|
|
8
8
|
* action-specific keys as needed.
|
|
9
9
|
*/
|
|
10
|
-
import type { ISemanticEvent } from
|
|
11
|
-
import type { IFEntity } from
|
|
12
|
-
import type { ValidationResult } from
|
|
10
|
+
import type { ISemanticEvent } from '@sharpee/core';
|
|
11
|
+
import type { IFEntity } from '@sharpee/world-model';
|
|
12
|
+
import type { ValidationResult } from '@sharpee/stdlib';
|
|
13
13
|
/**
|
|
14
14
|
* Constants for engine-level sharedData keys.
|
|
15
15
|
* Using constants prevents typos and enables IDE autocomplete.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-data-keys.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"shared-data-keys.d.ts","sourceRoot":"","sources":["../../../../../../repos/sharpee/packages/engine/src/shared-data-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,cAAc;IACzB,wDAAwD;;IAGxD,kDAAkD;;IAGlD,iDAAiD;;IAGjD,kDAAkD;;IAGlD,gDAAgD;;CAExC,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEnF;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,EAAE,OAAO,CAAC;IAE/C,kDAAkD;IAClD,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC;IAE5C,iDAAiD;IACjD,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC;IAE5C,wCAAwC;IACxC,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;IAEzD,gDAAgD;IAChD,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,EAAE,gBAAgB,CAAC;IAEtD,4CAA4C;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
package/sound/dispatcher.d.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* @see ADR-172 — Spatial Sound Propagation
|
|
23
23
|
* @see ADR-163 — Channel-Service Platform (audibility channel)
|
|
24
24
|
*/
|
|
25
|
-
import { type ISemanticEvent } from
|
|
26
|
-
import type { IAudibilityEvent, ISound } from
|
|
27
|
-
import { type WorldModel } from
|
|
25
|
+
import { type ISemanticEvent } from '@sharpee/core';
|
|
26
|
+
import type { IAudibilityEvent, ISound } from '@sharpee/if-domain';
|
|
27
|
+
import { type WorldModel } from '@sharpee/world-model';
|
|
28
28
|
/**
|
|
29
29
|
* Semantic-event type fired by the dispatcher when a listener perceives
|
|
30
30
|
* a propagated sound. Mirrors `SOUND_EVENT_TYPES.AUDIBILITY_HEARD` in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/engine/src/sound/dispatcher.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAA4B,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGjF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AAEpE;;;;;;;;GAQG;AACH,qBAAa,eAAe;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,SAAS,CAKG;gBAG3B,WAAW,GAAE,CACX,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,MAAM,KACd,gBAAgB,GAAG,IAAuB;IAKjD;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,MAAM,GAChB,cAAc,EAAE;CAsBpB"}
|
package/sound/dispatcher.js
CHANGED
|
@@ -26,8 +26,8 @@ exports.SoundDispatcher = exports.AUDIBILITY_HEARD_EVENT_TYPE = void 0;
|
|
|
26
26
|
* @see ADR-172 — Spatial Sound Propagation
|
|
27
27
|
* @see ADR-163 — Channel-Service Platform (audibility channel)
|
|
28
28
|
*/
|
|
29
|
-
const core_1 = require("
|
|
30
|
-
const world_model_1 = require("
|
|
29
|
+
const core_1 = require("@sharpee/core");
|
|
30
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
31
31
|
const propagation_1 = require("./propagation");
|
|
32
32
|
/**
|
|
33
33
|
* Semantic-event type fired by the dispatcher when a listener perceives
|
package/sound/index.d.ts.map
CHANGED
|
@@ -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/sound/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC"}
|
package/sound/propagation.d.ts
CHANGED
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
* @see ADR-172 — Spatial Sound Propagation
|
|
33
33
|
* @see ADR-173 — Wall Adjacency Primitive (substrate)
|
|
34
34
|
*/
|
|
35
|
-
import type { EntityId } from
|
|
36
|
-
import { type AudibilityTier, type IAudibilityEvent, type ISound } from
|
|
37
|
-
import { WorldModel } from
|
|
35
|
+
import type { EntityId } from '@sharpee/core';
|
|
36
|
+
import { type AudibilityTier, type IAudibilityEvent, type ISound } from '@sharpee/if-domain';
|
|
37
|
+
import { WorldModel } from '@sharpee/world-model';
|
|
38
38
|
/**
|
|
39
39
|
* Propagate a sound emission to a single listener.
|
|
40
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propagation.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"propagation.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/engine/src/sound/propagation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAUL,UAAU,EACX,MAAM,sBAAsB,CAAC;AAM9B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,QAAQ,EACpB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,MAAM,GAChB,gBAAgB,GAAG,IAAI,CAuBzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAM7D"}
|
package/sound/propagation.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.propagate = propagate;
|
|
5
5
|
exports.clarityToTier = clarityToTier;
|
|
6
|
-
const if_domain_1 = require("
|
|
7
|
-
const world_model_1 = require("
|
|
6
|
+
const if_domain_1 = require("@sharpee/if-domain");
|
|
7
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
8
8
|
// =============================================================================
|
|
9
9
|
// Public API
|
|
10
10
|
// =============================================================================
|
package/story.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Story configuration and interfaces
|
|
3
3
|
*/
|
|
4
|
-
import { WorldModel, IFEntity, IGameEvent, SimpleEventHandler } from
|
|
5
|
-
import { LanguageProvider, IChannelRegistry } from
|
|
6
|
-
import { Parser } from
|
|
7
|
-
import { ISemanticEvent } from
|
|
4
|
+
import { WorldModel, IFEntity, IGameEvent, SimpleEventHandler } from '@sharpee/world-model';
|
|
5
|
+
import { LanguageProvider, IChannelRegistry } from '@sharpee/if-domain';
|
|
6
|
+
import { Parser } from '@sharpee/stdlib';
|
|
7
|
+
import { ISemanticEvent } from '@sharpee/core';
|
|
8
8
|
import type { GameEngine } from './game-engine';
|
|
9
9
|
import { NarrativeConfig } from './narrative';
|
|
10
10
|
/**
|