@paperclipai/plugin-workspace-diff 2026.824.0 → 2026.825.0-beta.1

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.
@@ -1,69 +1,94 @@
1
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"]>>>;
2
+ export declare const workspaceDiffViewSchema: z.ZodEnum<{
3
+ "working-tree": "working-tree";
4
+ head: "head";
5
+ }>;
6
+ export declare const workspaceDiffFileStatusSchema: z.ZodEnum<{
7
+ unknown: "unknown";
8
+ deleted: "deleted";
9
+ renamed: "renamed";
10
+ added: "added";
11
+ modified: "modified";
12
+ copied: "copied";
13
+ type_changed: "type_changed";
14
+ untracked: "untracked";
15
+ }>;
16
+ export declare const workspaceDiffPatchKindSchema: z.ZodEnum<{
17
+ head: "head";
18
+ untracked: "untracked";
19
+ staged: "staged";
20
+ unstaged: "unstaged";
21
+ }>;
22
+ export declare const workspaceDiffWarningCodeSchema: z.ZodEnum<{
23
+ base_ref_missing: "base_ref_missing";
24
+ base_ref_invalid: "base_ref_invalid";
25
+ binary_file: "binary_file";
26
+ file_count_truncated: "file_count_truncated";
27
+ file_oversized: "file_oversized";
28
+ git_command_failed: "git_command_failed";
29
+ missing_cwd: "missing_cwd";
30
+ non_git_workspace: "non_git_workspace";
31
+ patch_truncated: "patch_truncated";
32
+ path_filter_invalid: "path_filter_invalid";
33
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
34
+ workspace_path_invalid: "workspace_path_invalid";
35
+ }>;
36
+ export declare const workspaceDiffQuerySchema: z.ZodPipe<z.ZodObject<{
37
+ view: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
38
+ "working-tree": "working-tree";
39
+ head: "head";
40
+ }>>>;
20
41
  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">>, {
42
+ includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
43
+ true: "true";
44
+ false: "false";
45
+ }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>>;
46
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
47
+ paths: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
48
+ }, z.core.$loose>, z.ZodTransform<{
25
49
  view: "working-tree" | "head";
26
50
  baseRef: string | null;
27
51
  includeUntracked: boolean;
28
52
  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">>;
53
+ }, {
54
+ [x: string]: unknown;
55
+ view: "working-tree" | "head";
56
+ includeUntracked: boolean;
57
+ baseRef?: string | null | undefined;
58
+ path?: string | string[] | undefined;
59
+ paths?: string | string[] | undefined;
60
+ }>>;
36
61
  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"]>;
62
+ code: z.ZodEnum<{
63
+ base_ref_missing: "base_ref_missing";
64
+ base_ref_invalid: "base_ref_invalid";
65
+ binary_file: "binary_file";
66
+ file_count_truncated: "file_count_truncated";
67
+ file_oversized: "file_oversized";
68
+ git_command_failed: "git_command_failed";
69
+ missing_cwd: "missing_cwd";
70
+ non_git_workspace: "non_git_workspace";
71
+ patch_truncated: "patch_truncated";
72
+ path_filter_invalid: "path_filter_invalid";
73
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
74
+ workspace_path_invalid: "workspace_path_invalid";
75
+ }>;
38
76
  message: z.ZodString;
39
77
  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
