@paperclipai/plugin-workspace-diff 2026.824.0-canary.7 → 2026.824.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,94 +1,69 @@
1
1
  import { z } from "@paperclipai/plugin-sdk";
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
- }>>>;
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"]>>>;
41
14
  baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
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<{
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">>, {
49
25
  view: "working-tree" | "head";
50
26
  baseRef: string | null;
51
27
  includeUntracked: boolean;
52
28
  paths: string[];
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
- }>>;
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">>;
61
36
  export declare const workspaceDiffWarningSchema: z.ZodObject<{
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
- }>;
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"]>;
76
38
  message: z.ZodString;
77
39
  path: z.ZodNullable<z.ZodString>;
78
- }, z.core.$strict>;
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
+ }>;
79
49
  export declare const workspaceDiffCapsSchema: z.ZodObject<{
80
50
  maxFiles: z.ZodNumber;
81
51
  maxFileBytes: z.ZodNumber;
82
52
  maxPatchBytes: z.ZodNumber;
83
53
  maxTotalPatchBytes: z.ZodNumber;
84
- }, z.core.$strict>;
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
+ }>;
85
65
  export declare const workspaceDiffFilePatchSchema: z.ZodObject<{
86
- kind: z.ZodEnum<{
87
- head: "head";
88
- untracked: "untracked";
89
- staged: "staged";
90
- unstaged: "unstaged";
91
- }>;
66
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
92
67
  patch: z.ZodNullable<z.ZodString>;
93
68
  additions: z.ZodNumber;
94
69
  deletions: z.ZodNumber;
@@ -96,37 +71,49 @@ export declare const workspaceDiffFilePatchSchema: z.ZodObject<{
96
71
  oversized: z.ZodBoolean;
97
72
  truncated: z.ZodBoolean;
98
73
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
113
75
  message: z.ZodString;
114
76
  path: z.ZodNullable<z.ZodString>;
115
- }, z.core.$strict>>;
116
- }, z.core.$strict>;
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
+ }>;
117
113
  export declare const workspaceDiffFileSchema: z.ZodObject<{
118
114
  path: z.ZodString;
119
115
  oldPath: z.ZodNullable<z.ZodString>;
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
- }>;
116
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
130
117
  staged: z.ZodBoolean;
131
118
  unstaged: z.ZodBoolean;
132
119
  untracked: z.ZodBoolean;
