t3code-cli 0.11.0 → 0.13.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 +85549 -2668
- 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/rolldown-runtime.js +1 -1
- package/dist/rpc.js +1 -1
- package/dist/runtime.js +2 -2
- package/dist/shared.js +23313 -8022
- 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 +66 -50
- 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 +23 -3
- 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 +25 -19
- package/dist/src/application/terminals.d.ts +8 -8
- package/dist/src/application/thread-commands.d.ts +19 -19
- package/dist/src/application/thread-update.d.ts +1 -1
- package/dist/src/application/thread-wait.d.ts +19 -15
- package/dist/src/application/threads.d.ts +134 -108
- package/dist/src/auth/error.d.ts +3 -3
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/layer.d.ts +36 -8
- 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/remote-error.d.ts +3 -0
- 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/error.d.ts +3 -1
- package/dist/src/connection/index.d.ts +0 -1
- package/dist/src/connection/prepared.d.ts +14 -0
- 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 +53 -43
- package/dist/src/domain/model-config.d.ts +92 -84
- package/dist/src/domain/thread-activities.d.ts +1 -1
- package/dist/src/domain/thread-lifecycle.d.ts +24 -20
- 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 +321 -390
- package/dist/src/orchestration/service.d.ts +1 -1
- package/dist/src/rpc/error.d.ts +4 -6
- package/dist/src/rpc/layer.d.ts +2036 -1917
- package/dist/src/rpc/operation.d.ts +4 -5732
- package/dist/src/rpc/service.d.ts +1 -1
- package/dist/src/rpc/session.d.ts +22 -0
- package/dist/src/rpc/ws-group.d.ts +456 -1032
- package/dist/src/runtime/index.d.ts +1 -2
- package/dist/src/runtime/layer.d.ts +12 -8
- package/dist/src/sql/node-sqlite-client.d.ts +1 -1
- package/dist/src/t3tools/index.d.ts +1 -1
- package/dist/t3tools.js +2 -2
- package/package.json +30 -25
- 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 +5 -1
- package/src/application/threads.test.ts +9 -3
- package/src/application/threads.ts +6 -6
- package/src/auth/error.ts +4 -9
- 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/remote-error.ts +17 -0
- package/src/auth/service.test.ts +200 -0
- package/src/auth/service.ts +27 -3
- package/src/auth/transport.ts +45 -114
- 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/error.ts +4 -1
- package/src/connection/index.ts +0 -1
- package/src/connection/layer.ts +5 -2
- package/src/connection/prepared.ts +83 -0
- 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 +3 -2
- package/src/orchestration/service.ts +1 -1
- package/src/rpc/error.ts +10 -17
- package/src/rpc/layer.ts +17 -51
- package/src/rpc/operation.ts +16 -2
- package/src/rpc/service.ts +2 -1
- package/src/rpc/session.ts +168 -0
- package/src/rpc/ws-group.ts +13 -27
- 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 +21 -12
- 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
|
@@ -2,15 +2,15 @@ import * as Crypto from "effect/Crypto";
|
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Path from "effect/Path";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
|
-
import {
|
|
5
|
+
import { CliRuntime } from "../cli/runtime/service.ts";
|
|
6
6
|
import { T3Orchestration } from "../orchestration/service.ts";
|
|
7
7
|
import { ProjectLookupError, ThreadLookupError, ThreadSessionError } from "../domain/error.ts";
|
|
8
8
|
import { type ListThreadsInclude, type StartThreadInput } from "./service.ts";
|
|
9
9
|
import type { CallbackThreadInput, SendThreadInput } from "./service.ts";
|
|
10
10
|
import { derivePendingApprovals, derivePendingUserInputs } from "../domain/thread-activities.ts";
|
|
11
11
|
import { type ThreadLifecycleStatus } from "../domain/thread-lifecycle.ts";
|
|
12
|
-
import type { OrchestrationThread } from "
|
|
13
|
-
import type { ProviderApprovalDecision, ProviderUserInputAnswers } from "
|
|
12
|
+
import type { OrchestrationThread } from "@t3tools/contracts";
|
|
13
|
+
import type { ProviderApprovalDecision, ProviderUserInputAnswers } from "@t3tools/contracts";
|
|
14
14
|
export declare const makeThreadApplication: () => Effect.Effect<{
|
|
15
15
|
approveThread: (input: {
|
|
16
16
|
readonly threadId: string;
|
|
@@ -31,11 +31,11 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
31
31
|
dispatch: {
|
|
32
32
|
readonly sequence: number;
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, import("../rpc/error.ts").RpcError | ThreadLookupError, never>;
|
|
35
35
|
interruptThread: (threadId: string) => Effect.Effect<{
|
|
36
36
|
readonly sequence: number;
|
|
37
37
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
38
|
-
updateThread: (input: import("./service.ts").UpdateThreadInput) => Effect.Effect<import("
|
|
38
|
+
updateThread: (input: import("./service.ts").UpdateThreadInput) => Effect.Effect<import("@t3tools/contracts").DispatchResult, import("./error.ts").ApplicationError>;
|
|
39
39
|
unarchiveThread: (threadId: string) => Effect.Effect<{
|
|
40
40
|
readonly sequence: number;
|
|
41
41
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
@@ -46,6 +46,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
46
46
|
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
47
47
|
readonly title: string;
|
|
48
48
|
readonly workspaceRoot: string;
|
|
49
|
+
readonly repositoryIdentity?: {
|
|
50
|
+
readonly canonicalKey: string;
|
|
51
|
+
readonly locator: {
|
|
52
|
+
readonly source: "git-remote";
|
|
53
|
+
readonly remoteName: string;
|
|
54
|
+
readonly remoteUrl: string;
|
|
55
|
+
};
|
|
56
|
+
readonly rootPath?: string;
|
|
57
|
+
readonly displayName?: string;
|
|
58
|
+
readonly provider?: string;
|
|
59
|
+
readonly owner?: string;
|
|
60
|
+
readonly name?: string;
|
|
61
|
+
} | null | undefined;
|
|
49
62
|
readonly defaultModelSelection: {
|
|
50
63
|
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
51
64
|
readonly model: string;
|
|
@@ -58,24 +71,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
58
71
|
readonly id: string;
|
|
59
72
|
readonly name: string;
|
|
60
73
|
readonly command: string;
|
|
61
|
-
readonly icon: "
|
|
74
|
+
readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
|
|
62
75
|
readonly runOnWorktreeCreate: boolean;
|
|
76
|
+
readonly previewUrl?: string | undefined;
|
|
77
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
63
78
|
}[];
|
|
64
79
|
readonly createdAt: string;
|
|
65
80
|
readonly updatedAt: string;
|
|
66
|
-
readonly repositoryIdentity?: {
|
|
67
|
-
readonly canonicalKey: string;
|
|
68
|
-
readonly locator: {
|
|
69
|
-
readonly source: "git-remote";
|
|
70
|
-
readonly remoteName: string;
|
|
71
|
-
readonly remoteUrl: string;
|
|
72
|
-
};
|
|
73
|
-
readonly rootPath?: string;
|
|
74
|
-
readonly displayName?: string;
|
|
75
|
-
readonly provider?: string;
|
|
76
|
-
readonly owner?: string;
|
|
77
|
-
readonly name?: string;
|
|
78
|
-
} | null | undefined;
|
|
79
81
|
};
|
|
80
82
|
threads: {
|
|
81
83
|
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
@@ -89,13 +91,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
89
91
|
readonly value: string | boolean;
|
|
90
92
|
}[];
|
|
91
93
|
};
|
|
92
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
94
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
93
95
|
readonly interactionMode: "default" | "plan";
|
|
94
96
|
readonly branch: string | null;
|
|
95
97
|
readonly worktreePath: string | null;
|
|
96
98
|
readonly latestTurn: {
|
|
97
99
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
98
|
-
readonly state: "
|
|
100
|
+
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
99
101
|
readonly requestedAt: string;
|
|
100
102
|
readonly startedAt: string | null;
|
|
101
103
|
readonly completedAt: string | null;
|
|
@@ -108,15 +110,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
108
110
|
readonly createdAt: string;
|
|
109
111
|
readonly updatedAt: string;
|
|
110
112
|
readonly archivedAt: string | null;
|
|
113
|
+
readonly settledOverride: "active" | "settled" | null;
|
|
114
|
+
readonly settledAt: string | null;
|
|
115
|
+
readonly snoozedUntil?: string | null | undefined;
|
|
116
|
+
readonly snoozedAt?: string | null | undefined;
|
|
111
117
|
readonly session: {
|
|
112
118
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
113
|
-
readonly status: "error" | "idle" | "
|
|
119
|
+
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
114
120
|
readonly providerName: string | null;
|
|
115
|
-
readonly
|
|
121
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
122
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
116
123
|
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
117
124
|
readonly lastError: string | null;
|
|
118
125
|
readonly updatedAt: string;
|
|
119
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
120
126
|
} | null;
|
|
121
127
|
readonly latestUserMessageAt: string | null;
|
|
122
128
|
readonly hasPendingApprovals: boolean;
|
|
@@ -136,13 +142,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
136
142
|
readonly value: string | boolean;
|
|
137
143
|
}[];
|
|
138
144
|
};
|
|
139
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
145
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
140
146
|
readonly interactionMode: "default" | "plan";
|
|
141
147
|
readonly branch: string | null;
|
|
142
148
|
readonly worktreePath: string | null;
|
|
143
149
|
readonly latestTurn: {
|
|
144
150
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
145
|
-
readonly state: "
|
|
151
|
+
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
146
152
|
readonly requestedAt: string;
|
|
147
153
|
readonly startedAt: string | null;
|
|
148
154
|
readonly completedAt: string | null;
|
|
@@ -155,15 +161,15 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
155
161
|
readonly createdAt: string;
|
|
156
162
|
readonly updatedAt: string;
|
|
157
163
|
readonly archivedAt: string | null;
|
|
164
|
+
readonly settledOverride: "active" | "settled" | null;
|
|
165
|
+
readonly settledAt: string | null;
|
|
166
|
+
readonly snoozedUntil?: string | null | undefined;
|
|
167
|
+
readonly snoozedAt?: string | null | undefined;
|
|
158
168
|
readonly deletedAt: string | null;
|
|
159
169
|
readonly messages: readonly {
|
|
160
170
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
161
|
-
readonly role: "
|
|
171
|
+
readonly role: "assistant" | "system" | "user";
|
|
162
172
|
readonly text: string;
|
|
163
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
164
|
-
readonly streaming: boolean;
|
|
165
|
-
readonly createdAt: string;
|
|
166
|
-
readonly updatedAt: string;
|
|
167
173
|
readonly attachments?: readonly {
|
|
168
174
|
readonly type: "image";
|
|
169
175
|
readonly id: string;
|
|
@@ -171,6 +177,10 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
171
177
|
readonly mimeType: string;
|
|
172
178
|
readonly sizeBytes: number;
|
|
173
179
|
}[] | undefined;
|
|
180
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
181
|
+
readonly streaming: boolean;
|
|
182
|
+
readonly createdAt: string;
|
|
183
|
+
readonly updatedAt: string;
|
|
174
184
|
}[];
|
|
175
185
|
readonly proposedPlans: readonly {
|
|
176
186
|
readonly id: string;
|
|
@@ -183,19 +193,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
183
193
|
}[];
|
|
184
194
|
readonly activities: readonly {
|
|
185
195
|
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
186
|
-
readonly tone: "
|
|
196
|
+
readonly tone: "approval" | "error" | "info" | "tool";
|
|
187
197
|
readonly kind: string;
|
|
188
198
|
readonly summary: string;
|
|
189
199
|
readonly payload: unknown;
|
|
190
200
|
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
191
|
-
readonly createdAt: string;
|
|
192
201
|
readonly sequence?: number | undefined;
|
|
202
|
+
readonly createdAt: string;
|
|
193
203
|
}[];
|
|
194
204
|
readonly checkpoints: readonly {
|
|
195
205
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
196
206
|
readonly checkpointTurnCount: number;
|
|
197
207
|
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
198
|
-
readonly status: "error" | "
|
|
208
|
+
readonly status: "error" | "missing" | "ready";
|
|
199
209
|
readonly files: readonly {
|
|
200
210
|
readonly path: string;
|
|
201
211
|
readonly kind: string;
|
|
@@ -207,13 +217,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
207
217
|
}[];
|
|
208
218
|
readonly session: {
|
|
209
219
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
210
|
-
readonly status: "error" | "idle" | "
|
|
220
|
+
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
211
221
|
readonly providerName: string | null;
|
|
212
|
-
readonly
|
|
222
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
223
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
213
224
|
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
214
225
|
readonly lastError: string | null;
|
|
215
226
|
readonly updatedAt: string;
|
|
216
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
217
227
|
} | null;
|
|
218
228
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
219
229
|
respondToThread: (input: {
|
|
@@ -252,13 +262,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
252
262
|
readonly value: string | boolean;
|
|
253
263
|
}[];
|
|
254
264
|
};
|
|
255
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
265
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
256
266
|
readonly interactionMode: "default" | "plan";
|
|
257
267
|
readonly branch: string | null;
|
|
258
268
|
readonly worktreePath: string | null;
|
|
259
269
|
readonly latestTurn: {
|
|
260
270
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
261
|
-
readonly state: "
|
|
271
|
+
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
262
272
|
readonly requestedAt: string;
|
|
263
273
|
readonly startedAt: string | null;
|
|
264
274
|
readonly completedAt: string | null;
|
|
@@ -271,15 +281,15 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
271
281
|
readonly createdAt: string;
|
|
272
282
|
readonly updatedAt: string;
|
|
273
283
|
readonly archivedAt: string | null;
|
|
284
|
+
readonly settledOverride: "active" | "settled" | null;
|
|
285
|
+
readonly settledAt: string | null;
|
|
286
|
+
readonly snoozedUntil?: string | null | undefined;
|
|
287
|
+
readonly snoozedAt?: string | null | undefined;
|
|
274
288
|
readonly deletedAt: string | null;
|
|
275
289
|
readonly messages: readonly {
|
|
276
290
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
277
|
-
readonly role: "
|
|
291
|
+
readonly role: "assistant" | "system" | "user";
|
|
278
292
|
readonly text: string;
|
|
279
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
280
|
-
readonly streaming: boolean;
|
|
281
|
-
readonly createdAt: string;
|
|
282
|
-
readonly updatedAt: string;
|
|
283
293
|
readonly attachments?: readonly {
|
|
284
294
|
readonly type: "image";
|
|
285
295
|
readonly id: string;
|
|
@@ -287,6 +297,10 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
287
297
|
readonly mimeType: string;
|
|
288
298
|
readonly sizeBytes: number;
|
|
289
299
|
}[] | undefined;
|
|
300
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
301
|
+
readonly streaming: boolean;
|
|
302
|
+
readonly createdAt: string;
|
|
303
|
+
readonly updatedAt: string;
|
|
290
304
|
}[];
|
|
291
305
|
readonly proposedPlans: readonly {
|
|
292
306
|
readonly id: string;
|
|
@@ -299,19 +313,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
299
313
|
}[];
|
|
300
314
|
readonly activities: readonly {
|
|
301
315
|
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
302
|
-
readonly tone: "
|
|
316
|
+
readonly tone: "approval" | "error" | "info" | "tool";
|
|
303
317
|
readonly kind: string;
|
|
304
318
|
readonly summary: string;
|
|
305
319
|
readonly payload: unknown;
|
|
306
320
|
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
307
|
-
readonly createdAt: string;
|
|
308
321
|
readonly sequence?: number | undefined;
|
|
322
|
+
readonly createdAt: string;
|
|
309
323
|
}[];
|
|
310
324
|
readonly checkpoints: readonly {
|
|
311
325
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
312
326
|
readonly checkpointTurnCount: number;
|
|
313
327
|
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
314
|
-
readonly status: "error" | "
|
|
328
|
+
readonly status: "error" | "missing" | "ready";
|
|
315
329
|
readonly files: readonly {
|
|
316
330
|
readonly path: string;
|
|
317
331
|
readonly kind: string;
|
|
@@ -323,16 +337,16 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
323
337
|
}[];
|
|
324
338
|
readonly session: {
|
|
325
339
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
326
|
-
readonly status: "error" | "idle" | "
|
|
340
|
+
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
327
341
|
readonly providerName: string | null;
|
|
328
|
-
readonly
|
|
342
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
343
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
329
344
|
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
330
345
|
readonly lastError: string | null;
|
|
331
346
|
readonly updatedAt: string;
|
|
332
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
333
347
|
} | null;
|
|
334
348
|
};
|
|
335
|
-
},
|
|
349
|
+
}, import("../rpc/error.ts").RpcError | ThreadSessionError, never>;
|
|
336
350
|
showThread: (threadId: string) => Effect.Effect<ThreadShow, import("../rpc/error.ts").RpcError, never>;
|
|
337
351
|
startThread: (startInput: StartThreadInput, policy?: {
|
|
338
352
|
readonly until: "dispatch" | "visible" | "complete";
|
|
@@ -344,6 +358,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
344
358
|
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
345
359
|
readonly title: string;
|
|
346
360
|
readonly workspaceRoot: string;
|
|
361
|
+
readonly repositoryIdentity?: {
|
|
362
|
+
readonly canonicalKey: string;
|
|
363
|
+
readonly locator: {
|
|
364
|
+
readonly source: "git-remote";
|
|
365
|
+
readonly remoteName: string;
|
|
366
|
+
readonly remoteUrl: string;
|
|
367
|
+
};
|
|
368
|
+
readonly rootPath?: string;
|
|
369
|
+
readonly displayName?: string;
|
|
370
|
+
readonly provider?: string;
|
|
371
|
+
readonly owner?: string;
|
|
372
|
+
readonly name?: string;
|
|
373
|
+
} | null | undefined;
|
|
347
374
|
readonly defaultModelSelection: {
|
|
348
375
|
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
349
376
|
readonly model: string;
|
|
@@ -356,11 +383,24 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
356
383
|
readonly id: string;
|
|
357
384
|
readonly name: string;
|
|
358
385
|
readonly command: string;
|
|
359
|
-
readonly icon: "
|
|
386
|
+
readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
|
|
360
387
|
readonly runOnWorktreeCreate: boolean;
|
|
388
|
+
readonly previewUrl?: string | undefined;
|
|
389
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
361
390
|
}[];
|
|
362
391
|
readonly createdAt: string;
|
|
363
392
|
readonly updatedAt: string;
|
|
393
|
+
};
|
|
394
|
+
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
395
|
+
thread?: never;
|
|
396
|
+
} | {
|
|
397
|
+
dispatch: {
|
|
398
|
+
readonly sequence: number;
|
|
399
|
+
};
|
|
400
|
+
project: {
|
|
401
|
+
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
402
|
+
readonly title: string;
|
|
403
|
+
readonly workspaceRoot: string;
|
|
364
404
|
readonly repositoryIdentity?: {
|
|
365
405
|
readonly canonicalKey: string;
|
|
366
406
|
readonly locator: {
|
|
@@ -374,17 +414,6 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
374
414
|
readonly owner?: string;
|
|
375
415
|
readonly name?: string;
|
|
376
416
|
} | null | undefined;
|
|
377
|
-
};
|
|
378
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
379
|
-
thread?: never;
|
|
380
|
-
} | {
|
|
381
|
-
dispatch: {
|
|
382
|
-
readonly sequence: number;
|
|
383
|
-
};
|
|
384
|
-
project: {
|
|
385
|
-
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
386
|
-
readonly title: string;
|
|
387
|
-
readonly workspaceRoot: string;
|
|
388
417
|
readonly defaultModelSelection: {
|
|
389
418
|
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
390
419
|
readonly model: string;
|
|
@@ -397,24 +426,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
397
426
|
readonly id: string;
|
|
398
427
|
readonly name: string;
|
|
399
428
|
readonly command: string;
|
|
400
|
-
readonly icon: "
|
|
429
|
+
readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
|
|
401
430
|
readonly runOnWorktreeCreate: boolean;
|
|
431
|
+
readonly previewUrl?: string | undefined;
|
|
432
|
+
readonly autoOpenPreview?: boolean | undefined;
|
|
402
433
|
}[];
|
|
403
434
|
readonly createdAt: string;
|
|
404
435
|
readonly updatedAt: string;
|
|
405
|
-
readonly repositoryIdentity?: {
|
|
406
|
-
readonly canonicalKey: string;
|
|
407
|
-
readonly locator: {
|
|
408
|
-
readonly source: "git-remote";
|
|
409
|
-
readonly remoteName: string;
|
|
410
|
-
readonly remoteUrl: string;
|
|
411
|
-
};
|
|
412
|
-
readonly rootPath?: string;
|
|
413
|
-
readonly displayName?: string;
|
|
414
|
-
readonly provider?: string;
|
|
415
|
-
readonly owner?: string;
|
|
416
|
-
readonly name?: string;
|
|
417
|
-
} | null | undefined;
|
|
418
436
|
};
|
|
419
437
|
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
420
438
|
thread: {
|
|
@@ -429,13 +447,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
429
447
|
readonly value: string | boolean;
|
|
430
448
|
}[];
|
|
431
449
|
};
|
|
432
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
450
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
433
451
|
readonly interactionMode: "default" | "plan";
|
|
434
452
|
readonly branch: string | null;
|
|
435
453
|
readonly worktreePath: string | null;
|
|
436
454
|
readonly latestTurn: {
|
|
437
455
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
438
|
-
readonly state: "
|
|
456
|
+
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
439
457
|
readonly requestedAt: string;
|
|
440
458
|
readonly startedAt: string | null;
|
|
441
459
|
readonly completedAt: string | null;
|
|
@@ -448,15 +466,15 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
448
466
|
readonly createdAt: string;
|
|
449
467
|
readonly updatedAt: string;
|
|
450
468
|
readonly archivedAt: string | null;
|
|
469
|
+
readonly settledOverride: "active" | "settled" | null;
|
|
470
|
+
readonly settledAt: string | null;
|
|
471
|
+
readonly snoozedUntil?: string | null | undefined;
|
|
472
|
+
readonly snoozedAt?: string | null | undefined;
|
|
451
473
|
readonly deletedAt: string | null;
|
|
452
474
|
readonly messages: readonly {
|
|
453
475
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
454
|
-
readonly role: "
|
|
476
|
+
readonly role: "assistant" | "system" | "user";
|
|
455
477
|
readonly text: string;
|
|
456
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
457
|
-
readonly streaming: boolean;
|
|
458
|
-
readonly createdAt: string;
|
|
459
|
-
readonly updatedAt: string;
|
|
460
478
|
readonly attachments?: readonly {
|
|
461
479
|
readonly type: "image";
|
|
462
480
|
readonly id: string;
|
|
@@ -464,6 +482,10 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
464
482
|
readonly mimeType: string;
|
|
465
483
|
readonly sizeBytes: number;
|
|
466
484
|
}[] | undefined;
|
|
485
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
486
|
+
readonly streaming: boolean;
|
|
487
|
+
readonly createdAt: string;
|
|
488
|
+
readonly updatedAt: string;
|
|
467
489
|
}[];
|
|
468
490
|
readonly proposedPlans: readonly {
|
|
469
491
|
readonly id: string;
|
|
@@ -476,19 +498,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
476
498
|
}[];
|
|
477
499
|
readonly activities: readonly {
|
|
478
500
|
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
479
|
-
readonly tone: "
|
|
501
|
+
readonly tone: "approval" | "error" | "info" | "tool";
|
|
480
502
|
readonly kind: string;
|
|
481
503
|
readonly summary: string;
|
|
482
504
|
readonly payload: unknown;
|
|
483
505
|
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
484
|
-
readonly createdAt: string;
|
|
485
506
|
readonly sequence?: number | undefined;
|
|
507
|
+
readonly createdAt: string;
|
|
486
508
|
}[];
|
|
487
509
|
readonly checkpoints: readonly {
|
|
488
510
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
489
511
|
readonly checkpointTurnCount: number;
|
|
490
512
|
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
491
|
-
readonly status: "error" | "
|
|
513
|
+
readonly status: "error" | "missing" | "ready";
|
|
492
514
|
readonly files: readonly {
|
|
493
515
|
readonly path: string;
|
|
494
516
|
readonly kind: string;
|
|
@@ -500,17 +522,17 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
500
522
|
}[];
|
|
501
523
|
readonly session: {
|
|
502
524
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
503
|
-
readonly status: "error" | "idle" | "
|
|
525
|
+
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
504
526
|
readonly providerName: string | null;
|
|
505
|
-
readonly
|
|
527
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
528
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
506
529
|
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
507
530
|
readonly lastError: string | null;
|
|
508
531
|
readonly updatedAt: string;
|
|
509
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
510
532
|
} | null;
|
|
511
533
|
};
|
|
512
|
-
},
|
|
513
|
-
watchThread: (threadId: string) => Stream.Stream<import("./service.ts").WaitEvent,
|
|
534
|
+
}, import("../domain/error.ts").ModelSelectionError | ProjectLookupError | import("../rpc/error.ts").RpcError | ThreadSessionError, never>;
|
|
535
|
+
watchThread: (threadId: string) => Stream.Stream<import("./service.ts").WaitEvent, import("../rpc/error.ts").RpcError | ThreadSessionError, never>;
|
|
514
536
|
waitForThread: (threadId: string) => Effect.Effect<{
|
|
515
537
|
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
516
538
|
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
@@ -523,13 +545,13 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
523
545
|
readonly value: string | boolean;
|
|
524
546
|
}[];
|
|
525
547
|
};
|
|
526
|
-
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
548
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
527
549
|
readonly interactionMode: "default" | "plan";
|
|
528
550
|
readonly branch: string | null;
|
|
529
551
|
readonly worktreePath: string | null;
|
|
530
552
|
readonly latestTurn: {
|
|
531
553
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
532
|
-
readonly state: "
|
|
554
|
+
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
533
555
|
readonly requestedAt: string;
|
|
534
556
|
readonly startedAt: string | null;
|
|
535
557
|
readonly completedAt: string | null;
|
|
@@ -542,15 +564,15 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
542
564
|
readonly createdAt: string;
|
|
543
565
|
readonly updatedAt: string;
|
|
544
566
|
readonly archivedAt: string | null;
|
|
567
|
+
readonly settledOverride: "active" | "settled" | null;
|
|
568
|
+
readonly settledAt: string | null;
|
|
569
|
+
readonly snoozedUntil?: string | null | undefined;
|
|
570
|
+
readonly snoozedAt?: string | null | undefined;
|
|
545
571
|
readonly deletedAt: string | null;
|
|
546
572
|
readonly messages: readonly {
|
|
547
573
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
548
|
-
readonly role: "
|
|
574
|
+
readonly role: "assistant" | "system" | "user";
|
|
549
575
|
readonly text: string;
|
|
550
|
-
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
551
|
-
readonly streaming: boolean;
|
|
552
|
-
readonly createdAt: string;
|
|
553
|
-
readonly updatedAt: string;
|
|
554
576
|
readonly attachments?: readonly {
|
|
555
577
|
readonly type: "image";
|
|
556
578
|
readonly id: string;
|
|
@@ -558,6 +580,10 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
558
580
|
readonly mimeType: string;
|
|
559
581
|
readonly sizeBytes: number;
|
|
560
582
|
}[] | undefined;
|
|
583
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
584
|
+
readonly streaming: boolean;
|
|
585
|
+
readonly createdAt: string;
|
|
586
|
+
readonly updatedAt: string;
|
|
561
587
|
}[];
|
|
562
588
|
readonly proposedPlans: readonly {
|
|
563
589
|
readonly id: string;
|
|
@@ -570,19 +596,19 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
570
596
|
}[];
|
|
571
597
|
readonly activities: readonly {
|
|
572
598
|
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
573
|
-
readonly tone: "
|
|
599
|
+
readonly tone: "approval" | "error" | "info" | "tool";
|
|
574
600
|
readonly kind: string;
|
|
575
601
|
readonly summary: string;
|
|
576
602
|
readonly payload: unknown;
|
|
577
603
|
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
578
|
-
readonly createdAt: string;
|
|
579
604
|
readonly sequence?: number | undefined;
|
|
605
|
+
readonly createdAt: string;
|
|
580
606
|
}[];
|
|
581
607
|
readonly checkpoints: readonly {
|
|
582
608
|
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
583
609
|
readonly checkpointTurnCount: number;
|
|
584
610
|
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
585
|
-
readonly status: "error" | "
|
|
611
|
+
readonly status: "error" | "missing" | "ready";
|
|
586
612
|
readonly files: readonly {
|
|
587
613
|
readonly path: string;
|
|
588
614
|
readonly kind: string;
|
|
@@ -594,22 +620,22 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
594
620
|
}[];
|
|
595
621
|
readonly session: {
|
|
596
622
|
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
597
|
-
readonly status: "error" | "idle" | "
|
|
623
|
+
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
598
624
|
readonly providerName: string | null;
|
|
599
|
-
readonly
|
|
625
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
626
|
+
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
600
627
|
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
601
628
|
readonly lastError: string | null;
|
|
602
629
|
readonly updatedAt: string;
|
|
603
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
604
630
|
} | null;
|
|
605
|
-
},
|
|
631
|
+
}, import("../rpc/error.ts").RpcError | ThreadSessionError, never>;
|
|
606
632
|
callbackThread: (input: CallbackThreadInput) => Effect.Effect<{
|
|
607
633
|
dispatch: {
|
|
608
634
|
readonly sequence: number;
|
|
609
635
|
};
|
|
610
636
|
targetThreadId: string;
|
|
611
|
-
},
|
|
612
|
-
}, never,
|
|
637
|
+
}, import("../rpc/error.ts").RpcError | ThreadSessionError, never>;
|
|
638
|
+
}, never, CliRuntime | Crypto.Crypto | Path.Path | T3Orchestration>;
|
|
613
639
|
export type ThreadShow = {
|
|
614
640
|
readonly id: string;
|
|
615
641
|
readonly projectId: string;
|
package/dist/src/auth/error.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Cause from "effect/Cause";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { PlatformError } from "effect/PlatformError";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ConfigError } from "../config/error.ts";
|
|
5
|
+
import { UrlError } from "../config/url/error.ts";
|
|
6
6
|
declare const AuthPairingUrlError_base: Schema.Class<AuthPairingUrlError, Schema.TaggedStruct<"AuthPairingUrlError", {
|
|
7
7
|
readonly message: Schema.String;
|
|
8
8
|
readonly cause: Schema.optionalKey<Schema.instanceOf<Cause.IllegalArgumentError, Cause.IllegalArgumentError>>;
|
|
@@ -17,7 +17,7 @@ export declare class AuthConfigError extends AuthConfigError_base {
|
|
|
17
17
|
}
|
|
18
18
|
declare const AuthTransportError_base: Schema.Class<AuthTransportError, Schema.TaggedStruct<"AuthTransportError", {
|
|
19
19
|
readonly message: Schema.String;
|
|
20
|
-
readonly cause: Schema.
|
|
20
|
+
readonly cause: Schema.Union<readonly [Schema.Union<readonly [typeof import("@t3tools/contracts").EnvironmentRequestInvalidError, typeof import("@t3tools/contracts").EnvironmentAuthInvalidError, typeof import("@t3tools/contracts").EnvironmentScopeRequiredError, typeof import("@t3tools/contracts").EnvironmentOperationForbiddenError, typeof import("@t3tools/contracts").EnvironmentResourceNotFoundError, typeof import("@t3tools/contracts").EnvironmentInternalError]>, Schema.instanceOf<import("@t3tools/client-runtime/authorization").RemoteEnvironmentAuthFetchError, unknown>, Schema.instanceOf<import("@t3tools/client-runtime/authorization").RemoteEnvironmentAuthInvalidJsonError, unknown>, Schema.instanceOf<import("@t3tools/client-runtime/authorization").RemoteEnvironmentAuthTimeoutError, unknown>, Schema.instanceOf<import("@t3tools/client-runtime/authorization").RemoteEnvironmentAuthUndeclaredStatusError, unknown>]>;
|
|
21
21
|
}>, Cause.YieldableError>;
|
|
22
22
|
export declare class AuthTransportError extends AuthTransportError_base {
|
|
23
23
|
}
|
package/dist/src/auth/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { T3AuthPairing, T3AuthPairingLive, makeT3AuthPairing, parsePairingUrl }
|
|
|
7
7
|
export { AuthConfigError, AuthLocalDatabaseError, AuthLocalError, AuthLocalSecretError, AuthLocalSigningError, AuthPairingUrlError, AuthTransportError, } from "./error.ts";
|
|
8
8
|
export type { AuthError } from "./error.ts";
|
|
9
9
|
export type { AuthSessionState, AuthWebSocketTicketResult } from "./schema.ts";
|
|
10
|
-
export type { AuthConfigInput, AuthSessionRole, LocalAuthInput, LocalAuthOriginInput, LocalAuthResult, LocalAuthTokenInput, LocalAuthTokenResult, PairingUrl, PairResult, } from "./type.ts";
|
|
10
|
+
export type { AuthConfigInput, AuthEnvironmentListItem, AuthEnvironmentSummary, AuthResolvedConfig, AuthSessionRole, AuthStatusResult, AuthUnpairResult, AuthUseResult, LocalAuthInput, LocalAuthOriginInput, LocalAuthResult, LocalAuthTokenInput, LocalAuthTokenResult, PairingUrl, PairResult, PersistEnvironmentInput, } from "./type.ts";
|