- }>;
78
+ }, z.core.$strict>;
49
79
  export declare const workspaceDiffCapsSchema: z.ZodObject<{
50
80
  maxFiles: z.ZodNumber;
51
81
  maxFileBytes: z.ZodNumber;
52
82
  maxPatchBytes: z.ZodNumber;
53
83
  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
- }>;
84
+ }, z.core.$strict>;
65
85
  export declare const workspaceDiffFilePatchSchema: z.ZodObject<{
66
- kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
86
+ kind: z.ZodEnum<{
87
+ head: "head";
88
+ untracked: "untracked";
89
+ staged: "staged";
90
+ unstaged: "unstaged";
91
+ }>;
67
92
  patch: z.ZodNullable<z.ZodString>;
68
93
  additions: z.ZodNumber;
69
94
  deletions: z.ZodNumber;
@@ -71,49 +96,37 @@ export declare const workspaceDiffFilePatchSchema: z.ZodObject<{
71
96
  oversized: z.ZodBoolean;
72
97
  truncated: z.ZodBoolean;
73
98
  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"]>;
99
+ code: z.ZodEnum<{
100
+ base_ref_missing: "base_ref_missing";
101
+ base_ref_invalid: "base_ref_invalid";
102
+ binary_file: "binary_file";
103
+ file_count_truncated: "file_count_truncated";
104
+ file_oversized: "file_oversized";
105
+ git_command_failed: "git_command_failed";
106
+ missing_cwd: "missing_cwd";
107
+ non_git_workspace: "non_git_workspace";
108
+ patch_truncated: "patch_truncated";
109
+ path_filter_invalid: "path_filter_invalid";
110
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
111
+ workspace_path_invalid: "workspace_path_invalid";
112
+ }>;
75
113
  message: z.ZodString;
76
114
  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
- truncated: boolean;
94
- patch: string | null;
95
- additions: number;
96
- deletions: number;
97
- binary: boolean;
98
- oversized: 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
- truncated: boolean;
107
- patch: string | null;
108
- additions: number;
109
- deletions: number;
110
- binary: boolean;
111
- oversized: boolean;
112
- }>;
115
+ }, z.core.$strict>>;
116
+ }, z.core.$strict>;
113
117
  export declare const workspaceDiffFileSchema: z.ZodObject<{
114
118
  path: z.ZodString;
115
119
  oldPath: z.ZodNullable<z.ZodString>;
116
- status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
120
+ status: z.ZodEnum<{
121
+ unknown: "unknown";
122
+ deleted: "deleted";
123
+ renamed: "renamed";
124
+ added: "added";
125
+ modified: "modified";
126
+ copied: "copied";
127
+ type_changed: "type_changed";
128
+ untracked: "untracked";
129
+ }>;
117
130
  staged: z.ZodBoolean;
118
131
  unstaged: z.ZodBoolean;
119
132
  untracked: z.ZodBoolean;
@@ -124,7 +137,12 @@ export declare const workspaceDiffFileSchema: z.ZodObject<{
124
137
  deletions: z.ZodNumber;
125
138
  sizeBytes: z.ZodNullable<z.ZodNumber>;
126
139
  patches: z.ZodArray<z.ZodObject<{
127
- kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
140
+ kind: z.ZodEnum<{
141
+ head: "head";
142
+ untracked: "untracked";
143
+ staged: "staged";
144
+ unstaged: "unstaged";
145
+ }>;
128
146
  patch: z.ZodNullable<z.ZodString>;
129
147
  additions: z.ZodNumber;
130
148
  deletions: z.ZodNumber;
@@ -132,123 +150,43 @@ export declare const workspaceDiffFileSchema: z.ZodObject<{
132
150
  oversized: z.ZodBoolean;
133
151
  truncated: z.ZodBoolean;
134
152
  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"]>;
153
+ code: z.ZodEnum<{
154
+ base_ref_missing: "base_ref_missing";
155
+ base_ref_invalid: "base_ref_invalid";
156
+ binary_file: "binary_file";
157
+ file_count_truncated: "file_count_truncated";
158
+ file_oversized: "file_oversized";
159
+ git_command_failed: "git_command_failed";
160
+ missing_cwd: "missing_cwd";
161
+ non_git_workspace: "non_git_workspace";
162
+ patch_truncated: "patch_truncated";
163
+ path_filter_invalid: "path_filter_invalid";
164
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
165
+ workspace_path_invalid: "workspace_path_invalid";
166
+ }>;
136
167
  message: z.ZodString;
137
168
  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
- truncated: boolean;
155
- patch: string | null;
156
- additions: number;
157
- deletions: number;
158
- binary: boolean;
159
- oversized: 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
- truncated: boolean;
168
- patch: string | null;
169
- additions: number;
170
- deletions: number;
171
- binary: boolean;
172
- oversized: boolean;
173
- }>, "many">;
169
+ }, z.core.$strict>>;
170
+ }, z.core.$strict>>;
174
171
  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"]>;
172
+ code: z.ZodEnum<{
173
+ base_ref_missing: "base_ref_missing";
174
+ base_ref_invalid: "base_ref_invalid";
175
+ binary_file: "binary_file";
176
+ file_count_truncated: "file_count_truncated";
177
+ file_oversized: "file_oversized";
178
+ git_command_failed: "git_command_failed";
179
+ missing_cwd: "missing_cwd";
180
+ non_git_workspace: "non_git_workspace";
181
+ patch_truncated: "patch_truncated";
182
+ path_filter_invalid: "path_filter_invalid";
183
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
184
+ workspace_path_invalid: "workspace_path_invalid";
185
+ }>;
176
186
  message: z.ZodString;
177
187
  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: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
189
- path: string;
190
- sizeBytes: number | null;
191
- warnings: {
192
- 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";
193
- message: string;
194
- path: string | null;
195
- }[];
196
- truncated: boolean;
197
- untracked: boolean;
198
- staged: boolean;
199
- unstaged: boolean;
200
- additions: number;
201
- deletions: number;
202
- binary: boolean;
203
- oversized: boolean;
204
- oldPath: string | 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
- truncated: boolean;
213
- patch: string | null;
214
- additions: number;
215
- deletions: number;
216
- binary: boolean;
217
- oversized: boolean;
218
- }[];
219
- }, {
220
- status: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
221
- path: string;
222
- sizeBytes: number | null;
223
- warnings: {
224
- 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";
225
- message: string;
226
- path: string | null;
227
- }[];
228
- truncated: boolean;
229
- untracked: boolean;
230
- staged: boolean;
231
- unstaged: boolean;
232
- additions: number;
233
- deletions: number;
234
- binary: boolean;
235
- oversized: boolean;
236
- oldPath: string | 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
- truncated: boolean;
245
- patch: string | null;
246
- additions: number;
247
- deletions: number;
248
- binary: boolean;
249
- oversized: boolean;
250
- }[];
251
- }>;
188
+ }, z.core.$strict>>;
189
+ }, z.core.$strict>;
252
190
  export declare const workspaceDiffStatsSchema: z.ZodObject<{
253
191
  fileCount: z.ZodNumber;
254
192
  stagedFileCount: z.ZodNumber;
@@ -259,40 +197,32 @@ export declare const workspaceDiffStatsSchema: z.ZodObject<{
259
197
  truncatedFileCount: z.ZodNumber;
260
198
  additions: z.ZodNumber;
261
199
  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
- }>;
200
+ }, z.core.$strict>;
283
201
  export declare const workspaceDiffResponseSchema: z.ZodObject<{
284
202
  workspaceId: z.ZodString;
285
203
  companyId: z.ZodString;
286
- view: z.ZodEnum<["working-tree", "head"]>;
204
+ view: z.ZodEnum<{
205
+ "working-tree": "working-tree";
206
+ head: "head";
207
+ }>;
287
208
  baseRef: z.ZodNullable<z.ZodString>;
288
209
  defaultBaseRef: z.ZodNullable<z.ZodString>;
289
210
  headSha: z.ZodNullable<z.ZodString>;
290
211
  includeUntracked: z.ZodBoolean;
291
- paths: z.ZodArray<z.ZodString, "many">;
212
+ paths: z.ZodArray<z.ZodString>;
292
213
  files: z.ZodArray<z.ZodObject<{
293
214
  path: z.ZodString;
294
215
  oldPath: z.ZodNullable<z.ZodString>;
295
- status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
216
+ status: z.ZodEnum<{
217
+ unknown: "unknown";
218
+ deleted: "deleted";
219
+ renamed: "renamed";
220
+ added: "added";
221
+ modified: "modified";
222
+ copied: "copied";
223
+ type_changed: "type_changed";
224
+ untracked: "untracked";
225
+ }>;
296
226
  staged: z.ZodBoolean;
297
227
  unstaged: z.ZodBoolean;
298
228
  untracked: z.ZodBoolean;
@@ -303,7 +233,12 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
303
233
  deletions: z.ZodNumber;
304
234
  sizeBytes: z.ZodNullable<z.ZodNumber>;
305
235
  patches: z.ZodArray<z.ZodObject<{
306
- kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
236
+ kind: z.ZodEnum<{
237
+ head: "head";
238
+ untracked: "untracked";
239
+ staged: "staged";
240
+ unstaged: "unstaged";
241
+ }>;
307
242
  patch: z.ZodNullable<z.ZodString>;
308
243
  additions: z.ZodNumber;
309
244
  deletions: z.ZodNumber;
@@ -311,123 +246,43 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
311
246
  oversized: z.ZodBoolean;
312
247
  truncated: z.ZodBoolean;
313
248
  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"]>;
249
+ code: z.ZodEnum<{
250
+ base_ref_missing: "base_ref_missing";
251
+ base_ref_invalid: "base_ref_invalid";
252
+ binary_file: "binary_file";
253
+ file_count_truncated: "file_count_truncated";
254
+ file_oversized: "file_oversized";
255
+ git_command_failed: "git_command_failed";
256
+ missing_cwd: "missing_cwd";
257
+ non_git_workspace: "non_git_workspace";
258
+ patch_truncated: "patch_truncated";
259
+ path_filter_invalid: "path_filter_invalid";
260
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
261
+ workspace_path_invalid: "workspace_path_invalid";
262
+ }>;
315
263
  message: z.ZodString;
316
264
  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
- truncated: boolean;
334
- patch: string | null;
335
- additions: number;
336
- deletions: number;
337
- binary: boolean;
338
- oversized: 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
- truncated: boolean;
347
- patch: string | null;
348
- additions: number;
349
- deletions: number;
350
- binary: boolean;
351
- oversized: boolean;
352
- }>, "many">;
265
+ }, z.core.$strict>>;
266
+ }, z.core.$strict>>;
353
267
  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"]>;
