@paperclipai/plugin-workspace-diff 0.1.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.
@@ -0,0 +1,634 @@
1
+ import { z } from "@paperclipai/plugin-sdk";
2
+ export declare const workspaceDiffViewSchema: z.ZodEnum<["working-tree", "head"]>;
3
+ export declare const workspaceDiffFileStatusSchema: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
4
+ export declare const workspaceDiffPatchKindSchema: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
5
+ export declare const workspaceDiffWarningCodeSchema: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
6
+ export declare const workspaceDiffQuerySchema: z.ZodEffects<z.ZodObject<{
7
+ view: z.ZodDefault<z.ZodOptional<z.ZodEnum<["working-tree", "head"]>>>;
8
+ baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>>;
10
+ path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
11
+ paths: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
12
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
13
+ view: z.ZodDefault<z.ZodOptional<z.ZodEnum<["working-tree", "head"]>>>;
14
+ baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
15
+ includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>>;
16
+ path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
17
+ paths: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
18
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
19
+ view: z.ZodDefault<z.ZodOptional<z.ZodEnum<["working-tree", "head"]>>>;
20
+ baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
+ includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>>;
22
+ path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
23
+ paths: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
24
+ }, z.ZodTypeAny, "passthrough">>, {
25
+ view: "working-tree" | "head";
26
+ baseRef: string | null;
27
+ includeUntracked: boolean;
28
+ paths: string[];
29
+ }, z.objectInputType<{
30
+ view: z.ZodDefault<z.ZodOptional<z.ZodEnum<["working-tree", "head"]>>>;
31
+ baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["true", "false"]>]>, boolean, boolean | "true" | "false">>>;
33
+ path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
34
+ paths: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
35
+ }, z.ZodTypeAny, "passthrough">>;
36
+ export declare const workspaceDiffWarningSchema: z.ZodObject<{
37
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
38
+ message: z.ZodString;
39
+ path: z.ZodNullable<z.ZodString>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
42
+ message: string;
43
+ path: string | null;
44
+ }, {
45
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
46
+ message: string;
47
+ path: string | null;
48
+ }>;
49
+ export declare const workspaceDiffCapsSchema: z.ZodObject<{
50
+ maxFiles: z.ZodNumber;
51
+ maxFileBytes: z.ZodNumber;
52
+ maxPatchBytes: z.ZodNumber;
53
+ maxTotalPatchBytes: z.ZodNumber;
54
+ }, "strict", z.ZodTypeAny, {
55
+ maxFiles: number;
56
+ maxFileBytes: number;
57
+ maxPatchBytes: number;
58
+ maxTotalPatchBytes: number;
59
+ }, {
60
+ maxFiles: number;
61
+ maxFileBytes: number;
62
+ maxPatchBytes: number;
63
+ maxTotalPatchBytes: number;
64
+ }>;
65
+ export declare const workspaceDiffFilePatchSchema: z.ZodObject<{
66
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
67
+ patch: z.ZodNullable<z.ZodString>;
68
+ additions: z.ZodNumber;
69
+ deletions: z.ZodNumber;
70
+ binary: z.ZodBoolean;
71
+ oversized: z.ZodBoolean;
72
+ truncated: z.ZodBoolean;
73
+ warnings: z.ZodArray<z.ZodObject<{
74
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
75
+ message: z.ZodString;
76
+ path: z.ZodNullable<z.ZodString>;
77
+ }, "strict", z.ZodTypeAny, {
78
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
79
+ message: string;
80
+ path: string | null;
81
+ }, {
82
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
83
+ message: string;
84
+ path: string | null;
85
+ }>, "many">;
86
+ }, "strict", z.ZodTypeAny, {
87
+ kind: "head" | "untracked" | "staged" | "unstaged";
88
+ warnings: {
89
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
90
+ message: string;
91
+ path: string | null;
92
+ }[];
93
+ patch: string | null;
94
+ additions: number;
95
+ deletions: number;
96
+ binary: boolean;
97
+ oversized: boolean;
98
+ truncated: boolean;
99
+ }, {
100
+ kind: "head" | "untracked" | "staged" | "unstaged";
101
+ warnings: {
102
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
103
+ message: string;
104
+ path: string | null;
105
+ }[];
106
+ patch: string | null;
107
+ additions: number;
108
+ deletions: number;
109
+ binary: boolean;
110
+ oversized: boolean;
111
+ truncated: boolean;
112
+ }>;
113
+ export declare const workspaceDiffFileSchema: z.ZodObject<{
114
+ path: z.ZodString;
115
+ oldPath: z.ZodNullable<z.ZodString>;
116
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
117
+ staged: z.ZodBoolean;
118
+ unstaged: z.ZodBoolean;
119
+ untracked: z.ZodBoolean;
120
+ binary: z.ZodBoolean;
121
+ oversized: z.ZodBoolean;
122
+ truncated: z.ZodBoolean;
123
+ additions: z.ZodNumber;
124
+ deletions: z.ZodNumber;
125
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
126
+ patches: z.ZodArray<z.ZodObject<{
127
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
128
+ patch: z.ZodNullable<z.ZodString>;
129
+ additions: z.ZodNumber;
130
+ deletions: z.ZodNumber;
131
+ binary: z.ZodBoolean;
132
+ oversized: z.ZodBoolean;
133
+ truncated: z.ZodBoolean;
134
+ warnings: z.ZodArray<z.ZodObject<{
135
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
136
+ message: z.ZodString;
137
+ path: z.ZodNullable<z.ZodString>;
138
+ }, "strict", z.ZodTypeAny, {
139
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
140
+ message: string;
141
+ path: string | null;
142
+ }, {
143
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
144
+ message: string;
145
+ path: string | null;
146
+ }>, "many">;
147
+ }, "strict", z.ZodTypeAny, {
148
+ kind: "head" | "untracked" | "staged" | "unstaged";
149
+ warnings: {
150
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
151
+ message: string;
152
+ path: string | null;
153
+ }[];
154
+ patch: string | null;
155
+ additions: number;
156
+ deletions: number;
157
+ binary: boolean;
158
+ oversized: boolean;
159
+ truncated: boolean;
160
+ }, {
161
+ kind: "head" | "untracked" | "staged" | "unstaged";
162
+ warnings: {
163
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
164
+ message: string;
165
+ path: string | null;
166
+ }[];
167
+ patch: string | null;
168
+ additions: number;
169
+ deletions: number;
170
+ binary: boolean;
171
+ oversized: boolean;
172
+ truncated: boolean;
173
+ }>, "many">;
174
+ warnings: z.ZodArray<z.ZodObject<{
175
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
176
+ message: z.ZodString;
177
+ path: z.ZodNullable<z.ZodString>;
178
+ }, "strict", z.ZodTypeAny, {
179
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
180
+ message: string;
181
+ path: string | null;
182
+ }, {
183
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
184
+ message: string;
185
+ path: string | null;
186
+ }>, "many">;
187
+ }, "strict", z.ZodTypeAny, {
188
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
189
+ path: string;
190
+ warnings: {
191
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
192
+ message: string;
193
+ path: string | null;
194
+ }[];
195
+ untracked: boolean;
196
+ staged: boolean;
197
+ unstaged: boolean;
198
+ additions: number;
199
+ deletions: number;
200
+ binary: boolean;
201
+ oversized: boolean;
202
+ truncated: boolean;
203
+ oldPath: string | null;
204
+ sizeBytes: number | null;
205
+ patches: {
206
+ kind: "head" | "untracked" | "staged" | "unstaged";
207
+ warnings: {
208
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
209
+ message: string;
210
+ path: string | null;
211
+ }[];
212
+ patch: string | null;
213
+ additions: number;
214
+ deletions: number;
215
+ binary: boolean;
216
+ oversized: boolean;
217
+ truncated: boolean;
218
+ }[];
219
+ }, {
220
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
221
+ path: string;
222
+ warnings: {
223
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
224
+ message: string;
225
+ path: string | null;
226
+ }[];
227
+ untracked: boolean;
228
+ staged: boolean;
229
+ unstaged: boolean;
230
+ additions: number;
231
+ deletions: number;
232
+ binary: boolean;
233
+ oversized: boolean;
234
+ truncated: boolean;
235
+ oldPath: string | null;
236
+ sizeBytes: number | null;
237
+ patches: {
238
+ kind: "head" | "untracked" | "staged" | "unstaged";
239
+ warnings: {
240
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
241
+ message: string;
242
+ path: string | null;
243
+ }[];
244
+ patch: string | null;
245
+ additions: number;
246
+ deletions: number;
247
+ binary: boolean;
248
+ oversized: boolean;
249
+ truncated: boolean;
250
+ }[];
251
+ }>;
252
+ export declare const workspaceDiffStatsSchema: z.ZodObject<{
253
+ fileCount: z.ZodNumber;
254
+ stagedFileCount: z.ZodNumber;
255
+ unstagedFileCount: z.ZodNumber;
256
+ untrackedFileCount: z.ZodNumber;
257
+ binaryFileCount: z.ZodNumber;
258
+ oversizedFileCount: z.ZodNumber;
259
+ truncatedFileCount: z.ZodNumber;
260
+ additions: z.ZodNumber;
261
+ deletions: z.ZodNumber;
262
+ }, "strict", z.ZodTypeAny, {
263
+ additions: number;
264
+ deletions: number;
265
+ fileCount: number;
266
+ stagedFileCount: number;
267
+ unstagedFileCount: number;
268
+ untrackedFileCount: number;
269
+ binaryFileCount: number;
270
+ oversizedFileCount: number;
271
+ truncatedFileCount: number;
272
+ }, {
273
+ additions: number;
274
+ deletions: number;
275
+ fileCount: number;
276
+ stagedFileCount: number;
277
+ unstagedFileCount: number;
278
+ untrackedFileCount: number;
279
+ binaryFileCount: number;
280
+ oversizedFileCount: number;
281
+ truncatedFileCount: number;
282
+ }>;
283
+ export declare const workspaceDiffResponseSchema: z.ZodObject<{
284
+ workspaceId: z.ZodString;
285
+ companyId: z.ZodString;
286
+ view: z.ZodEnum<["working-tree", "head"]>;
287
+ baseRef: z.ZodNullable<z.ZodString>;
288
+ defaultBaseRef: z.ZodNullable<z.ZodString>;
289
+ headSha: z.ZodNullable<z.ZodString>;
290
+ includeUntracked: z.ZodBoolean;
291
+ paths: z.ZodArray<z.ZodString, "many">;
292
+ files: z.ZodArray<z.ZodObject<{
293
+ path: z.ZodString;
294
+ oldPath: z.ZodNullable<z.ZodString>;
295
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
296
+ staged: z.ZodBoolean;
297
+ unstaged: z.ZodBoolean;
298
+ untracked: z.ZodBoolean;
299
+ binary: z.ZodBoolean;
300
+ oversized: z.ZodBoolean;
301
+ truncated: z.ZodBoolean;
302
+ additions: z.ZodNumber;
303
+ deletions: z.ZodNumber;
304
+ sizeBytes: z.ZodNullable<z.ZodNumber>;
305
+ patches: z.ZodArray<z.ZodObject<{
306
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
307
+ patch: z.ZodNullable<z.ZodString>;
308
+ additions: z.ZodNumber;
309
+ deletions: z.ZodNumber;
310
+ binary: z.ZodBoolean;
311
+ oversized: z.ZodBoolean;
312
+ truncated: z.ZodBoolean;
313
+ warnings: z.ZodArray<z.ZodObject<{
314
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
315
+ message: z.ZodString;
316
+ path: z.ZodNullable<z.ZodString>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
319
+ message: string;
320
+ path: string | null;
321
+ }, {
322
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
323
+ message: string;
324
+ path: string | null;
325
+ }>, "many">;
326
+ }, "strict", z.ZodTypeAny, {
327
+ kind: "head" | "untracked" | "staged" | "unstaged";
328
+ warnings: {
329
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
330
+ message: string;
331
+ path: string | null;
332
+ }[];
333
+ patch: string | null;
334
+ additions: number;
335
+ deletions: number;
336
+ binary: boolean;
337
+ oversized: boolean;
338
+ truncated: boolean;
339
+ }, {
340
+ kind: "head" | "untracked" | "staged" | "unstaged";
341
+ warnings: {
342
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
343
+ message: string;
344
+ path: string | null;
345
+ }[];
346
+ patch: string | null;
347
+ additions: number;
348
+ deletions: number;
349
+ binary: boolean;
350
+ oversized: boolean;
351
+ truncated: boolean;
352
+ }>, "many">;
353
+ warnings: z.ZodArray<z.ZodObject<{
354
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
355
+ message: z.ZodString;
356
+ path: z.ZodNullable<z.ZodString>;
357
+ }, "strict", z.ZodTypeAny, {
358
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
359
+ message: string;
360
+ path: string | null;
361
+ }, {
362
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
363
+ message: string;
364
+ path: string | null;
365
+ }>, "many">;
366
+ }, "strict", z.ZodTypeAny, {
367
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
368
+ path: string;
369
+ warnings: {
370
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
371
+ message: string;
372
+ path: string | null;
373
+ }[];
374
+ untracked: boolean;
375
+ staged: boolean;
376
+ unstaged: boolean;
377
+ additions: number;
378
+ deletions: number;
379
+ binary: boolean;
380
+ oversized: boolean;
381
+ truncated: boolean;
382
+ oldPath: string | null;
383
+ sizeBytes: number | null;
384
+ patches: {
385
+ kind: "head" | "untracked" | "staged" | "unstaged";
386
+ warnings: {
387
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
388
+ message: string;
389
+ path: string | null;
390
+ }[];
391
+ patch: string | null;
392
+ additions: number;
393
+ deletions: number;
394
+ binary: boolean;
395
+ oversized: boolean;
396
+ truncated: boolean;
397
+ }[];
398
+ }, {
399
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
400
+ path: string;
401
+ warnings: {
402
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
403
+ message: string;
404
+ path: string | null;
405
+ }[];
406
+ untracked: boolean;
407
+ staged: boolean;
408
+ unstaged: boolean;
409
+ additions: number;
410
+ deletions: number;
411
+ binary: boolean;
412
+ oversized: boolean;
413
+ truncated: boolean;
414
+ oldPath: string | null;
415
+ sizeBytes: number | null;
416
+ patches: {
417
+ kind: "head" | "untracked" | "staged" | "unstaged";
418
+ warnings: {
419
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
420
+ message: string;
421
+ path: string | null;
422
+ }[];
423
+ patch: string | null;
424
+ additions: number;
425
+ deletions: number;
426
+ binary: boolean;
427
+ oversized: boolean;
428
+ truncated: boolean;
429
+ }[];
430
+ }>, "many">;
431
+ stats: z.ZodObject<{
432
+ fileCount: z.ZodNumber;
433
+ stagedFileCount: z.ZodNumber;
434
+ unstagedFileCount: z.ZodNumber;
435
+ untrackedFileCount: z.ZodNumber;
436
+ binaryFileCount: z.ZodNumber;
437
+ oversizedFileCount: z.ZodNumber;
438
+ truncatedFileCount: z.ZodNumber;
439
+ additions: z.ZodNumber;
440
+ deletions: z.ZodNumber;
441
+ }, "strict", z.ZodTypeAny, {
442
+ additions: number;
443
+ deletions: number;
444
+ fileCount: number;
445
+ stagedFileCount: number;
446
+ unstagedFileCount: number;
447
+ untrackedFileCount: number;
448
+ binaryFileCount: number;
449
+ oversizedFileCount: number;
450
+ truncatedFileCount: number;
451
+ }, {
452
+ additions: number;
453
+ deletions: number;
454
+ fileCount: number;
455
+ stagedFileCount: number;
456
+ unstagedFileCount: number;
457
+ untrackedFileCount: number;
458
+ binaryFileCount: number;
459
+ oversizedFileCount: number;
460
+ truncatedFileCount: number;
461
+ }>;
462
+ warnings: z.ZodArray<z.ZodObject<{
463
+ code: z.ZodEnum<["base_ref_missing", "base_ref_invalid", "binary_file", "file_count_truncated", "file_oversized", "git_command_failed", "missing_cwd", "non_git_workspace", "patch_truncated", "path_filter_invalid", "symlink_target_outside_workspace", "workspace_path_invalid"]>;
464
+ message: z.ZodString;
465
+ path: z.ZodNullable<z.ZodString>;
466
+ }, "strict", z.ZodTypeAny, {
467
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
468
+ message: string;
469
+ path: string | null;
470
+ }, {
471
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
472
+ message: string;
473
+ path: string | null;
474
+ }>, "many">;
475
+ caps: z.ZodObject<{
476
+ maxFiles: z.ZodNumber;
477
+ maxFileBytes: z.ZodNumber;
478
+ maxPatchBytes: z.ZodNumber;
479
+ maxTotalPatchBytes: z.ZodNumber;
480
+ }, "strict", z.ZodTypeAny, {
481
+ maxFiles: number;
482
+ maxFileBytes: number;
483
+ maxPatchBytes: number;
484
+ maxTotalPatchBytes: number;
485
+ }, {
486
+ maxFiles: number;
487
+ maxFileBytes: number;
488
+ maxPatchBytes: number;
489
+ maxTotalPatchBytes: number;
490
+ }>;
491
+ truncated: z.ZodBoolean;
492
+ }, "strict", z.ZodTypeAny, {
493
+ companyId: string;
494
+ baseRef: string | null;
495
+ workspaceId: string;
496
+ warnings: {
497
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
498
+ message: string;
499
+ path: string | null;
500
+ }[];
501
+ files: {
502
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
503
+ path: string;
504
+ warnings: {
505
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
506
+ message: string;
507
+ path: string | null;
508
+ }[];
509
+ untracked: boolean;
510
+ staged: boolean;
511
+ unstaged: boolean;
512
+ additions: number;
513
+ deletions: number;
514
+ binary: boolean;
515
+ oversized: boolean;
516
+ truncated: boolean;
517
+ oldPath: string | null;
518
+ sizeBytes: number | null;
519
+ patches: {
520
+ kind: "head" | "untracked" | "staged" | "unstaged";
521
+ warnings: {
522
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
523
+ message: string;
524
+ path: string | null;
525
+ }[];
526
+ patch: string | null;
527
+ additions: number;
528
+ deletions: number;
529
+ binary: boolean;
530
+ oversized: boolean;
531
+ truncated: boolean;
532
+ }[];
533
+ }[];
534
+ view: "working-tree" | "head";
535
+ includeUntracked: boolean;
536
+ paths: string[];
537
+ truncated: boolean;
538
+ defaultBaseRef: string | null;
539
+ headSha: string | null;
540
+ stats: {
541
+ additions: number;
542
+ deletions: number;
543
+ fileCount: number;
544
+ stagedFileCount: number;
545
+ unstagedFileCount: number;
546
+ untrackedFileCount: number;
547
+ binaryFileCount: number;
548
+ oversizedFileCount: number;
549
+ truncatedFileCount: number;
550
+ };
551
+ caps: {
552
+ maxFiles: number;
553
+ maxFileBytes: number;
554
+ maxPatchBytes: number;
555
+ maxTotalPatchBytes: number;
556
+ };
557
+ }, {
558
+ companyId: string;
559
+ baseRef: string | null;
560
+ workspaceId: string;
561
+ warnings: {
562
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
563
+ message: string;
564
+ path: string | null;
565
+ }[];
566
+ files: {
567
+ status: "deleted" | "unknown" | "added" | "modified" | "renamed" | "copied" | "type_changed" | "untracked";
568
+ path: string;
569
+ warnings: {
570
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
571
+ message: string;
572
+ path: string | null;
573
+ }[];
574
+ untracked: boolean;
575
+ staged: boolean;
576
+ unstaged: boolean;
577
+ additions: number;
578
+ deletions: number;
579
+ binary: boolean;
580
+ oversized: boolean;
581
+ truncated: boolean;
582
+ oldPath: string | null;
583
+ sizeBytes: number | null;
584
+ patches: {
585
+ kind: "head" | "untracked" | "staged" | "unstaged";
586
+ warnings: {
587
+ code: "base_ref_missing" | "base_ref_invalid" | "binary_file" | "file_count_truncated" | "file_oversized" | "git_command_failed" | "missing_cwd" | "non_git_workspace" | "patch_truncated" | "path_filter_invalid" | "symlink_target_outside_workspace" | "workspace_path_invalid";
588
+ message: string;
589
+ path: string | null;
590
+ }[];
591
+ patch: string | null;
592
+ additions: number;
593
+ deletions: number;
594
+ binary: boolean;
595
+ oversized: boolean;
596
+ truncated: boolean;
597
+ }[];
598
+ }[];
599
+ view: "working-tree" | "head";
600
+ includeUntracked: boolean;
601
+ paths: string[];
602
+ truncated: boolean;
603
+ defaultBaseRef: string | null;
604
+ headSha: string | null;
605
+ stats: {
606
+ additions: number;
607
+ deletions: number;
608
+ fileCount: number;
609
+ stagedFileCount: number;
610
+ unstagedFileCount: number;
611
+ untrackedFileCount: number;
612
+ binaryFileCount: number;
613
+ oversizedFileCount: number;
614
+ truncatedFileCount: number;
615
+ };
616
+ caps: {
617
+ maxFiles: number;
618
+ maxFileBytes: number;
619
+ maxPatchBytes: number;
620
+ maxTotalPatchBytes: number;
621
+ };
622
+ }>;
623
+ export type WorkspaceDiffView = z.infer<typeof workspaceDiffViewSchema>;
624
+ export type WorkspaceDiffFileStatus = z.infer<typeof workspaceDiffFileStatusSchema>;
625
+ export type WorkspaceDiffPatchKind = z.infer<typeof workspaceDiffPatchKindSchema>;
626
+ export type WorkspaceDiffWarningCode = z.infer<typeof workspaceDiffWarningCodeSchema>;
627
+ export type WorkspaceDiffQueryOptions = z.infer<typeof workspaceDiffQuerySchema>;
628
+ export type WorkspaceDiffWarning = z.infer<typeof workspaceDiffWarningSchema>;
629
+ export type WorkspaceDiffCaps = z.infer<typeof workspaceDiffCapsSchema>;
630
+ export type WorkspaceDiffFilePatch = z.infer<typeof workspaceDiffFilePatchSchema>;
631
+ export type WorkspaceDiffFile = z.infer<typeof workspaceDiffFileSchema>;
632
+ export type WorkspaceDiffStats = z.infer<typeof workspaceDiffStatsSchema>;
633
+ export type WorkspaceDiffResponse = z.infer<typeof workspaceDiffResponseSchema>;
634
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAE5C,eAAO,MAAM,uBAAuB,qCAAmC,CAAC;AAExE,eAAO,MAAM,6BAA6B,0GASxC,CAAC;AAEH,eAAO,MAAM,4BAA4B,wDAAsD,CAAC;AAEhG,eAAO,MAAM,8BAA8B,gRAazC,CAAC;AAkBH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAchC,CAAC;AAEN,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAI5B,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKzB,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAezB,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7B,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACjF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}