@aviaratech/ai-delivery 0.3.32 → 0.3.34
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/README.md +138 -6
- package/dist/cli.js +30 -3
- package/dist/cli.js.map +1 -1
- package/dist/cliResult.js +10 -0
- package/dist/cliResult.js.map +1 -1
- package/dist/cliResult.test.js +61 -0
- package/dist/cliResult.test.js.map +1 -1
- package/dist/config/deliveryConfig.d.ts +36 -0
- package/dist/config/deliveryConfig.js +27 -2
- package/dist/config/deliveryConfig.js.map +1 -1
- package/dist/config/deliveryConfig.test.js +39 -2
- package/dist/config/deliveryConfig.test.js.map +1 -1
- package/dist/currentTrackingScenario.test.js +5 -1
- package/dist/currentTrackingScenario.test.js.map +1 -1
- package/dist/dispatch.d.ts +2 -0
- package/dist/dispatch.js +15 -4
- package/dist/dispatch.js.map +1 -1
- package/dist/errors.d.ts +11 -0
- package/dist/errors.js +35 -0
- package/dist/errors.js.map +1 -1
- package/dist/fixtures/discovery.d.ts +11 -0
- package/dist/fixtures/inertEntrypoints.js +7 -0
- package/dist/fixtures/inertEntrypoints.js.map +1 -1
- package/dist/fixtures/inertTarget.d.ts +5 -0
- package/dist/fixtures/issue63.d.ts +11 -0
- package/dist/fixtures/issue63.js +16 -9
- package/dist/fixtures/issue63.js.map +1 -1
- package/dist/github/client.d.ts +3 -0
- package/dist/github/client.js +21 -10
- package/dist/github/client.js.map +1 -1
- package/dist/github/commandIdentityPolicy.js +1 -0
- package/dist/github/commandIdentityPolicy.js.map +1 -1
- package/dist/github/machineAuth.test.js +20 -0
- package/dist/github/machineAuth.test.js.map +1 -1
- package/dist/github/nativeIssueMetadata.d.ts +27 -0
- package/dist/github/nativeIssueMetadata.js +58 -0
- package/dist/github/nativeIssueMetadata.js.map +1 -1
- package/dist/github/projectDelivery.d.ts +3 -0
- package/dist/github/projectDelivery.js +44 -12
- package/dist/github/projectDelivery.js.map +1 -1
- package/dist/issue.d.ts +58 -7
- package/dist/issue.js +786 -108
- package/dist/issue.js.map +1 -1
- package/dist/issueBatchUpdate.test.d.ts +1 -0
- package/dist/issueBatchUpdate.test.js +730 -0
- package/dist/issueBatchUpdate.test.js.map +1 -0
- package/dist/issueBlockerGuard.test.js +78 -0
- package/dist/issueBlockerGuard.test.js.map +1 -1
- package/dist/issueContract.d.ts +68 -2
- package/dist/issueContract.js +101 -9
- package/dist/issueContract.js.map +1 -1
- package/dist/issueContract.test.d.ts +5 -0
- package/dist/issueContract.test.js +28 -1
- package/dist/issueContract.test.js.map +1 -1
- package/dist/issueDates.test.d.ts +1 -0
- package/dist/issueDates.test.js +253 -0
- package/dist/issueDates.test.js.map +1 -0
- package/dist/issueIntake.test.js +972 -19
- package/dist/issueIntake.test.js.map +1 -1
- package/dist/issueJournal.js +12 -8
- package/dist/issueJournal.js.map +1 -1
- package/dist/issueJournal.test.js +138 -0
- package/dist/issueJournal.test.js.map +1 -1
- package/dist/mcp/index.js +20 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +110 -12
- package/dist/mcp/tools.js +53 -34
- package/dist/mcp/tools.js.map +1 -1
- package/dist/pr.d.ts +7 -0
- package/dist/pr.js +104 -99
- package/dist/pr.js.map +1 -1
- package/dist/pr.test.js +202 -223
- package/dist/pr.test.js.map +1 -1
- package/dist/prAssociation.test.js +11 -10
- package/dist/prAssociation.test.js.map +1 -1
- package/dist/review.d.ts +1 -0
- package/dist/review.js +7 -6
- package/dist/review.js.map +1 -1
- package/dist/review.test.js +8 -4
- package/dist/review.test.js.map +1 -1
- package/dist/services/agentReadinessService.js +2 -0
- package/dist/services/agentReadinessService.js.map +1 -1
- package/dist/setup.test.js +175 -4
- package/dist/setup.test.js.map +1 -1
- package/dist/stdoutRegression.test.js +22 -0
- package/dist/stdoutRegression.test.js.map +1 -1
- package/dist/targetPolicyRoutes.test.js +2 -2
- package/dist/targetPolicyRoutes.test.js.map +1 -1
- package/dist/verification.js +26 -0
- package/dist/verification.js.map +1 -1
- package/dist/verificationGate.test.js +25 -2
- package/dist/verificationGate.test.js.map +1 -1
- package/package.json +1 -1
- package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
- package/plugins/ai-delivery/plugin.json +1 -1
- package/plugins/ai-delivery/runtime/dist/cli.js +68 -56
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/intake-create/SKILL.md +22 -2
- package/plugins/ai-delivery/skills/pr-handoff/SKILL.md +4 -4
package/dist/issue.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { DeliveryConfig, GitHubDeliveryConfig, LoadedDeliveryConfig, LoadedGitHubConfig } from './config/deliveryConfig.js';
|
|
2
|
-
import { DeliveryError } from './errors.js';
|
|
2
|
+
import { DeliveryError, getMachineRequestDiagnostics, type RateLimitDiagnostics } from './errors.js';
|
|
3
3
|
import { type GitHubClients } from './github/client.js';
|
|
4
|
+
import { type NativeIssueDatePatch } from './github/nativeIssueMetadata.js';
|
|
4
5
|
import { type ProjectDeliveryConfiguration } from './github/projectDelivery.js';
|
|
5
6
|
import { type RepoCoordinates } from './github/repo.js';
|
|
6
7
|
import { type AgentReadinessResult } from './services/agentReadinessService.js';
|
|
7
8
|
import { type JournalInput } from './issueJournal.js';
|
|
8
|
-
import { type IssueFieldsInput, type IssueDiagnostic } from './issueContract.js';
|
|
9
|
+
import { type IssueFieldsInput, type IssueDiagnostic, type IssueDeferralData } from './issueContract.js';
|
|
9
10
|
export interface IssueCommentReadback {
|
|
10
11
|
commentId: number;
|
|
11
12
|
url: string;
|
|
@@ -37,7 +38,10 @@ export declare function loadDeliveryContext(input: {
|
|
|
37
38
|
repository?: string;
|
|
38
39
|
signal?: AbortSignal;
|
|
39
40
|
}): Promise<DeliveryContext>;
|
|
40
|
-
export interface CreateIssueInput extends Partial<IssueFieldsInput
|
|
41
|
+
export interface CreateIssueInput extends Partial<IssueFieldsInput>, NativeIssueDatePatch {
|
|
42
|
+
status?: {
|
|
43
|
+
nextMilestone?: string;
|
|
44
|
+
};
|
|
41
45
|
blockedBy?: number[];
|
|
42
46
|
/** Add this issue as a blocker of these dependents without replacing their other blockers. */
|
|
43
47
|
blocks?: number[];
|
|
@@ -51,7 +55,7 @@ export interface CreateIssueInput extends Partial<IssueFieldsInput> {
|
|
|
51
55
|
priority?: string;
|
|
52
56
|
title: string;
|
|
53
57
|
}
|
|
54
|
-
/**
|
|
58
|
+
/** Display timestamps are excluded from the contract-bound normal-start retry intent. */
|
|
55
59
|
export declare function canonicalIssueBody(input: CreateIssueInput): string;
|
|
56
60
|
export declare class CreatedTrackingIssueError extends DeliveryError {
|
|
57
61
|
readonly created: {
|
|
@@ -87,6 +91,9 @@ export interface ListIssuesInput {
|
|
|
87
91
|
perPage?: number;
|
|
88
92
|
}
|
|
89
93
|
export interface ListedTrackingIssue {
|
|
94
|
+
nodeId?: string;
|
|
95
|
+
fieldIds?: Record<string, number>;
|
|
96
|
+
deferred?: IssueDeferralData | null;
|
|
90
97
|
number: number;
|
|
91
98
|
title: string;
|
|
92
99
|
state: 'open' | 'closed';
|
|
@@ -109,7 +116,9 @@ export interface ListedTrackingIssue {
|
|
|
109
116
|
updatedAt: string;
|
|
110
117
|
}
|
|
111
118
|
/** A bounded GitHub page; local filters can produce an empty page with a nextPage. */
|
|
112
|
-
export declare function listIssues(context: DeliveryContext, input: ListIssuesInput
|
|
119
|
+
export declare function listIssues(context: DeliveryContext, input: ListIssuesInput, options?: {
|
|
120
|
+
capacityRead?: boolean;
|
|
121
|
+
}): Promise<{
|
|
113
122
|
issues: ListedTrackingIssue[];
|
|
114
123
|
page: number;
|
|
115
124
|
perPage: number;
|
|
@@ -128,7 +137,14 @@ export interface IssueClosureReadback {
|
|
|
128
137
|
}
|
|
129
138
|
/** @internal Native closure evidence is independent of an input or a posted comment. */
|
|
130
139
|
export declare function readIssueClosure(context: DeliveryContext, issueNumber: number): Promise<IssueClosureReadback>;
|
|
131
|
-
export interface UpdateIssueInput extends Partial<IssueFieldsInput
|
|
140
|
+
export interface UpdateIssueInput extends Omit<Partial<IssueFieldsInput>, 'deferral'>, NativeIssueDatePatch {
|
|
141
|
+
defer?: IssueDeferralData;
|
|
142
|
+
undefer?: true;
|
|
143
|
+
status?: {
|
|
144
|
+
nextMilestone?: string;
|
|
145
|
+
blockers?: string;
|
|
146
|
+
latestJournal?: string;
|
|
147
|
+
};
|
|
132
148
|
blockedBy?: number[];
|
|
133
149
|
/** Add this issue as a blocker of these dependents without replacing their other blockers. */
|
|
134
150
|
blocks?: number[];
|
|
@@ -162,9 +178,39 @@ export interface UpdateIssueResult extends IssueInfo {
|
|
|
162
178
|
};
|
|
163
179
|
}
|
|
164
180
|
export declare function updateIssue(context: DeliveryContext, input: UpdateIssueInput): Promise<UpdateIssueResult>;
|
|
181
|
+
export interface BatchUpdateIssueInput {
|
|
182
|
+
items: (UpdateIssueInput & {
|
|
183
|
+
repo?: string;
|
|
184
|
+
})[];
|
|
185
|
+
dryRun?: boolean;
|
|
186
|
+
}
|
|
187
|
+
interface BatchUpdateItemResult {
|
|
188
|
+
issueNumber: number;
|
|
189
|
+
status: 'planned' | 'applied' | 'unchanged' | 'failed';
|
|
190
|
+
changes?: Record<string, unknown>;
|
|
191
|
+
readback: IssueInfo | null;
|
|
192
|
+
relatedReadback?: Record<string, unknown>;
|
|
193
|
+
reason?: string;
|
|
194
|
+
readbackError?: string;
|
|
195
|
+
diagnostics?: ReturnType<typeof getMachineRequestDiagnostics>;
|
|
196
|
+
}
|
|
197
|
+
/** One serial operation; each application uses the existing single-update mutation owner. */
|
|
198
|
+
export declare function batchUpdateIssues(context: DeliveryContext, input: BatchUpdateIssueInput, signal?: AbortSignal): Promise<{
|
|
199
|
+
dryRun: boolean;
|
|
200
|
+
results: BatchUpdateItemResult[];
|
|
201
|
+
summary: {
|
|
202
|
+
total: number;
|
|
203
|
+
applied: number;
|
|
204
|
+
planned: number;
|
|
205
|
+
unchanged: number;
|
|
206
|
+
failed: number;
|
|
207
|
+
rateLimits: RateLimitDiagnostics[];
|
|
208
|
+
};
|
|
209
|
+
}>;
|
|
165
210
|
/** Complete the native tracking and Project state of an issue created before an interrupted response. */
|
|
166
211
|
export declare function resumeCreatedIssue(context: DeliveryContext, input: UpdateIssueInput): Promise<IssueInfo>;
|
|
167
212
|
export interface IssueInfo {
|
|
213
|
+
deferred?: IssueDeferralData | null;
|
|
168
214
|
routing?: LoadedDeliveryConfig['routing'];
|
|
169
215
|
blockedBy: number[];
|
|
170
216
|
body: string;
|
|
@@ -172,6 +218,9 @@ export interface IssueInfo {
|
|
|
172
218
|
issueType: string | null;
|
|
173
219
|
labels: string[];
|
|
174
220
|
milestone: number | null;
|
|
221
|
+
fields: ListedTrackingIssue['fields'];
|
|
222
|
+
startDate?: string | null;
|
|
223
|
+
targetDate?: string | null;
|
|
175
224
|
parentIssueNumber: number | null;
|
|
176
225
|
points?: number;
|
|
177
226
|
priority?: string;
|
|
@@ -199,5 +248,7 @@ export declare function startIssueBranch(context: DeliveryContext, issueNumber:
|
|
|
199
248
|
reused: boolean;
|
|
200
249
|
}>;
|
|
201
250
|
/** Recheck native eligibility before an explicit start changes its selected Project. */
|
|
202
|
-
export declare function startIssueProject(context: DeliveryContext, issueNumber: number): Promise<import("./github/projectDelivery.js").ProjectDeliveryStatusReadback>;
|
|
251
|
+
export declare function startIssueProject(context: DeliveryContext, issueNumber: number, overrideReason?: string): Promise<import("./github/projectDelivery.js").ProjectDeliveryStatusReadback>;
|
|
252
|
+
/** A complete observed-capacity guard, not a cross-writer GitHub transaction. */
|
|
253
|
+
export declare function assertIssueStartCapacity(context: DeliveryContext, issueNumber: number, overrideReason?: string, recordOverride?: boolean): Promise<string | undefined>;
|
|
203
254
|
export {};
|