@ultrst-armada/kloks 2.0.1 → 2.0.3

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 (35) hide show
  1. package/package.json +1 -1
  2. package/packages/backend/dist/api/index.js +1 -1
  3. package/packages/backend/dist/api/middleware.test.d.ts +1 -0
  4. package/packages/backend/dist/chunk-GYSZ6CAX.js +19 -0
  5. package/packages/backend/dist/{chunk-WC6EPW3A.js → chunk-POLVHTHJ.js} +16 -6
  6. package/packages/backend/dist/development/wasmRuntimeService.d.ts +1 -1
  7. package/packages/backend/dist/index.d.ts +1 -0
  8. package/packages/backend/dist/index.js +7 -1
  9. package/packages/backend/dist/node.js +9 -20
  10. package/packages/backend/dist/resolver/index.d.ts +1 -0
  11. package/packages/client/dist/auth.js +1 -1
  12. package/packages/client/dist/{chunk-5JMYSB7L.js → chunk-ATLIA7AJ.js} +11 -1
  13. package/packages/client/dist/index.js +1 -1
  14. package/packages/functions/dist/async.d.ts +36 -0
  15. package/packages/functions/dist/base.d.ts +31 -1
  16. package/packages/functions/dist/cache.d.ts +27 -0
  17. package/packages/functions/dist/env-node.d.ts +8 -0
  18. package/packages/functions/dist/env.d.ts +19 -0
  19. package/packages/functions/dist/events.d.ts +32 -0
  20. package/packages/functions/dist/fileCache.d.ts +9 -0
  21. package/packages/functions/dist/fs-lock.d.ts +9 -0
  22. package/packages/functions/dist/fs.d.ts +35 -0
  23. package/packages/functions/dist/http.d.ts +36 -0
  24. package/packages/functions/dist/index.d.ts +14 -16
  25. package/packages/functions/dist/node.d.ts +7 -110
  26. package/packages/functions/dist/object.d.ts +32 -0
  27. package/packages/functions/dist/portable.d.ts +12 -206
  28. package/packages/functions/dist/shell.d.ts +37 -0
  29. package/packages/functions/dist/string.d.ts +14 -0
  30. package/packages/functions/dist/types.d.ts +31 -0
  31. package/packages/functions/package.json +1 -1
  32. package/packages/wasm-runtime/dist/index.d.ts +4 -3
  33. package/packages/wasm-runtime/dist/index.js +1 -3
  34. package/packages/wasm-runtime/vendor/forge/browser/dist/index.js +2 -2
  35. package/packages/functions/dist/base-DDYO-DzM.d.ts +0 -64
@@ -1,64 +0,0 @@
1
- /** Standard result type for operations that can fail */
2
- type Result<T, E = Error> = {
3
- ok: true;
4
- value: T;
5
- } | {
6
- ok: false;
7
- error: E;
8
- };
9
- /** Standard logger interface */
10
- interface Logger {
11
- log(message: string, ...args: unknown[]): void;
12
- warn(message: string, ...args: unknown[]): void;
13
- error(message: string, ...args: unknown[]): void;
14
- debug?(message: string, ...args: unknown[]): void;
15
- }
16
- /** Disposable resource interface */
17
- interface Disposable {
18
- dispose(): Promise<void>;
19
- }
20
- /** Generic provider interface */
21
- interface Provider<_T = unknown> {
22
- initialize(): Promise<void>;
23
- dispose(): Promise<void>;
24
- isInitialized(): boolean;
25
- }
26
- /** Configuration for any Skipo component */
27
- interface SkipoConfig {
28
- name: string;
29
- logger?: Logger;
30
- [key: string]: unknown;
31
- }
32
-
33
- /**
34
- * SkipoBase — Abstract foundation class for all Skipo components.
35
- * Provides lifecycle management, logging, and unique identification.
36
- * All @skipo/* classes should extend this.
37
- */
38
- declare abstract class SkipoBase implements Disposable {
39
- /** Unique instance identifier */
40
- readonly instanceId: string;
41
- /** Human-readable component name */
42
- readonly name: string;
43
- /** Logger instance */
44
- protected readonly logger: Logger;
45
- /** Whether this component has been initialized */
46
- protected initialized: boolean;
47
- /** Whether this component has been disposed */
48
- protected disposed: boolean;
49
- constructor(config?: SkipoConfig);
50
- /** Initialize the component. Call before use. */
51
- initialize(): Promise<void>;
52
- /** Override to add custom initialization logic */
53
- protected onInitialize(): Promise<void>;
54
- /** Dispose the component and release resources */
55
- dispose(): Promise<void>;
56
- /** Override to add custom cleanup logic */
57
- protected onDispose(): Promise<void>;
58
- /** Guard: throws if not initialized */
59
- protected ensureInitialized(): void;
60
- /** Guard: throws if already disposed */
61
- protected ensureNotDisposed(): void;
62
- }
63
-
64
- export { type Disposable as D, type Logger as L, type Provider as P, type Result as R, SkipoBase as S, type SkipoConfig as a };