t3code-cli 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -1
- package/dist/application.d.ts +2 -0
- package/dist/application.js +1 -1
- package/dist/auth.d.ts +50 -0
- package/dist/auth.js +1 -1
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +355 -606
- package/dist/cli.d.ts +66 -0
- package/dist/cli.js +1 -1
- package/dist/client-runtime/authorization.d.ts +2 -0
- package/dist/client-runtime/authorization.js +2 -0
- package/dist/client-runtime/connection.d.ts +2 -0
- package/dist/client-runtime/connection.js +2 -0
- package/dist/client-runtime/environment.d.ts +57 -0
- package/dist/client-runtime/environment.js +2 -0
- package/dist/client-runtime/errors.d.ts +28 -0
- package/dist/client-runtime/errors.js +35 -0
- package/dist/client-runtime/operations/projects.d.ts +2 -0
- package/dist/client-runtime/operations/projects.js +2 -0
- package/dist/client-runtime/operations.d.ts +2 -0
- package/dist/client-runtime/operations.js +2 -0
- package/dist/client-runtime/platform.d.ts +26 -0
- package/dist/client-runtime/platform.js +74 -0
- package/dist/client-runtime/relay.d.ts +121 -0
- package/dist/client-runtime/relay.js +245 -0
- package/dist/client-runtime/rpc.d.ts +2 -0
- package/dist/client-runtime/rpc.js +2 -0
- package/dist/client-runtime/state/assets.d.ts +40 -0
- package/dist/client-runtime/state/assets.js +53 -0
- package/dist/client-runtime/state/auth.d.ts +98 -0
- package/dist/client-runtime/state/auth.js +48 -0
- package/dist/client-runtime/state/connections.d.ts +2 -0
- package/dist/client-runtime/state/connections.js +52 -0
- package/dist/client-runtime/state/entities.d.ts +33 -0
- package/dist/client-runtime/state/entities.js +2 -0
- package/dist/client-runtime/state/filesystem.d.ts +42 -0
- package/dist/client-runtime/state/filesystem.js +48 -0
- package/dist/client-runtime/state/git.d.ts +43 -0
- package/dist/client-runtime/state/git.js +18 -0
- package/dist/client-runtime/state/models.d.ts +2 -0
- package/dist/client-runtime/state/models.js +2 -0
- package/dist/client-runtime/state/orchestration.d.ts +128 -0
- package/dist/client-runtime/state/orchestration.js +20 -0
- package/dist/client-runtime/state/presentation.d.ts +277 -0
- package/dist/client-runtime/state/presentation.js +34 -0
- package/dist/client-runtime/state/preview.d.ts +447 -0
- package/dist/client-runtime/state/preview.js +103 -0
- package/dist/client-runtime/state/project-grouping.d.ts +26 -0
- package/dist/client-runtime/state/project-grouping.js +73 -0
- package/dist/client-runtime/state/projects.d.ts +192 -0
- package/dist/client-runtime/state/projects.js +2 -0
- package/dist/client-runtime/state/relay.d.ts +10 -0
- package/dist/client-runtime/state/relay.js +19 -0
- package/dist/client-runtime/state/review.d.ts +28 -0
- package/dist/client-runtime/state/review.js +11 -0
- package/dist/client-runtime/state/runtime.d.ts +2 -0
- package/dist/client-runtime/state/runtime.js +2 -0
- package/dist/client-runtime/state/server.d.ts +1495 -0
- package/dist/client-runtime/state/server.js +207 -0
- package/dist/client-runtime/state/session.d.ts +532 -0
- package/dist/client-runtime/state/session.js +21 -0
- package/dist/client-runtime/state/shell.d.ts +529 -0
- package/dist/client-runtime/state/shell.js +2 -0
- package/dist/client-runtime/state/source-control.d.ts +92 -0
- package/dist/client-runtime/state/source-control.js +36 -0
- package/dist/client-runtime/state/terminal.d.ts +237 -0
- package/dist/client-runtime/state/terminal.js +173 -0
- package/dist/client-runtime/state/thread-settled.d.ts +104 -0
- package/dist/client-runtime/state/thread-settled.js +157 -0
- package/dist/client-runtime/state/thread-sort.d.ts +23 -0
- package/dist/client-runtime/state/thread-sort.js +47 -0
- package/dist/client-runtime/state/threads.d.ts +538 -0
- package/dist/client-runtime/state/threads.js +934 -0
- package/dist/client-runtime/state/vcs.d.ts +442 -0
- package/dist/client-runtime/state/vcs.js +756 -0
- package/dist/config.d.ts +84 -0
- package/dist/config.js +1 -1
- package/dist/connection.d.ts +7 -0
- package/dist/connection.js +1 -1
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/node.d.ts +6 -0
- package/dist/node.js +1 -1
- package/dist/orchestration.d.ts +1420 -0
- package/dist/orchestration.js +1 -1
- package/dist/preview.d.ts +2 -0
- package/dist/preview.js +2 -0
- package/dist/rpc.d.ts +6043 -0
- package/dist/rpc.js +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/runtime.js +2 -2
- package/dist/shared/DrainableWorker.d.ts +28 -0
- package/dist/shared/DrainableWorker.js +24 -0
- package/dist/shared/KeyedCoalescingWorker.d.ts +13 -0
- package/dist/shared/KeyedCoalescingWorker.js +89 -0
- package/dist/shared/Net.d.ts +43 -0
- package/dist/shared/Net.js +126 -0
- package/dist/shared/String.d.ts +4 -0
- package/dist/shared/String.js +8 -0
- package/dist/shared/Struct.d.ts +5 -0
- package/dist/shared/Struct.js +2 -0
- package/dist/shared/advertisedEndpoint.d.ts +2 -0
- package/dist/shared/advertisedEndpoint.js +2 -0
- package/dist/shared/agentAwareness.d.ts +27 -0
- package/dist/shared/agentAwareness.js +54 -0
- package/dist/shared/backgroundActivitySettings.d.ts +23 -0
- package/dist/shared/backgroundActivitySettings.js +2 -0
- package/dist/shared/chatList.d.ts +12 -0
- package/dist/shared/chatList.js +14 -0
- package/dist/shared/cliArgs.d.ts +33 -0
- package/dist/shared/cliArgs.js +103 -0
- package/dist/shared/composerInlineTokens.d.ts +20 -0
- package/dist/shared/composerInlineTokens.js +72 -0
- package/dist/shared/composerTrigger.d.ts +26 -0
- package/dist/shared/composerTrigger.js +97 -0
- package/dist/shared/connectAuth.d.ts +58 -0
- package/dist/shared/connectAuth.js +89 -0
- package/dist/shared/devHome.d.ts +21 -0
- package/dist/shared/devHome.js +65 -0
- package/dist/shared/devProxy.d.ts +15 -0
- package/dist/shared/devProxy.js +22 -0
- package/dist/shared/dpop.d.ts +32 -0
- package/dist/shared/dpop.js +2724 -0
- package/dist/shared/dpopCommon.d.ts +2 -0
- package/dist/shared/dpopCommon.js +2 -0
- package/dist/shared/filePreview.d.ts +8 -0
- package/dist/shared/filePreview.js +31 -0
- package/dist/shared/git.d.ts +41 -0
- package/dist/shared/git.js +2 -0
- package/dist/shared/hostProcess.d.ts +13 -0
- package/dist/shared/hostProcess.js +2 -0
- package/dist/shared/httpObservability.d.ts +5 -0
- package/dist/shared/httpObservability.js +2 -0
- package/dist/shared/httpReadiness.d.ts +38 -0
- package/dist/shared/httpReadiness.js +110 -0
- package/dist/shared/keybindings.d.ts +35 -0
- package/dist/shared/keybindings.js +330 -0
- package/dist/shared/logging.d.ts +39 -0
- package/dist/shared/logging.js +2 -0
- package/dist/shared/model.d.ts +44 -0
- package/dist/shared/model.js +2 -0
- package/dist/shared/oauthScope.d.ts +23 -0
- package/dist/shared/oauthScope.js +2 -0
- package/dist/shared/observability.d.ts +105 -0
- package/dist/shared/observability.js +346 -0
- package/dist/shared/orchestrationTiming.d.ts +16 -0
- package/dist/shared/orchestrationTiming.js +32 -0
- package/dist/shared/path.d.ts +2 -0
- package/dist/shared/path.js +2 -0
- package/dist/shared/preview.d.ts +35 -0
- package/dist/shared/preview.js +103 -0
- package/dist/shared/previewViewport.d.ts +16 -0
- package/dist/shared/previewViewport.js +159 -0
- package/dist/shared/projectFavicon.d.ts +5 -0
- package/dist/shared/projectFavicon.js +13 -0
- package/dist/shared/projectScripts.d.ts +19 -0
- package/dist/shared/projectScripts.js +18 -0
- package/dist/shared/qrCode.d.ts +87 -0
- package/dist/shared/qrCode.js +870 -0
- package/dist/shared/relayAuth.d.ts +27 -0
- package/dist/shared/relayAuth.js +83 -0
- package/dist/shared/relayClient.d.ts +58 -0
- package/dist/shared/relayClient.js +245 -0
- package/dist/shared/relayJwt.d.ts +39 -0
- package/dist/shared/relayJwt.js +2 -0
- package/dist/shared/relaySigning.d.ts +4 -0
- package/dist/shared/relaySigning.js +2 -0
- package/dist/shared/relayTracing.d.ts +25 -0
- package/dist/shared/relayTracing.js +2 -0
- package/dist/shared/relayUrl.d.ts +5 -0
- package/dist/shared/relayUrl.js +2 -0
- package/dist/shared/remote.d.ts +57 -0
- package/dist/shared/remote.js +2 -0
- package/dist/shared/schemaJson.d.ts +35 -0
- package/dist/shared/schemaJson.js +2 -0
- package/dist/shared/schemaYaml.d.ts +86 -0
- package/dist/shared/schemaYaml.js +99 -0
- package/dist/shared/searchRanking.d.ts +30 -0
- package/dist/shared/searchRanking.js +99 -0
- package/dist/shared/semver.d.ts +23 -0
- package/dist/shared/semver.js +124 -0
- package/dist/shared/serverSettings.d.ts +19 -0
- package/dist/shared/serverSettings.js +103 -0
- package/dist/shared/shell.d.ts +51 -0
- package/dist/shared/shell.js +408 -0
- package/dist/shared/sourceControl.d.ts +26 -0
- package/dist/shared/sourceControl.js +2 -0
- package/dist/shared/t3ProjectFile.d.ts +27 -0
- package/dist/shared/t3ProjectFile.js +25 -0
- package/dist/shared/terminalLabels.d.ts +16 -0
- package/dist/shared/terminalLabels.js +28 -0
- package/dist/shared/toolActivity.d.ts +16 -0
- package/dist/shared/toolActivity.js +159 -0
- package/dist/shared.d.ts +43036 -0
- package/dist/shared.js +25428 -12277
- package/dist/t3tools.d.ts +2 -0
- package/dist/t3tools.js +1 -1
- package/package.json +39 -21
- package/src/auth/index.ts +2 -0
- package/src/auth/pairing.ts +8 -5
- package/src/auth/service.ts +2 -1
- package/src/auth/transport.ts +4 -0
- package/src/auth/type.ts +6 -0
- package/src/bin.ts +10 -7
- package/src/cli/auth.ts +7 -1
- package/src/contracts/index.ts +8 -0
- package/src/orchestration/layer.ts +36 -0
- package/src/orchestration/service.ts +5 -0
- package/src/preview/index.ts +11 -0
- package/src/preview/service.ts +52 -0
- package/src/rpc/error.ts +2 -0
- package/src/rpc/layer.ts +5 -4
- package/src/rpc/operation.ts +5 -4
- package/src/rpc/ws-group.ts +6 -0
- package/src/runtime/index.ts +1 -0
- package/src/runtime/layer.ts +5 -0
- package/src/sql/node-sqlite-client.ts +3 -0
- package/dist/src/application/actions.d.ts +0 -25
- package/dist/src/application/error.d.ts +0 -3
- package/dist/src/application/index.d.ts +0 -4
- package/dist/src/application/layer.d.ts +0 -117
- package/dist/src/application/model-selection.d.ts +0 -34
- package/dist/src/application/models.d.ts +0 -8
- package/dist/src/application/project-commands.d.ts +0 -44
- package/dist/src/application/projects.d.ts +0 -23
- package/dist/src/application/service.d.ts +0 -243
- package/dist/src/application/shell-sequence.d.ts +0 -96
- package/dist/src/application/terminals.d.ts +0 -66
- package/dist/src/application/thread-commands.d.ts +0 -157
- package/dist/src/application/thread-update.d.ts +0 -8
- package/dist/src/application/thread-wait.d.ts +0 -106
- package/dist/src/application/threads.d.ts +0 -660
- package/dist/src/auth/error.d.ts +0 -50
- package/dist/src/auth/index.d.ts +0 -10
- package/dist/src/auth/layer.d.ts +0 -53
- package/dist/src/auth/local-base-dir.d.ts +0 -8
- package/dist/src/auth/local-origin.d.ts +0 -18
- package/dist/src/auth/local-token.d.ts +0 -26
- package/dist/src/auth/local.d.ts +0 -24
- package/dist/src/auth/pairing.d.ts +0 -22
- package/dist/src/auth/remote-error.d.ts +0 -3
- package/dist/src/auth/schema.d.ts +0 -58
- package/dist/src/auth/service.d.ts +0 -27
- package/dist/src/auth/transport.d.ts +0 -22
- package/dist/src/auth/type.d.ts +0 -83
- package/dist/src/cli/env/flag.d.ts +0 -2
- package/dist/src/cli/env/index.d.ts +0 -2
- package/dist/src/cli/env/selection-layer.d.ts +0 -3
- package/dist/src/cli/flags.d.ts +0 -20
- package/dist/src/cli/format/index.d.ts +0 -1
- package/dist/src/cli/format/output.d.ts +0 -12
- package/dist/src/cli/index.d.ts +0 -5
- package/dist/src/cli/runtime/index.d.ts +0 -1
- package/dist/src/cli/runtime/service.d.ts +0 -16
- package/dist/src/cli/scope/index.d.ts +0 -1
- package/dist/src/cli/scope/resolve.d.ts +0 -20
- package/dist/src/cli-path/layer.d.ts +0 -3
- package/dist/src/cli-path/service.d.ts +0 -8
- package/dist/src/config/config.d.ts +0 -49
- package/dist/src/config/credential/cipher-node.d.ts +0 -3
- package/dist/src/config/credential/cipher-web.d.ts +0 -3
- package/dist/src/config/credential/cipher.d.ts +0 -29
- package/dist/src/config/credential/env.d.ts +0 -3
- package/dist/src/config/credential/error.d.ts +0 -8
- package/dist/src/config/credential/index.d.ts +0 -6
- package/dist/src/config/credential/service.d.ts +0 -34
- package/dist/src/config/env/env.d.ts +0 -55
- package/dist/src/config/env/index.d.ts +0 -2
- package/dist/src/config/env/layout.d.ts +0 -11
- package/dist/src/config/environment-name/index.d.ts +0 -1
- package/dist/src/config/environment-name/name.d.ts +0 -10
- package/dist/src/config/error.d.ts +0 -11
- package/dist/src/config/index.d.ts +0 -10
- package/dist/src/config/keystore/error.d.ts +0 -8
- package/dist/src/config/keystore/file.d.ts +0 -9
- package/dist/src/config/keystore/index.d.ts +0 -4
- package/dist/src/config/keystore/keyring-node.d.ts +0 -4
- package/dist/src/config/keystore/service.d.ts +0 -33
- package/dist/src/config/paths/index.d.ts +0 -1
- package/dist/src/config/paths/paths.d.ts +0 -6
- package/dist/src/config/persist/file-mode.d.ts +0 -4
- package/dist/src/config/persist/migration.d.ts +0 -68
- package/dist/src/config/persist/persist.d.ts +0 -40
- package/dist/src/config/persist/schema.d.ts +0 -68
- package/dist/src/config/resolve/resolve.d.ts +0 -40
- package/dist/src/config/selection/index.d.ts +0 -1
- package/dist/src/config/selection/resolve.d.ts +0 -4
- package/dist/src/config/selection/service.d.ts +0 -10
- package/dist/src/config/types.d.ts +0 -36
- package/dist/src/config/url/error.d.ts +0 -10
- package/dist/src/config/url/index.d.ts +0 -2
- package/dist/src/config/url/url.d.ts +0 -6
- package/dist/src/connection/error.d.ts +0 -10
- package/dist/src/connection/index.d.ts +0 -4
- package/dist/src/connection/layer.d.ts +0 -3
- package/dist/src/connection/prepared.d.ts +0 -14
- package/dist/src/connection/service.d.ts +0 -13
- package/dist/src/connection/type.d.ts +0 -10
- package/dist/src/contracts/index.d.ts +0 -1
- package/dist/src/domain/error.d.ts +0 -57
- package/dist/src/domain/helpers.d.ts +0 -179
- package/dist/src/domain/model-config.d.ts +0 -330
- package/dist/src/domain/thread-activities.d.ts +0 -14
- package/dist/src/domain/thread-lifecycle.d.ts +0 -120
- package/dist/src/index.d.ts +0 -3
- package/dist/src/node/connection.d.ts +0 -2
- package/dist/src/node/index.d.ts +0 -1
- package/dist/src/orchestration/index.d.ts +0 -2
- package/dist/src/orchestration/layer.d.ts +0 -1419
- package/dist/src/orchestration/service.d.ts +0 -28
- package/dist/src/rpc/error.d.ts +0 -16
- package/dist/src/rpc/index.d.ts +0 -6
- package/dist/src/rpc/layer.d.ts +0 -5862
- package/dist/src/rpc/operation.d.ts +0 -24
- package/dist/src/rpc/service.d.ts +0 -15
- package/dist/src/rpc/session.d.ts +0 -22
- package/dist/src/rpc/ws-group.d.ts +0 -1984
- package/dist/src/runtime/index.d.ts +0 -1
- package/dist/src/runtime/layer.d.ts +0 -15
- package/dist/src/sql/node-sqlite-client.d.ts +0 -10
- package/dist/src/sql/service.d.ts +0 -17
- package/dist/src/t3tools/index.d.ts +0 -1
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import * as Context from "effect/Context";
|
|
2
|
-
import type * as Effect from "effect/Effect";
|
|
3
|
-
import type * as Stream from "effect/Stream";
|
|
4
|
-
import type { DispatchResult, ModelSelection, OrchestrationMessage, OrchestrationProjectShell, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadShell, ProjectScript, ProjectScriptIcon, ProviderUserInputAnswers, ServerProvider, TerminalAttachStreamEvent, TerminalMetadataStreamEvent, TerminalSessionSnapshot, TerminalSummary } from "@t3tools/contracts";
|
|
5
|
-
import type { ApplicationError } from "./error.ts";
|
|
6
|
-
import type { ThreadShow } from "./threads.ts";
|
|
7
|
-
export type StartThreadInput = {
|
|
8
|
-
readonly projectRef?: string;
|
|
9
|
-
readonly message: string;
|
|
10
|
-
readonly title?: string;
|
|
11
|
-
readonly provider?: string;
|
|
12
|
-
readonly model?: string;
|
|
13
|
-
readonly options?: NonNullable<ModelSelection["options"]>;
|
|
14
|
-
readonly worktreePath?: string;
|
|
15
|
-
};
|
|
16
|
-
export type CreateTerminalInput = {
|
|
17
|
-
readonly threadId: string;
|
|
18
|
-
readonly terminalId?: string;
|
|
19
|
-
readonly command?: string;
|
|
20
|
-
readonly env?: Readonly<Record<string, string>>;
|
|
21
|
-
};
|
|
22
|
-
export type TerminalRef = {
|
|
23
|
-
readonly threadId: string;
|
|
24
|
-
readonly terminalId: string;
|
|
25
|
-
};
|
|
26
|
-
export type TerminalAttachTarget = TerminalRef & {
|
|
27
|
-
readonly cwd: string;
|
|
28
|
-
readonly worktreePath: string | null;
|
|
29
|
-
};
|
|
30
|
-
export type SendThreadInput = {
|
|
31
|
-
readonly threadId: string;
|
|
32
|
-
readonly message: string;
|
|
33
|
-
readonly options?: NonNullable<ModelSelection["options"]>;
|
|
34
|
-
};
|
|
35
|
-
export type CallbackThreadInput = {
|
|
36
|
-
readonly fromThreadId: string;
|
|
37
|
-
readonly targetThreadId: string;
|
|
38
|
-
readonly prompt: string;
|
|
39
|
-
};
|
|
40
|
-
export type ListThreadsInclude = "active" | "archived" | "all";
|
|
41
|
-
export type UpdateThreadInput = {
|
|
42
|
-
readonly threadId: string;
|
|
43
|
-
readonly title?: string;
|
|
44
|
-
readonly provider?: string;
|
|
45
|
-
readonly model?: string;
|
|
46
|
-
readonly options?: NonNullable<ModelSelection["options"]>;
|
|
47
|
-
readonly branch?: string | null;
|
|
48
|
-
readonly worktreePath?: string | null;
|
|
49
|
-
};
|
|
50
|
-
export type StartThreadPolicy = {
|
|
51
|
-
readonly until: "dispatch" | "visible" | "complete";
|
|
52
|
-
};
|
|
53
|
-
export type WaitEvent = {
|
|
54
|
-
readonly type: "thread";
|
|
55
|
-
readonly thread: OrchestrationThread;
|
|
56
|
-
} | {
|
|
57
|
-
readonly type: "message";
|
|
58
|
-
readonly message: OrchestrationMessage;
|
|
59
|
-
} | {
|
|
60
|
-
readonly type: "status";
|
|
61
|
-
readonly status: string;
|
|
62
|
-
readonly threadId: string;
|
|
63
|
-
} | {
|
|
64
|
-
readonly type: "done";
|
|
65
|
-
readonly thread: OrchestrationThread;
|
|
66
|
-
};
|
|
67
|
-
export type ProjectActionSelector = {
|
|
68
|
-
readonly id: string;
|
|
69
|
-
readonly name?: never;
|
|
70
|
-
} | {
|
|
71
|
-
readonly id?: never;
|
|
72
|
-
readonly name: string;
|
|
73
|
-
};
|
|
74
|
-
export type AddProjectActionInput = {
|
|
75
|
-
readonly projectRef: string;
|
|
76
|
-
readonly id?: string;
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly command: string;
|
|
79
|
-
readonly icon?: ProjectScriptIcon;
|
|
80
|
-
readonly setup?: boolean;
|
|
81
|
-
readonly previewUrl?: string;
|
|
82
|
-
readonly autoOpenPreview?: boolean;
|
|
83
|
-
};
|
|
84
|
-
export type UpdateProjectActionInput = {
|
|
85
|
-
readonly projectRef: string;
|
|
86
|
-
readonly selector: ProjectActionSelector;
|
|
87
|
-
readonly name?: string;
|
|
88
|
-
readonly command?: string;
|
|
89
|
-
readonly icon?: ProjectScriptIcon;
|
|
90
|
-
readonly setup?: boolean;
|
|
91
|
-
readonly previewUrl?: string | null;
|
|
92
|
-
readonly autoOpenPreview?: boolean | null;
|
|
93
|
-
};
|
|
94
|
-
export type ProjectActionMutationResult = {
|
|
95
|
-
readonly dispatch: DispatchResult;
|
|
96
|
-
readonly project: OrchestrationProjectShell;
|
|
97
|
-
readonly action: ProjectScript;
|
|
98
|
-
};
|
|
99
|
-
export type ProjectActionDeleteResult = {
|
|
100
|
-
readonly dispatch: DispatchResult;
|
|
101
|
-
readonly project: OrchestrationProjectShell;
|
|
102
|
-
readonly action: ProjectScript;
|
|
103
|
-
};
|
|
104
|
-
export type ProjectActionRunResult = {
|
|
105
|
-
readonly project: OrchestrationProjectShell;
|
|
106
|
-
readonly action: ProjectScript;
|
|
107
|
-
readonly terminal: TerminalSessionSnapshot;
|
|
108
|
-
};
|
|
109
|
-
export type T3ActionApplicationService = {
|
|
110
|
-
readonly listActions: (projectRef: string) => Effect.Effect<{
|
|
111
|
-
readonly project: OrchestrationProjectShell;
|
|
112
|
-
readonly actions: ReadonlyArray<ProjectScript>;
|
|
113
|
-
}, ApplicationError>;
|
|
114
|
-
readonly addAction: (input: AddProjectActionInput) => Effect.Effect<ProjectActionMutationResult, ApplicationError>;
|
|
115
|
-
readonly updateAction: (input: UpdateProjectActionInput) => Effect.Effect<ProjectActionMutationResult, ApplicationError>;
|
|
116
|
-
readonly deleteAction: (input: {
|
|
117
|
-
readonly projectRef: string;
|
|
118
|
-
readonly selector: ProjectActionSelector;
|
|
119
|
-
}) => Effect.Effect<ProjectActionDeleteResult, ApplicationError>;
|
|
120
|
-
readonly runAction: (input: {
|
|
121
|
-
readonly threadId: string;
|
|
122
|
-
readonly selector: ProjectActionSelector;
|
|
123
|
-
readonly terminalId?: string;
|
|
124
|
-
}) => Effect.Effect<ProjectActionRunResult, ApplicationError>;
|
|
125
|
-
};
|
|
126
|
-
declare const T3ActionApplication_base: Context.ServiceClass<T3ActionApplication, "t3cli/T3ActionApplication", T3ActionApplicationService>;
|
|
127
|
-
export declare class T3ActionApplication extends T3ActionApplication_base {
|
|
128
|
-
}
|
|
129
|
-
export type T3ModelApplicationService = {
|
|
130
|
-
readonly listModels: (input: {
|
|
131
|
-
readonly all?: boolean;
|
|
132
|
-
readonly provider?: string;
|
|
133
|
-
}) => Effect.Effect<ReadonlyArray<ServerProvider>, ApplicationError>;
|
|
134
|
-
};
|
|
135
|
-
declare const T3ModelApplication_base: Context.ServiceClass<T3ModelApplication, "t3cli/T3ModelApplication", T3ModelApplicationService>;
|
|
136
|
-
export declare class T3ModelApplication extends T3ModelApplication_base {
|
|
137
|
-
}
|
|
138
|
-
export type T3ProjectApplicationService = {
|
|
139
|
-
readonly loadShell: () => Effect.Effect<OrchestrationShellSnapshot, ApplicationError>;
|
|
140
|
-
readonly addProject: (input: {
|
|
141
|
-
readonly path: string;
|
|
142
|
-
readonly title?: string;
|
|
143
|
-
}) => Effect.Effect<{
|
|
144
|
-
readonly dispatch: DispatchResult;
|
|
145
|
-
readonly project: OrchestrationProjectShell;
|
|
146
|
-
}, ApplicationError>;
|
|
147
|
-
readonly resolveProject: (projectRef: string) => Effect.Effect<OrchestrationProjectShell, ApplicationError>;
|
|
148
|
-
readonly deleteProject: (input: {
|
|
149
|
-
readonly projectId: string;
|
|
150
|
-
readonly force?: boolean;
|
|
151
|
-
}) => Effect.Effect<{
|
|
152
|
-
readonly projectId: string;
|
|
153
|
-
readonly dispatch: DispatchResult;
|
|
154
|
-
}, ApplicationError>;
|
|
155
|
-
};
|
|
156
|
-
declare const T3ProjectApplication_base: Context.ServiceClass<T3ProjectApplication, "t3cli/T3ProjectApplication", T3ProjectApplicationService>;
|
|
157
|
-
export declare class T3ProjectApplication extends T3ProjectApplication_base {
|
|
158
|
-
}
|
|
159
|
-
export type T3ThreadApplicationService = {
|
|
160
|
-
readonly listThreads: (projectRef: string, options?: {
|
|
161
|
-
readonly include?: ListThreadsInclude;
|
|
162
|
-
}) => Effect.Effect<{
|
|
163
|
-
readonly project: OrchestrationProjectShell;
|
|
164
|
-
readonly threads: ReadonlyArray<OrchestrationThreadShell>;
|
|
165
|
-
}, ApplicationError>;
|
|
166
|
-
readonly getThreadMessages: (threadId: string) => Effect.Effect<OrchestrationThread, ApplicationError>;
|
|
167
|
-
readonly showThread: (threadId: string) => Effect.Effect<ThreadShow, ApplicationError>;
|
|
168
|
-
readonly approveThread: (input: {
|
|
169
|
-
readonly threadId: string;
|
|
170
|
-
readonly requestId: string;
|
|
171
|
-
readonly decision: "accept" | "decline" | "cancel";
|
|
172
|
-
}) => Effect.Effect<{
|
|
173
|
-
readonly threadId: string;
|
|
174
|
-
readonly requestId: string;
|
|
175
|
-
readonly dispatch: DispatchResult;
|
|
176
|
-
}, ApplicationError>;
|
|
177
|
-
readonly respondToThread: (input: {
|
|
178
|
-
readonly threadId: string;
|
|
179
|
-
readonly requestId: string;
|
|
180
|
-
readonly answers: ProviderUserInputAnswers;
|
|
181
|
-
}) => Effect.Effect<{
|
|
182
|
-
readonly threadId: string;
|
|
183
|
-
readonly requestId: string;
|
|
184
|
-
readonly dispatch: DispatchResult;
|
|
185
|
-
}, ApplicationError>;
|
|
186
|
-
readonly archiveThread: (threadId: string) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
187
|
-
readonly interruptThread: (threadId: string) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
188
|
-
readonly unarchiveThread: (threadId: string) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
189
|
-
readonly deleteThread: (threadId: string) => Effect.Effect<{
|
|
190
|
-
readonly threadId: string;
|
|
191
|
-
readonly dispatch: DispatchResult;
|
|
192
|
-
}, ApplicationError>;
|
|
193
|
-
readonly updateThread: (input: UpdateThreadInput) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
194
|
-
readonly startThread: (input: StartThreadInput, policy?: StartThreadPolicy) => Effect.Effect<{
|
|
195
|
-
readonly dispatch: DispatchResult;
|
|
196
|
-
readonly project: OrchestrationProjectShell;
|
|
197
|
-
readonly threadId: string;
|
|
198
|
-
readonly thread?: OrchestrationThread;
|
|
199
|
-
}, ApplicationError>;
|
|
200
|
-
readonly sendThread: (input: SendThreadInput, policy?: StartThreadPolicy) => Effect.Effect<{
|
|
201
|
-
readonly dispatch: DispatchResult;
|
|
202
|
-
readonly threadId: string;
|
|
203
|
-
readonly thread?: OrchestrationThread;
|
|
204
|
-
}, ApplicationError>;
|
|
205
|
-
readonly watchThread: (threadId: string) => Stream.Stream<WaitEvent, ApplicationError>;
|
|
206
|
-
readonly waitForThread: (threadId: string) => Effect.Effect<OrchestrationThread, ApplicationError>;
|
|
207
|
-
readonly callbackThread: (input: CallbackThreadInput) => Effect.Effect<{
|
|
208
|
-
readonly dispatch: DispatchResult;
|
|
209
|
-
readonly targetThreadId: string;
|
|
210
|
-
}, ApplicationError>;
|
|
211
|
-
};
|
|
212
|
-
declare const T3ThreadApplication_base: Context.ServiceClass<T3ThreadApplication, "t3cli/T3ThreadApplication", T3ThreadApplicationService>;
|
|
213
|
-
export declare class T3ThreadApplication extends T3ThreadApplication_base {
|
|
214
|
-
}
|
|
215
|
-
export type T3TerminalApplicationService = {
|
|
216
|
-
readonly listTerminals: (threadId: string) => Effect.Effect<ReadonlyArray<TerminalSummary>, ApplicationError>;
|
|
217
|
-
readonly getTerminal: (terminal: TerminalRef) => Effect.Effect<TerminalSummary, ApplicationError>;
|
|
218
|
-
readonly createTerminal: (input: CreateTerminalInput) => Effect.Effect<TerminalSessionSnapshot, ApplicationError>;
|
|
219
|
-
readonly attachTerminal: (input: {
|
|
220
|
-
readonly terminal: TerminalAttachTarget;
|
|
221
|
-
readonly cols?: number;
|
|
222
|
-
readonly rows?: number;
|
|
223
|
-
}) => Stream.Stream<TerminalAttachStreamEvent, ApplicationError>;
|
|
224
|
-
readonly watchTerminalMetadata: () => Stream.Stream<TerminalMetadataStreamEvent, ApplicationError>;
|
|
225
|
-
readonly writeTerminal: (input: {
|
|
226
|
-
readonly terminal: TerminalRef;
|
|
227
|
-
readonly data: string;
|
|
228
|
-
}) => Effect.Effect<void, ApplicationError>;
|
|
229
|
-
readonly resizeTerminal: (input: {
|
|
230
|
-
readonly terminal: TerminalRef;
|
|
231
|
-
readonly cols: number;
|
|
232
|
-
readonly rows: number;
|
|
233
|
-
}) => Effect.Effect<void, ApplicationError>;
|
|
234
|
-
readonly destroyTerminal: (terminal: TerminalRef) => Effect.Effect<void, ApplicationError>;
|
|
235
|
-
};
|
|
236
|
-
declare const T3TerminalApplication_base: Context.ServiceClass<T3TerminalApplication, "t3cli/T3TerminalApplication", T3TerminalApplicationService>;
|
|
237
|
-
export declare class T3TerminalApplication extends T3TerminalApplication_base {
|
|
238
|
-
}
|
|
239
|
-
export type T3ApplicationService = T3ModelApplicationService & T3ActionApplicationService & T3ProjectApplicationService & T3ThreadApplicationService & T3TerminalApplicationService;
|
|
240
|
-
declare const T3Application_base: Context.ServiceClass<T3Application, "t3cli/T3Application", T3ApplicationService>;
|
|
241
|
-
export declare class T3Application extends T3Application_base {
|
|
242
|
-
}
|
|
243
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import { T3Orchestration } from "../orchestration/service.ts";
|
|
3
|
-
import { RpcError } from "../rpc/error.ts";
|
|
4
|
-
export declare function waitForShellSequence(input: {
|
|
5
|
-
readonly sequence: number;
|
|
6
|
-
}): Effect.Effect<{
|
|
7
|
-
readonly snapshotSequence: number;
|
|
8
|
-
readonly projects: readonly {
|
|
9
|
-
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
10
|
-
readonly title: string;
|
|
11
|
-
readonly workspaceRoot: string;
|
|
12
|
-
readonly repositoryIdentity?: {
|
|
13
|
-
readonly canonicalKey: string;
|
|
14
|
-
readonly locator: {
|
|
15
|
-
readonly source: "git-remote";
|
|
16
|
-
readonly remoteName: string;
|
|
17
|
-
readonly remoteUrl: string;
|
|
18
|
-
};
|
|
19
|
-
readonly rootPath?: string;
|
|
20
|
-
readonly displayName?: string;
|
|
21
|
-
readonly provider?: string;
|
|
22
|
-
readonly owner?: string;
|
|
23
|
-
readonly name?: string;
|
|
24
|
-
} | null | undefined;
|
|
25
|
-
readonly defaultModelSelection: {
|
|
26
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
27
|
-
readonly model: string;
|
|
28
|
-
readonly options?: readonly {
|
|
29
|
-
readonly id: string;
|
|
30
|
-
readonly value: string | boolean;
|
|
31
|
-
}[];
|
|
32
|
-
} | null;
|
|
33
|
-
readonly scripts: readonly {
|
|
34
|
-
readonly id: string;
|
|
35
|
-
readonly name: string;
|
|
36
|
-
readonly command: string;
|
|
37
|
-
readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
|
|
38
|
-
readonly runOnWorktreeCreate: boolean;
|
|
39
|
-
readonly previewUrl?: string | undefined;
|
|
40
|
-
readonly autoOpenPreview?: boolean | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
readonly createdAt: string;
|
|
43
|
-
readonly updatedAt: string;
|
|
44
|
-
}[];
|
|
45
|
-
readonly threads: readonly {
|
|
46
|
-
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
47
|
-
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
48
|
-
readonly title: string;
|
|
49
|
-
readonly modelSelection: {
|
|
50
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
51
|
-
readonly model: string;
|
|
52
|
-
readonly options?: readonly {
|
|
53
|
-
readonly id: string;
|
|
54
|
-
readonly value: string | boolean;
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
58
|
-
readonly interactionMode: "default" | "plan";
|
|
59
|
-
readonly branch: string | null;
|
|
60
|
-
readonly worktreePath: string | null;
|
|
61
|
-
readonly latestTurn: {
|
|
62
|
-
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
63
|
-
readonly state: "completed" | "error" | "interrupted" | "running";
|
|
64
|
-
readonly requestedAt: string;
|
|
65
|
-
readonly startedAt: string | null;
|
|
66
|
-
readonly completedAt: string | null;
|
|
67
|
-
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
68
|
-
readonly sourceProposedPlan?: {
|
|
69
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
70
|
-
readonly planId: string;
|
|
71
|
-
} | undefined;
|
|
72
|
-
} | null;
|
|
73
|
-
readonly createdAt: string;
|
|
74
|
-
readonly updatedAt: string;
|
|
75
|
-
readonly archivedAt: string | null;
|
|
76
|
-
readonly settledOverride: "active" | "settled" | null;
|
|
77
|
-
readonly settledAt: string | null;
|
|
78
|
-
readonly snoozedUntil?: string | null | undefined;
|
|
79
|
-
readonly snoozedAt?: string | null | undefined;
|
|
80
|
-
readonly session: {
|
|
81
|
-
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
82
|
-
readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
|
|
83
|
-
readonly providerName: string | null;
|
|
84
|
-
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
85
|
-
readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
|
|
86
|
-
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
87
|
-
readonly lastError: string | null;
|
|
88
|
-
readonly updatedAt: string;
|
|
89
|
-
} | null;
|
|
90
|
-
readonly latestUserMessageAt: string | null;
|
|
91
|
-
readonly hasPendingApprovals: boolean;
|
|
92
|
-
readonly hasPendingUserInput: boolean;
|
|
93
|
-
readonly hasActionableProposedPlan: boolean;
|
|
94
|
-
}[];
|
|
95
|
-
readonly updatedAt: string;
|
|
96
|
-
}, RpcError, T3Orchestration>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as Crypto from "effect/Crypto";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as Stream from "effect/Stream";
|
|
4
|
-
import { TerminalLookupError, ThreadLookupError } from "../domain/error.ts";
|
|
5
|
-
import { T3Orchestration } from "../orchestration/service.ts";
|
|
6
|
-
import { RpcError } from "../rpc/error.ts";
|
|
7
|
-
import { T3RpcOperations } from "../rpc/operation.ts";
|
|
8
|
-
import type { CreateTerminalInput, TerminalRef } from "./service.ts";
|
|
9
|
-
export declare const makeTerminalApplication: () => Effect.Effect<{
|
|
10
|
-
attachTerminal: (input: {
|
|
11
|
-
readonly terminal: import("./service.ts").TerminalAttachTarget;
|
|
12
|
-
readonly cols?: number;
|
|
13
|
-
readonly rows?: number;
|
|
14
|
-
}) => Stream.Stream<import("@t3tools/contracts").TerminalAttachStreamEvent, import("./error.ts").ApplicationError>;
|
|
15
|
-
createTerminal: (input: CreateTerminalInput) => Effect.Effect<{
|
|
16
|
-
readonly threadId: string;
|
|
17
|
-
readonly terminalId: string;
|
|
18
|
-
readonly cwd: string;
|
|
19
|
-
readonly worktreePath: string | null;
|
|
20
|
-
readonly status: "error" | "exited" | "running" | "starting";
|
|
21
|
-
readonly pid: number | null;
|
|
22
|
-
readonly history: string;
|
|
23
|
-
readonly exitCode: number | null;
|
|
24
|
-
readonly exitSignal: number | null;
|
|
25
|
-
readonly label: string;
|
|
26
|
-
readonly updatedAt: string;
|
|
27
|
-
readonly sequence?: number | undefined;
|
|
28
|
-
}, import("./error.ts").ApplicationError, never>;
|
|
29
|
-
destroyTerminal: (terminal: TerminalRef) => Effect.Effect<void, RpcError, never>;
|
|
30
|
-
getTerminal: (terminal: TerminalRef) => Effect.Effect<{
|
|
31
|
-
readonly threadId: string;
|
|
32
|
-
readonly terminalId: string;
|
|
33
|
-
readonly cwd: string;
|
|
34
|
-
readonly worktreePath: string | null;
|
|
35
|
-
readonly status: "error" | "exited" | "running" | "starting";
|
|
36
|
-
readonly pid: number | null;
|
|
37
|
-
readonly exitCode: number | null;
|
|
38
|
-
readonly exitSignal: number | null;
|
|
39
|
-
readonly hasRunningSubprocess: boolean;
|
|
40
|
-
readonly label: string;
|
|
41
|
-
readonly updatedAt: string;
|
|
42
|
-
}, RpcError | TerminalLookupError | ThreadLookupError, never>;
|
|
43
|
-
listTerminals: (threadId: string) => Effect.Effect<{
|
|
44
|
-
readonly threadId: string;
|
|
45
|
-
readonly terminalId: string;
|
|
46
|
-
readonly cwd: string;
|
|
47
|
-
readonly worktreePath: string | null;
|
|
48
|
-
readonly status: "error" | "exited" | "running" | "starting";
|
|
49
|
-
readonly pid: number | null;
|
|
50
|
-
readonly exitCode: number | null;
|
|
51
|
-
readonly exitSignal: number | null;
|
|
52
|
-
readonly hasRunningSubprocess: boolean;
|
|
53
|
-
readonly label: string;
|
|
54
|
-
readonly updatedAt: string;
|
|
55
|
-
}[], RpcError | ThreadLookupError, never>;
|
|
56
|
-
resizeTerminal: (input: {
|
|
57
|
-
readonly terminal: TerminalRef;
|
|
58
|
-
readonly cols: number;
|
|
59
|
-
readonly rows: number;
|
|
60
|
-
}) => Effect.Effect<void, RpcError, never>;
|
|
61
|
-
watchTerminalMetadata: () => Stream.Stream<import("@t3tools/contracts").TerminalMetadataStreamEvent, import("./error.ts").ApplicationError>;
|
|
62
|
-
writeTerminal: (input: {
|
|
63
|
-
readonly terminal: TerminalRef;
|
|
64
|
-
readonly data: string;
|
|
65
|
-
}) => Effect.Effect<void, RpcError, never>;
|
|
66
|
-
}, never, Crypto.Crypto | T3Orchestration | T3RpcOperations>;
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import * as Crypto from "effect/Crypto";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import { type ModelSelection, type OrchestrationProjectShell, type ProviderApprovalDecision, type ProviderUserInputAnswers } from "@t3tools/contracts";
|
|
4
|
-
import type { ServerConfigForCli } from "../orchestration/service.ts";
|
|
5
|
-
import type { SendThreadInput, StartThreadInput } from "./service.ts";
|
|
6
|
-
export declare const makeThreadStartCommands: (input: {
|
|
7
|
-
readonly start: StartThreadInput;
|
|
8
|
-
readonly project: OrchestrationProjectShell;
|
|
9
|
-
readonly serverConfig: ServerConfigForCli;
|
|
10
|
-
}) => Effect.Effect<{
|
|
11
|
-
createCommand: {
|
|
12
|
-
type: "thread.create";
|
|
13
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
14
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
15
|
-
projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
16
|
-
title: string;
|
|
17
|
-
modelSelection: {
|
|
18
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
19
|
-
readonly model: string;
|
|
20
|
-
readonly options?: readonly {
|
|
21
|
-
readonly id: string;
|
|
22
|
-
readonly value: string | boolean;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
runtimeMode: "full-access";
|
|
26
|
-
interactionMode: "default";
|
|
27
|
-
branch: null;
|
|
28
|
-
worktreePath: string | null;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
};
|
|
31
|
-
turnCommand: {
|
|
32
|
-
type: "thread.turn.start";
|
|
33
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
34
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
35
|
-
message: {
|
|
36
|
-
messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
37
|
-
role: "user";
|
|
38
|
-
text: string;
|
|
39
|
-
attachments: never[];
|
|
40
|
-
};
|
|
41
|
-
modelSelection: {
|
|
42
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
43
|
-
readonly model: string;
|
|
44
|
-
readonly options?: readonly {
|
|
45
|
-
readonly id: string;
|
|
46
|
-
readonly value: string | boolean;
|
|
47
|
-
}[];
|
|
48
|
-
};
|
|
49
|
-
titleSeed: string;
|
|
50
|
-
runtimeMode: "full-access";
|
|
51
|
-
interactionMode: "default";
|
|
52
|
-
createdAt: string;
|
|
53
|
-
};
|
|
54
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
55
|
-
}, import("../domain/error.ts").ModelSelectionError, Crypto.Crypto>;
|
|
56
|
-
export declare const makeThreadTurnContinueCommand: (input: SendThreadInput & {
|
|
57
|
-
readonly modelSelection?: ModelSelection;
|
|
58
|
-
}) => Effect.Effect<{
|
|
59
|
-
type: "thread.turn.start";
|
|
60
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
61
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
62
|
-
message: {
|
|
63
|
-
messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
64
|
-
role: "user";
|
|
65
|
-
text: string;
|
|
66
|
-
attachments: never[];
|
|
67
|
-
};
|
|
68
|
-
runtimeMode: "full-access";
|
|
69
|
-
interactionMode: "default";
|
|
70
|
-
modelSelection?: {
|
|
71
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
72
|
-
readonly model: string;
|
|
73
|
-
readonly options?: readonly {
|
|
74
|
-
readonly id: string;
|
|
75
|
-
readonly value: string | boolean;
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
78
|
-
createdAt: string;
|
|
79
|
-
}, never, Crypto.Crypto>;
|
|
80
|
-
export declare const makeThreadArchiveCommand: (threadId: string) => Effect.Effect<{
|
|
81
|
-
type: "thread.archive";
|
|
82
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
83
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
84
|
-
}, never, Crypto.Crypto>;
|
|
85
|
-
export declare const makeThreadUnarchiveCommand: (threadId: string) => Effect.Effect<{
|
|
86
|
-
type: "thread.unarchive";
|
|
87
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
88
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
89
|
-
}, never, Crypto.Crypto>;
|
|
90
|
-
export declare const makeThreadSessionStopCommand: (threadId: string) => Effect.Effect<{
|
|
91
|
-
type: "thread.session.stop";
|
|
92
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
93
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
94
|
-
createdAt: string;
|
|
95
|
-
}, never, Crypto.Crypto>;
|
|
96
|
-
export declare const makeThreadDeleteCommand: (threadId: string) => Effect.Effect<{
|
|
97
|
-
type: "thread.delete";
|
|
98
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
99
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
100
|
-
}, never, Crypto.Crypto>;
|
|
101
|
-
export declare const makeThreadInterruptCommand: (input: {
|
|
102
|
-
readonly threadId: string;
|
|
103
|
-
readonly turnId?: string;
|
|
104
|
-
}) => Effect.Effect<{
|
|
105
|
-
type: "thread.turn.interrupt";
|
|
106
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
107
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
108
|
-
turnId?: string & import("effect/Brand").Brand<"TurnId">;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
}, never, Crypto.Crypto>;
|
|
111
|
-
export declare const makeThreadApprovalRespondCommand: (input: {
|
|
112
|
-
readonly threadId: string;
|
|
113
|
-
readonly requestId: string;
|
|
114
|
-
readonly decision: ProviderApprovalDecision;
|
|
115
|
-
}) => Effect.Effect<{
|
|
116
|
-
type: "thread.approval.respond";
|
|
117
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
118
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
119
|
-
requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
120
|
-
decision: "accept" | "acceptForSession" | "cancel" | "decline";
|
|
121
|
-
createdAt: string;
|
|
122
|
-
}, never, Crypto.Crypto>;
|
|
123
|
-
export declare const makeThreadUserInputRespondCommand: (input: {
|
|
124
|
-
readonly threadId: string;
|
|
125
|
-
readonly requestId: string;
|
|
126
|
-
readonly answers: ProviderUserInputAnswers;
|
|
127
|
-
}) => Effect.Effect<{
|
|
128
|
-
type: "thread.user-input.respond";
|
|
129
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
130
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
131
|
-
requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
132
|
-
answers: {
|
|
133
|
-
readonly [x: string]: unknown;
|
|
134
|
-
};
|
|
135
|
-
createdAt: string;
|
|
136
|
-
}, never, Crypto.Crypto>;
|
|
137
|
-
export declare const makeThreadMetaUpdateCommand: (threadId: string, input: {
|
|
138
|
-
readonly title?: string;
|
|
139
|
-
readonly modelSelection?: ModelSelection;
|
|
140
|
-
readonly branch?: string | null;
|
|
141
|
-
readonly worktreePath?: string | null;
|
|
142
|
-
}) => Effect.Effect<{
|
|
143
|
-
type: "thread.meta.update";
|
|
144
|
-
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
145
|
-
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
146
|
-
title?: string;
|
|
147
|
-
modelSelection?: {
|
|
148
|
-
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
149
|
-
readonly model: string;
|
|
150
|
-
readonly options?: readonly {
|
|
151
|
-
readonly id: string;
|
|
152
|
-
readonly value: string | boolean;
|
|
153
|
-
}[];
|
|
154
|
-
};
|
|
155
|
-
branch?: string | null;
|
|
156
|
-
worktreePath?: string | null;
|
|
157
|
-
}, never, Crypto.Crypto>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as Crypto from "effect/Crypto";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import { ModelSelectionError, ThreadEventError } from "../domain/error.ts";
|
|
4
|
-
import { T3Orchestration } from "../orchestration/service.ts";
|
|
5
|
-
import type { UpdateThreadInput } from "./service.ts";
|
|
6
|
-
export declare function makeUpdateThread(): (input: UpdateThreadInput) => Effect.Effect<{
|
|
7
|
-
readonly sequence: number;
|
|
8
|
-
}, ModelSelectionError | import("../rpc/error.ts").RpcError | ThreadEventError, Crypto.Crypto | T3Orchestration>;
|