@ultrst-armada/kloks 0.0.0-stage → 1.0.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 (109) hide show
  1. package/README.md +2 -3
  2. package/index.d.ts +5 -0
  3. package/index.js +5 -0
  4. package/package.json +122 -4
  5. package/packages/audio-midi/dist/audioClipEngine-BOT33JKI.js +9 -0
  6. package/packages/audio-midi/dist/audioInputManager-BLDGGLAR.js +12 -0
  7. package/packages/audio-midi/dist/chunk-3GRGELA4.js +2533 -0
  8. package/packages/audio-midi/dist/chunk-N55BWOC6.js +439 -0
  9. package/packages/audio-midi/dist/index.d.ts +988 -0
  10. package/packages/audio-midi/dist/index.js +2591 -0
  11. package/packages/audio-midi/kloks.manifest.json +69 -0
  12. package/packages/audio-midi/package.json +33 -0
  13. package/packages/backend/dist/BaseAccountProvider-DduKf5HG.d.ts +66 -0
  14. package/packages/backend/dist/BaseStorageAdapter-tosOoSUg.d.ts +67 -0
  15. package/packages/backend/dist/IdempotencyManager-B5MjK871.d.ts +16 -0
  16. package/packages/backend/dist/WebSocketTransport-CxUzUfwl.d.ts +255 -0
  17. package/packages/backend/dist/api/index.d.ts +32 -0
  18. package/packages/backend/dist/api/index.js +12 -0
  19. package/packages/backend/dist/auth/index.d.ts +56 -0
  20. package/packages/backend/dist/auth/index.js +22 -0
  21. package/packages/backend/dist/chunk-25Y7AVTP.js +55 -0
  22. package/packages/backend/dist/chunk-3EPY34R6.js +67 -0
  23. package/packages/backend/dist/chunk-4QEMALXF.js +90 -0
  24. package/packages/backend/dist/chunk-4ZFXEFOE.js +265 -0
  25. package/packages/backend/dist/chunk-53WQNION.js +278 -0
  26. package/packages/backend/dist/chunk-5MUQSPG4.js +149 -0
  27. package/packages/backend/dist/chunk-FZKBTF34.js +15 -0
  28. package/packages/backend/dist/chunk-G3ZOSXUR.js +31 -0
  29. package/packages/backend/dist/chunk-J2J24JVC.js +731 -0
  30. package/packages/backend/dist/chunk-KPUGS64G.js +221 -0
  31. package/packages/backend/dist/chunk-KTLD7Z4L.js +124 -0
  32. package/packages/backend/dist/chunk-LS3HWJBX.js +0 -0
  33. package/packages/backend/dist/chunk-MN54ZIKZ.js +336 -0
  34. package/packages/backend/dist/chunk-NIP22V2G.js +828 -0
  35. package/packages/backend/dist/chunk-QGHDJGYS.js +92 -0
  36. package/packages/backend/dist/chunk-RCCQ7IRM.js +139 -0
  37. package/packages/backend/dist/chunk-T3NYNBDC.js +618 -0
  38. package/packages/backend/dist/chunk-TWCEVES2.js +93 -0
  39. package/packages/backend/dist/chunk-UPFKBBQI.js +138 -0
  40. package/packages/backend/dist/chunk-VQEFULWT.js +88 -0
  41. package/packages/backend/dist/client/index.d.ts +22 -0
  42. package/packages/backend/dist/client/index.js +30 -0
  43. package/packages/backend/dist/connectivity/index.d.ts +237 -0
  44. package/packages/backend/dist/connectivity/index.js +50 -0
  45. package/packages/backend/dist/control-plane/index.d.ts +56 -0
  46. package/packages/backend/dist/control-plane/index.js +16 -0
  47. package/packages/backend/dist/execution/index.d.ts +124 -0
  48. package/packages/backend/dist/execution/index.js +20 -0
  49. package/packages/backend/dist/index.d.ts +692 -0
  50. package/packages/backend/dist/index.js +3299 -0
  51. package/packages/backend/dist/krnl-services.d.ts +82 -0
  52. package/packages/backend/dist/krnl-services.js +38 -0
  53. package/packages/backend/dist/services/index.d.ts +66 -0
  54. package/packages/backend/dist/services/index.js +17 -0
  55. package/packages/backend/dist/srkl/index.d.ts +191 -0
  56. package/packages/backend/dist/srkl/index.js +19 -0
  57. package/packages/backend/dist/storage/index.d.ts +124 -0
  58. package/packages/backend/dist/storage/index.js +43 -0
  59. package/packages/backend/dist/types-BERZJ93O.d.ts +110 -0
  60. package/packages/backend/dist/workspace/index.d.ts +111 -0
  61. package/packages/backend/dist/workspace/index.js +16 -0
  62. package/packages/backend/kloks.manifest.json +195 -0
  63. package/packages/backend/package.json +125 -0
  64. package/packages/functions/dist/index.d.ts +388 -0
  65. package/packages/functions/dist/index.js +1201 -0
  66. package/packages/functions/kloks.manifest.json +20 -0
  67. package/packages/functions/package.json +33 -0
  68. package/packages/orchestrations/dist/index.d.ts +53 -0
  69. package/packages/orchestrations/dist/index.js +211 -0
  70. package/packages/orchestrations/kloks.manifest.json +23 -0
  71. package/packages/orchestrations/package.json +35 -0
  72. package/packages/services/dist/index.d.ts +334 -0
  73. package/packages/services/dist/index.js +1597 -0
  74. package/packages/services/kloks.manifest.json +59 -0
  75. package/packages/services/package.json +33 -0
  76. package/packages/state-graph/dist/BaseConnection-CMRrL6Fe.d.ts +43 -0
  77. package/packages/state-graph/dist/BaseGraph-Bl2f7Pqx.d.ts +98 -0
  78. package/packages/state-graph/dist/BaseNode-1HCEqmap.d.ts +123 -0
  79. package/packages/state-graph/dist/CompatibilityMatrix-DX307_vS.d.ts +29 -0
  80. package/packages/state-graph/dist/TraceEngine-CJVpUb80.d.ts +18 -0
  81. package/packages/state-graph/dist/chunk-3RG5ZIWI.js +10 -0
  82. package/packages/state-graph/dist/chunk-4UVGXFEM.js +465 -0
  83. package/packages/state-graph/dist/chunk-ISFNY7EZ.js +61 -0
  84. package/packages/state-graph/dist/chunk-KG6QYS26.js +167 -0
  85. package/packages/state-graph/dist/chunk-OV4JVTNY.js +147 -0
  86. package/packages/state-graph/dist/chunk-OYN4ZEZC.js +54 -0
  87. package/packages/state-graph/dist/chunk-Q5I42UX7.js +0 -0
  88. package/packages/state-graph/dist/chunk-QN74PLMF.js +241 -0
  89. package/packages/state-graph/dist/chunk-S22PMERU.js +223 -0
  90. package/packages/state-graph/dist/chunk-SHIBCPGQ.js +269 -0
  91. package/packages/state-graph/dist/chunk-YTWCH6P2.js +109 -0
  92. package/packages/state-graph/dist/chunk-ZTHBPV24.js +267 -0
  93. package/packages/state-graph/dist/domain/index.d.ts +117 -0
  94. package/packages/state-graph/dist/domain/index.js +45 -0
  95. package/packages/state-graph/dist/execution/index.d.ts +152 -0
  96. package/packages/state-graph/dist/execution/index.js +16 -0
  97. package/packages/state-graph/dist/index-CiekWEH3.d.ts +272 -0
  98. package/packages/state-graph/dist/index.d.ts +3170 -0
  99. package/packages/state-graph/dist/index.js +9574 -0
  100. package/packages/state-graph/dist/rules/index.d.ts +86 -0
  101. package/packages/state-graph/dist/rules/index.js +17 -0
  102. package/packages/state-graph/dist/spatial/index.d.ts +55 -0
  103. package/packages/state-graph/dist/spatial/index.js +21 -0
  104. package/packages/state-graph/dist/state/index.d.ts +109 -0
  105. package/packages/state-graph/dist/state/index.js +20 -0
  106. package/packages/state-graph/dist/store/index.d.ts +6 -0
  107. package/packages/state-graph/dist/store/index.js +15 -0
  108. package/packages/state-graph/kloks.manifest.json +40 -0
  109. package/packages/state-graph/package.json +73 -0
