t3code-cli 0.13.0 → 0.14.1
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 +87 -1
- package/dist/application.d.ts +2 -0
- package/dist/application.js +1 -1
- package/dist/auth.d.ts +50 -0
- package/dist/auth.js +1 -1
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +355 -606
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +1 -1
- package/dist/client-runtime/authorization.d.ts +2 -0
- package/dist/client-runtime/authorization.js +2 -0
- package/dist/client-runtime/connection.d.ts +2 -0
- package/dist/client-runtime/connection.js +2 -0
- package/dist/client-runtime/environment.d.ts +57 -0
- package/dist/client-runtime/environment.js +2 -0
- package/dist/client-runtime/errors.d.ts +28 -0
- package/dist/client-runtime/errors.js +35 -0
- package/dist/client-runtime/operations/projects.d.ts +2 -0
- package/dist/client-runtime/operations/projects.js +2 -0
- package/dist/client-runtime/operations.d.ts +2 -0
- package/dist/client-runtime/operations.js +2 -0
- package/dist/client-runtime/platform.d.ts +26 -0
- package/dist/client-runtime/platform.js +74 -0
- package/dist/client-runtime/relay.d.ts +121 -0
- package/dist/client-runtime/relay.js +245 -0
- package/dist/client-runtime/rpc.d.ts +2 -0
- package/dist/client-runtime/rpc.js +2 -0
- package/dist/client-runtime/state/assets.d.ts +40 -0
- package/dist/client-runtime/state/assets.js +53 -0
- package/dist/client-runtime/state/auth.d.ts +98 -0
- package/dist/client-runtime/state/auth.js +48 -0
- package/dist/client-runtime/state/connections.d.ts +2 -0
- package/dist/client-runtime/state/connections.js +52 -0
- package/dist/client-runtime/state/entities.d.ts +33 -0
- package/dist/client-runtime/state/entities.js +2 -0
- package/dist/client-runtime/state/filesystem.d.ts +42 -0
- package/dist/client-runtime/state/filesystem.js +48 -0
- package/dist/client-runtime/state/git.d.ts +43 -0
- package/dist/client-runtime/state/git.js +18 -0
- package/dist/client-runtime/state/models.d.ts +2 -0
- package/dist/client-runtime/state/models.js +2 -0
- package/dist/client-runtime/state/orchestration.d.ts +128 -0
- package/dist/client-runtime/state/orchestration.js +20 -0
- package/dist/client-runtime/state/presentation.d.ts +277 -0
- package/dist/client-runtime/state/presentation.js +34 -0
- package/dist/client-runtime/state/preview.d.ts +447 -0
- package/dist/client-runtime/state/preview.js +103 -0
- package/dist/client-runtime/state/project-grouping.d.ts +26 -0
- package/dist/client-runtime/state/project-grouping.js +73 -0
- package/dist/client-runtime/state/projects.d.ts +192 -0
- package/dist/client-runtime/state/projects.js +2 -0
- package/dist/client-runtime/state/relay.d.ts +10 -0
- package/dist/client-runtime/state/relay.js +19 -0
- package/dist/client-runtime/state/review.d.ts +28 -0
- package/dist/client-runtime/state/review.js +11 -0
- package/dist/client-runtime/state/runtime.d.ts +2 -0
- package/dist/client-runtime/state/runtime.js +2 -0
- package/dist/client-runtime/state/server.d.ts +1495 -0
- package/dist/client-runtime/state/server.js +207 -0
- package/dist/client-runtime/state/session.d.ts +532 -0
- package/dist/client-runtime/state/session.js +21 -0
- package/dist/client-runtime/state/shell.d.ts +529 -0
- package/dist/client-runtime/state/shell.js +2 -0
- package/dist/client-runtime/state/source-control.d.ts +92 -0
- package/dist/client-runtime/state/source-control.js +36 -0
- package/dist/client-runtime/state/terminal.d.ts +237 -0
- package/dist/client-runtime/state/terminal.js +173 -0
- package/dist/client-runtime/state/thread-settled.d.ts +104 -0
- package/dist/client-runtime/state/thread-settled.js +157 -0
- package/dist/client-runtime/state/thread-sort.d.ts +23 -0
- package/dist/client-runtime/state/thread-sort.js +47 -0
- package/dist/client-runtime/state/threads.d.ts +538 -0
- package/dist/client-runtime/state/threads.js +934 -0
- package/dist/client-runtime/state/vcs.d.ts +442 -0
- package/dist/client-runtime/state/vcs.js +756 -0
- package/dist/config.d.ts +84 -0
- package/dist/config.js +1 -1
- package/dist/connection.d.ts +7 -0
- package/dist/connection.js +1 -1
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/node.d.ts +6 -0
- package/dist/node.js +1 -1
- package/dist/orchestration.d.ts +1420 -0
- package/dist/orchestration.js +1 -1
- package/dist/preview.d.ts +2 -0
- package/dist/preview.js +2 -0
- package/dist/rpc.d.ts +6043 -0
- package/dist/rpc.js +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.js +2 -2
- package/dist/shared/DrainableWorker.d.ts +28 -0
- package/dist/shared/DrainableWorker.js +24 -0
- package/dist/shared/KeyedCoalescingWorker.d.ts +13 -0
- package/dist/shared/KeyedCoalescingWorker.js +89 -0
- package/dist/shared/Net.d.ts +43 -0
- package/dist/shared/Net.js +126 -0
- package/dist/shared/String.d.ts +4 -0
- package/dist/shared/String.js +8 -0
- package/dist/shared/Struct.d.ts +5 -0
- package/dist/shared/Struct.js +2 -0
- package/dist/shared/advertisedEndpoint.d.ts +2 -0
- package/dist/shared/advertisedEndpoint.js +2 -0
- package/dist/shared/agentAwareness.d.ts +27 -0
- package/dist/shared/agentAwareness.js +54 -0
- package/dist/shared/backgroundActivitySettings.d.ts +23 -0
- package/dist/shared/backgroundActivitySettings.js +2 -0
- package/dist/shared/chatList.d.ts +12 -0
- package/dist/shared/chatList.js +14 -0
- package/dist/shared/cliArgs.d.ts +33 -0
- package/dist/shared/cliArgs.js +103 -0
- package/dist/shared/composerInlineTokens.d.ts +20 -0
- package/dist/shared/composerInlineTokens.js +72 -0
- package/dist/shared/composerTrigger.d.ts +26 -0
- package/dist/shared/composerTrigger.js +97 -0
- package/dist/shared/connectAuth.d.ts +58 -0
- package/dist/shared/connectAuth.js +89 -0
- package/dist/shared/devHome.d.ts +21 -0
- package/dist/shared/devHome.js +65 -0
- package/dist/shared/devProxy.d.ts +15 -0
- package/dist/shared/devProxy.js +22 -0
- package/dist/shared/dpop.d.ts +32 -0
- package/dist/shared/dpop.js +2724 -0
- package/dist/shared/dpopCommon.d.ts +2 -0
- package/dist/shared/dpopCommon.js +2 -0
- package/dist/shared/filePreview.d.ts +8 -0
- package/dist/shared/filePreview.js +31 -0
- package/dist/shared/git.d.ts +41 -0
- package/dist/shared/git.js +2 -0
- package/dist/shared/hostProcess.d.ts +13 -0
- package/dist/shared/hostProcess.js +2 -0
- package/dist/shared/httpObservability.d.ts +5 -0
- package/dist/shared/httpObservability.js +2 -0
- package/dist/shared/httpReadiness.d.ts +38 -0
- package/dist/shared/httpReadiness.js +110 -0
- package/dist/shared/keybindings.d.ts +35 -0
- package/dist/shared/keybindings.js +330 -0
- package/dist/shared/logging.d.ts +39 -0
- package/dist/shared/logging.js +2 -0
- package/dist/shared/model.d.ts +44 -0
- package/dist/shared/model.js +2 -0
- package/dist/shared/oauthScope.d.ts +23 -0
- package/dist/shared/oauthScope.js +2 -0
- package/dist/shared/observability.d.ts +105 -0
- package/dist/shared/observability.js +346 -0
- package/dist/shared/orchestrationTiming.d.ts +16 -0
- package/dist/shared/orchestrationTiming.js +32 -0
- package/dist/shared/path.d.ts +2 -0
- package/dist/shared/path.js +2 -0
- package/dist/shared/preview.d.ts +35 -0
- package/dist/shared/preview.js +103 -0
- package/dist/shared/previewViewport.d.ts +16 -0
- package/dist/shared/previewViewport.js +159 -0
- package/dist/shared/projectFavicon.d.ts +5 -0
- package/dist/shared/projectFavicon.js +13 -0
- package/dist/shared/projectScripts.d.ts +19 -0
- package/dist/shared/projectScripts.js +18 -0
- package/dist/shared/qrCode.d.ts +87 -0
- package/dist/shared/qrCode.js +870 -0
- package/dist/shared/relayAuth.d.ts +27 -0
- package/dist/shared/relayAuth.js +83 -0
- package/dist/shared/relayClient.d.ts +58 -0
- package/dist/shared/relayClient.js +245 -0
- package/dist/shared/relayJwt.d.ts +39 -0
- package/dist/shared/relayJwt.js +2 -0
- package/dist/shared/relaySigning.d.ts +4 -0
- package/dist/shared/relaySigning.js +2 -0
- package/dist/shared/relayTracing.d.ts +25 -0
- package/dist/shared/relayTracing.js +2 -0
- package/dist/shared/relayUrl.d.ts +5 -0
- package/dist/shared/relayUrl.js +2 -0
- package/dist/shared/remote.d.ts +57 -0
- package/dist/shared/remote.js +2 -0
- package/dist/shared/schemaJson.d.ts +35 -0
- package/dist/shared/schemaJson.js +2 -0
- package/dist/shared/schemaYaml.d.ts +86 -0
- package/dist/shared/schemaYaml.js +99 -0
- package/dist/shared/searchRanking.d.ts +30 -0
- package/dist/shared/searchRanking.js +99 -0
- package/dist/shared/semver.d.ts +23 -0
- package/dist/shared/semver.js +124 -0
- package/dist/shared/serverSettings.d.ts +19 -0
- package/dist/shared/serverSettings.js +103 -0
- package/dist/shared/shell.d.ts +51 -0
- package/dist/shared/shell.js +408 -0
- package/dist/shared/sourceControl.d.ts +26 -0
- package/dist/shared/sourceControl.js +2 -0
- package/dist/shared/t3ProjectFile.d.ts +27 -0
- package/dist/shared/t3ProjectFile.js +25 -0
- package/dist/shared/terminalLabels.d.ts +16 -0
- package/dist/shared/terminalLabels.js +28 -0
- package/dist/shared/toolActivity.d.ts +16 -0
- package/dist/shared/toolActivity.js +159 -0
- package/dist/shared.d.ts +43036 -0
- package/dist/shared.js +25428 -12277
- package/dist/t3tools.d.ts +2 -0
- package/dist/t3tools.js +1 -1
- package/package.json +39 -21
- package/src/auth/index.ts +2 -0
- package/src/auth/pairing.ts +8 -5
- package/src/auth/service.ts +2 -1
- package/src/auth/transport.ts +4 -0
- package/src/auth/type.ts +6 -0
- package/src/bin.ts +10 -7
- package/src/cli/auth.ts +7 -1
- package/src/contracts/index.ts +8 -0
- package/src/orchestration/layer.ts +36 -0
- package/src/orchestration/service.ts +5 -0
- package/src/preview/index.ts +11 -0
- package/src/preview/service.ts +52 -0
- package/src/rpc/error.ts +2 -0
- package/src/rpc/layer.ts +5 -4
- package/src/rpc/operation.ts +5 -4
- package/src/rpc/ws-group.ts +6 -0
- package/src/runtime/index.ts +1 -0
- package/src/runtime/layer.ts +5 -0
- package/src/sql/node-sqlite-client.ts +3 -0
- package/dist/src/application/actions.d.ts +0 -25
- package/dist/src/application/error.d.ts +0 -3
- package/dist/src/application/index.d.ts +0 -4
- package/dist/src/application/layer.d.ts +0 -117
- package/dist/src/application/model-selection.d.ts +0 -34
- package/dist/src/application/models.d.ts +0 -8
- package/dist/src/application/project-commands.d.ts +0 -44
- package/dist/src/application/projects.d.ts +0 -23
- package/dist/src/application/service.d.ts +0 -243
- package/dist/src/application/shell-sequence.d.ts +0 -96
- package/dist/src/application/terminals.d.ts +0 -66
- package/dist/src/application/thread-commands.d.ts +0 -157
- package/dist/src/application/thread-update.d.ts +0 -8
- package/dist/src/application/thread-wait.d.ts +0 -106
- package/dist/src/application/threads.d.ts +0 -660
- package/dist/src/auth/error.d.ts +0 -50
- package/dist/src/auth/index.d.ts +0 -10
- package/dist/src/auth/layer.d.ts +0 -53
- package/dist/src/auth/local-base-dir.d.ts +0 -8
- package/dist/src/auth/local-origin.d.ts +0 -18
- package/dist/src/auth/local-token.d.ts +0 -26
- package/dist/src/auth/local.d.ts +0 -24
- package/dist/src/auth/pairing.d.ts +0 -22
- package/dist/src/auth/remote-error.d.ts +0 -3
- package/dist/src/auth/schema.d.ts +0 -58
- package/dist/src/auth/service.d.ts +0 -27
- package/dist/src/auth/transport.d.ts +0 -22
- package/dist/src/auth/type.d.ts +0 -83
- package/dist/src/cli/env/flag.d.ts +0 -2
- package/dist/src/cli/env/index.d.ts +0 -2
- package/dist/src/cli/env/selection-layer.d.ts +0 -3
- package/dist/src/cli/flags.d.ts +0 -20
- package/dist/src/cli/format/index.d.ts +0 -1
- package/dist/src/cli/format/output.d.ts +0 -12
- package/dist/src/cli/index.d.ts +0 -5
- package/dist/src/cli/runtime/index.d.ts +0 -1
- package/dist/src/cli/runtime/service.d.ts +0 -16
- package/dist/src/cli/scope/index.d.ts +0 -1
- package/dist/src/cli/scope/resolve.d.ts +0 -20
- package/dist/src/cli-path/layer.d.ts +0 -3
- package/dist/src/cli-path/service.d.ts +0 -8
- package/dist/src/config/config.d.ts +0 -49
- package/dist/src/config/credential/cipher-node.d.ts +0 -3
- package/dist/src/config/credential/cipher-web.d.ts +0 -3
- package/dist/src/config/credential/cipher.d.ts +0 -29
- package/dist/src/config/credential/env.d.ts +0 -3
- package/dist/src/config/credential/error.d.ts +0 -8
- package/dist/src/config/credential/index.d.ts +0 -6
- package/dist/src/config/credential/service.d.ts +0 -34
- package/dist/src/config/env/env.d.ts +0 -55
- package/dist/src/config/env/index.d.ts +0 -2
- package/dist/src/config/env/layout.d.ts +0 -11
- package/dist/src/config/environment-name/index.d.ts +0 -1
- package/dist/src/config/environment-name/name.d.ts +0 -10
- package/dist/src/config/error.d.ts +0 -11
- package/dist/src/config/index.d.ts +0 -10
- package/dist/src/config/keystore/error.d.ts +0 -8
- package/dist/src/config/keystore/file.d.ts +0 -9
- package/dist/src/config/keystore/index.d.ts +0 -4
- package/dist/src/config/keystore/keyring-node.d.ts +0 -4
- package/dist/src/config/keystore/service.d.ts +0 -33
- package/dist/src/config/paths/index.d.ts +0 -1
- package/dist/src/config/paths/paths.d.ts +0 -6
- package/dist/src/config/persist/file-mode.d.ts +0 -4
- package/dist/src/config/persist/migration.d.ts +0 -68
- package/dist/src/config/persist/persist.d.ts +0 -40
- package/dist/src/config/persist/schema.d.ts +0 -68
- package/dist/src/config/resolve/resolve.d.ts +0 -40
- package/dist/src/config/selection/index.d.ts +0 -1
- package/dist/src/config/selection/resolve.d.ts +0 -4
- package/dist/src/config/selection/service.d.ts +0 -10
- package/dist/src/config/types.d.ts +0 -36
- package/dist/src/config/url/error.d.ts +0 -10
- package/dist/src/config/url/index.d.ts +0 -2
- package/dist/src/config/url/url.d.ts +0 -6
- package/dist/src/connection/error.d.ts +0 -10
- package/dist/src/connection/index.d.ts +0 -4
- package/dist/src/connection/layer.d.ts +0 -3
- package/dist/src/connection/prepared.d.ts +0 -14
- package/dist/src/connection/service.d.ts +0 -13
- package/dist/src/connection/type.d.ts +0 -10
- package/dist/src/contracts/index.d.ts +0 -1
- package/dist/src/domain/error.d.ts +0 -57
- package/dist/src/domain/helpers.d.ts +0 -179
- package/dist/src/domain/model-config.d.ts +0 -330
- package/dist/src/domain/thread-activities.d.ts +0 -14
- package/dist/src/domain/thread-lifecycle.d.ts +0 -120
- package/dist/src/index.d.ts +0 -3
- package/dist/src/node/connection.d.ts +0 -2
- package/dist/src/node/index.d.ts +0 -1
- package/dist/src/orchestration/index.d.ts +0 -2
- package/dist/src/orchestration/layer.d.ts +0 -1419
- package/dist/src/orchestration/service.d.ts +0 -28
- package/dist/src/rpc/error.d.ts +0 -16
- package/dist/src/rpc/index.d.ts +0 -6
- package/dist/src/rpc/layer.d.ts +0 -5862
- package/dist/src/rpc/operation.d.ts +0 -24
- package/dist/src/rpc/service.d.ts +0 -15
- package/dist/src/rpc/session.d.ts +0 -22
- package/dist/src/rpc/ws-group.d.ts +0 -1984
- package/dist/src/runtime/index.d.ts +0 -1
- package/dist/src/runtime/layer.d.ts +0 -15
- package/dist/src/sql/node-sqlite-client.d.ts +0 -10
- package/dist/src/sql/service.d.ts +0 -17
- package/dist/src/t3tools/index.d.ts +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
declare const CredentialCipherError_base: Schema.Class<CredentialCipherError, Schema.TaggedStruct<"CredentialCipherError", {
|
|
3
|
-
readonly operation: Schema.Literals<readonly ["encrypt", "decrypt"]>;
|
|
4
|
-
readonly cause: Schema.Defect;
|
|
5
|
-
}>, import("effect/Cause").YieldableError>;
|
|
6
|
-
export declare class CredentialCipherError extends CredentialCipherError_base {
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * as Service from "./service.ts";
|
|
2
|
-
export * as Cipher from "./cipher.ts";
|
|
3
|
-
export * as CipherNode from "./cipher-node.ts";
|
|
4
|
-
export * as CipherWeb from "./cipher-web.ts";
|
|
5
|
-
export { credentialTokenFromEnv } from "./env.ts";
|
|
6
|
-
export { CredentialCipherError } from "./error.ts";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as Context from "effect/Context";
|
|
2
|
-
import * as Crypto from "effect/Crypto";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as FileSystem from "effect/FileSystem";
|
|
5
|
-
import * as Layer from "effect/Layer";
|
|
6
|
-
import * as Path from "effect/Path";
|
|
7
|
-
import { T3CredentialCipher } from "./cipher.ts";
|
|
8
|
-
import type { EncryptedToken } from "../persist/schema.ts";
|
|
9
|
-
import { ConfigError } from "../error.ts";
|
|
10
|
-
import { T3MasterKeyKeystoreFactory } from "../keystore/service.ts";
|
|
11
|
-
export type CredentialEncryptInput = {
|
|
12
|
-
readonly environmentName: string;
|
|
13
|
-
readonly url: string;
|
|
14
|
-
readonly local: boolean;
|
|
15
|
-
readonly token: string;
|
|
16
|
-
};
|
|
17
|
-
export type CredentialDecryptInput = {
|
|
18
|
-
readonly environmentName: string;
|
|
19
|
-
readonly url: string;
|
|
20
|
-
readonly local: boolean;
|
|
21
|
-
readonly token: EncryptedToken;
|
|
22
|
-
};
|
|
23
|
-
declare const T3CredentialCrypto_base: Context.ServiceClass<T3CredentialCrypto, "t3cli/T3CredentialCrypto", {
|
|
24
|
-
readonly encrypt: (input: CredentialEncryptInput) => Effect.Effect<EncryptedToken, ConfigError>;
|
|
25
|
-
readonly decrypt: (input: CredentialDecryptInput) => Effect.Effect<string, ConfigError>;
|
|
26
|
-
}>;
|
|
27
|
-
export declare class T3CredentialCrypto extends T3CredentialCrypto_base {
|
|
28
|
-
}
|
|
29
|
-
export declare const make: () => Effect.Effect<{
|
|
30
|
-
encrypt: (input: CredentialEncryptInput) => Effect.Effect<EncryptedToken, ConfigError>;
|
|
31
|
-
decrypt: (input: CredentialDecryptInput) => Effect.Effect<string, ConfigError>;
|
|
32
|
-
}, ConfigError, Crypto.Crypto | FileSystem.FileSystem | Path.Path | T3CredentialCipher | T3MasterKeyKeystoreFactory>;
|
|
33
|
-
export declare const layer: Layer.Layer<T3CredentialCrypto, ConfigError, Crypto.Crypto | FileSystem.FileSystem | Path.Path | T3CredentialCipher | T3MasterKeyKeystoreFactory>;
|
|
34
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as Config from "effect/Config";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as Option from "effect/Option";
|
|
4
|
-
import type * as Redacted from "effect/Redacted";
|
|
5
|
-
export type T3CliEnvScope = {
|
|
6
|
-
readonly t3codeProjectRoot?: string | undefined;
|
|
7
|
-
readonly t3codeProjectId?: string | undefined;
|
|
8
|
-
readonly t3codeWorktreePath?: string | undefined;
|
|
9
|
-
readonly t3codeThreadId?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export type T3CliEnvShape = {
|
|
12
|
-
readonly home: Option.Option<string>;
|
|
13
|
-
readonly xdgConfigHome: Option.Option<string>;
|
|
14
|
-
readonly t3cliEnv: Option.Option<string>;
|
|
15
|
-
readonly t3codeUrl: Option.Option<string>;
|
|
16
|
-
readonly t3codeToken: Option.Option<Redacted.Redacted>;
|
|
17
|
-
readonly t3codeHome: Option.Option<string>;
|
|
18
|
-
readonly term: Option.Option<string>;
|
|
19
|
-
readonly ci: boolean;
|
|
20
|
-
readonly codexCi: boolean;
|
|
21
|
-
readonly codexThreadId: boolean;
|
|
22
|
-
readonly t3cliAgent: boolean;
|
|
23
|
-
readonly scope: T3CliEnvScope;
|
|
24
|
-
};
|
|
25
|
-
export declare const T3CliEnvConfig: Config.Config<{
|
|
26
|
-
home: Option.Option<string>;
|
|
27
|
-
xdgConfigHome: Option.Option<string>;
|
|
28
|
-
t3cliEnv: Option.Option<string>;
|
|
29
|
-
t3codeUrl: Option.Option<string>;
|
|
30
|
-
t3codeToken: Option.Option<Redacted.Redacted<string>>;
|
|
31
|
-
t3codeHome: Option.Option<string>;
|
|
32
|
-
t3codeProjectRoot: Option.Option<string>;
|
|
33
|
-
t3codeProjectId: Option.Option<string>;
|
|
34
|
-
t3codeWorktreePath: Option.Option<string>;
|
|
35
|
-
t3codeThreadId: Option.Option<string>;
|
|
36
|
-
term: Option.Option<string>;
|
|
37
|
-
ci: boolean;
|
|
38
|
-
codexCi: boolean;
|
|
39
|
-
codexThreadId: boolean;
|
|
40
|
-
t3cliAgent: boolean;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const loadT3CliEnv: Effect.Effect<{
|
|
43
|
-
home: Option.Option<string>;
|
|
44
|
-
xdgConfigHome: Option.Option<string>;
|
|
45
|
-
t3cliEnv: Option.Option<string>;
|
|
46
|
-
t3codeUrl: Option.Option<string>;
|
|
47
|
-
t3codeToken: Option.Option<Redacted.Redacted<string>>;
|
|
48
|
-
t3codeHome: Option.Option<string>;
|
|
49
|
-
term: Option.Option<string>;
|
|
50
|
-
ci: boolean;
|
|
51
|
-
codexCi: boolean;
|
|
52
|
-
codexThreadId: boolean;
|
|
53
|
-
t3cliAgent: boolean;
|
|
54
|
-
scope: T3CliEnvScope;
|
|
55
|
-
}, Config.ConfigError, never>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as Path from "effect/Path";
|
|
3
|
-
export type T3Layout = {
|
|
4
|
-
readonly cwd: string;
|
|
5
|
-
readonly homeDir: string;
|
|
6
|
-
readonly t3codeHome?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare const resolveT3BaseDir: (input: {
|
|
9
|
-
readonly layout: T3Layout;
|
|
10
|
-
readonly baseDir?: string | undefined;
|
|
11
|
-
}) => Effect.Effect<string, never, Path.Path>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { defaultEnvironmentNameForLocal, defaultEnvironmentNameFromUrl, migrateV1EnvironmentName, slugifyEnvironmentName, validateEnvironmentName, } from "./name.ts";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { ConfigError } from "../error.ts";
|
|
3
|
-
export declare function slugifyEnvironmentName(value: string): string;
|
|
4
|
-
export declare function validateEnvironmentName(name: string): Effect.Effect<void, never, never> | Effect.Effect<never, ConfigError, never>;
|
|
5
|
-
export declare function defaultEnvironmentNameFromUrl(url: string): Effect.Effect<string, ConfigError, never>;
|
|
6
|
-
export declare function defaultEnvironmentNameForLocal(): "local";
|
|
7
|
-
export declare function migrateV1EnvironmentName(input: {
|
|
8
|
-
readonly url?: string;
|
|
9
|
-
readonly local?: boolean;
|
|
10
|
-
}): Effect.Effect<string, ConfigError, never>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { PlatformError } from "effect/PlatformError";
|
|
3
|
-
declare const ConfigError_base: Schema.Class<ConfigError, Schema.TaggedStruct<"ConfigError", {
|
|
4
|
-
readonly message: Schema.String;
|
|
5
|
-
readonly cause: Schema.optionalKey<Schema.Union<readonly [Schema.instanceOf<PlatformError, unknown>, Schema.instanceOf<Schema.SchemaError, unknown>, Schema.Defect]>>;
|
|
6
|
-
}>, import("effect/Cause").YieldableError>;
|
|
7
|
-
export declare class ConfigError extends ConfigError_base {
|
|
8
|
-
}
|
|
9
|
-
export type ConfigServiceError = ConfigError;
|
|
10
|
-
export declare function isPlatformNotFoundError(error: PlatformError): boolean;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * as Config from "./config.ts";
|
|
2
|
-
export type { EncryptedConfig, EncryptedToken, EnvironmentSummary, ResolvedConfig, UpsertEnvironmentInput, } from "./types.ts";
|
|
3
|
-
export { ConfigError, type ConfigServiceError } from "./error.ts";
|
|
4
|
-
export * as Credential from "./credential/index.ts";
|
|
5
|
-
export * as Keystore from "./keystore/index.ts";
|
|
6
|
-
export * as Selection from "./selection/index.ts";
|
|
7
|
-
export * as Env from "./env/index.ts";
|
|
8
|
-
export * as Paths from "./paths/index.ts";
|
|
9
|
-
export * as Url from "./url/index.ts";
|
|
10
|
-
export * as EnvironmentName from "./environment-name/index.ts";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
declare const KeystoreUnavailableError_base: Schema.Class<KeystoreUnavailableError, Schema.TaggedStruct<"KeystoreUnavailableError", {
|
|
3
|
-
readonly reason: Schema.Literals<readonly ["module-not-found", "backend-unavailable"]>;
|
|
4
|
-
readonly cause: Schema.Defect;
|
|
5
|
-
}>, import("effect/Cause").YieldableError>;
|
|
6
|
-
export declare class KeystoreUnavailableError extends KeystoreUnavailableError_base {
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as FileSystem from "effect/FileSystem";
|
|
3
|
-
import * as Path from "effect/Path";
|
|
4
|
-
import { ConfigError } from "../error.ts";
|
|
5
|
-
import { type MasterKeyReadResult } from "./service.ts";
|
|
6
|
-
export declare const makeFileKeystore: () => Effect.Effect<{
|
|
7
|
-
read: () => Effect.Effect<MasterKeyReadResult, ConfigError>;
|
|
8
|
-
write: (key: Uint8Array) => Effect.Effect<void, ConfigError>;
|
|
9
|
-
}, ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as Layer from "effect/Layer";
|
|
2
|
-
import { T3MasterKeyKeystoreFactory, type MasterKeyReadResult } from "./service.ts";
|
|
3
|
-
export declare function parseKeyringPassword(password: string | null): MasterKeyReadResult;
|
|
4
|
-
export declare const layerNode: Layer.Layer<T3MasterKeyKeystoreFactory, never, never>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as Context from "effect/Context";
|
|
2
|
-
import type * as Effect from "effect/Effect";
|
|
3
|
-
import type { ConfigError } from "../error.ts";
|
|
4
|
-
import type { KeystoreUnavailableError } from "./error.ts";
|
|
5
|
-
export declare const masterKeyByteLength = 32;
|
|
6
|
-
export type MasterKeyReadResult = {
|
|
7
|
-
readonly kind: "missing";
|
|
8
|
-
} | {
|
|
9
|
-
readonly kind: "present";
|
|
10
|
-
readonly key: Uint8Array;
|
|
11
|
-
} | {
|
|
12
|
-
readonly kind: "corrupt";
|
|
13
|
-
readonly message: string;
|
|
14
|
-
} | {
|
|
15
|
-
readonly kind: "unavailable";
|
|
16
|
-
readonly message: string;
|
|
17
|
-
};
|
|
18
|
-
export type MasterKeyKeystore = {
|
|
19
|
-
readonly read: () => Effect.Effect<MasterKeyReadResult, ConfigError>;
|
|
20
|
-
readonly write: (key: Uint8Array) => Effect.Effect<void, ConfigError | KeystoreUnavailableError>;
|
|
21
|
-
};
|
|
22
|
-
declare const T3MasterKeyKeystoreFactory_base: Context.ServiceClass<T3MasterKeyKeystoreFactory, "t3cli/T3MasterKeyKeystoreFactory", {
|
|
23
|
-
readonly make: () => Effect.Effect<MasterKeyKeystore, KeystoreUnavailableError>;
|
|
24
|
-
}>;
|
|
25
|
-
export declare class T3MasterKeyKeystoreFactory extends T3MasterKeyKeystoreFactory_base {
|
|
26
|
-
}
|
|
27
|
-
export declare function shouldUseFileKeystoreForRead(result: MasterKeyReadResult): result is {
|
|
28
|
-
readonly kind: "missing";
|
|
29
|
-
} | {
|
|
30
|
-
readonly kind: "unavailable";
|
|
31
|
-
readonly message: string;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolveConfigFilePath, resolveKeyFilePath, resolveT3cliConfigDir } from "./paths.ts";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as Path from "effect/Path";
|
|
3
|
-
import { ConfigError } from "../error.ts";
|
|
4
|
-
export declare const resolveT3cliConfigDir: () => Effect.Effect<string, ConfigError, Path.Path>;
|
|
5
|
-
export declare const resolveConfigFilePath: () => Effect.Effect<string, ConfigError, Path.Path>;
|
|
6
|
-
export declare const resolveKeyFilePath: () => Effect.Effect<string, ConfigError, Path.Path>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as FileSystem from "effect/FileSystem";
|
|
3
|
-
import { ConfigError } from "../error.ts";
|
|
4
|
-
export declare const hardenPrivateFileMode: (filePath: string, label: "config" | "credential key") => Effect.Effect<void, ConfigError, FileSystem.FileSystem>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { T3CredentialCrypto } from "../credential/service.ts";
|
|
3
|
-
import { ConfigError } from "../error.ts";
|
|
4
|
-
import type { EncryptedConfig } from "../types.ts";
|
|
5
|
-
export declare const emptyEncryptedConfig: () => EncryptedConfig;
|
|
6
|
-
export declare const readEncryptedConfigFromValue: (value: unknown) => Effect.Effect<{
|
|
7
|
-
config: {
|
|
8
|
-
readonly version: 2;
|
|
9
|
-
readonly default?: string;
|
|
10
|
-
readonly environments: {
|
|
11
|
-
readonly [x: string]: {
|
|
12
|
-
readonly url: string;
|
|
13
|
-
readonly local: boolean;
|
|
14
|
-
readonly token: {
|
|
15
|
-
readonly kind: "encrypted";
|
|
16
|
-
readonly alg: "aes-256-gcm";
|
|
17
|
-
readonly key: "default";
|
|
18
|
-
readonly nonce: string;
|
|
19
|
-
readonly ciphertext: string;
|
|
20
|
-
readonly tag: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
migratedFromV1: false;
|
|
26
|
-
} | {
|
|
27
|
-
config: {
|
|
28
|
-
readonly version: 2;
|
|
29
|
-
readonly default?: string;
|
|
30
|
-
readonly environments: {
|
|
31
|
-
readonly [x: string]: {
|
|
32
|
-
readonly url: string;
|
|
33
|
-
readonly local: boolean;
|
|
34
|
-
readonly token: {
|
|
35
|
-
readonly kind: "encrypted";
|
|
36
|
-
readonly alg: "aes-256-gcm";
|
|
37
|
-
readonly key: "default";
|
|
38
|
-
readonly nonce: string;
|
|
39
|
-
readonly ciphertext: string;
|
|
40
|
-
readonly tag: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
migratedFromV1: true;
|
|
46
|
-
}, ConfigError, T3CredentialCrypto>;
|
|
47
|
-
export declare const migrateV1FileToEncrypted: (config: {
|
|
48
|
-
readonly url?: string;
|
|
49
|
-
readonly token?: string;
|
|
50
|
-
readonly local?: boolean;
|
|
51
|
-
}) => Effect.Effect<{
|
|
52
|
-
readonly version: 2;
|
|
53
|
-
readonly default?: string;
|
|
54
|
-
readonly environments: {
|
|
55
|
-
readonly [x: string]: {
|
|
56
|
-
readonly url: string;
|
|
57
|
-
readonly local: boolean;
|
|
58
|
-
readonly token: {
|
|
59
|
-
readonly kind: "encrypted";
|
|
60
|
-
readonly alg: "aes-256-gcm";
|
|
61
|
-
readonly key: "default";
|
|
62
|
-
readonly nonce: string;
|
|
63
|
-
readonly ciphertext: string;
|
|
64
|
-
readonly tag: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}, ConfigError, T3CredentialCrypto>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as FileSystem from "effect/FileSystem";
|
|
3
|
-
import * as Path from "effect/Path";
|
|
4
|
-
import { ConfigError } from "../error.ts";
|
|
5
|
-
export declare const readEncryptedConfigFile: () => Effect.Effect<{
|
|
6
|
-
readonly version: 2;
|
|
7
|
-
readonly default?: string;
|
|
8
|
-
readonly environments: {
|
|
9
|
-
readonly [x: string]: {
|
|
10
|
-
readonly url: string;
|
|
11
|
-
readonly local: boolean;
|
|
12
|
-
readonly token: {
|
|
13
|
-
readonly kind: "encrypted";
|
|
14
|
-
readonly alg: "aes-256-gcm";
|
|
15
|
-
readonly key: "default";
|
|
16
|
-
readonly nonce: string;
|
|
17
|
-
readonly ciphertext: string;
|
|
18
|
-
readonly tag: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}, ConfigError, FileSystem.FileSystem | Path.Path | import("../credential/service.ts").T3CredentialCrypto>;
|
|
23
|
-
export declare const writeEncryptedConfigFile: (config: {
|
|
24
|
-
readonly version: 2;
|
|
25
|
-
readonly default?: string;
|
|
26
|
-
readonly environments: {
|
|
27
|
-
readonly [x: string]: {
|
|
28
|
-
readonly url: string;
|
|
29
|
-
readonly local: boolean;
|
|
30
|
-
readonly token: {
|
|
31
|
-
readonly kind: "encrypted";
|
|
32
|
-
readonly alg: "aes-256-gcm";
|
|
33
|
-
readonly key: "default";
|
|
34
|
-
readonly nonce: string;
|
|
35
|
-
readonly ciphertext: string;
|
|
36
|
-
readonly tag: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}) => Effect.Effect<void, ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export declare const EncryptedTokenSchema: Schema.Struct<{
|
|
3
|
-
readonly kind: Schema.Literal<"encrypted">;
|
|
4
|
-
readonly alg: Schema.Literal<"aes-256-gcm">;
|
|
5
|
-
readonly key: Schema.Literal<"default">;
|
|
6
|
-
readonly nonce: Schema.String;
|
|
7
|
-
readonly ciphertext: Schema.String;
|
|
8
|
-
readonly tag: Schema.String;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const StoredEnvironmentFileSchema: Schema.Struct<{
|
|
11
|
-
readonly url: Schema.String;
|
|
12
|
-
readonly local: Schema.Boolean;
|
|
13
|
-
readonly token: Schema.Struct<{
|
|
14
|
-
readonly kind: Schema.Literal<"encrypted">;
|
|
15
|
-
readonly alg: Schema.Literal<"aes-256-gcm">;
|
|
16
|
-
readonly key: Schema.Literal<"default">;
|
|
17
|
-
readonly nonce: Schema.String;
|
|
18
|
-
readonly ciphertext: Schema.String;
|
|
19
|
-
readonly tag: Schema.String;
|
|
20
|
-
}>;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const StoredConfigV2FileSchema: Schema.Struct<{
|
|
23
|
-
readonly version: Schema.Literal<2>;
|
|
24
|
-
readonly default: Schema.optionalKey<Schema.String>;
|
|
25
|
-
readonly environments: Schema.$Record<Schema.String, Schema.Struct<{
|
|
26
|
-
readonly url: Schema.String;
|
|
27
|
-
readonly local: Schema.Boolean;
|
|
28
|
-
readonly token: Schema.Struct<{
|
|
29
|
-
readonly kind: Schema.Literal<"encrypted">;
|
|
30
|
-
readonly alg: Schema.Literal<"aes-256-gcm">;
|
|
31
|
-
readonly key: Schema.Literal<"default">;
|
|
32
|
-
readonly nonce: Schema.String;
|
|
33
|
-
readonly ciphertext: Schema.String;
|
|
34
|
-
readonly tag: Schema.String;
|
|
35
|
-
}>;
|
|
36
|
-
}>>;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const StoredConfigV1FileSchema: Schema.Struct<{
|
|
39
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
40
|
-
readonly token: Schema.optionalKey<Schema.String>;
|
|
41
|
-
readonly local: Schema.optionalKey<Schema.Boolean>;
|
|
42
|
-
}>;
|
|
43
|
-
export type EncryptedToken = Schema.Schema.Type<typeof EncryptedTokenSchema>;
|
|
44
|
-
export type StoredEnvironmentFile = Schema.Schema.Type<typeof StoredEnvironmentFileSchema>;
|
|
45
|
-
export type StoredConfigV2File = Schema.Schema.Type<typeof StoredConfigV2FileSchema>;
|
|
46
|
-
export type StoredConfigV1File = Schema.Schema.Type<typeof StoredConfigV1FileSchema>;
|
|
47
|
-
export declare const StoredConfigV1FileJson: Schema.fromJsonString<Schema.Struct<{
|
|
48
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
49
|
-
readonly token: Schema.optionalKey<Schema.String>;
|
|
50
|
-
readonly local: Schema.optionalKey<Schema.Boolean>;
|
|
51
|
-
}>>;
|
|
52
|
-
export declare const StoredConfigV2FileJson: Schema.fromJsonString<Schema.Struct<{
|
|
53
|
-
readonly version: Schema.Literal<2>;
|
|
54
|
-
readonly default: Schema.optionalKey<Schema.String>;
|
|
55
|
-
readonly environments: Schema.$Record<Schema.String, Schema.Struct<{
|
|
56
|
-
readonly url: Schema.String;
|
|
57
|
-
readonly local: Schema.Boolean;
|
|
58
|
-
readonly token: Schema.Struct<{
|
|
59
|
-
readonly kind: Schema.Literal<"encrypted">;
|
|
60
|
-
readonly alg: Schema.Literal<"aes-256-gcm">;
|
|
61
|
-
readonly key: Schema.Literal<"default">;
|
|
62
|
-
readonly nonce: Schema.String;
|
|
63
|
-
readonly ciphertext: Schema.String;
|
|
64
|
-
readonly tag: Schema.String;
|
|
65
|
-
}>;
|
|
66
|
-
}>>;
|
|
67
|
-
}>>;
|
|
68
|
-
export declare const UnknownConfigFileJson: Schema.UnknownFromJsonString;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { ConfigError } from "../error.ts";
|
|
3
|
-
import type { EncryptedConfig } from "../types.ts";
|
|
4
|
-
export type ResolveSelectionInput = {
|
|
5
|
-
readonly selectedEnvironment?: string | undefined;
|
|
6
|
-
readonly defaultEnvironment?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare function selectEnvironmentName(input: ResolveSelectionInput): string | undefined;
|
|
9
|
-
export type ResolveCredentialInput = {
|
|
10
|
-
readonly envUrl?: string | undefined;
|
|
11
|
-
readonly envToken?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export declare function validateCredentialEnvVars(input: ResolveCredentialInput): Effect.Effect<void, never, never> | Effect.Effect<never, ConfigError, never>;
|
|
14
|
-
export declare function resolveDefaultForUpsert(encrypted: EncryptedConfig, environmentName: string, makeDefault?: boolean): string | undefined;
|
|
15
|
-
export declare function summarizeEnvironments(encrypted: EncryptedConfig): {
|
|
16
|
-
name: string;
|
|
17
|
-
url: string;
|
|
18
|
-
local: boolean;
|
|
19
|
-
default: boolean;
|
|
20
|
-
}[];
|
|
21
|
-
export declare function buildResolvedConfigFromEnv(input: {
|
|
22
|
-
readonly envUrl: string;
|
|
23
|
-
readonly envToken: string;
|
|
24
|
-
}): Effect.Effect<{
|
|
25
|
-
url: string;
|
|
26
|
-
token: string;
|
|
27
|
-
source: "env";
|
|
28
|
-
local: false;
|
|
29
|
-
}, ConfigError, never>;
|
|
30
|
-
export declare function buildResolvedConfigFromStored(input: {
|
|
31
|
-
readonly selectedName: string;
|
|
32
|
-
readonly token: string;
|
|
33
|
-
readonly encrypted: EncryptedConfig;
|
|
34
|
-
}): Effect.Effect<{
|
|
35
|
-
url: string;
|
|
36
|
-
token: string;
|
|
37
|
-
source: "config";
|
|
38
|
-
local: boolean;
|
|
39
|
-
environment: string;
|
|
40
|
-
}, ConfigError, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Service from "./service.ts";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Context from "effect/Context";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as Layer from "effect/Layer";
|
|
4
|
-
declare const T3ConfigSelection_base: Context.ServiceClass<T3ConfigSelection, "t3cli/T3ConfigSelection", {
|
|
5
|
-
readonly getSelectedEnvironment: () => Effect.Effect<string | undefined>;
|
|
6
|
-
}>;
|
|
7
|
-
export declare class T3ConfigSelection extends T3ConfigSelection_base {
|
|
8
|
-
}
|
|
9
|
-
export declare const layer: Layer.Layer<T3ConfigSelection, import("effect/Config").ConfigError, never>;
|
|
10
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { EncryptedToken, StoredConfigV2File, StoredEnvironmentFile } from "./persist/schema.ts";
|
|
2
|
-
export type EncryptedEnvironment = StoredEnvironmentFile;
|
|
3
|
-
export type EncryptedConfig = StoredConfigV2File;
|
|
4
|
-
export type DecryptedEnvironment = {
|
|
5
|
-
readonly url: string;
|
|
6
|
-
readonly local: boolean;
|
|
7
|
-
readonly token: string;
|
|
8
|
-
};
|
|
9
|
-
export type DecryptedConfig = {
|
|
10
|
-
readonly version: 2;
|
|
11
|
-
readonly default?: string;
|
|
12
|
-
readonly environments: Readonly<Record<string, DecryptedEnvironment>>;
|
|
13
|
-
};
|
|
14
|
-
export type EnvironmentSummary = {
|
|
15
|
-
readonly name: string;
|
|
16
|
-
readonly url: string;
|
|
17
|
-
readonly local: boolean;
|
|
18
|
-
readonly default: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type ResolvedConfig = {
|
|
21
|
-
readonly url: string;
|
|
22
|
-
readonly token: string;
|
|
23
|
-
readonly source: "env" | "config";
|
|
24
|
-
readonly local: boolean;
|
|
25
|
-
readonly environment?: string;
|
|
26
|
-
};
|
|
27
|
-
export type UpsertEnvironmentInput = {
|
|
28
|
-
readonly name: string;
|
|
29
|
-
readonly url: string;
|
|
30
|
-
readonly token: string;
|
|
31
|
-
readonly local: boolean;
|
|
32
|
-
readonly makeDefault?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export type StoredConfig = DecryptedConfig;
|
|
35
|
-
export type StoredEnvironment = DecryptedEnvironment;
|
|
36
|
-
export type { EncryptedToken };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Cause from "effect/Cause";
|
|
2
|
-
import * as Schema from "effect/Schema";
|
|
3
|
-
declare const UrlError_base: Schema.Class<UrlError, Schema.TaggedStruct<"UrlError", {
|
|
4
|
-
readonly message: Schema.String;
|
|
5
|
-
readonly protocol: Schema.optionalKey<Schema.String>;
|
|
6
|
-
readonly cause: Schema.optionalKey<Schema.instanceOf<Cause.IllegalArgumentError, Cause.IllegalArgumentError>>;
|
|
7
|
-
}>, Cause.YieldableError>;
|
|
8
|
-
export declare class UrlError extends UrlError_base {
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { UrlError } from "./error.ts";
|
|
3
|
-
export declare function normalizeHttpBaseUrl(value: string): Effect.Effect<string, UrlError, never>;
|
|
4
|
-
export declare function toWebSocketBaseUrl(httpBaseUrl: string): Effect.Effect<string, UrlError, never>;
|
|
5
|
-
export declare function toHttpEndpointUrl(httpBaseUrl: string, pathname: string): Effect.Effect<string, UrlError, never>;
|
|
6
|
-
export declare function toWebSocketEndpointUrl(httpBaseUrl: string, pathname: string): Effect.Effect<string, UrlError, never>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { ConfigError } from "../config/error.ts";
|
|
3
|
-
import { UrlError } from "../config/url/error.ts";
|
|
4
|
-
declare const T3CodeConnectionError_base: Schema.Class<T3CodeConnectionError, Schema.TaggedStruct<"T3CodeConnectionError", {
|
|
5
|
-
readonly message: Schema.String;
|
|
6
|
-
readonly cause: Schema.Union<readonly [typeof ConfigError, typeof UrlError]>;
|
|
7
|
-
}>, import("effect/Cause").YieldableError>;
|
|
8
|
-
export declare class T3CodeConnectionError extends T3CodeConnectionError_base {
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { T3CodeConnectionError } from "./error.ts";
|
|
2
|
-
export { T3CodeRpcLayer, makeT3CodeRpcLayer } from "./layer.ts";
|
|
3
|
-
export { T3CodeConnectionProvider, T3CodeConnectionProviderLive, makeT3CodeConnectionProvider, } from "./service.ts";
|
|
4
|
-
export type { T3CodeAuth, T3CodeConnection, T3CodeOrigin } from "./type.ts";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import * as Layer from "effect/Layer";
|
|
2
|
-
export declare function makeT3CodeRpcLayer(): Layer.Layer<import("../rpc/service.ts").T3Rpc, never, import("effect/unstable/http/HttpClient").HttpClient | import("./service.ts").T3CodeConnectionProvider | import("effect/unstable/socket/Socket").WebSocketConstructor>;
|
|
3
|
-
export declare const T3CodeRpcLayer: Layer.Layer<import("../rpc/service.ts").T3Rpc, never, import("effect/unstable/http/HttpClient").HttpClient | import("./service.ts").T3CodeConnectionProvider | import("effect/unstable/socket/Socket").WebSocketConstructor>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ConnectionAttemptError, type PreparedConnection } from "@t3tools/client-runtime/connection";
|
|
2
|
-
import * as Context from "effect/Context";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as Layer from "effect/Layer";
|
|
5
|
-
import { HttpClient } from "effect/unstable/http";
|
|
6
|
-
import { T3CodeConnectionError } from "./error.ts";
|
|
7
|
-
import { T3CodeConnectionProvider } from "./service.ts";
|
|
8
|
-
declare const T3PreparedConnectionProvider_base: Context.ServiceClass<T3PreparedConnectionProvider, "t3cli/T3PreparedConnectionProvider", {
|
|
9
|
-
readonly get: Effect.Effect<PreparedConnection, ConnectionAttemptError | T3CodeConnectionError>;
|
|
10
|
-
}>;
|
|
11
|
-
export declare class T3PreparedConnectionProvider extends T3PreparedConnectionProvider_base {
|
|
12
|
-
}
|
|
13
|
-
export declare const T3PreparedConnectionProviderLive: Layer.Layer<T3PreparedConnectionProvider, never, HttpClient.HttpClient | T3CodeConnectionProvider>;
|
|
14
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as Context from "effect/Context";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as Layer from "effect/Layer";
|
|
4
|
-
import type { T3CodeConnectionError } from "./error.ts";
|
|
5
|
-
import type { T3CodeConnection } from "./type.ts";
|
|
6
|
-
declare const T3CodeConnectionProvider_base: Context.ServiceClass<T3CodeConnectionProvider, "t3cli/T3CodeConnectionProvider", {
|
|
7
|
-
readonly get: Effect.Effect<T3CodeConnection, T3CodeConnectionError>;
|
|
8
|
-
}>;
|
|
9
|
-
export declare class T3CodeConnectionProvider extends T3CodeConnectionProvider_base {
|
|
10
|
-
}
|
|
11
|
-
export declare function makeT3CodeConnectionProvider(get: Effect.Effect<T3CodeConnection, T3CodeConnectionError>): T3CodeConnectionProvider["Service"];
|
|
12
|
-
export declare function T3CodeConnectionProviderLive(connection: T3CodeConnection): Layer.Layer<T3CodeConnectionProvider, never, never>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { OrchestrationMessage, OrchestrationProjectShell, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadShell, ServerProvider, } from "@t3tools/contracts";
|