@paperclipai/shared 0.3.1 → 2026.3.17-canary.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.
- package/dist/constants.d.ts +148 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +352 -2
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/agent.d.ts +3 -1
- package/dist/types/agent.d.ts.map +1 -1
- package/dist/types/budget.d.ts +86 -0
- package/dist/types/budget.d.ts.map +1 -0
- package/dist/types/budget.js +2 -0
- package/dist/types/budget.js.map +1 -0
- package/dist/types/company.d.ts +5 -1
- package/dist/types/company.d.ts.map +1 -1
- package/dist/types/cost.d.ts +71 -0
- package/dist/types/cost.d.ts.map +1 -1
- package/dist/types/dashboard.d.ts +6 -0
- package/dist/types/dashboard.d.ts.map +1 -1
- package/dist/types/finance.d.ts +57 -0
- package/dist/types/finance.d.ts.map +1 -0
- package/dist/types/finance.js +2 -0
- package/dist/types/finance.js.map +1 -0
- package/dist/types/index.d.ts +11 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/instance.d.ts +10 -0
- package/dist/types/instance.d.ts.map +1 -0
- package/dist/types/instance.js +2 -0
- package/dist/types/instance.js.map +1 -0
- package/dist/types/issue.d.ts +48 -1
- package/dist/types/issue.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +419 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +2 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/project.d.ts +26 -1
- package/dist/types/project.d.ts.map +1 -1
- package/dist/types/quota.d.ts +26 -0
- package/dist/types/quota.d.ts.map +1 -0
- package/dist/types/quota.js +2 -0
- package/dist/types/quota.js.map +1 -0
- package/dist/types/work-product.d.ts +27 -0
- package/dist/types/work-product.d.ts.map +1 -0
- package/dist/types/work-product.js +2 -0
- package/dist/types/work-product.js.map +1 -0
- package/dist/types/workspace-operation.d.ts +26 -0
- package/dist/types/workspace-operation.d.ts.map +1 -0
- package/dist/types/workspace-operation.js +2 -0
- package/dist/types/workspace-operation.js.map +1 -0
- package/dist/types/workspace-runtime.d.ts +35 -3
- package/dist/types/workspace-runtime.d.ts.map +1 -1
- package/dist/validators/access.d.ts +3 -3
- package/dist/validators/agent.d.ts +14 -11
- package/dist/validators/agent.d.ts.map +1 -1
- package/dist/validators/agent.js +1 -0
- package/dist/validators/agent.js.map +1 -1
- package/dist/validators/approval.d.ts +3 -3
- package/dist/validators/budget.d.ts +56 -0
- package/dist/validators/budget.d.ts.map +1 -0
- package/dist/validators/budget.js +27 -0
- package/dist/validators/budget.js.map +1 -0
- package/dist/validators/company-portability.d.ts +144 -144
- package/dist/validators/company.d.ts +3 -0
- package/dist/validators/company.d.ts.map +1 -1
- package/dist/validators/company.js +2 -0
- package/dist/validators/company.js.map +1 -1
- package/dist/validators/cost.d.ts +45 -1
- package/dist/validators/cost.d.ts.map +1 -1
- package/dist/validators/cost.js +9 -1
- package/dist/validators/cost.js.map +1 -1
- package/dist/validators/execution-workspace.d.ts +20 -0
- package/dist/validators/execution-workspace.d.ts.map +1 -0
- package/dist/validators/execution-workspace.js +15 -0
- package/dist/validators/execution-workspace.js.map +1 -0
- package/dist/validators/finance.d.ts +129 -0
- package/dist/validators/finance.d.ts.map +1 -0
- package/dist/validators/finance.js +32 -0
- package/dist/validators/finance.js.map +1 -0
- package/dist/validators/index.d.ts +7 -1
- package/dist/validators/index.d.ts.map +1 -1
- package/dist/validators/index.js +7 -1
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/instance.d.ts +18 -0
- package/dist/validators/instance.d.ts.map +1 -0
- package/dist/validators/instance.js +6 -0
- package/dist/validators/instance.js.map +1 -0
- package/dist/validators/issue.d.ts +76 -34
- package/dist/validators/issue.d.ts.map +1 -1
- package/dist/validators/issue.js +27 -2
- package/dist/validators/issue.js.map +1 -1
- package/dist/validators/plugin.d.ts +1173 -0
- package/dist/validators/plugin.d.ts.map +1 -0
- package/dist/validators/plugin.js +547 -0
- package/dist/validators/plugin.js.map +1 -0
- package/dist/validators/project.d.ts +188 -42
- package/dist/validators/project.d.ts.map +1 -1
- package/dist/validators/project.js +32 -7
- package/dist/validators/project.js.map +1 -1
- package/dist/validators/work-product.d.ts +105 -0
- package/dist/validators/work-product.d.ts.map +1 -0
- package/dist/validators/work-product.js +46 -0
- package/dist/validators/work-product.js.map +1 -0
- package/package.json +11 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const projectExecutionWorkspacePolicySchema: z.ZodObject<{
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
|
-
defaultMode: z.ZodOptional<z.ZodEnum<["
|
|
4
|
+
defaultMode: z.ZodOptional<z.ZodEnum<["shared_workspace", "isolated_workspace", "operator_branch", "adapter_default"]>>;
|
|
5
5
|
allowIssueOverride: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
defaultProjectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
7
|
workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
-
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree"]>>;
|
|
8
|
+
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
|
|
8
9
|
baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
10
|
branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
11
|
worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
12
|
provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
13
|
teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
14
|
}, "strict", z.ZodTypeAny, {
|
|
14
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
15
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
15
16
|
baseRef?: string | null | undefined;
|
|
16
17
|
branchTemplate?: string | null | undefined;
|
|
17
18
|
worktreeParentDir?: string | null | undefined;
|
|
18
19
|
provisionCommand?: string | null | undefined;
|
|
19
20
|
teardownCommand?: string | null | undefined;
|
|
20
21
|
}, {
|
|
21
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
22
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
22
23
|
baseRef?: string | null | undefined;
|
|
23
24
|
branchTemplate?: string | null | undefined;
|
|
24
25
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -28,13 +29,15 @@ export declare const projectExecutionWorkspacePolicySchema: z.ZodObject<{
|
|
|
28
29
|
workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
30
|
branchPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
31
|
pullRequestPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
|
+
runtimePolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
33
|
cleanupPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
32
34
|
}, "strict", z.ZodTypeAny, {
|
|
33
35
|
enabled: boolean;
|
|
34
|
-
defaultMode?: "
|
|
36
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
35
37
|
allowIssueOverride?: boolean | undefined;
|
|
38
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
36
39
|
workspaceStrategy?: {
|
|
37
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
40
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
38
41
|
baseRef?: string | null | undefined;
|
|
39
42
|
branchTemplate?: string | null | undefined;
|
|
40
43
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -44,13 +47,15 @@ export declare const projectExecutionWorkspacePolicySchema: z.ZodObject<{
|
|
|
44
47
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
45
48
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
46
49
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
50
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
47
51
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
48
52
|
}, {
|
|
49
53
|
enabled: boolean;
|
|
50
|
-
defaultMode?: "
|
|
54
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
51
55
|
allowIssueOverride?: boolean | undefined;
|
|
56
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
52
57
|
workspaceStrategy?: {
|
|
53
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
58
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
54
59
|
baseRef?: string | null | undefined;
|
|
55
60
|
branchTemplate?: string | null | undefined;
|
|
56
61
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -60,104 +65,209 @@ export declare const projectExecutionWorkspacePolicySchema: z.ZodObject<{
|
|
|
60
65
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
61
66
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
62
67
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
68
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
63
69
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
64
70
|
}>;
|
|
65
71
|
export declare const createProjectWorkspaceSchema: z.ZodEffects<z.ZodObject<{
|
|
66
72
|
isPrimary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
73
|
name: z.ZodOptional<z.ZodString>;
|
|
74
|
+
sourceType: z.ZodOptional<z.ZodEnum<["local_path", "git_repo", "remote_managed", "non_git_path"]>>;
|
|
68
75
|
cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
76
|
repoUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
77
|
repoRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
defaultRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
visibility: z.ZodOptional<z.ZodEnum<["default", "advanced"]>>;
|
|
80
|
+
setupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
|
+
cleanupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
|
+
remoteProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
remoteWorkspaceRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
84
|
+
sharedWorkspaceKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
85
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
72
86
|
}, "strip", z.ZodTypeAny, {
|
|
73
87
|
isPrimary: boolean;
|
|
74
88
|
name?: string | undefined;
|
|
75
89
|
metadata?: Record<string, unknown> | null | undefined;
|
|
90
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
76
91
|
cwd?: string | null | undefined;
|
|
77
92
|
repoUrl?: string | null | undefined;
|
|
93
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
78
94
|
repoRef?: string | null | undefined;
|
|
95
|
+
defaultRef?: string | null | undefined;
|
|
96
|
+
visibility?: "default" | "advanced" | undefined;
|
|
97
|
+
setupCommand?: string | null | undefined;
|
|
98
|
+
cleanupCommand?: string | null | undefined;
|
|
99
|
+
remoteProvider?: string | null | undefined;
|
|
100
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
79
101
|
}, {
|
|
80
102
|
name?: string | undefined;
|
|
81
103
|
metadata?: Record<string, unknown> | null | undefined;
|
|
82
|
-
|
|
104
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
83
105
|
cwd?: string | null | undefined;
|
|
84
106
|
repoUrl?: string | null | undefined;
|
|
107
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
108
|
+
isPrimary?: boolean | undefined;
|
|
85
109
|
repoRef?: string | null | undefined;
|
|
110
|
+
defaultRef?: string | null | undefined;
|
|
111
|
+
visibility?: "default" | "advanced" | undefined;
|
|
112
|
+
setupCommand?: string | null | undefined;
|
|
113
|
+
cleanupCommand?: string | null | undefined;
|
|
114
|
+
remoteProvider?: string | null | undefined;
|
|
115
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
86
116
|
}>, {
|
|
87
117
|
isPrimary: boolean;
|
|
88
118
|
name?: string | undefined;
|
|
89
119
|
metadata?: Record<string, unknown> | null | undefined;
|
|
120
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
90
121
|
cwd?: string | null | undefined;
|
|
91
122
|
repoUrl?: string | null | undefined;
|
|
123
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
92
124
|
repoRef?: string | null | undefined;
|
|
125
|
+
defaultRef?: string | null | undefined;
|
|
126
|
+
visibility?: "default" | "advanced" | undefined;
|
|
127
|
+
setupCommand?: string | null | undefined;
|
|
128
|
+
cleanupCommand?: string | null | undefined;
|
|
129
|
+
remoteProvider?: string | null | undefined;
|
|
130
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
93
131
|
}, {
|
|
94
132
|
name?: string | undefined;
|
|
95
133
|
metadata?: Record<string, unknown> | null | undefined;
|
|
96
|
-
|
|
134
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
97
135
|
cwd?: string | null | undefined;
|
|
98
136
|
repoUrl?: string | null | undefined;
|
|
137
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
138
|
+
isPrimary?: boolean | undefined;
|
|
99
139
|
repoRef?: string | null | undefined;
|
|
140
|
+
defaultRef?: string | null | undefined;
|
|
141
|
+
visibility?: "default" | "advanced" | undefined;
|
|
142
|
+
setupCommand?: string | null | undefined;
|
|
143
|
+
cleanupCommand?: string | null | undefined;
|
|
144
|
+
remoteProvider?: string | null | undefined;
|
|
145
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
100
146
|
}>;
|
|
101
147
|
export type CreateProjectWorkspace = z.infer<typeof createProjectWorkspaceSchema>;
|
|
102
148
|
export declare const updateProjectWorkspaceSchema: z.ZodObject<{
|
|
103
149
|
isPrimary: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
104
150
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
151
|
+
sourceType: z.ZodOptional<z.ZodOptional<z.ZodEnum<["local_path", "git_repo", "remote_managed", "non_git_path"]>>>;
|
|
105
152
|
cwd: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
106
153
|
repoUrl: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
107
154
|
repoRef: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
155
|
+
defaultRef: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
156
|
+
visibility: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "advanced"]>>>;
|
|
157
|
+
setupCommand: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
158
|
+
cleanupCommand: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
159
|
+
remoteProvider: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
160
|
+
remoteWorkspaceRef: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
161
|
+
sharedWorkspaceKey: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
108
162
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
109
163
|
}, "strip", z.ZodTypeAny, {
|
|
110
164
|
name?: string | undefined;
|
|
111
165
|
metadata?: Record<string, unknown> | null | undefined;
|
|
112
|
-
|
|
166
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
113
167
|
cwd?: string | null | undefined;
|
|
114
168
|
repoUrl?: string | null | undefined;
|
|
169
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
170
|
+
isPrimary?: boolean | undefined;
|
|
115
171
|
repoRef?: string | null | undefined;
|
|
172
|
+
defaultRef?: string | null | undefined;
|
|
173
|
+
visibility?: "default" | "advanced" | undefined;
|
|
174
|
+
setupCommand?: string | null | undefined;
|
|
175
|
+
cleanupCommand?: string | null | undefined;
|
|
176
|
+
remoteProvider?: string | null | undefined;
|
|
177
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
116
178
|
}, {
|
|
117
179
|
name?: string | undefined;
|
|
118
180
|
metadata?: Record<string, unknown> | null | undefined;
|
|
119
|
-
|
|
181
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
120
182
|
cwd?: string | null | undefined;
|
|
121
183
|
repoUrl?: string | null | undefined;
|
|
184
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
185
|
+
isPrimary?: boolean | undefined;
|
|
122
186
|
repoRef?: string | null | undefined;
|
|
187
|
+
defaultRef?: string | null | undefined;
|
|
188
|
+
visibility?: "default" | "advanced" | undefined;
|
|
189
|
+
setupCommand?: string | null | undefined;
|
|
190
|
+
cleanupCommand?: string | null | undefined;
|
|
191
|
+
remoteProvider?: string | null | undefined;
|
|
192
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
123
193
|
}>;
|
|
124
194
|
export type UpdateProjectWorkspace = z.infer<typeof updateProjectWorkspaceSchema>;
|
|
125
195
|
export declare const createProjectSchema: z.ZodObject<{
|
|
126
196
|
workspace: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
127
197
|
isPrimary: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
128
198
|
name: z.ZodOptional<z.ZodString>;
|
|
199
|
+
sourceType: z.ZodOptional<z.ZodEnum<["local_path", "git_repo", "remote_managed", "non_git_path"]>>;
|
|
129
200
|
cwd: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
130
201
|
repoUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
131
202
|
repoRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
203
|
+
defaultRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
204
|
+
visibility: z.ZodOptional<z.ZodEnum<["default", "advanced"]>>;
|
|
205
|
+
setupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
206
|
+
cleanupCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
207
|
+
remoteProvider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
208
|
+
remoteWorkspaceRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
209
|
+
sharedWorkspaceKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
132
210
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
133
211
|
}, "strip", z.ZodTypeAny, {
|
|
134
212
|
isPrimary: boolean;
|
|
135
213
|
name?: string | undefined;
|
|
136
214
|
metadata?: Record<string, unknown> | null | undefined;
|
|
215
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
137
216
|
cwd?: string | null | undefined;
|
|
138
217
|
repoUrl?: string | null | undefined;
|
|
218
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
139
219
|
repoRef?: string | null | undefined;
|
|
220
|
+
defaultRef?: string | null | undefined;
|
|
221
|
+
visibility?: "default" | "advanced" | undefined;
|
|
222
|
+
setupCommand?: string | null | undefined;
|
|
223
|
+
cleanupCommand?: string | null | undefined;
|
|
224
|
+
remoteProvider?: string | null | undefined;
|
|
225
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
140
226
|
}, {
|
|
141
227
|
name?: string | undefined;
|
|
142
228
|
metadata?: Record<string, unknown> | null | undefined;
|
|
143
|
-
|
|
229
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
144
230
|
cwd?: string | null | undefined;
|
|
145
231
|
repoUrl?: string | null | undefined;
|
|
232
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
233
|
+
isPrimary?: boolean | undefined;
|
|
146
234
|
repoRef?: string | null | undefined;
|
|
235
|
+
defaultRef?: string | null | undefined;
|
|
236
|
+
visibility?: "default" | "advanced" | undefined;
|
|
237
|
+
setupCommand?: string | null | undefined;
|
|
238
|
+
cleanupCommand?: string | null | undefined;
|
|
239
|
+
remoteProvider?: string | null | undefined;
|
|
240
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
147
241
|
}>, {
|
|
148
242
|
isPrimary: boolean;
|
|
149
243
|
name?: string | undefined;
|
|
150
244
|
metadata?: Record<string, unknown> | null | undefined;
|
|
245
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
151
246
|
cwd?: string | null | undefined;
|
|
152
247
|
repoUrl?: string | null | undefined;
|
|
248
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
153
249
|
repoRef?: string | null | undefined;
|
|
250
|
+
defaultRef?: string | null | undefined;
|
|
251
|
+
visibility?: "default" | "advanced" | undefined;
|
|
252
|
+
setupCommand?: string | null | undefined;
|
|
253
|
+
cleanupCommand?: string | null | undefined;
|
|
254
|
+
remoteProvider?: string | null | undefined;
|
|
255
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
154
256
|
}, {
|
|
155
257
|
name?: string | undefined;
|
|
156
258
|
metadata?: Record<string, unknown> | null | undefined;
|
|
157
|
-
|
|
259
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
158
260
|
cwd?: string | null | undefined;
|
|
159
261
|
repoUrl?: string | null | undefined;
|
|
262
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
263
|
+
isPrimary?: boolean | undefined;
|
|
160
264
|
repoRef?: string | null | undefined;
|
|
265
|
+
defaultRef?: string | null | undefined;
|
|
266
|
+
visibility?: "default" | "advanced" | undefined;
|
|
267
|
+
setupCommand?: string | null | undefined;
|
|
268
|
+
cleanupCommand?: string | null | undefined;
|
|
269
|
+
remoteProvider?: string | null | undefined;
|
|
270
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
161
271
|
}>>;
|
|
162
272
|
/** @deprecated Use goalIds instead */
|
|
163
273
|
goalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -170,24 +280,25 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
170
280
|
color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
171
281
|
executionWorkspacePolicy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
172
282
|
enabled: z.ZodBoolean;
|
|
173
|
-
defaultMode: z.ZodOptional<z.ZodEnum<["
|
|
283
|
+
defaultMode: z.ZodOptional<z.ZodEnum<["shared_workspace", "isolated_workspace", "operator_branch", "adapter_default"]>>;
|
|
174
284
|
allowIssueOverride: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
defaultProjectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
175
286
|
workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
176
|
-
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree"]>>;
|
|
287
|
+
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
|
|
177
288
|
baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
178
289
|
branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
179
290
|
worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
180
291
|
provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
181
292
|
teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
293
|
}, "strict", z.ZodTypeAny, {
|
|
183
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
294
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
184
295
|
baseRef?: string | null | undefined;
|
|
185
296
|
branchTemplate?: string | null | undefined;
|
|
186
297
|
worktreeParentDir?: string | null | undefined;
|
|
187
298
|
provisionCommand?: string | null | undefined;
|
|
188
299
|
teardownCommand?: string | null | undefined;
|
|
189
300
|
}, {
|
|
190
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
301
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
191
302
|
baseRef?: string | null | undefined;
|
|
192
303
|
branchTemplate?: string | null | undefined;
|
|
193
304
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -197,13 +308,15 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
197
308
|
workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
198
309
|
branchPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
199
310
|
pullRequestPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
311
|
+
runtimePolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
200
312
|
cleanupPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
201
313
|
}, "strict", z.ZodTypeAny, {
|
|
202
314
|
enabled: boolean;
|
|
203
|
-
defaultMode?: "
|
|
315
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
204
316
|
allowIssueOverride?: boolean | undefined;
|
|
317
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
205
318
|
workspaceStrategy?: {
|
|
206
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
319
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
207
320
|
baseRef?: string | null | undefined;
|
|
208
321
|
branchTemplate?: string | null | undefined;
|
|
209
322
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -213,13 +326,15 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
213
326
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
214
327
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
215
328
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
329
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
216
330
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
217
331
|
}, {
|
|
218
332
|
enabled: boolean;
|
|
219
|
-
defaultMode?: "
|
|
333
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
220
334
|
allowIssueOverride?: boolean | undefined;
|
|
335
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
221
336
|
workspaceStrategy?: {
|
|
222
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
337
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
223
338
|
baseRef?: string | null | undefined;
|
|
224
339
|
branchTemplate?: string | null | undefined;
|
|
225
340
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -229,21 +344,30 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
229
344
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
230
345
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
231
346
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
347
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
232
348
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
233
349
|
}>>>;
|
|
234
350
|
archivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
351
|
}, "strip", z.ZodTypeAny, {
|
|
236
352
|
status: "backlog" | "in_progress" | "cancelled" | "planned" | "completed";
|
|
237
353
|
name: string;
|
|
238
|
-
description?: string | null | undefined;
|
|
239
354
|
workspace?: {
|
|
240
355
|
isPrimary: boolean;
|
|
241
356
|
name?: string | undefined;
|
|
242
357
|
metadata?: Record<string, unknown> | null | undefined;
|
|
358
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
243
359
|
cwd?: string | null | undefined;
|
|
244
360
|
repoUrl?: string | null | undefined;
|
|
361
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
245
362
|
repoRef?: string | null | undefined;
|
|
363
|
+
defaultRef?: string | null | undefined;
|
|
364
|
+
visibility?: "default" | "advanced" | undefined;
|
|
365
|
+
setupCommand?: string | null | undefined;
|
|
366
|
+
cleanupCommand?: string | null | undefined;
|
|
367
|
+
remoteProvider?: string | null | undefined;
|
|
368
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
246
369
|
} | undefined;
|
|
370
|
+
description?: string | null | undefined;
|
|
247
371
|
goalId?: string | null | undefined;
|
|
248
372
|
goalIds?: string[] | undefined;
|
|
249
373
|
leadAgentId?: string | null | undefined;
|
|
@@ -251,10 +375,11 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
251
375
|
color?: string | null | undefined;
|
|
252
376
|
executionWorkspacePolicy?: {
|
|
253
377
|
enabled: boolean;
|
|
254
|
-
defaultMode?: "
|
|
378
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
255
379
|
allowIssueOverride?: boolean | undefined;
|
|
380
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
256
381
|
workspaceStrategy?: {
|
|
257
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
382
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
258
383
|
baseRef?: string | null | undefined;
|
|
259
384
|
branchTemplate?: string | null | undefined;
|
|
260
385
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -264,21 +389,30 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
264
389
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
265
390
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
266
391
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
392
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
267
393
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
268
394
|
} | null | undefined;
|
|
269
395
|
archivedAt?: string | null | undefined;
|
|
270
396
|
}, {
|
|
271
397
|
name: string;
|
|
272
|
-
status?: "backlog" | "in_progress" | "cancelled" | "planned" | "completed" | undefined;
|
|
273
|
-
description?: string | null | undefined;
|
|
274
398
|
workspace?: {
|
|
275
399
|
name?: string | undefined;
|
|
276
400
|
metadata?: Record<string, unknown> | null | undefined;
|
|
277
|
-
|
|
401
|
+
sourceType?: "local_path" | "git_repo" | "remote_managed" | "non_git_path" | undefined;
|
|
278
402
|
cwd?: string | null | undefined;
|
|
279
403
|
repoUrl?: string | null | undefined;
|
|
404
|
+
remoteWorkspaceRef?: string | null | undefined;
|
|
405
|
+
isPrimary?: boolean | undefined;
|
|
280
406
|
repoRef?: string | null | undefined;
|
|
407
|
+
defaultRef?: string | null | undefined;
|
|
408
|
+
visibility?: "default" | "advanced" | undefined;
|
|
409
|
+
setupCommand?: string | null | undefined;
|
|
410
|
+
cleanupCommand?: string | null | undefined;
|
|
411
|
+
remoteProvider?: string | null | undefined;
|
|
412
|
+
sharedWorkspaceKey?: string | null | undefined;
|
|
281
413
|
} | undefined;
|
|
414
|
+
status?: "backlog" | "in_progress" | "cancelled" | "planned" | "completed" | undefined;
|
|
415
|
+
description?: string | null | undefined;
|
|
282
416
|
goalId?: string | null | undefined;
|
|
283
417
|
goalIds?: string[] | undefined;
|
|
284
418
|
leadAgentId?: string | null | undefined;
|
|
@@ -286,10 +420,11 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
286
420
|
color?: string | null | undefined;
|
|
287
421
|
executionWorkspacePolicy?: {
|
|
288
422
|
enabled: boolean;
|
|
289
|
-
defaultMode?: "
|
|
423
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
290
424
|
allowIssueOverride?: boolean | undefined;
|
|
425
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
291
426
|
workspaceStrategy?: {
|
|
292
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
427
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
293
428
|
baseRef?: string | null | undefined;
|
|
294
429
|
branchTemplate?: string | null | undefined;
|
|
295
430
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -299,6 +434,7 @@ export declare const createProjectSchema: z.ZodObject<{
|
|
|
299
434
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
300
435
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
301
436
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
437
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
302
438
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
303
439
|
} | null | undefined;
|
|
304
440
|
archivedAt?: string | null | undefined;
|
|
@@ -315,24 +451,25 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
315
451
|
color: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
316
452
|
executionWorkspacePolicy: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
317
453
|
enabled: z.ZodBoolean;
|
|
318
|
-
defaultMode: z.ZodOptional<z.ZodEnum<["
|
|
454
|
+
defaultMode: z.ZodOptional<z.ZodEnum<["shared_workspace", "isolated_workspace", "operator_branch", "adapter_default"]>>;
|
|
319
455
|
allowIssueOverride: z.ZodOptional<z.ZodBoolean>;
|
|
456
|
+
defaultProjectWorkspaceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
320
457
|
workspaceStrategy: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
321
|
-
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree"]>>;
|
|
458
|
+
type: z.ZodOptional<z.ZodEnum<["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]>>;
|
|
322
459
|
baseRef: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
460
|
branchTemplate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
324
461
|
worktreeParentDir: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
325
462
|
provisionCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
326
463
|
teardownCommand: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
327
464
|
}, "strict", z.ZodTypeAny, {
|
|
328
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
465
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
329
466
|
baseRef?: string | null | undefined;
|
|
330
467
|
branchTemplate?: string | null | undefined;
|
|
331
468
|
worktreeParentDir?: string | null | undefined;
|
|
332
469
|
provisionCommand?: string | null | undefined;
|
|
333
470
|
teardownCommand?: string | null | undefined;
|
|
334
471
|
}, {
|
|
335
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
472
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
336
473
|
baseRef?: string | null | undefined;
|
|
337
474
|
branchTemplate?: string | null | undefined;
|
|
338
475
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -342,13 +479,15 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
342
479
|
workspaceRuntime: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
343
480
|
branchPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
344
481
|
pullRequestPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
482
|
+
runtimePolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
345
483
|
cleanupPolicy: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
346
484
|
}, "strict", z.ZodTypeAny, {
|
|
347
485
|
enabled: boolean;
|
|
348
|
-
defaultMode?: "
|
|
486
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
349
487
|
allowIssueOverride?: boolean | undefined;
|
|
488
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
350
489
|
workspaceStrategy?: {
|
|
351
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
490
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
352
491
|
baseRef?: string | null | undefined;
|
|
353
492
|
branchTemplate?: string | null | undefined;
|
|
354
493
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -358,13 +497,15 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
358
497
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
359
498
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
360
499
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
500
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
361
501
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
362
502
|
}, {
|
|
363
503
|
enabled: boolean;
|
|
364
|
-
defaultMode?: "
|
|
504
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
365
505
|
allowIssueOverride?: boolean | undefined;
|
|
506
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
366
507
|
workspaceStrategy?: {
|
|
367
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
508
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
368
509
|
baseRef?: string | null | undefined;
|
|
369
510
|
branchTemplate?: string | null | undefined;
|
|
370
511
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -374,6 +515,7 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
374
515
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
375
516
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
376
517
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
518
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
377
519
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
378
520
|
}>>>>;
|
|
379
521
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -388,10 +530,11 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
388
530
|
color?: string | null | undefined;
|
|
389
531
|
executionWorkspacePolicy?: {
|
|
390
532
|
enabled: boolean;
|
|
391
|
-
defaultMode?: "
|
|
533
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
392
534
|
allowIssueOverride?: boolean | undefined;
|
|
535
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
393
536
|
workspaceStrategy?: {
|
|
394
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
537
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
395
538
|
baseRef?: string | null | undefined;
|
|
396
539
|
branchTemplate?: string | null | undefined;
|
|
397
540
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -401,6 +544,7 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
401
544
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
402
545
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
403
546
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
547
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
404
548
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
405
549
|
} | null | undefined;
|
|
406
550
|
archivedAt?: string | null | undefined;
|
|
@@ -415,10 +559,11 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
415
559
|
color?: string | null | undefined;
|
|
416
560
|
executionWorkspacePolicy?: {
|
|
417
561
|
enabled: boolean;
|
|
418
|
-
defaultMode?: "
|
|
562
|
+
defaultMode?: "shared_workspace" | "isolated_workspace" | "operator_branch" | "adapter_default" | undefined;
|
|
419
563
|
allowIssueOverride?: boolean | undefined;
|
|
564
|
+
defaultProjectWorkspaceId?: string | null | undefined;
|
|
420
565
|
workspaceStrategy?: {
|
|
421
|
-
type?: "project_primary" | "git_worktree" | undefined;
|
|
566
|
+
type?: "project_primary" | "git_worktree" | "adapter_managed" | "cloud_sandbox" | undefined;
|
|
422
567
|
baseRef?: string | null | undefined;
|
|
423
568
|
branchTemplate?: string | null | undefined;
|
|
424
569
|
worktreeParentDir?: string | null | undefined;
|
|
@@ -428,6 +573,7 @@ export declare const updateProjectSchema: z.ZodObject<{
|
|
|
428
573
|
workspaceRuntime?: Record<string, unknown> | null | undefined;
|
|
429
574
|
branchPolicy?: Record<string, unknown> | null | undefined;
|
|
430
575
|
pullRequestPolicy?: Record<string, unknown> | null | undefined;
|
|
576
|
+
runtimePolicy?: Record<string, unknown> | null | undefined;
|
|
431
577
|
cleanupPolicy?: Record<string, unknown> | null | undefined;
|
|
432
578
|
} | null | undefined;
|
|
433
579
|
archivedAt?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/validators/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/validators/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAavC,CAAC;AA+CZ,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGD,CAAC;AAEzC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEb,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAgBlF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAb9B,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAC;AAErE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { PROJECT_STATUSES } from "../constants.js";
|
|
3
3
|
const executionWorkspaceStrategySchema = z
|
|
4
4
|
.object({
|
|
5
|
-
type: z.enum(["project_primary", "git_worktree"]).optional(),
|
|
5
|
+
type: z.enum(["project_primary", "git_worktree", "adapter_managed", "cloud_sandbox"]).optional(),
|
|
6
6
|
baseRef: z.string().optional().nullable(),
|
|
7
7
|
branchTemplate: z.string().optional().nullable(),
|
|
8
8
|
worktreeParentDir: z.string().optional().nullable(),
|
|
@@ -13,28 +13,49 @@ const executionWorkspaceStrategySchema = z
|
|
|
13
13
|
export const projectExecutionWorkspacePolicySchema = z
|
|
14
14
|
.object({
|
|
15
15
|
enabled: z.boolean(),
|
|
16
|
-
defaultMode: z.enum(["
|
|
16
|
+
defaultMode: z.enum(["shared_workspace", "isolated_workspace", "operator_branch", "adapter_default"]).optional(),
|
|
17
17
|
allowIssueOverride: z.boolean().optional(),
|
|
18
|
+
defaultProjectWorkspaceId: z.string().uuid().optional().nullable(),
|
|
18
19
|
workspaceStrategy: executionWorkspaceStrategySchema.optional().nullable(),
|
|
19
20
|
workspaceRuntime: z.record(z.unknown()).optional().nullable(),
|
|
20
21
|
branchPolicy: z.record(z.unknown()).optional().nullable(),
|
|
21
22
|
pullRequestPolicy: z.record(z.unknown()).optional().nullable(),
|
|
23
|
+
runtimePolicy: z.record(z.unknown()).optional().nullable(),
|
|
22
24
|
cleanupPolicy: z.record(z.unknown()).optional().nullable(),
|
|
23
25
|
})
|
|
24
26
|
.strict();
|
|
27
|
+
const projectWorkspaceSourceTypeSchema = z.enum(["local_path", "git_repo", "remote_managed", "non_git_path"]);
|
|
28
|
+
const projectWorkspaceVisibilitySchema = z.enum(["default", "advanced"]);
|
|
25
29
|
const projectWorkspaceFields = {
|
|
26
30
|
name: z.string().min(1).optional(),
|
|
31
|
+
sourceType: projectWorkspaceSourceTypeSchema.optional(),
|
|
27
32
|
cwd: z.string().min(1).optional().nullable(),
|
|
28
33
|
repoUrl: z.string().url().optional().nullable(),
|
|
29
34
|
repoRef: z.string().optional().nullable(),
|
|
35
|
+
defaultRef: z.string().optional().nullable(),
|
|
36
|
+
visibility: projectWorkspaceVisibilitySchema.optional(),
|
|
37
|
+
setupCommand: z.string().optional().nullable(),
|
|
38
|
+
cleanupCommand: z.string().optional().nullable(),
|
|
39
|
+
remoteProvider: z.string().optional().nullable(),
|
|
40
|
+
remoteWorkspaceRef: z.string().optional().nullable(),
|
|
41
|
+
sharedWorkspaceKey: z.string().optional().nullable(),
|
|
30
42
|
metadata: z.record(z.unknown()).optional().nullable(),
|
|
31
43
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
isPrimary: z.boolean().optional().default(false),
|
|
35
|
-
}).superRefine((value, ctx) => {
|
|
44
|
+
function validateProjectWorkspace(value, ctx) {
|
|
45
|
+
const sourceType = value.sourceType ?? "local_path";
|
|
36
46
|
const hasCwd = typeof value.cwd === "string" && value.cwd.trim().length > 0;
|
|
37
47
|
const hasRepo = typeof value.repoUrl === "string" && value.repoUrl.trim().length > 0;
|
|
48
|
+
const hasRemoteRef = typeof value.remoteWorkspaceRef === "string" && value.remoteWorkspaceRef.trim().length > 0;
|
|
49
|
+
if (sourceType === "remote_managed") {
|
|
50
|
+
if (!hasRemoteRef && !hasRepo) {
|
|
51
|
+
ctx.addIssue({
|
|
52
|
+
code: z.ZodIssueCode.custom,
|
|
53
|
+
message: "Remote-managed workspace requires remoteWorkspaceRef or repoUrl.",
|
|
54
|
+
path: ["remoteWorkspaceRef"],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
38
59
|
if (!hasCwd && !hasRepo) {
|
|
39
60
|
ctx.addIssue({
|
|
40
61
|
code: z.ZodIssueCode.custom,
|
|
@@ -42,7 +63,11 @@ export const createProjectWorkspaceSchema = z.object({
|
|
|
42
63
|
path: ["cwd"],
|
|
43
64
|
});
|
|
44
65
|
}
|
|
45
|
-
}
|
|
66
|
+
}
|
|
67
|
+
export const createProjectWorkspaceSchema = z.object({
|
|
68
|
+
...projectWorkspaceFields,
|
|
69
|
+
isPrimary: z.boolean().optional().default(false),
|
|
70
|
+
}).superRefine(validateProjectWorkspace);
|
|
46
71
|
export const updateProjectWorkspaceSchema = z.object({
|
|
47
72
|
...projectWorkspaceFields,
|
|
48
73
|
isPrimary: z.boolean().optional(),
|