@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.
Files changed (75) hide show
  1. package/README.md +48 -0
  2. package/dist/boardReconcile.test.d.ts +1 -0
  3. package/dist/boardReconcile.test.js +1685 -0
  4. package/dist/boardReconcile.test.js.map +1 -0
  5. package/dist/cli.js +35 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/cliResult.js +21 -1
  8. package/dist/cliResult.js.map +1 -1
  9. package/dist/cliResult.test.js +82 -0
  10. package/dist/cliResult.test.js.map +1 -1
  11. package/dist/config/deliveryConfig.d.ts +32 -0
  12. package/dist/config/deliveryConfig.js +5 -0
  13. package/dist/config/deliveryConfig.js.map +1 -1
  14. package/dist/config/deliveryConfig.test.js +67 -0
  15. package/dist/config/deliveryConfig.test.js.map +1 -1
  16. package/dist/currentTrackingScenario.test.js +6 -4
  17. package/dist/currentTrackingScenario.test.js.map +1 -1
  18. package/dist/directoryIndependent.test.js +2 -2
  19. package/dist/directoryIndependent.test.js.map +1 -1
  20. package/dist/dispatch.d.ts +1 -1
  21. package/dist/dispatch.js +33 -1
  22. package/dist/dispatch.js.map +1 -1
  23. package/dist/errors.d.ts +13 -0
  24. package/dist/errors.js +15 -0
  25. package/dist/errors.js.map +1 -1
  26. package/dist/github/commandIdentityPolicy.js +1 -0
  27. package/dist/github/commandIdentityPolicy.js.map +1 -1
  28. package/dist/github/discovery.d.ts +2 -0
  29. package/dist/github/discovery.js +17 -3
  30. package/dist/github/discovery.js.map +1 -1
  31. package/dist/github/projectDelivery.d.ts +36 -0
  32. package/dist/github/projectDelivery.js +136 -31
  33. package/dist/github/projectDelivery.js.map +1 -1
  34. package/dist/github/relationships.d.ts +5 -2
  35. package/dist/github/relationships.js +59 -2
  36. package/dist/github/relationships.js.map +1 -1
  37. package/dist/issue.d.ts +66 -1
  38. package/dist/issue.js +259 -62
  39. package/dist/issue.js.map +1 -1
  40. package/dist/issueBatchUpdate.test.js +229 -12
  41. package/dist/issueBatchUpdate.test.js.map +1 -1
  42. package/dist/issueTracking.test.js +436 -11
  43. package/dist/issueTracking.test.js.map +1 -1
  44. package/dist/mcp/index.js +4 -0
  45. package/dist/mcp/index.js.map +1 -1
  46. package/dist/mcp/tools.d.ts +592 -0
  47. package/dist/mcp/tools.js +7 -0
  48. package/dist/mcp/tools.js.map +1 -1
  49. package/dist/pluginInstaller.js +21 -23
  50. package/dist/pluginInstaller.js.map +1 -1
  51. package/dist/pluginInstaller.test.js +121 -1
  52. package/dist/pluginInstaller.test.js.map +1 -1
  53. package/dist/pluginPackaging.test.js +135 -6
  54. package/dist/pluginPackaging.test.js.map +1 -1
  55. package/dist/services/boardReconcileService.d.ts +1204 -0
  56. package/dist/services/boardReconcileService.js +1571 -0
  57. package/dist/services/boardReconcileService.js.map +1 -0
  58. package/dist/services/deliveryAdmission.d.ts +2 -0
  59. package/dist/services/deliveryAdmission.js +2 -2
  60. package/dist/services/deliveryAdmission.js.map +1 -1
  61. package/dist/setup.test.js +299 -28
  62. package/dist/setup.test.js.map +1 -1
  63. package/dist/stdoutRegression.test.js +5 -2
  64. package/dist/stdoutRegression.test.js.map +1 -1
  65. package/dist/verification.js +12 -2
  66. package/dist/verification.js.map +1 -1
  67. package/dist/version.d.ts +6 -0
  68. package/dist/version.js +16 -1
  69. package/dist/version.js.map +1 -1
  70. package/package.json +2 -1
  71. package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
  72. package/plugins/ai-delivery/plugin.json +1 -1
  73. package/plugins/ai-delivery/runtime/dist/THIRD-PARTY-NOTICES.md +24 -0
  74. package/plugins/ai-delivery/runtime/dist/cli.js +72 -71
  75. package/plugins/ai-delivery/runtime/package.json +1 -1
package/README.md CHANGED
@@ -303,6 +303,7 @@ 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
 
@@ -484,6 +485,53 @@ and 20 oldest issues. `--max-project-pages` bounds Project status collection. Li
484
485
  produce explicit partial **observed** counts, not complete zeroes. Issues whose
485
486
  current Project status cannot be resolved have a separate unknown count.
486
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
+
487
535
  ## Typed issue journals
488
536
 
489
537
  `issue_comment` posts a typed journal through the configured author role. The public
@@ -0,0 +1 @@
1
+ export {};