t3code-cli 0.12.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.
Files changed (64) hide show
  1. package/dist/application.js +1 -1
  2. package/dist/auth.js +1 -1
  3. package/dist/bin.js +48 -31
  4. package/dist/cli.js +1 -1
  5. package/dist/config.js +1 -1
  6. package/dist/connection.js +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/node.js +1 -1
  9. package/dist/rolldown-runtime.js +1 -1
  10. package/dist/rpc.js +1 -1
  11. package/dist/shared.js +11971 -1517
  12. package/dist/src/application/actions.d.ts +1 -1
  13. package/dist/src/application/layer.d.ts +42 -42
  14. package/dist/src/application/project-commands.d.ts +3 -3
  15. package/dist/src/application/projects.d.ts +1 -1
  16. package/dist/src/application/shell-sequence.d.ts +23 -28
  17. package/dist/src/application/terminals.d.ts +6 -6
  18. package/dist/src/application/thread-commands.d.ts +18 -18
  19. package/dist/src/application/thread-update.d.ts +1 -1
  20. package/dist/src/application/thread-wait.d.ts +19 -24
  21. package/dist/src/application/threads.d.ts +124 -149
  22. package/dist/src/auth/error.d.ts +1 -2
  23. package/dist/src/auth/layer.d.ts +2 -2
  24. package/dist/src/auth/local-origin.d.ts +2 -2
  25. package/dist/src/auth/local-token.d.ts +2 -2
  26. package/dist/src/auth/remote-error.d.ts +3 -0
  27. package/dist/src/config/config.d.ts +2 -2
  28. package/dist/src/config/credential/service.d.ts +2 -2
  29. package/dist/src/config/keystore/file.d.ts +1 -1
  30. package/dist/src/config/persist/migration.d.ts +3 -3
  31. package/dist/src/config/persist/persist.d.ts +4 -4
  32. package/dist/src/connection/error.d.ts +3 -1
  33. package/dist/src/connection/prepared.d.ts +14 -0
  34. package/dist/src/domain/helpers.d.ts +46 -51
  35. package/dist/src/domain/model-config.d.ts +91 -86
  36. package/dist/src/domain/thread-lifecycle.d.ts +23 -28
  37. package/dist/src/orchestration/layer.d.ts +308 -523
  38. package/dist/src/rpc/error.d.ts +4 -6
  39. package/dist/src/rpc/index.d.ts +3 -2
  40. package/dist/src/rpc/layer.d.ts +1890 -2299
  41. package/dist/src/rpc/operation.d.ts +4 -6260
  42. package/dist/src/rpc/service.d.ts +1 -1
  43. package/dist/src/rpc/session.d.ts +22 -0
  44. package/dist/src/rpc/ws-group.d.ts +439 -1180
  45. package/dist/src/runtime/layer.d.ts +10 -10
  46. package/dist/src/sql/node-sqlite-client.d.ts +1 -1
  47. package/dist/t3tools.js +2 -2
  48. package/package.json +8 -7
  49. package/src/application/thread-wait.ts +4 -0
  50. package/src/auth/error.ts +2 -8
  51. package/src/auth/remote-error.ts +17 -0
  52. package/src/auth/transport.ts +45 -114
  53. package/src/connection/error.ts +4 -1
  54. package/src/connection/layer.ts +5 -2
  55. package/src/connection/prepared.ts +83 -0
  56. package/src/orchestration/layer.ts +2 -1
  57. package/src/rpc/error.ts +9 -16
  58. package/src/rpc/index.ts +3 -2
  59. package/src/rpc/layer.ts +17 -51
  60. package/src/rpc/operation.ts +16 -2
  61. package/src/rpc/service.ts +2 -1
  62. package/src/rpc/session.ts +168 -0
  63. package/src/rpc/ws-group.ts +12 -26
  64. package/src/runtime/layer.ts +6 -3
@@ -1,16 +1,14 @@
1
+ import { ConnectionBlockedError, ConnectionTransientError } from "@t3tools/client-runtime/connection";
2
+ import { EnvironmentAuthorizationError, KeybindingsConfigError, OrchestrationDispatchCommandError, OrchestrationGetSnapshotError, ServerSettingsError } from "@t3tools/contracts";
1
3
  import * as Schema from "effect/Schema";