@@ -137,12 +124,7 @@ export declare const workspaceDiffFileSchema: z.ZodObject<{
137
124
  deletions: z.ZodNumber;
138
125
  sizeBytes: z.ZodNullable<z.ZodNumber>;
139
126
  patches: z.ZodArray<z.ZodObject<{
140
- kind: z.ZodEnum<{
141
- head: "head";
142
- untracked: "untracked";
143
- staged: "staged";
144
- unstaged: "unstaged";
145
- }>;
127
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
146
128
  patch: z.ZodNullable<z.ZodString>;
147
129
  additions: z.ZodNumber;
148
130
  deletions: z.ZodNumber;
@@ -150,43 +132,123 @@ export declare const workspaceDiffFileSchema: z.ZodObject<{
150
132
  oversized: z.ZodBoolean;
151
133
  truncated: z.ZodBoolean;
152
134
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
167
136
  message: z.ZodString;
168
137
  path: z.ZodNullable<z.ZodString>;
169
- }, z.core.$strict>>;
170
- }, z.core.$strict>>;
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">;
171
174
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
186
176
  message: z.ZodString;
187
177
  path: z.ZodNullable<z.ZodString>;
188
- }, z.core.$strict>>;
189
- }, z.core.$strict>;
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
+ }>;
190
252
  export declare const workspaceDiffStatsSchema: z.ZodObject<{
191
253
  fileCount: z.ZodNumber;
192
254
  stagedFileCount: z.ZodNumber;
@@ -197,32 +259,40 @@ export declare const workspaceDiffStatsSchema: z.ZodObject<{
197
259
  truncatedFileCount: z.ZodNumber;
198
260
  additions: z.ZodNumber;
199
261
  deletions: z.ZodNumber;
200
- }, z.core.$strict>;
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
+ }>;
201
283
  export declare const workspaceDiffResponseSchema: z.ZodObject<{
202
284
  workspaceId: z.ZodString;
203
285
  companyId: z.ZodString;
204
- view: z.ZodEnum<{
205
- "working-tree": "working-tree";
206
- head: "head";
207
- }>;
286
+ view: z.ZodEnum<["working-tree", "head"]>;
208
287
  baseRef: z.ZodNullable<z.ZodString>;
209
288
  defaultBaseRef: z.ZodNullable<z.ZodString>;
210
289
  headSha: z.ZodNullable<z.ZodString>;
211
290
  includeUntracked: z.ZodBoolean;
212
- paths: z.ZodArray<z.ZodString>;
291
+ paths: z.ZodArray<z.ZodString, "many">;
213
292
  files: z.ZodArray<z.ZodObject<{
214
293
  path: z.ZodString;
215
294
  oldPath: z.ZodNullable<z.ZodString>;
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
- }>;
295
+ status: z.ZodEnum<["added", "modified", "deleted", "renamed", "copied", "type_changed", "untracked", "unknown"]>;
226
296
  staged: z.ZodBoolean;
227
297
  unstaged: z.ZodBoolean;
228
298
  untracked: z.ZodBoolean;
@@ -233,12 +303,7 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
233
303
  deletions: z.ZodNumber;
234
304
  sizeBytes: z.ZodNullable<z.ZodNumber>;
235
305
  patches: z.ZodArray<z.ZodObject<{
236
- kind: z.ZodEnum<{
237
- head: "head";
238
- untracked: "untracked";
239
- staged: "staged";
240
- unstaged: "unstaged";
241
- }>;
306
+ kind: z.ZodEnum<["staged", "unstaged", "head", "untracked"]>;
242
307
  patch: z.ZodNullable<z.ZodString>;
243
308
  additions: z.ZodNumber;
244
309
  deletions: z.ZodNumber;
@@ -246,43 +311,123 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
246
311
  oversized: z.ZodBoolean;
247
312
  truncated: z.ZodBoolean;
248
313
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
263
315
  message: z.ZodString;
264
316
  path: z.ZodNullable<z.ZodString>;
265
- }, z.core.$strict>>;
266
- }, z.core.$strict>>;
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">;
267
353
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
282
355
  message: z.ZodString;
283
356
  path: z.ZodNullable<z.ZodString>;
284
- }, z.core.$strict>>;
285
- }, z.core.$strict>>;
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">;
286
431
  stats: z.ZodObject<{
287
432
  fileCount: z.ZodNumber;
288
433
  stagedFileCount: z.ZodNumber;
@@ -293,33 +438,188 @@ export declare const workspaceDiffResponseSchema: z.ZodObject<{
293
438
  truncatedFileCount: z.ZodNumber;
294
439
  additions: z.ZodNumber;
295
440
  deletions: z.ZodNumber;
296
- }, z.core.$strict>;
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
+ }>;
297
462
  warnings: z.ZodArray<z.ZodObject<{
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
- }>;
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"]>;
312
464
  message: z.ZodString;
313
465
  path: z.ZodNullable<z.ZodString>;
314
- }, z.core.$strict>>;
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">;
315
475
  caps: z.ZodObject<{
316
476
  maxFiles: z.ZodNumber;
317
477
  maxFileBytes: z.ZodNumber;
318
478
  maxPatchBytes: z.ZodNumber;
319
479
  maxTotalPatchBytes: z.ZodNumber;
320
- }, z.core.$strict>;
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
+ }>;
321
491
  truncated: z.ZodBoolean;
322
- }, z.core.$strict>;
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
+ }>;
323
623
  export type WorkspaceDiffView = z.infer<typeof workspaceDiffViewSchema>;
324
624
  export type WorkspaceDiffFileStatus = z.infer<typeof workspaceDiffFileStatusSchema>;
325
625
  export type WorkspaceDiffPatchKind = z.infer<typeof workspaceDiffPatchKindSchema>;