@aviaratech/ai-delivery 0.3.34 → 0.3.35
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 +48 -0
- package/dist/boardReconcile.test.d.ts +1 -0
- package/dist/boardReconcile.test.js +1685 -0
- package/dist/boardReconcile.test.js.map +1 -0
- package/dist/cli.js +35 -1
- package/dist/cli.js.map +1 -1
- package/dist/cliResult.js +21 -1
- package/dist/cliResult.js.map +1 -1
- package/dist/cliResult.test.js +82 -0
- package/dist/cliResult.test.js.map +1 -1
- package/dist/config/deliveryConfig.d.ts +32 -0
- package/dist/config/deliveryConfig.js +5 -0
- package/dist/config/deliveryConfig.js.map +1 -1
- package/dist/config/deliveryConfig.test.js +67 -0
- package/dist/config/deliveryConfig.test.js.map +1 -1
- package/dist/currentTrackingScenario.test.js +6 -4
- package/dist/currentTrackingScenario.test.js.map +1 -1
- package/dist/directoryIndependent.test.js +2 -2
- package/dist/directoryIndependent.test.js.map +1 -1
- package/dist/dispatch.d.ts +1 -1
- package/dist/dispatch.js +33 -1
- package/dist/dispatch.js.map +1 -1
- package/dist/errors.d.ts +13 -0
- package/dist/errors.js +15 -0
- package/dist/errors.js.map +1 -1
- package/dist/github/commandIdentityPolicy.js +1 -0
- package/dist/github/commandIdentityPolicy.js.map +1 -1
- package/dist/github/discovery.d.ts +2 -0
- package/dist/github/discovery.js +17 -3
- package/dist/github/discovery.js.map +1 -1
- package/dist/github/projectDelivery.d.ts +36 -0
- package/dist/github/projectDelivery.js +136 -31
- package/dist/github/projectDelivery.js.map +1 -1
- package/dist/github/relationships.d.ts +5 -2
- package/dist/github/relationships.js +59 -2
- package/dist/github/relationships.js.map +1 -1
- package/dist/issue.d.ts +66 -1
- package/dist/issue.js +259 -62
- package/dist/issue.js.map +1 -1
- package/dist/issueBatchUpdate.test.js +229 -12
- package/dist/issueBatchUpdate.test.js.map +1 -1
- package/dist/issueTracking.test.js +436 -11
- package/dist/issueTracking.test.js.map +1 -1
- package/dist/mcp/index.js +4 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +592 -0
- package/dist/mcp/tools.js +7 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/pluginInstaller.js +21 -23
- package/dist/pluginInstaller.js.map +1 -1
- package/dist/pluginInstaller.test.js +121 -1
- package/dist/pluginInstaller.test.js.map +1 -1
- package/dist/pluginPackaging.test.js +135 -6
- package/dist/pluginPackaging.test.js.map +1 -1
- package/dist/services/boardReconcileService.d.ts +1204 -0
- package/dist/services/boardReconcileService.js +1571 -0
- package/dist/services/boardReconcileService.js.map +1 -0
- package/dist/services/deliveryAdmission.d.ts +2 -0
- package/dist/services/deliveryAdmission.js +2 -2
- package/dist/services/deliveryAdmission.js.map +1 -1
- package/dist/setup.test.js +299 -28
- package/dist/setup.test.js.map +1 -1
- package/dist/stdoutRegression.test.js +5 -2
- package/dist/stdoutRegression.test.js.map +1 -1
- package/dist/verification.js +12 -2
- package/dist/verification.js.map +1 -1
- package/dist/version.d.ts +6 -0
- package/dist/version.js +16 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -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/THIRD-PARTY-NOTICES.md +24 -0
- package/plugins/ai-delivery/runtime/dist/cli.js +72 -71
- package/plugins/ai-delivery/runtime/package.json +1 -1
package/dist/issue.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type IssueCommentInput = JournalInput | {
|
|
|
22
22
|
export declare function commentIssue(context: DeliveryContext, input: IssueCommentInput, lifecycleKey?: string): Promise<IssueCommentReadback>;
|
|
23
23
|
export declare function journalIssueStart(context: DeliveryContext, issueNumber: number): Promise<IssueCommentReadback>;
|
|
24
24
|
export interface DeliveryContext {
|
|
25
|
+
readPageLimit?: number;
|
|
25
26
|
clients: GitHubClients;
|
|
26
27
|
reviewerClients?: GitHubClients;
|
|
27
28
|
configuration?: LoadedDeliveryConfig | LoadedGitHubConfig;
|
|
@@ -31,6 +32,8 @@ export interface DeliveryContext {
|
|
|
31
32
|
root: string;
|
|
32
33
|
}
|
|
33
34
|
export declare function loadDeliveryContext(input: {
|
|
35
|
+
readPageLimit?: number;
|
|
36
|
+
requireWritableProject?: boolean;
|
|
34
37
|
identity: string;
|
|
35
38
|
personalAuth?: boolean;
|
|
36
39
|
repoRoot: string;
|
|
@@ -115,6 +118,33 @@ export interface ListedTrackingIssue {
|
|
|
115
118
|
url: string;
|
|
116
119
|
updatedAt: string;
|
|
117
120
|
}
|
|
121
|
+
export declare function capacityNextPage(response: {
|
|
122
|
+
data: unknown;
|
|
123
|
+
headers?: {
|
|
124
|
+
link?: string;
|
|
125
|
+
};
|
|
126
|
+
}, page: number, perPage: number): number | null;
|
|
127
|
+
/** The same native-field composition used by issue-info, without unrelated Project/relationship reads. */
|
|
128
|
+
export declare function readIssueNativeFields(context: DeliveryContext, issueNumber: number): Promise<{
|
|
129
|
+
fields: Record<string, string | number | string[] | null>;
|
|
130
|
+
values: {
|
|
131
|
+
issue_field_id: number;
|
|
132
|
+
issue_field_name: string;
|
|
133
|
+
data_type: "number" | "date" | "single_select" | "text" | "multi_select";
|
|
134
|
+
value?: unknown;
|
|
135
|
+
single_select_option?: {
|
|
136
|
+
name: string;
|
|
137
|
+
} | null | undefined;
|
|
138
|
+
multi_select_options?: {
|
|
139
|
+
name: string;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
catalog: {
|
|
143
|
+
id: number;
|
|
144
|
+
name: string;
|
|
145
|
+
data_type: "number" | "date" | "single_select" | "text" | "multi_select";
|
|
146
|
+
}[];
|
|
147
|
+
}>;
|
|
118
148
|
/** A bounded GitHub page; local filters can produce an empty page with a nextPage. */
|
|
119
149
|
export declare function listIssues(context: DeliveryContext, input: ListIssuesInput, options?: {
|
|
120
150
|
capacityRead?: boolean;
|
|
@@ -177,6 +207,35 @@ export interface UpdateIssueResult extends IssueInfo {
|
|
|
177
207
|
comment: IssueCommentReadback;
|
|
178
208
|
};
|
|
179
209
|
}
|
|
210
|
+
interface IncompleteIssueUpdateResult {
|
|
211
|
+
status: 'update-incomplete';
|
|
212
|
+
rateLimit?: RateLimitDiagnostics;
|
|
213
|
+
native: {
|
|
214
|
+
status: 'confirmed' | 'unknown';
|
|
215
|
+
repository: string;
|
|
216
|
+
issueNumber: number;
|
|
217
|
+
readback: IssueInfo | null;
|
|
218
|
+
readbackError?: string;
|
|
219
|
+
closure?: UpdateIssueResult['closure'];
|
|
220
|
+
historyComment?: IssueCommentReadback;
|
|
221
|
+
};
|
|
222
|
+
project: {
|
|
223
|
+
status: 'pending' | 'unknown';
|
|
224
|
+
desiredStatus: string | null;
|
|
225
|
+
reason: 'archived' | 'unavailable';
|
|
226
|
+
};
|
|
227
|
+
recovery: {
|
|
228
|
+
tool: 'issue_batch_update';
|
|
229
|
+
instruction: string;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
/** Native writes may have committed; this is never an ordinary success or a safe full retry. */
|
|
233
|
+
export declare class IssueUpdateIncompleteError extends DeliveryError {
|
|
234
|
+
readonly result: IncompleteIssueUpdateResult;
|
|
235
|
+
constructor(result: IncompleteIssueUpdateResult);
|
|
236
|
+
}
|
|
237
|
+
/** Identity-bound results do not inspect hostile error proxies or accessors. */
|
|
238
|
+
export declare function getIncompleteIssueUpdate(error: unknown): IncompleteIssueUpdateResult | undefined;
|
|
180
239
|
export declare function updateIssue(context: DeliveryContext, input: UpdateIssueInput): Promise<UpdateIssueResult>;
|
|
181
240
|
export interface BatchUpdateIssueInput {
|
|
182
241
|
items: (UpdateIssueInput & {
|
|
@@ -193,6 +252,7 @@ interface BatchUpdateItemResult {
|
|
|
193
252
|
reason?: string;
|
|
194
253
|
readbackError?: string;
|
|
195
254
|
diagnostics?: ReturnType<typeof getMachineRequestDiagnostics>;
|
|
255
|
+
incomplete?: IncompleteIssueUpdateResult;
|
|
196
256
|
}
|
|
197
257
|
/** One serial operation; each application uses the existing single-update mutation owner. */
|
|
198
258
|
export declare function batchUpdateIssues(context: DeliveryContext, input: BatchUpdateIssueInput, signal?: AbortSignal): Promise<{
|
|
@@ -232,7 +292,12 @@ export interface IssueInfo {
|
|
|
232
292
|
}
|
|
233
293
|
export declare function issueInfo(context: DeliveryContext, issueNumber: number): Promise<IssueInfo>;
|
|
234
294
|
export declare function listIssueSubissues(context: DeliveryContext, issueNumber: number): Promise<number[]>;
|
|
235
|
-
export declare function readyCheck(context: DeliveryContext, issueNumber: number
|
|
295
|
+
export declare function readyCheck(context: DeliveryContext, issueNumber: number, onReadback?: (observation: {
|
|
296
|
+
info: IssueInfo;
|
|
297
|
+
issueNodeId: string;
|
|
298
|
+
issueNumber: number;
|
|
299
|
+
trackingParent: boolean;
|
|
300
|
+
}) => void): Promise<AgentReadinessResult>;
|
|
236
301
|
interface LinkedIssueBranch {
|
|
237
302
|
name: string;
|
|
238
303
|
sha: string;
|