@sharpee/core 5.5.0 → 5.6.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.
Files changed (111) hide show
  1. package/events/event-factory.d.ts +11 -25
  2. package/events/event-factory.d.ts.map +1 -1
  3. package/events/event-factory.js +0 -34
  4. package/events/event-factory.js.map +1 -1
  5. package/events/event-registry.d.ts +17 -6
  6. package/events/event-registry.d.ts.map +1 -1
  7. package/events/event-registry.js +13 -2
  8. package/events/event-registry.js.map +1 -1
  9. package/events/game-events.d.ts +0 -67
  10. package/events/game-events.d.ts.map +1 -1
  11. package/events/game-events.js +0 -60
  12. package/events/game-events.js.map +1 -1
  13. package/events/index.d.ts +0 -2
  14. package/events/index.d.ts.map +1 -1
  15. package/events/index.js +0 -2
  16. package/events/index.js.map +1 -1
  17. package/events/platform-events.d.ts +10 -2
  18. package/events/platform-events.d.ts.map +1 -1
  19. package/events/platform-events.js +12 -14
  20. package/events/platform-events.js.map +1 -1
  21. package/events/system-event.d.ts +0 -5
  22. package/events/system-event.d.ts.map +1 -1
  23. package/events/system-event.js +0 -13
  24. package/events/system-event.js.map +1 -1
  25. package/index.d.ts +54 -9
  26. package/index.d.ts.map +1 -1
  27. package/index.js +103 -31
  28. package/index.js.map +1 -1
  29. package/metadata/index.d.ts +1 -1
  30. package/metadata/index.d.ts.map +1 -1
  31. package/metadata/story-metadata.d.ts +0 -8
  32. package/metadata/story-metadata.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/query/query-manager.d.ts +1 -5
  35. package/query/query-manager.d.ts.map +1 -1
  36. package/query/query-manager.js +0 -7
  37. package/query/query-manager.js.map +1 -1
  38. package/types/entity.d.ts +0 -13
  39. package/types/entity.d.ts.map +1 -1
  40. package/types/index.d.ts +0 -2
  41. package/types/index.d.ts.map +1 -1
  42. package/types/index.js +0 -2
  43. package/types/index.js.map +1 -1
  44. package/types/result.d.ts +0 -22
  45. package/types/result.d.ts.map +1 -1
  46. package/types/save-data.d.ts +47 -0
  47. package/types/save-data.d.ts.map +1 -1
  48. package/constants/attributes.d.ts +0 -32
  49. package/constants/attributes.d.ts.map +0 -1
  50. package/constants/attributes.js +0 -53
  51. package/constants/attributes.js.map +0 -1
  52. package/constants/core-events.d.ts +0 -37
  53. package/constants/core-events.d.ts.map +0 -1
  54. package/constants/core-events.js +0 -50
  55. package/constants/core-events.js.map +0 -1
  56. package/constants/entity-types.d.ts +0 -15
  57. package/constants/entity-types.d.ts.map +0 -1
  58. package/constants/entity-types.js +0 -27
  59. package/constants/entity-types.js.map +0 -1
  60. package/constants/index.d.ts +0 -22
  61. package/constants/index.d.ts.map +0 -1
  62. package/constants/index.js +0 -41
  63. package/constants/index.js.map +0 -1
  64. package/constants/relationships.d.ts +0 -25
  65. package/constants/relationships.d.ts.map +0 -1
  66. package/constants/relationships.js +0 -55
  67. package/constants/relationships.js.map +0 -1
  68. package/debug/index.d.ts +0 -5
  69. package/debug/index.d.ts.map +0 -1
  70. package/debug/index.js +0 -21
  71. package/debug/index.js.map +0 -1
  72. package/debug/types.d.ts +0 -65
  73. package/debug/types.d.ts.map +0 -1
  74. package/debug/types.js +0 -39
  75. package/debug/types.js.map +0 -1
  76. package/events/standard-events.d.ts +0 -26
  77. package/events/standard-events.d.ts.map +0 -1
  78. package/events/standard-events.js +0 -27
  79. package/events/standard-events.js.map +0 -1
  80. package/events/typed-event.d.ts +0 -69
  81. package/events/typed-event.d.ts.map +0 -1
  82. package/events/typed-event.js +0 -20
  83. package/events/typed-event.js.map +0 -1
  84. package/execution/index.d.ts +0 -2
  85. package/execution/index.d.ts.map +0 -1
  86. package/execution/index.js +0 -23
  87. package/execution/index.js.map +0 -1
  88. package/execution/types.d.ts +0 -117
  89. package/execution/types.d.ts.map +0 -1
  90. package/execution/types.js +0 -4
  91. package/execution/types.js.map +0 -1
  92. package/extensions/index.d.ts +0 -3
  93. package/extensions/index.d.ts.map +0 -1
  94. package/extensions/index.js +0 -20
  95. package/extensions/index.js.map +0 -1
  96. package/extensions/registry.d.ts +0 -61
  97. package/extensions/registry.d.ts.map +0 -1
  98. package/extensions/registry.js +0 -153
  99. package/extensions/registry.js.map +0 -1
  100. package/extensions/types.d.ts +0 -84
  101. package/extensions/types.d.ts.map +0 -1
  102. package/extensions/types.js +0 -15
  103. package/extensions/types.js.map +0 -1
  104. package/types/attribute.d.ts +0 -40
  105. package/types/attribute.d.ts.map +0 -1
  106. package/types/attribute.js +0 -4
  107. package/types/attribute.js.map +0 -1
  108. package/types/relationship.d.ts +0 -44
  109. package/types/relationship.d.ts.map +0 -1
  110. package/types/relationship.js +0 -4
  111. package/types/relationship.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"standard-events.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/events/standard-events.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2EAA2E;AAC9D,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;CACN,CAAC;AAEE,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACd,CAAC"}