268
+ code: z.ZodEnum<{
269
+ base_ref_missing: "base_ref_missing";
270
+ base_ref_invalid: "base_ref_invalid";
271
+ binary_file: "binary_file";
272
+ file_count_truncated: "file_count_truncated";
273
+ file_oversized: "file_oversized";
274
+ git_command_failed: "git_command_failed";
275
+ missing_cwd: "missing_cwd";
276
+ non_git_workspace: "non_git_workspace";
277
+ patch_truncated: "patch_truncated";
278
+ path_filter_invalid: "path_filter_invalid";
279
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
280
+ workspace_path_invalid: "workspace_path_invalid";
281
+ }>;
355
282
  message: z.ZodString;
356
283
  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: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
368
- path: string;
369
- sizeBytes: number | null;
370
- warnings: {
371
- 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";
372
- message: string;
373
- path: string | null;
374
- }[];
375
- truncated: boolean;
376
- untracked: boolean;
377
- staged: boolean;
378
- unstaged: boolean;
379
- additions: number;
380
- deletions: number;
381
- binary: boolean;
382
- oversized: boolean;
383
- oldPath: string | 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
- truncated: boolean;
392
- patch: string | null;
393
- additions: number;
394
- deletions: number;
395
- binary: boolean;
396
- oversized: boolean;
397
- }[];
398
- }, {
399
- status: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
400
- path: string;
401
- sizeBytes: number | null;
402
- warnings: {
403
- 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";
404
- message: string;
405
- path: string | null;
406
- }[];
407
- truncated: boolean;
408
- untracked: boolean;
409
- staged: boolean;
410
- unstaged: boolean;
411
- additions: number;
412
- deletions: number;
413
- binary: boolean;
414
- oversized: boolean;
415
- oldPath: string | 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
- truncated: boolean;
424
- patch: string | null;
425
- additions: number;
426
- deletions: number;
427
- binary: boolean;
428
- oversized: boolean;
429
- }[];
430
- }>, "many">;
284
+ }, z.core.$strict>>;
285
+ }, z.core.$strict>>;
431
286
  stats: z.ZodObject<{
432
287
  fileCount: z.ZodNumber;
433
288
  stagedFileCount: z.ZodNumber;
@@ -438,188 +293,33 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
438
293
  truncatedFileCount: z.ZodNumber;
439
294
  additions: z.ZodNumber;
440
295
  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
- }>;
296
+ }, z.core.$strict>;
462
297
  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"]>;
