@sharpee/core 5.5.1 → 5.6.1
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/events/event-factory.d.ts +11 -25
- package/events/event-factory.d.ts.map +1 -1
- package/events/event-factory.js +0 -34
- package/events/event-factory.js.map +1 -1
- package/events/event-registry.d.ts +13 -6
- package/events/event-registry.d.ts.map +1 -1
- package/events/event-registry.js +13 -2
- package/events/event-registry.js.map +1 -1
- package/events/game-events.d.ts +0 -67
- package/events/game-events.d.ts.map +1 -1
- package/events/game-events.js +0 -60
- package/events/game-events.js.map +1 -1
- package/events/index.d.ts +0 -2
- package/events/index.d.ts.map +1 -1
- package/events/index.js +0 -2
- package/events/index.js.map +1 -1
- package/events/platform-events.d.ts +0 -1
- package/events/platform-events.d.ts.map +1 -1
- package/events/platform-events.js +0 -14
- package/events/platform-events.js.map +1 -1
- package/events/system-event.d.ts +0 -5
- package/events/system-event.d.ts.map +1 -1
- package/events/system-event.js +0 -13
- package/events/system-event.js.map +1 -1
- package/index.d.ts +54 -9
- package/index.d.ts.map +1 -1
- package/index.js +103 -31
- package/index.js.map +1 -1
- package/metadata/index.d.ts +1 -1
- package/metadata/index.d.ts.map +1 -1
- package/metadata/story-metadata.d.ts +0 -8
- package/metadata/story-metadata.d.ts.map +1 -1
- package/package.json +1 -1
- package/query/query-manager.d.ts +1 -5
- package/query/query-manager.d.ts.map +1 -1
- package/query/query-manager.js +0 -7
- package/query/query-manager.js.map +1 -1
- package/types/entity.d.ts +0 -13
- package/types/entity.d.ts.map +1 -1
- package/types/index.d.ts +0 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +0 -2
- package/types/index.js.map +1 -1
- package/types/result.d.ts +0 -22
- package/types/result.d.ts.map +1 -1
- package/constants/attributes.d.ts +0 -32
- package/constants/attributes.d.ts.map +0 -1
- package/constants/attributes.js +0 -53
- package/constants/attributes.js.map +0 -1
- package/constants/core-events.d.ts +0 -37
- package/constants/core-events.d.ts.map +0 -1
- package/constants/core-events.js +0 -50
- package/constants/core-events.js.map +0 -1
- package/constants/entity-types.d.ts +0 -15
- package/constants/entity-types.d.ts.map +0 -1
- package/constants/entity-types.js +0 -27
- package/constants/entity-types.js.map +0 -1
- package/constants/index.d.ts +0 -22
- package/constants/index.d.ts.map +0 -1
- package/constants/index.js +0 -41
- package/constants/index.js.map +0 -1
- package/constants/relationships.d.ts +0 -25
- package/constants/relationships.d.ts.map +0 -1
- package/constants/relationships.js +0 -55
- package/constants/relationships.js.map +0 -1
- package/debug/index.d.ts +0 -5
- package/debug/index.d.ts.map +0 -1
- package/debug/index.js +0 -21
- package/debug/index.js.map +0 -1
- package/debug/types.d.ts +0 -65
- package/debug/types.d.ts.map +0 -1
- package/debug/types.js +0 -39
- package/debug/types.js.map +0 -1
- package/events/standard-events.d.ts +0 -26
- package/events/standard-events.d.ts.map +0 -1
- package/events/standard-events.js +0 -27
- package/events/standard-events.js.map +0 -1
- package/events/typed-event.d.ts +0 -69
- package/events/typed-event.d.ts.map +0 -1
- package/events/typed-event.js +0 -20
- package/events/typed-event.js.map +0 -1
- package/execution/index.d.ts +0 -2
- package/execution/index.d.ts.map +0 -1
- package/execution/index.js +0 -23
- package/execution/index.js.map +0 -1
- package/execution/types.d.ts +0 -117
- package/execution/types.d.ts.map +0 -1
- package/execution/types.js +0 -4
- package/execution/types.js.map +0 -1
- package/extensions/index.d.ts +0 -3
- package/extensions/index.d.ts.map +0 -1
- package/extensions/index.js +0 -20
- package/extensions/index.js.map +0 -1
- package/extensions/registry.d.ts +0 -61
- package/extensions/registry.d.ts.map +0 -1
- package/extensions/registry.js +0 -153
- package/extensions/registry.js.map +0 -1
- package/extensions/types.d.ts +0 -84
- package/extensions/types.d.ts.map +0 -1
- package/extensions/types.js +0 -15
- package/extensions/types.js.map +0 -1
- package/types/attribute.d.ts +0 -40
- package/types/attribute.d.ts.map +0 -1
- package/types/attribute.js +0 -4
- package/types/attribute.js.map +0 -1
- package/types/relationship.d.ts +0 -44
- package/types/relationship.d.ts.map +0 -1
- package/types/relationship.js +0 -4
- package/types/relationship.js.map +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core system events - generic events that any narrative system might use
|
|
3
|
-
* These are infrastructure-level events, not game-specific
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CoreEvents {
|
|
6
|
-
SYSTEM_INITIALIZED = "core.system.initialized",
|
|
7
|
-
SYSTEM_SHUTDOWN = "core.system.shutdown",
|
|
8
|
-
STATE_CHANGED = "core.state.changed",
|
|
9
|
-
STATE_RESTORED = "core.state.restored",
|
|
10
|
-
ENTITY_CREATED = "core.entity.created",
|
|
11
|
-
ENTITY_UPDATED = "core.entity.updated",
|
|
12
|
-
ENTITY_DESTROYED = "core.entity.destroyed",
|
|
13
|
-
RELATIONSHIP_CREATED = "core.relationship.created",
|
|
14
|
-
RELATIONSHIP_UPDATED = "core.relationship.updated",
|
|
15
|
-
RELATIONSHIP_DESTROYED = "core.relationship.destroyed",
|
|
16
|
-
COMMAND_RECEIVED = "core.command.received",
|
|
17
|
-
COMMAND_PARSED = "core.command.parsed",
|
|
18
|
-
COMMAND_EXECUTED = "core.command.executed",
|
|
19
|
-
COMMAND_FAILED = "core.command.failed",
|
|
20
|
-
EXTENSION_LOADED = "core.extension.loaded",
|
|
21
|
-
EXTENSION_UNLOADED = "core.extension.unloaded",
|
|
22
|
-
ERROR_OCCURRED = "core.error.occurred",
|
|
23
|
-
WARNING_RAISED = "core.warning.raised"
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Core event categories for filtering
|
|
27
|
-
*/
|
|
28
|
-
export declare enum CoreEventCategory {
|
|
29
|
-
SYSTEM = "system",
|
|
30
|
-
STATE = "state",
|
|
31
|
-
ENTITY = "entity",
|
|
32
|
-
RELATIONSHIP = "relationship",
|
|
33
|
-
COMMAND = "command",
|
|
34
|
-
EXTENSION = "extension",
|
|
35
|
-
ERROR = "error"
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=core-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core-events.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/core-events.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,oBAAY,UAAU;IAEpB,kBAAkB,4BAA4B;IAC9C,eAAe,yBAAyB;IAGxC,aAAa,uBAAuB;IACpC,cAAc,wBAAwB;IAGtC,cAAc,wBAAwB;IACtC,cAAc,wBAAwB;IACtC,gBAAgB,0BAA0B;IAG1C,oBAAoB,8BAA8B;IAClD,oBAAoB,8BAA8B;IAClD,sBAAsB,gCAAgC;IAGtD,gBAAgB,0BAA0B;IAC1C,cAAc,wBAAwB;IACtC,gBAAgB,0BAA0B;IAC1C,cAAc,wBAAwB;IAGtC,gBAAgB,0BAA0B;IAC1C,kBAAkB,4BAA4B;IAG9C,cAAc,wBAAwB;IACtC,cAAc,wBAAwB;CACvC;AAED;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB"}
|
package/constants/core-events.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// packages/core/src/constants/core-events.ts
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CoreEventCategory = exports.CoreEvents = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Core system events - generic events that any narrative system might use
|
|
7
|
-
* These are infrastructure-level events, not game-specific
|
|
8
|
-
*/
|
|
9
|
-
var CoreEvents;
|
|
10
|
-
(function (CoreEvents) {
|
|
11
|
-
// System lifecycle events
|
|
12
|
-
CoreEvents["SYSTEM_INITIALIZED"] = "core.system.initialized";
|
|
13
|
-
CoreEvents["SYSTEM_SHUTDOWN"] = "core.system.shutdown";
|
|
14
|
-
// State management events
|
|
15
|
-
CoreEvents["STATE_CHANGED"] = "core.state.changed";
|
|
16
|
-
CoreEvents["STATE_RESTORED"] = "core.state.restored";
|
|
17
|
-
// Entity lifecycle events
|
|
18
|
-
CoreEvents["ENTITY_CREATED"] = "core.entity.created";
|
|
19
|
-
CoreEvents["ENTITY_UPDATED"] = "core.entity.updated";
|
|
20
|
-
CoreEvents["ENTITY_DESTROYED"] = "core.entity.destroyed";
|
|
21
|
-
// Relationship events
|
|
22
|
-
CoreEvents["RELATIONSHIP_CREATED"] = "core.relationship.created";
|
|
23
|
-
CoreEvents["RELATIONSHIP_UPDATED"] = "core.relationship.updated";
|
|
24
|
-
CoreEvents["RELATIONSHIP_DESTROYED"] = "core.relationship.destroyed";
|
|
25
|
-
// Command processing events
|
|
26
|
-
CoreEvents["COMMAND_RECEIVED"] = "core.command.received";
|
|
27
|
-
CoreEvents["COMMAND_PARSED"] = "core.command.parsed";
|
|
28
|
-
CoreEvents["COMMAND_EXECUTED"] = "core.command.executed";
|
|
29
|
-
CoreEvents["COMMAND_FAILED"] = "core.command.failed";
|
|
30
|
-
// Extension events
|
|
31
|
-
CoreEvents["EXTENSION_LOADED"] = "core.extension.loaded";
|
|
32
|
-
CoreEvents["EXTENSION_UNLOADED"] = "core.extension.unloaded";
|
|
33
|
-
// Error events
|
|
34
|
-
CoreEvents["ERROR_OCCURRED"] = "core.error.occurred";
|
|
35
|
-
CoreEvents["WARNING_RAISED"] = "core.warning.raised";
|
|
36
|
-
})(CoreEvents || (exports.CoreEvents = CoreEvents = {}));
|
|
37
|
-
/**
|
|
38
|
-
* Core event categories for filtering
|
|
39
|
-
*/
|
|
40
|
-
var CoreEventCategory;
|
|
41
|
-
(function (CoreEventCategory) {
|
|
42
|
-
CoreEventCategory["SYSTEM"] = "system";
|
|
43
|
-
CoreEventCategory["STATE"] = "state";
|
|
44
|
-
CoreEventCategory["ENTITY"] = "entity";
|
|
45
|
-
CoreEventCategory["RELATIONSHIP"] = "relationship";
|
|
46
|
-
CoreEventCategory["COMMAND"] = "command";
|
|
47
|
-
CoreEventCategory["EXTENSION"] = "extension";
|
|
48
|
-
CoreEventCategory["ERROR"] = "error";
|
|
49
|
-
})(CoreEventCategory || (exports.CoreEventCategory = CoreEventCategory = {}));
|
|
50
|
-
//# sourceMappingURL=core-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core-events.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/core-events.ts"],"names":[],"mappings":";AAAA,6CAA6C;;;AAE7C;;;GAGG;AACH,IAAY,UAgCX;AAhCD,WAAY,UAAU;IACpB,0BAA0B;IAC1B,4DAA8C,CAAA;IAC9C,sDAAwC,CAAA;IAExC,0BAA0B;IAC1B,kDAAoC,CAAA;IACpC,oDAAsC,CAAA;IAEtC,0BAA0B;IAC1B,oDAAsC,CAAA;IACtC,oDAAsC,CAAA;IACtC,wDAA0C,CAAA;IAE1C,sBAAsB;IACtB,gEAAkD,CAAA;IAClD,gEAAkD,CAAA;IAClD,oEAAsD,CAAA;IAEtD,4BAA4B;IAC5B,wDAA0C,CAAA;IAC1C,oDAAsC,CAAA;IACtC,wDAA0C,CAAA;IAC1C,oDAAsC,CAAA;IAEtC,mBAAmB;IACnB,wDAA0C,CAAA;IAC1C,4DAA8C,CAAA;IAE9C,eAAe;IACf,oDAAsC,CAAA;IACtC,oDAAsC,CAAA;AACxC,CAAC,EAhCW,UAAU,0BAAV,UAAU,QAgCrB;AAED;;GAEG;AACH,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,kDAA6B,CAAA;IAC7B,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,oCAAe,CAAA;AACjB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core entity types - generic types that any system might use
|
|
3
|
-
* Game-specific types should be defined in their respective packages
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CoreEntityType {
|
|
6
|
-
ENTITY = "core.entity",
|
|
7
|
-
COMPONENT = "core.component",
|
|
8
|
-
SYSTEM = "core.system",
|
|
9
|
-
EXTENSION = "core.extension"
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Type guard for core entity types
|
|
13
|
-
*/
|
|
14
|
-
export declare function isCoreEntityType(type: string): type is CoreEntityType;
|
|
15
|
-
//# sourceMappingURL=entity-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-types.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/entity-types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,oBAAY,cAAc;IAExB,MAAM,gBAAgB;IAGtB,SAAS,mBAAmB;IAG5B,MAAM,gBAAgB;IAGtB,SAAS,mBAAmB;CAC7B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,cAAc,CAErE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// packages/core/src/constants/entity-types.ts
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CoreEntityType = void 0;
|
|
5
|
-
exports.isCoreEntityType = isCoreEntityType;
|
|
6
|
-
/**
|
|
7
|
-
* Core entity types - generic types that any system might use
|
|
8
|
-
* Game-specific types should be defined in their respective packages
|
|
9
|
-
*/
|
|
10
|
-
var CoreEntityType;
|
|
11
|
-
(function (CoreEntityType) {
|
|
12
|
-
// Base entity type
|
|
13
|
-
CoreEntityType["ENTITY"] = "core.entity";
|
|
14
|
-
// Component entities (for ECS-style systems)
|
|
15
|
-
CoreEntityType["COMPONENT"] = "core.component";
|
|
16
|
-
// System entities
|
|
17
|
-
CoreEntityType["SYSTEM"] = "core.system";
|
|
18
|
-
// Extension entities
|
|
19
|
-
CoreEntityType["EXTENSION"] = "core.extension";
|
|
20
|
-
})(CoreEntityType || (exports.CoreEntityType = CoreEntityType = {}));
|
|
21
|
-
/**
|
|
22
|
-
* Type guard for core entity types
|
|
23
|
-
*/
|
|
24
|
-
function isCoreEntityType(type) {
|
|
25
|
-
return Object.values(CoreEntityType).includes(type);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=entity-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-types.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/entity-types.ts"],"names":[],"mappings":";AAAA,8CAA8C;;;AAuB9C,4CAEC;AAvBD;;;GAGG;AACH,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,mBAAmB;IACnB,wCAAsB,CAAA;IAEtB,6CAA6C;IAC7C,8CAA4B,CAAA;IAE5B,kBAAkB;IAClB,wCAAsB,CAAA;IAEtB,qBAAqB;IACrB,8CAA4B,CAAA;AAC9B,CAAC,EAZW,cAAc,8BAAd,cAAc,QAYzB;AAED;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,IAAsB,CAAC,CAAC;AACxE,CAAC"}
|
package/constants/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core constants for Sharpee
|
|
3
|
-
*
|
|
4
|
-
* These are generic, system-level constants that don't assume any particular
|
|
5
|
-
* type of narrative or game. IF-specific constants are in @sharpee/stdlib.
|
|
6
|
-
*/
|
|
7
|
-
export * from './entity-types.js';
|
|
8
|
-
export * from './relationships.js';
|
|
9
|
-
export * from './attributes.js';
|
|
10
|
-
export * from './core-events.js';
|
|
11
|
-
import { CoreEntityType } from './entity-types.js';
|
|
12
|
-
import { CoreRelationshipType } from './relationships.js';
|
|
13
|
-
import { CoreAttributes } from './attributes.js';
|
|
14
|
-
import { CoreEvents, CoreEventCategory } from './core-events.js';
|
|
15
|
-
export declare const CoreConstants: {
|
|
16
|
-
readonly EntityTypes: typeof CoreEntityType;
|
|
17
|
-
readonly Relationships: typeof CoreRelationshipType;
|
|
18
|
-
readonly Attributes: typeof CoreAttributes;
|
|
19
|
-
readonly Events: typeof CoreEvents;
|
|
20
|
-
readonly EventCategories: typeof CoreEventCategory;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
package/constants/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC"}
|
package/constants/index.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Core constants for Sharpee
|
|
4
|
-
*
|
|
5
|
-
* These are generic, system-level constants that don't assume any particular
|
|
6
|
-
* type of narrative or game. IF-specific constants are in @sharpee/stdlib.
|
|
7
|
-
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.CoreConstants = void 0;
|
|
24
|
-
// Export generic constants only
|
|
25
|
-
__exportStar(require("./entity-types.js"), exports);
|
|
26
|
-
__exportStar(require("./relationships.js"), exports);
|
|
27
|
-
__exportStar(require("./attributes.js"), exports);
|
|
28
|
-
__exportStar(require("./core-events.js"), exports);
|
|
29
|
-
// Convenience export
|
|
30
|
-
const entity_types_js_1 = require("./entity-types.js");
|
|
31
|
-
const relationships_js_1 = require("./relationships.js");
|
|
32
|
-
const attributes_js_1 = require("./attributes.js");
|
|
33
|
-
const core_events_js_1 = require("./core-events.js");
|
|
34
|
-
exports.CoreConstants = {
|
|
35
|
-
EntityTypes: entity_types_js_1.CoreEntityType,
|
|
36
|
-
Relationships: relationships_js_1.CoreRelationshipType,
|
|
37
|
-
Attributes: attributes_js_1.CoreAttributes,
|
|
38
|
-
Events: core_events_js_1.CoreEvents,
|
|
39
|
-
EventCategories: core_events_js_1.CoreEventCategory
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
package/constants/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;AAEH,gCAAgC;AAChC,oDAAkC;AAClC,qDAAmC;AACnC,kDAAgC;AAChC,mDAAiC;AAEjC,qBAAqB;AACrB,uDAAmD;AACnD,yDAA0D;AAC1D,mDAAiD;AACjD,qDAAiE;AAEpD,QAAA,aAAa,GAAG;IAC3B,WAAW,EAAE,gCAAc;IAC3B,aAAa,EAAE,uCAAoB;IACnC,UAAU,EAAE,8BAAc;IAC1B,MAAM,EAAE,2BAAU;IAClB,eAAe,EAAE,kCAAiB;CAC1B,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core relationship types - generic relationships that any system might use
|
|
3
|
-
* Game-specific relationships should be defined in their respective packages
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CoreRelationshipType {
|
|
6
|
-
PARENT = "core.parent",
|
|
7
|
-
CHILD = "core.child",
|
|
8
|
-
RELATED_TO = "core.related_to",
|
|
9
|
-
DEPENDS_ON = "core.depends_on",
|
|
10
|
-
HAS_COMPONENT = "core.has_component",
|
|
11
|
-
COMPONENT_OF = "core.component_of"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for core relationships
|
|
15
|
-
*/
|
|
16
|
-
export interface ICoreRelationshipConfig {
|
|
17
|
-
bidirectional?: boolean;
|
|
18
|
-
inverse?: CoreRelationshipType;
|
|
19
|
-
exclusive?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Standard configurations for core relationships
|
|
23
|
-
*/
|
|
24
|
-
export declare const CORE_RELATIONSHIP_CONFIGS: Record<CoreRelationshipType, ICoreRelationshipConfig>;
|
|
25
|
-
//# sourceMappingURL=relationships.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/relationships.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,oBAAY,oBAAoB;IAE9B,MAAM,gBAAgB;IACtB,KAAK,eAAe;IAGpB,UAAU,oBAAoB;IAC9B,UAAU,oBAAoB;IAG9B,aAAa,uBAAuB;IACpC,YAAY,sBAAsB;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CA8B3F,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// packages/core/src/constants/relationships.ts
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CORE_RELATIONSHIP_CONFIGS = exports.CoreRelationshipType = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Core relationship types - generic relationships that any system might use
|
|
7
|
-
* Game-specific relationships should be defined in their respective packages
|
|
8
|
-
*/
|
|
9
|
-
var CoreRelationshipType;
|
|
10
|
-
(function (CoreRelationshipType) {
|
|
11
|
-
// Basic hierarchical relationships
|
|
12
|
-
CoreRelationshipType["PARENT"] = "core.parent";
|
|
13
|
-
CoreRelationshipType["CHILD"] = "core.child";
|
|
14
|
-
// Generic associations
|
|
15
|
-
CoreRelationshipType["RELATED_TO"] = "core.related_to";
|
|
16
|
-
CoreRelationshipType["DEPENDS_ON"] = "core.depends_on";
|
|
17
|
-
// Component relationships (for ECS-style systems)
|
|
18
|
-
CoreRelationshipType["HAS_COMPONENT"] = "core.has_component";
|
|
19
|
-
CoreRelationshipType["COMPONENT_OF"] = "core.component_of";
|
|
20
|
-
})(CoreRelationshipType || (exports.CoreRelationshipType = CoreRelationshipType = {}));
|
|
21
|
-
/**
|
|
22
|
-
* Standard configurations for core relationships
|
|
23
|
-
*/
|
|
24
|
-
exports.CORE_RELATIONSHIP_CONFIGS = {
|
|
25
|
-
[CoreRelationshipType.PARENT]: {
|
|
26
|
-
bidirectional: true,
|
|
27
|
-
inverse: CoreRelationshipType.CHILD,
|
|
28
|
-
exclusive: true
|
|
29
|
-
},
|
|
30
|
-
[CoreRelationshipType.CHILD]: {
|
|
31
|
-
bidirectional: true,
|
|
32
|
-
inverse: CoreRelationshipType.PARENT,
|
|
33
|
-
exclusive: false
|
|
34
|
-
},
|
|
35
|
-
[CoreRelationshipType.RELATED_TO]: {
|
|
36
|
-
bidirectional: true,
|
|
37
|
-
inverse: CoreRelationshipType.RELATED_TO,
|
|
38
|
-
exclusive: false
|
|
39
|
-
},
|
|
40
|
-
[CoreRelationshipType.DEPENDS_ON]: {
|
|
41
|
-
bidirectional: false,
|
|
42
|
-
exclusive: false
|
|
43
|
-
},
|
|
44
|
-
[CoreRelationshipType.HAS_COMPONENT]: {
|
|
45
|
-
bidirectional: true,
|
|
46
|
-
inverse: CoreRelationshipType.COMPONENT_OF,
|
|
47
|
-
exclusive: false
|
|
48
|
-
},
|
|
49
|
-
[CoreRelationshipType.COMPONENT_OF]: {
|
|
50
|
-
bidirectional: true,
|
|
51
|
-
inverse: CoreRelationshipType.HAS_COMPONENT,
|
|
52
|
-
exclusive: true
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=relationships.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relationships.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/constants/relationships.ts"],"names":[],"mappings":";AAAA,+CAA+C;;;AAE/C;;;GAGG;AACH,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC9B,mCAAmC;IACnC,8CAAsB,CAAA;IACtB,4CAAoB,CAAA;IAEpB,uBAAuB;IACvB,sDAA8B,CAAA;IAC9B,sDAA8B,CAAA;IAE9B,kDAAkD;IAClD,4DAAoC,CAAA;IACpC,0DAAkC,CAAA;AACpC,CAAC,EAZW,oBAAoB,oCAApB,oBAAoB,QAY/B;AAWD;;GAEG;AACU,QAAA,yBAAyB,GAA0D;IAC9F,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;QAC7B,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,oBAAoB,CAAC,KAAK;QACnC,SAAS,EAAE,IAAI;KAChB;IACD,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE;QAC5B,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,oBAAoB,CAAC,MAAM;QACpC,SAAS,EAAE,KAAK;KACjB;IACD,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE;QACjC,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,oBAAoB,CAAC,UAAU;QACxC,SAAS,EAAE,KAAK;KACjB;IACD,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE;QACjC,aAAa,EAAE,KAAK;QACpB,SAAS,EAAE,KAAK;KACjB;IACD,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE;QACpC,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,oBAAoB,CAAC,YAAY;QAC1C,SAAS,EAAE,KAAK;KACjB;IACD,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE;QACnC,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,oBAAoB,CAAC,aAAa;QAC3C,SAAS,EAAE,IAAI;KAChB;CACF,CAAC"}
|
package/debug/index.d.ts
DELETED
package/debug/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/debug/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC"}
|
package/debug/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Debug types for diagnostic information
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./types.js"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
package/debug/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/debug/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6CAA2B"}
|
package/debug/types.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Debug event types for diagnostic information.
|
|
3
|
-
* These are separate from semantic events and used for development/debugging.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Debug event emitted by various subsystems for diagnostic purposes.
|
|
7
|
-
* These events are NOT part of the game's semantic event system.
|
|
8
|
-
*/
|
|
9
|
-
export interface IDebugEvent {
|
|
10
|
-
/** Unique identifier for this debug event */
|
|
11
|
-
id: string;
|
|
12
|
-
/** When the event was emitted */
|
|
13
|
-
timestamp: number;
|
|
14
|
-
/** Which subsystem emitted this event */
|
|
15
|
-
subsystem: 'parser' | 'validator' | 'executor' | 'world-model' | 'text-service';
|
|
16
|
-
/** Type of debug event within the subsystem */
|
|
17
|
-
type: string;
|
|
18
|
-
/** Event-specific data */
|
|
19
|
-
data: any;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Callback function for receiving debug events
|
|
23
|
-
*/
|
|
24
|
-
export type DebugEventCallback = (event: IDebugEvent) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Context for debug event emission, passed to subsystems
|
|
27
|
-
*/
|
|
28
|
-
export interface IDebugContext {
|
|
29
|
-
/** Optional callback to emit debug events */
|
|
30
|
-
emit?: DebugEventCallback;
|
|
31
|
-
/** Whether debug events are enabled */
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Common debug event types by subsystem
|
|
36
|
-
*/
|
|
37
|
-
export declare const DebugEventTypes: {
|
|
38
|
-
readonly parser: {
|
|
39
|
-
readonly TOKEN_ANALYSIS: "token_analysis";
|
|
40
|
-
readonly PATTERN_MATCH: "pattern_match";
|
|
41
|
-
readonly CANDIDATE_SCORING: "candidate_scoring";
|
|
42
|
-
};
|
|
43
|
-
readonly validator: {
|
|
44
|
-
readonly ENTITY_RESOLUTION: "entity_resolution";
|
|
45
|
-
readonly SCOPE_CHECK: "scope_check";
|
|
46
|
-
readonly AMBIGUITY_RESOLUTION: "ambiguity_resolution";
|
|
47
|
-
readonly VALIDATION_ERROR: "validation_error";
|
|
48
|
-
};
|
|
49
|
-
readonly executor: {
|
|
50
|
-
readonly ACTION_START: "action_start";
|
|
51
|
-
readonly ACTION_COMPLETE: "action_complete";
|
|
52
|
-
readonly ACTION_ERROR: "action_error";
|
|
53
|
-
};
|
|
54
|
-
readonly worldModel: {
|
|
55
|
-
readonly ENTITY_CHANGE: "entity_change";
|
|
56
|
-
readonly RELATION_CHANGE: "relation_change";
|
|
57
|
-
readonly PROPERTY_CHANGE: "property_change";
|
|
58
|
-
};
|
|
59
|
-
readonly textService: {
|
|
60
|
-
readonly TEMPLATE_SELECTION: "template_selection";
|
|
61
|
-
readonly TEXT_GENERATION: "text_generation";
|
|
62
|
-
readonly CHANNEL_ROUTING: "channel_routing";
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=types.d.ts.map
|
package/debug/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/debug/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IAEX,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,SAAS,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC;IAEhF,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,IAAI,EAAE,GAAG,CAAC;CACX;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAE1B,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BlB,CAAC"}
|
package/debug/types.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Debug event types for diagnostic information.
|
|
4
|
-
* These are separate from semantic events and used for development/debugging.
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.DebugEventTypes = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* Common debug event types by subsystem
|
|
10
|
-
*/
|
|
11
|
-
exports.DebugEventTypes = {
|
|
12
|
-
parser: {
|
|
13
|
-
TOKEN_ANALYSIS: 'token_analysis',
|
|
14
|
-
PATTERN_MATCH: 'pattern_match',
|
|
15
|
-
CANDIDATE_SCORING: 'candidate_scoring',
|
|
16
|
-
},
|
|
17
|
-
validator: {
|
|
18
|
-
ENTITY_RESOLUTION: 'entity_resolution',
|
|
19
|
-
SCOPE_CHECK: 'scope_check',
|
|
20
|
-
AMBIGUITY_RESOLUTION: 'ambiguity_resolution',
|
|
21
|
-
VALIDATION_ERROR: 'validation_error',
|
|
22
|
-
},
|
|
23
|
-
executor: {
|
|
24
|
-
ACTION_START: 'action_start',
|
|
25
|
-
ACTION_COMPLETE: 'action_complete',
|
|
26
|
-
ACTION_ERROR: 'action_error',
|
|
27
|
-
},
|
|
28
|
-
worldModel: {
|
|
29
|
-
ENTITY_CHANGE: 'entity_change',
|
|
30
|
-
RELATION_CHANGE: 'relation_change',
|
|
31
|
-
PROPERTY_CHANGE: 'property_change',
|
|
32
|
-
},
|
|
33
|
-
textService: {
|
|
34
|
-
TEMPLATE_SELECTION: 'template_selection',
|
|
35
|
-
TEXT_GENERATION: 'text_generation',
|
|
36
|
-
CHANNEL_ROUTING: 'channel_routing',
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=types.js.map
|
package/debug/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/debug/types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAuCH;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,aAAa,EAAE,eAAe;QAC9B,iBAAiB,EAAE,mBAAmB;KACvC;IACD,SAAS,EAAE;QACT,iBAAiB,EAAE,mBAAmB;QACtC,WAAW,EAAE,aAAa;QAC1B,oBAAoB,EAAE,sBAAsB;QAC5C,gBAAgB,EAAE,kBAAkB;KACrC;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,cAAc;QAC5B,eAAe,EAAE,iBAAiB;QAClC,YAAY,EAAE,cAAc;KAC7B;IACD,UAAU,EAAE;QACV,aAAa,EAAE,eAAe;QAC9B,eAAe,EAAE,iBAAiB;QAClC,eAAe,EAAE,iBAAiB;KACnC;IACD,WAAW,EAAE;QACX,kBAAkB,EAAE,oBAAoB;QACxC,eAAe,EAAE,iBAAiB;QAClC,eAAe,EAAE,iBAAiB;KACnC;CACO,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Standard event types and tags
|
|
3
|
-
* TODO: Move to proper location
|
|
4
|
-
*/
|
|
5
|
-
export declare const StandardEventTypes: {
|
|
6
|
-
readonly ACTION: "action";
|
|
7
|
-
readonly SYSTEM: "system";
|
|
8
|
-
readonly NARRATIVE: "narrative";
|
|
9
|
-
readonly ERROR: "error";
|
|
10
|
-
};
|
|
11
|
-
export declare const StandardEventTags: {
|
|
12
|
-
readonly SUCCESS: "success";
|
|
13
|
-
readonly FAILURE: "failure";
|
|
14
|
-
readonly INFO: "info";
|
|
15
|
-
readonly WARNING: "warning";
|
|
16
|
-
readonly ERROR: "error";
|
|
17
|
-
};
|
|
18
|
-
export declare const EventCategories: {
|
|
19
|
-
readonly ACTION: "action";
|
|
20
|
-
readonly SYSTEM: "system";
|
|
21
|
-
readonly NARRATIVE: "narrative";
|
|
22
|
-
};
|
|
23
|
-
export type StandardEventType = typeof StandardEventTypes[keyof typeof StandardEventTypes];
|
|
24
|
-
export type StandardEventTag = typeof StandardEventTags[keyof typeof StandardEventTags];
|
|
25
|
-
export type EventCategory = typeof EventCategories[keyof typeof EventCategories];
|
|
26
|
-
//# sourceMappingURL=standard-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standard-events.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/events/standard-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAGX,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAC3F,MAAM,MAAM,gBAAgB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AACxF,MAAM,MAAM,aAAa,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Standard event types and tags
|
|
4
|
-
* TODO: Move to proper location
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.EventCategories = exports.StandardEventTags = exports.StandardEventTypes = void 0;
|
|
8
|
-
// Using const objects instead of enums for better JavaScript compatibility
|
|
9
|
-
exports.StandardEventTypes = {
|
|
10
|
-
ACTION: 'action',
|
|
11
|
-
SYSTEM: 'system',
|
|
12
|
-
NARRATIVE: 'narrative',
|
|
13
|
-
ERROR: 'error'
|
|
14
|
-
};
|
|
15
|
-
exports.StandardEventTags = {
|
|
16
|
-
SUCCESS: 'success',
|
|
17
|
-
FAILURE: 'failure',
|
|
18
|
-
INFO: 'info',
|
|
19
|
-
WARNING: 'warning',
|
|
20
|
-
ERROR: 'error'
|
|
21
|
-
};
|
|
22
|
-
exports.EventCategories = {
|
|
23
|
-
ACTION: 'action',
|
|
24
|
-
SYSTEM: 'system',
|
|
25
|
-
NARRATIVE: 'narrative'
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=standard-events.js.map
|
|
@@ -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"}
|
package/events/typed-event.d.ts
DELETED
|
@@ -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"}
|
package/events/typed-event.js
DELETED
|
@@ -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"}
|
package/execution/index.d.ts
DELETED
package/execution/index.d.ts.map
DELETED
|
@@ -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"}
|