@@ -1,69 +0,0 @@
1
- /**
2
- * Typed Semantic Event - Generic event interface with compile-time type safety
3
- *
4
- * @see ADR-082 for design rationale
5
- */
6
- import { EventDataRegistry, EventType } from './event-registry.js';
7
- import { ISemanticEvent } from './types.js';
8
- /**
9
- * A semantic event with typed data based on the event type.
10
- *
11
- * Use this when you know the specific event type at compile time.
12
- * The `data` property is strictly typed based on the event type.
13
- *
14
- * @example
15
- * ```typescript
16
- * const event: TypedSemanticEvent<'query.invalid'> = {
17
- * id: 'evt-1',
18
- * type: 'query.invalid',
19
- * timestamp: Date.now(),
20
- * entities: {},
21
- * data: { message: 'Invalid input', hint: 'Try again' }
22
- * };
23
- *
24
- * // TypeScript knows event.data.message is string | undefined
25
- * console.log(event.data.message);
26
- * ```
27
- */
28
- export interface TypedSemanticEvent<T extends EventType> extends Omit<ISemanticEvent, 'type' | 'data'> {
29
- /**
30
- * The event type - a literal string type for discrimination.
31
- */
32
- type: T;
33
- /**
34
- * Typed event data based on the event type.
35
- */
36
- data: EventDataRegistry[T];
37
- }
38
- /**
39
- * Union of all known typed semantic events.
40
- *
41
- * Use this for exhaustive event handling where you want TypeScript
42
- * to verify you've handled all event types.
43
- *
44
- * @example
45
- * ```typescript
46
- * function handleEvent(event: KnownSemanticEvent) {
47
- * switch (event.type) {
48
- * case 'query.invalid':
49
- * // TypeScript knows event.data is QueryInvalidData
50
- * return event.data.message;
51
- * case 'query.pending':
52
- * // TypeScript knows event.data is QueryPendingData
53
- * return event.data.query.messageId;
54
- * // ... handle all cases
55
- * }
56
- * }
57
- * ```
58
- */
59
- export type KnownSemanticEvent = {
60
- [K in EventType]: TypedSemanticEvent<K>;
61
- }[EventType];
62
- /**
63
- * Type guard to check if an ISemanticEvent is a known typed event.
64
- *
65
- * This is useful when you have an ISemanticEvent and want to narrow
66
- * it to a KnownSemanticEvent for exhaustive handling.
67
- */
68
- export declare function isKnownEvent(event: ISemanticEvent): event is KnownSemanticEvent;
69
- //# sourceMappingURL=typed-event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-event.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/events/typed-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,SAAS,CACrD,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,kBAAkB,GAAG;KAC9B,CAAC,IAAI,SAAS,GAAG,kBAAkB,CAAC,CAAC,CAAC;CACxC,CAAC,SAAS,CAAC,CAAC;AAEb;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,KAAK,IAAI,kBAAkB,CAI/E"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /**
3
- * Typed Semantic Event - Generic event interface with compile-time type safety
4
- *
5
- * @see ADR-082 for design rationale
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.isKnownEvent = isKnownEvent;
9
- /**
10
- * Type guard to check if an ISemanticEvent is a known typed event.
11
- *
12
- * This is useful when you have an ISemanticEvent and want to narrow
13
- * it to a KnownSemanticEvent for exhaustive handling.
14
- */
15
- function isKnownEvent(event) {
16
- // Check if the event type is in our registry
17
- // This is a runtime check that the type string is known
18
- return event.type in {};
19
- }
20
- //# sourceMappingURL=typed-event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-event.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/events/typed-event.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAqEH,oCAIC;AAVD;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,KAAqB;IAChD,6CAA6C;IAC7C,wDAAwD;IACxD,OAAO,KAAK,CAAC,IAAI,IAAK,EAAwB,CAAC;AACjD,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './types.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/execution/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // packages/core/src/execution/index.ts
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./types.js"), exports);
19
- // command-router has been moved to stdlib as it depends on GameContext
20
- // command-handler has been moved to stdlib as it depends on parser and GameContext
21
- // game-context has been moved to stdlib as it depends on world-model
22
- // actions have been moved to stdlib as they depend on parser and GameContext
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/execution/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;AAEvC,6CAA2B;AAC3B,uEAAuE;AACvE,mFAAmF;AACnF,qEAAqE;AACrE,6EAA6E"}
@@ -1,117 +0,0 @@
1
- /**
2
- * Generic context interface for execution
3
- * Domain-specific contexts should extend this interface
4
- */
5
- export interface IExecutionContext {
6
- /**
7
- * Additional context data
8
- */
9
- [key: string]: any;
10
- }
11
- /**
12
- * Generic handler interface for any command-like system
13
- * This is kept generic - specific implementations (IF, visual novel, etc)
14
- * should define their own command and result types
15
- */
16
- export interface ICommandHandler<TCommand = any, TResult = any> {
17
- /**
18
- * The verb or verbs that this handler can process
19
- */
20
- verbs: string[];
21
- /**
22
- * Check if this handler can handle the given command
23
- */
24
- canHandle: (command: TCommand, context: IExecutionContext) => boolean;
25
- /**
26
- * Execute the command
27
- */
28
- execute: (command: TCommand, context: IExecutionContext) => Promise<TResult> | TResult;
29
- /**
30
- * Validate the command before execution
31
- */
32
- validate?: (command: TCommand, context: IExecutionContext) => {
33
- valid: boolean;
34
- error?: string;
35
- };
36
- }
37
- /**
38
- * Generic action interface
39
- * Actions are handlers with unique identifiers
40
- */
41
- export interface IAction<TCommand = any, TResult = any> extends ICommandHandler<TCommand, TResult> {
42
- /**
43
- * Unique identifier for the action
44
- */
45
- id: string;
46
- /**
47
- * Action metadata (if any)
48
- */
49
- metadata?: any;
50
- }
51
- /**
52
- * Generic router interface for command-like systems
53
- */
54
- export interface ICommandRouter<TCommand = any, TResult = any> {
55
- /**
56
- * Register a command handler
57
- */
58
- registerHandler: (handler: ICommandHandler<TCommand, TResult>) => void;
59
- /**
60
- * Unregister a command handler
61
- */
62
- unregisterHandler: (handler: ICommandHandler<TCommand, TResult>) => void;
63
- /**
64
- * Get a handler for the command
65
- */
66
- getHandler: (command: TCommand, context: IExecutionContext) => ICommandHandler<TCommand, TResult> | undefined;
67
- /**
68
- * Route and execute a command
69
- */
70
- execute: (command: TCommand, context: IExecutionContext, options?: ICommandExecutionOptions<TCommand>) => Promise<TResult>;
71
- /**
72
- * Process the result of command execution and return text output
73
- */
74
- processResult?: (result: TResult) => string;
75
- }
76
- /**
77
- * Generic factory interface for creating handlers
78
- */
79
- export interface ICommandHandlerFactory<TCommand = any, TResult = any> {
80
- /**
81
- * Create a standard command handler
82
- */
83
- createHandler: (config: {
84
- verbs: string[];
85
- canHandle?: (command: TCommand, context: IExecutionContext) => boolean;
86
- execute: (command: TCommand, context: IExecutionContext) => Promise<TResult> | TResult;
87
- validate?: (command: TCommand, context: IExecutionContext) => {
88
- valid: boolean;
89
- error?: string;
90
- };
91
- }) => ICommandHandler<TCommand, TResult>;
92
- }
93
- /**
94
- * Options for command execution
95
- */
96
- export interface ICommandExecutionOptions<TCommand = any, TResult = any> {
97
- /**
98
- * Whether to skip validation
99
- */
100
- skipValidation?: boolean;
101
- /**
102
- * Custom validation callback
103
- */
104
- customValidation?: (command: TCommand, context: IExecutionContext) => {
105
- valid: boolean;
106
- error?: string;
107
- };
108
- /**
109
- * Pre-execution hooks
110
- */
111
- preExecute?: ((command: TCommand, context: IExecutionContext) => Promise<void> | void)[];
112
- /**
113
- * Post-execution hooks
114
- */
115
- postExecute?: ((result: TResult, command: TCommand, context: IExecutionContext) => Promise<TResult> | TResult)[];
116
- }
117
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/execution/types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe,CAAC,QAAQ,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;IAC5D;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC;IAEtE;;OAEG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAEvF;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClG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,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;QACvF,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAClG,KAAK,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,QAAQ,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG;IACrE;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEzG;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;IAEzF;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC;CAClH"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // packages/core/src/execution/types.ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/execution/types.ts"],"names":[],"mappings":";AAAA,uCAAuC"}
@@ -1,3 +0,0 @@
1
- export * from './types.js';
2
- export * from './registry.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // packages/core/src/extensions/index.ts
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./types.js"), exports);
19
- __exportStar(require("./registry.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/index.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;;;;;;;;;;;;;;AAExC,6CAA2B;AAC3B,gDAA8B"}
@@ -1,61 +0,0 @@
1
- import { AnyExtension, ExtensionType } from './types.js';
2
- /**
3
- * Registry for extensions
4
- */
5
- export declare class ExtensionRegistry {
6
- private extensions;
7
- private processingOrder;
8
- /**
9
- * Register an extension
10
- * @param type Type of extension
11
- * @param extension The extension to register
12
- */
13
- register<T extends AnyExtension>(type: ExtensionType, extension: T): void;
14
- /**
15
- * Get an extension by type and id
16
- * @param type Type of extension
17
- * @param id Extension ID
18
- */
19
- get<T extends AnyExtension>(type: ExtensionType, id: string): T | undefined;
20
- /**
21
- * Get all extensions of a specific type
22
- * @param type Type of extension
23
- */
24
- getAll<T extends AnyExtension>(type: ExtensionType): T[];
25
- /**
26
- * Set the processing order for a specific extension type
27
- * @param type Type of extension
28
- * @param orderedIds Ordered list of extension IDs
29
- */
30
- setProcessingOrder(type: ExtensionType, orderedIds: string[]): void;
31
- /**
32
- * Check if an extension is registered
33
- * @param type Type of extension
34
- * @param id Extension ID
35
- */
36
- has(type: ExtensionType, id: string): boolean;
37
- /**
38
- * Remove an extension
39
- * @param type Type of extension
40
- * @param id Extension ID
41
- */
42
- remove(type: ExtensionType, id: string): boolean;
43
- /**
44
- * Get the number of registered extensions of a specific type
45
- * @param type Type of extension
46
- */
47
- count(type: ExtensionType): number;
48
- /**
49
- * Initialize an extension if needed
50
- */
51
- private initializeExtension;
52
- /**
53
- * Clean up an extension if needed
54
- */
55
- private cleanupExtension;
56
- }
57
- /**
58
- * Create a new extension registry
59
- */
60
- export declare function createExtensionRegistry(): ExtensionRegistry;
61
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/registry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzD;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,UAAU,CAA4D;IAC9E,OAAO,CAAC,eAAe,CAA2C;IAElE;;;;OAIG;IACI,QAAQ,CAAC,CAAC,SAAS,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,GAAG,IAAI;IAuBhF;;;;OAIG;IACI,GAAG,CAAC,CAAC,SAAS,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAOlF;;;OAGG;IACI,MAAM,CAAC,CAAC,SAAS,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAY/D;;;;OAIG;IACI,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI;IA0B1E;;;;OAIG;IACI,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO;IAOpD;;;;OAIG;IACI,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO;IAuBvD;;;OAGG;IACI,KAAK,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;IAOzC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAK3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAIzB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAE3D"}
@@ -1,153 +0,0 @@
1
- "use strict";
2
- // packages/core/src/extensions/registry.ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ExtensionRegistry = void 0;
5
- exports.createExtensionRegistry = createExtensionRegistry;
6
- /**
7
- * Registry for extensions
8
- */
9
- class ExtensionRegistry {
10
- extensions = new Map();
11
- processingOrder = new Map();
12
- /**
13
- * Register an extension
14
- * @param type Type of extension
15
- * @param extension The extension to register
16
- */
17
- register(type, extension) {
18
- // Initialize maps if they don't exist
19
- if (!this.extensions.has(type)) {
20
- this.extensions.set(type, new Map());
21
- this.processingOrder.set(type, []);
22
- }
23
- const typeRegistry = this.extensions.get(type);
24
- const orderList = this.processingOrder.get(type);
25
- // Check for duplicate extensions
26
- if (typeRegistry.has(extension.id)) {
27
- throw new Error(`Extension with ID "${extension.id}" already registered for type "${type}"`);
28
- }
29
- // Register the extension
30
- typeRegistry.set(extension.id, extension);
31
- orderList.push(extension.id);
32
- // Handle initialization for certain extension types
33
- this.initializeExtension(type, extension);
34
- }
35
- /**
36
- * Get an extension by type and id
37
- * @param type Type of extension
38
- * @param id Extension ID
39
- */
40
- get(type, id) {
41
- const typeRegistry = this.extensions.get(type);
42
- if (!typeRegistry)
43
- return undefined;
44
- return typeRegistry.get(id);
45
- }
46
- /**
47
- * Get all extensions of a specific type
48
- * @param type Type of extension
49
- */
50
- getAll(type) {
51
- const typeRegistry = this.extensions.get(type);
52
- if (!typeRegistry)
53
- return [];
54
- const orderList = this.processingOrder.get(type) || [];
55
- // Return extensions in the order they were registered
56
- return orderList
57
- .map(id => typeRegistry.get(id))
58
- .filter((e) => e !== undefined);
59
- }
60
- /**
61
- * Set the processing order for a specific extension type
62
- * @param type Type of extension
63
- * @param orderedIds Ordered list of extension IDs
64
- */
65
- setProcessingOrder(type, orderedIds) {
66
- const typeRegistry = this.extensions.get(type);
67
- if (!typeRegistry) {
68
- throw new Error(`No extensions registered for type "${type}"`);
69
- }
70
- // Validate that all IDs exist
71
- for (const id of orderedIds) {
72
- if (!typeRegistry.has(id)) {
73
- throw new Error(`Extension with ID "${id}" not found for type "${type}"`);
74
- }
75
- }
76
- // Validate that all extensions are included
77
- const registeredIds = Array.from(typeRegistry.keys());
78
- if (registeredIds.length !== orderedIds.length) {
79
- throw new Error(`Processing order must include all registered extensions. ` +
80
- `Missing: ${registeredIds.filter(id => !orderedIds.includes(id)).join(', ')}`);
81
- }
82
- // Set the processing order
83
- this.processingOrder.set(type, [...orderedIds]);
84
- }
85
- /**
86
- * Check if an extension is registered
87
- * @param type Type of extension
88
- * @param id Extension ID
89
- */
90
- has(type, id) {
91
- const typeRegistry = this.extensions.get(type);
92
- if (!typeRegistry)
93
- return false;
94
- return typeRegistry.has(id);
95
- }
96
- /**
97
- * Remove an extension
98
- * @param type Type of extension
99
- * @param id Extension ID
100
- */
101
- remove(type, id) {
102
- const typeRegistry = this.extensions.get(type);
103
- if (!typeRegistry)
104
- return false;
105
- // Check if extension exists
106
- if (!typeRegistry.has(id))
107
- return false;
108
- // Remove from processing order
109
- const orderList = this.processingOrder.get(type);
110
- if (orderList) {
111
- const index = orderList.indexOf(id);
112
- if (index !== -1) {
113
- orderList.splice(index, 1);
114
- }
115
- }
116
- // Clean up extension if needed
117
- this.cleanupExtension(type, typeRegistry.get(id));
118
- // Remove from registry
119
- return typeRegistry.delete(id);
120
- }
121
- /**
122
- * Get the number of registered extensions of a specific type
123
- * @param type Type of extension
124
- */
125
- count(type) {
126
- const typeRegistry = this.extensions.get(type);
127
- if (!typeRegistry)
128
- return 0;
129
- return typeRegistry.size;
130
- }
131
- /**
132
- * Initialize an extension if needed
133
- */
134
- initializeExtension(type, extension) {
135
- // Add any initialization logic here if needed
136
- // For example, calling initialize() on WorldModelExtensions
137
- }
138
- /**
139
- * Clean up an extension if needed
140
- */
141
- cleanupExtension(type, extension) {
142
- // Add any cleanup logic here if needed
143
- // For example, calling cleanup() on WorldModelExtensions
144
- }
145
- }
146
- exports.ExtensionRegistry = ExtensionRegistry;
147
- /**
148
- * Create a new extension registry
149
- */
150
- function createExtensionRegistry() {
151
- return new ExtensionRegistry();
152
- }
153
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/registry.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AA4K3C,0DAEC;AAvKD;;GAEG;AACH,MAAa,iBAAiB;IACpB,UAAU,GAAkD,IAAI,GAAG,EAAE,CAAC;IACtE,eAAe,GAAiC,IAAI,GAAG,EAAE,CAAC;IAElE;;;;OAIG;IACI,QAAQ,CAAyB,IAAmB,EAAE,SAAY;QACvE,sCAAsC;QACtC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,EAAwB,CAAC,CAAC;YAC3D,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC;QAED,MAAM,YAAY,GAAG,IAA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6JC;AAED;;GAEG;AACH,SAAgB,uBAAuB;IACrC,OAAO,IAAI,iBAAiB,EAAE,CAAC;AACjC,CAAC"}
@@ -1,84 +0,0 @@
1
- import { ISemanticEvent } from '../events/types.js';
2
- /**
3
- * Base interface for all extensions
4
- */
5
- export interface IExtension {
6
- /**
7
- * Unique identifier for this extension
8
- */
9
- id: string;
10
- /**
11
- * Human-readable name of the extension
12
- */
13
- name: string;
14
- /**
15
- * Version of the extension
16
- */
17
- version?: string;
18
- /**
19
- * Extension dependencies
20
- */
21
- dependencies?: string[];
22
- }
23
- /**
24
- * Extension for command handling (generic)
25
- * The IF-specific version with ParsedCommand and GameContext is in stdlib
26
- */
27
- export interface ICommandExtension extends IExtension {
28
- /**
29
- * Verbs that this extension can handle
30
- */
31
- verbs: string[];
32
- }
33
- /**
34
- * Extension for abilities (generic)
35
- * The IF-specific version with GameContext is in stdlib
36
- */
37
- export interface IAbilityExtension extends IExtension {
38
- /**
39
- * Name of the ability
40
- */
41
- abilityName: string;
42
- }
43
- /**
44
- * Extension for event processing (generic)
45
- * The IF-specific version with GameContext is in stdlib
46
- */
47
- export interface IEventExtension extends IExtension {
48
- /**
49
- * Event types that this extension handles
50
- */
51
- eventTypes: string[];
52
- /**
53
- * Process an event
54
- */
55
- processEvent: (event: ISemanticEvent) => ISemanticEvent[];
56
- }
57
- /**
58
- * Extension for parser enhancements (generic)
59
- * The IF-specific version with ParsedCommand is in stdlib
60
- */
61
- export interface IParserExtension extends IExtension {
62
- /**
63
- * Grammar rules, dictionaries, etc.
64
- */
65
- vocabulary?: Record<string, string[]>;
66
- /**
67
- * Pre-processing hook for input text
68
- */
69
- preProcessInput?: (input: string) => string;
70
- }
71
- /**
72
- * Extension types enum
73
- */
74
- export declare enum ExtensionType {
75
- COMMAND = "command",
76
- ABILITY = "ability",
77
- EVENT = "event",
78
- PARSER = "parser"
79
- }
80
- /**
81
- * Union type for all extension types
82
- */
83
- export type AnyExtension = ICommandExtension | IAbilityExtension | IEventExtension | IParserExtension;
84
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,cAAc,EAAE,CAAC;CAC3D;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7C;AAED;;GAEG;AACH,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,gBAAgB,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // packages/core/src/extensions/types.ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ExtensionType = void 0;
5
- /**
6
- * Extension types enum
7
- */
8
- var ExtensionType;
9
- (function (ExtensionType) {
10
- ExtensionType["COMMAND"] = "command";
11
- ExtensionType["ABILITY"] = "ability";
12
- ExtensionType["EVENT"] = "event";
13
- ExtensionType["PARSER"] = "parser";
14
- })(ExtensionType || (exports.ExtensionType = ExtensionType = {}));
15
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/extensions/types.ts"],"names":[],"mappings":";AAAA,wCAAwC;;;AAmFxC;;GAEG;AACH,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}