@aviaratech/ai-delivery 0.3.33 → 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 +70 -3
- 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 +37 -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/fixtures/inertEntrypoints.js +7 -0
- package/dist/fixtures/inertEntrypoints.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/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 +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 +72 -3
- package/dist/issue.js +354 -117
- package/dist/issue.js.map +1 -1
- package/dist/issueBatchUpdate.test.js +229 -12
- package/dist/issueBatchUpdate.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/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 +598 -0
- package/dist/mcp/tools.js +10 -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/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/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 +474 -32
- package/dist/setup.test.js.map +1 -1
- package/dist/stdoutRegression.test.js +27 -2
- 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 +38 -2
- package/dist/verification.js.map +1 -1
- package/dist/verificationGate.test.js +25 -2
- package/dist/verificationGate.test.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 +68 -67
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/pr-handoff/SKILL.md +4 -4
package/README.md
CHANGED
|
@@ -115,15 +115,15 @@ This mode requires complete native GitHub cross-reference evidence from the conf
|
|
|
115
115
|
|
|
116
116
|
A closing-to-non-closing metadata transition is a narrow exception: with explicit issue/PR/body selection, the author may remove a fully proven intended-only native closing association by updating the body once. Exact PR identity, title, draft/open state, head/ref/base and OPEN issue criteria must remain unchanged; the post-readback must establish native non-closing reference proof and empty closing associations before any delivery action. Dry-run reports a pending transition, not verified non-closing state. Missing closing proof or an already-empty stale body cannot use this exception. An already valid non-closing PR is reused without another body update.
|
|
117
117
|
|
|
118
|
-
Non-closing delivery refuses closing directives in the current PR title/body and every introduced commit message, including other issues/repositories. Squash is required, with explicit safe title/message sent to GitHub.
|
|
118
|
+
Non-closing delivery refuses closing directives in the current PR title/body and every introduced commit message, including other issues/repositories. Squash is required, with explicit safe title/message sent to GitHub. GitHub’s active required reviews and checks, native blockers, current default base and expected-head merge guards still apply. `finish --non-closing` refuses before any lifecycle call; this mode never closes the retained issue or changes its Project to Done. GitHub does not atomically lock issue intent or external edits with promotion/body/merge: failed acknowledgements or post-read drift require read-only reconciliation, never a blind mutation retry or reopening an issue.
|
|
119
119
|
|
|
120
120
|
If GitHub creates a draft but association verification fails, the diagnostic reports the created PR identity and the unresolved post-publication phase. Inspect that exact PR read-only before any further action; creation is not repeated to repair an association. A body containing closing words alone never proves the native association.
|
|
121
121
|
|
|
122
122
|
For a new issue, `start --request-id <stable-id>` records inert retry markers in its body. Retry the same request after an unknown response; matching remote state is recovered, while conflicting intent or duplicate matches refuse. Without an explicit ID, identical tracking inputs share a deterministic retry identity. Supply a new ID for a separate issue with identical inputs. A retry search beyond 2,000 issues refuses and asks for the known issue number. `pr:create --head <branch>` selects an existing linked branch when an issue has several.
|
|
123
123
|
|
|
124
|
-
Formal review requires a validated independent artifact and the configured reviewer App. The artifact binds author/reviewer identities, exact commit/tree and complete changed-path digest. The review body retains the
|
|
124
|
+
Formal review requires a validated independent artifact and the configured reviewer App. The artifact binds author/reviewer identities, exact commit/tree and complete changed-path digest. The review body retains the original artifact and digest for submission integrity and audit. GitHub owns subsequent review eligibility and stale-review dismissal; merge does not compare historical artifact, tree, diff or publication lineage against the current PR. A matching remote review is reused; conflicting actor, head, state or duplicate claims for that same artifact refuse. An older approval does not prevent submission of a new independently validated exact-head artifact. Submission reads back the exact review ID and artifact. Reviews containing only a historical marker require a fresh review. Its new `ai-delivery.github-review@1` receipt is separate from historical local-evidence receipts. CLI `--artifact` reads a UTF-8 JSON file; MCP takes its JSON content.
|
|
125
125
|
|
|
126
|
-
An App
|
|
126
|
+
An App submission does not prove that GitHub counted it. `pr:checks` exposes GitHub’s live review decision, merge state, configured required check names and head check observations. Required names come from applicable native rules and classic branch protection, so checks that have never reported remain visible. Partial requirement discovery is labelled explicitly; head observations do not override GitHub’s eligibility decision. Merge uses GitHub’s eligibility for the exact PR head and current base, including active rulesets, required checks, required reviews and configured up-to-date requirements. A repository requiring zero reviews does not acquire an extra App approval requirement. CLEAN and HAS_HOOKS are eligible; UNSTABLE follows GitHub’s mergeable decision with non-passing commit status; GitHub decides which check results and requirements apply. BLOCKED, BEHIND, DIRTY, unknown or incomplete eligibility and moved head/base refuse with native state and required-check diagnostics. No unresolved native issue blockers may remain. The server merge mutation includes the expected head SHA. Finish confirms the intended PR merged before closing its issue, and retries from remote readback without local receipts.
|
|
127
127
|
|
|
128
128
|
The removed `develop`, `verify`, `pr:checkout`, worktree creation/cleanup and local velocity record commands are no longer public CLI/MCP workflows. Preserve existing consumer checks, controller admissions and historical custody records. Their original schemas, digest identities, writer locks and operational closure rules remain separate. The legacy transition commands remain exposed, but this runtime cannot reproduce their historical repository-policy configuration binding: CLI/MCP inspection and apply refuse without executing policy or converting records. Complete those transitions with the original controller. Explicit runtime stage/admit remain supported.
|
|
129
129
|
|
|
@@ -303,11 +303,31 @@ Pass `repo: "owner/name"` to MCP calls or global `--repo owner/name` to the CLI,
|
|
|
303
303
|
| Rewrite with prior history | `issue_update` | `update --issue N --fields-file <typed.json> --preserve-history` |
|
|
304
304
|
| Reparent one issue | `issue_update` | `update --issue N --parent P` |
|
|
305
305
|
| Plan / apply a batch | `issue_batch_update` | `batch:update --items-file <items.json> [--dry-run]` |
|
|
306
|
+
| Reconcile Project membership / Status | `board_reconcile` | `board:reconcile --repositories <owner/repo...> [--dry-run]`; retained plan and result JSON for apply/recovery |
|
|
306
307
|
| Record a typed journal | `issue_comment` | See the [typed journal contract](#typed-issue-journals); the MCP call returns the authored comment identity and readback |
|
|
307
308
|
| Close with a reason | `issue_update` | `update --issue N --state closed --close-reason not_planned --superseded-by S` |
|
|
308
309
|
|
|
309
310
|
Typed JSON contains the issue contract fields, including Issue Type, Points, problem, outcome, acceptance and non-goals. CLI repository, parent and priority selectors use their documented flags. Inspect each result: rewrites return the preserved history comment; creation and reparenting return native readback. Reasoned closure returns `closure` evidence, supersession and the authored comment from `issue_update`; `issue_info` supplies state and Project status without the closure-reason evidence. A successful readiness check does not start an issue.
|
|
310
311
|
|
|
312
|
+
`issue_create` and `issue_update` also accept optional native `startDate` and
|
|
313
|
+
`targetDate` values, including in CLI `--fields-file` JSON. They resolve the
|
|
314
|
+
organization fields named **Start date** and **Target date** without caller IDs.
|
|
315
|
+
Dates must be calendar-valid `YYYY-MM-DD` strings. Omit a property to preserve
|
|
316
|
+
its current value; use `null` to clear only that date. For example, an update
|
|
317
|
+
file containing `{"startDate":"2028-02-29","targetDate":null}` sets the start
|
|
318
|
+
date and clears the target. Missing, duplicate or incompatible requested date
|
|
319
|
+
fields refuse before mutation; calls without date properties do not require
|
|
320
|
+
those organization fields. Existing Points/Priority and other field values
|
|
321
|
+
are preserved. This adds no date fields to the organization.
|
|
322
|
+
|
|
323
|
+
`issue_info.fields` returns the same supported organization field names and
|
|
324
|
+
values as `issue_list`, including text, number, date and named single/multi-select
|
|
325
|
+
values; unset fields are `null`. The existing top-level Points/Priority readback
|
|
326
|
+
remains, with `startDate`/`targetDate` aliases when their date fields exist.
|
|
327
|
+
Setting fields uses additive native updates; clearing an already unset date is
|
|
328
|
+
idempotent. A creation failure after a native issue exists reports that known
|
|
329
|
+
issue so recovery never creates a replacement.
|
|
330
|
+
|
|
311
331
|
Batch input is a UTF-8 JSON array of **1–50** complete `issue_update` inputs;
|
|
312
332
|
MCP takes `{repo, items, dryRun}`. All items use the selected repository, including
|
|
313
333
|
any per-item `repo`. Close, defer/undefer, parent, blockers, typed contract,
|
|
@@ -465,6 +485,53 @@ and 20 oldest issues. `--max-project-pages` bounds Project status collection. Li
|
|
|
465
485
|
produce explicit partial **observed** counts, not complete zeroes. Issues whose
|
|
466
486
|
current Project status cannot be resolved have a separate unknown count.
|
|
467
487
|
|
|
488
|
+
## Scoped Project reconciliation
|
|
489
|
+
|
|
490
|
+
`board_reconcile` uses the same dispatcher as the library's existing `executeTool`
|
|
491
|
+
and CLI `board:reconcile`. Supply 1–10 explicit `repositories`; the command never
|
|
492
|
+
infers this scope from launch-directory Git. An optional singular `repo` must agree
|
|
493
|
+
with the sole selected repository. Dry-run is the default and requires read access
|
|
494
|
+
through the configured author. Apply requires fresh write access through that same
|
|
495
|
+
author and refuses the legacy development-token override.
|
|
496
|
+
|
|
497
|
+
The dry-run `ai-delivery.board-reconcile-plan@1` includes every selected native
|
|
498
|
+
issue, current membership/Status, native facts, gaps, metadata suggestions and
|
|
499
|
+
deterministic operations. These operation artifacts remain under `ai-delivery.mcp@2`.
|
|
500
|
+
Bounds are 500 native issues per repository, 20 requests per logical prerequisite
|
|
501
|
+
collection (including its completion page), and 16 MiB UTF-8 for retained JSON
|
|
502
|
+
inputs and structured output. An overflow or unreadable inventory produces an
|
|
503
|
+
incomplete report; it never authorizes a truncated-scope apply. These bounds do not
|
|
504
|
+
claim an HTTP response-byte or process-memory ceiling.
|
|
505
|
+
|
|
506
|
+
Open issues may receive missing membership independently of Status. Status follows
|
|
507
|
+
proven native closure, open blockers, canonical draft/deferral, then positive local
|
|
508
|
+
checkout evidence with readiness and WIP admission. `checkouts` (CLI
|
|
509
|
+
`--checkouts-file`) selects absolute physical checkouts for native-linked current
|
|
510
|
+
branches inside configured roots. A checkout does not prove a running task, and
|
|
511
|
+
missing activity evidence does not prove inactivity. Unknown Status remains
|
|
512
|
+
unresolved, archived items stay preserved, and metadata/duplicate-label suggestions
|
|
513
|
+
never repair native fields or labels.
|
|
514
|
+
|
|
515
|
+
Retain the exact original plan. Apply supplies `mode: "apply"` and `plan` (CLI
|
|
516
|
+
`--apply --plan-file`); optional `priorResult` (`--prior-result-file`) preserves known
|
|
517
|
+
item IDs and historical attempts on that same plan. Files contain regular UTF-8
|
|
518
|
+
JSON data. Scope, artifact bytes, configuration, destinations, inventory and author
|
|
519
|
+
are revalidated before writes; operation-specific native and item facts are checked
|
|
520
|
+
at both write boundaries and afterward. A compatible exact postimage is satisfied
|
|
521
|
+
without repeating the write. A deleted known item or unexpected automatic/human
|
|
522
|
+
Status requires a fresh plan. Recovery adds no journal store or automatic rollback.
|
|
523
|
+
Plans identify the executing package manifest/dist bytes independently of cwd;
|
|
524
|
+
the root library and bundled plugin layouts need fresh plans even at equal versions.
|
|
525
|
+
|
|
526
|
+
The apply `ai-delivery.board-reconcile-result@1` preserves applied, satisfied,
|
|
527
|
+
failed, drifted/refused and unknown-after-attempt evidence. A failed shared Project
|
|
528
|
+
group stops its dependents; independent groups may finish. Global cancellation,
|
|
529
|
+
authentication or rate-limit failure stops remaining writes. The CLI prints complete
|
|
530
|
+
compact JSON before exiting nonzero for incomplete scope or unresolved apply work.
|
|
531
|
+
A complete dry-run can exit zero with explicit issue gaps and metadata suggestions.
|
|
532
|
+
GitHub provides no expected-current-value predicate for these mutations: observable
|
|
533
|
+
drift is detected, while races with outside writers can remain ambiguous.
|
|
534
|
+
|
|
468
535
|
## Typed issue journals
|
|
469
536
|
|
|
470
537
|
`issue_comment` posts a typed journal through the configured author role. The public
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|