t3code-cli 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +392 -630
- 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/rolldown-runtime.js +1 -1
- 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 +36722 -13117
- package/dist/t3tools.d.ts +2 -0
- package/dist/t3tools.js +2 -2
- package/package.json +46 -27
- package/src/application/thread-wait.ts +4 -0
- package/src/auth/error.ts +2 -8
- package/src/auth/index.ts +2 -0
- package/src/auth/pairing.ts +8 -5
- package/src/auth/remote-error.ts +17 -0
- package/src/auth/service.ts +2 -1
- package/src/auth/transport.ts +49 -114
- package/src/auth/type.ts +6 -0
- package/src/cli/auth.ts +7 -1
- package/src/connection/error.ts +4 -1
- package/src/connection/layer.ts +5 -2
- package/src/connection/prepared.ts +83 -0
- package/src/contracts/index.ts +8 -0
- package/src/orchestration/layer.ts +38 -1
- 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 +11 -16
- package/src/rpc/index.ts +3 -2
- package/src/rpc/layer.ts +18 -51
- package/src/rpc/operation.ts +21 -6
- package/src/rpc/service.ts +2 -1
- package/src/rpc/session.ts +168 -0
- package/src/rpc/ws-group.ts +18 -26
- package/src/runtime/index.ts +1 -0
- package/src/runtime/layer.ts +11 -3
- 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 -101
- 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 -111
- package/dist/src/application/threads.d.ts +0 -685
- package/dist/src/auth/error.d.ts +0 -51
- 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/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 -8
- package/dist/src/connection/index.d.ts +0 -4
- package/dist/src/connection/layer.d.ts +0 -3
- 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 -184
- package/dist/src/domain/model-config.d.ts +0 -325
- package/dist/src/domain/thread-activities.d.ts +0 -14
- package/dist/src/domain/thread-lifecycle.d.ts +0 -125
- 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 -1634
- package/dist/src/orchestration/service.d.ts +0 -28
- package/dist/src/rpc/error.d.ts +0 -18
- package/dist/src/rpc/index.d.ts +0 -5
- package/dist/src/rpc/layer.d.ts +0 -6271
- package/dist/src/rpc/operation.d.ts +0 -6280
- package/dist/src/rpc/service.d.ts +0 -15
- package/dist/src/rpc/ws-group.d.ts +0 -2725
- 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
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ This repo includes an agent skill for operating `t3cli`: [`skills/t3code-cli/SKI
|
|
|
36
36
|
Install it with:
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
npx skills add tarik02/
|
|
39
|
+
npx skills add tarik02-org/t3code-cli
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Authentication
|
|
@@ -63,6 +63,92 @@ t3cli --environment <name> ... # Use a spec
|
|
|
63
63
|
- Set `T3CLI_ENV=<name>` to select an environment when `--environment` is omitted
|
|
64
64
|
- `T3CODE_URL` and `T3CODE_TOKEN` override the selected environment only when both are set
|
|
65
65
|
|
|
66
|
+
## Programmatic API
|
|
67
|
+
|
|
68
|
+
Pairing accepts T3 client presentation metadata. Automation clients should identify themselves as
|
|
69
|
+
bots and provide a label that users can recognize in T3 Code:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import * as Effect from "effect/Effect";
|
|
73
|
+
import { T3AuthPairing } from "t3code-cli/auth";
|
|
74
|
+
import { T3AuthPairingLayer } from "t3code-cli/runtime";
|
|
75
|
+
|
|
76
|
+
const pair = Effect.gen(function* () {
|
|
77
|
+
const auth = yield* T3AuthPairing;
|
|
78
|
+
return yield* auth.pair({
|
|
79
|
+
pairingUrl,
|
|
80
|
+
clientMetadata: {
|
|
81
|
+
label: "aperture bridge",
|
|
82
|
+
deviceType: "bot",
|
|
83
|
+
os: "linux",
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
}).pipe(Effect.provide(T3AuthPairingLayer));
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`T3PreviewAutomation` registers a preview host and exposes T3's request stream, response RPC, and
|
|
90
|
+
focus RPC. Compose its live layer with the existing connection layers when supplying credentials
|
|
91
|
+
directly:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import * as Effect from "effect/Effect";
|
|
95
|
+
import * as Layer from "effect/Layer";
|
|
96
|
+
import * as Stream from "effect/Stream";
|
|
97
|
+
import { T3CodeConnectionProviderLive } from "t3code-cli/connection";
|
|
98
|
+
import { T3CodeNodeRpcLayer } from "t3code-cli/node";
|
|
99
|
+
import { T3PreviewAutomation, T3PreviewAutomationLive } from "t3code-cli/preview";
|
|
100
|
+
import { T3RpcOperationsLive } from "t3code-cli/rpc";
|
|
101
|
+
|
|
102
|
+
const connectionLayer = T3CodeConnectionProviderLive({
|
|
103
|
+
origin: { url },
|
|
104
|
+
auth: { token },
|
|
105
|
+
});
|
|
106
|
+
const rpcLayer = T3CodeNodeRpcLayer.pipe(Layer.provide(connectionLayer));
|
|
107
|
+
const previewLayer = T3PreviewAutomationLive.pipe(
|
|
108
|
+
Layer.provide(T3RpcOperationsLive.pipe(Layer.provide(rpcLayer))),
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
const runHost = Effect.gen(function* () {
|
|
112
|
+
const preview = yield* T3PreviewAutomation;
|
|
113
|
+
yield* preview
|
|
114
|
+
.connect({ clientId, environmentId, supportedOperations })
|
|
115
|
+
.pipe(Stream.runForEach(handlePreviewEvent));
|
|
116
|
+
}).pipe(Effect.scoped, Effect.provide(previewLayer));
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`T3PreviewAutomationLayer` is the shorter CLI-config-backed layer for callers that use a selected
|
|
120
|
+
`t3cli` environment.
|
|
121
|
+
|
|
122
|
+
`T3Orchestration.watchShellSnapshots()` emits the initial shell snapshot and a reduced snapshot for
|
|
123
|
+
each later project or thread event. A new full snapshot resets the reducer after reconnects.
|
|
124
|
+
|
|
125
|
+
T3 Code's shared and client-runtime export maps are mirrored under `t3code-cli/shared/*` and
|
|
126
|
+
`t3code-cli/client-runtime/*`. For example, the viewport catalog and resolver are available through
|
|
127
|
+
the matching shared subpath:
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
import {
|
|
131
|
+
PREVIEW_VIEWPORT_PRESETS,
|
|
132
|
+
resolvePreviewViewport,
|
|
133
|
+
} from "t3code-cli/shared/previewViewport";
|
|
134
|
+
import { PreviewViewportSetting } from "t3code-cli/contracts";
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Upstream Maintenance
|
|
138
|
+
|
|
139
|
+
Synchronize dependency versions and patches with the current `upstream-t3code` revision:
|
|
140
|
+
|
|
141
|
+
```sh
|
|
142
|
+
pnpm sync-upstream
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Pass `--target` to update the submodule first. It accepts `stable`, `nightly`, `main`, a version such
|
|
146
|
+
as `0.0.31` or `v0.0.31`, or a Git ref or commit:
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
pnpm sync-upstream --target stable
|
|
150
|
+
```
|
|
151
|
+
|
|
66
152
|
## Project Management
|
|
67
153
|
|
|
68
154
|
```sh
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $r as T3ApplicationSlicesLive, Ai as WaitEvent, Ci as T3Application, Di as T3ThreadApplication, Ei as T3TerminalApplication, Li as ApplicationError, Oi as UpdateProjectActionInput, Qr as T3ApplicationLive, Si as T3ActionApplicationService, Ti as T3ProjectApplication, Zr as T3ActionApplicationLive, _i as ProjectActionSelector, bi as StartThreadPolicy, ei as T3ModelApplicationLive, gi as ProjectActionRunResult, hi as ProjectActionMutationResult, ii as makeT3Application, ki as UpdateThreadInput, mi as ProjectActionDeleteResult, ni as T3TerminalApplicationLive, pi as AddProjectActionInput, ri as T3ThreadApplicationLive, ti as T3ProjectApplicationLive, vi as SendThreadInput, wi as T3ModelApplication, xi as T3ActionApplication, yi as StartThreadInput } from "./shared.js";
|
|
2
|
+
export { type AddProjectActionInput, type ApplicationError, type ProjectActionDeleteResult, type ProjectActionMutationResult, type ProjectActionRunResult, type ProjectActionSelector, type SendThreadInput, type StartThreadInput, type StartThreadPolicy, T3ActionApplication, T3ActionApplicationLive, type T3ActionApplicationService, T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, type UpdateProjectActionInput, type UpdateThreadInput, type WaitEvent, makeT3Application };
|
package/dist/application.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aw as T3ThreadApplication, Bi as T3ModelApplicationLive, Dw as T3ModelApplication, Ew as T3Application, Hi as T3TerminalApplicationLive, Li as T3ActionApplicationLive, Ow as T3ProjectApplication, Ri as T3ApplicationLive, Tw as T3ActionApplication, Ui as T3ThreadApplicationLive, Vi as T3ProjectApplicationLive, Wi as makeT3Application, kw as T3TerminalApplication, zi as T3ApplicationSlicesLive } from "./shared.js";
|
|
2
2
|
export { T3ActionApplication, T3ActionApplicationLive, T3Application, T3ApplicationLive, T3ApplicationSlicesLive, T3ModelApplication, T3ModelApplicationLive, T3ProjectApplication, T3ProjectApplicationLive, T3TerminalApplication, T3TerminalApplicationLive, T3ThreadApplication, T3ThreadApplicationLive, makeT3Application };
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { $n as makeT3LocalAuth, $w as AuthClientPresentationMetadata, Ar as AuthStatusResult, Br as PersistEnvironmentInput, Cr as T3Auth, Dr as AuthPairInput, Er as AuthEnvironmentSummary, Fr as LocalAuthResult, Gr as AuthLocalSecretError, Hr as AuthError, Ir as LocalAuthTokenInput, Jn as makeT3AuthPairing, Jr as AuthTransportError, Kn as T3AuthPairing, Kr as AuthLocalSigningError, Lr as LocalAuthTokenResult, Mr as AuthUseResult, Nr as LocalAuthInput, Or as AuthResolvedConfig, Pr as LocalAuthOriginInput, Qn as T3LocalAuthLive, Rr as PairResult, Tr as AuthEnvironmentListItem, Ur as AuthLocalDatabaseError, Vr as AuthConfigError, Wr as AuthLocalError, Xn as T3AuthTransport, Xr as AuthWebSocketTicketResult, Yn as parsePairingUrl, Yr as AuthSessionState, Zn as T3LocalAuth, ar as makeT3LocalAuthOrigin, er as T3LocalAuthToken, ir as T3LocalAuthOriginLive, jr as AuthUnpairResult, kr as AuthSessionRole, nr as makeT3LocalAuthToken, or as T3Config, qn as T3AuthPairingLive, qr as AuthPairingUrlError, rr as T3LocalAuthOrigin, tr as T3LocalAuthTokenLive, wr as AuthConfigInput, zr as PairingUrl } from "./shared.js";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
//#region src/auth/layer.d.ts
|
|
5
|
+
declare const makeT3Auth: () => Effect.Effect<{
|
|
6
|
+
pair: (input: AuthPairInput) => Effect.Effect<PairResult, AuthPairingUrlError | AuthTransportError>;
|
|
7
|
+
local: (input: LocalAuthInput) => Effect.Effect<LocalAuthResult, AuthLocalError>;
|
|
8
|
+
writeConfig: (input: AuthConfigInput) => Effect.Effect<void, AuthConfigError, never>;
|
|
9
|
+
persistEnvironment: (input: {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly url: string;
|
|
12
|
+
readonly token: string;
|
|
13
|
+
readonly local: boolean;
|
|
14
|
+
readonly replace?: boolean;
|
|
15
|
+
readonly allowReplace: boolean;
|
|
16
|
+
}) => Effect.Effect<string, AuthConfigError, never>;
|
|
17
|
+
environmentExists: (name: string) => Effect.Effect<boolean, AuthConfigError, never>;
|
|
18
|
+
defaultNameFromUrl: (url: string) => Effect.Effect<string, AuthConfigError, never>;
|
|
19
|
+
defaultNameForLocal: () => Effect.Effect<"local", never, never>;
|
|
20
|
+
listEnvironments: () => Effect.Effect<AuthEnvironmentListItem[], AuthConfigError, never>;
|
|
21
|
+
useEnvironment: (name: string) => Effect.Effect<{
|
|
22
|
+
name: string;
|
|
23
|
+
default: true;
|
|
24
|
+
}, AuthConfigError, never>;
|
|
25
|
+
resolveUnpairTarget: (input: {
|
|
26
|
+
readonly name?: string;
|
|
27
|
+
}) => Effect.Effect<string, AuthConfigError, never>;
|
|
28
|
+
unpairEnvironment: (input: {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
}) => Effect.Effect<{
|
|
31
|
+
name: string;
|
|
32
|
+
removed: true;
|
|
33
|
+
}, AuthConfigError, never>;
|
|
34
|
+
status: () => Effect.Effect<{
|
|
35
|
+
readonly config: AuthResolvedConfig;
|
|
36
|
+
readonly session: {
|
|
37
|
+
readonly authenticated: boolean;
|
|
38
|
+
readonly role?: "client" | "owner";
|
|
39
|
+
readonly sessionMethod?: string;
|
|
40
|
+
readonly expiresAt?: string;
|
|
41
|
+
};
|
|
42
|
+
}, AuthConfigError | AuthTransportError, never>;
|
|
43
|
+
issueWebSocketTicket: () => Effect.Effect<{
|
|
44
|
+
readonly ticket: string;
|
|
45
|
+
readonly expiresAt: string;
|
|
46
|
+
}, AuthConfigError | AuthTransportError, never>;
|
|
47
|
+
}, never, T3AuthPairing | T3AuthTransport | T3Config | T3LocalAuth>;
|
|
48
|
+
declare const T3AuthLive: Layer.Layer<T3Auth, never, T3AuthPairing | T3AuthTransport | T3Config | T3LocalAuth>;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { type AuthClientPresentationMetadata, AuthConfigError, type AuthConfigInput, type AuthEnvironmentListItem, type AuthEnvironmentSummary, type AuthError, AuthLocalDatabaseError, AuthLocalError, AuthLocalSecretError, AuthLocalSigningError, type AuthPairInput, AuthPairingUrlError, type AuthResolvedConfig, type AuthSessionRole, type AuthSessionState, type AuthStatusResult, AuthTransportError, type AuthUnpairResult, type AuthUseResult, type AuthWebSocketTicketResult, type LocalAuthInput, type LocalAuthOriginInput, type LocalAuthResult, type LocalAuthTokenInput, type LocalAuthTokenResult, type PairResult, type PairingUrl, type PersistEnvironmentInput, T3Auth, T3AuthLive, T3AuthPairing, T3AuthPairingLive, T3LocalAuth, T3LocalAuthLive, T3LocalAuthOrigin, T3LocalAuthOriginLive, T3LocalAuthToken, T3LocalAuthTokenLive, makeT3Auth, makeT3AuthPairing, makeT3LocalAuth, makeT3LocalAuthOrigin, makeT3LocalAuthToken, parsePairingUrl };
|
package/dist/auth.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as AuthConfigError, Ci as T3LocalAuthToken, Di as T3LocalAuthOriginLive, Ei as T3LocalAuthOrigin, Fi as AuthPairingUrlError, Ii as AuthTransportError, Mi as AuthLocalError, Ni as AuthLocalSecretError, Oi as makeT3LocalAuthOrigin, Pi as AuthLocalSigningError, Si as makeT3LocalAuth, Ti as makeT3LocalAuthToken, _i as T3AuthPairingLive, bi as T3LocalAuth, gi as T3AuthPairing, hi as makeT3Auth, ji as AuthLocalDatabaseError, mC as T3Auth, mi as T3AuthLive, vi as makeT3AuthPairing, wi as T3LocalAuthTokenLive, xi as T3LocalAuthLive, yi as parsePairingUrl } from "./shared.js";
|
|
2
2
|
export { AuthConfigError, AuthLocalDatabaseError, AuthLocalError, AuthLocalSecretError, AuthLocalSigningError, AuthPairingUrlError, AuthTransportError, T3Auth, T3AuthLive, T3AuthPairing, T3AuthPairingLive, T3LocalAuth, T3LocalAuthLive, T3LocalAuthOrigin, T3LocalAuthOriginLive, T3LocalAuthToken, T3LocalAuthTokenLive, makeT3Auth, makeT3AuthPairing, makeT3LocalAuth, makeT3LocalAuthOrigin, makeT3LocalAuthToken, parsePairingUrl };
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|