t3code-cli 0.2.0 → 0.4.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 (101) hide show
  1. package/README.md +1 -1
  2. package/dist/bin.js +412 -87
  3. package/dist/index.js +1 -1
  4. package/dist/{runtime-CMPZpQaG.js → runtime-Cq64iuZr.js} +4768 -2040
  5. package/dist/src/application/error.d.ts +3 -0
  6. package/dist/src/application/layer.d.ts +776 -0
  7. package/dist/src/application/model-selection.d.ts +19 -0
  8. package/dist/src/application/models.d.ts +93 -0
  9. package/dist/src/application/project-commands.d.ts +15 -0
  10. package/dist/src/application/projects.d.ts +136 -0
  11. package/dist/src/application/service.d.ts +72 -0
  12. package/dist/src/application/shell-sequence.d.ts +91 -0
  13. package/dist/src/application/thread-commands.d.ts +84 -0
  14. package/dist/src/application/thread-wait.d.ts +104 -0
  15. package/dist/src/application/threads.d.ts +563 -0
  16. package/dist/src/auth/error.d.ts +50 -0
  17. package/dist/src/auth/layer.d.ts +23 -0
  18. package/dist/src/auth/local.d.ts +27 -0
  19. package/dist/src/auth/pairing.d.ts +22 -0
  20. package/dist/src/auth/schema.d.ts +58 -0
  21. package/dist/src/auth/service.d.ts +14 -0
  22. package/dist/src/auth/transport.d.ts +19 -0
  23. package/dist/src/auth/type.d.ts +25 -0
  24. package/dist/src/config/error.d.ts +18 -0
  25. package/dist/src/config/layer.d.ts +20 -0
  26. package/dist/src/config/service.d.ts +20 -0
  27. package/dist/src/config/url.d.ts +6 -0
  28. package/dist/src/domain/error.d.ts +31 -0
  29. package/dist/src/domain/helpers.d.ts +38 -0
  30. package/dist/src/domain/model-config.d.ts +293 -0
  31. package/dist/src/domain/thread-lifecycle.d.ts +114 -0
  32. package/dist/src/environment/layer.d.ts +3 -0
  33. package/dist/src/environment/service.d.ts +12 -0
  34. package/dist/src/index.d.ts +6 -0
  35. package/dist/src/orchestration/layer.d.ts +2128 -0
  36. package/dist/src/orchestration/service.d.ts +27 -0
  37. package/dist/src/rpc/error.d.ts +15 -0
  38. package/dist/src/rpc/layer.d.ts +4678 -0
  39. package/dist/src/rpc/service.d.ts +15 -0
  40. package/dist/src/rpc/ws-group.d.ts +2238 -0
  41. package/dist/src/runtime.d.ts +3 -0
  42. package/dist/src/sql/node-sqlite-client.d.ts +10 -0
  43. package/dist/src/sql/service.d.ts +17 -0
  44. package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +441 -0
  45. package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +38 -0
  46. package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +14 -0
  47. package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +124 -0
  48. package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +64 -0
  49. package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +762 -0
  50. package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +26 -0
  51. package/dist/upstream-t3code/packages/contracts/src/git.d.ts +500 -0
  52. package/dist/upstream-t3code/packages/contracts/src/index.d.ts +25 -0
  53. package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +490 -0
  54. package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +133 -0
  55. package/dist/upstream-t3code/packages/contracts/src/model.d.ts +112 -0
  56. package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +6682 -0
  57. package/dist/upstream-t3code/packages/contracts/src/project.d.ts +45 -0
  58. package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +116 -0
  59. package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +99 -0
  60. package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +4276 -0
  61. package/dist/upstream-t3code/packages/contracts/src/relay.d.ts +1262 -0
  62. package/dist/upstream-t3code/packages/contracts/src/relayClient.d.ts +48 -0
  63. package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +45 -0
  64. package/dist/upstream-t3code/packages/contracts/src/review.d.ts +37 -0
  65. package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +8218 -0
  66. package/dist/upstream-t3code/packages/contracts/src/server.d.ts +2291 -0
  67. package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +271 -0
  68. package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +177 -0
  69. package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +330 -0
  70. package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +148 -0
  71. package/package.json +15 -7
  72. package/src/application/model-selection.ts +2 -2
  73. package/src/application/project-commands.ts +1 -1
  74. package/src/application/service.ts +1 -1
  75. package/src/application/shell-sequence.ts +1 -1
  76. package/src/application/thread-commands.ts +1 -1
  77. package/src/application/thread-wait.ts +1 -1
  78. package/src/auth/error.ts +33 -1
  79. package/src/auth/layer.ts +11 -76
  80. package/src/auth/local.ts +342 -208
  81. package/src/auth/pairing.ts +44 -2
  82. package/src/auth/schema.ts +21 -28
  83. package/src/auth/service.ts +2 -2
  84. package/src/auth/transport.ts +59 -22
  85. package/src/auth/type.ts +0 -1
  86. package/src/cli/auth.ts +1 -3
  87. package/src/cli/model-format.ts +1 -1
  88. package/src/cli/project-format.ts +1 -1
  89. package/src/cli/thread-format.ts +1 -1
  90. package/src/domain/helpers.ts +1 -1
  91. package/src/domain/model-config.ts +1 -1
  92. package/src/domain/thread-lifecycle.ts +1 -1
  93. package/src/index.ts +3 -3
  94. package/src/orchestration/layer.ts +1 -1
  95. package/src/orchestration/service.ts +1 -1
  96. package/src/rpc/error.ts +1 -1
  97. package/src/rpc/layer.ts +2 -2
  98. package/src/rpc/ws-group.ts +1 -1
  99. package/src/runtime.ts +14 -1
  100. package/src/sql/node-sqlite-client.ts +141 -0
  101. package/src/sql/service.ts +21 -0