2
- import { EnvironmentAuthorizationError, KeybindingsConfigError, OrchestrationDispatchCommandError, OrchestrationGetSnapshotError, ServerSettingsError, TerminalCwdError, TerminalHistoryError, TerminalNotRunningError, TerminalSessionLookupError } from "@t3tools/contracts";
3
- import { HttpClientError } from "effect/unstable/http";
4
4
  import { RpcClientError } from "effect/unstable/rpc";
5
- import { AuthTransportError } from "../auth/error.ts";
6
5
  import { T3CodeConnectionError } from "../connection/error.ts";
7
- import { UrlError } from "../config/url/error.ts";
8
- declare const RpcErrorCauseSchema: Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, typeof TerminalCwdError, typeof TerminalHistoryError, typeof TerminalNotRunningError, typeof TerminalSessionLookupError, typeof AuthTransportError, typeof T3CodeConnectionError, typeof HttpClientError.HttpClientErrorSchema, typeof UrlError, Schema.instanceOf<Schema.SchemaError, unknown>]>;
6
+ declare const RpcErrorCauseSchema: Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, Schema.Union<readonly [Schema.Union<readonly [typeof import("@t3tools/contracts").TerminalCwdNotFoundError, typeof import("@t3tools/contracts").TerminalCwdNotDirectoryError, typeof import("@t3tools/contracts").TerminalCwdStatError]>, typeof import("@t3tools/contracts").TerminalHistoryError, typeof import("@t3tools/contracts").TerminalSessionLookupError, typeof import("@t3tools/contracts").TerminalNotRunningError, typeof import("@t3tools/contracts").TerminalWriteError, typeof import("@t3tools/contracts").TerminalResizeError]>, typeof ConnectionBlockedError, typeof ConnectionTransientError, typeof T3CodeConnectionError]>;
9
7
  export type RpcKnownCause = Schema.Schema.Type<typeof RpcErrorCauseSchema>;
10
8
  declare const RpcError_base: Schema.Class<RpcError, Schema.TaggedStruct<"RpcError", {
11
9
  readonly message: Schema.String;
12
10
  readonly method: Schema.optionalKey<Schema.String>;
13
- readonly cause: Schema.optionalKey<Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, typeof TerminalCwdError, typeof TerminalHistoryError, typeof TerminalNotRunningError, typeof TerminalSessionLookupError, typeof AuthTransportError, typeof T3CodeConnectionError, typeof HttpClientError.HttpClientErrorSchema, typeof UrlError, Schema.instanceOf<Schema.SchemaError, unknown>]>>;
11
+ readonly cause: Schema.optionalKey<Schema.Union<readonly [typeof RpcClientError.RpcClientError, typeof EnvironmentAuthorizationError, typeof KeybindingsConfigError, typeof OrchestrationDispatchCommandError, typeof OrchestrationGetSnapshotError, typeof ServerSettingsError, Schema.Union<readonly [Schema.Union<readonly [typeof import("@t3tools/contracts").TerminalCwdNotFoundError, typeof import("@t3tools/contracts").TerminalCwdNotDirectoryError, typeof import("@t3tools/contracts").TerminalCwdStatError]>, typeof import("@t3tools/contracts").TerminalHistoryError, typeof import("@t3tools/contracts").TerminalSessionLookupError, typeof import("@t3tools/contracts").TerminalNotRunningError, typeof import("@t3tools/contracts").TerminalWriteError, typeof import("@t3tools/contracts").TerminalResizeError]>, typeof ConnectionBlockedError, typeof ConnectionTransientError, typeof T3CodeConnectionError]>>;
14
12
  }>, import("effect/Cause").YieldableError>;
15
13
  export declare class RpcError extends RpcError_base {
16
14
  }
@@ -1,5 +1,6 @@
1
- export { RpcError } from "./error.ts";
1
+ export { RpcError, type OrchestrationError } from "./error.ts";
2
2
  export { makeT3RpcLayer, T3RpcLive } from "./layer.ts";
3
3
  export { T3RpcOperations, T3RpcOperationsLive, makeT3RpcOperations } from "./operation.ts";
4
+ export type { T3RpcOperationsService } from "./operation.ts";
4
5
  export { T3Rpc } from "./service.ts";
5
- export type { WsClient } from "./service.ts";
6
+ export type { T3RpcService, WsClient } from "./service.ts";