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.
Files changed (88) hide show
  1. package/dist/bin.js +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/{runtime-0wuYCEoH.js → runtime-CMPZpQaG.js} +35 -31
  4. package/dist/src/application/error.d.ts +3 -0
  5. package/dist/src/application/layer.d.ts +776 -0
  6. package/dist/src/application/model-selection.d.ts +19 -0
  7. package/dist/src/application/models.d.ts +93 -0
  8. package/dist/src/application/project-commands.d.ts +15 -0
  9. package/dist/src/application/projects.d.ts +136 -0
  10. package/dist/src/application/service.d.ts +72 -0
  11. package/dist/src/application/shell-sequence.d.ts +91 -0
  12. package/dist/src/application/thread-commands.d.ts +84 -0
  13. package/dist/src/application/thread-wait.d.ts +104 -0
  14. package/dist/src/application/threads.d.ts +563 -0
  15. package/dist/src/auth/error.d.ts +31 -0
  16. package/dist/src/auth/layer.d.ts +36 -0
  17. package/dist/src/auth/local.d.ts +19 -0
  18. package/dist/src/auth/pairing.d.ts +4 -0
  19. package/dist/src/auth/schema.d.ts +67 -0
  20. package/dist/src/auth/service.d.ts +14 -0
  21. package/dist/src/auth/transport.d.ts +26 -0
  22. package/dist/src/auth/type.d.ts +26 -0
  23. package/dist/src/config/error.d.ts +18 -0
  24. package/dist/src/config/layer.d.ts +20 -0
  25. package/dist/src/config/service.d.ts +20 -0
  26. package/dist/src/config/url.d.ts +6 -0
  27. package/dist/src/domain/error.d.ts +31 -0
  28. package/dist/src/domain/helpers.d.ts +38 -0
  29. package/dist/src/domain/model-config.d.ts +293 -0
  30. package/dist/src/domain/thread-lifecycle.d.ts +114 -0
  31. package/dist/src/environment/layer.d.ts +3 -0
  32. package/dist/src/environment/service.d.ts +12 -0
  33. package/dist/src/index.d.ts +6 -0
  34. package/dist/src/orchestration/layer.d.ts +2128 -0
  35. package/dist/src/orchestration/service.d.ts +27 -0
  36. package/dist/src/rpc/error.d.ts +15 -0
  37. package/dist/src/rpc/layer.d.ts +4678 -0
  38. package/dist/src/rpc/service.d.ts +15 -0
  39. package/dist/src/rpc/ws-group.d.ts +2238 -0
  40. package/dist/src/runtime.d.ts +3 -0
  41. package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +439 -0
  42. package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +38 -0
  43. package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +14 -0
  44. package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +124 -0
  45. package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +64 -0
  46. package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +602 -0
  47. package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +26 -0
  48. package/dist/upstream-t3code/packages/contracts/src/git.d.ts +500 -0
  49. package/dist/upstream-t3code/packages/contracts/src/index.d.ts +24 -0
  50. package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +466 -0
  51. package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +133 -0
  52. package/dist/upstream-t3code/packages/contracts/src/model.d.ts +112 -0
  53. package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +6682 -0
  54. package/dist/upstream-t3code/packages/contracts/src/project.d.ts +45 -0
  55. package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +116 -0
  56. package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +99 -0
  57. package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +4186 -0
  58. package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +45 -0
  59. package/dist/upstream-t3code/packages/contracts/src/review.d.ts +37 -0
  60. package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +8149 -0
  61. package/dist/upstream-t3code/packages/contracts/src/server.d.ts +2291 -0
  62. package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +271 -0
  63. package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +177 -0
  64. package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +330 -0
  65. package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +148 -0
  66. package/package.json +15 -7
  67. package/src/application/model-selection.ts +2 -2
  68. package/src/application/project-commands.ts +1 -1
  69. package/src/application/service.ts +1 -1
  70. package/src/application/shell-sequence.ts +1 -1
  71. package/src/application/thread-commands.ts +1 -1
  72. package/src/application/thread-wait.ts +1 -1
  73. package/src/auth/error.ts +5 -1
  74. package/src/auth/pairing.ts +6 -2
  75. package/src/auth/transport.ts +21 -10
  76. package/src/cli/model-format.ts +1 -1
  77. package/src/cli/project-format.ts +1 -1
  78. package/src/cli/thread-format.ts +1 -1
  79. package/src/config/url.ts +46 -2
  80. package/src/domain/helpers.ts +1 -1
  81. package/src/domain/model-config.ts +1 -1
  82. package/src/domain/thread-lifecycle.ts +1 -1
  83. package/src/index.ts +3 -3
  84. package/src/orchestration/layer.ts +1 -1
  85. package/src/orchestration/service.ts +1 -1
  86. package/src/rpc/error.ts +1 -1
  87. package/src/rpc/layer.ts +2 -2
  88. package/src/rpc/ws-group.ts +1 -1
