@wardby/cli 0.4.1 → 0.5.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.
- package/.env.example +8 -1
- package/README.md +3 -1
- package/deploy/local/docker-compose.quickstart-coding.yml +27 -0
- package/dist/claude-coding-worker/driver.d.ts +2 -0
- package/dist/claude-coding-worker/driver.js +19 -3
- package/dist/claude-coding-worker/sdk.js +1 -1
- package/dist/cli.js +41 -22
- package/dist/coding/continuation-wording.d.ts +10 -0
- package/dist/coding/continuation-wording.js +13 -0
- package/dist/coding/docker-preflight.d.ts +12 -0
- package/dist/coding/docker-preflight.js +40 -0
- package/dist/coding/local-git.d.ts +22 -0
- package/dist/coding/local-git.js +102 -0
- package/dist/coding/local-repo-status.d.ts +7 -0
- package/dist/coding/local-repo-status.js +56 -0
- package/dist/coding/local-repo.d.ts +17 -0
- package/dist/coding/local-repo.js +65 -0
- package/dist/coding/observability.d.ts +1 -1
- package/dist/coding/observability.js +1 -0
- package/dist/coding/profile.d.ts +6 -0
- package/dist/coding/profile.js +13 -4
- package/dist/coding/protocol.d.ts +32 -7
- package/dist/coding/protocol.js +66 -4
- package/dist/coding-worker/artifact.d.ts +1 -0
- package/dist/coding-worker/errors.js +2 -0
- package/dist/config/providers.d.ts +13 -0
- package/dist/config/providers.js +21 -9
- package/dist/core/attribution.d.ts +13 -0
- package/dist/core/attribution.js +30 -0
- package/dist/core/budget-groups.d.ts +3 -1
- package/dist/core/budget-groups.js +53 -5
- package/dist/core/ci-context.d.ts +8 -0
- package/dist/core/ci-context.js +59 -0
- package/dist/core/delegation-siblings.d.ts +22 -0
- package/dist/core/delegation-siblings.js +40 -0
- package/dist/core/dispatch.d.ts +28 -4
- package/dist/core/dispatch.js +57 -15
- package/dist/core/engine-native.d.ts +16 -0
- package/dist/core/engine-native.js +49 -2
- package/dist/core/host-events.d.ts +25 -2
- package/dist/core/host-events.js +361 -19
- package/dist/core/host-status.d.ts +8 -3
- package/dist/core/host-status.js +38 -7
- package/dist/core/issue-events.d.ts +2 -6
- package/dist/core/issue-events.js +13 -19
- package/dist/core/pull-request-state-sync.d.ts +17 -0
- package/dist/core/pull-request-state-sync.js +53 -0
- package/dist/core/reconciler.d.ts +10 -1
- package/dist/core/reconciler.js +15 -2
- package/dist/core/related-pull-requests.d.ts +95 -0
- package/dist/core/related-pull-requests.js +338 -0
- package/dist/core/repo-access.d.ts +5 -1
- package/dist/core/repo-access.js +17 -1
- package/dist/core/review-fix-ledger.d.ts +20 -0
- package/dist/core/review-fix-ledger.js +41 -0
- package/dist/core/review-fix.d.ts +60 -0
- package/dist/core/review-fix.js +155 -0
- package/dist/core/review-host-tools.d.ts +13 -2
- package/dist/core/review-host-tools.js +72 -11
- package/dist/core/runner.d.ts +2 -2
- package/dist/core/runner.js +379 -184
- package/dist/core/serial-gate.d.ts +11 -0
- package/dist/core/serial-gate.js +19 -0
- package/dist/core/timing.d.ts +7 -0
- package/dist/core/timing.js +7 -0
- package/dist/generated/prisma/browser.d.ts +23 -0
- package/dist/generated/prisma/client.d.ts +23 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +22 -0
- package/dist/generated/prisma/internal/class.d.ts +33 -0
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +274 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +47 -2
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +48 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +47 -2
- package/dist/generated/prisma/models/Agent.d.ts +422 -1
- package/dist/generated/prisma/models/AgentRepository.d.ts +120 -2
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +42 -1
- package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
- package/dist/generated/prisma/models/DeferredReview.d.ts +1336 -0
- package/dist/generated/prisma/models/DeferredReview.js +1 -0
- package/dist/generated/prisma/models/LocalPullRequest.d.ts +1384 -0
- package/dist/generated/prisma/models/LocalPullRequest.js +1 -0
- package/dist/generated/prisma/models/LocalReview.d.ts +1315 -0
- package/dist/generated/prisma/models/LocalReview.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +223 -0
- package/dist/generated/prisma/models/RunHostCheck.d.ts +148 -1
- package/dist/generated/prisma/models.d.ts +3 -0
- package/dist/help-index.json +486 -37
- package/dist/import/neutral-schema.d.ts +2 -2
- package/dist/mcp/auth/access.d.ts +3 -1
- package/dist/mcp/auth/host-account-cli.js +2 -2
- package/dist/mcp/auth/repo-authorization.d.ts +6 -7
- package/dist/mcp/auth/repo-authorization.js +21 -0
- package/dist/mcp/index.js +4 -1
- package/dist/mcp/tools/agents.js +46 -4
- package/dist/mcp/tools/host-accounts.js +2 -2
- package/dist/mcp/tools/repositories.js +71 -12
- package/dist/mcp/tools/runs.js +23 -0
- package/dist/mcp/tools/trigger.js +153 -24
- package/dist/providers/engine/types.d.ts +11 -0
- package/dist/providers/executor/composition.js +12 -7
- package/dist/providers/executor/container.d.ts +40 -3
- package/dist/providers/executor/container.js +140 -9
- package/dist/providers/executor/types.d.ts +1 -1
- package/dist/providers/jobs/fake-kubernetes-api.d.ts +3 -2
- package/dist/providers/jobs/fake-kubernetes-api.js +3 -0
- package/dist/providers/jobs/kubernetes-api.d.ts +3 -1
- package/dist/providers/jobs/kubernetes-client.d.ts +2 -1
- package/dist/providers/jobs/kubernetes-client.js +3 -0
- package/dist/providers/jobs/kubernetes-isolation.d.ts +7 -0
- package/dist/providers/jobs/kubernetes-isolation.js +8 -3
- package/dist/providers/jobs/kubernetes-preflight.d.ts +8 -0
- package/dist/providers/jobs/kubernetes-preflight.js +7 -0
- package/dist/providers/jobs/kubernetes-quota.d.ts +31 -0
- package/dist/providers/jobs/kubernetes-quota.js +110 -0
- package/dist/providers/jobs/kubernetes.d.ts +9 -0
- package/dist/providers/jobs/kubernetes.js +50 -0
- package/dist/providers/jobs/types.d.ts +7 -0
- package/dist/providers/review-host/ci.d.ts +7 -0
- package/dist/providers/review-host/ci.js +20 -0
- package/dist/providers/review-host/github-events.d.ts +7 -0
- package/dist/providers/review-host/github-events.js +31 -7
- package/dist/providers/review-host/github.d.ts +19 -2
- package/dist/providers/review-host/github.js +145 -2
- package/dist/providers/review-host/index.d.ts +8 -2
- package/dist/providers/review-host/index.js +14 -3
- package/dist/providers/review-host/local.d.ts +72 -0
- package/dist/providers/review-host/local.js +434 -0
- package/dist/providers/review-host/types.d.ts +65 -3
- package/dist/providers/review-host/types.js +5 -3
- package/dist/providers/vcs/git.d.ts +10 -20
- package/dist/providers/vcs/git.js +71 -127
- package/dist/providers/vcs/github-remote.d.ts +67 -0
- package/dist/providers/vcs/github-remote.js +201 -0
- package/dist/providers/vcs/github.d.ts +81 -0
- package/dist/providers/vcs/github.js +203 -6
- package/dist/providers/vcs/index.d.ts +16 -1
- package/dist/providers/vcs/index.js +43 -15
- package/dist/providers/vcs/local-remote.d.ts +44 -0
- package/dist/providers/vcs/local-remote.js +108 -0
- package/dist/providers/vcs/remote.d.ts +58 -0
- package/dist/providers/vcs/remote.js +1 -0
- package/dist/providers/vcs/routing.d.ts +33 -0
- package/dist/providers/vcs/routing.js +52 -0
- package/dist/providers/vcs/types.d.ts +12 -1
- package/dist/quickstart/coding-db.d.ts +11 -0
- package/dist/quickstart/coding-db.js +75 -0
- package/dist/quickstart/coding-doctor.d.ts +13 -0
- package/dist/quickstart/coding-doctor.js +88 -0
- package/dist/quickstart/coding-images.d.ts +15 -0
- package/dist/quickstart/coding-images.js +79 -0
- package/dist/quickstart/coding-seed.d.ts +63 -0
- package/dist/quickstart/coding-seed.js +85 -0
- package/dist/quickstart/coding.d.ts +66 -0
- package/dist/quickstart/coding.js +430 -0
- package/dist/quickstart/images.d.ts +19 -0
- package/dist/quickstart/images.js +63 -0
- package/dist/quickstart/index.js +61 -12
- package/dist/quickstart/starter-services.d.ts +45 -0
- package/dist/quickstart/starter-services.js +186 -0
- package/dist/quickstart-images.json +1 -0
- package/dist/serve.js +14 -1
- package/dist/viewer/api-schema.d.ts +176 -0
- package/dist/viewer/api-schema.js +27 -2
- package/dist/viewer/graph.d.ts +7 -2
- package/dist/viewer/graph.js +25 -11
- package/dist/viewer/http.d.ts +7 -1
- package/dist/viewer/http.js +8 -3
- package/dist/viewer/infra.d.ts +2 -0
- package/dist/viewer/infra.js +23 -0
- package/dist/viewer/run-detail.d.ts +2 -1
- package/dist/viewer/run-detail.js +2 -2
- package/docs/agent-recipes.md +127 -5
- package/docs/code-review-agents.md +293 -38
- package/docs/coding-agent-setup.md +141 -2
- package/docs/coding-packages.md +21 -0
- package/docs/coding-services.md +3 -0
- package/docs/coding-worker-isolation.md +56 -20
- package/docs/getting-started-gke.md +24 -0
- package/docs/getting-started.md +196 -10
- package/docs/jira-agents.md +26 -5
- package/docs/security-deployment.md +9 -0
- package/docs/viewer-api.md +21 -2
- package/help/admin-viewer.md +11 -1
- package/help/agent-recipes.md +30 -4
- package/help/builder-agent.md +4 -0
- package/help/code-review-agents.md +82 -2
- package/help/coding-packages.md +12 -1
- package/help/coding-services.md +4 -0
- package/help/cost-attribution.md +3 -1
- package/help/creating-agents.md +3 -0
- package/help/deploy-gke.md +2 -1
- package/help/errors/coding-provider-not-configured.md +60 -0
- package/help/errors/coding-turn-limit.md +25 -0
- package/help/errors/continuation-closed.md +75 -0
- package/help/errors/local-branch-conflict.md +37 -0
- package/help/errors/local-path-invalid.md +30 -0
- package/help/errors/local-ref-invalid.md +36 -0
- package/help/errors/local-ref-not-found.md +41 -0
- package/help/errors/local-repo-not-allowed.md +46 -0
- package/help/errors/local-repo-not-found.md +39 -0
- package/help/errors/model-unavailable.md +7 -6
- package/help/errors/vcs-github-not-configured.md +34 -0
- package/help/getting-started.md +28 -0
- package/help/github.md +22 -5
- package/help/jira.md +9 -2
- package/help/local-repositories.md +182 -0
- package/help/related-pull-requests.md +89 -0
- package/help/review-fix-rounds.md +69 -0
- package/help/troubleshooting/budgets.md +11 -0
- package/help/troubleshooting/coding-workers.md +22 -0
- package/help/troubleshooting/repository-access.md +5 -0
- package/package.json +3 -2
- package/prisma/migrations/20261004100000_delegations_and_coding_turns/migration.sql +12 -0
- package/prisma/migrations/20261005000000_review_fix_rounds/migration.sql +5 -0
- package/prisma/migrations/20261006000000_parallel_delegations/migration.sql +6 -0
- package/prisma/migrations/20261007000000_ci_rereview/migration.sql +4 -0
- package/prisma/migrations/20261008000000_review_after_ci/migration.sql +33 -0
- package/prisma/migrations/20261009000001_coding_run_local_branch/migration.sql +7 -0
- package/prisma/migrations/20261009000002_local_review/migration.sql +50 -0
- package/prisma/schema.prisma +98 -1
|
@@ -9,9 +9,17 @@ import type * as Prisma from "../internal/prismaNamespace.js";
|
|
|
9
9
|
export type AgentRepositoryModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentRepositoryPayload>;
|
|
10
10
|
export type AggregateAgentRepository = {
|
|
11
11
|
_count: AgentRepositoryCountAggregateOutputType | null;
|
|
12
|
+
_avg: AgentRepositoryAvgAggregateOutputType | null;
|
|
13
|
+
_sum: AgentRepositorySumAggregateOutputType | null;
|
|
12
14
|
_min: AgentRepositoryMinAggregateOutputType | null;
|
|
13
15
|
_max: AgentRepositoryMaxAggregateOutputType | null;
|
|
14
16
|
};
|
|
17
|
+
export type AgentRepositoryAvgAggregateOutputType = {
|
|
18
|
+
reviewFixMaxRounds: number | null;
|
|
19
|
+
};
|
|
20
|
+
export type AgentRepositorySumAggregateOutputType = {
|
|
21
|
+
reviewFixMaxRounds: number | null;
|
|
22
|
+
};
|
|
15
23
|
export type AgentRepositoryMinAggregateOutputType = {
|
|
16
24
|
id: string | null;
|
|
17
25
|
agentId: string | null;
|
|
@@ -19,6 +27,8 @@ export type AgentRepositoryMinAggregateOutputType = {
|
|
|
19
27
|
repository: string | null;
|
|
20
28
|
access: string | null;
|
|
21
29
|
checkName: string | null;
|
|
30
|
+
reviewFixMaxRounds: number | null;
|
|
31
|
+
waitForCi: boolean | null;
|
|
22
32
|
createdAt: Date | null;
|
|
23
33
|
authorizedVia: string | null;
|
|
24
34
|
authorizedById: string | null;
|
|
@@ -31,6 +41,8 @@ export type AgentRepositoryMaxAggregateOutputType = {
|
|
|
31
41
|
repository: string | null;
|
|
32
42
|
access: string | null;
|
|
33
43
|
checkName: string | null;
|
|
44
|
+
reviewFixMaxRounds: number | null;
|
|
45
|
+
waitForCi: boolean | null;
|
|
34
46
|
createdAt: Date | null;
|
|
35
47
|
authorizedVia: string | null;
|
|
36
48
|
authorizedById: string | null;
|
|
@@ -44,12 +56,20 @@ export type AgentRepositoryCountAggregateOutputType = {
|
|
|
44
56
|
access: number;
|
|
45
57
|
triggers: number;
|
|
46
58
|
checkName: number;
|
|
59
|
+
reviewFixMaxRounds: number;
|
|
60
|
+
waitForCi: number;
|
|
47
61
|
createdAt: number;
|
|
48
62
|
authorizedVia: number;
|
|
49
63
|
authorizedById: number;
|
|
50
64
|
authorizedAt: number;
|
|
51
65
|
_all: number;
|
|
52
66
|
};
|
|
67
|
+
export type AgentRepositoryAvgAggregateInputType = {
|
|
68
|
+
reviewFixMaxRounds?: true;
|
|
69
|
+
};
|
|
70
|
+
export type AgentRepositorySumAggregateInputType = {
|
|
71
|
+
reviewFixMaxRounds?: true;
|
|
72
|
+
};
|
|
53
73
|
export type AgentRepositoryMinAggregateInputType = {
|
|
54
74
|
id?: true;
|
|
55
75
|
agentId?: true;
|
|
@@ -57,6 +77,8 @@ export type AgentRepositoryMinAggregateInputType = {
|
|
|
57
77
|
repository?: true;
|
|
58
78
|
access?: true;
|
|
59
79
|
checkName?: true;
|
|
80
|
+
reviewFixMaxRounds?: true;
|
|
81
|
+
waitForCi?: true;
|
|
60
82
|
createdAt?: true;
|
|
61
83
|
authorizedVia?: true;
|
|
62
84
|
authorizedById?: true;
|
|
@@ -69,6 +91,8 @@ export type AgentRepositoryMaxAggregateInputType = {
|
|
|
69
91
|
repository?: true;
|
|
70
92
|
access?: true;
|
|
71
93
|
checkName?: true;
|
|
94
|
+
reviewFixMaxRounds?: true;
|
|
95
|
+
waitForCi?: true;
|
|
72
96
|
createdAt?: true;
|
|
73
97
|
authorizedVia?: true;
|
|
74
98
|
authorizedById?: true;
|
|
@@ -82,6 +106,8 @@ export type AgentRepositoryCountAggregateInputType = {
|
|
|
82
106
|
access?: true;
|
|
83
107
|
triggers?: true;
|
|
84
108
|
checkName?: true;
|
|
109
|
+
reviewFixMaxRounds?: true;
|
|
110
|
+
waitForCi?: true;
|
|
85
111
|
createdAt?: true;
|
|
86
112
|
authorizedVia?: true;
|
|
87
113
|
authorizedById?: true;
|
|
@@ -123,6 +149,18 @@ export type AgentRepositoryAggregateArgs<ExtArgs extends runtime.Types.Extension
|
|
|
123
149
|
* Count returned AgentRepositories
|
|
124
150
|
**/
|
|
125
151
|
_count?: true | AgentRepositoryCountAggregateInputType;
|
|
152
|
+
/**
|
|
153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
154
|
+
*
|
|
155
|
+
* Select which fields to average
|
|
156
|
+
**/
|
|
157
|
+
_avg?: AgentRepositoryAvgAggregateInputType;
|
|
158
|
+
/**
|
|
159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
160
|
+
*
|
|
161
|
+
* Select which fields to sum
|
|
162
|
+
**/
|
|
163
|
+
_sum?: AgentRepositorySumAggregateInputType;
|
|
126
164
|
/**
|
|
127
165
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
128
166
|
*
|
|
@@ -147,6 +185,8 @@ export type AgentRepositoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.
|
|
|
147
185
|
take?: number;
|
|
148
186
|
skip?: number;
|
|
149
187
|
_count?: AgentRepositoryCountAggregateInputType | true;
|
|
188
|
+
_avg?: AgentRepositoryAvgAggregateInputType;
|
|
189
|
+
_sum?: AgentRepositorySumAggregateInputType;
|
|
150
190
|
_min?: AgentRepositoryMinAggregateInputType;
|
|
151
191
|
_max?: AgentRepositoryMaxAggregateInputType;
|
|
152
192
|
};
|
|
@@ -158,11 +198,15 @@ export type AgentRepositoryGroupByOutputType = {
|
|
|
158
198
|
access: string;
|
|
159
199
|
triggers: string[];
|
|
160
200
|
checkName: string | null;
|
|
201
|
+
reviewFixMaxRounds: number | null;
|
|
202
|
+
waitForCi: boolean;
|
|
161
203
|
createdAt: Date;
|
|
162
204
|
authorizedVia: string | null;
|
|
163
205
|
authorizedById: string | null;
|
|
164
206
|
authorizedAt: Date | null;
|
|
165
207
|
_count: AgentRepositoryCountAggregateOutputType | null;
|
|
208
|
+
_avg: AgentRepositoryAvgAggregateOutputType | null;
|
|
209
|
+
_sum: AgentRepositorySumAggregateOutputType | null;
|
|
166
210
|
_min: AgentRepositoryMinAggregateOutputType | null;
|
|
167
211
|
_max: AgentRepositoryMaxAggregateOutputType | null;
|
|
168
212
|
};
|
|
@@ -180,6 +224,8 @@ export type AgentRepositoryWhereInput = {
|
|
|
180
224
|
access?: Prisma.StringFilter<"AgentRepository"> | string;
|
|
181
225
|
triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
|
|
182
226
|
checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
227
|
+
reviewFixMaxRounds?: Prisma.IntNullableFilter<"AgentRepository"> | number | null;
|
|
228
|
+
waitForCi?: Prisma.BoolFilter<"AgentRepository"> | boolean;
|
|
183
229
|
createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
|
|
184
230
|
authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
185
231
|
authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
@@ -194,6 +240,8 @@ export type AgentRepositoryOrderByWithRelationInput = {
|
|
|
194
240
|
access?: Prisma.SortOrder;
|
|
195
241
|
triggers?: Prisma.SortOrder;
|
|
196
242
|
checkName?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
243
|
+
reviewFixMaxRounds?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
244
|
+
waitForCi?: Prisma.SortOrder;
|
|
197
245
|
createdAt?: Prisma.SortOrder;
|
|
198
246
|
authorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
199
247
|
authorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -213,6 +261,8 @@ export type AgentRepositoryWhereUniqueInput = Prisma.AtLeast<{
|
|
|
213
261
|
access?: Prisma.StringFilter<"AgentRepository"> | string;
|
|
214
262
|
triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
|
|
215
263
|
checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
264
|
+
reviewFixMaxRounds?: Prisma.IntNullableFilter<"AgentRepository"> | number | null;
|
|
265
|
+
waitForCi?: Prisma.BoolFilter<"AgentRepository"> | boolean;
|
|
216
266
|
createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
|
|
217
267
|
authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
218
268
|
authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
@@ -227,13 +277,17 @@ export type AgentRepositoryOrderByWithAggregationInput = {
|
|
|
227
277
|
access?: Prisma.SortOrder;
|
|
228
278
|
triggers?: Prisma.SortOrder;
|
|
229
279
|
checkName?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
280
|
+
reviewFixMaxRounds?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
281
|
+
waitForCi?: Prisma.SortOrder;
|
|
230
282
|
createdAt?: Prisma.SortOrder;
|
|
231
283
|
authorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
232
284
|
authorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
233
285
|
authorizedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
234
286
|
_count?: Prisma.AgentRepositoryCountOrderByAggregateInput;
|
|
287
|
+
_avg?: Prisma.AgentRepositoryAvgOrderByAggregateInput;
|
|
235
288
|
_max?: Prisma.AgentRepositoryMaxOrderByAggregateInput;
|
|
236
289
|
_min?: Prisma.AgentRepositoryMinOrderByAggregateInput;
|
|
290
|
+
_sum?: Prisma.AgentRepositorySumOrderByAggregateInput;
|
|
237
291
|
};
|
|
238
292
|
export type AgentRepositoryScalarWhereWithAggregatesInput = {
|
|
239
293
|
AND?: Prisma.AgentRepositoryScalarWhereWithAggregatesInput | Prisma.AgentRepositoryScalarWhereWithAggregatesInput[];
|
|
@@ -246,6 +300,8 @@ export type AgentRepositoryScalarWhereWithAggregatesInput = {
|
|
|
246
300
|
access?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
|
|
247
301
|
triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
|
|
248
302
|
checkName?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
|
|
303
|
+
reviewFixMaxRounds?: Prisma.IntNullableWithAggregatesFilter<"AgentRepository"> | number | null;
|
|
304
|
+
waitForCi?: Prisma.BoolWithAggregatesFilter<"AgentRepository"> | boolean;
|
|
249
305
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentRepository"> | Date | string;
|
|
250
306
|
authorizedVia?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
|
|
251
307
|
authorizedById?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
|
|
@@ -258,6 +314,8 @@ export type AgentRepositoryCreateInput = {
|
|
|
258
314
|
access: string;
|
|
259
315
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
260
316
|
checkName?: string | null;
|
|
317
|
+
reviewFixMaxRounds?: number | null;
|
|
318
|
+
waitForCi?: boolean;
|
|
261
319
|
createdAt?: Date | string;
|
|
262
320
|
authorizedVia?: string | null;
|
|
263
321
|
authorizedById?: string | null;
|
|
@@ -272,6 +330,8 @@ export type AgentRepositoryUncheckedCreateInput = {
|
|
|
272
330
|
access: string;
|
|
273
331
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
274
332
|
checkName?: string | null;
|
|
333
|
+
reviewFixMaxRounds?: number | null;
|
|
334
|
+
waitForCi?: boolean;
|
|
275
335
|
createdAt?: Date | string;
|
|
276
336
|
authorizedVia?: string | null;
|
|
277
337
|
authorizedById?: string | null;
|
|
@@ -284,6 +344,8 @@ export type AgentRepositoryUpdateInput = {
|
|
|
284
344
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
285
345
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
286
346
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
347
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
348
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
287
349
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
288
350
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
289
351
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -298,6 +360,8 @@ export type AgentRepositoryUncheckedUpdateInput = {
|
|
|
298
360
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
299
361
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
300
362
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
363
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
364
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
301
365
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
302
366
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
303
367
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -311,6 +375,8 @@ export type AgentRepositoryCreateManyInput = {
|
|
|
311
375
|
access: string;
|
|
312
376
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
313
377
|
checkName?: string | null;
|
|
378
|
+
reviewFixMaxRounds?: number | null;
|
|
379
|
+
waitForCi?: boolean;
|
|
314
380
|
createdAt?: Date | string;
|
|
315
381
|
authorizedVia?: string | null;
|
|
316
382
|
authorizedById?: string | null;
|
|
@@ -323,6 +389,8 @@ export type AgentRepositoryUpdateManyMutationInput = {
|
|
|
323
389
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
324
390
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
325
391
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
392
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
393
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
326
394
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
327
395
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
328
396
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -336,6 +404,8 @@ export type AgentRepositoryUncheckedUpdateManyInput = {
|
|
|
336
404
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
337
405
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
338
406
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
407
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
408
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
339
409
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
340
410
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
341
411
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -367,11 +437,16 @@ export type AgentRepositoryCountOrderByAggregateInput = {
|
|
|
367
437
|
access?: Prisma.SortOrder;
|
|
368
438
|
triggers?: Prisma.SortOrder;
|
|
369
439
|
checkName?: Prisma.SortOrder;
|
|
440
|
+
reviewFixMaxRounds?: Prisma.SortOrder;
|
|
441
|
+
waitForCi?: Prisma.SortOrder;
|
|
370
442
|
createdAt?: Prisma.SortOrder;
|
|
371
443
|
authorizedVia?: Prisma.SortOrder;
|
|
372
444
|
authorizedById?: Prisma.SortOrder;
|
|
373
445
|
authorizedAt?: Prisma.SortOrder;
|
|
374
446
|
};
|
|
447
|
+
export type AgentRepositoryAvgOrderByAggregateInput = {
|
|
448
|
+
reviewFixMaxRounds?: Prisma.SortOrder;
|
|
449
|
+
};
|
|
375
450
|
export type AgentRepositoryMaxOrderByAggregateInput = {
|
|
376
451
|
id?: Prisma.SortOrder;
|
|
377
452
|
agentId?: Prisma.SortOrder;
|
|
@@ -379,6 +454,8 @@ export type AgentRepositoryMaxOrderByAggregateInput = {
|
|
|
379
454
|
repository?: Prisma.SortOrder;
|
|
380
455
|
access?: Prisma.SortOrder;
|
|
381
456
|
checkName?: Prisma.SortOrder;
|
|
457
|
+
reviewFixMaxRounds?: Prisma.SortOrder;
|
|
458
|
+
waitForCi?: Prisma.SortOrder;
|
|
382
459
|
createdAt?: Prisma.SortOrder;
|
|
383
460
|
authorizedVia?: Prisma.SortOrder;
|
|
384
461
|
authorizedById?: Prisma.SortOrder;
|
|
@@ -391,11 +468,16 @@ export type AgentRepositoryMinOrderByAggregateInput = {
|
|
|
391
468
|
repository?: Prisma.SortOrder;
|
|
392
469
|
access?: Prisma.SortOrder;
|
|
393
470
|
checkName?: Prisma.SortOrder;
|
|
471
|
+
reviewFixMaxRounds?: Prisma.SortOrder;
|
|
472
|
+
waitForCi?: Prisma.SortOrder;
|
|
394
473
|
createdAt?: Prisma.SortOrder;
|
|
395
474
|
authorizedVia?: Prisma.SortOrder;
|
|
396
475
|
authorizedById?: Prisma.SortOrder;
|
|
397
476
|
authorizedAt?: Prisma.SortOrder;
|
|
398
477
|
};
|
|
478
|
+
export type AgentRepositorySumOrderByAggregateInput = {
|
|
479
|
+
reviewFixMaxRounds?: Prisma.SortOrder;
|
|
480
|
+
};
|
|
399
481
|
export type AgentRepositoryCreateNestedManyWithoutAgentInput = {
|
|
400
482
|
create?: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput> | Prisma.AgentRepositoryCreateWithoutAgentInput[] | Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput[];
|
|
401
483
|
connectOrCreate?: Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput | Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput[];
|
|
@@ -448,6 +530,8 @@ export type AgentRepositoryCreateWithoutAgentInput = {
|
|
|
448
530
|
access: string;
|
|
449
531
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
450
532
|
checkName?: string | null;
|
|
533
|
+
reviewFixMaxRounds?: number | null;
|
|
534
|
+
waitForCi?: boolean;
|
|
451
535
|
createdAt?: Date | string;
|
|
452
536
|
authorizedVia?: string | null;
|
|
453
537
|
authorizedById?: string | null;
|
|
@@ -460,6 +544,8 @@ export type AgentRepositoryUncheckedCreateWithoutAgentInput = {
|
|
|
460
544
|
access: string;
|
|
461
545
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
462
546
|
checkName?: string | null;
|
|
547
|
+
reviewFixMaxRounds?: number | null;
|
|
548
|
+
waitForCi?: boolean;
|
|
463
549
|
createdAt?: Date | string;
|
|
464
550
|
authorizedVia?: string | null;
|
|
465
551
|
authorizedById?: string | null;
|
|
@@ -497,6 +583,8 @@ export type AgentRepositoryScalarWhereInput = {
|
|
|
497
583
|
access?: Prisma.StringFilter<"AgentRepository"> | string;
|
|
498
584
|
triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
|
|
499
585
|
checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
586
|
+
reviewFixMaxRounds?: Prisma.IntNullableFilter<"AgentRepository"> | number | null;
|
|
587
|
+
waitForCi?: Prisma.BoolFilter<"AgentRepository"> | boolean;
|
|
500
588
|
createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
|
|
501
589
|
authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
502
590
|
authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
|
|
@@ -509,6 +597,8 @@ export type AgentRepositoryCreateManyAgentInput = {
|
|
|
509
597
|
access: string;
|
|
510
598
|
triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
|
|
511
599
|
checkName?: string | null;
|
|
600
|
+
reviewFixMaxRounds?: number | null;
|
|
601
|
+
waitForCi?: boolean;
|
|
512
602
|
createdAt?: Date | string;
|
|
513
603
|
authorizedVia?: string | null;
|
|
514
604
|
authorizedById?: string | null;
|
|
@@ -521,6 +611,8 @@ export type AgentRepositoryUpdateWithoutAgentInput = {
|
|
|
521
611
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
522
612
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
523
613
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
614
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
615
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
524
616
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
525
617
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
526
618
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -533,6 +625,8 @@ export type AgentRepositoryUncheckedUpdateWithoutAgentInput = {
|
|
|
533
625
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
534
626
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
535
627
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
628
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
629
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
536
630
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
537
631
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
538
632
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -545,6 +639,8 @@ export type AgentRepositoryUncheckedUpdateManyWithoutAgentInput = {
|
|
|
545
639
|
access?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
546
640
|
triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
|
|
547
641
|
checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
642
|
+
reviewFixMaxRounds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
643
|
+
waitForCi?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
548
644
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
549
645
|
authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
550
646
|
authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -558,6 +654,8 @@ export type AgentRepositorySelect<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
558
654
|
access?: boolean;
|
|
559
655
|
triggers?: boolean;
|
|
560
656
|
checkName?: boolean;
|
|
657
|
+
reviewFixMaxRounds?: boolean;
|
|
658
|
+
waitForCi?: boolean;
|
|
561
659
|
createdAt?: boolean;
|
|
562
660
|
authorizedVia?: boolean;
|
|
563
661
|
authorizedById?: boolean;
|
|
@@ -572,6 +670,8 @@ export type AgentRepositorySelectCreateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
572
670
|
access?: boolean;
|
|
573
671
|
triggers?: boolean;
|
|
574
672
|
checkName?: boolean;
|
|
673
|
+
reviewFixMaxRounds?: boolean;
|
|
674
|
+
waitForCi?: boolean;
|
|
575
675
|
createdAt?: boolean;
|
|
576
676
|
authorizedVia?: boolean;
|
|
577
677
|
authorizedById?: boolean;
|
|
@@ -586,6 +686,8 @@ export type AgentRepositorySelectUpdateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
586
686
|
access?: boolean;
|
|
587
687
|
triggers?: boolean;
|
|
588
688
|
checkName?: boolean;
|
|
689
|
+
reviewFixMaxRounds?: boolean;
|
|
690
|
+
waitForCi?: boolean;
|
|
589
691
|
createdAt?: boolean;
|
|
590
692
|
authorizedVia?: boolean;
|
|
591
693
|
authorizedById?: boolean;
|
|
@@ -600,12 +702,14 @@ export type AgentRepositorySelectScalar = {
|
|
|
600
702
|
access?: boolean;
|
|
601
703
|
triggers?: boolean;
|
|
602
704
|
checkName?: boolean;
|
|
705
|
+
reviewFixMaxRounds?: boolean;
|
|
706
|
+
waitForCi?: boolean;
|
|
603
707
|
createdAt?: boolean;
|
|
604
708
|
authorizedVia?: boolean;
|
|
605
709
|
authorizedById?: boolean;
|
|
606
710
|
authorizedAt?: boolean;
|
|
607
711
|
};
|
|
608
|
-
export type AgentRepositoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "provider" | "repository" | "access" | "triggers" | "checkName" | "createdAt" | "authorizedVia" | "authorizedById" | "authorizedAt", ExtArgs["result"]["agentRepository"]>;
|
|
712
|
+
export type AgentRepositoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "provider" | "repository" | "access" | "triggers" | "checkName" | "reviewFixMaxRounds" | "waitForCi" | "createdAt" | "authorizedVia" | "authorizedById" | "authorizedAt", ExtArgs["result"]["agentRepository"]>;
|
|
609
713
|
export type AgentRepositoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
610
714
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
|
|
611
715
|
};
|
|
@@ -636,7 +740,7 @@ export type $AgentRepositoryPayload<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
636
740
|
*/
|
|
637
741
|
access: string;
|
|
638
742
|
/**
|
|
639
|
-
* Subset of "pull_request", "mention", "push".
|
|
743
|
+
* Subset of "pull_request", "mention", "push", "review_fix".
|
|
640
744
|
*/
|
|
641
745
|
triggers: string[];
|
|
642
746
|
/**
|
|
@@ -644,6 +748,18 @@ export type $AgentRepositoryPayload<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
644
748
|
* check. Unique per repository across all links (NULLs are distinct).
|
|
645
749
|
*/
|
|
646
750
|
checkName: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* Only with the "review_fix" trigger: how many automatic fix rounds a
|
|
753
|
+
* pull request gets before wardby stops. Null = the default (2).
|
|
754
|
+
*/
|
|
755
|
+
reviewFixMaxRounds: number | null;
|
|
756
|
+
/**
|
|
757
|
+
* Only with the "pull_request" trigger: holds this agent's review on a
|
|
758
|
+
* pushed head until that head's own CI finishes (see DeferredReview),
|
|
759
|
+
* instead of racing it. Default off: existing links review immediately,
|
|
760
|
+
* exactly as today.
|
|
761
|
+
*/
|
|
762
|
+
waitForCi: boolean;
|
|
647
763
|
createdAt: Date;
|
|
648
764
|
/**
|
|
649
765
|
* How this link was authorized: "host_permission" (the agent owner's
|
|
@@ -1019,6 +1135,8 @@ export interface AgentRepositoryFieldRefs {
|
|
|
1019
1135
|
readonly access: Prisma.FieldRef<"AgentRepository", 'String'>;
|
|
1020
1136
|
readonly triggers: Prisma.FieldRef<"AgentRepository", 'String[]'>;
|
|
1021
1137
|
readonly checkName: Prisma.FieldRef<"AgentRepository", 'String'>;
|
|
1138
|
+
readonly reviewFixMaxRounds: Prisma.FieldRef<"AgentRepository", 'Int'>;
|
|
1139
|
+
readonly waitForCi: Prisma.FieldRef<"AgentRepository", 'Boolean'>;
|
|
1022
1140
|
readonly createdAt: Prisma.FieldRef<"AgentRepository", 'DateTime'>;
|
|
1023
1141
|
readonly authorizedVia: Prisma.FieldRef<"AgentRepository", 'String'>;
|
|
1024
1142
|
readonly authorizedById: Prisma.FieldRef<"AgentRepository", 'String'>;
|