@asyra/feature-system 0.5.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 (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/dist/core/execution-registry.d.ts +22 -0
  4. package/dist/core/execution-registry.d.ts.map +1 -0
  5. package/dist/core/execution-registry.js +103 -0
  6. package/dist/core/execution-registry.js.map +1 -0
  7. package/dist/core/feature-registry.d.ts +60 -0
  8. package/dist/core/feature-registry.d.ts.map +1 -0
  9. package/dist/core/feature-registry.js +90 -0
  10. package/dist/core/feature-registry.js.map +1 -0
  11. package/dist/core/feature-task-registry.d.ts +22 -0
  12. package/dist/core/feature-task-registry.d.ts.map +1 -0
  13. package/dist/core/feature-task-registry.js +82 -0
  14. package/dist/core/feature-task-registry.js.map +1 -0
  15. package/dist/core/feature.d.ts +24 -0
  16. package/dist/core/feature.d.ts.map +1 -0
  17. package/dist/core/feature.js +256 -0
  18. package/dist/core/feature.js.map +1 -0
  19. package/dist/core/interaction-queue.d.ts +6 -0
  20. package/dist/core/interaction-queue.d.ts.map +1 -0
  21. package/dist/core/interaction-queue.js +12 -0
  22. package/dist/core/interaction-queue.js.map +1 -0
  23. package/dist/core/session-manager.d.ts +46 -0
  24. package/dist/core/session-manager.d.ts.map +1 -0
  25. package/dist/core/session-manager.js +443 -0
  26. package/dist/core/session-manager.js.map +1 -0
  27. package/dist/index.d.ts +20 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +19 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/types/core-packages.d.ts +19 -0
  32. package/dist/types/core-packages.d.ts.map +1 -0
  33. package/dist/types/core-packages.js +2 -0
  34. package/dist/types/core-packages.js.map +1 -0
  35. package/dist/types/execution.d.ts +22 -0
  36. package/dist/types/execution.d.ts.map +1 -0
  37. package/dist/types/execution.js +2 -0
  38. package/dist/types/execution.js.map +1 -0
  39. package/dist/types/feature.d.ts +45 -0
  40. package/dist/types/feature.d.ts.map +1 -0
  41. package/dist/types/feature.js +2 -0
  42. package/dist/types/feature.js.map +1 -0
  43. package/dist/types/index.d.ts +9 -0
  44. package/dist/types/index.d.ts.map +1 -0
  45. package/dist/types/index.js +9 -0
  46. package/dist/types/index.js.map +1 -0
  47. package/dist/types/registry.d.ts +18 -0
  48. package/dist/types/registry.d.ts.map +1 -0
  49. package/dist/types/registry.js +6 -0
  50. package/dist/types/registry.js.map +1 -0
  51. package/dist/types/session.d.ts +6 -0
  52. package/dist/types/session.d.ts.map +1 -0
  53. package/dist/types/session.js +7 -0
  54. package/dist/types/session.js.map +1 -0
  55. package/dist/types/task.d.ts +13 -0
  56. package/dist/types/task.d.ts.map +1 -0
  57. package/dist/types/task.js +2 -0
  58. package/dist/types/task.js.map +1 -0
  59. package/dist/utils/index.d.ts +5 -0
  60. package/dist/utils/index.d.ts.map +1 -0
  61. package/dist/utils/index.js +6 -0
  62. package/dist/utils/index.js.map +1 -0
  63. package/dist/utils/micro-features.d.ts +39 -0
  64. package/dist/utils/micro-features.d.ts.map +1 -0
  65. package/dist/utils/micro-features.js +86 -0
  66. package/dist/utils/micro-features.js.map +1 -0
  67. package/package.json +47 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type exports for @asyra/feature-system
3
+ */
4
+ export * from './feature.js';
5
+ export * from './session.js';
6
+ export * from './execution.js';
7
+ export * from './registry.js';
8
+ export * from './task.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Feature Registry types
3
+ * Defines how features are registered and queried
4
+ */
5
+ import type { FeatureDefinition, FeatureAPI } from './feature.js';
6
+ /**
7
+ * Feature entry stored in registry
8
+ */
9
+ export interface FeatureEntry {
10
+ definition: FeatureDefinition;
11
+ api: FeatureAPI;
12
+ registeredAt: number;
13
+ }
14
+ /**
15
+ * Feature registry map
16
+ */
17
+ export type FeatureRegistryMap = Map<string, FeatureEntry>;
18
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/types/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,iBAAiB,CAAA;IAC7B,GAAG,EAAE,UAAU,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Feature Registry types
3
+ * Defines how features are registered and queried
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/types/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Session Manager types
3
+ * Defines the session configuration and participant structures
4
+ */
5
+ export type { SessionStartHandler, SessionUpdateHandler, SessionEndHandler, SessionCancelHandler, SessionCancelOutcome, SessionCancelPolicy, SessionState, ActiveSession, SessionParticipant } from './feature.js';
6
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/types/session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,kBAAkB,EACnB,MAAM,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Session Manager types
3
+ * Defines the session configuration and participant structures
4
+ */
5
+ export {};
6
+ // Additional session-specific types can be added here if needed
7
+ //# sourceMappingURL=session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/types/session.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAeH,gEAAgE"}
@@ -0,0 +1,13 @@
1
+ export interface FeatureTaskContext {
2
+ readonly signal: AbortSignal;
3
+ }
4
+ export type FeatureTaskHandler<Input = unknown, Result = unknown> = (input: Input, context: FeatureTaskContext) => Result | Promise<Result>;
5
+ export interface InvokeFeatureTaskOptions {
6
+ signal?: AbortSignal;
7
+ }
8
+ export interface FeatureTaskRegistration {
9
+ readonly priority: number;
10
+ readonly exclusive: boolean;
11
+ readonly handler: FeatureTaskHandler;
12
+ }
13
+ //# sourceMappingURL=task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/types/task.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAC7B;AAED,MAAM,MAAM,kBAAkB,CAAC,KAAK,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,CAClE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,kBAAkB,KACxB,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAE7B,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAA;CACrC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../src/types/task.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Utility exports for @asyra/feature-system
3
+ */
4
+ export { withTransaction, withSelection, withUndoRedo, withContextSnapshot } from './micro-features.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,mBAAmB,EACpB,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Utility exports for @asyra/feature-system
3
+ */
4
+ // Micro-features
5
+ export { withTransaction, withSelection, withUndoRedo, withContextSnapshot } from './micro-features.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,iBAAiB;AACjB,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,mBAAmB,EACpB,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { EndTransactionOptions, SystemContextSnapshot } from '@asyra/utils';
2
+ /** Minimal package deps for micro-features - optional chaining used */
3
+ interface MicroFeaturePackages {
4
+ factory?: {
5
+ startTransaction?: () => void;
6
+ endTransaction?: (options?: EndTransactionOptions) => void;
7
+ };
8
+ selection?: {
9
+ getElementSelectionIds?: () => string[];
10
+ selectElements?: (ids: string[]) => void;
11
+ };
12
+ systemContext?: {
13
+ getSystemContextSnapshot?: () => SystemContextSnapshot;
14
+ };
15
+ }
16
+ /**
17
+ * Micro-feature utilities for common patterns
18
+ * Composable utilities that wrap common operations
19
+ */
20
+ /**
21
+ * Create a transaction-wrapped function
22
+ * Usage in feature: withTransaction(packages)(() => { ... })
23
+ */
24
+ export declare const withTransaction: (packages: MicroFeaturePackages) => <T>(callback: () => T) => T;
25
+ /**
26
+ * Wrap callback with selection context
27
+ */
28
+ export declare const withSelection: (packages: MicroFeaturePackages) => <T>(selectionIds: string[], callback: (ids: string[]) => T) => T;
29
+ /**
30
+ * Execute with undo/redo tracking
31
+ * Note: Already wrapped in transaction by default
32
+ */
33
+ export declare const withUndoRedo: (packages: MicroFeaturePackages) => <T>(actionName: string, callback: () => T) => T;
34
+ /**
35
+ * Wrap with context snapshot access
36
+ */
37
+ export declare const withContextSnapshot: (packages: MicroFeaturePackages) => <T>(callback: (snapshot: SystemContextSnapshot) => T) => T;
38
+ export {};
39
+ //# sourceMappingURL=micro-features.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"micro-features.d.ts","sourceRoot":"","sources":["../../src/utils/micro-features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EAEtB,MAAM,cAAc,CAAA;AAErB,uEAAuE;AACvE,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE;QACR,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;QAC7B,cAAc,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAA;KAC3D,CAAA;IACD,SAAS,CAAC,EAAE;QACV,sBAAsB,CAAC,EAAE,MAAM,MAAM,EAAE,CAAA;QACvC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;KACzC,CAAA;IACD,aAAa,CAAC,EAAE;QAAE,wBAAwB,CAAC,EAAE,MAAM,qBAAqB,CAAA;KAAE,CAAA;CAC3E;AAeD;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,oBAAoB,MACpD,CAAC,EAAE,UAAU,MAAM,CAAC,KAAG,CA8BhC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,oBAAoB,MAClD,CAAC,EAAE,cAAc,MAAM,EAAE,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,KAAG,CASrE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,oBAAoB,MACjD,CAAC,EAAE,YAAY,MAAM,EAAE,UAAU,MAAM,CAAC,KAAG,CAIpD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,oBAAoB,MACxD,CAAC,EAAE,UAAU,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC,KAAG,CAQ/D,CAAA"}
@@ -0,0 +1,86 @@
1
+ const toTransactionFailure = (cause) => ({
2
+ kind: 'explicit',
3
+ ...(cause instanceof Error && cause.message
4
+ ? { message: cause.message }
5
+ : {}),
6
+ cause
7
+ });
8
+ const isPromiseLike = (value) => (typeof value === 'object' || typeof value === 'function') &&
9
+ value !== null &&
10
+ typeof value.then === 'function';
11
+ /**
12
+ * Micro-feature utilities for common patterns
13
+ * Composable utilities that wrap common operations
14
+ */
15
+ /**
16
+ * Create a transaction-wrapped function
17
+ * Usage in feature: withTransaction(packages)(() => { ... })
18
+ */
19
+ export const withTransaction = (packages) => {
20
+ return (callback) => {
21
+ packages.factory?.startTransaction?.();
22
+ try {
23
+ const result = callback();
24
+ if (isPromiseLike(result)) {
25
+ return Promise.resolve(result).then((value) => {
26
+ packages.factory?.endTransaction?.();
27
+ return value;
28
+ }, (error) => {
29
+ packages.factory?.endTransaction?.({
30
+ outcome: 'rollback',
31
+ failure: toTransactionFailure(error)
32
+ });
33
+ throw error;
34
+ });
35
+ }
36
+ packages.factory?.endTransaction?.();
37
+ return result;
38
+ }
39
+ catch (error) {
40
+ packages.factory?.endTransaction?.({
41
+ outcome: 'rollback',
42
+ failure: toTransactionFailure(error)
43
+ });
44
+ throw error;
45
+ }
46
+ };
47
+ };
48
+ /**
49
+ * Wrap callback with selection context
50
+ */
51
+ export const withSelection = (packages) => {
52
+ return (selectionIds, callback) => {
53
+ const previous = packages.selection?.getElementSelectionIds?.() || [];
54
+ packages.selection?.selectElements?.(selectionIds);
55
+ try {
56
+ return callback(selectionIds);
57
+ }
58
+ finally {
59
+ packages.selection?.selectElements?.(previous);
60
+ }
61
+ };
62
+ };
63
+ /**
64
+ * Execute with undo/redo tracking
65
+ * Note: Already wrapped in transaction by default
66
+ */
67
+ export const withUndoRedo = (packages) => {
68
+ return (actionName, callback) => {
69
+ // Transactions already handle undo/redo
70
+ return callback();
71
+ };
72
+ };
73
+ /**
74
+ * Wrap with context snapshot access
75
+ */
76
+ export const withContextSnapshot = (packages) => {
77
+ return (callback) => {
78
+ const snapshot = packages.systemContext?.getSystemContextSnapshot?.();
79
+ if (!snapshot) {
80
+ console.warn('SystemContext not available');
81
+ return callback({});
82
+ }
83
+ return callback(snapshot);
84
+ };
85
+ };
86
+ //# sourceMappingURL=micro-features.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"micro-features.js","sourceRoot":"","sources":["../../src/utils/micro-features.ts"],"names":[],"mappings":"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"}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@asyra/feature-system",
3
+ "version": "0.5.0",
4
+ "description": "Feature System framework for modular, composable design tool capabilities",
5
+ "author": "Asa Tsai",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": "24.x"
10
+ },
11
+ "packageManager": "yarn@4.3.1",
12
+ "keywords": [],
13
+ "main": "dist/index.js",
14
+ "types": "dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "!dist/**/__tests__",
25
+ "!dist/**/*.test.*",
26
+ "!dist/**/*.spec.*",
27
+ "!dist/**/*.stories.*"
28
+ ],
29
+ "scripts": {
30
+ "dev": "tsc --watch --preserveWatchOutput",
31
+ "build:feature-system": "tsc",
32
+ "clean": "rm -rf dist",
33
+ "has:test": "find . -type f \\( -name \"*.test.ts\" -o -name \"*.test.tsx\" \\) | grep -q .",
34
+ "test": "yarn has:test && vitest || echo 'No test files found. Skipping test.'",
35
+ "test:local": "vitest run",
36
+ "test:ci": "yarn has:test && vitest run --coverage --reporter=default --reporter=junit || echo 'No test files found. Skipping test:ci.'"
37
+ },
38
+ "devDependencies": {
39
+ "@vitest/coverage-v8": "^2.1.8",
40
+ "typescript": "^5.7.2",
41
+ "vitest": "^2.1.8"
42
+ },
43
+ "dependencies": {
44
+ "@asyra/reactive-events": "0.5.0",
45
+ "@asyra/utils": "0.5.0"
46
+ }
47
+ }