@@ -0,0 +1,26 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const FilesystemBrowseInput: Schema.Struct<{
3
+ readonly partialPath: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4
+ readonly cwd: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5
+ }>;
6
+ export type FilesystemBrowseInput = typeof FilesystemBrowseInput.Type;
7
+ export declare const FilesystemBrowseEntry: Schema.Struct<{
8
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
9
+ readonly fullPath: Schema.decodeTo<Schema.String, Schema.String, never, never>;
10
+ }>;
11
+ export type FilesystemBrowseEntry = typeof FilesystemBrowseEntry.Type;
12
+ export declare const FilesystemBrowseResult: Schema.Struct<{
13
+ readonly parentPath: Schema.decodeTo<Schema.String, Schema.String, never, never>;
14
+ readonly entries: Schema.$Array<Schema.Struct<{
15
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
16
+ readonly fullPath: Schema.decodeTo<Schema.String, Schema.String, never, never>;
17
+ }>>;
18
+ }>;
19
+ export type FilesystemBrowseResult = typeof FilesystemBrowseResult.Type;
20
+ declare const FilesystemBrowseError_base: Schema.Class<FilesystemBrowseError, Schema.TaggedStruct<"FilesystemBrowseError", {
21
+ readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
22
+ readonly cause: Schema.optional<Schema.Defect>;
23
+ }>, import("effect/Cause").YieldableError>;
24
+ export declare class FilesystemBrowseError extends FilesystemBrowseError_base {
25
+ }
26
+ export {};
@@ -0,0 +1,500 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { SourceControlProviderError } from "./sourceControl.ts";
3
+ export declare const GitStackedAction: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
4
+ export type GitStackedAction = typeof GitStackedAction.Type;
5
+ export declare const GitActionProgressPhase: Schema.Literals<readonly ["branch", "commit", "push", "pr"]>;
6
+ export type GitActionProgressPhase = typeof GitActionProgressPhase.Type;
7
+ export declare const GitActionProgressKind: Schema.Literals<readonly ["action_started", "phase_started", "hook_started", "hook_output", "hook_finished", "action_finished", "action_failed"]>;
8
+ export type GitActionProgressKind = typeof GitActionProgressKind.Type;
9
+ export declare const GitActionProgressStream: Schema.Literals<readonly ["stdout", "stderr"]>;
10
+ export type GitActionProgressStream = typeof GitActionProgressStream.Type;
11
+ export declare const GitRunStackedActionToastRunAction: Schema.Struct<{
12
+ readonly kind: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
13
+ }>;
14
+ export type GitRunStackedActionToastRunAction = typeof GitRunStackedActionToastRunAction.Type;
15
+ declare const GitRunStackedActionToastCta: Schema.Union<readonly [Schema.Struct<{
16
+ readonly kind: Schema.Literal<"none">;
17
+ }>, Schema.Struct<{
18
+ readonly kind: Schema.Literal<"open_pr">;
19
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
20
+ readonly url: Schema.String;
21
+ }>, Schema.Struct<{
22
+ readonly kind: Schema.Literal<"run_action">;
23
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
24
+ readonly action: Schema.Struct<{
25
+ readonly kind: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
26
+ }>;
27
+ }>]>;
28
+ export type GitRunStackedActionToastCta = typeof GitRunStackedActionToastCta.Type;
29
+ declare const GitRunStackedActionToast: Schema.Struct<{
30
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
31
+ readonly description: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
32
+ readonly cta: Schema.Union<readonly [Schema.Struct<{
33
+ readonly kind: Schema.Literal<"none">;
34
+ }>, Schema.Struct<{
35
+ readonly kind: Schema.Literal<"open_pr">;
36
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
37
+ readonly url: Schema.String;
38
+ }>, Schema.Struct<{
39
+ readonly kind: Schema.Literal<"run_action">;
40
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
41
+ readonly action: Schema.Struct<{
42
+ readonly kind: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
43
+ }>;
44
+ }>]>;
45
+ }>;
46
+ export type GitRunStackedActionToast = typeof GitRunStackedActionToast.Type;
47
+ export declare const VcsRef: Schema.Struct<{
48
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
49
+ readonly isRemote: Schema.optional<Schema.Boolean>;
50
+ readonly remoteName: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
51
+ readonly current: Schema.Boolean;
52
+ readonly isDefault: Schema.Boolean;
53
+ readonly worktreePath: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
54
+ }>;
55
+ export type VcsRef = typeof VcsRef.Type;
56
+ declare const GitResolvedPullRequest: Schema.Struct<{
57
+ readonly number: Schema.Int;
58
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
59
+ readonly url: Schema.String;
60
+ readonly baseBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
61
+ readonly headBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
62
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
63
+ }>;
64
+ export type GitResolvedPullRequest = typeof GitResolvedPullRequest.Type;
65
+ export declare const VcsStatusInput: Schema.Struct<{
66
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
67
+ }>;
68
+ export type VcsStatusInput = typeof VcsStatusInput.Type;
69
+ export declare const VcsPullInput: Schema.Struct<{
70
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
71
+ }>;
72
+ export type VcsPullInput = typeof VcsPullInput.Type;
73
+ export declare const GitRunStackedActionInput: Schema.Struct<{
74
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
75
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
76
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
77
+ readonly commitMessage: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
78
+ readonly featureBranch: Schema.optional<Schema.Boolean>;
79
+ readonly filePaths: Schema.optional<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>;
80
+ }>;
81
+ export type GitRunStackedActionInput = typeof GitRunStackedActionInput.Type;
82
+ export declare const VcsListRefsInput: Schema.Struct<{
83
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
84
+ readonly query: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
85
+ readonly cursor: Schema.optional<Schema.Int>;
86
+ readonly limit: Schema.optional<Schema.Int>;
87
+ }>;
88
+ export type VcsListRefsInput = typeof VcsListRefsInput.Type;
89
+ export declare const VcsCreateWorktreeInput: Schema.Struct<{
90
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
91
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
92
+ readonly newRefName: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
93
+ readonly path: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
94
+ }>;
95
+ export type VcsCreateWorktreeInput = typeof VcsCreateWorktreeInput.Type;
96
+ export declare const GitPullRequestRefInput: Schema.Struct<{
97
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
98
+ readonly reference: Schema.decodeTo<Schema.String, Schema.String, never, never>;
99
+ }>;
100
+ export type GitPullRequestRefInput = typeof GitPullRequestRefInput.Type;
101
+ export declare const GitPreparePullRequestThreadInput: Schema.Struct<{
102
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
103
+ readonly reference: Schema.decodeTo<Schema.String, Schema.String, never, never>;
104
+ readonly mode: Schema.Literals<readonly ["local", "worktree"]>;
105
+ readonly threadId: Schema.optional<Schema.brand<Schema.decodeTo<Schema.String, Schema.String, never, never>, "ThreadId">>;
106
+ }>;
107
+ export type GitPreparePullRequestThreadInput = typeof GitPreparePullRequestThreadInput.Type;
108
+ export declare const VcsRemoveWorktreeInput: Schema.Struct<{
109
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
110
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
111
+ readonly force: Schema.optional<Schema.Boolean>;
112
+ }>;
113
+ export type VcsRemoveWorktreeInput = typeof VcsRemoveWorktreeInput.Type;
114
+ export declare const VcsCreateRefInput: Schema.Struct<{
115
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
116
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
117
+ readonly switchRef: Schema.optional<Schema.Boolean>;
118
+ }>;
119
+ export type VcsCreateRefInput = typeof VcsCreateRefInput.Type;
120
+ export declare const VcsCreateRefResult: Schema.Struct<{
121
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
122
+ }>;
123
+ export type VcsCreateRefResult = typeof VcsCreateRefResult.Type;
124
+ export declare const VcsSwitchRefInput: Schema.Struct<{
125
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
126
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
127
+ }>;
128
+ export type VcsSwitchRefInput = typeof VcsSwitchRefInput.Type;
129
+ export declare const VcsInitInput: Schema.Struct<{
130
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
131
+ readonly kind: Schema.optional<Schema.Literals<readonly ["git", "jj", "unknown"]>>;
132
+ }>;
133
+ export type VcsInitInput = typeof VcsInitInput.Type;
134
+ export declare const VcsStatusLocalResult: Schema.Struct<{
135
+ isRepo: Schema.Boolean;
136
+ sourceControlProvider: Schema.optional<Schema.Struct<{
137
+ readonly kind: Schema.Literals<readonly ["github", "gitlab", "azure-devops", "bitbucket", "unknown"]>;
138
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
139
+ readonly baseUrl: Schema.String;
140
+ }>>;
141
+ hasPrimaryRemote: Schema.Boolean;
142
+ isDefaultRef: Schema.Boolean;
143
+ refName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
144
+ hasWorkingTreeChanges: Schema.Boolean;
145
+ workingTree: Schema.Struct<{
146
+ readonly files: Schema.$Array<Schema.Struct<{
147
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
148
+ readonly insertions: Schema.Int;
149
+ readonly deletions: Schema.Int;
150
+ }>>;
151
+ readonly insertions: Schema.Int;
152
+ readonly deletions: Schema.Int;
153
+ }>;
154
+ }>;
155
+ export type VcsStatusLocalResult = typeof VcsStatusLocalResult.Type;
156
+ export declare const VcsStatusRemoteResult: Schema.Struct<{
157
+ hasUpstream: Schema.Boolean;
158
+ aheadCount: Schema.Int;
159
+ behindCount: Schema.Int;
160
+ aheadOfDefaultCount: Schema.optional<Schema.Int>;
161
+ pr: Schema.NullOr<Schema.Struct<{
162
+ readonly number: Schema.Int;
163
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
164
+ readonly url: Schema.String;
165
+ readonly baseRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
166
+ readonly headRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
167
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
168
+ }>>;
169
+ }>;
170
+ export type VcsStatusRemoteResult = typeof VcsStatusRemoteResult.Type;
171
+ export declare const VcsStatusResult: Schema.Struct<{
172
+ readonly hasUpstream: Schema.Boolean;
173
+ readonly aheadCount: Schema.Int;
174
+ readonly behindCount: Schema.Int;
175
+ readonly aheadOfDefaultCount: Schema.optional<Schema.Int>;
176
+ readonly pr: Schema.NullOr<Schema.Struct<{
177
+ readonly number: Schema.Int;
178
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
179
+ readonly url: Schema.String;
180
+ readonly baseRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
181
+ readonly headRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
182
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
183
+ }>>;
184
+ readonly isRepo: Schema.Boolean;
185
+ readonly sourceControlProvider: Schema.optional<Schema.Struct<{
186
+ readonly kind: Schema.Literals<readonly ["github", "gitlab", "azure-devops", "bitbucket", "unknown"]>;
187
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
188
+ readonly baseUrl: Schema.String;
189
+ }>>;
190
+ readonly hasPrimaryRemote: Schema.Boolean;
191
+ readonly isDefaultRef: Schema.Boolean;
192
+ readonly refName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
193
+ readonly hasWorkingTreeChanges: Schema.Boolean;
194
+ readonly workingTree: Schema.Struct<{
195
+ readonly files: Schema.$Array<Schema.Struct<{
196
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
197
+ readonly insertions: Schema.Int;
198
+ readonly deletions: Schema.Int;
199
+ }>>;
200
+ readonly insertions: Schema.Int;
201
+ readonly deletions: Schema.Int;
202
+ }>;
203
+ }>;
204
+ export type VcsStatusResult = typeof VcsStatusResult.Type;
205
+ export declare const VcsStatusStreamEvent: Schema.Union<readonly [Schema.TaggedStruct<"snapshot", {
206
+ readonly local: Schema.Struct<{
207
+ isRepo: Schema.Boolean;
208
+ sourceControlProvider: Schema.optional<Schema.Struct<{
209
+ readonly kind: Schema.Literals<readonly ["github", "gitlab", "azure-devops", "bitbucket", "unknown"]>;
210
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
211
+ readonly baseUrl: Schema.String;
212
+ }>>;
213
+ hasPrimaryRemote: Schema.Boolean;
214
+ isDefaultRef: Schema.Boolean;
215
+ refName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
216
+ hasWorkingTreeChanges: Schema.Boolean;
217
+ workingTree: Schema.Struct<{
218
+ readonly files: Schema.$Array<Schema.Struct<{
219
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
220
+ readonly insertions: Schema.Int;
221
+ readonly deletions: Schema.Int;
222
+ }>>;
223
+ readonly insertions: Schema.Int;
224
+ readonly deletions: Schema.Int;
225
+ }>;
226
+ }>;
227
+ readonly remote: Schema.NullOr<Schema.Struct<{
228
+ hasUpstream: Schema.Boolean;
229
+ aheadCount: Schema.Int;
230
+ behindCount: Schema.Int;
231
+ aheadOfDefaultCount: Schema.optional<Schema.Int>;
232
+ pr: Schema.NullOr<Schema.Struct<{
233
+ readonly number: Schema.Int;
234
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
235
+ readonly url: Schema.String;
236
+ readonly baseRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
237
+ readonly headRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
238
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
239
+ }>>;
240
+ }>>;
241
+ }>, Schema.TaggedStruct<"localUpdated", {
242
+ readonly local: Schema.Struct<{
243
+ isRepo: Schema.Boolean;
244
+ sourceControlProvider: Schema.optional<Schema.Struct<{
245
+ readonly kind: Schema.Literals<readonly ["github", "gitlab", "azure-devops", "bitbucket", "unknown"]>;
246
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
247
+ readonly baseUrl: Schema.String;
248
+ }>>;
249
+ hasPrimaryRemote: Schema.Boolean;
250
+ isDefaultRef: Schema.Boolean;
251
+ refName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
252
+ hasWorkingTreeChanges: Schema.Boolean;
253
+ workingTree: Schema.Struct<{
254
+ readonly files: Schema.$Array<Schema.Struct<{
255
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
256
+ readonly insertions: Schema.Int;
257
+ readonly deletions: Schema.Int;
258
+ }>>;
259
+ readonly insertions: Schema.Int;
260
+ readonly deletions: Schema.Int;
261
+ }>;
262
+ }>;
263
+ }>, Schema.TaggedStruct<"remoteUpdated", {
264
+ readonly remote: Schema.NullOr<Schema.Struct<{
265
+ hasUpstream: Schema.Boolean;
266
+ aheadCount: Schema.Int;
267
+ behindCount: Schema.Int;
268
+ aheadOfDefaultCount: Schema.optional<Schema.Int>;
269
+ pr: Schema.NullOr<Schema.Struct<{
270
+ readonly number: Schema.Int;
271
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
272
+ readonly url: Schema.String;
273
+ readonly baseRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
274
+ readonly headRef: Schema.decodeTo<Schema.String, Schema.String, never, never>;
275
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
276
+ }>>;
277
+ }>>;
278
+ }>]>;
279
+ export type VcsStatusStreamEvent = typeof VcsStatusStreamEvent.Type;
280
+ export declare const VcsListRefsResult: Schema.Struct<{
281
+ readonly refs: Schema.$Array<Schema.Struct<{
282
+ readonly name: Schema.decodeTo<Schema.String, Schema.String, never, never>;
283
+ readonly isRemote: Schema.optional<Schema.Boolean>;
284
+ readonly remoteName: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
285
+ readonly current: Schema.Boolean;
286
+ readonly isDefault: Schema.Boolean;
287
+ readonly worktreePath: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
288
+ }>>;
289
+ readonly isRepo: Schema.Boolean;
290
+ readonly hasPrimaryRemote: Schema.Boolean;
291
+ readonly nextCursor: Schema.NullOr<Schema.Int>;
292
+ readonly totalCount: Schema.Int;
293
+ }>;
294
+ export type VcsListRefsResult = typeof VcsListRefsResult.Type;
295
+ export declare const VcsCreateWorktreeResult: Schema.Struct<{
296
+ readonly worktree: Schema.Struct<{
297
+ readonly path: Schema.decodeTo<Schema.String, Schema.String, never, never>;
298
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
299
+ }>;
300
+ }>;
301
+ export type VcsCreateWorktreeResult = typeof VcsCreateWorktreeResult.Type;
302
+ export declare const GitResolvePullRequestResult: Schema.Struct<{
303
+ readonly pullRequest: Schema.Struct<{
304
+ readonly number: Schema.Int;
305
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
306
+ readonly url: Schema.String;
307
+ readonly baseBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
308
+ readonly headBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
309
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
310
+ }>;
311
+ }>;
312
+ export type GitResolvePullRequestResult = typeof GitResolvePullRequestResult.Type;
313
+ export declare const GitPreparePullRequestThreadResult: Schema.Struct<{
314
+ readonly pullRequest: Schema.Struct<{
315
+ readonly number: Schema.Int;
316
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
317
+ readonly url: Schema.String;
318
+ readonly baseBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
319
+ readonly headBranch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
320
+ readonly state: Schema.Literals<readonly ["open", "closed", "merged"]>;
321
+ }>;
322
+ readonly branch: Schema.decodeTo<Schema.String, Schema.String, never, never>;
323
+ readonly worktreePath: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
324
+ }>;
325
+ export type GitPreparePullRequestThreadResult = typeof GitPreparePullRequestThreadResult.Type;
326
+ export declare const VcsSwitchRefResult: Schema.Struct<{
327
+ readonly refName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
328
+ }>;
329
+ export type VcsSwitchRefResult = typeof VcsSwitchRefResult.Type;
330
+ export declare const GitRunStackedActionResult: Schema.Struct<{
331
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
332
+ readonly branch: Schema.Struct<{
333
+ readonly status: Schema.Literals<readonly ["created", "skipped_not_requested"]>;
334
+ readonly name: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
335
+ }>;
336
+ readonly commit: Schema.Struct<{
337
+ readonly status: Schema.Literals<readonly ["created", "skipped_no_changes", "skipped_not_requested"]>;
338
+ readonly commitSha: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
339
+ readonly subject: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
340
+ }>;
341
+ readonly push: Schema.Struct<{
342
+ readonly status: Schema.Literals<readonly ["pushed", "skipped_not_requested", "skipped_up_to_date"]>;
343
+ readonly branch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
344
+ readonly upstreamBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
345
+ readonly setUpstream: Schema.optional<Schema.Boolean>;
346
+ }>;
347
+ readonly pr: Schema.Struct<{
348
+ readonly status: Schema.Literals<readonly ["created", "opened_existing", "skipped_not_requested"]>;
349
+ readonly url: Schema.optional<Schema.String>;
350
+ readonly number: Schema.optional<Schema.Int>;
351
+ readonly baseBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
352
+ readonly headBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
353
+ readonly title: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
354
+ }>;
355
+ readonly toast: Schema.Struct<{
356
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
357
+ readonly description: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
358
+ readonly cta: Schema.Union<readonly [Schema.Struct<{
359
+ readonly kind: Schema.Literal<"none">;
360
+ }>, Schema.Struct<{
361
+ readonly kind: Schema.Literal<"open_pr">;
362
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
363
+ readonly url: Schema.String;
364
+ }>, Schema.Struct<{
365
+ readonly kind: Schema.Literal<"run_action">;
366
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
367
+ readonly action: Schema.Struct<{
368
+ readonly kind: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
369
+ }>;
370
+ }>]>;
371
+ }>;
372
+ }>;
373
+ export type GitRunStackedActionResult = typeof GitRunStackedActionResult.Type;
374
+ export declare const VcsPullResult: Schema.Struct<{
375
+ readonly status: Schema.Literals<readonly ["pulled", "skipped_up_to_date"]>;
376
+ readonly refName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
377
+ readonly upstreamRef: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
378
+ }>;
379
+ export type VcsPullResult = typeof VcsPullResult.Type;
380
+ declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedStruct<"GitCommandError", {
381
+ readonly operation: Schema.String;
382
+ readonly command: Schema.String;
383
+ readonly cwd: Schema.String;
384
+ readonly detail: Schema.String;
385
+ readonly cause: Schema.optional<Schema.Defect>;
386
+ }>, import("effect/Cause").YieldableError>;
387
+ export declare class GitCommandError extends GitCommandError_base {
388
+ get message(): string;
389
+ }
390
+ declare const TextGenerationError_base: Schema.Class<TextGenerationError, Schema.TaggedStruct<"TextGenerationError", {
391
+ readonly operation: Schema.String;
392
+ readonly detail: Schema.String;
393
+ readonly cause: Schema.optional<Schema.Defect>;
394
+ }>, import("effect/Cause").YieldableError>;
395
+ export declare class TextGenerationError extends TextGenerationError_base {
396
+ get message(): string;
397
+ }
398
+ declare const GitManagerError_base: Schema.Class<GitManagerError, Schema.TaggedStruct<"GitManagerError", {
399
+ readonly operation: Schema.String;
400
+ readonly detail: Schema.String;
401
+ readonly cause: Schema.optional<Schema.Defect>;
402
+ }>, import("effect/Cause").YieldableError>;
403
+ export declare class GitManagerError extends GitManagerError_base {
404
+ get message(): string;
405
+ }
406
+ export declare const GitManagerServiceError: Schema.Union<readonly [typeof GitManagerError, typeof GitCommandError, typeof SourceControlProviderError, typeof TextGenerationError]>;
407
+ export type GitManagerServiceError = typeof GitManagerServiceError.Type;
408
+ export declare const GitActionProgressEvent: Schema.Union<readonly [Schema.Struct<{
409
+ readonly kind: Schema.Literal<"action_started">;
410
+ readonly phases: Schema.$Array<Schema.Literals<readonly ["branch", "commit", "push", "pr"]>>;
411
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
412
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
413
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
414
+ }>, Schema.Struct<{
415
+ readonly kind: Schema.Literal<"phase_started">;
416
+ readonly phase: Schema.Literals<readonly ["branch", "commit", "push", "pr"]>;
417
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
418
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
419
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
420
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
421
+ }>, Schema.Struct<{
422
+ readonly kind: Schema.Literal<"hook_started">;
423
+ readonly hookName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
424
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
425
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
426
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
427
+ }>, Schema.Struct<{
428
+ readonly kind: Schema.Literal<"hook_output">;
429
+ readonly hookName: Schema.NullOr<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
430
+ readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
431
+ readonly text: Schema.decodeTo<Schema.String, Schema.String, never, never>;
432
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
433
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
434
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
435
+ }>, Schema.Struct<{
436
+ readonly kind: Schema.Literal<"hook_finished">;
437
+ readonly hookName: Schema.decodeTo<Schema.String, Schema.String, never, never>;
438
+ readonly exitCode: Schema.NullOr<Schema.Int>;
439
+ readonly durationMs: Schema.NullOr<Schema.Int>;
440
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
441
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
442
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
443
+ }>, Schema.Struct<{
444
+ readonly kind: Schema.Literal<"action_finished">;
445
+ readonly result: Schema.Struct<{
446
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
447
+ readonly branch: Schema.Struct<{
448
+ readonly status: Schema.Literals<readonly ["created", "skipped_not_requested"]>;
449
+ readonly name: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
450
+ }>;
451
+ readonly commit: Schema.Struct<{
452
+ readonly status: Schema.Literals<readonly ["created", "skipped_no_changes", "skipped_not_requested"]>;
453
+ readonly commitSha: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
454
+ readonly subject: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
455
+ }>;
456
+ readonly push: Schema.Struct<{
457
+ readonly status: Schema.Literals<readonly ["pushed", "skipped_not_requested", "skipped_up_to_date"]>;
458
+ readonly branch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
459
+ readonly upstreamBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
460
+ readonly setUpstream: Schema.optional<Schema.Boolean>;
461
+ }>;
462
+ readonly pr: Schema.Struct<{
463
+ readonly status: Schema.Literals<readonly ["created", "opened_existing", "skipped_not_requested"]>;
464
+ readonly url: Schema.optional<Schema.String>;
465
+ readonly number: Schema.optional<Schema.Int>;
466
+ readonly baseBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
467
+ readonly headBranch: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
468
+ readonly title: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
469
+ }>;
470
+ readonly toast: Schema.Struct<{
471
+ readonly title: Schema.decodeTo<Schema.String, Schema.String, never, never>;
472
+ readonly description: Schema.optional<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
473
+ readonly cta: Schema.Union<readonly [Schema.Struct<{
474
+ readonly kind: Schema.Literal<"none">;
475
+ }>, Schema.Struct<{
476
+ readonly kind: Schema.Literal<"open_pr">;
477
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
478
+ readonly url: Schema.String;
479
+ }>, Schema.Struct<{
480
+ readonly kind: Schema.Literal<"run_action">;
481
+ readonly label: Schema.decodeTo<Schema.String, Schema.String, never, never>;
482
+ readonly action: Schema.Struct<{
483
+ readonly kind: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
484
+ }>;
485
+ }>]>;
486
+ }>;
487
+ }>;
488
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
489
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
490
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
491
+ }>, Schema.Struct<{
492
+ readonly kind: Schema.Literal<"action_failed">;
493
+ readonly phase: Schema.NullOr<Schema.Literals<readonly ["branch", "commit", "push", "pr"]>>;
494
+ readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
495
+ readonly actionId: Schema.decodeTo<Schema.String, Schema.String, never, never>;
496
+ readonly cwd: Schema.decodeTo<Schema.String, Schema.String, never, never>;
497
+ readonly action: Schema.Literals<readonly ["commit", "push", "create_pr", "commit_push", "commit_push_pr"]>;
498
+ }>]>;
499
+ export type GitActionProgressEvent = typeof GitActionProgressEvent.Type;
500
+ export {};
@@ -0,0 +1,24 @@
1
+ export * from "./baseSchemas.ts";
2
+ export * from "./auth.ts";
3
+ export * from "./environment.ts";
4
+ export * from "./environmentHttp.ts";
5
+ export * from "./desktopBootstrap.ts";
6
+ export * from "./remoteAccess.ts";
7
+ export * from "./ipc.ts";
8
+ export * from "./terminal.ts";
9
+ export * from "./provider.ts";
10
+ export * from "./providerInstance.ts";
11
+ export * from "./providerRuntime.ts";
12
+ export * from "./model.ts";
13
+ export * from "./keybindings.ts";
14
+ export * from "./server.ts";
15
+ export * from "./settings.ts";
16
+ export * from "./git.ts";
17
+ export * from "./vcs.ts";
18
+ export * from "./sourceControl.ts";
19
+ export * from "./orchestration.ts";
20
+ export * from "./editor.ts";
21
+ export * from "./project.ts";
22
+ export * from "./filesystem.ts";
23
+ export * from "./review.ts";
24
+ export * from "./rpc.ts";