@@ -0,0 +1,124 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const EditorLaunchStyle: Schema.Literals<readonly ["direct-path", "goto", "line-column"]>;
3
+ export type EditorLaunchStyle = typeof EditorLaunchStyle.Type;
4
+ export declare const EDITORS: readonly [{
5
+ readonly id: "cursor";
6
+ readonly label: "Cursor";
7
+ readonly commands: readonly ["cursor"];
8
+ readonly launchStyle: "goto";
9
+ }, {
10
+ readonly id: "trae";
11
+ readonly label: "Trae";
12
+ readonly commands: readonly ["trae"];
13
+ readonly launchStyle: "goto";
14
+ }, {
15
+ readonly id: "kiro";
16
+ readonly label: "Kiro";
17
+ readonly commands: readonly ["kiro"];
18
+ readonly baseArgs: readonly ["ide"];
19
+ readonly launchStyle: "goto";
20
+ }, {
21
+ readonly id: "vscode";
22
+ readonly label: "VS Code";
23
+ readonly commands: readonly ["code"];
24
+ readonly launchStyle: "goto";
25
+ }, {
26
+ readonly id: "vscode-insiders";
27
+ readonly label: "VS Code Insiders";
28
+ readonly commands: readonly ["code-insiders"];
29
+ readonly launchStyle: "goto";
30
+ }, {
31
+ readonly id: "vscodium";
32
+ readonly label: "VSCodium";
33
+ readonly commands: readonly ["codium"];
34
+ readonly launchStyle: "goto";
35
+ }, {
36
+ readonly id: "zed";
37
+ readonly label: "Zed";
38
+ readonly commands: readonly ["zed", "zeditor"];
39
+ readonly launchStyle: "direct-path";
40
+ }, {
41
+ readonly id: "antigravity";
42
+ readonly label: "Antigravity";
43
+ readonly commands: readonly ["agy"];
44
+ readonly launchStyle: "goto";
45
+ }, {
46
+ readonly id: "idea";
47
+ readonly label: "IntelliJ IDEA";
48
+ readonly commands: readonly ["idea"];
49
+ readonly launchStyle: "line-column";
50
+ }, {
51
+ readonly id: "aqua";
52
+ readonly label: "Aqua";
53
+ readonly commands: readonly ["aqua"];
54
+ readonly launchStyle: "line-column";
55
+ }, {
56
+ readonly id: "clion";
57
+ readonly label: "CLion";
58
+ readonly commands: readonly ["clion"];
59
+ readonly launchStyle: "line-column";
60
+ }, {
61
+ readonly id: "datagrip";
62
+ readonly label: "DataGrip";
63
+ readonly commands: readonly ["datagrip"];
64
+ readonly launchStyle: "line-column";
65
+ }, {
66
+ readonly id: "dataspell";
67
+ readonly label: "DataSpell";
68
+ readonly commands: readonly ["dataspell"];
69
+ readonly launchStyle: "line-column";
70
+ }, {
71
+ readonly id: "goland";
72
+ readonly label: "GoLand";
73
+ readonly commands: readonly ["goland"];
74
+ readonly launchStyle: "line-column";
75
+ }, {
76
+ readonly id: "phpstorm";
77
+ readonly label: "PhpStorm";
78
+ readonly commands: readonly ["phpstorm"];
79
+ readonly launchStyle: "line-column";
80
+ }, {
81
+ readonly id: "pycharm";
82
+ readonly label: "PyCharm";
83
+ readonly commands: readonly ["pycharm"];
84
+ readonly launchStyle: "line-column";
85
+ }, {
86
+ readonly id: "rider";
87
+ readonly label: "Rider";
88
+ readonly commands: readonly ["rider"];
89
+ readonly launchStyle: "line-column";
90
+ }, {
91
+ readonly id: "rubymine";
92
+ readonly label: "RubyMine";
93
+ readonly commands: readonly ["rubymine"];
94
+ readonly launchStyle: "line-column";
95
+ }, {
96
+ readonly id: "rustrover";
97
+ readonly label: "RustRover";
98
+ readonly commands: readonly ["rustrover"];
99
+ readonly launchStyle: "line-column";
100
+ }, {
101
+ readonly id: "webstorm";
102
+ readonly label: "WebStorm";
103
+ readonly commands: readonly ["webstorm"];
104
+ readonly launchStyle: "line-column";
105
+ }, {
106
+ readonly id: "file-manager";
107
+ readonly label: "File Manager";
108
+ readonly commands: null;
109
+ readonly launchStyle: "direct-path";
110
+ }];
111
+ export declare const EditorId: Schema.Literals<("cursor" | "trae" | "kiro" | "vscode" | "vscode-insiders" | "vscodium" | "zed" | "antigravity" | "idea" | "aqua" | "clion" | "datagrip" | "dataspell" | "goland" | "phpstorm" | "pycharm" | "rider" | "rubymine" | "rustrover" | "webstorm" | "file-manager")[]>;
112
+ export type EditorId = typeof EditorId.Type;
113
+ export declare const LaunchEditorInput: Schema.Struct<{
114
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
115
+ readonly editor: Schema.Literals<("cursor" | "trae" | "kiro" | "vscode" | "vscode-insiders" | "vscodium" | "zed" | "antigravity" | "idea" | "aqua" | "clion" | "datagrip" | "dataspell" | "goland" | "phpstorm" | "pycharm" | "rider" | "rubymine" | "rustrover" | "webstorm" | "file-manager")[]>;
116
+ }>;
117
+ export type LaunchEditorInput = typeof LaunchEditorInput.Type;
118
+ declare const ExternalLauncherError_base: Schema.Class<ExternalLauncherError, Schema.TaggedStruct<"ExternalLauncherError", {
119
+ readonly message: Schema.String;
120
+ readonly cause: Schema.optional<Schema.Defect>;
121
+ }>, import("effect/Cause").YieldableError>;
122
+ export declare class ExternalLauncherError extends ExternalLauncherError_base {
123
+ }
124
+ export {};
@@ -0,0 +1,64 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const ExecutionEnvironmentPlatformOs: Schema.Literals<readonly ["darwin", "linux", "windows", "unknown"]>;
3
+ export type ExecutionEnvironmentPlatformOs = typeof ExecutionEnvironmentPlatformOs.Type;
4
+ export declare const ExecutionEnvironmentPlatformArch: Schema.Literals<readonly ["arm64", "x64", "other"]>;
5
+ export type ExecutionEnvironmentPlatformArch = typeof ExecutionEnvironmentPlatformArch.Type;
6
+ export declare const ExecutionEnvironmentPlatform: Schema.Struct<{
7
+ readonly os: Schema.Literals<readonly ["darwin", "linux", "windows", "unknown"]>;
8
+ readonly arch: Schema.Literals<readonly ["arm64", "x64", "other"]>;
9
+ }>;
10
+ export type ExecutionEnvironmentPlatform = typeof ExecutionEnvironmentPlatform.Type;
11
+ export declare const ExecutionEnvironmentCapabilities: Schema.Struct<{
12
+ readonly repositoryIdentity: Schema.withDecodingDefault<Schema.Boolean, never>;
13
+ }>;
14
+ export type ExecutionEnvironmentCapabilities = typeof ExecutionEnvironmentCapabilities.Type;
15
+ export declare const ExecutionEnvironmentDescriptor: Schema.Struct<{
16
+ readonly environmentId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "EnvironmentId">;
17
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
18
+ readonly platform: Schema.Struct<{
19
+ readonly os: Schema.Literals<readonly ["darwin", "linux", "windows", "unknown"]>;
20
+ readonly arch: Schema.Literals<readonly ["arm64", "x64", "other"]>;
21
+ }>;
22
+ readonly serverVersion: Schema.decodeTo<Schema.String, Schema.String, never, never>;
23
+ readonly capabilities: Schema.Struct<{
24
+ readonly repositoryIdentity: Schema.withDecodingDefault<Schema.Boolean, never>;
25
+ }>;
26
+ }>;
27
+ export type ExecutionEnvironmentDescriptor = typeof ExecutionEnvironmentDescriptor.Type;
28
+ export declare const EnvironmentConnectionState: Schema.Literals<readonly ["connecting", "connected", "disconnected", "error"]>;
29
+ export type EnvironmentConnectionState = typeof EnvironmentConnectionState.Type;
30
+ export declare const RepositoryIdentityLocator: Schema.Struct<{
31
+ readonly source: Schema.Literal<"git-remote">;
32
+ readonly remoteName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
33
+ readonly remoteUrl: Schema.decodeTo<Schema.String, Schema.String, never, never>;
34
+ }>;
35
+ export type RepositoryIdentityLocator = typeof RepositoryIdentityLocator.Type;
36
+ export declare const RepositoryIdentity: Schema.Struct<{
37
+ readonly canonicalKey: Schema.decodeTo<Schema.String, Schema.String, never, never>;
38
+ readonly locator: Schema.Struct<{
39
+ readonly source: Schema.Literal<"git-remote">;
40
+ readonly remoteName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
41
+ readonly remoteUrl: Schema.decodeTo<Schema.String, Schema.String, never, never>;
42
+ }>;
43
+ readonly rootPath: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
44
+ readonly displayName: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
45
+ readonly provider: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
46
+ readonly owner: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
47
+ readonly name: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
48
+ }>;
49
+ export type RepositoryIdentity = typeof RepositoryIdentity.Type;
50
+ export declare const ScopedProjectRef: Schema.Struct<{
51
+ readonly environmentId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "EnvironmentId">;
52
+ readonly projectId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "ProjectId">;
53
+ }>;
54
+ export type ScopedProjectRef = typeof ScopedProjectRef.Type;
55
+ export declare const ScopedThreadRef: Schema.Struct<{
56
+ readonly environmentId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "EnvironmentId">;
57
+ readonly threadId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "ThreadId">;
58
+ }>;
59
+ export type ScopedThreadRef = typeof ScopedThreadRef.Type;
60
+ export declare const ScopedThreadSessionRef: Schema.Struct<{
61
+ readonly environmentId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "EnvironmentId">;
62
+ readonly threadId: Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "ThreadId">;
63
+ }>;
64
+ export type ScopedThreadSessionRef = typeof ScopedThreadSessionRef.Type;