t3code-cli 0.11.0 → 0.12.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 +42 -10
- package/dist/application.js +2 -2
- package/dist/auth.js +1 -1
- package/dist/bin.js +85526 -2662
- package/dist/cli.js +15 -2
- package/dist/config.js +120 -2
- package/dist/connection.js +2 -2
- package/dist/index.js +1 -1
- package/dist/node.js +6 -2
- package/dist/orchestration.js +2 -2
- package/dist/rpc.js +1 -1
- package/dist/runtime.js +2 -2
- package/dist/shared.js +42956 -38119
- package/dist/src/application/actions.d.ts +25 -0
- package/dist/src/application/index.d.ts +3 -3
- package/dist/src/application/layer.d.ts +51 -35
- package/dist/src/application/model-selection.d.ts +2 -2
- package/dist/src/application/models.d.ts +1 -1
- package/dist/src/application/project-commands.d.ts +22 -2
- package/dist/src/application/projects.d.ts +7 -7
- package/dist/src/application/service.d.ts +65 -2
- package/dist/src/application/shell-sequence.d.ts +11 -0
- package/dist/src/application/terminals.d.ts +2 -2
- package/dist/src/application/thread-commands.d.ts +1 -1
- package/dist/src/application/thread-wait.d.ts +9 -0
- package/dist/src/application/threads.d.ts +56 -5
- package/dist/src/auth/error.d.ts +2 -1
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/layer.d.ts +34 -6
- package/dist/src/auth/local-base-dir.d.ts +5 -2
- package/dist/src/auth/local-origin.d.ts +3 -3
- package/dist/src/auth/local-token.d.ts +3 -3
- package/dist/src/auth/service.d.ts +15 -3
- package/dist/src/auth/type.d.ts +40 -1
- package/dist/src/cli/env/flag.d.ts +2 -0
- package/dist/src/cli/env/index.d.ts +2 -0
- package/dist/src/cli/env/selection-layer.d.ts +3 -0
- package/dist/src/cli/flags.d.ts +2 -0
- package/dist/src/cli/format/index.d.ts +1 -0
- package/dist/src/cli/format/output.d.ts +12 -0
- package/dist/src/cli/index.d.ts +4 -0
- package/dist/src/cli/runtime/index.d.ts +1 -0
- package/dist/src/cli/runtime/service.d.ts +16 -0
- package/dist/src/{scope → cli/scope}/resolve.d.ts +5 -4
- package/dist/src/config/config.d.ts +49 -0
- package/dist/src/config/credential/cipher-node.d.ts +3 -0
- package/dist/src/config/credential/cipher-web.d.ts +3 -0
- package/dist/src/config/credential/cipher.d.ts +29 -0
- package/dist/src/config/credential/env.d.ts +3 -0
- package/dist/src/config/credential/error.d.ts +8 -0
- package/dist/src/config/credential/index.d.ts +6 -0
- package/dist/src/config/credential/service.d.ts +34 -0
- package/dist/src/config/env/env.d.ts +55 -0
- package/dist/src/config/env/index.d.ts +2 -0
- package/dist/src/{layout/base-dir.d.ts → config/env/layout.d.ts} +0 -1
- package/dist/src/config/environment-name/index.d.ts +1 -0
- package/dist/src/config/environment-name/name.d.ts +10 -0
- package/dist/src/config/error.d.ts +4 -11
- package/dist/src/config/index.d.ts +10 -5
- package/dist/src/config/keystore/error.d.ts +8 -0
- package/dist/src/config/keystore/file.d.ts +9 -0
- package/dist/src/config/keystore/index.d.ts +4 -0
- package/dist/src/config/keystore/keyring-node.d.ts +4 -0
- package/dist/src/config/keystore/service.d.ts +33 -0
- package/dist/src/config/paths/index.d.ts +1 -0
- package/dist/src/config/paths/paths.d.ts +6 -0
- package/dist/src/config/persist/file-mode.d.ts +4 -0
- package/dist/src/config/persist/migration.d.ts +68 -0
- package/dist/src/config/persist/persist.d.ts +40 -0
- package/dist/src/config/persist/schema.d.ts +68 -0
- package/dist/src/config/resolve/resolve.d.ts +40 -0
- package/dist/src/config/selection/index.d.ts +1 -0
- package/dist/src/config/selection/resolve.d.ts +4 -0
- package/dist/src/config/selection/service.d.ts +10 -0
- package/dist/src/config/types.d.ts +36 -0
- package/dist/src/config/url/error.d.ts +10 -0
- package/dist/src/config/url/index.d.ts +2 -0
- package/dist/src/connection/index.d.ts +0 -1
- package/dist/src/contracts/index.d.ts +1 -1
- package/dist/src/domain/error.d.ts +14 -1
- package/dist/src/domain/helpers.d.ts +16 -1
- package/dist/src/domain/model-config.d.ts +4 -1
- package/dist/src/domain/thread-activities.d.ts +1 -1
- package/dist/src/domain/thread-lifecycle.d.ts +10 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/{connection/node.d.ts → node/connection.d.ts} +1 -1
- package/dist/src/node/index.d.ts +1 -2
- package/dist/src/orchestration/index.d.ts +0 -1
- package/dist/src/orchestration/layer.d.ts +153 -7
- package/dist/src/orchestration/service.d.ts +1 -1
- package/dist/src/rpc/error.d.ts +2 -2
- package/dist/src/rpc/index.d.ts +2 -3
- package/dist/src/rpc/layer.d.ts +574 -46
- package/dist/src/rpc/operation.d.ts +574 -46
- package/dist/src/rpc/ws-group.d.ts +184 -19
- package/dist/src/runtime/index.d.ts +1 -2
- package/dist/src/runtime/layer.d.ts +12 -8
- package/dist/src/t3tools/index.d.ts +1 -1
- package/dist/t3tools.js +2 -2
- package/package.json +25 -21
- package/src/application/actions.test.ts +328 -0
- package/src/application/actions.ts +475 -0
- package/src/application/index.ts +9 -5
- package/src/application/layer.ts +9 -0
- package/src/application/model-selection.ts +2 -2
- package/src/application/project-commands.ts +23 -5
- package/src/application/projects.ts +6 -7
- package/src/application/service.ts +79 -1
- package/src/application/shell-sequence.ts +1 -1
- package/src/application/terminals.ts +2 -1
- package/src/application/thread-commands.ts +1 -1
- package/src/application/thread-update.ts +1 -1
- package/src/application/thread-wait.ts +1 -1
- package/src/application/threads.test.ts +9 -3
- package/src/application/threads.ts +6 -6
- package/src/auth/error.ts +2 -1
- package/src/auth/index.ts +7 -0
- package/src/auth/layer.test-utils.ts +34 -0
- package/src/auth/layer.ts +116 -34
- package/src/auth/local-base-dir.ts +13 -6
- package/src/auth/local-origin.ts +10 -7
- package/src/auth/local-token.ts +28 -23
- package/src/auth/service.test.ts +200 -0
- package/src/auth/service.ts +27 -3
- package/src/auth/transport.ts +2 -2
- package/src/auth/type.ts +47 -1
- package/src/bin.ts +24 -6
- package/src/cli/action-format.ts +110 -0
- package/src/cli/action.ts +398 -0
- package/src/cli/app.ts +6 -0
- package/src/cli/auth.ts +76 -23
- package/src/cli/env/flag.ts +8 -0
- package/src/cli/env/index.ts +2 -0
- package/src/cli/env/selection-layer.test.ts +49 -0
- package/src/cli/env/selection-layer.ts +27 -0
- package/src/cli/env.ts +107 -0
- package/src/cli/extra-args.test.ts +32 -0
- package/src/cli/extra-args.ts +22 -0
- package/src/cli/flags.ts +11 -1
- package/src/cli/format/auth.ts +92 -0
- package/src/cli/format/human.ts +131 -0
- package/src/cli/format/index.ts +12 -0
- package/src/cli/format/model.ts +29 -0
- package/src/cli/format/output.ts +51 -0
- package/src/cli/format/project.ts +32 -0
- package/src/cli/format/terminal.ts +87 -0
- package/src/cli/{thread-format.test.ts → format/thread.test.ts} +6 -4
- package/src/cli/format/thread.ts +185 -0
- package/src/cli/index.ts +20 -0
- package/src/cli/interaction/confirm.ts +64 -0
- package/src/cli/{self-action.ts → interaction/self-action.ts} +8 -6
- package/src/cli/message-input.ts +1 -1
- package/src/cli/model.ts +9 -5
- package/src/cli/project.ts +13 -7
- package/src/cli/projects/delete.ts +13 -12
- package/src/cli/require.ts +9 -7
- package/src/cli/runtime/index.ts +1 -0
- package/src/cli/runtime/service.ts +28 -0
- package/src/{scope → cli/scope}/resolve.ts +11 -9
- package/src/cli/terminal/attach.ts +3 -6
- package/src/cli/terminal/create.ts +10 -9
- package/src/cli/terminal/destroy.ts +13 -11
- package/src/cli/terminal/list.ts +10 -9
- package/src/cli/terminal/read.test-utils.ts +48 -0
- package/src/cli/terminal/read.test.ts +35 -0
- package/src/cli/terminal/read.ts +3 -6
- package/src/cli/terminal/scope.ts +10 -5
- package/src/cli/terminal/shared.ts +1 -1
- package/src/cli/terminal/stream.ts +3 -6
- package/src/cli/terminal/wait.test.ts +5 -3
- package/src/cli/terminal/wait.ts +10 -9
- package/src/cli/terminal/write.test.ts +34 -0
- package/src/cli/terminal/write.ts +10 -9
- package/src/cli/threads/approve.ts +11 -7
- package/src/cli/threads/archive.ts +14 -9
- package/src/cli/threads/callback.ts +6 -4
- package/src/cli/threads/delete.ts +17 -11
- package/src/cli/threads/interrupt.ts +14 -9
- package/src/cli/threads/list.test.ts +5 -3
- package/src/cli/threads/list.ts +10 -10
- package/src/cli/threads/messages.ts +11 -7
- package/src/cli/threads/respond.ts +11 -7
- package/src/cli/threads/send.ts +19 -9
- package/src/cli/threads/show.ts +11 -7
- package/src/cli/threads/start.ts +18 -13
- package/src/cli/threads/unarchive.ts +11 -7
- package/src/cli/threads/update.ts +14 -9
- package/src/cli/threads/wait.ts +11 -7
- package/src/cli/wait-events.ts +1 -1
- package/src/config/config.ts +260 -0
- package/src/config/credential/cipher-node.ts +40 -0
- package/src/config/credential/cipher-web.ts +82 -0
- package/src/config/credential/cipher.ts +39 -0
- package/src/config/credential/env.ts +13 -0
- package/src/config/credential/error.ts +9 -0
- package/src/config/credential/index.ts +6 -0
- package/src/config/credential/service.test-utils.ts +25 -0
- package/src/config/credential/service.test.ts +116 -0
- package/src/config/credential/service.ts +205 -0
- package/src/config/env/env.test-utils.ts +14 -0
- package/src/config/env/env.ts +81 -0
- package/src/config/env/index.ts +2 -0
- package/src/{layout/base-dir.ts → config/env/layout.ts} +0 -9
- package/src/config/environment-name/index.ts +7 -0
- package/src/config/environment-name/name.test.ts +66 -0
- package/src/config/environment-name/name.ts +49 -0
- package/src/config/error.ts +6 -8
- package/src/config/index.ts +16 -5
- package/src/config/keystore/error.ts +9 -0
- package/src/config/keystore/file.ts +96 -0
- package/src/config/keystore/index.ts +4 -0
- package/src/config/keystore/keyring-node.test.ts +12 -0
- package/src/config/keystore/keyring-node.ts +100 -0
- package/src/config/keystore/service.test-utils.ts +15 -0
- package/src/config/keystore/service.test.ts +18 -0
- package/src/config/keystore/service.ts +29 -0
- package/src/config/layer.test-utils.ts +45 -0
- package/src/config/layer.test.ts +209 -0
- package/src/config/paths/index.ts +1 -0
- package/src/config/paths/paths.ts +36 -0
- package/src/config/persist/file-mode.ts +21 -0
- package/src/config/persist/migration.test.ts +71 -0
- package/src/config/persist/migration.ts +82 -0
- package/src/config/persist/persist.test.ts +113 -0
- package/src/config/persist/persist.ts +65 -0
- package/src/config/persist/schema.ts +37 -0
- package/src/config/platform.test-utils.ts +20 -0
- package/src/config/resolve/resolve.test-utils.ts +20 -0
- package/src/config/resolve/resolve.test.ts +137 -0
- package/src/config/resolve/resolve.ts +104 -0
- package/src/config/selection/index.ts +1 -0
- package/src/config/selection/resolve.ts +14 -0
- package/src/config/selection/service.ts +29 -0
- package/src/config/temp-home.test-utils.ts +7 -0
- package/src/config/types.ts +49 -0
- package/src/config/url/error.ts +8 -0
- package/src/config/url/index.ts +7 -0
- package/src/config/url/url.test.ts +31 -0
- package/src/connection/index.ts +0 -1
- package/src/contracts/index.ts +1 -1
- package/src/domain/error.ts +20 -1
- package/src/domain/helpers.test.ts +1 -1
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +1 -1
- package/src/domain/thread-activities.test.ts +1 -1
- package/src/domain/thread-activities.ts +1 -1
- package/src/domain/thread-lifecycle.test.ts +1 -1
- package/src/domain/thread-lifecycle.ts +1 -1
- package/src/effect.test-utils.ts +25 -0
- package/src/index.ts +1 -1
- package/src/{connection/node.ts → node/connection.ts} +1 -1
- package/src/node/index.ts +1 -2
- package/src/orchestration/index.ts +0 -1
- package/src/orchestration/layer.ts +1 -1
- package/src/orchestration/service.ts +1 -1
- package/src/rpc/error.ts +2 -2
- package/src/rpc/index.ts +2 -3
- package/src/rpc/layer.ts +1 -1
- package/src/rpc/ws-group.ts +1 -1
- package/src/runtime/index.ts +2 -1
- package/src/runtime/layer.test-utils.ts +32 -0
- package/src/runtime/layer.test.ts +66 -0
- package/src/runtime/layer.ts +15 -9
- package/src/t3tools/index.ts +1 -1
- package/src/types/marked-terminal.d.ts +11 -0
- package/dist/layout.js +0 -2
- package/dist/scope.js +0 -2
- package/dist/src/cli/output-format.d.ts +0 -11
- package/dist/src/config/layer.d.ts +0 -22
- package/dist/src/config/service.d.ts +0 -22
- package/dist/src/environment/layer.d.ts +0 -3
- package/dist/src/environment/service.d.ts +0 -12
- package/dist/src/layout/index.d.ts +0 -1
- package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +0 -441
- package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +0 -38
- package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +0 -14
- package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +0 -124
- package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +0 -64
- package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +0 -762
- package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +0 -26
- package/dist/upstream-t3code/packages/contracts/src/git.d.ts +0 -500
- package/dist/upstream-t3code/packages/contracts/src/index.d.ts +0 -25
- package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +0 -490
- package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +0 -133
- package/dist/upstream-t3code/packages/contracts/src/model.d.ts +0 -112
- package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +0 -6682
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -116
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +0 -99
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +0 -4276
- package/dist/upstream-t3code/packages/contracts/src/relay.d.ts +0 -1262
- package/dist/upstream-t3code/packages/contracts/src/relayClient.d.ts +0 -48
- package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/review.d.ts +0 -37
- package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +0 -8218
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -2291
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -271
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +0 -177
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +0 -330
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +0 -148
- package/src/cli/auth-format.ts +0 -45
- package/src/cli/confirm.ts +0 -31
- package/src/cli/model-format.ts +0 -18
- package/src/cli/output-format.ts +0 -45
- package/src/cli/project-format.ts +0 -18
- package/src/cli/terminal/commands.test.ts +0 -101
- package/src/cli/terminal-format.ts +0 -167
- package/src/cli/thread-format.ts +0 -128
- package/src/config/layer.ts +0 -105
- package/src/config/service.ts +0 -26
- package/src/environment/layer.ts +0 -12
- package/src/environment/service.ts +0 -13
- package/src/layout/index.ts +0 -1
- /package/dist/src/{scope → cli/scope}/index.d.ts +0 -0
- /package/dist/src/config/{url.d.ts → url/url.d.ts} +0 -0
- /package/src/{scope → cli/scope}/index.ts +0 -0
- /package/src/config/{url.ts → url/url.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Stream from "effect/Stream";
|
|
4
|
-
import { type OrchestrationThreadStreamItem } from "
|
|
4
|
+
import { type OrchestrationThreadStreamItem } from "@t3tools/contracts";
|
|
5
5
|
import { RpcError } from "../rpc/error.ts";
|
|
6
6
|
import { T3RpcOperations } from "../rpc/operation.ts";
|
|
7
7
|
import { T3Orchestration } from "./service.ts";
|
|
@@ -42,6 +42,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
42
42
|
readonly command: string;
|
|
43
43
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
44
44
|
readonly runOnWorktreeCreate: boolean;
|
|
45
|
+
readonly previewUrl?: string | undefined;
|
|
46
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
45
47
|
}[] | undefined;
|
|
46
48
|
} | {
|
|
47
49
|
readonly type: "project.delete";
|
|
@@ -139,6 +141,20 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
139
141
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
140
142
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
141
143
|
readonly createdAt: string;
|
|
144
|
+
} | {
|
|
145
|
+
readonly type: "thread.goal.request";
|
|
146
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
147
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
148
|
+
readonly request: {
|
|
149
|
+
readonly kind: "status";
|
|
150
|
+
} | {
|
|
151
|
+
readonly kind: "control";
|
|
152
|
+
readonly action: "pause" | "resume" | "clear";
|
|
153
|
+
} | {
|
|
154
|
+
readonly kind: "set";
|
|
155
|
+
readonly objective: string;
|
|
156
|
+
};
|
|
157
|
+
readonly createdAt: string;
|
|
142
158
|
} | {
|
|
143
159
|
readonly type: "thread.turn.start";
|
|
144
160
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
@@ -221,7 +237,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
221
237
|
readonly cwd: string;
|
|
222
238
|
readonly keybindingsConfigPath: string;
|
|
223
239
|
readonly keybindings: readonly {
|
|
224
|
-
readonly command: "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "thread.previous" | "thread.next" | "modelPicker.toggle" | "terminal.toggle" | "terminal.split" | "terminal.new" | "terminal.close" | "diff.toggle" | "commandPalette.toggle" | "chat.new" | "chat.newLocal" | "editor.openFavorite" | `script.${string}.run`;
|
|
240
|
+
readonly command: "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "thread.previous" | "thread.next" | "modelPicker.toggle" | "terminal.toggle" | "terminal.split" | "terminal.splitVertical" | "terminal.new" | "terminal.close" | "rightPanel.toggle" | "diff.toggle" | "preview.toggle" | "preview.refresh" | "preview.focusUrl" | "preview.zoomIn" | "preview.zoomOut" | "preview.resetZoom" | "commandPalette.toggle" | "chat.new" | "chat.newLocal" | "editor.openFavorite" | `script.${string}.run`;
|
|
225
241
|
readonly shortcut: {
|
|
226
242
|
readonly key: string;
|
|
227
243
|
readonly metaKey: boolean;
|
|
@@ -235,15 +251,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
235
251
|
readonly name: string;
|
|
236
252
|
} | {
|
|
237
253
|
readonly type: "not";
|
|
238
|
-
readonly node: import("
|
|
254
|
+
readonly node: import("@t3tools/contracts").KeybindingWhenNode;
|
|
239
255
|
} | {
|
|
240
256
|
readonly type: "and";
|
|
241
|
-
readonly left: import("
|
|
242
|
-
readonly right: import("
|
|
257
|
+
readonly left: import("@t3tools/contracts").KeybindingWhenNode;
|
|
258
|
+
readonly right: import("@t3tools/contracts").KeybindingWhenNode;
|
|
243
259
|
} | {
|
|
244
260
|
readonly type: "or";
|
|
245
|
-
readonly left: import("
|
|
246
|
-
readonly right: import("
|
|
261
|
+
readonly left: import("@t3tools/contracts").KeybindingWhenNode;
|
|
262
|
+
readonly right: import("@t3tools/contracts").KeybindingWhenNode;
|
|
247
263
|
} | undefined;
|
|
248
264
|
}[];
|
|
249
265
|
readonly issues: readonly ({
|
|
@@ -320,6 +336,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
320
336
|
readonly groupKey: string;
|
|
321
337
|
} | undefined;
|
|
322
338
|
readonly showInteractionModeToggle?: boolean | undefined;
|
|
339
|
+
readonly requiresNewThreadForModelChange?: boolean | undefined;
|
|
323
340
|
readonly message?: string | undefined;
|
|
324
341
|
readonly availability?: "available" | "unavailable" | undefined;
|
|
325
342
|
readonly unavailableReason?: string | undefined;
|
|
@@ -383,6 +400,11 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
383
400
|
readonly apiEndpoint: string;
|
|
384
401
|
readonly customModels: readonly string[];
|
|
385
402
|
};
|
|
403
|
+
readonly grok: {
|
|
404
|
+
readonly enabled: boolean;
|
|
405
|
+
readonly binaryPath: string;
|
|
406
|
+
readonly customModels: readonly string[];
|
|
407
|
+
};
|
|
386
408
|
readonly opencode: {
|
|
387
409
|
readonly enabled: boolean;
|
|
388
410
|
readonly binaryPath: string;
|
|
@@ -478,6 +500,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
478
500
|
readonly groupKey: string;
|
|
479
501
|
} | undefined;
|
|
480
502
|
readonly showInteractionModeToggle?: boolean | undefined;
|
|
503
|
+
readonly requiresNewThreadForModelChange?: boolean | undefined;
|
|
481
504
|
readonly message?: string | undefined;
|
|
482
505
|
readonly availability?: "available" | "unavailable" | undefined;
|
|
483
506
|
readonly unavailableReason?: string | undefined;
|
|
@@ -519,6 +542,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
519
542
|
readonly command: string;
|
|
520
543
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
521
544
|
readonly runOnWorktreeCreate: boolean;
|
|
545
|
+
readonly previewUrl?: string | undefined;
|
|
546
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
522
547
|
}[];
|
|
523
548
|
readonly createdAt: string;
|
|
524
549
|
readonly updatedAt: string;
|
|
@@ -577,6 +602,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
577
602
|
readonly updatedAt: string;
|
|
578
603
|
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
579
604
|
} | null;
|
|
605
|
+
readonly goal: {
|
|
606
|
+
readonly objective: string;
|
|
607
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
608
|
+
readonly tokensUsed: number;
|
|
609
|
+
readonly tokenBudget: number | null;
|
|
610
|
+
readonly timeUsedSeconds: number;
|
|
611
|
+
readonly createdAt: string;
|
|
612
|
+
readonly updatedAt: string;
|
|
613
|
+
} | null;
|
|
580
614
|
readonly latestUserMessageAt: string | null;
|
|
581
615
|
readonly hasPendingApprovals: boolean;
|
|
582
616
|
readonly hasPendingUserInput: boolean;
|
|
@@ -604,6 +638,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
604
638
|
readonly command: string;
|
|
605
639
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
606
640
|
readonly runOnWorktreeCreate: boolean;
|
|
641
|
+
readonly previewUrl?: string | undefined;
|
|
642
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
607
643
|
}[];
|
|
608
644
|
readonly createdAt: string;
|
|
609
645
|
readonly updatedAt: string;
|
|
@@ -662,6 +698,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
662
698
|
readonly updatedAt: string;
|
|
663
699
|
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
664
700
|
} | null;
|
|
701
|
+
readonly goal: {
|
|
702
|
+
readonly objective: string;
|
|
703
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
704
|
+
readonly tokensUsed: number;
|
|
705
|
+
readonly tokenBudget: number | null;
|
|
706
|
+
readonly timeUsedSeconds: number;
|
|
707
|
+
readonly createdAt: string;
|
|
708
|
+
readonly updatedAt: string;
|
|
709
|
+
} | null;
|
|
665
710
|
readonly latestUserMessageAt: string | null;
|
|
666
711
|
readonly hasPendingApprovals: boolean;
|
|
667
712
|
readonly hasPendingUserInput: boolean;
|
|
@@ -701,6 +746,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
701
746
|
readonly updatedAt: string;
|
|
702
747
|
readonly archivedAt: string | null;
|
|
703
748
|
readonly deletedAt: string | null;
|
|
749
|
+
readonly goal: {
|
|
750
|
+
readonly objective: string;
|
|
751
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
752
|
+
readonly tokensUsed: number;
|
|
753
|
+
readonly tokenBudget: number | null;
|
|
754
|
+
readonly timeUsedSeconds: number;
|
|
755
|
+
readonly createdAt: string;
|
|
756
|
+
readonly updatedAt: string;
|
|
757
|
+
} | null;
|
|
704
758
|
readonly messages: readonly {
|
|
705
759
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
706
760
|
readonly role: "user" | "assistant" | "system";
|
|
@@ -796,6 +850,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
796
850
|
readonly updatedAt: string;
|
|
797
851
|
readonly archivedAt: string | null;
|
|
798
852
|
readonly deletedAt: string | null;
|
|
853
|
+
readonly goal: {
|
|
854
|
+
readonly objective: string;
|
|
855
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
856
|
+
readonly tokensUsed: number;
|
|
857
|
+
readonly tokenBudget: number | null;
|
|
858
|
+
readonly timeUsedSeconds: number;
|
|
859
|
+
readonly createdAt: string;
|
|
860
|
+
readonly updatedAt: string;
|
|
861
|
+
} | null;
|
|
799
862
|
readonly messages: readonly {
|
|
800
863
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
801
864
|
readonly role: "user" | "assistant" | "system";
|
|
@@ -876,6 +939,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
876
939
|
readonly command: string;
|
|
877
940
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
878
941
|
readonly runOnWorktreeCreate: boolean;
|
|
942
|
+
readonly previewUrl?: string | undefined;
|
|
943
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
879
944
|
}[];
|
|
880
945
|
readonly createdAt: string;
|
|
881
946
|
readonly updatedAt: string;
|
|
@@ -942,6 +1007,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
942
1007
|
readonly command: string;
|
|
943
1008
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
944
1009
|
readonly runOnWorktreeCreate: boolean;
|
|
1010
|
+
readonly previewUrl?: string | undefined;
|
|
1011
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
945
1012
|
}[] | undefined;
|
|
946
1013
|
};
|
|
947
1014
|
readonly sequence: number;
|
|
@@ -1391,6 +1458,85 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
1391
1458
|
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1392
1459
|
readonly ingestedAt?: string | undefined;
|
|
1393
1460
|
};
|
|
1461
|
+
} | {
|
|
1462
|
+
readonly type: "thread.goal-requested";
|
|
1463
|
+
readonly payload: {
|
|
1464
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1465
|
+
readonly request: {
|
|
1466
|
+
readonly kind: "status";
|
|
1467
|
+
} | {
|
|
1468
|
+
readonly kind: "control";
|
|
1469
|
+
readonly action: "pause" | "resume" | "clear";
|
|
1470
|
+
} | {
|
|
1471
|
+
readonly kind: "set";
|
|
1472
|
+
readonly objective: string;
|
|
1473
|
+
};
|
|
1474
|
+
readonly createdAt: string;
|
|
1475
|
+
};
|
|
1476
|
+
readonly sequence: number;
|
|
1477
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1478
|
+
readonly aggregateKind: "project" | "thread";
|
|
1479
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1480
|
+
readonly occurredAt: string;
|
|
1481
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1482
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1483
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1484
|
+
readonly metadata: {
|
|
1485
|
+
readonly providerTurnId?: string | undefined;
|
|
1486
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1487
|
+
readonly adapterKey?: string | undefined;
|
|
1488
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1489
|
+
readonly ingestedAt?: string | undefined;
|
|
1490
|
+
};
|
|
1491
|
+
} | {
|
|
1492
|
+
readonly type: "thread.goal-updated";
|
|
1493
|
+
readonly payload: {
|
|
1494
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1495
|
+
readonly goal: {
|
|
1496
|
+
readonly objective: string;
|
|
1497
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
1498
|
+
readonly tokensUsed: number;
|
|
1499
|
+
readonly tokenBudget: number | null;
|
|
1500
|
+
readonly timeUsedSeconds: number;
|
|
1501
|
+
readonly createdAt: string;
|
|
1502
|
+
readonly updatedAt: string;
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
readonly sequence: number;
|
|
1506
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1507
|
+
readonly aggregateKind: "project" | "thread";
|
|
1508
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1509
|
+
readonly occurredAt: string;
|
|
1510
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1511
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1512
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1513
|
+
readonly metadata: {
|
|
1514
|
+
readonly providerTurnId?: string | undefined;
|
|
1515
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1516
|
+
readonly adapterKey?: string | undefined;
|
|
1517
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1518
|
+
readonly ingestedAt?: string | undefined;
|
|
1519
|
+
};
|
|
1520
|
+
} | {
|
|
1521
|
+
readonly type: "thread.goal-cleared";
|
|
1522
|
+
readonly payload: {
|
|
1523
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1524
|
+
};
|
|
1525
|
+
readonly sequence: number;
|
|
1526
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1527
|
+
readonly aggregateKind: "project" | "thread";
|
|
1528
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1529
|
+
readonly occurredAt: string;
|
|
1530
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1531
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1532
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1533
|
+
readonly metadata: {
|
|
1534
|
+
readonly providerTurnId?: string | undefined;
|
|
1535
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1536
|
+
readonly adapterKey?: string | undefined;
|
|
1537
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1538
|
+
readonly ingestedAt?: string | undefined;
|
|
1539
|
+
};
|
|
1394
1540
|
} | {
|
|
1395
1541
|
readonly type: "thread.proposed-plan-upserted";
|
|
1396
1542
|
readonly payload: {
|
|
@@ -2,7 +2,7 @@ import * as Context from "effect/Context";
|
|
|
2
2
|
import type * as Effect from "effect/Effect";
|
|
3
3
|
import type * as Scope from "effect/Scope";
|
|
4
4
|
import type * as Stream from "effect/Stream";
|
|
5
|
-
import type { ClientOrchestrationCommand, DispatchResult, OrchestrationEvent, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadStreamItem, ServerProviders } from "
|
|
5
|
+
import type { ClientOrchestrationCommand, DispatchResult, OrchestrationEvent, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadStreamItem, ServerProviders } from "@t3tools/contracts";
|
|
6
6
|
import type { RpcError } from "../rpc/error.ts";
|
|
7
7
|
export type OrchestrationError = RpcError;
|
|
8
8
|
export type OpenThread = {
|
package/dist/src/rpc/error.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { EnvironmentAuthorizationError, KeybindingsConfigError, OrchestrationDispatchCommandError, OrchestrationGetSnapshotError, ServerSettingsError, TerminalCwdError, TerminalHistoryError, TerminalNotRunningError, TerminalSessionLookupError } from "
|
|
2
|
+
import { EnvironmentAuthorizationError, KeybindingsConfigError, OrchestrationDispatchCommandError, OrchestrationGetSnapshotError, ServerSettingsError, TerminalCwdError, TerminalHistoryError, TerminalNotRunningError, TerminalSessionLookupError } from "@t3tools/contracts";
|
|
3
3
|
import { HttpClientError } from "effect/unstable/http";
|
|
4
4
|
import { RpcClientError } from "effect/unstable/rpc";
|
|
5
5
|
import { AuthTransportError } from "../auth/error.ts";
|
|
6
6
|
import { T3CodeConnectionError } from "../connection/error.ts";
|
|
7
|
-
import { UrlError } from "../config/error.ts";
|
|
7
|
+
import { UrlError } from "../config/url/error.ts";
|
|
8
8
|
declare const RpcErrorCauseSchema: Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, typeof TerminalCwdError, typeof TerminalHistoryError, typeof TerminalNotRunningError, typeof TerminalSessionLookupError, typeof AuthTransportError, typeof T3CodeConnectionError, typeof HttpClientError.HttpClientErrorSchema, typeof UrlError, Schema.instanceOf<Schema.SchemaError, unknown>]>;
|
|
9
9
|
export type RpcKnownCause = Schema.Schema.Type<typeof RpcErrorCauseSchema>;
|
|
10
10
|
declare const RpcError_base: Schema.Class<RpcError, Schema.TaggedStruct<"RpcError", {
|
package/dist/src/rpc/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { RpcError
|
|
1
|
+
export { RpcError } from "./error.ts";
|
|
2
2
|
export { makeT3RpcLayer, T3RpcLive } from "./layer.ts";
|
|
3
3
|
export { T3RpcOperations, T3RpcOperationsLive, makeT3RpcOperations } from "./operation.ts";
|
|
4
|
-
export type { T3RpcOperationsService } from "./operation.ts";
|
|
5
4
|
export { T3Rpc } from "./service.ts";
|
|
6
|
-
export type {
|
|
5
|
+
export type { WsClient } from "./service.ts";
|