298
+ code: z.ZodEnum<{
299
+ base_ref_missing: "base_ref_missing";
300
+ base_ref_invalid: "base_ref_invalid";
301
+ binary_file: "binary_file";
302
+ file_count_truncated: "file_count_truncated";
303
+ file_oversized: "file_oversized";
304
+ git_command_failed: "git_command_failed";
305
+ missing_cwd: "missing_cwd";
306
+ non_git_workspace: "non_git_workspace";
307
+ patch_truncated: "patch_truncated";
308
+ path_filter_invalid: "path_filter_invalid";
309
+ symlink_target_outside_workspace: "symlink_target_outside_workspace";
310
+ workspace_path_invalid: "workspace_path_invalid";
311
+ }>;
464
312
  message: z.ZodString;
465
313
  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">;
314
+ }, z.core.$strict>>;
475
315
  caps: z.ZodObject<{
476
316
  maxFiles: z.ZodNumber;
477
317
  maxFileBytes: z.ZodNumber;
478
318
  maxPatchBytes: z.ZodNumber;
479
319
  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
- }>;
320
+ }, z.core.$strict>;
491
321
  truncated: z.ZodBoolean;
492
- }, "strict", z.ZodTypeAny, {
493
- companyId: string;
494
- baseRef: string | null;
495
- files: {
496
- status: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
497
- path: string;
498
- sizeBytes: number | null;
499
- warnings: {
500
- 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";
501
- message: string;
502
- path: string | null;
503
- }[];
504
- truncated: boolean;
505
- untracked: boolean;
506
- staged: boolean;
507
- unstaged: boolean;
508
- additions: number;
509
- deletions: number;
510
- binary: boolean;
511
- oversized: boolean;
512
- oldPath: string | null;
513
- patches: {
514
- kind: "head" | "untracked" | "staged" | "unstaged";
515
- warnings: {
516
- 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";
517
- message: string;
518
- path: string | null;
519
- }[];
520
- truncated: boolean;
521
- patch: string | null;
522
- additions: number;
523
- deletions: number;
524
- binary: boolean;
525
- oversized: boolean;
526
- }[];
527
- }[];
528
- warnings: {
529
- 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";
530
- message: string;
531
- path: string | null;
532
- }[];
533
- workspaceId: string;
534
- truncated: boolean;
535
- view: "working-tree" | "head";
536
- includeUntracked: boolean;
537
- paths: string[];
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
- files: {
561
- status: "unknown" | "deleted" | "renamed" | "added" | "modified" | "copied" | "type_changed" | "untracked";
562
- path: string;
563
- sizeBytes: number | null;
564
- warnings: {
565
- 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";
566
- message: string;
567
- path: string | null;
568
- }[];
569
- truncated: boolean;
570
- untracked: boolean;
571
- staged: boolean;
572
- unstaged: boolean;
573
- additions: number;
574
- deletions: number;
575
- binary: boolean;
576
- oversized: boolean;
577
- oldPath: string | null;
578
- patches: {
579
- kind: "head" | "untracked" | "staged" | "unstaged";
580
- warnings: {
581
- 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";
582
- message: string;
583
- path: string | null;
584
- }[];
585
- truncated: boolean;
586
- patch: string | null;
587
- additions: number;
588
- deletions: number;
589
- binary: boolean;
590
- oversized: boolean;
591
- }[];
592
- }[];
593
- warnings: {
594
- 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";
595
- message: string;
596
- path: string | null;
597
- }[];
598
- workspaceId: string;
599
- truncated: boolean;
600
- view: "working-tree" | "head";
601
- includeUntracked: boolean;
602
- paths: string[];
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
- }>;
322
+ }, z.core.$strict>;
623
323
  export type WorkspaceDiffView = z.infer<typeof workspaceDiffViewSchema>;
624
324
  export type WorkspaceDiffFileStatus = z.infer<typeof workspaceDiffFileStatusSchema>;
625
325
  export type WorkspaceDiffPatchKind = z.infer<typeof workspaceDiffPatchKindSchema>;