@elaraai/e3-rack 0.0.0-bootstrap.0 → 1.0.94
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/README.md +407 -2
- package/dist/src/client/client.spec.d.ts +6 -0
- package/dist/src/client/client.spec.d.ts.map +1 -0
- package/dist/src/client/client.spec.js +150 -0
- package/dist/src/client/client.spec.js.map +1 -0
- package/dist/src/client/connect.d.ts +52 -0
- package/dist/src/client/connect.d.ts.map +1 -0
- package/dist/src/client/connect.js +112 -0
- package/dist/src/client/connect.js.map +1 -0
- package/dist/src/client/hub-client.d.ts +57 -0
- package/dist/src/client/hub-client.d.ts.map +1 -0
- package/dist/src/client/hub-client.js +87 -0
- package/dist/src/client/hub-client.js.map +1 -0
- package/dist/src/client/local-http.d.ts +78 -0
- package/dist/src/client/local-http.d.ts.map +1 -0
- package/dist/src/client/local-http.js +149 -0
- package/dist/src/client/local-http.js.map +1 -0
- package/dist/src/client/session-attempts.d.ts +20 -0
- package/dist/src/client/session-attempts.d.ts.map +1 -0
- package/dist/src/client/session-attempts.js +88 -0
- package/dist/src/client/session-attempts.js.map +1 -0
- package/dist/src/client/session-data-server.d.ts +37 -0
- package/dist/src/client/session-data-server.d.ts.map +1 -0
- package/dist/src/client/session-data-server.js +280 -0
- package/dist/src/client/session-data-server.js.map +1 -0
- package/dist/src/client/session-data-server.spec.d.ts +6 -0
- package/dist/src/client/session-data-server.spec.d.ts.map +1 -0
- package/dist/src/client/session-data-server.spec.js +192 -0
- package/dist/src/client/session-data-server.spec.js.map +1 -0
- package/dist/src/client/session.d.ts +119 -0
- package/dist/src/client/session.d.ts.map +1 -0
- package/dist/src/client/session.js +290 -0
- package/dist/src/client/session.js.map +1 -0
- package/dist/src/hub/config.d.ts +74 -0
- package/dist/src/hub/config.d.ts.map +1 -0
- package/dist/src/hub/config.js +159 -0
- package/dist/src/hub/config.js.map +1 -0
- package/dist/src/hub/fair-lease-store.d.ts +36 -0
- package/dist/src/hub/fair-lease-store.d.ts.map +1 -0
- package/dist/src/hub/fair-lease-store.js +73 -0
- package/dist/src/hub/fair-lease-store.js.map +1 -0
- package/dist/src/hub/hub.d.ts +91 -0
- package/dist/src/hub/hub.d.ts.map +1 -0
- package/dist/src/hub/hub.js +641 -0
- package/dist/src/hub/hub.js.map +1 -0
- package/dist/src/hub/hub.spec.d.ts +6 -0
- package/dist/src/hub/hub.spec.d.ts.map +1 -0
- package/dist/src/hub/hub.spec.js +363 -0
- package/dist/src/hub/hub.spec.js.map +1 -0
- package/dist/src/hub/infrastructure.spec.d.ts +6 -0
- package/dist/src/hub/infrastructure.spec.d.ts.map +1 -0
- package/dist/src/hub/infrastructure.spec.js +211 -0
- package/dist/src/hub/infrastructure.spec.js.map +1 -0
- package/dist/src/hub/lock.d.ts +62 -0
- package/dist/src/hub/lock.d.ts.map +1 -0
- package/dist/src/hub/lock.js +165 -0
- package/dist/src/hub/lock.js.map +1 -0
- package/dist/src/hub/main.d.ts +16 -0
- package/dist/src/hub/main.d.ts.map +1 -0
- package/dist/src/hub/main.js +56 -0
- package/dist/src/hub/main.js.map +1 -0
- package/dist/src/hub/session-bridge.d.ts +116 -0
- package/dist/src/hub/session-bridge.d.ts.map +1 -0
- package/dist/src/hub/session-bridge.js +336 -0
- package/dist/src/hub/session-bridge.js.map +1 -0
- package/dist/src/identity/file-identity-store.d.ts +18 -0
- package/dist/src/identity/file-identity-store.d.ts.map +1 -0
- package/dist/src/identity/file-identity-store.js +34 -0
- package/dist/src/identity/file-identity-store.js.map +1 -0
- package/dist/src/identity/file-identity-store.spec.d.ts +6 -0
- package/dist/src/identity/file-identity-store.spec.d.ts.map +1 -0
- package/dist/src/identity/file-identity-store.spec.js +59 -0
- package/dist/src/identity/file-identity-store.spec.js.map +1 -0
- package/dist/src/identity/in-memory-identity-store.d.ts +48 -0
- package/dist/src/identity/in-memory-identity-store.d.ts.map +1 -0
- package/dist/src/identity/in-memory-identity-store.js +102 -0
- package/dist/src/identity/in-memory-identity-store.js.map +1 -0
- package/dist/src/identity/machine-identity.d.ts +134 -0
- package/dist/src/identity/machine-identity.d.ts.map +1 -0
- package/dist/src/identity/machine-identity.js +65 -0
- package/dist/src/identity/machine-identity.js.map +1 -0
- package/dist/src/index.d.ts +34 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +34 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lease/closure.d.ts +96 -0
- package/dist/src/lease/closure.d.ts.map +1 -0
- package/dist/src/lease/closure.js +192 -0
- package/dist/src/lease/closure.js.map +1 -0
- package/dist/src/lease/closure.spec.d.ts +6 -0
- package/dist/src/lease/closure.spec.d.ts.map +1 -0
- package/dist/src/lease/closure.spec.js +35 -0
- package/dist/src/lease/closure.spec.js.map +1 -0
- package/dist/src/lease/coordinator.d.ts +34 -0
- package/dist/src/lease/coordinator.d.ts.map +1 -0
- package/dist/src/lease/coordinator.js +42 -0
- package/dist/src/lease/coordinator.js.map +1 -0
- package/dist/src/lease/in-memory-lease-store.d.ts +58 -0
- package/dist/src/lease/in-memory-lease-store.d.ts.map +1 -0
- package/dist/src/lease/in-memory-lease-store.js +132 -0
- package/dist/src/lease/in-memory-lease-store.js.map +1 -0
- package/dist/src/lease/lease-store.d.ts +169 -0
- package/dist/src/lease/lease-store.d.ts.map +1 -0
- package/dist/src/lease/lease-store.js +94 -0
- package/dist/src/lease/lease-store.js.map +1 -0
- package/dist/src/lease/lease-store.spec.d.ts +6 -0
- package/dist/src/lease/lease-store.spec.d.ts.map +1 -0
- package/dist/src/lease/lease-store.spec.js +8 -0
- package/dist/src/lease/lease-store.spec.js.map +1 -0
- package/dist/src/lease/rack-dispatch.d.ts +105 -0
- package/dist/src/lease/rack-dispatch.d.ts.map +1 -0
- package/dist/src/lease/rack-dispatch.js +6 -0
- package/dist/src/lease/rack-dispatch.js.map +1 -0
- package/dist/src/mutation-queue.d.ts +13 -0
- package/dist/src/mutation-queue.d.ts.map +1 -0
- package/dist/src/mutation-queue.js +17 -0
- package/dist/src/mutation-queue.js.map +1 -0
- package/dist/src/paths.d.ts +56 -0
- package/dist/src/paths.d.ts.map +1 -0
- package/dist/src/paths.js +82 -0
- package/dist/src/paths.js.map +1 -0
- package/dist/src/protocol/control.d.ts +295 -0
- package/dist/src/protocol/control.d.ts.map +1 -0
- package/dist/src/protocol/control.js +74 -0
- package/dist/src/protocol/control.js.map +1 -0
- package/dist/src/protocol/index.d.ts +9 -0
- package/dist/src/protocol/index.d.ts.map +1 -0
- package/dist/src/protocol/index.js +9 -0
- package/dist/src/protocol/index.js.map +1 -0
- package/dist/src/protocol/rack-wire.d.ts +357 -0
- package/dist/src/protocol/rack-wire.d.ts.map +1 -0
- package/dist/src/protocol/rack-wire.js +262 -0
- package/dist/src/protocol/rack-wire.js.map +1 -0
- package/dist/src/protocol/rack-wire.spec.d.ts +6 -0
- package/dist/src/protocol/rack-wire.spec.d.ts.map +1 -0
- package/dist/src/protocol/rack-wire.spec.js +14 -0
- package/dist/src/protocol/rack-wire.spec.js.map +1 -0
- package/dist/src/protocol/registration.d.ts +70 -0
- package/dist/src/protocol/registration.d.ts.map +1 -0
- package/dist/src/protocol/registration.js +67 -0
- package/dist/src/protocol/registration.js.map +1 -0
- package/dist/src/protocol/session-data.d.ts +69 -0
- package/dist/src/protocol/session-data.d.ts.map +1 -0
- package/dist/src/protocol/session-data.js +26 -0
- package/dist/src/protocol/session-data.js.map +1 -0
- package/dist/src/protocol/task-envelope.d.ts +198 -0
- package/dist/src/protocol/task-envelope.d.ts.map +1 -0
- package/dist/src/protocol/task-envelope.js +93 -0
- package/dist/src/protocol/task-envelope.js.map +1 -0
- package/dist/src/protocol/wire-golden.d.ts +8 -0
- package/dist/src/protocol/wire-golden.d.ts.map +1 -0
- package/dist/src/protocol/wire-golden.js +34 -0
- package/dist/src/protocol/wire-golden.js.map +1 -0
- package/dist/src/protocol/wire-samples.d.ts +11 -0
- package/dist/src/protocol/wire-samples.d.ts.map +1 -0
- package/dist/src/protocol/wire-samples.js +52 -0
- package/dist/src/protocol/wire-samples.js.map +1 -0
- package/dist/src/registry/file-rack-registry.d.ts +68 -0
- package/dist/src/registry/file-rack-registry.d.ts.map +1 -0
- package/dist/src/registry/file-rack-registry.js +138 -0
- package/dist/src/registry/file-rack-registry.js.map +1 -0
- package/dist/src/registry/file-rack-registry.spec.d.ts +6 -0
- package/dist/src/registry/file-rack-registry.spec.d.ts.map +1 -0
- package/dist/src/registry/file-rack-registry.spec.js +50 -0
- package/dist/src/registry/file-rack-registry.spec.js.map +1 -0
- package/dist/src/registry/rack-registry.d.ts +64 -0
- package/dist/src/registry/rack-registry.d.ts.map +1 -0
- package/dist/src/registry/rack-registry.js +65 -0
- package/dist/src/registry/rack-registry.js.map +1 -0
- package/dist/src/registry/rack-registry.spec.d.ts +6 -0
- package/dist/src/registry/rack-registry.spec.d.ts.map +1 -0
- package/dist/src/registry/rack-registry.spec.js +8 -0
- package/dist/src/registry/rack-registry.spec.js.map +1 -0
- package/dist/src/routing/eligibility.d.ts +38 -0
- package/dist/src/routing/eligibility.d.ts.map +1 -0
- package/dist/src/routing/eligibility.js +78 -0
- package/dist/src/routing/eligibility.js.map +1 -0
- package/dist/src/routing/host-coupling.d.ts +26 -0
- package/dist/src/routing/host-coupling.d.ts.map +1 -0
- package/dist/src/routing/host-coupling.js +62 -0
- package/dist/src/routing/host-coupling.js.map +1 -0
- package/dist/src/routing/policy.d.ts +188 -0
- package/dist/src/routing/policy.d.ts.map +1 -0
- package/dist/src/routing/policy.js +212 -0
- package/dist/src/routing/policy.js.map +1 -0
- package/dist/src/routing/routing.spec.d.ts +6 -0
- package/dist/src/routing/routing.spec.d.ts.map +1 -0
- package/dist/src/routing/routing.spec.js +100 -0
- package/dist/src/routing/routing.spec.js.map +1 -0
- package/dist/src/routing/tiers.d.ts +22 -0
- package/dist/src/routing/tiers.d.ts.map +1 -0
- package/dist/src/routing/tiers.js +26 -0
- package/dist/src/routing/tiers.js.map +1 -0
- package/dist/src/runner/api-server.d.ts +45 -0
- package/dist/src/runner/api-server.d.ts.map +1 -0
- package/dist/src/runner/api-server.js +21 -0
- package/dist/src/runner/api-server.js.map +1 -0
- package/dist/src/runner/capacity.d.ts +13 -0
- package/dist/src/runner/capacity.d.ts.map +1 -0
- package/dist/src/runner/capacity.js +18 -0
- package/dist/src/runner/capacity.js.map +1 -0
- package/dist/src/runner/rack-body.d.ts +43 -0
- package/dist/src/runner/rack-body.d.ts.map +1 -0
- package/dist/src/runner/rack-body.js +208 -0
- package/dist/src/runner/rack-body.js.map +1 -0
- package/dist/src/runner/rack-runner.d.ts +62 -0
- package/dist/src/runner/rack-runner.d.ts.map +1 -0
- package/dist/src/runner/rack-runner.js +75 -0
- package/dist/src/runner/rack-runner.js.map +1 -0
- package/dist/src/runner/rack-runner.spec.d.ts +6 -0
- package/dist/src/runner/rack-runner.spec.d.ts.map +1 -0
- package/dist/src/runner/rack-runner.spec.js +302 -0
- package/dist/src/runner/rack-runner.spec.js.map +1 -0
- package/dist/src/runner/split.spec.d.ts +6 -0
- package/dist/src/runner/split.spec.d.ts.map +1 -0
- package/dist/src/runner/split.spec.js +188 -0
- package/dist/src/runner/split.spec.js.map +1 -0
- package/dist/src/runner-event.d.ts +261 -0
- package/dist/src/runner-event.d.ts.map +1 -0
- package/dist/src/runner-event.js +332 -0
- package/dist/src/runner-event.js.map +1 -0
- package/dist/src/server/beast2.d.ts +19 -0
- package/dist/src/server/beast2.d.ts.map +1 -0
- package/dist/src/server/beast2.js +18 -0
- package/dist/src/server/beast2.js.map +1 -0
- package/dist/src/server/body-limit.d.ts +16 -0
- package/dist/src/server/body-limit.d.ts.map +1 -0
- package/dist/src/server/body-limit.js +53 -0
- package/dist/src/server/body-limit.js.map +1 -0
- package/dist/src/server/body-limit.spec.d.ts +2 -0
- package/dist/src/server/body-limit.spec.d.ts.map +1 -0
- package/dist/src/server/body-limit.spec.js +32 -0
- package/dist/src/server/body-limit.spec.js.map +1 -0
- package/dist/src/server/bounded.d.ts +16 -0
- package/dist/src/server/bounded.d.ts.map +1 -0
- package/dist/src/server/bounded.js +39 -0
- package/dist/src/server/bounded.js.map +1 -0
- package/dist/src/server/dispatch.d.ts +137 -0
- package/dist/src/server/dispatch.d.ts.map +1 -0
- package/dist/src/server/dispatch.js +267 -0
- package/dist/src/server/dispatch.js.map +1 -0
- package/dist/src/server/env-publication.d.ts +45 -0
- package/dist/src/server/env-publication.d.ts.map +1 -0
- package/dist/src/server/env-publication.js +10 -0
- package/dist/src/server/env-publication.js.map +1 -0
- package/dist/src/server/index.d.ts +16 -0
- package/dist/src/server/index.d.ts.map +1 -0
- package/dist/src/server/index.js +17 -0
- package/dist/src/server/index.js.map +1 -0
- package/dist/src/server/protocol.spec.d.ts +6 -0
- package/dist/src/server/protocol.spec.d.ts.map +1 -0
- package/dist/src/server/protocol.spec.js +78 -0
- package/dist/src/server/protocol.spec.js.map +1 -0
- package/dist/src/server/rack-routes.d.ts +175 -0
- package/dist/src/server/rack-routes.d.ts.map +1 -0
- package/dist/src/server/rack-routes.js +755 -0
- package/dist/src/server/rack-routes.js.map +1 -0
- package/dist/src/server/rack-routes.spec.d.ts +6 -0
- package/dist/src/server/rack-routes.spec.d.ts.map +1 -0
- package/dist/src/server/rack-routes.spec.js +477 -0
- package/dist/src/server/rack-routes.spec.js.map +1 -0
- package/dist/src/server/storage-bridge.d.ts +140 -0
- package/dist/src/server/storage-bridge.d.ts.map +1 -0
- package/dist/src/server/storage-bridge.js +6 -0
- package/dist/src/server/storage-bridge.js.map +1 -0
- package/dist/src/state-file.d.ts +10 -0
- package/dist/src/state-file.d.ts.map +1 -0
- package/dist/src/state-file.js +38 -0
- package/dist/src/state-file.js.map +1 -0
- package/dist/src/testing/in-memory.d.ts +116 -0
- package/dist/src/testing/in-memory.d.ts.map +1 -0
- package/dist/src/testing/in-memory.js +193 -0
- package/dist/src/testing/in-memory.js.map +1 -0
- package/dist/src/testing/index.d.ts +14 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js +14 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/lease-store-contract.d.ts +14 -0
- package/dist/src/testing/lease-store-contract.d.ts.map +1 -0
- package/dist/src/testing/lease-store-contract.js +78 -0
- package/dist/src/testing/lease-store-contract.js.map +1 -0
- package/dist/src/testing/protocol-suite.d.ts +38 -0
- package/dist/src/testing/protocol-suite.d.ts.map +1 -0
- package/dist/src/testing/protocol-suite.js +207 -0
- package/dist/src/testing/protocol-suite.js.map +1 -0
- package/dist/src/testing/rack-registry-contract.d.ts +15 -0
- package/dist/src/testing/rack-registry-contract.d.ts.map +1 -0
- package/dist/src/testing/rack-registry-contract.js +106 -0
- package/dist/src/testing/rack-registry-contract.js.map +1 -0
- package/dist/src/testing/test-rack-agent.d.ts +121 -0
- package/dist/src/testing/test-rack-agent.d.ts.map +1 -0
- package/dist/src/testing/test-rack-agent.js +316 -0
- package/dist/src/testing/test-rack-agent.js.map +1 -0
- package/dist/src/tls/tls.d.ts +67 -0
- package/dist/src/tls/tls.d.ts.map +1 -0
- package/dist/src/tls/tls.js +200 -0
- package/dist/src/tls/tls.js.map +1 -0
- package/dist/src/tls/tls.spec.d.ts +6 -0
- package/dist/src/tls/tls.spec.d.ts.map +1 -0
- package/dist/src/tls/tls.spec.js +101 -0
- package/dist/src/tls/tls.spec.js.map +1 -0
- package/dist/src/version.d.ts +9 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +10 -0
- package/dist/src/version.js.map +1 -0
- package/package.json +67 -7
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { ArrayType, BooleanType, DateTimeType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, type ValueTypeOf } from '@elaraai/east';
|
|
6
|
+
/** An empty control message. */
|
|
7
|
+
export declare const EmptyType: StructType<{}>;
|
|
8
|
+
/**
|
|
9
|
+
* Configures the user-wide listener and idle lifetime, inside rack state format 1.
|
|
10
|
+
* `tls` serves the listener over HTTPS with the hub's own certificate, which a
|
|
11
|
+
* rack pins by its SHA-256; without it the listener is plain HTTP, for a TLS
|
|
12
|
+
* terminator in front of the hub.
|
|
13
|
+
*/
|
|
14
|
+
export declare const HubConfigType: StructType<{
|
|
15
|
+
readonly listen: OptionType<StructType<{
|
|
16
|
+
readonly host: StringType;
|
|
17
|
+
readonly port: IntegerType;
|
|
18
|
+
}>>;
|
|
19
|
+
readonly allow: ArrayType<StringType>;
|
|
20
|
+
readonly idleExitMinutes: IntegerType;
|
|
21
|
+
readonly advertiseUrl: OptionType<StringType>;
|
|
22
|
+
readonly tls: BooleanType;
|
|
23
|
+
}>;
|
|
24
|
+
/** The user-wide hub configuration, derived from the control wire. */
|
|
25
|
+
export type HubConfig = ValueTypeOf<typeof HubConfigType>;
|
|
26
|
+
/** Identifies a host process without confusing a reused PID with its owner. */
|
|
27
|
+
export declare const HubOwnerType: StructType<{
|
|
28
|
+
readonly pid: IntegerType;
|
|
29
|
+
readonly pidStartTime: IntegerType;
|
|
30
|
+
readonly bootId: StringType;
|
|
31
|
+
}>;
|
|
32
|
+
/** Answers the fixed handshake; subsequent schemas require an exact protocol match. */
|
|
33
|
+
export declare const HubHelloType: StructType<{
|
|
34
|
+
readonly version: StringType;
|
|
35
|
+
readonly protocol: IntegerType;
|
|
36
|
+
readonly pid: IntegerType;
|
|
37
|
+
readonly draining: BooleanType;
|
|
38
|
+
}>;
|
|
39
|
+
/** Registers a repository-owning session. repoPath is already canonicalized by the session. */
|
|
40
|
+
export declare const OpenSessionType: StructType<{
|
|
41
|
+
readonly protocol: IntegerType;
|
|
42
|
+
readonly e3Version: StringType;
|
|
43
|
+
readonly owner: StructType<{
|
|
44
|
+
readonly pid: IntegerType;
|
|
45
|
+
readonly pidStartTime: IntegerType;
|
|
46
|
+
readonly bootId: StringType;
|
|
47
|
+
}>;
|
|
48
|
+
readonly repoPath: StringType;
|
|
49
|
+
readonly workspace: StringType;
|
|
50
|
+
readonly label: StringType;
|
|
51
|
+
readonly dataSocket: StringType;
|
|
52
|
+
readonly dataToken: StringType;
|
|
53
|
+
}>;
|
|
54
|
+
/** Returns the session's identity and stable rack-cache namespace. */
|
|
55
|
+
export declare const OpenSessionResultType: StructType<{
|
|
56
|
+
readonly sessionId: StringType;
|
|
57
|
+
readonly repoAlias: StringType;
|
|
58
|
+
}>;
|
|
59
|
+
/** Submits the current v2 task/unit event and the requested rack shape. */
|
|
60
|
+
export declare const CreateLeaseType: StructType<{
|
|
61
|
+
readonly eventJson: StringType;
|
|
62
|
+
readonly tier: StringType;
|
|
63
|
+
readonly computeSize: StringType;
|
|
64
|
+
}>;
|
|
65
|
+
/** Names a claim-time attempt, which changes on reclaim. */
|
|
66
|
+
export declare const HubAttemptType: StructType<{
|
|
67
|
+
readonly executionId: StringType;
|
|
68
|
+
readonly startedAt: DateTimeType;
|
|
69
|
+
}>;
|
|
70
|
+
/** Attaches to a lease, replaying its current attempt through the event stream. */
|
|
71
|
+
export declare const CreateLeaseResultType: StructType<{
|
|
72
|
+
readonly leaseId: StringType;
|
|
73
|
+
readonly attached: BooleanType;
|
|
74
|
+
readonly attempt: OptionType<StructType<{
|
|
75
|
+
readonly executionId: StringType;
|
|
76
|
+
readonly startedAt: DateTimeType;
|
|
77
|
+
}>>;
|
|
78
|
+
}>;
|
|
79
|
+
/** The attach-only answer: the lease attached to, or none when no identical work is queued or held. */
|
|
80
|
+
export declare const AttachLeaseResultType: OptionType<StructType<{
|
|
81
|
+
readonly leaseId: StringType;
|
|
82
|
+
readonly attached: BooleanType;
|
|
83
|
+
readonly attempt: OptionType<StructType<{
|
|
84
|
+
readonly executionId: StringType;
|
|
85
|
+
readonly startedAt: DateTimeType;
|
|
86
|
+
}>>;
|
|
87
|
+
}>>;
|
|
88
|
+
/** Reports a committed lease transition to every subscribing session. */
|
|
89
|
+
export declare const SessionEventType: StructType<{
|
|
90
|
+
readonly seq: IntegerType;
|
|
91
|
+
readonly event: VariantType<{
|
|
92
|
+
readonly claimed: StructType<{
|
|
93
|
+
readonly leaseId: StringType;
|
|
94
|
+
readonly rackId: StringType;
|
|
95
|
+
readonly rackLabel: StringType;
|
|
96
|
+
readonly attempt: StructType<{
|
|
97
|
+
readonly executionId: StringType;
|
|
98
|
+
readonly startedAt: DateTimeType;
|
|
99
|
+
}>;
|
|
100
|
+
}>;
|
|
101
|
+
readonly completed: StructType<{
|
|
102
|
+
readonly leaseId: StringType;
|
|
103
|
+
readonly attempt: OptionType<StructType<{
|
|
104
|
+
readonly executionId: StringType;
|
|
105
|
+
readonly startedAt: DateTimeType;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly resultJson: StringType;
|
|
108
|
+
readonly at: DateTimeType;
|
|
109
|
+
}>;
|
|
110
|
+
readonly lost: StructType<{
|
|
111
|
+
readonly leaseId: StringType;
|
|
112
|
+
readonly reason: StringType;
|
|
113
|
+
}>;
|
|
114
|
+
readonly cancelled: StructType<{
|
|
115
|
+
readonly leaseId: StringType;
|
|
116
|
+
}>;
|
|
117
|
+
}>;
|
|
118
|
+
}>;
|
|
119
|
+
/** Reports healthy fleet capacity and the requesting session's queue. */
|
|
120
|
+
export declare const CapacitySnapshotType: StructType<{
|
|
121
|
+
readonly racks: ArrayType<StructType<{
|
|
122
|
+
readonly rackId: StringType;
|
|
123
|
+
readonly label: StringType;
|
|
124
|
+
readonly tiers: ArrayType<StringType>;
|
|
125
|
+
readonly capacity: IntegerType;
|
|
126
|
+
readonly busy: IntegerType;
|
|
127
|
+
readonly healthy: BooleanType;
|
|
128
|
+
readonly bundledE3: OptionType<StringType>;
|
|
129
|
+
readonly pendingApproval: BooleanType;
|
|
130
|
+
}>>;
|
|
131
|
+
readonly queued: IntegerType;
|
|
132
|
+
readonly mine: StructType<{
|
|
133
|
+
readonly pending: IntegerType;
|
|
134
|
+
readonly claimed: IntegerType;
|
|
135
|
+
}>;
|
|
136
|
+
}>;
|
|
137
|
+
/** Requests events after a cursor, waiting at most 20 seconds. */
|
|
138
|
+
export declare const SessionPollType: StructType<{
|
|
139
|
+
readonly after: IntegerType;
|
|
140
|
+
readonly waitMs: IntegerType;
|
|
141
|
+
}>;
|
|
142
|
+
/** Returns ordered events and a fresh capacity snapshot. */
|
|
143
|
+
export declare const SessionPollResultType: StructType<{
|
|
144
|
+
readonly events: ArrayType<StructType<{
|
|
145
|
+
readonly seq: IntegerType;
|
|
146
|
+
readonly event: VariantType<{
|
|
147
|
+
readonly claimed: StructType<{
|
|
148
|
+
readonly leaseId: StringType;
|
|
149
|
+
readonly rackId: StringType;
|
|
150
|
+
readonly rackLabel: StringType;
|
|
151
|
+
readonly attempt: StructType<{
|
|
152
|
+
readonly executionId: StringType;
|
|
153
|
+
readonly startedAt: DateTimeType;
|
|
154
|
+
}>;
|
|
155
|
+
}>;
|
|
156
|
+
readonly completed: StructType<{
|
|
157
|
+
readonly leaseId: StringType;
|
|
158
|
+
readonly attempt: OptionType<StructType<{
|
|
159
|
+
readonly executionId: StringType;
|
|
160
|
+
readonly startedAt: DateTimeType;
|
|
161
|
+
}>>;
|
|
162
|
+
readonly resultJson: StringType;
|
|
163
|
+
readonly at: DateTimeType;
|
|
164
|
+
}>;
|
|
165
|
+
readonly lost: StructType<{
|
|
166
|
+
readonly leaseId: StringType;
|
|
167
|
+
readonly reason: StringType;
|
|
168
|
+
}>;
|
|
169
|
+
readonly cancelled: StructType<{
|
|
170
|
+
readonly leaseId: StringType;
|
|
171
|
+
}>;
|
|
172
|
+
}>;
|
|
173
|
+
}>>;
|
|
174
|
+
readonly capacity: StructType<{
|
|
175
|
+
readonly racks: ArrayType<StructType<{
|
|
176
|
+
readonly rackId: StringType;
|
|
177
|
+
readonly label: StringType;
|
|
178
|
+
readonly tiers: ArrayType<StringType>;
|
|
179
|
+
readonly capacity: IntegerType;
|
|
180
|
+
readonly busy: IntegerType;
|
|
181
|
+
readonly healthy: BooleanType;
|
|
182
|
+
readonly bundledE3: OptionType<StringType>;
|
|
183
|
+
readonly pendingApproval: BooleanType;
|
|
184
|
+
}>>;
|
|
185
|
+
readonly queued: IntegerType;
|
|
186
|
+
readonly mine: StructType<{
|
|
187
|
+
readonly pending: IntegerType;
|
|
188
|
+
readonly claimed: IntegerType;
|
|
189
|
+
}>;
|
|
190
|
+
}>;
|
|
191
|
+
}>;
|
|
192
|
+
/** Reports listener readiness without hiding a failed bind, and the certificate a rack pins when it serves TLS. */
|
|
193
|
+
export declare const RackListenerType: VariantType<{
|
|
194
|
+
readonly disabled: NullType;
|
|
195
|
+
readonly up: StructType<{
|
|
196
|
+
readonly origin: StringType;
|
|
197
|
+
readonly certificateSha256: OptionType<StringType>;
|
|
198
|
+
}>;
|
|
199
|
+
readonly down: StructType<{
|
|
200
|
+
readonly reason: StringType;
|
|
201
|
+
}>;
|
|
202
|
+
}>;
|
|
203
|
+
/** Reports the hub, attached sessions, fleet and queue. */
|
|
204
|
+
export declare const HubStatusType: StructType<{
|
|
205
|
+
readonly hello: StructType<{
|
|
206
|
+
readonly version: StringType;
|
|
207
|
+
readonly protocol: IntegerType;
|
|
208
|
+
readonly pid: IntegerType;
|
|
209
|
+
readonly draining: BooleanType;
|
|
210
|
+
}>;
|
|
211
|
+
readonly rackListener: VariantType<{
|
|
212
|
+
readonly disabled: NullType;
|
|
213
|
+
readonly up: StructType<{
|
|
214
|
+
readonly origin: StringType;
|
|
215
|
+
readonly certificateSha256: OptionType<StringType>;
|
|
216
|
+
}>;
|
|
217
|
+
readonly down: StructType<{
|
|
218
|
+
readonly reason: StringType;
|
|
219
|
+
}>;
|
|
220
|
+
}>;
|
|
221
|
+
readonly racks: ArrayType<StructType<{
|
|
222
|
+
readonly rackId: StringType;
|
|
223
|
+
readonly label: StringType;
|
|
224
|
+
readonly enrolledAt: DateTimeType;
|
|
225
|
+
readonly tiers: ArrayType<StringType>;
|
|
226
|
+
readonly capacity: IntegerType;
|
|
227
|
+
readonly lastSeenAt: DateTimeType;
|
|
228
|
+
readonly agentVersion: StringType;
|
|
229
|
+
readonly healthy: BooleanType;
|
|
230
|
+
readonly lastBootId: OptionType<StringType>;
|
|
231
|
+
readonly approvedBootId: OptionType<StringType>;
|
|
232
|
+
}>>;
|
|
233
|
+
readonly sessions: ArrayType<StructType<{
|
|
234
|
+
readonly sessionId: StringType;
|
|
235
|
+
readonly repoAlias: StringType;
|
|
236
|
+
readonly workspace: StringType;
|
|
237
|
+
readonly label: StringType;
|
|
238
|
+
readonly e3Version: StringType;
|
|
239
|
+
readonly pending: IntegerType;
|
|
240
|
+
readonly claimed: IntegerType;
|
|
241
|
+
}>>;
|
|
242
|
+
readonly capacity: StructType<{
|
|
243
|
+
readonly racks: ArrayType<StructType<{
|
|
244
|
+
readonly rackId: StringType;
|
|
245
|
+
readonly label: StringType;
|
|
246
|
+
readonly tiers: ArrayType<StringType>;
|
|
247
|
+
readonly capacity: IntegerType;
|
|
248
|
+
readonly busy: IntegerType;
|
|
249
|
+
readonly healthy: BooleanType;
|
|
250
|
+
readonly bundledE3: OptionType<StringType>;
|
|
251
|
+
readonly pendingApproval: BooleanType;
|
|
252
|
+
}>>;
|
|
253
|
+
readonly queued: IntegerType;
|
|
254
|
+
readonly mine: StructType<{
|
|
255
|
+
readonly pending: IntegerType;
|
|
256
|
+
readonly claimed: IntegerType;
|
|
257
|
+
}>;
|
|
258
|
+
}>;
|
|
259
|
+
}>;
|
|
260
|
+
/** Requests a short-lived enrollment credential. */
|
|
261
|
+
export declare const HubEnrollType: StructType<{
|
|
262
|
+
readonly label: OptionType<StringType>;
|
|
263
|
+
readonly ttlMinutes: OptionType<IntegerType>;
|
|
264
|
+
}>;
|
|
265
|
+
/** Returns the one-time enrollment secret, the exact control-plane origin and, when the hub serves TLS, the certificate fingerprint a rack pins. */
|
|
266
|
+
export declare const HubEnrollResultType: StructType<{
|
|
267
|
+
readonly enrollmentToken: StringType;
|
|
268
|
+
readonly apiUrl: StringType;
|
|
269
|
+
readonly expiresAt: DateTimeType;
|
|
270
|
+
readonly e3Version: StringType;
|
|
271
|
+
readonly certificateSha256: OptionType<StringType>;
|
|
272
|
+
}>;
|
|
273
|
+
/** Approves exactly the boot the operator saw. */
|
|
274
|
+
export declare const ApproveRackType: StructType<{
|
|
275
|
+
readonly bootId: StringType;
|
|
276
|
+
}>;
|
|
277
|
+
/** Reports whether a registry entry was removed. */
|
|
278
|
+
export declare const RemoveRackResultType: StructType<{
|
|
279
|
+
readonly removed: BooleanType;
|
|
280
|
+
}>;
|
|
281
|
+
/** Reports the lease state after a subscriber leaves. */
|
|
282
|
+
export declare const CancelLeaseResultType: StructType<{
|
|
283
|
+
readonly status: StringType;
|
|
284
|
+
}>;
|
|
285
|
+
/** The session's events and fleet snapshot, decoded from the control wire. */
|
|
286
|
+
export type SessionEvent = ValueTypeOf<typeof SessionEventType>;
|
|
287
|
+
/** The live capacity snapshot, decoded from the control wire. */
|
|
288
|
+
export type CapacitySnapshot = ValueTypeOf<typeof CapacitySnapshotType>;
|
|
289
|
+
/** The session registration, decoded from the control wire. */
|
|
290
|
+
export type OpenSession = ValueTypeOf<typeof OpenSessionType>;
|
|
291
|
+
/** A local lease submission, decoded from the control wire. */
|
|
292
|
+
export type CreateLease = ValueTypeOf<typeof CreateLeaseType>;
|
|
293
|
+
/** A process identity belonging to the hub. */
|
|
294
|
+
export type HubOwner = ValueTypeOf<typeof HubOwnerType>;
|
|
295
|
+
//# sourceMappingURL=control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/protocol/control.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAG/J,gCAAgC;AAChC,eAAO,MAAM,SAAS,gBAAiB,C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6J,CAAC;AAC9L,kDAAkD;AAClD,eAAO,MAAM,eAAe;;EAAqC,CAAC;AAClE,oDAAoD;AACpD,eAAO,MAAM,oBAAoB;;EAAuC,CAAC;AACzE,yDAAyD;AACzD,eAAO,MAAM,qBAAqB;;EAAqC,CAAC;AACxE,8EAA8E;AAC9E,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,iEAAiE;AACjE,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,+CAA+C;AAC/C,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { ArrayType, BooleanType, DateTimeType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from '@elaraai/east';
|
|
6
|
+
import { RackRegistrationType } from './registration.js';
|
|
7
|
+
/** An empty control message. */
|
|
8
|
+
export const EmptyType = StructType({});
|
|
9
|
+
/**
|
|
10
|
+
* Configures the user-wide listener and idle lifetime, inside rack state format 1.
|
|
11
|
+
* `tls` serves the listener over HTTPS with the hub's own certificate, which a
|
|
12
|
+
* rack pins by its SHA-256; without it the listener is plain HTTP, for a TLS
|
|
13
|
+
* terminator in front of the hub.
|
|
14
|
+
*/
|
|
15
|
+
export const HubConfigType = StructType({
|
|
16
|
+
listen: OptionType(StructType({ host: StringType, port: IntegerType })), allow: ArrayType(StringType),
|
|
17
|
+
idleExitMinutes: IntegerType, advertiseUrl: OptionType(StringType), tls: BooleanType,
|
|
18
|
+
});
|
|
19
|
+
/** Identifies a host process without confusing a reused PID with its owner. */
|
|
20
|
+
export const HubOwnerType = StructType({ pid: IntegerType, pidStartTime: IntegerType, bootId: StringType });
|
|
21
|
+
/** Answers the fixed handshake; subsequent schemas require an exact protocol match. */
|
|
22
|
+
export const HubHelloType = StructType({ version: StringType, protocol: IntegerType, pid: IntegerType, draining: BooleanType });
|
|
23
|
+
/** Registers a repository-owning session. repoPath is already canonicalized by the session. */
|
|
24
|
+
export const OpenSessionType = StructType({
|
|
25
|
+
protocol: IntegerType, e3Version: StringType, owner: HubOwnerType,
|
|
26
|
+
repoPath: StringType, workspace: StringType, label: StringType, dataSocket: StringType, dataToken: StringType,
|
|
27
|
+
});
|
|
28
|
+
/** Returns the session's identity and stable rack-cache namespace. */
|
|
29
|
+
export const OpenSessionResultType = StructType({ sessionId: StringType, repoAlias: StringType });
|
|
30
|
+
/** Submits the current v2 task/unit event and the requested rack shape. */
|
|
31
|
+
export const CreateLeaseType = StructType({ eventJson: StringType, tier: StringType, computeSize: StringType });
|
|
32
|
+
/** Names a claim-time attempt, which changes on reclaim. */
|
|
33
|
+
export const HubAttemptType = StructType({ executionId: StringType, startedAt: DateTimeType });
|
|
34
|
+
/** Attaches to a lease, replaying its current attempt through the event stream. */
|
|
35
|
+
export const CreateLeaseResultType = StructType({ leaseId: StringType, attached: BooleanType, attempt: OptionType(HubAttemptType) });
|
|
36
|
+
/** The attach-only answer: the lease attached to, or none when no identical work is queued or held. */
|
|
37
|
+
export const AttachLeaseResultType = OptionType(CreateLeaseResultType);
|
|
38
|
+
/** Reports a committed lease transition to every subscribing session. */
|
|
39
|
+
export const SessionEventType = StructType({ seq: IntegerType, event: VariantType({
|
|
40
|
+
claimed: StructType({ leaseId: StringType, rackId: StringType, rackLabel: StringType, attempt: HubAttemptType }),
|
|
41
|
+
completed: StructType({ leaseId: StringType, attempt: OptionType(HubAttemptType), resultJson: StringType, at: DateTimeType }),
|
|
42
|
+
lost: StructType({ leaseId: StringType, reason: StringType }),
|
|
43
|
+
cancelled: StructType({ leaseId: StringType }),
|
|
44
|
+
}) });
|
|
45
|
+
/** Reports healthy fleet capacity and the requesting session's queue. */
|
|
46
|
+
export const CapacitySnapshotType = StructType({
|
|
47
|
+
racks: ArrayType(StructType({ rackId: StringType, label: StringType, tiers: ArrayType(StringType), capacity: IntegerType,
|
|
48
|
+
busy: IntegerType, healthy: BooleanType, bundledE3: OptionType(StringType), pendingApproval: BooleanType })),
|
|
49
|
+
queued: IntegerType, mine: StructType({ pending: IntegerType, claimed: IntegerType }),
|
|
50
|
+
});
|
|
51
|
+
/** Requests events after a cursor, waiting at most 20 seconds. */
|
|
52
|
+
export const SessionPollType = StructType({ after: IntegerType, waitMs: IntegerType });
|
|
53
|
+
/** Returns ordered events and a fresh capacity snapshot. */
|
|
54
|
+
export const SessionPollResultType = StructType({ events: ArrayType(SessionEventType), capacity: CapacitySnapshotType });
|
|
55
|
+
/** Reports listener readiness without hiding a failed bind, and the certificate a rack pins when it serves TLS. */
|
|
56
|
+
export const RackListenerType = VariantType({ disabled: NullType, up: StructType({ origin: StringType, certificateSha256: OptionType(StringType) }), down: StructType({ reason: StringType }) });
|
|
57
|
+
/** Reports the hub, attached sessions, fleet and queue. */
|
|
58
|
+
export const HubStatusType = StructType({
|
|
59
|
+
hello: HubHelloType, rackListener: RackListenerType, racks: ArrayType(RackRegistrationType),
|
|
60
|
+
sessions: ArrayType(StructType({ sessionId: StringType, repoAlias: StringType, workspace: StringType, label: StringType, e3Version: StringType,
|
|
61
|
+
pending: IntegerType, claimed: IntegerType })),
|
|
62
|
+
capacity: CapacitySnapshotType,
|
|
63
|
+
});
|
|
64
|
+
/** Requests a short-lived enrollment credential. */
|
|
65
|
+
export const HubEnrollType = StructType({ label: OptionType(StringType), ttlMinutes: OptionType(IntegerType) });
|
|
66
|
+
/** Returns the one-time enrollment secret, the exact control-plane origin and, when the hub serves TLS, the certificate fingerprint a rack pins. */
|
|
67
|
+
export const HubEnrollResultType = StructType({ enrollmentToken: StringType, apiUrl: StringType, expiresAt: DateTimeType, e3Version: StringType, certificateSha256: OptionType(StringType) });
|
|
68
|
+
/** Approves exactly the boot the operator saw. */
|
|
69
|
+
export const ApproveRackType = StructType({ bootId: StringType });
|
|
70
|
+
/** Reports whether a registry entry was removed. */
|
|
71
|
+
export const RemoveRackResultType = StructType({ removed: BooleanType });
|
|
72
|
+
/** Reports the lease state after a subscriber leaves. */
|
|
73
|
+
export const CancelLeaseResultType = StructType({ status: StringType });
|
|
74
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../src/protocol/control.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAoB,MAAM,eAAe,CAAC;AAC/J,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,gCAAgC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;AACxC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC;IACrG,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,WAAW;CACrF,CAAC,CAAC;AAGH,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE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AAG,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AAClE,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;AACzE,yDAAyD;AACzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
export * from './rack-wire.js';
|
|
6
|
+
export * from './registration.js';
|
|
7
|
+
export * from './task-envelope.js';
|
|
8
|
+
export * from './control.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
export * from './rack-wire.js';
|
|
6
|
+
export * from './registration.js';
|
|
7
|
+
export * from './task-envelope.js';
|
|
8
|
+
export * from './control.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|