@task-shepherd/agent 1.0.5 → 1.0.7
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/cli/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.json +5 -5
- package/package.json +3 -2
- package/shared/dist/index.d.ts +15 -0
- package/shared/dist/index.js +12 -0
- package/shared/dist/mcp-client/client.d.ts +18 -0
- package/shared/dist/mcp-client/client.js +49 -0
- package/shared/dist/mcp-client/index.d.ts +7 -0
- package/shared/dist/mcp-client/index.js +7 -0
- package/shared/dist/mcp-client/types.d.ts +822 -0
- package/shared/dist/mcp-client/types.js +193 -0
- package/shared/dist/schema/index.d.ts +189 -0
- package/shared/dist/schema/index.js +142 -0
- package/shared/dist/schema/mcp-mappings.d.ts +50 -0
- package/shared/dist/schema/mcp-mappings.js +563 -0
- package/shared/dist/schema/validation.d.ts +91 -0
- package/shared/dist/schema/validation.js +282 -0
- package/shared/dist/work-queue/index.d.ts +7 -0
- package/shared/dist/work-queue/index.js +7 -0
- package/shared/dist/work-queue/types.d.ts +147 -0
- package/shared/dist/work-queue/types.js +4 -0
- package/shared/dist/work-queue/validation.d.ts +24 -0
- package/shared/dist/work-queue/validation.js +160 -0
- package/shared/dist/workspace/constants.d.ts +148 -0
- package/shared/dist/workspace/constants.js +432 -0
- package/shared/dist/workspace/index.d.ts +10 -0
- package/shared/dist/workspace/index.js +10 -0
- package/shared/dist/workspace/types.d.ts +477 -0
- package/shared/dist/workspace/types.js +9 -0
- package/shared/dist/workspace/utils.d.ts +79 -0
- package/shared/dist/workspace/utils.js +334 -0
- package/shared/dist/workspace/validation.d.ts +1312 -0
- package/shared/dist/workspace/validation.js +467 -0
- package/shared/graphql/generated-internal.ts +3629 -0
- package/shared/graphql/generated-public.ts +773 -0
- package/shared/graphql/generated.d.ts +7456 -0
- package/shared/graphql/generated.js +11799 -0
- package/shared/graphql/generated.ts +27569 -0
- package/shared/graphql/generated.ts.backup +16531 -0
- package/shared/graphql/generated.ts.working +4828 -0
- package/shared/graphql/introspection-internal.json +15845 -0
- package/shared/graphql/introspection-public.json +9658 -0
- package/shared/graphql/introspection.json +44263 -0
- package/shared/graphql/operations/ai-service.graphql +131 -0
- package/shared/graphql/operations/ai-work-queue.graphql +31 -0
- package/shared/graphql/operations/analytics.graphql +283 -0
- package/shared/graphql/operations/analytics.ts +3 -0
- package/shared/graphql/operations/api-keys.graphql +126 -0
- package/shared/graphql/operations/attachments.graphql +53 -0
- package/shared/graphql/operations/attachments.ts +39 -0
- package/shared/graphql/operations/audit.graphql +46 -0
- package/shared/graphql/operations/auth.graphql +83 -0
- package/shared/graphql/operations/claude-usage.graphql +178 -0
- package/shared/graphql/operations/comments.graphql +4 -0
- package/shared/graphql/operations/dashboard.graphql +29 -0
- package/shared/graphql/operations/development-plans.graphql +408 -0
- package/shared/graphql/operations/early-access.graphql.disabled +21 -0
- package/shared/graphql/operations/errors.graphql.disabled +83 -0
- package/shared/graphql/operations/internal-api.graphql +931 -0
- package/shared/graphql/operations/notifications.graphql +4 -0
- package/shared/graphql/operations/organization-invites.graphql.disabled +32 -0
- package/shared/graphql/operations/performance.graphql +4 -0
- package/shared/graphql/operations/project-reviews.graphql +610 -0
- package/shared/graphql/operations/projects.graphql +98 -0
- package/shared/graphql/operations/settings.graphql +4 -0
- package/shared/graphql/operations/stories.graphql +113 -0
- package/shared/graphql/operations/subscriptions.graphql +235 -0
- package/shared/graphql/operations/subscriptions.graphql.disabled +96 -0
- package/shared/graphql/operations/tasks.graphql +257 -0
- package/shared/graphql/operations/team.graphql +111 -0
- package/shared/graphql/operations/team.ts +226 -0
- package/shared/graphql/operations/time-tracking.graphql.disabled +96 -0
- package/shared/graphql/operations/work-queue.graphql +210 -0
- package/shared/graphql/operations/work-queue.graphql.disabled +474 -0
- package/shared/graphql/operations/workspace.graphql +146 -0
- package/shared/graphql/schema-internal.graphql +1085 -0
- package/shared/graphql/schema-public.graphql +709 -0
- package/shared/graphql/schema.graphql +3473 -0
- package/shared/package.json +23 -0
- package/web/README.md +68 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# AI Work Queue Management Operations
|
|
2
|
+
|
|
3
|
+
# Query all work queue items (no filtering arguments in current schema)
|
|
4
|
+
query GetWorkQueueItems {
|
|
5
|
+
aiWorkQueue {
|
|
6
|
+
id
|
|
7
|
+
status
|
|
8
|
+
priority
|
|
9
|
+
aiWorkerId
|
|
10
|
+
workType
|
|
11
|
+
queuePosition
|
|
12
|
+
estimatedDuration
|
|
13
|
+
actualDuration
|
|
14
|
+
elapsedDuration
|
|
15
|
+
progressPercentage
|
|
16
|
+
currentStep
|
|
17
|
+
hasError
|
|
18
|
+
lastError
|
|
19
|
+
attemptCount
|
|
20
|
+
isQueued
|
|
21
|
+
isClaimed
|
|
22
|
+
isInProgress
|
|
23
|
+
isCompleted
|
|
24
|
+
isFailed
|
|
25
|
+
createdAt
|
|
26
|
+
updatedAt
|
|
27
|
+
startedAt
|
|
28
|
+
completedAt
|
|
29
|
+
claimedAt
|
|
30
|
+
story {
|
|
31
|
+
id
|
|
32
|
+
title
|
|
33
|
+
project {
|
|
34
|
+
id
|
|
35
|
+
name
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
project {
|
|
39
|
+
id
|
|
40
|
+
name
|
|
41
|
+
}
|
|
42
|
+
queuedByUser {
|
|
43
|
+
id
|
|
44
|
+
fullName
|
|
45
|
+
email
|
|
46
|
+
}
|
|
47
|
+
metadata {
|
|
48
|
+
workType
|
|
49
|
+
aiWorkerId
|
|
50
|
+
attemptCount
|
|
51
|
+
maxRetryAttempts
|
|
52
|
+
progress {
|
|
53
|
+
percentage
|
|
54
|
+
currentStep
|
|
55
|
+
totalSteps
|
|
56
|
+
completedSteps
|
|
57
|
+
}
|
|
58
|
+
lastError
|
|
59
|
+
projectId
|
|
60
|
+
reviewId
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
# Work Queue Metrics Query
|
|
66
|
+
query GetWorkQueueMetrics {
|
|
67
|
+
workQueueMetrics {
|
|
68
|
+
total
|
|
69
|
+
queued
|
|
70
|
+
claimed
|
|
71
|
+
inProgress
|
|
72
|
+
completed
|
|
73
|
+
failed
|
|
74
|
+
cancelled
|
|
75
|
+
averageWaitTimeSeconds
|
|
76
|
+
averageProcessingTimeSeconds
|
|
77
|
+
oldestQueuedItem {
|
|
78
|
+
id
|
|
79
|
+
createdAt
|
|
80
|
+
priority
|
|
81
|
+
}
|
|
82
|
+
activeWorkers
|
|
83
|
+
utilizationPercentage
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
# Queue AI Work Mutation
|
|
88
|
+
mutation QueueAIWork($input: QueueAIWorkInput!) {
|
|
89
|
+
queueAIWork(input: $input) {
|
|
90
|
+
id
|
|
91
|
+
status
|
|
92
|
+
priority
|
|
93
|
+
queuePosition
|
|
94
|
+
createdAt
|
|
95
|
+
project {
|
|
96
|
+
id
|
|
97
|
+
name
|
|
98
|
+
}
|
|
99
|
+
story {
|
|
100
|
+
id
|
|
101
|
+
title
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
# Requeue AI Work Item Mutation
|
|
107
|
+
mutation RequeueAIWorkItem($id: String!) {
|
|
108
|
+
requeueAIWorkItem(id: $id) {
|
|
109
|
+
id
|
|
110
|
+
status
|
|
111
|
+
aiWorkerId
|
|
112
|
+
queuePosition
|
|
113
|
+
progressPercentage
|
|
114
|
+
currentStep
|
|
115
|
+
hasError
|
|
116
|
+
lastError
|
|
117
|
+
attemptCount
|
|
118
|
+
metadata {
|
|
119
|
+
workType
|
|
120
|
+
attemptCount
|
|
121
|
+
lastError
|
|
122
|
+
projectId
|
|
123
|
+
reviewId
|
|
124
|
+
}
|
|
125
|
+
updatedAt
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
# Cancel AI Work Item Mutation
|
|
130
|
+
mutation CancelAIWorkItem($id: String!) {
|
|
131
|
+
cancelAIWorkItem(id: $id) {
|
|
132
|
+
id
|
|
133
|
+
status
|
|
134
|
+
aiWorkerId
|
|
135
|
+
completedAt
|
|
136
|
+
metadata {
|
|
137
|
+
workType
|
|
138
|
+
cancelledAt
|
|
139
|
+
cancelledBy
|
|
140
|
+
}
|
|
141
|
+
updatedAt
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
# AI Work Updated Subscription
|
|
146
|
+
subscription AIWorkUpdated($projectId: String) {
|
|
147
|
+
aiWorkUpdated(projectId: $projectId) {
|
|
148
|
+
id
|
|
149
|
+
status
|
|
150
|
+
priority
|
|
151
|
+
aiWorkerId
|
|
152
|
+
queuePosition
|
|
153
|
+
progressPercentage
|
|
154
|
+
currentStep
|
|
155
|
+
hasError
|
|
156
|
+
lastError
|
|
157
|
+
startedAt
|
|
158
|
+
completedAt
|
|
159
|
+
updatedAt
|
|
160
|
+
metadata {
|
|
161
|
+
workType
|
|
162
|
+
attemptCount
|
|
163
|
+
lastError
|
|
164
|
+
projectId
|
|
165
|
+
reviewId
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
# DISABLED: applicationProgressUpdated subscription doesn't exist in backend
|
|
171
|
+
# Backend has aiWorkProgressUpdated with different signature
|
|
172
|
+
# subscription WorkQueueProgressUpdated($reviewId: String!) {
|
|
173
|
+
# applicationProgressUpdated(reviewId: $reviewId) {
|
|
174
|
+
# percentage
|
|
175
|
+
# currentStep
|
|
176
|
+
# stage
|
|
177
|
+
# filesModified
|
|
178
|
+
# estimatedCompletion
|
|
179
|
+
# requirementsProgressJson
|
|
180
|
+
# }
|
|
181
|
+
# }
|
|
182
|
+
|
|
183
|
+
# AI Work Progress subscription (actual backend subscription)
|
|
184
|
+
subscription AIWorkProgressUpdated($projectId: String, $workerId: String, $assignmentId: String) {
|
|
185
|
+
aiWorkProgressUpdated(projectId: $projectId, workerId: $workerId, assignmentId: $assignmentId) {
|
|
186
|
+
workerId
|
|
187
|
+
assignmentId
|
|
188
|
+
stage
|
|
189
|
+
progressPercentage
|
|
190
|
+
currentStep
|
|
191
|
+
message
|
|
192
|
+
updatedAt
|
|
193
|
+
estimatedCompletion
|
|
194
|
+
metadata
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
# Work Queue System Health Query (uses workQueueMetrics)
|
|
199
|
+
query GetWorkQueueSystemHealth {
|
|
200
|
+
workQueueMetrics {
|
|
201
|
+
total
|
|
202
|
+
queued
|
|
203
|
+
inProgress
|
|
204
|
+
completed
|
|
205
|
+
failed
|
|
206
|
+
averageWaitTimeSeconds
|
|
207
|
+
activeWorkers
|
|
208
|
+
utilizationPercentage
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# AI Work Queue Management Operations
|
|
2
|
+
|
|
3
|
+
# Query all work queue items with filtering (management version)
|
|
4
|
+
query GetWorkQueueItems(
|
|
5
|
+
$search: AIWorkQueueSearchInput
|
|
6
|
+
) {
|
|
7
|
+
aiWorkQueue(search: $search) {
|
|
8
|
+
id
|
|
9
|
+
status
|
|
10
|
+
priority
|
|
11
|
+
aiWorkerId
|
|
12
|
+
workType
|
|
13
|
+
queuePosition
|
|
14
|
+
estimatedDuration
|
|
15
|
+
actualDuration
|
|
16
|
+
elapsedDuration
|
|
17
|
+
progressPercentage
|
|
18
|
+
currentStep
|
|
19
|
+
hasError
|
|
20
|
+
lastError
|
|
21
|
+
attemptCount
|
|
22
|
+
isQueued
|
|
23
|
+
isClaimed
|
|
24
|
+
isInProgress
|
|
25
|
+
isCompleted
|
|
26
|
+
isFailed
|
|
27
|
+
createdAt
|
|
28
|
+
startedAt
|
|
29
|
+
completedAt
|
|
30
|
+
story {
|
|
31
|
+
id
|
|
32
|
+
title
|
|
33
|
+
}
|
|
34
|
+
project {
|
|
35
|
+
id
|
|
36
|
+
name
|
|
37
|
+
}
|
|
38
|
+
queuedByUser {
|
|
39
|
+
id
|
|
40
|
+
fullName
|
|
41
|
+
email
|
|
42
|
+
}
|
|
43
|
+
metadata {
|
|
44
|
+
workType
|
|
45
|
+
aiWorkerId
|
|
46
|
+
attemptCount
|
|
47
|
+
maxRetryAttempts
|
|
48
|
+
progress {
|
|
49
|
+
percentage
|
|
50
|
+
currentStep
|
|
51
|
+
totalSteps
|
|
52
|
+
completedSteps
|
|
53
|
+
}
|
|
54
|
+
lastError
|
|
55
|
+
projectId
|
|
56
|
+
reviewId
|
|
57
|
+
requiredWorkspaces
|
|
58
|
+
requiredCapabilities
|
|
59
|
+
agentAvailabilityStatus {
|
|
60
|
+
status
|
|
61
|
+
reason
|
|
62
|
+
lastChecked
|
|
63
|
+
compatibleAgentCount
|
|
64
|
+
activeCompatibleAgentCount
|
|
65
|
+
}
|
|
66
|
+
retryInfo {
|
|
67
|
+
nextRetryAt
|
|
68
|
+
retryReason
|
|
69
|
+
retryDelay
|
|
70
|
+
failureClassification
|
|
71
|
+
errorHistory {
|
|
72
|
+
attemptNumber
|
|
73
|
+
error
|
|
74
|
+
timestamp
|
|
75
|
+
failureType
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
output {
|
|
79
|
+
summary
|
|
80
|
+
artifacts {
|
|
81
|
+
type
|
|
82
|
+
name
|
|
83
|
+
location
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
# Query work queue statistics
|
|
91
|
+
query GetWorkQueueMetrics {
|
|
92
|
+
workQueueMetrics
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
# Queue new AI work
|
|
96
|
+
mutation QueueAIWork($input: QueueAIWorkInput!) {
|
|
97
|
+
queueAIWork(input: $input) {
|
|
98
|
+
id
|
|
99
|
+
status
|
|
100
|
+
priority
|
|
101
|
+
queuePosition
|
|
102
|
+
createdAt
|
|
103
|
+
project {
|
|
104
|
+
id
|
|
105
|
+
name
|
|
106
|
+
}
|
|
107
|
+
story {
|
|
108
|
+
id
|
|
109
|
+
title
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
# Remove queued work
|
|
115
|
+
mutation RemoveAIWork($id: String!) {
|
|
116
|
+
removeAIWork(id: $id)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
# Retry failed work
|
|
120
|
+
mutation RetryAIWork($id: String!) {
|
|
121
|
+
retryAIWork(id: $id) {
|
|
122
|
+
id
|
|
123
|
+
status
|
|
124
|
+
priority
|
|
125
|
+
aiWorkerId
|
|
126
|
+
queuePosition
|
|
127
|
+
progressPercentage
|
|
128
|
+
currentStep
|
|
129
|
+
hasError
|
|
130
|
+
lastError
|
|
131
|
+
metadata {
|
|
132
|
+
workType
|
|
133
|
+
aiWorkerId
|
|
134
|
+
attemptCount
|
|
135
|
+
maxRetryAttempts
|
|
136
|
+
progress {
|
|
137
|
+
percentage
|
|
138
|
+
currentStep
|
|
139
|
+
totalSteps
|
|
140
|
+
completedSteps
|
|
141
|
+
}
|
|
142
|
+
lastError
|
|
143
|
+
projectId
|
|
144
|
+
reviewId
|
|
145
|
+
requiredWorkspaces
|
|
146
|
+
requiredCapabilities
|
|
147
|
+
agentAvailabilityStatus {
|
|
148
|
+
status
|
|
149
|
+
reason
|
|
150
|
+
lastChecked
|
|
151
|
+
compatibleAgentCount
|
|
152
|
+
activeCompatibleAgentCount
|
|
153
|
+
}
|
|
154
|
+
retryInfo {
|
|
155
|
+
nextRetryAt
|
|
156
|
+
retryReason
|
|
157
|
+
retryDelay
|
|
158
|
+
failureClassification
|
|
159
|
+
errorHistory {
|
|
160
|
+
attemptNumber
|
|
161
|
+
error
|
|
162
|
+
timestamp
|
|
163
|
+
failureType
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
output {
|
|
167
|
+
summary
|
|
168
|
+
artifacts {
|
|
169
|
+
type
|
|
170
|
+
name
|
|
171
|
+
location
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
updatedAt
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
# Update AI work
|
|
180
|
+
mutation UpdateAIWork($input: UpdateAIWorkInput!) {
|
|
181
|
+
updateAIWork(input: $input) {
|
|
182
|
+
id
|
|
183
|
+
status
|
|
184
|
+
priority
|
|
185
|
+
metadata {
|
|
186
|
+
workType
|
|
187
|
+
aiWorkerId
|
|
188
|
+
attemptCount
|
|
189
|
+
maxRetryAttempts
|
|
190
|
+
progress {
|
|
191
|
+
percentage
|
|
192
|
+
currentStep
|
|
193
|
+
totalSteps
|
|
194
|
+
completedSteps
|
|
195
|
+
}
|
|
196
|
+
lastError
|
|
197
|
+
projectId
|
|
198
|
+
reviewId
|
|
199
|
+
requiredWorkspaces
|
|
200
|
+
requiredCapabilities
|
|
201
|
+
agentAvailabilityStatus {
|
|
202
|
+
status
|
|
203
|
+
reason
|
|
204
|
+
lastChecked
|
|
205
|
+
compatibleAgentCount
|
|
206
|
+
activeCompatibleAgentCount
|
|
207
|
+
}
|
|
208
|
+
retryInfo {
|
|
209
|
+
nextRetryAt
|
|
210
|
+
retryReason
|
|
211
|
+
retryDelay
|
|
212
|
+
failureClassification
|
|
213
|
+
errorHistory {
|
|
214
|
+
attemptNumber
|
|
215
|
+
error
|
|
216
|
+
timestamp
|
|
217
|
+
failureType
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
output {
|
|
221
|
+
summary
|
|
222
|
+
artifacts {
|
|
223
|
+
type
|
|
224
|
+
name
|
|
225
|
+
location
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
updatedAt
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
# Reclaim work for a worker
|
|
234
|
+
mutation ReclaimWork($workerId: String!) {
|
|
235
|
+
reclaimWork(workerId: $workerId) {
|
|
236
|
+
id
|
|
237
|
+
status
|
|
238
|
+
aiWorkerId
|
|
239
|
+
metadata {
|
|
240
|
+
workType
|
|
241
|
+
aiWorkerId
|
|
242
|
+
attemptCount
|
|
243
|
+
maxRetryAttempts
|
|
244
|
+
progress {
|
|
245
|
+
percentage
|
|
246
|
+
currentStep
|
|
247
|
+
totalSteps
|
|
248
|
+
completedSteps
|
|
249
|
+
}
|
|
250
|
+
lastError
|
|
251
|
+
projectId
|
|
252
|
+
reviewId
|
|
253
|
+
requiredWorkspaces
|
|
254
|
+
requiredCapabilities
|
|
255
|
+
agentAvailabilityStatus {
|
|
256
|
+
status
|
|
257
|
+
reason
|
|
258
|
+
lastChecked
|
|
259
|
+
compatibleAgentCount
|
|
260
|
+
activeCompatibleAgentCount
|
|
261
|
+
}
|
|
262
|
+
retryInfo {
|
|
263
|
+
nextRetryAt
|
|
264
|
+
retryReason
|
|
265
|
+
retryDelay
|
|
266
|
+
failureClassification
|
|
267
|
+
errorHistory {
|
|
268
|
+
attemptNumber
|
|
269
|
+
error
|
|
270
|
+
timestamp
|
|
271
|
+
failureType
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
output {
|
|
275
|
+
summary
|
|
276
|
+
artifacts {
|
|
277
|
+
type
|
|
278
|
+
name
|
|
279
|
+
location
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
# Release/unclaim a work item
|
|
287
|
+
mutation ReleaseWorkItem($input: WorkItemReleaseInput!) {
|
|
288
|
+
releaseWorkItem(input: $input)
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
# Requeue a work item (clears claims and resets errors)
|
|
292
|
+
mutation RequeueAIWorkItem($id: String!) {
|
|
293
|
+
requeueAIWorkItem(id: $id) {
|
|
294
|
+
id
|
|
295
|
+
status
|
|
296
|
+
aiWorkerId
|
|
297
|
+
queuePosition
|
|
298
|
+
progressPercentage
|
|
299
|
+
currentStep
|
|
300
|
+
hasError
|
|
301
|
+
lastError
|
|
302
|
+
attemptCount
|
|
303
|
+
metadata {
|
|
304
|
+
workType
|
|
305
|
+
aiWorkerId
|
|
306
|
+
attemptCount
|
|
307
|
+
maxRetryAttempts
|
|
308
|
+
progress {
|
|
309
|
+
percentage
|
|
310
|
+
currentStep
|
|
311
|
+
totalSteps
|
|
312
|
+
completedSteps
|
|
313
|
+
}
|
|
314
|
+
lastError
|
|
315
|
+
projectId
|
|
316
|
+
reviewId
|
|
317
|
+
requiredWorkspaces
|
|
318
|
+
requiredCapabilities
|
|
319
|
+
agentAvailabilityStatus {
|
|
320
|
+
status
|
|
321
|
+
reason
|
|
322
|
+
lastChecked
|
|
323
|
+
compatibleAgentCount
|
|
324
|
+
activeCompatibleAgentCount
|
|
325
|
+
}
|
|
326
|
+
retryInfo {
|
|
327
|
+
nextRetryAt
|
|
328
|
+
retryReason
|
|
329
|
+
retryDelay
|
|
330
|
+
failureClassification
|
|
331
|
+
errorHistory {
|
|
332
|
+
attemptNumber
|
|
333
|
+
error
|
|
334
|
+
timestamp
|
|
335
|
+
failureType
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
output {
|
|
339
|
+
summary
|
|
340
|
+
artifacts {
|
|
341
|
+
type
|
|
342
|
+
name
|
|
343
|
+
location
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
updatedAt
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
# Cancel a work item (marks as cancelled)
|
|
352
|
+
mutation CancelAIWorkItem($id: String!) {
|
|
353
|
+
cancelAIWorkItem(id: $id) {
|
|
354
|
+
id
|
|
355
|
+
status
|
|
356
|
+
aiWorkerId
|
|
357
|
+
completedAt
|
|
358
|
+
metadata {
|
|
359
|
+
workType
|
|
360
|
+
aiWorkerId
|
|
361
|
+
attemptCount
|
|
362
|
+
maxRetryAttempts
|
|
363
|
+
progress {
|
|
364
|
+
percentage
|
|
365
|
+
currentStep
|
|
366
|
+
totalSteps
|
|
367
|
+
completedSteps
|
|
368
|
+
}
|
|
369
|
+
lastError
|
|
370
|
+
projectId
|
|
371
|
+
reviewId
|
|
372
|
+
requiredWorkspaces
|
|
373
|
+
requiredCapabilities
|
|
374
|
+
cancelledAt
|
|
375
|
+
cancelledBy
|
|
376
|
+
agentAvailabilityStatus {
|
|
377
|
+
status
|
|
378
|
+
reason
|
|
379
|
+
lastChecked
|
|
380
|
+
compatibleAgentCount
|
|
381
|
+
activeCompatibleAgentCount
|
|
382
|
+
}
|
|
383
|
+
retryInfo {
|
|
384
|
+
nextRetryAt
|
|
385
|
+
retryReason
|
|
386
|
+
retryDelay
|
|
387
|
+
failureClassification
|
|
388
|
+
errorHistory {
|
|
389
|
+
attemptNumber
|
|
390
|
+
error
|
|
391
|
+
timestamp
|
|
392
|
+
failureType
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
output {
|
|
396
|
+
summary
|
|
397
|
+
artifacts {
|
|
398
|
+
type
|
|
399
|
+
name
|
|
400
|
+
location
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
updatedAt
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
# Real-time subscription for AI work updates
|
|
409
|
+
subscription WorkQueueAIWorkUpdated {
|
|
410
|
+
aiWorkUpdated {
|
|
411
|
+
id
|
|
412
|
+
status
|
|
413
|
+
priority
|
|
414
|
+
aiWorkerId
|
|
415
|
+
startedAt
|
|
416
|
+
completedAt
|
|
417
|
+
metadata {
|
|
418
|
+
workType
|
|
419
|
+
aiWorkerId
|
|
420
|
+
attemptCount
|
|
421
|
+
maxRetryAttempts
|
|
422
|
+
progress {
|
|
423
|
+
percentage
|
|
424
|
+
currentStep
|
|
425
|
+
totalSteps
|
|
426
|
+
completedSteps
|
|
427
|
+
}
|
|
428
|
+
lastError
|
|
429
|
+
projectId
|
|
430
|
+
reviewId
|
|
431
|
+
requiredWorkspaces
|
|
432
|
+
requiredCapabilities
|
|
433
|
+
agentAvailabilityStatus {
|
|
434
|
+
status
|
|
435
|
+
reason
|
|
436
|
+
lastChecked
|
|
437
|
+
compatibleAgentCount
|
|
438
|
+
activeCompatibleAgentCount
|
|
439
|
+
}
|
|
440
|
+
retryInfo {
|
|
441
|
+
nextRetryAt
|
|
442
|
+
retryReason
|
|
443
|
+
retryDelay
|
|
444
|
+
failureClassification
|
|
445
|
+
errorHistory {
|
|
446
|
+
attemptNumber
|
|
447
|
+
error
|
|
448
|
+
timestamp
|
|
449
|
+
failureType
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
output {
|
|
453
|
+
summary
|
|
454
|
+
artifacts {
|
|
455
|
+
type
|
|
456
|
+
name
|
|
457
|
+
location
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
# Subscription for work queue progress updates
|
|
465
|
+
subscription WorkQueueProgressUpdated($reviewId: String!) {
|
|
466
|
+
applicationProgressUpdated(reviewId: $reviewId) {
|
|
467
|
+
percentage
|
|
468
|
+
currentStep
|
|
469
|
+
stage
|
|
470
|
+
filesModified
|
|
471
|
+
estimatedCompletion
|
|
472
|
+
requirementsProgressJson
|
|
473
|
+
}
|
|
474
|
+
}
|