t3code-cli 0.10.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 +75 -11
- package/dist/application.js +2 -2
- package/dist/auth.js +1 -1
- package/dist/bin.js +86754 -2675
- package/dist/cli.js +15 -2
- package/dist/config.js +120 -2
- package/dist/connection.js +2 -12
- package/dist/index.js +1 -1
- package/dist/node.js +6 -0
- package/dist/orchestration.js +2 -2
- package/dist/rpc.js +2 -2
- package/dist/runtime.js +2 -2
- package/dist/shared.js +43850 -38040
- package/dist/src/application/actions.d.ts +25 -0
- package/dist/src/application/index.d.ts +3 -2
- package/dist/src/application/layer.d.ts +99 -842
- package/dist/src/application/model-selection.d.ts +17 -2
- package/dist/src/application/models.d.ts +1 -87
- package/dist/src/application/project-commands.d.ts +31 -2
- package/dist/src/application/projects.d.ts +15 -137
- package/dist/src/application/service.d.ts +147 -5
- package/dist/src/application/shell-sequence.d.ts +5 -4
- package/dist/src/application/terminals.d.ts +66 -0
- package/dist/src/application/thread-commands.d.ts +48 -1
- package/dist/src/application/thread-update.d.ts +8 -0
- package/dist/src/application/thread-wait.d.ts +4 -6
- package/dist/src/application/threads.d.ts +36 -14
- 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 +5 -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 +27 -1
- package/dist/src/domain/helpers.d.ts +8 -2
- package/dist/src/domain/model-config.d.ts +30 -1
- package/dist/src/domain/thread-activities.d.ts +1 -1
- package/dist/src/domain/thread-lifecycle.d.ts +3 -2
- 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 -0
- package/dist/src/orchestration/index.d.ts +1 -1
- package/dist/src/orchestration/layer.d.ts +120 -829
- package/dist/src/orchestration/service.d.ts +2 -1
- package/dist/src/rpc/error.d.ts +5 -3
- package/dist/src/rpc/index.d.ts +5 -1
- package/dist/src/rpc/layer.d.ts +1166 -40
- package/dist/src/rpc/operation.d.ts +6280 -0
- package/dist/src/rpc/ws-group.d.ts +372 -27
- 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 +27 -19
- package/src/application/actions.test.ts +328 -0
- package/src/application/actions.ts +475 -0
- package/src/application/index.ts +32 -2
- package/src/application/layer.ts +43 -5
- package/src/application/model-selection.ts +70 -4
- package/src/application/models.ts +14 -14
- package/src/application/project-commands.ts +38 -5
- package/src/application/projects.ts +49 -20
- package/src/application/service.ts +275 -78
- package/src/application/shell-sequence.ts +6 -8
- package/src/application/terminals.ts +208 -0
- package/src/application/thread-commands.test.ts +43 -0
- package/src/application/thread-commands.ts +82 -1
- package/src/application/thread-update.ts +72 -0
- package/src/application/thread-wait.ts +47 -48
- package/src/application/threads.test.ts +172 -0
- package/src/application/threads.ts +128 -45
- 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 +26 -6
- package/src/cli/action-format.ts +110 -0
- package/src/cli/action.ts +398 -0
- package/src/cli/app.ts +8 -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/error.ts +26 -3
- package/src/cli/extra-args.test.ts +32 -0
- package/src/cli/extra-args.ts +22 -0
- package/src/cli/flags.ts +26 -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/format/thread.test.ts +34 -0
- package/src/cli/format/thread.ts +185 -0
- package/src/cli/index.ts +20 -0
- package/src/cli/input/layer.ts +20 -0
- package/src/cli/input/service.ts +1 -0
- package/src/cli/interaction/confirm.ts +64 -0
- package/src/cli/interaction/self-action.ts +36 -0
- package/src/cli/message-input.ts +1 -1
- package/src/cli/model.ts +9 -5
- package/src/cli/project.ts +15 -8
- package/src/cli/projects/delete.ts +51 -0
- 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 +29 -0
- package/src/cli/terminal/create.ts +55 -0
- package/src/cli/terminal/destroy.ts +62 -0
- package/src/cli/terminal/encoding.test.ts +63 -0
- package/src/cli/terminal/encoding.ts +23 -0
- package/src/cli/terminal/error.ts +14 -0
- package/src/cli/terminal/io-node-layer.ts +82 -0
- package/src/cli/terminal/io-service.ts +25 -0
- package/src/cli/terminal/list.ts +36 -0
- 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 +99 -0
- package/src/cli/terminal/scope.ts +35 -0
- package/src/cli/terminal/shared.ts +250 -0
- package/src/cli/terminal/stream.ts +61 -0
- package/src/cli/terminal/wait.test.ts +148 -0
- package/src/cli/terminal/wait.ts +223 -0
- package/src/cli/terminal/write.test.ts +34 -0
- package/src/cli/terminal/write.ts +133 -0
- package/src/cli/terminal.ts +26 -0
- package/src/cli/thread.ts +8 -0
- package/src/cli/threads/approve.ts +11 -7
- package/src/cli/threads/archive.ts +23 -25
- package/src/cli/threads/callback.ts +6 -4
- package/src/cli/threads/delete.ts +67 -0
- package/src/cli/threads/interrupt.ts +57 -0
- package/src/cli/threads/list.test.ts +71 -0
- package/src/cli/threads/list.ts +25 -13
- package/src/cli/threads/messages.ts +11 -7
- package/src/cli/threads/respond.ts +11 -7
- package/src/cli/threads/send.ts +39 -9
- package/src/cli/threads/show.ts +11 -7
- package/src/cli/threads/start.ts +18 -13
- package/src/cli/threads/unarchive.ts +48 -0
- package/src/cli/threads/update.ts +155 -0
- 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 +39 -1
- package/src/domain/helpers.test.ts +1 -1
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +5 -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 +15 -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 -0
- package/src/orchestration/index.ts +1 -1
- package/src/orchestration/layer.ts +34 -86
- package/src/orchestration/service.ts +5 -1
- package/src/rpc/error.ts +12 -2
- package/src/rpc/index.ts +5 -1
- package/src/rpc/layer.ts +1 -1
- package/src/rpc/operation.ts +83 -0
- package/src/rpc/ws-group.ts +25 -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 +22 -11
- 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 -9
- 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 -785
- 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 -496
- 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 -7338
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -130
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +0 -99
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +0 -4450
- 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 -8710
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -2336
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -292
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +0 -177
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +0 -333
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +0 -148
- package/src/cli/auth-format.ts +0 -45
- package/src/cli/model-format.ts +0 -18
- package/src/cli/output-format.ts +0 -41
- package/src/cli/project-format.ts +0 -11
- package/src/cli/thread-format.ts +0 -121
- 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,8 +1,9 @@
|
|
|
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 "@t3tools/contracts";
|
|
4
5
|
import { RpcError } from "../rpc/error.ts";
|
|
5
|
-
import {
|
|
6
|
+
import { T3RpcOperations } from "../rpc/operation.ts";
|
|
6
7
|
import { T3Orchestration } from "./service.ts";
|
|
7
8
|
export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
8
9
|
dispatch: (command: {
|
|
@@ -41,6 +42,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
41
42
|
readonly command: string;
|
|
42
43
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
43
44
|
readonly runOnWorktreeCreate: boolean;
|
|
45
|
+
readonly previewUrl?: string | undefined;
|
|
46
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
44
47
|
}[] | undefined;
|
|
45
48
|
} | {
|
|
46
49
|
readonly type: "project.delete";
|
|
@@ -234,7 +237,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
234
237
|
readonly cwd: string;
|
|
235
238
|
readonly keybindingsConfigPath: string;
|
|
236
239
|
readonly keybindings: readonly {
|
|
237
|
-
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`;
|
|
238
241
|
readonly shortcut: {
|
|
239
242
|
readonly key: string;
|
|
240
243
|
readonly metaKey: boolean;
|
|
@@ -248,15 +251,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
248
251
|
readonly name: string;
|
|
249
252
|
} | {
|
|
250
253
|
readonly type: "not";
|
|
251
|
-
readonly node: import("
|
|
254
|
+
readonly node: import("@t3tools/contracts").KeybindingWhenNode;
|
|
252
255
|
} | {
|
|
253
256
|
readonly type: "and";
|
|
254
|
-
readonly left: import("
|
|
255
|
-
readonly right: import("
|
|
257
|
+
readonly left: import("@t3tools/contracts").KeybindingWhenNode;
|
|
258
|
+
readonly right: import("@t3tools/contracts").KeybindingWhenNode;
|
|
256
259
|
} | {
|
|
257
260
|
readonly type: "or";
|
|
258
|
-
readonly left: import("
|
|
259
|
-
readonly right: import("
|
|
261
|
+
readonly left: import("@t3tools/contracts").KeybindingWhenNode;
|
|
262
|
+
readonly right: import("@t3tools/contracts").KeybindingWhenNode;
|
|
260
263
|
} | undefined;
|
|
261
264
|
}[];
|
|
262
265
|
readonly issues: readonly ({
|
|
@@ -539,6 +542,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
539
542
|
readonly command: string;
|
|
540
543
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
541
544
|
readonly runOnWorktreeCreate: boolean;
|
|
545
|
+
readonly previewUrl?: string | undefined;
|
|
546
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
542
547
|
}[];
|
|
543
548
|
readonly createdAt: string;
|
|
544
549
|
readonly updatedAt: string;
|
|
@@ -599,7 +604,103 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
599
604
|
} | null;
|
|
600
605
|
readonly goal: {
|
|
601
606
|
readonly objective: string;
|
|
602
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
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;
|
|
614
|
+
readonly latestUserMessageAt: string | null;
|
|
615
|
+
readonly hasPendingApprovals: boolean;
|
|
616
|
+
readonly hasPendingUserInput: boolean;
|
|
617
|
+
readonly hasActionableProposedPlan: boolean;
|
|
618
|
+
}[];
|
|
619
|
+
readonly updatedAt: string;
|
|
620
|
+
}, RpcError, never>;
|
|
621
|
+
getArchivedShellSnapshot: () => Effect.Effect<{
|
|
622
|
+
readonly snapshotSequence: number;
|
|
623
|
+
readonly projects: readonly {
|
|
624
|
+
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
625
|
+
readonly title: string;
|
|
626
|
+
readonly workspaceRoot: string;
|
|
627
|
+
readonly defaultModelSelection: {
|
|
628
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
629
|
+
readonly model: string;
|
|
630
|
+
readonly options?: readonly {
|
|
631
|
+
readonly id: string;
|
|
632
|
+
readonly value: string | boolean;
|
|
633
|
+
}[];
|
|
634
|
+
} | null;
|
|
635
|
+
readonly scripts: readonly {
|
|
636
|
+
readonly id: string;
|
|
637
|
+
readonly name: string;
|
|
638
|
+
readonly command: string;
|
|
639
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
640
|
+
readonly runOnWorktreeCreate: boolean;
|
|
641
|
+
readonly previewUrl?: string | undefined;
|
|
642
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
643
|
+
}[];
|
|
644
|
+
readonly createdAt: string;
|
|
645
|
+
readonly updatedAt: string;
|
|
646
|
+
readonly repositoryIdentity?: {
|
|
647
|
+
readonly canonicalKey: string;
|
|
648
|
+
readonly locator: {
|
|
649
|
+
readonly source: "git-remote";
|
|
650
|
+
readonly remoteName: string;
|
|
651
|
+
readonly remoteUrl: string;
|
|
652
|
+
};
|
|
653
|
+
readonly rootPath?: string;
|
|
654
|
+
readonly displayName?: string;
|
|
655
|
+
readonly provider?: string;
|
|
656
|
+
readonly owner?: string;
|
|
657
|
+
readonly name?: string;
|
|
658
|
+
} | null | undefined;
|
|
659
|
+
}[];
|
|
660
|
+
readonly threads: readonly {
|
|
661
|
+
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
662
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
663
|
+
readonly title: string;
|
|
664
|
+
readonly modelSelection: {
|
|
665
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
666
|
+
readonly model: string;
|
|
667
|
+
readonly options?: readonly {
|
|
668
|
+
readonly id: string;
|
|
669
|
+
readonly value: string | boolean;
|
|
670
|
+
}[];
|
|
671
|
+
};
|
|
672
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
673
|
+
readonly interactionMode: "default" | "plan";
|
|
674
|
+
readonly branch: string | null;
|
|
675
|
+
readonly worktreePath: string | null;
|
|
676
|
+
readonly latestTurn: {
|
|
677
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
678
|
+
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
679
|
+
readonly requestedAt: string;
|
|
680
|
+
readonly startedAt: string | null;
|
|
681
|
+
readonly completedAt: string | null;
|
|
682
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
683
|
+
readonly sourceProposedPlan?: {
|
|
684
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
685
|
+
readonly planId: string;
|
|
686
|
+
} | undefined;
|
|
687
|
+
} | null;
|
|
688
|
+
readonly createdAt: string;
|
|
689
|
+
readonly updatedAt: string;
|
|
690
|
+
readonly archivedAt: string | null;
|
|
691
|
+
readonly session: {
|
|
692
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
693
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
694
|
+
readonly providerName: string | null;
|
|
695
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
696
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
697
|
+
readonly lastError: string | null;
|
|
698
|
+
readonly updatedAt: string;
|
|
699
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
700
|
+
} | null;
|
|
701
|
+
readonly goal: {
|
|
702
|
+
readonly objective: string;
|
|
703
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
603
704
|
readonly tokensUsed: number;
|
|
604
705
|
readonly tokenBudget: number | null;
|
|
605
706
|
readonly timeUsedSeconds: number;
|
|
@@ -647,7 +748,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
647
748
|
readonly deletedAt: string | null;
|
|
648
749
|
readonly goal: {
|
|
649
750
|
readonly objective: string;
|
|
650
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
751
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
651
752
|
readonly tokensUsed: number;
|
|
652
753
|
readonly tokenBudget: number | null;
|
|
653
754
|
readonly timeUsedSeconds: number;
|
|
@@ -714,822 +815,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
714
815
|
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
715
816
|
} | null;
|
|
716
817
|
}, RpcError, never>;
|
|
717
|
-
watchShellSequence: () => Stream.Stream<number,
|
|
718
|
-
watchThreadItems: (threadId: string) => Stream.Stream<
|
|
719
|
-
readonly kind: "snapshot";
|
|
720
|
-
readonly snapshot: {
|
|
721
|
-
readonly snapshotSequence: number;
|
|
722
|
-
readonly thread: {
|
|
723
|
-
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
724
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
725
|
-
readonly title: string;
|
|
726
|
-
readonly modelSelection: {
|
|
727
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
728
|
-
readonly model: string;
|
|
729
|
-
readonly options?: readonly {
|
|
730
|
-
readonly id: string;
|
|
731
|
-
readonly value: string | boolean;
|
|
732
|
-
}[];
|
|
733
|
-
};
|
|
734
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
735
|
-
readonly interactionMode: "default" | "plan";
|
|
736
|
-
readonly branch: string | null;
|
|
737
|
-
readonly worktreePath: string | null;
|
|
738
|
-
readonly latestTurn: {
|
|
739
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
740
|
-
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
741
|
-
readonly requestedAt: string;
|
|
742
|
-
readonly startedAt: string | null;
|
|
743
|
-
readonly completedAt: string | null;
|
|
744
|
-
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
745
|
-
readonly sourceProposedPlan?: {
|
|
746
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
747
|
-
readonly planId: string;
|
|
748
|
-
} | undefined;
|
|
749
|
-
} | null;
|
|
750
|
-
readonly createdAt: string;
|
|
751
|
-
readonly updatedAt: string;
|
|
752
|
-
readonly archivedAt: string | null;
|
|
753
|
-
readonly deletedAt: string | null;
|
|
754
|
-
readonly goal: {
|
|
755
|
-
readonly objective: string;
|
|
756
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
757
|
-
readonly tokensUsed: number;
|
|
758
|
-
readonly tokenBudget: number | null;
|
|
759
|
-
readonly timeUsedSeconds: number;
|
|
760
|
-
readonly createdAt: string;
|
|
761
|
-
readonly updatedAt: string;
|
|
762
|
-
} | null;
|
|
763
|
-
readonly messages: readonly {
|
|
764
|
-
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
765
|
-
readonly role: "user" | "assistant" | "system";
|
|
766
|
-
readonly text: string;
|
|
767
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
768
|
-
readonly streaming: boolean;
|
|
769
|
-
readonly createdAt: string;
|
|
770
|
-
readonly updatedAt: string;
|
|
771
|
-
readonly attachments?: readonly {
|
|
772
|
-
readonly type: "image";
|
|
773
|
-
readonly id: string;
|
|
774
|
-
readonly name: string;
|
|
775
|
-
readonly mimeType: string;
|
|
776
|
-
readonly sizeBytes: number;
|
|
777
|
-
}[] | undefined;
|
|
778
|
-
}[];
|
|
779
|
-
readonly proposedPlans: readonly {
|
|
780
|
-
readonly id: string;
|
|
781
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
782
|
-
readonly planMarkdown: string;
|
|
783
|
-
readonly implementedAt: string | null;
|
|
784
|
-
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
785
|
-
readonly createdAt: string;
|
|
786
|
-
readonly updatedAt: string;
|
|
787
|
-
}[];
|
|
788
|
-
readonly activities: readonly {
|
|
789
|
-
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
790
|
-
readonly tone: "error" | "info" | "tool" | "approval";
|
|
791
|
-
readonly kind: string;
|
|
792
|
-
readonly summary: string;
|
|
793
|
-
readonly payload: unknown;
|
|
794
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
795
|
-
readonly createdAt: string;
|
|
796
|
-
readonly sequence?: number | undefined;
|
|
797
|
-
}[];
|
|
798
|
-
readonly checkpoints: readonly {
|
|
799
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
800
|
-
readonly checkpointTurnCount: number;
|
|
801
|
-
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
802
|
-
readonly status: "error" | "ready" | "missing";
|
|
803
|
-
readonly files: readonly {
|
|
804
|
-
readonly path: string;
|
|
805
|
-
readonly kind: string;
|
|
806
|
-
readonly additions: number;
|
|
807
|
-
readonly deletions: number;
|
|
808
|
-
}[];
|
|
809
|
-
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
810
|
-
readonly completedAt: string;
|
|
811
|
-
}[];
|
|
812
|
-
readonly session: {
|
|
813
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
814
|
-
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
815
|
-
readonly providerName: string | null;
|
|
816
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
817
|
-
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
818
|
-
readonly lastError: string | null;
|
|
819
|
-
readonly updatedAt: string;
|
|
820
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
821
|
-
} | null;
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
} | {
|
|
825
|
-
readonly kind: "event";
|
|
826
|
-
readonly event: {
|
|
827
|
-
readonly type: "project.created";
|
|
828
|
-
readonly payload: {
|
|
829
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
830
|
-
readonly title: string;
|
|
831
|
-
readonly workspaceRoot: string;
|
|
832
|
-
readonly defaultModelSelection: {
|
|
833
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
834
|
-
readonly model: string;
|
|
835
|
-
readonly options?: readonly {
|
|
836
|
-
readonly id: string;
|
|
837
|
-
readonly value: string | boolean;
|
|
838
|
-
}[];
|
|
839
|
-
} | null;
|
|
840
|
-
readonly scripts: readonly {
|
|
841
|
-
readonly id: string;
|
|
842
|
-
readonly name: string;
|
|
843
|
-
readonly command: string;
|
|
844
|
-
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
845
|
-
readonly runOnWorktreeCreate: boolean;
|
|
846
|
-
}[];
|
|
847
|
-
readonly createdAt: string;
|
|
848
|
-
readonly updatedAt: string;
|
|
849
|
-
readonly repositoryIdentity?: {
|
|
850
|
-
readonly canonicalKey: string;
|
|
851
|
-
readonly locator: {
|
|
852
|
-
readonly source: "git-remote";
|
|
853
|
-
readonly remoteName: string;
|
|
854
|
-
readonly remoteUrl: string;
|
|
855
|
-
};
|
|
856
|
-
readonly rootPath?: string;
|
|
857
|
-
readonly displayName?: string;
|
|
858
|
-
readonly provider?: string;
|
|
859
|
-
readonly owner?: string;
|
|
860
|
-
readonly name?: string;
|
|
861
|
-
} | null | undefined;
|
|
862
|
-
};
|
|
863
|
-
readonly sequence: number;
|
|
864
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
865
|
-
readonly aggregateKind: "project" | "thread";
|
|
866
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
867
|
-
readonly occurredAt: string;
|
|
868
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
869
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
870
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
871
|
-
readonly metadata: {
|
|
872
|
-
readonly providerTurnId?: string | undefined;
|
|
873
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
874
|
-
readonly adapterKey?: string | undefined;
|
|
875
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
876
|
-
readonly ingestedAt?: string | undefined;
|
|
877
|
-
};
|
|
878
|
-
} | {
|
|
879
|
-
readonly type: "project.meta-updated";
|
|
880
|
-
readonly payload: {
|
|
881
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
882
|
-
readonly updatedAt: string;
|
|
883
|
-
readonly title?: string | undefined;
|
|
884
|
-
readonly workspaceRoot?: string | undefined;
|
|
885
|
-
readonly repositoryIdentity?: {
|
|
886
|
-
readonly canonicalKey: string;
|
|
887
|
-
readonly locator: {
|
|
888
|
-
readonly source: "git-remote";
|
|
889
|
-
readonly remoteName: string;
|
|
890
|
-
readonly remoteUrl: string;
|
|
891
|
-
};
|
|
892
|
-
readonly rootPath?: string;
|
|
893
|
-
readonly displayName?: string;
|
|
894
|
-
readonly provider?: string;
|
|
895
|
-
readonly owner?: string;
|
|
896
|
-
readonly name?: string;
|
|
897
|
-
} | null | undefined;
|
|
898
|
-
readonly defaultModelSelection?: {
|
|
899
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
900
|
-
readonly model: string;
|
|
901
|
-
readonly options?: readonly {
|
|
902
|
-
readonly id: string;
|
|
903
|
-
readonly value: string | boolean;
|
|
904
|
-
}[];
|
|
905
|
-
} | null | undefined;
|
|
906
|
-
readonly scripts?: readonly {
|
|
907
|
-
readonly id: string;
|
|
908
|
-
readonly name: string;
|
|
909
|
-
readonly command: string;
|
|
910
|
-
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
911
|
-
readonly runOnWorktreeCreate: boolean;
|
|
912
|
-
}[] | undefined;
|
|
913
|
-
};
|
|
914
|
-
readonly sequence: number;
|
|
915
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
916
|
-
readonly aggregateKind: "project" | "thread";
|
|
917
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
918
|
-
readonly occurredAt: string;
|
|
919
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
920
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
921
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
922
|
-
readonly metadata: {
|
|
923
|
-
readonly providerTurnId?: string | undefined;
|
|
924
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
925
|
-
readonly adapterKey?: string | undefined;
|
|
926
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
927
|
-
readonly ingestedAt?: string | undefined;
|
|
928
|
-
};
|
|
929
|
-
} | {
|
|
930
|
-
readonly type: "project.deleted";
|
|
931
|
-
readonly payload: {
|
|
932
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
933
|
-
readonly deletedAt: string;
|
|
934
|
-
};
|
|
935
|
-
readonly sequence: number;
|
|
936
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
937
|
-
readonly aggregateKind: "project" | "thread";
|
|
938
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
939
|
-
readonly occurredAt: string;
|
|
940
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
941
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
942
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
943
|
-
readonly metadata: {
|
|
944
|
-
readonly providerTurnId?: string | undefined;
|
|
945
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
946
|
-
readonly adapterKey?: string | undefined;
|
|
947
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
948
|
-
readonly ingestedAt?: string | undefined;
|
|
949
|
-
};
|
|
950
|
-
} | {
|
|
951
|
-
readonly type: "thread.created";
|
|
952
|
-
readonly payload: {
|
|
953
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
954
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
955
|
-
readonly title: string;
|
|
956
|
-
readonly modelSelection: {
|
|
957
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
958
|
-
readonly model: string;
|
|
959
|
-
readonly options?: readonly {
|
|
960
|
-
readonly id: string;
|
|
961
|
-
readonly value: string | boolean;
|
|
962
|
-
}[];
|
|
963
|
-
};
|
|
964
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
965
|
-
readonly interactionMode: "default" | "plan";
|
|
966
|
-
readonly branch: string | null;
|
|
967
|
-
readonly worktreePath: string | null;
|
|
968
|
-
readonly createdAt: string;
|
|
969
|
-
readonly updatedAt: string;
|
|
970
|
-
};
|
|
971
|
-
readonly sequence: number;
|
|
972
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
973
|
-
readonly aggregateKind: "project" | "thread";
|
|
974
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
975
|
-
readonly occurredAt: string;
|
|
976
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
977
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
978
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
979
|
-
readonly metadata: {
|
|
980
|
-
readonly providerTurnId?: string | undefined;
|
|
981
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
982
|
-
readonly adapterKey?: string | undefined;
|
|
983
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
984
|
-
readonly ingestedAt?: string | undefined;
|
|
985
|
-
};
|
|
986
|
-
} | {
|
|
987
|
-
readonly type: "thread.deleted";
|
|
988
|
-
readonly payload: {
|
|
989
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
990
|
-
readonly deletedAt: string;
|
|
991
|
-
};
|
|
992
|
-
readonly sequence: number;
|
|
993
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
994
|
-
readonly aggregateKind: "project" | "thread";
|
|
995
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
996
|
-
readonly occurredAt: string;
|
|
997
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
998
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
999
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1000
|
-
readonly metadata: {
|
|
1001
|
-
readonly providerTurnId?: string | undefined;
|
|
1002
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1003
|
-
readonly adapterKey?: string | undefined;
|
|
1004
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1005
|
-
readonly ingestedAt?: string | undefined;
|
|
1006
|
-
};
|
|
1007
|
-
} | {
|
|
1008
|
-
readonly type: "thread.archived";
|
|
1009
|
-
readonly payload: {
|
|
1010
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1011
|
-
readonly archivedAt: string;
|
|
1012
|
-
readonly updatedAt: string;
|
|
1013
|
-
};
|
|
1014
|
-
readonly sequence: number;
|
|
1015
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1016
|
-
readonly aggregateKind: "project" | "thread";
|
|
1017
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1018
|
-
readonly occurredAt: string;
|
|
1019
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1020
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1021
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1022
|
-
readonly metadata: {
|
|
1023
|
-
readonly providerTurnId?: string | undefined;
|
|
1024
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1025
|
-
readonly adapterKey?: string | undefined;
|
|
1026
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1027
|
-
readonly ingestedAt?: string | undefined;
|
|
1028
|
-
};
|
|
1029
|
-
} | {
|
|
1030
|
-
readonly type: "thread.unarchived";
|
|
1031
|
-
readonly payload: {
|
|
1032
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1033
|
-
readonly updatedAt: string;
|
|
1034
|
-
};
|
|
1035
|
-
readonly sequence: number;
|
|
1036
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1037
|
-
readonly aggregateKind: "project" | "thread";
|
|
1038
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1039
|
-
readonly occurredAt: string;
|
|
1040
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1041
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1042
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1043
|
-
readonly metadata: {
|
|
1044
|
-
readonly providerTurnId?: string | undefined;
|
|
1045
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1046
|
-
readonly adapterKey?: string | undefined;
|
|
1047
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1048
|
-
readonly ingestedAt?: string | undefined;
|
|
1049
|
-
};
|
|
1050
|
-
} | {
|
|
1051
|
-
readonly type: "thread.meta-updated";
|
|
1052
|
-
readonly payload: {
|
|
1053
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1054
|
-
readonly updatedAt: string;
|
|
1055
|
-
readonly title?: string | undefined;
|
|
1056
|
-
readonly modelSelection?: {
|
|
1057
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1058
|
-
readonly model: string;
|
|
1059
|
-
readonly options?: readonly {
|
|
1060
|
-
readonly id: string;
|
|
1061
|
-
readonly value: string | boolean;
|
|
1062
|
-
}[];
|
|
1063
|
-
} | undefined;
|
|
1064
|
-
readonly branch?: string | null | undefined;
|
|
1065
|
-
readonly worktreePath?: string | null | undefined;
|
|
1066
|
-
};
|
|
1067
|
-
readonly sequence: number;
|
|
1068
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1069
|
-
readonly aggregateKind: "project" | "thread";
|
|
1070
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1071
|
-
readonly occurredAt: string;
|
|
1072
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1073
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1074
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1075
|
-
readonly metadata: {
|
|
1076
|
-
readonly providerTurnId?: string | undefined;
|
|
1077
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1078
|
-
readonly adapterKey?: string | undefined;
|
|
1079
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1080
|
-
readonly ingestedAt?: string | undefined;
|
|
1081
|
-
};
|
|
1082
|
-
} | {
|
|
1083
|
-
readonly type: "thread.runtime-mode-set";
|
|
1084
|
-
readonly payload: {
|
|
1085
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1086
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1087
|
-
readonly updatedAt: string;
|
|
1088
|
-
};
|
|
1089
|
-
readonly sequence: number;
|
|
1090
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1091
|
-
readonly aggregateKind: "project" | "thread";
|
|
1092
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1093
|
-
readonly occurredAt: string;
|
|
1094
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1095
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1096
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1097
|
-
readonly metadata: {
|
|
1098
|
-
readonly providerTurnId?: string | undefined;
|
|
1099
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1100
|
-
readonly adapterKey?: string | undefined;
|
|
1101
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1102
|
-
readonly ingestedAt?: string | undefined;
|
|
1103
|
-
};
|
|
1104
|
-
} | {
|
|
1105
|
-
readonly type: "thread.interaction-mode-set";
|
|
1106
|
-
readonly payload: {
|
|
1107
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1108
|
-
readonly interactionMode: "default" | "plan";
|
|
1109
|
-
readonly updatedAt: string;
|
|
1110
|
-
};
|
|
1111
|
-
readonly sequence: number;
|
|
1112
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1113
|
-
readonly aggregateKind: "project" | "thread";
|
|
1114
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1115
|
-
readonly occurredAt: string;
|
|
1116
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1117
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1118
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1119
|
-
readonly metadata: {
|
|
1120
|
-
readonly providerTurnId?: string | undefined;
|
|
1121
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1122
|
-
readonly adapterKey?: string | undefined;
|
|
1123
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1124
|
-
readonly ingestedAt?: string | undefined;
|
|
1125
|
-
};
|
|
1126
|
-
} | {
|
|
1127
|
-
readonly type: "thread.message-sent";
|
|
1128
|
-
readonly payload: {
|
|
1129
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1130
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1131
|
-
readonly role: "user" | "assistant" | "system";
|
|
1132
|
-
readonly text: string;
|
|
1133
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1134
|
-
readonly streaming: boolean;
|
|
1135
|
-
readonly createdAt: string;
|
|
1136
|
-
readonly updatedAt: string;
|
|
1137
|
-
readonly attachments?: readonly {
|
|
1138
|
-
readonly type: "image";
|
|
1139
|
-
readonly id: string;
|
|
1140
|
-
readonly name: string;
|
|
1141
|
-
readonly mimeType: string;
|
|
1142
|
-
readonly sizeBytes: number;
|
|
1143
|
-
}[] | undefined;
|
|
1144
|
-
};
|
|
1145
|
-
readonly sequence: number;
|
|
1146
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1147
|
-
readonly aggregateKind: "project" | "thread";
|
|
1148
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1149
|
-
readonly occurredAt: string;
|
|
1150
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1151
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1152
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1153
|
-
readonly metadata: {
|
|
1154
|
-
readonly providerTurnId?: string | undefined;
|
|
1155
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1156
|
-
readonly adapterKey?: string | undefined;
|
|
1157
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1158
|
-
readonly ingestedAt?: string | undefined;
|
|
1159
|
-
};
|
|
1160
|
-
} | {
|
|
1161
|
-
readonly type: "thread.turn-start-requested";
|
|
1162
|
-
readonly payload: {
|
|
1163
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1164
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1165
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1166
|
-
readonly interactionMode: "default" | "plan";
|
|
1167
|
-
readonly createdAt: string;
|
|
1168
|
-
readonly modelSelection?: {
|
|
1169
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1170
|
-
readonly model: string;
|
|
1171
|
-
readonly options?: readonly {
|
|
1172
|
-
readonly id: string;
|
|
1173
|
-
readonly value: string | boolean;
|
|
1174
|
-
}[];
|
|
1175
|
-
} | undefined;
|
|
1176
|
-
readonly titleSeed?: string | undefined;
|
|
1177
|
-
readonly sourceProposedPlan?: {
|
|
1178
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1179
|
-
readonly planId: string;
|
|
1180
|
-
} | undefined;
|
|
1181
|
-
};
|
|
1182
|
-
readonly sequence: number;
|
|
1183
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1184
|
-
readonly aggregateKind: "project" | "thread";
|
|
1185
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1186
|
-
readonly occurredAt: string;
|
|
1187
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1188
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1189
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1190
|
-
readonly metadata: {
|
|
1191
|
-
readonly providerTurnId?: string | undefined;
|
|
1192
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1193
|
-
readonly adapterKey?: string | undefined;
|
|
1194
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1195
|
-
readonly ingestedAt?: string | undefined;
|
|
1196
|
-
};
|
|
1197
|
-
} | {
|
|
1198
|
-
readonly type: "thread.turn-interrupt-requested";
|
|
1199
|
-
readonly payload: {
|
|
1200
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1201
|
-
readonly createdAt: string;
|
|
1202
|
-
readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
1203
|
-
};
|
|
1204
|
-
readonly sequence: number;
|
|
1205
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1206
|
-
readonly aggregateKind: "project" | "thread";
|
|
1207
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1208
|
-
readonly occurredAt: string;
|
|
1209
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1210
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1211
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1212
|
-
readonly metadata: {
|
|
1213
|
-
readonly providerTurnId?: string | undefined;
|
|
1214
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1215
|
-
readonly adapterKey?: string | undefined;
|
|
1216
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1217
|
-
readonly ingestedAt?: string | undefined;
|
|
1218
|
-
};
|
|
1219
|
-
} | {
|
|
1220
|
-
readonly type: "thread.approval-response-requested";
|
|
1221
|
-
readonly payload: {
|
|
1222
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1223
|
-
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1224
|
-
readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
|
|
1225
|
-
readonly createdAt: string;
|
|
1226
|
-
};
|
|
1227
|
-
readonly sequence: number;
|
|
1228
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1229
|
-
readonly aggregateKind: "project" | "thread";
|
|
1230
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1231
|
-
readonly occurredAt: string;
|
|
1232
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1233
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1234
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1235
|
-
readonly metadata: {
|
|
1236
|
-
readonly providerTurnId?: string | undefined;
|
|
1237
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1238
|
-
readonly adapterKey?: string | undefined;
|
|
1239
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1240
|
-
readonly ingestedAt?: string | undefined;
|
|
1241
|
-
};
|
|
1242
|
-
} | {
|
|
1243
|
-
readonly type: "thread.user-input-response-requested";
|
|
1244
|
-
readonly payload: {
|
|
1245
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1246
|
-
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1247
|
-
readonly answers: {
|
|
1248
|
-
readonly [x: string]: unknown;
|
|
1249
|
-
};
|
|
1250
|
-
readonly createdAt: string;
|
|
1251
|
-
};
|
|
1252
|
-
readonly sequence: number;
|
|
1253
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1254
|
-
readonly aggregateKind: "project" | "thread";
|
|
1255
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1256
|
-
readonly occurredAt: string;
|
|
1257
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1258
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1259
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1260
|
-
readonly metadata: {
|
|
1261
|
-
readonly providerTurnId?: string | undefined;
|
|
1262
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1263
|
-
readonly adapterKey?: string | undefined;
|
|
1264
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1265
|
-
readonly ingestedAt?: string | undefined;
|
|
1266
|
-
};
|
|
1267
|
-
} | {
|
|
1268
|
-
readonly type: "thread.checkpoint-revert-requested";
|
|
1269
|
-
readonly payload: {
|
|
1270
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1271
|
-
readonly turnCount: number;
|
|
1272
|
-
readonly createdAt: string;
|
|
1273
|
-
};
|
|
1274
|
-
readonly sequence: number;
|
|
1275
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1276
|
-
readonly aggregateKind: "project" | "thread";
|
|
1277
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1278
|
-
readonly occurredAt: string;
|
|
1279
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1280
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1281
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1282
|
-
readonly metadata: {
|
|
1283
|
-
readonly providerTurnId?: string | undefined;
|
|
1284
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1285
|
-
readonly adapterKey?: string | undefined;
|
|
1286
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1287
|
-
readonly ingestedAt?: string | undefined;
|
|
1288
|
-
};
|
|
1289
|
-
} | {
|
|
1290
|
-
readonly type: "thread.reverted";
|
|
1291
|
-
readonly payload: {
|
|
1292
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1293
|
-
readonly turnCount: number;
|
|
1294
|
-
};
|
|
1295
|
-
readonly sequence: number;
|
|
1296
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1297
|
-
readonly aggregateKind: "project" | "thread";
|
|
1298
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1299
|
-
readonly occurredAt: string;
|
|
1300
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1301
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1302
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1303
|
-
readonly metadata: {
|
|
1304
|
-
readonly providerTurnId?: string | undefined;
|
|
1305
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1306
|
-
readonly adapterKey?: string | undefined;
|
|
1307
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1308
|
-
readonly ingestedAt?: string | undefined;
|
|
1309
|
-
};
|
|
1310
|
-
} | {
|
|
1311
|
-
readonly type: "thread.session-stop-requested";
|
|
1312
|
-
readonly payload: {
|
|
1313
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1314
|
-
readonly createdAt: string;
|
|
1315
|
-
};
|
|
1316
|
-
readonly sequence: number;
|
|
1317
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1318
|
-
readonly aggregateKind: "project" | "thread";
|
|
1319
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1320
|
-
readonly occurredAt: string;
|
|
1321
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1322
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1323
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1324
|
-
readonly metadata: {
|
|
1325
|
-
readonly providerTurnId?: string | undefined;
|
|
1326
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1327
|
-
readonly adapterKey?: string | undefined;
|
|
1328
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1329
|
-
readonly ingestedAt?: string | undefined;
|
|
1330
|
-
};
|
|
1331
|
-
} | {
|
|
1332
|
-
readonly type: "thread.session-set";
|
|
1333
|
-
readonly payload: {
|
|
1334
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1335
|
-
readonly session: {
|
|
1336
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1337
|
-
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
1338
|
-
readonly providerName: string | null;
|
|
1339
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1340
|
-
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1341
|
-
readonly lastError: string | null;
|
|
1342
|
-
readonly updatedAt: string;
|
|
1343
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
readonly sequence: number;
|
|
1347
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1348
|
-
readonly aggregateKind: "project" | "thread";
|
|
1349
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1350
|
-
readonly occurredAt: string;
|
|
1351
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1352
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1353
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1354
|
-
readonly metadata: {
|
|
1355
|
-
readonly providerTurnId?: string | undefined;
|
|
1356
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1357
|
-
readonly adapterKey?: string | undefined;
|
|
1358
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1359
|
-
readonly ingestedAt?: string | undefined;
|
|
1360
|
-
};
|
|
1361
|
-
} | {
|
|
1362
|
-
readonly type: "thread.goal-requested";
|
|
1363
|
-
readonly payload: {
|
|
1364
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1365
|
-
readonly request: {
|
|
1366
|
-
readonly kind: "status";
|
|
1367
|
-
} | {
|
|
1368
|
-
readonly kind: "control";
|
|
1369
|
-
readonly action: "pause" | "resume" | "clear";
|
|
1370
|
-
} | {
|
|
1371
|
-
readonly kind: "set";
|
|
1372
|
-
readonly objective: string;
|
|
1373
|
-
};
|
|
1374
|
-
readonly createdAt: string;
|
|
1375
|
-
};
|
|
1376
|
-
readonly sequence: number;
|
|
1377
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1378
|
-
readonly aggregateKind: "project" | "thread";
|
|
1379
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1380
|
-
readonly occurredAt: string;
|
|
1381
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1382
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1383
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1384
|
-
readonly metadata: {
|
|
1385
|
-
readonly providerTurnId?: string | undefined;
|
|
1386
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1387
|
-
readonly adapterKey?: string | undefined;
|
|
1388
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1389
|
-
readonly ingestedAt?: string | undefined;
|
|
1390
|
-
};
|
|
1391
|
-
} | {
|
|
1392
|
-
readonly type: "thread.goal-updated";
|
|
1393
|
-
readonly payload: {
|
|
1394
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1395
|
-
readonly goal: {
|
|
1396
|
-
readonly objective: string;
|
|
1397
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
1398
|
-
readonly tokensUsed: number;
|
|
1399
|
-
readonly tokenBudget: number | null;
|
|
1400
|
-
readonly timeUsedSeconds: number;
|
|
1401
|
-
readonly createdAt: string;
|
|
1402
|
-
readonly updatedAt: string;
|
|
1403
|
-
};
|
|
1404
|
-
};
|
|
1405
|
-
readonly sequence: number;
|
|
1406
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1407
|
-
readonly aggregateKind: "project" | "thread";
|
|
1408
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1409
|
-
readonly occurredAt: string;
|
|
1410
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1411
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1412
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1413
|
-
readonly metadata: {
|
|
1414
|
-
readonly providerTurnId?: string | undefined;
|
|
1415
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1416
|
-
readonly adapterKey?: string | undefined;
|
|
1417
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1418
|
-
readonly ingestedAt?: string | undefined;
|
|
1419
|
-
};
|
|
1420
|
-
} | {
|
|
1421
|
-
readonly type: "thread.goal-cleared";
|
|
1422
|
-
readonly payload: {
|
|
1423
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1424
|
-
};
|
|
1425
|
-
readonly sequence: number;
|
|
1426
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1427
|
-
readonly aggregateKind: "project" | "thread";
|
|
1428
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1429
|
-
readonly occurredAt: string;
|
|
1430
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1431
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1432
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1433
|
-
readonly metadata: {
|
|
1434
|
-
readonly providerTurnId?: string | undefined;
|
|
1435
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1436
|
-
readonly adapterKey?: string | undefined;
|
|
1437
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1438
|
-
readonly ingestedAt?: string | undefined;
|
|
1439
|
-
};
|
|
1440
|
-
} | {
|
|
1441
|
-
readonly type: "thread.proposed-plan-upserted";
|
|
1442
|
-
readonly payload: {
|
|
1443
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1444
|
-
readonly proposedPlan: {
|
|
1445
|
-
readonly id: string;
|
|
1446
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1447
|
-
readonly planMarkdown: string;
|
|
1448
|
-
readonly implementedAt: string | null;
|
|
1449
|
-
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
1450
|
-
readonly createdAt: string;
|
|
1451
|
-
readonly updatedAt: string;
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
readonly sequence: number;
|
|
1455
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1456
|
-
readonly aggregateKind: "project" | "thread";
|
|
1457
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1458
|
-
readonly occurredAt: string;
|
|
1459
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1460
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1461
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1462
|
-
readonly metadata: {
|
|
1463
|
-
readonly providerTurnId?: string | undefined;
|
|
1464
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1465
|
-
readonly adapterKey?: string | undefined;
|
|
1466
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1467
|
-
readonly ingestedAt?: string | undefined;
|
|
1468
|
-
};
|
|
1469
|
-
} | {
|
|
1470
|
-
readonly type: "thread.turn-diff-completed";
|
|
1471
|
-
readonly payload: {
|
|
1472
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1473
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1474
|
-
readonly checkpointTurnCount: number;
|
|
1475
|
-
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
1476
|
-
readonly status: "error" | "ready" | "missing";
|
|
1477
|
-
readonly files: readonly {
|
|
1478
|
-
readonly path: string;
|
|
1479
|
-
readonly kind: string;
|
|
1480
|
-
readonly additions: number;
|
|
1481
|
-
readonly deletions: number;
|
|
1482
|
-
}[];
|
|
1483
|
-
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1484
|
-
readonly completedAt: string;
|
|
1485
|
-
};
|
|
1486
|
-
readonly sequence: number;
|
|
1487
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1488
|
-
readonly aggregateKind: "project" | "thread";
|
|
1489
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1490
|
-
readonly occurredAt: string;
|
|
1491
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1492
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1493
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1494
|
-
readonly metadata: {
|
|
1495
|
-
readonly providerTurnId?: string | undefined;
|
|
1496
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1497
|
-
readonly adapterKey?: string | undefined;
|
|
1498
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1499
|
-
readonly ingestedAt?: string | undefined;
|
|
1500
|
-
};
|
|
1501
|
-
} | {
|
|
1502
|
-
readonly type: "thread.activity-appended";
|
|
1503
|
-
readonly payload: {
|
|
1504
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1505
|
-
readonly activity: {
|
|
1506
|
-
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
1507
|
-
readonly tone: "error" | "info" | "tool" | "approval";
|
|
1508
|
-
readonly kind: string;
|
|
1509
|
-
readonly summary: string;
|
|
1510
|
-
readonly payload: unknown;
|
|
1511
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1512
|
-
readonly createdAt: string;
|
|
1513
|
-
readonly sequence?: number | undefined;
|
|
1514
|
-
};
|
|
1515
|
-
};
|
|
1516
|
-
readonly sequence: number;
|
|
1517
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1518
|
-
readonly aggregateKind: "project" | "thread";
|
|
1519
|
-
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1520
|
-
readonly occurredAt: string;
|
|
1521
|
-
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1522
|
-
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1523
|
-
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1524
|
-
readonly metadata: {
|
|
1525
|
-
readonly providerTurnId?: string | undefined;
|
|
1526
|
-
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1527
|
-
readonly adapterKey?: string | undefined;
|
|
1528
|
-
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1529
|
-
readonly ingestedAt?: string | undefined;
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
|
-
}, RpcError, never>;
|
|
818
|
+
watchShellSequence: () => Stream.Stream<number, import("./service.ts").OrchestrationError, import("effect/Scope").Scope>;
|
|
819
|
+
watchThreadItems: (threadId: string) => Stream.Stream<OrchestrationThreadStreamItem, import("./service.ts").OrchestrationError, import("effect/Scope").Scope>;
|
|
1533
820
|
openThread: (threadId: string) => Effect.Effect<{
|
|
1534
821
|
snapshot: {
|
|
1535
822
|
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
@@ -1565,7 +852,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
1565
852
|
readonly deletedAt: string | null;
|
|
1566
853
|
readonly goal: {
|
|
1567
854
|
readonly objective: string;
|
|
1568
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
855
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
1569
856
|
readonly tokensUsed: number;
|
|
1570
857
|
readonly tokenBudget: number | null;
|
|
1571
858
|
readonly timeUsedSeconds: number;
|
|
@@ -1652,6 +939,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
1652
939
|
readonly command: string;
|
|
1653
940
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
1654
941
|
readonly runOnWorktreeCreate: boolean;
|
|
942
|
+
readonly previewUrl?: string | undefined;
|
|
943
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
1655
944
|
}[];
|
|
1656
945
|
readonly createdAt: string;
|
|
1657
946
|
readonly updatedAt: string;
|
|
@@ -1718,6 +1007,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
1718
1007
|
readonly command: string;
|
|
1719
1008
|
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
1720
1009
|
readonly runOnWorktreeCreate: boolean;
|
|
1010
|
+
readonly previewUrl?: string | undefined;
|
|
1011
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
1721
1012
|
}[] | undefined;
|
|
1722
1013
|
};
|
|
1723
1014
|
readonly sequence: number;
|
|
@@ -2203,7 +1494,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
2203
1494
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2204
1495
|
readonly goal: {
|
|
2205
1496
|
readonly objective: string;
|
|
2206
|
-
readonly status: "active" | "paused" | "budgetLimited" | "complete";
|
|
1497
|
+
readonly status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
|
|
2207
1498
|
readonly tokensUsed: number;
|
|
2208
1499
|
readonly tokenBudget: number | null;
|
|
2209
1500
|
readonly timeUsedSeconds: number;
|
|
@@ -2339,5 +1630,5 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
|
2339
1630
|
};
|
|
2340
1631
|
}, RpcError, never>;
|
|
2341
1632
|
}, RpcError, import("effect/Scope").Scope>;
|
|
2342
|
-
}, never,
|
|
2343
|
-
export declare const T3OrchestrationLive: Layer.Layer<T3Orchestration, never,
|
|
1633
|
+
}, never, T3RpcOperations>;
|
|
1634
|
+
export declare const T3OrchestrationLive: Layer.Layer<T3Orchestration, never, T3RpcOperations>;
|