@aviaratech/ai-delivery 0.3.39 → 0.3.40

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 CHANGED
@@ -111,4 +111,4 @@ Release still requires the exact mandatory archive inventory, complete release/c
111
111
 
112
112
  Release is manual, main-only and uses npm trusted publishing. A packaged README edit changes the release candidate: retain accepted archives and independently qualify the new exact source/archive before dispatching.
113
113
 
114
- Source version **0.3.39** and green PR checks do not establish its qualification; see [#199](https://github.com/aviaratech/ai-delivery/issues/199). Wrappers and workflow definitions do not prove [#200](https://github.com/aviaratech/ai-delivery/issues/200)'s **under-60-second regular checks / under-five-minute qualification** targets. Functional removals and remaining documentation obligations stay with [#201](https://github.com/aviaratech/ai-delivery/issues/201).
114
+ Source version **0.3.40** and green PR checks do not establish its qualification; see [#199](https://github.com/aviaratech/ai-delivery/issues/199). Wrappers and workflow definitions do not prove [#200](https://github.com/aviaratech/ai-delivery/issues/200)'s **under-60-second regular checks / under-five-minute qualification** targets. Functional removals and remaining documentation obligations stay with [#201](https://github.com/aviaratech/ai-delivery/issues/201).
package/dist/issue.js CHANGED
@@ -361,15 +361,20 @@ async function createIssue(context, input) {
361
361
  const marker = `<!-- ai-delivery-create: ${key} intent: ${originalIntent} -->`;
362
362
  const matches = [];
363
363
  for (let page = 1; page <= Math.min(20, context.readPageLimit ?? 20); page++) {
364
- const batch = (await clients.rest.issues.listForRepo({ ...repo, state: "all", page, per_page: 100 })).data;
364
+ const batch = (await clients.rest.issues.listForRepo({
365
+ ...repo,
366
+ state: "all",
367
+ sort: "created",
368
+ direction: "desc",
369
+ page,
370
+ per_page: 100
371
+ })).data;
365
372
  matches.push(
366
373
  ...batch.filter(
367
374
  (row) => !("pull_request" in row) && row.body?.includes(`<!-- ai-delivery-create: ${key} intent:`)
368
375
  )
369
376
  );
370
377
  if (batch.length < 100) break;
371
- if (page === Math.min(20, context.readPageLimit ?? 20))
372
- throw new DeliveryError("Create retry search exceeds the bounded readback window; reconcile the known issue.");
373
378
  }
374
379
  if (matches.length > 1) throw new DeliveryError("Conflicting issues claim the same create opId.");
375
380
  prior = matches[0];