@@ -0,0 +1,86 @@
1
+ import { c as CompatibilityRule, C as CompatibilityResolution } from '../CompatibilityMatrix-DX307_vS.js';
2
+ export { a as CompatibilityMatrix, b as CompatibilityResolverDelegate } from '../CompatibilityMatrix-DX307_vS.js';
3
+ import { j as NodeDefinition, a as BaseHandle, g as HandleDirection, H as HandleCategory, f as HandleDefinition } from '../BaseNode-1HCEqmap.js';
4
+
5
+ interface HandleTypeDefinition {
6
+ dataType: string;
7
+ category: 'DATA' | 'VIEW';
8
+ description?: string;
9
+ color?: string;
10
+ }
11
+ declare class HandleTypeRegistry {
12
+ private static types;
13
+ static register(typeDef: HandleTypeDefinition): void;
14
+ static get(dataType: string): HandleTypeDefinition | undefined;
15
+ static has(dataType: string): boolean;
16
+ static list(): HandleTypeDefinition[];
17
+ static clear(): void;
18
+ }
19
+
20
+ interface WireTypeDefinition {
21
+ wireType: string;
22
+ color: string;
23
+ strokeWidth: number;
24
+ dashArray?: string;
25
+ style?: 'bezier' | 'straight' | 'step';
26
+ description?: string;
27
+ }
28
+ declare class WireTypeRegistry {
29
+ private static wireTypes;
30
+ static register(def: WireTypeDefinition): void;
31
+ static get(wireType: string): WireTypeDefinition | undefined;
32
+ static list(): WireTypeDefinition[];
33
+ static clear(): void;
34
+ }
35
+
36
+ declare function initializeDefaultGraphRules(): void;
37
+
38
+ interface HandleDescriptor {
39
+ dataType?: string;
40
+ direction?: HandleDirection | 'input' | 'output';
41
+ handleCategory?: HandleCategory;
42
+ }
43
+ /**
44
+ * ConnectionRuleStore — Central authoritative store for:
45
+ * 1. Handle types
46
+ * 2. Wire types
47
+ * 3. Node types & schemas
48
+ * 4. Inter-handle compatibility and connection rules
49
+ */
50
+ declare class ConnectionRuleStore {
51
+ private static nodeTypes;
52
+ private static listeners;
53
+ private static initialized;
54
+ static initializeDefaults(): void;
55
+ static isInitialized(): boolean;
56
+ static subscribe(listener: () => void): () => void;
57
+ private static notify;
58
+ static registerNodeType(def: NodeDefinition): void;
59
+ static registerNodeTypes(defs: NodeDefinition[]): void;
60
+ static getNodeType(type: string): NodeDefinition | undefined;
61
+ static listNodeTypes(): NodeDefinition[];
62
+ static hasNodeType(type: string): boolean;
63
+ static registerHandleType(def: HandleTypeDefinition): void;
64
+ static getHandleType(dataType: string): HandleTypeDefinition | undefined;
65
+ static listHandleTypes(): HandleTypeDefinition[];
66
+ static hasHandleType(dataType: string): boolean;
67
+ static registerWireType(def: WireTypeDefinition): void;
68
+ static getWireType(wireType: string): WireTypeDefinition | undefined;
69
+ static listWireTypes(): WireTypeDefinition[];
70
+ static registerRule(rule: CompatibilityRule): void;
71
+ static resolve(sourceHandle: Pick<BaseHandle, 'handleCategory' | 'dataType' | 'direction'>, targetHandle: Pick<BaseHandle, 'handleCategory' | 'dataType' | 'direction'>): CompatibilityResolution;
72
+ static canConnect(sourceHandle: Pick<BaseHandle, 'handleCategory' | 'dataType' | 'direction'>, targetHandle: Pick<BaseHandle, 'handleCategory' | 'dataType' | 'direction'>): boolean;
73
+ /**
74
+ * Returns all node definitions that have at least one socket compatible with the dragged handle.
75
+ * If source handle is OUTPUT, checks candidate node INPUT sockets.
76
+ * If source handle is INPUT, checks candidate node OUTPUT sockets.
77
+ */
78
+ static getCompatibleNodeTypes(sourceHandle: HandleDescriptor, candidateNodes?: NodeDefinition[]): NodeDefinition[];
79
+ /**
80
+ * Find compatible sockets on a given target node for a dragged source handle.
81
+ */
82
+ static findCompatibleSockets(sourceHandle: HandleDescriptor, targetNode: NodeDefinition): HandleDefinition[];
83
+ static clear(): void;
84
+ }
85
+
86
+ export { CompatibilityResolution, CompatibilityRule, ConnectionRuleStore, type HandleDescriptor, type HandleTypeDefinition, HandleTypeRegistry, type WireTypeDefinition, WireTypeRegistry, initializeDefaultGraphRules };
@@ -0,0 +1,17 @@
1
+ import {
2
+ ConnectionRuleStore,
3
+ HandleTypeRegistry,
4
+ WireTypeRegistry,
5
+ initializeDefaultGraphRules
6
+ } from "../chunk-QN74PLMF.js";
7
+ import {
8
+ CompatibilityMatrix
9
+ } from "../chunk-ISFNY7EZ.js";
10
+ import "../chunk-3RG5ZIWI.js";
11
+ export {
12
+ CompatibilityMatrix,
13
+ ConnectionRuleStore,
14
+ HandleTypeRegistry,
15
+ WireTypeRegistry,
16
+ initializeDefaultGraphRules
17
+ };
@@ -0,0 +1,55 @@
1
+ import { B as BaseNode, a as BaseHandle, i as HandlePosition, N as NodePosition } from '../BaseNode-1HCEqmap.js';
2
+ import { T as Trace } from '../TraceEngine-CJVpUb80.js';
3
+ export { a as TraceEngine } from '../TraceEngine-CJVpUb80.js';
4
+ import { S as SolidConnection } from '../BaseConnection-CMRrL6Fe.js';
5
+ import '../CompatibilityMatrix-DX307_vS.js';
6
+
7
+ declare class SpatialEngine {
8
+ static calculateEffectiveHandlePosition(node: BaseNode, handle: BaseHandle): HandlePosition;
9
+ static calculateDistance(p1: HandlePosition, p2: HandlePosition): number;
10
+ static calculateOffsetMagnitude(handle: BaseHandle): number;
11
+ }
12
+
13
+ declare class AutoSolidify {
14
+ static resolve(nodes: BaseNode[], traces: Trace[], existingConnections: SolidConnection[]): SolidConnection[];
15
+ }
16
+
17
+ declare class AttractionEngine {
18
+ static computeSimilarity(nodeA: BaseNode, nodeB: BaseNode): number;
19
+ static calculateStep(nodes: BaseNode[], strength?: number, speed?: number): Map<string, NodePosition>;
20
+ }
21
+
22
+ interface SocketCoordOptions {
23
+ cardWidth: number;
24
+ cardHeight?: number;
25
+ isOutput: boolean;
26
+ clearance?: number;
27
+ nudge?: {
28
+ x: number;
29
+ y: number;
30
+ };
31
+ }
32
+ interface SocketCoordResult {
33
+ baseX: number;
34
+ effectiveX: number;
35
+ effectiveY: number;
36
+ nudge: {
37
+ x: number;
38
+ y: number;
39
+ };
40
+ }
41
+ /**
42
+ * Calculates socket handle coordinates enforcing that the handle always appears just
43
+ * outside the node body edge on spawn and cannot be pushed into the node body area.
44
+ */
45
+ declare function calculateSocketCoordinates(baseY: number, options: SocketCoordOptions): SocketCoordResult;
46
+ /**
47
+ * Dual-layered polygon beam points helper for tapered energy beam tethers.
48
+ * Tapers from thick at base (node body) to a fine point at head (displaced handle).
49
+ */
50
+ declare const getBeamPoints: (nudge: {
51
+ x: number;
52
+ y: number;
53
+ }, baseW?: number, headW?: number) => string;
54
+
55
+ export { AttractionEngine, AutoSolidify, type SocketCoordOptions, type SocketCoordResult, SpatialEngine, Trace, calculateSocketCoordinates, getBeamPoints };
@@ -0,0 +1,21 @@
1
+ import {
2
+ AttractionEngine,
3
+ calculateSocketCoordinates,
4
+ getBeamPoints
5
+ } from "../chunk-YTWCH6P2.js";
6
+ import {
7
+ AutoSolidify,
8
+ SpatialEngine,
9
+ TraceEngine
10
+ } from "../chunk-OV4JVTNY.js";
11
+ import "../chunk-OYN4ZEZC.js";
12
+ import "../chunk-ISFNY7EZ.js";
13
+ import "../chunk-3RG5ZIWI.js";
14
+ export {
15
+ AttractionEngine,
16
+ AutoSolidify,
17
+ SpatialEngine,
18
+ TraceEngine,
19
+ calculateSocketCoordinates,
20
+ getBeamPoints
21
+ };
@@ -0,0 +1,109 @@
1
+ import { StoreApi } from 'zustand/vanilla';
2
+
3
+ /**
4
+ * @file types.ts
5
+ * @description Formal TypeScript types for SKIPO_STATE system.
6
+ * Conforms strictly to SKIPO::STATE_EXECUTION_ARCHITECTURE and L9 (<=200L).
7
+ */
8
+ type LifecycleScopeType = 'COMPONENT' | 'PAGE' | 'APP' | 'COMPONENT_DEPENDENCY' | 'STATE_DEPENDENCY';
9
+ interface LifecycleDescriptor {
10
+ type: LifecycleScopeType;
11
+ targetId?: string;
12
+ retainCount?: number;
13
+ createdAt?: number;
14
+ }
15
+ interface StateEntry<T = unknown> {
16
+ id: string;
17
+ owner: string;
18
+ lifecycle: LifecycleDescriptor;
19
+ value: T;
20
+ dependencies: string[];
21
+ }
22
+ interface StateDeclaration<T = unknown> {
23
+ id: string;
24
+ initialValue: T;
25
+ lifecycle: LifecycleDescriptor;
26
+ }
27
+ type StateUpdater<T> = (prev: T) => T;
28
+ interface LifecycleGraphNode {
29
+ id: string;
30
+ type: LifecycleScopeType;
31
+ dependencies: Set<string>;
32
+ dependents: Set<string>;
33
+ }
34
+ interface SkipoStateApi {
35
+ create<T = unknown>(owner: string, lifecycle: LifecycleDescriptor, initialValue: T, id?: string): string;
36
+ get<T = unknown>(id: string): T | undefined;
37
+ set<T = unknown>(id: string, value: T): void;
38
+ update<T = unknown>(id: string, updater: StateUpdater<T>): void;
39
+ destroy(id: string): void;
40
+ bind(stateId: string, lifecycleTarget: string): void;
41
+ unbind(stateId: string, lifecycleTarget: string): void;
42
+ lifecycle(stateId: string): LifecycleDescriptor | undefined;
43
+ subscribe<T = unknown>(id: string, listener: (value: T | undefined) => void): () => void;
44
+ getAllEntries(): Record<string, StateEntry<unknown>>;
45
+ clear(): void;
46
+ }
47
+
48
+ /**
49
+ * @file LifecycleGraph.ts
50
+ * @description Directed Acyclic Graph (DAG) for state and component lifecycles.
51
+ * Enforces cycle invalidation and recursive cascade destruction.
52
+ */
53
+
54
+ declare class LifecycleCycleError extends Error {
55
+ constructor(source: string, target: string);
56
+ }
57
+ declare class LifecycleGraph {
58
+ private nodes;
59
+ registerNode(id: string, type: LifecycleScopeType): LifecycleGraphNode;
60
+ getNode(id: string): LifecycleGraphNode | undefined;
61
+ hasCycle(start: string, target: string): boolean;
62
+ addDependency(sourceId: string, targetId: string): void;
63
+ removeDependency(sourceId: string, targetId: string): void;
64
+ destroyCascade(rootId: string): string[];
65
+ clear(): void;
66
+ }
67
+
68
+ /**
69
+ * @file SkipoState.ts
70
+ * @description Canonical SKIPO_STATE singleton backed by Zustand and LifecycleGraph.
71
+ * Satisfies Invariants I1-I6 and L9 (<=200L).
72
+ */
73
+
74
+ interface InternalStateStore {
75
+ entries: Record<string, StateEntry<unknown>>;
76
+ setEntry: (id: string, entry: StateEntry<unknown>) => void;
77
+ removeEntry: (id: string) => void;
78
+ clearAll: () => void;
79
+ }
80
+ declare class SkipoStateEngine implements SkipoStateApi {
81
+ private graph;
82
+ private store;
83
+ constructor();
84
+ create<T = unknown>(owner: string, lifecycle: LifecycleDescriptor, initialValue: T, explicitId?: string): string;
85
+ get<T = unknown>(id: string): T | undefined;
86
+ set<T = unknown>(id: string, value: T): void;
87
+ update<T = unknown>(id: string, updater: StateUpdater<T>): void;
88
+ destroy(id: string): void;
89
+ bind(stateId: string, lifecycleTarget: string): void;
90
+ unbind(stateId: string, lifecycleTarget: string): void;
91
+ lifecycle(stateId: string): LifecycleDescriptor | undefined;
92
+ subscribe<T = unknown>(id: string, listener: (value: T | undefined) => void): () => void;
93
+ getAllEntries(): Record<string, StateEntry<unknown>>;
94
+ getZustandStore(): StoreApi<InternalStateStore>;
95
+ clear(): void;
96
+ }
97
+ declare const SKIPO_STATE: SkipoStateEngine;
98
+
99
+ /**
100
+ * @file hooks.ts
101
+ * @description React integration hooks for SKIPO_STATE.
102
+ * Enforces component lifecycle binding, automatic unmount cleanup, and zero local useState.
103
+ */
104
+
105
+ declare function useSkipoState<T>(id: string, initialValue?: T | (() => T), lifecycle?: LifecycleDescriptor): [T, (valOrUpdater: T | StateUpdater<T>) => void];
106
+ declare function useLifecycleScope(scopeId: string, scopeType?: LifecycleScopeType): void;
107
+ declare function useSkipoBind(stateId: string, lifecycleTarget: string): void;
108
+
109
+ export { LifecycleCycleError, type LifecycleDescriptor, LifecycleGraph, type LifecycleGraphNode, type LifecycleScopeType, SKIPO_STATE, type SkipoStateApi, SkipoStateEngine, type StateDeclaration, type StateEntry, type StateUpdater, useLifecycleScope, useSkipoBind, useSkipoState };
@@ -0,0 +1,20 @@
1
+ import "../chunk-Q5I42UX7.js";
2
+ import {
3
+ LifecycleCycleError,
4
+ LifecycleGraph,
5
+ SKIPO_STATE,
6
+ SkipoStateEngine,
7
+ useLifecycleScope,
8
+ useSkipoBind,
9
+ useSkipoState
10
+ } from "../chunk-SHIBCPGQ.js";
11
+ import "../chunk-3RG5ZIWI.js";
12
+ export {
13
+ LifecycleCycleError,
14
+ LifecycleGraph,
15
+ SKIPO_STATE,
16
+ SkipoStateEngine,
17
+ useLifecycleScope,
18
+ useSkipoBind,
19
+ useSkipoState
20
+ };
@@ -0,0 +1,6 @@
1
+ export { C as CommandApi, a as GhostStore, b as GhostStoreListener, d as GraphListener, e as GraphStore } from '../index-CiekWEH3.js';
2
+ import '../BaseNode-1HCEqmap.js';
3
+ import '../BaseConnection-CMRrL6Fe.js';
4
+ import '../BaseGraph-Bl2f7Pqx.js';
5
+ import '../TraceEngine-CJVpUb80.js';
6
+ import '../CompatibilityMatrix-DX307_vS.js';
@@ -0,0 +1,15 @@
1
+ import {
2
+ CommandApi,
3
+ GhostStore,
4
+ GraphStore
5
+ } from "../chunk-4UVGXFEM.js";
6
+ import "../chunk-KG6QYS26.js";
7
+ import "../chunk-OV4JVTNY.js";
8
+ import "../chunk-OYN4ZEZC.js";
9
+ import "../chunk-ISFNY7EZ.js";
10
+ import "../chunk-3RG5ZIWI.js";
11
+ export {
12
+ CommandApi,
13
+ GhostStore,
14
+ GraphStore
15
+ };
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "https://skipo.dev/schemas/kloks-manifest.v1.json",
3
+ "package": "@kloks/state-graph",
4
+ "version": "1.0.0",
5
+ "services": [
6
+ {
7
+ "id": "state-lifecycle",
8
+ "name": "State & Lifecycle Service",
9
+ "version": "1.0.0",
10
+ "description": "Zustand state engine and explicit lifecycle state-graph service.",
11
+ "backend": {
12
+ "package": "@kloks/state-graph",
13
+ "export": "StateLifecycleServiceFacade",
14
+ "facade": "StateLifecycleServiceFacade"
15
+ },
16
+ "modes": ["backend"],
17
+ "targets": { "backend": ["BackendFacade.services"] }
18
+ },
19
+ {
20
+ "id": "node-graph",
21
+ "name": "Node Graph Rules & Spatial Engine",
22
+ "version": "1.0.0",
23
+ "description": "Non-UI node graph rule verification, spatial positioning, and ghost routing engine.",
24
+ "backend": {
25
+ "package": "@kloks/state-graph",
26
+ "export": "NodeGraphEngineServiceFacade",
27
+ "facade": "NodeGraphEngineServiceFacade"
28
+ },
29
+ "ui": {
30
+ "package": "@floks/canvas-ui",
31
+ "components": ["InfiniteCanvas"]
32
+ },
33
+ "modes": ["backend", "fullstack"],
34
+ "targets": {
35
+ "backend": ["BackendFacade.services"],
36
+ "frontend": ["App.main-content"]
37
+ }
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@kloks/state-graph",
3
+ "version": "1.0.0",
4
+ "description": "Kloks Non-UI State, Execution & Node-Graph Domain/Rules/Spatial Services built on KrnlTS",
5
+ "type": "module",
6
+ "private": false,
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "registry": "https://registry.npmjs.org/"
10
+ },
11
+ "skipoManifest": "./kloks.manifest.json",
12
+ "main": "./dist/index.js",
13
+ "module": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "./state": {
22
+ "import": "./dist/state/index.js",
23
+ "types": "./dist/state/index.d.ts",
24
+ "default": "./dist/state/index.js"
25
+ },
26
+ "./execution": {
27
+ "import": "./dist/execution/index.js",
28
+ "types": "./dist/execution/index.d.ts",
29
+ "default": "./dist/execution/index.js"
30
+ },
31
+ "./domain": {
32
+ "import": "./dist/domain/index.js",
33
+ "types": "./dist/domain/index.d.ts",
34
+ "default": "./dist/domain/index.js"
35
+ },
36
+ "./rules": {
37
+ "import": "./dist/rules/index.js",
38
+ "types": "./dist/rules/index.d.ts",
39
+ "default": "./dist/rules/index.js"
40
+ },
41
+ "./spatial": {
42
+ "import": "./dist/spatial/index.js",
43
+ "types": "./dist/spatial/index.d.ts",
44
+ "default": "./dist/spatial/index.js"
45
+ },
46
+ "./store": {
47
+ "import": "./dist/store/index.js",
48
+ "types": "./dist/store/index.d.ts",
49
+ "default": "./dist/store/index.js"
50
+ }
51
+ },
52
+ "scripts": {
53
+ "build": "tsup src/index.ts src/state/index.ts src/execution/index.ts src/domain/index.ts src/rules/index.ts src/spatial/index.ts src/store/index.ts --format esm --dts --clean --external zustand --external bullmq --external react --external ws",
54
+ "typecheck": "tsc --noEmit",
55
+ "clean": "rm -rf dist"
56
+ },
57
+ "dependencies": {
58
+ "@kloks/functions": "^1.0.0",
59
+ "bullmq": "^6.3.8",
60
+ "zustand": "^5.0.15"
61
+ },
62
+ "peerDependencies": {
63
+ "react": "^18.0.0 || ^19.0.0"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "react": {
67
+ "optional": true
68
+ }
69
+ },
70
+ "devDependencies": {
71
+ "@dinilmusick/krnl": "^1.0.0"
72
+ }
73
+ }