@aviaratech/ai-delivery 0.3.31 → 0.3.33
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 +116 -3
- package/dist/cli.js +28 -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/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/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 +53 -6
- package/dist/issue.js +696 -58
- 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/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 +104 -12
- package/dist/mcp/tools.js +50 -34
- package/dist/mcp/tools.js.map +1 -1
- package/dist/services/agentReadinessService.js +2 -0
- package/dist/services/agentReadinessService.js.map +1 -1
- package/dist/setup.js +65 -2
- package/dist/setup.js.map +1 -1
- package/dist/setup.test.js +857 -23
- package/dist/setup.test.js.map +1 -1
- package/dist/verification.js +42 -3
- package/dist/verification.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 +67 -55
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/intake-create/SKILL.md +22 -2
|
@@ -31,9 +31,9 @@ Choose native Points from the configured values within 1–8. Split a 13-point i
|
|
|
31
31
|
|
|
32
32
|
1. Call `issue_create` or `issue_update` with typed problem/outcome/acceptanceCriteria/outOfScope/openQuestions/context/bug fields, title, configured Issue Type and Points. Ready is the default. Each blocking diagnostic includes `code`, `field`, and `fixHint`: fix every reported field and retry only the rejected write. Do not retry an uncertain native mutation without authoritative readback.
|
|
33
33
|
2. Use `draft: true` only for explicitly parked, incomplete work. It produces a Draft status; resolve fields and set `draft: false` to resume Ready intake. Drafts still reject secrets. Existing `park` also retains execution as a draft.
|
|
34
|
-
3. Inspect the native readback and warnings. More than seven criteria, absent edge/regression/context, only machine-local evidence or
|
|
34
|
+
3. Inspect the native readback and warnings. More than seven criteria, absent edge/regression/context, only machine-local evidence or readable text strictly over 4,000 characters warn without blocking. Embedded issue-data is excluded. Consider a smaller scope or better proof.
|
|
35
35
|
4. Read `issue_info` and `issue_ready_check` before `issue_start`. Readiness validates the typed contract and live Points/blockers/tracking/draft state, without local path checks or a runnable-command requirement. Mentioning the Project Todo column is ordinary prose; unresolved decisions belong in `openQuestions`.
|
|
36
|
-
5. Bodies use `<!-- ai-delivery:issue@1 -->` with
|
|
36
|
+
5. Bodies use `<!-- ai-delivery:issue@1 -->` with canonical field data and five status fields: Ready/Draft, last updated in UTC, next milestone (default `Not started`), native blockers (or `None`), and latest journal (`None yet`). Create accepts `status.nextMilestone`; update also accepts display-only `status.blockers` and `status.latestJournal`. These single-line fields work in CLI field files. A status-only patch preserves every byte outside Status, including issue-data/start markers, and an unchanged patch keeps its timestamp. Display blockers do not mutate native dependencies; use `blockedBy` separately. Update typed fields rather than editing one generated copy. Legacy conversion preserves exact prior native history before default render omission, returning the prior/canonical diff. Incoming legacy bytes absent from history remain visible. `preserveHistory` controls history snapshots; `retainLegacyBody` independently controls readable legacy text and does not erase its embedded record or comments. Explicit `retainLegacyBody: false` is a deliberate render drop; with `preserveHistory: false`, the default retains unpreserved legacy text. Retention true keeps text visible even with history preservation. Repeated unchanged updates do not grow the body or duplicate history. Failed history readback or content drift refuses rewriting. Missing proof is reported, never invented. Review the diff and exact native readback.
|
|
37
37
|
|
|
38
38
|
The Draft/Ready structural JSON Schemas ship on the existing exported `AI_DELIVERY_MCP_TOOLS` issue-create definition as `issueContract`. Zod runtime validation also enforces semantic refinements (specific wording, bug evidence and secrets); portable structural JSON Schema alone does not prove readiness.
|
|
39
39
|
|
|
@@ -65,6 +65,26 @@ Save this UTF-8 typed field object as `/owned/issue.json` in your task-owned dir
|
|
|
65
65
|
}
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
## Batch tracking updates
|
|
69
|
+
|
|
70
|
+
For an authorized list of 1–50 current-repository updates, use
|
|
71
|
+
`issue_batch_update({repo, items, dryRun})`, or the CLI
|
|
72
|
+
`batch:update --items-file <UTF-8-JSON-array> [--dry-run]`. Each item supports the
|
|
73
|
+
complete `issue_update` contract, including close, defer/undefer, parent,
|
|
74
|
+
blockers, status, typed contract and history/render-retention fields. A per-item
|
|
75
|
+
repository must match the selected repository. Existing author and native guards
|
|
76
|
+
still apply; this tool adds no authority or live fixture permission.
|
|
77
|
+
|
|
78
|
+
Use dry run for read-only intent: it performs no writes, including journals,
|
|
79
|
+
history, metadata, Project or related-issue changes. Inspect each ordered plan
|
|
80
|
+
and current readback. Execution returns applied/unchanged/failed results for all
|
|
81
|
+
items and a summary; CLI retains complete JSON and exits nonzero for any failure.
|
|
82
|
+
Partial writes remain failed with observed state or an explicit unavailable
|
|
83
|
+
readback. Reconcile that existing state before retrying; a rerun skips satisfied
|
|
84
|
+
outcomes and reuses authored comments. Rate exhaustion stops remaining writes,
|
|
85
|
+
reports every remaining item and exposes only numeric rate-limit observations.
|
|
86
|
+
No cross-repository transaction, rollback or automatic mutation replay is implied.
|
|
87
|
+
|
|
68
88
|
## CLI fallback
|
|
69
89
|
|
|
70
90
|
Use the installed CLI when MCP is unavailable only if the user's requested tool/provider restrictions permit that fallback. An MCP-only request, “no other GitHub tool,” or unavailable/incompatible requested-provider stop above does not authorize CLI substitution. Substitute your configured author identity, intended repository, owned JSON path and actual issue number. Explicit CLI values override the corresponding field-file values; omitted flags preserve them. `--fields-file` accepts the same typed field patch used by MCP. These commands perform real native operations only under your already authorized lifecycle:
|