t3code-cli 0.1.3 → 0.3.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/dist/bin.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{runtime-0wuYCEoH.js → runtime-CMPZpQaG.js} +35 -31
- package/dist/src/application/error.d.ts +3 -0
- package/dist/src/application/layer.d.ts +776 -0
- package/dist/src/application/model-selection.d.ts +19 -0
- package/dist/src/application/models.d.ts +93 -0
- package/dist/src/application/project-commands.d.ts +15 -0
- package/dist/src/application/projects.d.ts +136 -0
- package/dist/src/application/service.d.ts +72 -0
- package/dist/src/application/shell-sequence.d.ts +91 -0
- package/dist/src/application/thread-commands.d.ts +84 -0
- package/dist/src/application/thread-wait.d.ts +104 -0
- package/dist/src/application/threads.d.ts +563 -0
- package/dist/src/auth/error.d.ts +31 -0
- package/dist/src/auth/layer.d.ts +36 -0
- package/dist/src/auth/local.d.ts +19 -0
- package/dist/src/auth/pairing.d.ts +4 -0
- package/dist/src/auth/schema.d.ts +67 -0
- package/dist/src/auth/service.d.ts +14 -0
- package/dist/src/auth/transport.d.ts +26 -0
- package/dist/src/auth/type.d.ts +26 -0
- package/dist/src/config/error.d.ts +18 -0
- package/dist/src/config/layer.d.ts +20 -0
- package/dist/src/config/service.d.ts +20 -0
- package/dist/src/config/url.d.ts +6 -0
- package/dist/src/domain/error.d.ts +31 -0
- package/dist/src/domain/helpers.d.ts +38 -0
- package/dist/src/domain/model-config.d.ts +293 -0
- package/dist/src/domain/thread-lifecycle.d.ts +114 -0
- package/dist/src/environment/layer.d.ts +3 -0
- package/dist/src/environment/service.d.ts +12 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/orchestration/layer.d.ts +2128 -0
- package/dist/src/orchestration/service.d.ts +27 -0
- package/dist/src/rpc/error.d.ts +15 -0
- package/dist/src/rpc/layer.d.ts +4678 -0
- package/dist/src/rpc/service.d.ts +15 -0
- package/dist/src/rpc/ws-group.d.ts +2238 -0
- package/dist/src/runtime.d.ts +3 -0
- package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +439 -0
- package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +38 -0
- package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +14 -0
- package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +124 -0
- package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +64 -0
- package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +602 -0
- package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +26 -0
- package/dist/upstream-t3code/packages/contracts/src/git.d.ts +500 -0
- package/dist/upstream-t3code/packages/contracts/src/index.d.ts +24 -0
- package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +466 -0
- package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +133 -0
- package/dist/upstream-t3code/packages/contracts/src/model.d.ts +112 -0
- package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +6682 -0
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +45 -0
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +116 -0
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +99 -0
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +4186 -0
- package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +45 -0
- package/dist/upstream-t3code/packages/contracts/src/review.d.ts +37 -0
- package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +8149 -0
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +2291 -0
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +271 -0
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +177 -0
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +330 -0
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +148 -0
- package/package.json +15 -7
- package/src/application/model-selection.ts +2 -2
- package/src/application/project-commands.ts +1 -1
- package/src/application/service.ts +1 -1
- package/src/application/shell-sequence.ts +1 -1
- package/src/application/thread-commands.ts +1 -1
- package/src/application/thread-wait.ts +1 -1
- package/src/auth/error.ts +5 -1
- package/src/auth/pairing.ts +6 -2
- package/src/auth/transport.ts +21 -10
- package/src/cli/model-format.ts +1 -1
- package/src/cli/project-format.ts +1 -1
- package/src/cli/thread-format.ts +1 -1
- package/src/config/url.ts +46 -2
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +1 -1
- package/src/domain/thread-lifecycle.ts +1 -1
- package/src/index.ts +3 -3
- package/src/orchestration/layer.ts +1 -1
- package/src/orchestration/service.ts +1 -1
- package/src/rpc/error.ts +1 -1
- package/src/rpc/layer.ts +2 -2
- package/src/rpc/ws-group.ts +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as Context from "effect/Context";
|
|
2
|
+
import type * as Effect from "effect/Effect";
|
|
3
|
+
import type * as Scope from "effect/Scope";
|
|
4
|
+
import type * as Stream from "effect/Stream";
|
|
5
|
+
import type { ClientOrchestrationCommand, DispatchResult, OrchestrationEvent, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadStreamItem, ServerProviders } from "#t3tools/contracts";
|
|
6
|
+
import type { RpcError } from "../rpc/error.ts";
|
|
7
|
+
export type OrchestrationError = RpcError;
|
|
8
|
+
export type OpenThread = {
|
|
9
|
+
readonly snapshot: OrchestrationThread;
|
|
10
|
+
readonly events: Stream.Stream<OrchestrationEvent, OrchestrationError>;
|
|
11
|
+
};
|
|
12
|
+
export type ServerConfigForCli = {
|
|
13
|
+
readonly providers: ServerProviders;
|
|
14
|
+
};
|
|
15
|
+
export type Orchestration = {
|
|
16
|
+
readonly dispatch: (command: ClientOrchestrationCommand) => Effect.Effect<DispatchResult, OrchestrationError>;
|
|
17
|
+
readonly getServerConfig: () => Effect.Effect<ServerConfigForCli, OrchestrationError>;
|
|
18
|
+
readonly getShellSnapshot: () => Effect.Effect<OrchestrationShellSnapshot, OrchestrationError>;
|
|
19
|
+
readonly getThreadSnapshot: (threadId: string) => Effect.Effect<OrchestrationThread, OrchestrationError>;
|
|
20
|
+
readonly watchShellSequence: () => Stream.Stream<number, OrchestrationError, Scope.Scope>;
|
|
21
|
+
readonly watchThreadItems: (threadId: string) => Stream.Stream<OrchestrationThreadStreamItem, OrchestrationError, Scope.Scope>;
|
|
22
|
+
readonly openThread: (threadId: string) => Effect.Effect<OpenThread, OrchestrationError, Scope.Scope>;
|
|
23
|
+
};
|
|
24
|
+
declare const T3Orchestration_base: Context.ServiceClass<T3Orchestration, "t3cli/T3Orchestration", Orchestration>;
|
|
25
|
+
export declare class T3Orchestration extends T3Orchestration_base {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { EnvironmentAuthorizationError, KeybindingsConfigError, OrchestrationDispatchCommandError, OrchestrationGetSnapshotError, ServerSettingsError } from "#t3tools/contracts";
|
|
3
|
+
import { HttpClientError } from "effect/unstable/http";
|
|
4
|
+
import { RpcClientError } from "effect/unstable/rpc";
|
|
5
|
+
import { AuthConfigError, AuthLocalError, AuthPairingUrlError, AuthTransportError } from "../auth/error.ts";
|
|
6
|
+
import { ConfigError, UrlError } from "../config/error.ts";
|
|
7
|
+
declare const RpcError_base: Schema.Class<RpcError, Schema.TaggedStruct<"RpcError", {
|
|
8
|
+
readonly message: Schema.String;
|
|
9
|
+
readonly method: Schema.optionalKey<Schema.String>;
|
|
10
|
+
readonly cause: Schema.optionalKey<Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, typeof AuthConfigError, typeof AuthLocalError, typeof AuthPairingUrlError, typeof AuthTransportError, typeof ConfigError, typeof HttpClientError.HttpClientErrorSchema, typeof UrlError, Schema.instanceOf<Schema.SchemaError, unknown>]>>;
|
|
11
|
+
}>, import("effect/Cause").YieldableError>;
|
|
12
|
+
export declare class RpcError extends RpcError_base {
|
|
13
|
+
}
|
|
14
|
+
export type OrchestrationError = RpcError;
|
|
15
|
+
export {};
|