@ultrst-armada/kloks 1.4.3 → 1.4.4
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/package.json +8 -20
- package/packages/audio-midi/dist/index.d.ts +23 -14
- package/packages/audio-midi/dist/index.js +170 -45
- package/packages/audio-midi/kloks.manifest.json +8 -8
- package/packages/audio-midi/package.json +1 -1
- package/packages/backend/dist/{WebSocketTransport-CxUzUfwl.d.ts → WebSocketTransport-CHmkJ0tj.d.ts} +109 -2
- package/packages/backend/dist/auth/index.js +6 -6
- package/packages/backend/dist/chunk-5336MTXD.js +597 -0
- package/packages/backend/dist/{chunk-T3NYNBDC.js → chunk-5E6JRFUH.js} +201 -3
- package/packages/backend/dist/{chunk-XTWHEZWS.js → chunk-7B24ZWB3.js} +16 -1
- package/packages/backend/dist/{chunk-DZ4ZGIZM.js → chunk-JXUSBKJ2.js} +91 -654
- package/packages/backend/dist/{chunk-FO6WYLW4.js → chunk-KI3LHMUN.js} +133 -46
- package/packages/backend/dist/{chunk-4ZFXEFOE.js → chunk-MPYASJ5A.js} +2 -87
- package/packages/backend/dist/{chunk-KX3OTBQ3.js → chunk-OZDYAEH4.js} +0 -114
- package/packages/backend/dist/chunk-TY32TUNI.js +376 -0
- package/packages/backend/dist/chunk-VDROUXFT.js +116 -0
- package/packages/backend/dist/chunk-ZDH4XI7W.js +140 -0
- package/packages/backend/dist/client/index.d.ts +2 -3
- package/packages/backend/dist/connectivity/index.d.ts +18 -6
- package/packages/backend/dist/connectivity/index.js +3 -7
- package/packages/backend/dist/index.d.ts +3 -6
- package/packages/backend/dist/index.js +101 -91
- package/packages/backend/dist/krnl-services.d.ts +84 -7
- package/packages/backend/dist/krnl-services.js +40 -12
- package/packages/backend/dist/services/index.d.ts +4 -6
- package/packages/backend/dist/services/index.js +2 -2
- package/packages/backend/dist/srkl/index.js +6 -4
- package/packages/backend/dist/storage/index.js +7 -7
- package/packages/backend/dist/workspace/index.js +2 -2
- package/packages/backend/kloks.manifest.json +47 -45
- package/packages/backend/package.json +3 -8
- package/packages/client/package.json +1 -1
- package/packages/contracts/dist/index.js +5 -10
- package/packages/contracts/package.json +1 -1
- package/packages/functions/dist/index.d.ts +12 -1
- package/packages/functions/dist/index.js +132 -24
- package/packages/functions/package.json +1 -1
- package/packages/orchestrations/dist/index.d.ts +33 -31
- package/packages/orchestrations/dist/index.js +81 -203
- package/packages/orchestrations/kloks.manifest.json +10 -2
- package/packages/orchestrations/package.json +2 -2
- package/packages/services/dist/index.d.ts +51 -1
- package/packages/services/dist/index.js +234 -36
- package/packages/services/kloks.manifest.json +69 -33
- package/packages/services/package.json +1 -1
- package/packages/state-graph/dist/{BaseGraph-BvkSYOTw.d.ts → BaseGraph-Bd5F1NMP.d.ts} +1 -1
- package/packages/state-graph/dist/{BaseNode-DTcd3K1B.d.ts → BaseNode-DKpGXMy8.d.ts} +6 -0
- package/packages/state-graph/dist/{CompatibilityMatrix-Dj-tCWUA.d.ts → CompatibilityMatrix-TiEJ3j3_.d.ts} +1 -1
- package/packages/state-graph/dist/domain/index.d.ts +3 -3
- package/packages/state-graph/dist/domain/index.js +0 -1
- package/packages/state-graph/dist/index.d.ts +40 -8
- package/packages/state-graph/dist/index.js +214 -65
- package/packages/state-graph/dist/rules/index.d.ts +3 -3
- package/packages/state-graph/dist/rules/index.js +0 -1
- package/packages/state-graph/dist/spatial/index.d.ts +4 -4
- package/packages/state-graph/dist/spatial/index.js +0 -1
- package/packages/state-graph/dist/state/index.js +1 -3
- package/packages/state-graph/dist/store/index.d.ts +4 -4
- package/packages/state-graph/dist/store/index.js +0 -1
- package/packages/state-graph/dist/{types-VDoc4FIc.d.ts → types-D5kQSa65.d.ts} +2 -2
- package/packages/state-graph/kloks.manifest.json +26 -10
- package/packages/state-graph/package.json +2 -8
- package/packages/backend/dist/IdempotencyManager-B5MjK871.d.ts +0 -16
- package/packages/backend/dist/chunk-25Y7AVTP.js +0 -55
- package/packages/backend/dist/chunk-3EPY34R6.js +0 -67
- package/packages/backend/dist/chunk-7KNGX522.js +0 -220
- package/packages/backend/dist/chunk-FZKBTF34.js +0 -15
- package/packages/backend/dist/chunk-QGHDJGYS.js +0 -92
- package/packages/backend/dist/chunk-UPFKBBQI.js +0 -138
- package/packages/backend/dist/chunk-VQEFULWT.js +0 -88
- package/packages/backend/dist/execution/index.d.ts +0 -124
- package/packages/backend/dist/execution/index.js +0 -20
- package/packages/backend/dist/types-BERZJ93O.d.ts +0 -110
- package/packages/state-graph/dist/chunk-3RG5ZIWI.js +0 -10
- package/packages/state-graph/dist/chunk-Q5I42UX7.js +0 -0
- package/packages/state-graph/dist/chunk-ZTHBPV24.js +0 -267
- package/packages/state-graph/dist/execution/index.d.ts +0 -152
- package/packages/state-graph/dist/execution/index.js +0 -16
- /package/packages/state-graph/dist/{chunk-SHIBCPGQ.js → chunk-EW4ACSZB.js} +0 -0
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file types.ts
|
|
3
|
-
* @description Formal TypeScript types for SKIPO_EXECUTION system.
|
|
4
|
-
* Conforms to SKIPO::STATE_EXECUTION_ARCHITECTURE and L9 (<=200L).
|
|
5
|
-
*/
|
|
6
|
-
type JobPriority = 'LOW' | 'NORMAL' | 'HIGH' | 'CRITICAL';
|
|
7
|
-
type JobStatus = 'PENDING' | 'QUEUED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'RETRYING';
|
|
8
|
-
interface RetryPolicy {
|
|
9
|
-
maxAttempts: number;
|
|
10
|
-
backoffMs: number;
|
|
11
|
-
jitter?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface SkipoCommand<TPayload = unknown> {
|
|
14
|
-
id: string;
|
|
15
|
-
type: string;
|
|
16
|
-
payload: TPayload;
|
|
17
|
-
metadata?: Record<string, unknown>;
|
|
18
|
-
correlationId: string;
|
|
19
|
-
lifecycle?: string;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
}
|
|
22
|
-
interface ExecutionJob<TPayload = unknown> {
|
|
23
|
-
id: string;
|
|
24
|
-
command: SkipoCommand<TPayload>;
|
|
25
|
-
idempotencyKey: string;
|
|
26
|
-
correlationId: string;
|
|
27
|
-
retryPolicy?: RetryPolicy;
|
|
28
|
-
priority?: JobPriority;
|
|
29
|
-
dependencies?: string[];
|
|
30
|
-
status: JobStatus;
|
|
31
|
-
progress?: number;
|
|
32
|
-
attempts?: number;
|
|
33
|
-
createdAt: number;
|
|
34
|
-
updatedAt: number;
|
|
35
|
-
}
|
|
36
|
-
interface ExecutionResult<TResult = unknown> {
|
|
37
|
-
correlationId: string;
|
|
38
|
-
status: 'COMPLETED' | 'FAILED';
|
|
39
|
-
data?: TResult;
|
|
40
|
-
error?: string;
|
|
41
|
-
executionTimeMs?: number;
|
|
42
|
-
}
|
|
43
|
-
interface ExecutionQueueAdapter {
|
|
44
|
-
enqueue<T = unknown>(job: ExecutionJob<T>): Promise<string>;
|
|
45
|
-
getJobStatus(jobId: string): Promise<JobStatus | undefined>;
|
|
46
|
-
getJobResult<R = unknown>(jobId: string): Promise<ExecutionResult<R> | undefined>;
|
|
47
|
-
cancel(jobId: string): Promise<boolean>;
|
|
48
|
-
close(): Promise<void>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @file BullMQAdapter.ts
|
|
53
|
-
* @description BullMQ Queue adapter with high-fidelity in-memory fallback.
|
|
54
|
-
* Implements priority scheduling, retry policy, and concurrency control.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
interface BullMQAdapterOptions {
|
|
58
|
-
queueName: string;
|
|
59
|
-
connection?: {
|
|
60
|
-
host?: string;
|
|
61
|
-
port?: number;
|
|
62
|
-
url?: string;
|
|
63
|
-
};
|
|
64
|
-
maxConcurrency?: number;
|
|
65
|
-
useInMemory?: boolean;
|
|
66
|
-
}
|
|
67
|
-
declare class BullMQAdapter implements ExecutionQueueAdapter {
|
|
68
|
-
private queue?;
|
|
69
|
-
private worker?;
|
|
70
|
-
private inMemoryJobs;
|
|
71
|
-
private inMemoryResults;
|
|
72
|
-
private inMemoryListeners;
|
|
73
|
-
private isInMemory;
|
|
74
|
-
constructor(options: BullMQAdapterOptions);
|
|
75
|
-
enqueue<T = unknown>(job: ExecutionJob<T>): Promise<string>;
|
|
76
|
-
getJobStatus(jobId: string): Promise<JobStatus | undefined>;
|
|
77
|
-
getJobResult<R = unknown>(jobId: string): Promise<ExecutionResult<R> | undefined>;
|
|
78
|
-
completeInMemoryJob(jobId: string, result: ExecutionResult<any>): void;
|
|
79
|
-
subscribeInMemoryJob(jobId: string, listener: (res: ExecutionResult<any>) => void): () => void;
|
|
80
|
-
getQueuedInMemoryJobs(): ExecutionJob<any>[];
|
|
81
|
-
cancel(jobId: string): Promise<boolean>;
|
|
82
|
-
close(): Promise<void>;
|
|
83
|
-
private getPriorityNumber;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @file CommandBus.ts
|
|
88
|
-
* @description Frontend Command factory & enqueue transport boundary.
|
|
89
|
-
* Enforces Invariants I7-I10: all backend-bound operations MUST go through commands.
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
interface EnqueueOptions {
|
|
93
|
-
idempotencyKey?: string;
|
|
94
|
-
correlationId?: string;
|
|
95
|
-
priority?: JobPriority;
|
|
96
|
-
retryPolicy?: RetryPolicy;
|
|
97
|
-
dependencies?: string[];
|
|
98
|
-
}
|
|
99
|
-
declare class CommandBus {
|
|
100
|
-
private adapter;
|
|
101
|
-
constructor(adapter: BullMQAdapter);
|
|
102
|
-
createCommand<TPayload = unknown>(type: string, payload: TPayload, metadata?: Record<string, unknown>, lifecycle?: string): SkipoCommand<TPayload>;
|
|
103
|
-
enqueue<TPayload = unknown>(command: SkipoCommand<TPayload>, options?: EnqueueOptions): Promise<ExecutionJob<TPayload>>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @file SkipoExecution.ts
|
|
108
|
-
* @description Canonical SKIPO_EXECUTION system orchestrator.
|
|
109
|
-
* Connects BullMQ queues, CommandBus, and SKIPO_STATE result flow.
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
declare class SkipoExecutionEngine {
|
|
113
|
-
readonly frontendQueue: BullMQAdapter;
|
|
114
|
-
readonly backendQueue: BullMQAdapter;
|
|
115
|
-
readonly commandBus: CommandBus;
|
|
116
|
-
constructor(options?: {
|
|
117
|
-
redisConnection?: {
|
|
118
|
-
host?: string;
|
|
119
|
-
port?: number;
|
|
120
|
-
url?: string;
|
|
121
|
-
};
|
|
122
|
-
});
|
|
123
|
-
createCommand<TPayload = unknown>(type: string, payload: TPayload, metadata?: Record<string, unknown>, lifecycle?: string): SkipoCommand<TPayload>;
|
|
124
|
-
dispatch<TPayload = unknown>(type: string, payload: TPayload, options?: EnqueueOptions): Promise<ExecutionJob<TPayload>>;
|
|
125
|
-
propagateResult<TResult = unknown>(correlationId: string, result: ExecutionResult<TResult>): void;
|
|
126
|
-
close(): Promise<void>;
|
|
127
|
-
}
|
|
128
|
-
declare const SKIPO_EXECUTION: SkipoExecutionEngine;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @file hooks.ts
|
|
132
|
-
* @description React integration hooks for SKIPO_EXECUTION.
|
|
133
|
-
* Routes all frontend mutations through BullMQ commands and reflects updates into SKIPO_STATE.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
interface CommandExecutionState<TResult = unknown> {
|
|
137
|
-
status: 'IDLE' | 'QUEUED' | 'RUNNING' | 'COMPLETED' | 'FAILED';
|
|
138
|
-
correlationId?: string;
|
|
139
|
-
data?: TResult;
|
|
140
|
-
error?: string;
|
|
141
|
-
completedAt?: number;
|
|
142
|
-
}
|
|
143
|
-
declare function useCommand<TPayload = unknown, TResult = unknown>(type: string, defaultOptions?: EnqueueOptions): {
|
|
144
|
-
dispatch: (payload: TPayload, options?: Partial<EnqueueOptions>) => Promise<ExecutionJob<TPayload>>;
|
|
145
|
-
status: "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "IDLE";
|
|
146
|
-
isPending: boolean;
|
|
147
|
-
result: TResult;
|
|
148
|
-
error: string;
|
|
149
|
-
correlationId: string;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export { BullMQAdapter, type BullMQAdapterOptions, CommandBus, type CommandExecutionState, type EnqueueOptions, type ExecutionJob, type ExecutionQueueAdapter, type ExecutionResult, type JobPriority, type JobStatus, type RetryPolicy, SKIPO_EXECUTION, type SkipoCommand, SkipoExecutionEngine, useCommand };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BullMQAdapter,
|
|
3
|
-
CommandBus,
|
|
4
|
-
SKIPO_EXECUTION,
|
|
5
|
-
SkipoExecutionEngine,
|
|
6
|
-
useCommand
|
|
7
|
-
} from "../chunk-ZTHBPV24.js";
|
|
8
|
-
import "../chunk-SHIBCPGQ.js";
|
|
9
|
-
import "../chunk-3RG5ZIWI.js";
|
|
10
|
-
export {
|
|
11
|
-
BullMQAdapter,
|
|
12
|
-
CommandBus,
|
|
13
|
-
SKIPO_EXECUTION,
|
|
14
|
-
SkipoExecutionEngine,
|
|
15
|
-
useCommand
|
|
16
|
-
};
|
|
File without changes
|