@aviaratech/ai-delivery 0.1.0 → 0.2.1

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 (58) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +124 -36
  3. package/dist/agent.d.ts +4 -1
  4. package/dist/agent.js +2 -1
  5. package/dist/agent.js.map +1 -1
  6. package/dist/cli.js +19 -5
  7. package/dist/cli.js.map +1 -1
  8. package/dist/config/deliveryConfig.d.ts +102 -4
  9. package/dist/config/deliveryConfig.js +120 -31
  10. package/dist/config/deliveryConfig.js.map +1 -1
  11. package/dist/config/deliveryConfig.test.js +9 -7
  12. package/dist/config/deliveryConfig.test.js.map +1 -1
  13. package/dist/dispatch.d.ts +1 -0
  14. package/dist/dispatch.js +50 -24
  15. package/dist/dispatch.js.map +1 -1
  16. package/dist/fixtures/discovery.d.ts +74 -0
  17. package/dist/fixtures/discovery.js +94 -0
  18. package/dist/fixtures/discovery.js.map +1 -0
  19. package/dist/git.d.ts +1 -1
  20. package/dist/git.js +13 -9
  21. package/dist/git.js.map +1 -1
  22. package/dist/github/client.d.ts +1 -1
  23. package/dist/github/commandIdentityPolicy.d.ts +1 -1
  24. package/dist/github/discovery.d.ts +22 -0
  25. package/dist/github/discovery.js +226 -0
  26. package/dist/github/discovery.js.map +1 -0
  27. package/dist/github/discovery.test.d.ts +1 -0
  28. package/dist/github/discovery.test.js +195 -0
  29. package/dist/github/discovery.test.js.map +1 -0
  30. package/dist/github/projectDelivery.d.ts +5 -0
  31. package/dist/github/projectDelivery.js +48 -8
  32. package/dist/github/projectDelivery.js.map +1 -1
  33. package/dist/github/repo.d.ts +3 -2
  34. package/dist/github/repo.js +24 -7
  35. package/dist/github/repo.js.map +1 -1
  36. package/dist/issue.d.ts +6 -1
  37. package/dist/issue.js +23 -3
  38. package/dist/issue.js.map +1 -1
  39. package/dist/lifecycle.test.js +416 -33
  40. package/dist/lifecycle.test.js.map +1 -1
  41. package/dist/mcp/index.js +6 -3
  42. package/dist/mcp/index.js.map +1 -1
  43. package/dist/mcp/tools.d.ts +1 -1
  44. package/dist/pr.js +25 -13
  45. package/dist/pr.js.map +1 -1
  46. package/dist/pr.test.js +3 -0
  47. package/dist/pr.test.js.map +1 -1
  48. package/dist/services/deliveryAdmission.d.ts +5 -2
  49. package/dist/services/deliveryAdmission.js +5 -4
  50. package/dist/services/deliveryAdmission.js.map +1 -1
  51. package/dist/verification.d.ts +3 -0
  52. package/dist/verification.js +153 -22
  53. package/dist/verification.js.map +1 -1
  54. package/dist/worktree.d.ts +4 -0
  55. package/dist/worktree.js +9 -7
  56. package/dist/worktree.js.map +1 -1
  57. package/package.json +1 -1
  58. package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
package/CONTRIBUTING.md CHANGED
@@ -28,7 +28,7 @@ the `npm-publish` environment. Before enabling it, the repository owner must:
28
28
  3. For a new npm package name, have the package owner establish it with a
29
29
  separately authorized and reviewed initial version before configuring
30
30
  trusted publishing. npm cannot bind a trusted publisher before the package
31
- exists. Keep the `0.1.0` release for the protected OIDC workflow; do not add
31
+ exists. Use the protected OIDC workflow for subsequent releases; do not add
32
32
  npm credentials to Actions or substitute a token-based workflow.
33
33
  4. Register `@aviaratech/ai-delivery` with npm trusted publishing for GitHub
34
34
  organization `aviaratech`, repository `ai-delivery`, workflow filename
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # ai-delivery
2
2
 
3
- Generic GitHub issue and pull request delivery for repositories that opt in with a source-controlled `ai-delivery.config.json` and a `RepositoryDeliveryPolicy@1` module. The package provides one `ai-delivery` CLI, one stdio MCP server, and thin plugin assets in `plugins/ai-delivery`.
3
+ Generic GitHub issue and pull request delivery with Git/GitHub discovery and a source-controlled `RepositoryDeliveryPolicy@1` module. Routing overrides are optional. The package provides one `ai-delivery` CLI, one stdio MCP server, and thin plugin assets in `plugins/ai-delivery`.
4
4
 
5
- The package contains no repository-specific policy, credential, model, or deployment configuration. A consuming repository owns its issue taxonomy, native Project fields, author and reviewer GitHub App credentials, delivery stages, and phase constraints. The runtime refuses a missing or untracked configuration or policy module.
5
+ The package contains no repository-specific policy, credential, model, or deployment configuration. A consuming repository owns its issue taxonomy, native Project fields, author and reviewer GitHub App credentials, delivery stages, and phase constraints. The runtime refuses an untracked override file or a missing or untracked policy module. Credentials and delivery policy remain explicit.
6
6
 
7
7
  ## Availability and installation
8
8
 
@@ -13,7 +13,7 @@ procedure before any lifecycle write.
13
13
  ```sh
14
14
  node --version # 24.21.0
15
15
  npm --version # 11.19.0
16
- npm install --save-dev @aviaratech/ai-delivery@0.1.0
16
+ npm install --save-dev @aviaratech/ai-delivery@0.2.1
17
17
  npx ai-delivery --help
18
18
  npx ai-delivery --repo-root /absolute/path/to/consumer --identity configured-author info --issue 17
19
19
  npx ai-delivery --repo-root /absolute/path/to/consumer --identity configured-author mcp:serve
@@ -26,37 +26,125 @@ installation.
26
26
 
27
27
  ## Configure a consuming repository
28
28
 
29
- Commit `ai-delivery.config.json` at that repository's Git root. It selects the
30
- repository, its native issue types, Project number, exact Points/Priority field
31
- IDs and choices, four Project status names, command checks and timeouts, a
32
- `RepositoryDeliveryPolicy@1` module, and distinct author and reviewer App role
33
- names. Field IDs and choices must match the consuming repository's live GitHub
34
- metadata. The parser and policy contract are exported from
35
- `@aviaratech/ai-delivery`; `src/config/deliveryConfig.test.ts` and
36
- `src/delivery/delivery.test.ts` contain fully synthetic examples for unrelated
37
- repositories. Copy their shape, then substitute your own repository's native
38
- metadata and policy. There is no built-in organization policy or stage list.
39
-
40
- The policy module must implement `classifyExactRange` and `validateBoundary`.
41
- It defines the repository's ordered verification stages, risk and any additional
42
- publication or merge constraints. Its source is tracked alongside the config;
43
- source/config/policy drift invalidates prior receipts. Run the consumer's policy
44
- checks before making lifecycle writes. A missing or untracked module is refused.
45
-
46
- Set each role's three configured **environment variable names** to the App ID,
47
- installation ID and private-key file path on the host. Keep secret values and
48
- key files out of Git and out of CLI arguments. The author App installation
49
- requires Contents, Issues, organization Projects and Pull requests **write**
50
- permissions. The reviewer App installation requires Contents **read** and Pull
51
- requests **write** permissions. A consuming policy may require additional
52
- permissions. The roles must resolve to distinct actors. Personal token use is
53
- an explicit `--personal-auth` author-only mode;
54
- it is never a fallback. Use a deliberately synthetic test repository for the
55
- first end-to-end rehearsal; examples here must not be run against a live issue.
56
-
57
- Before any CLI or MCP lifecycle write, the consuming installer must place a private `ai-delivery.runtime-admission@1` record at `<git-common-dir>/ai-delivery/runtime-admission.json`. It binds the verified source archive, repository config digest, package version, capability 1, and actual CLI, MCP launcher, and plugin manifest byte hashes and real paths. Both invocation surfaces validate the same record before writes; a missing, stale, or mismatched record refuses the operation. Installation does not create this record automatically. Reinstall or reissue the record after package, config, or launcher changes. Existing rows in the canonical `.issue-cli/worktrees.json` registry remain with their original runtime unless they have an exact immutable `ai-delivery.worktree-owner@1` witness. Do not convert old receipts into new approvals or run old and new writers for the same active issue.
58
-
59
- `verify` classifies a clean Git base/head range, runs only the stages selected by the repository policy, and persists content-addressed private checkpoints under the Git common directory. It reuses compatible complete stages and rejects corrupt or stale inputs. The `--admit` flag explicitly admits additional resource classes. Publication creates a draft PR only after exact-head verification; a high-risk policy also requires a prepublication review artifact. Ready promotion and merge require a submitted formal review. Merge checks live blockers, checks, base/head coordinates, and the policy boundary. Repositories may require an exact base/head lease for merge.
29
+ Keep the repository's delivery policy in `ai-delivery.policy.mjs` at its Git
30
+ root. Its default export remains `RepositoryDeliveryPolicy@1`, implementing
31
+ `classifyExactRange` and `validateBoundary` with the repository's actual required
32
+ checks, stages, risk and publication/merge constraints. There is no permissive
33
+ default policy. Add a named `deliverySettings` export for explicit authentication
34
+ roles and command settings:
35
+
36
+ ```js
37
+ export const deliverySettings = {
38
+ roles: {
39
+ author: {
40
+ identity: 'delivery-author',
41
+ credentialEnv: {
42
+ appId: 'DELIVERY_AUTHOR_APP_ID',
43
+ installationId: 'DELIVERY_AUTHOR_INSTALLATION_ID',
44
+ privateKeyPath: 'DELIVERY_AUTHOR_KEY_PATH',
45
+ },
46
+ },
47
+ reviewer: {
48
+ identity: 'delivery-reviewer',
49
+ credentialEnv: {
50
+ appId: 'DELIVERY_REVIEWER_APP_ID',
51
+ installationId: 'DELIVERY_REVIEWER_INSTALLATION_ID',
52
+ privateKeyPath: 'DELIVERY_REVIEWER_KEY_PATH',
53
+ },
54
+ },
55
+ },
56
+ commandPolicy: {
57
+ checks: { format: 'REQUIRED', gitClean: 'REQUIRED', lint: 'REQUIRED', test: 'REQUIRED', typecheck: 'REQUIRED' },
58
+ timeoutsMs: { lint: 60000, test: 60000, typecheck: 60000 },
59
+ },
60
+ };
61
+ // Retain the default RepositoryDeliveryPolicy@1 export with real stage commands.
62
+ ```
63
+
64
+ No JSON file is needed when discovery is unambiguous. The resolver reads the
65
+ checkout's single GitHub remote, verifies its repository identity with GitHub,
66
+ and discovers repository issue types and inherited organization issue fields.
67
+ The standard field names are `Points`, `Priority` and `Status`, with workflow
68
+ options `Todo`, `In Progress`, `Blocked` and `Done`. Points and Priority must be
69
+ native organization single-select issue fields bound into the Project; unrelated
70
+ Project-owned fields are rejected. This release supports github.com organization
71
+ repositories, matching the existing native metadata contract.
72
+
73
+ The default Project is the one compatible open Project linked to that repository
74
+ and visible to the configured discovery identity. All pages are read before
75
+ selection. Zero or multiple compatible Projects require an explicit choice.
76
+ API failures, null/partial results, and an unwritable compatible Project fail
77
+ without falling back to another destination. No Project is inferred from issue
78
+ history, its name, or organization-wide availability. GitHub's Project-to-default-
79
+ repository setting does not define a repository's default Project. Linked
80
+ Projects must belong to the repository organization.
81
+
82
+ For exceptions, commit a small `ai-delivery.config.json`, for example:
83
+
84
+ ```json
85
+ {
86
+ "schemaVersion": "ai-delivery.config@2",
87
+ "remote": "upstream",
88
+ "project": 7,
89
+ "policy": { "module": "./scripts/delivery-policy.mjs" }
90
+ }
91
+ ```
92
+
93
+ Every field is optional. Multiple remotes require `remote`; a GitHub fork also
94
+ requires an explicit remote choice. `repository`, when present, is an assertion
95
+ against that remote. `project` explicitly selects an organization Project number
96
+ and takes precedence over linked-project discovery. `pointsField`,
97
+ `priorityField`, `statusField`, and `statuses` (all four `todo`, `inProgress`,
98
+ `blocked`, `done` names) express custom meanings without copying GitHub IDs or
99
+ option catalogs. Optional `issueTypes` restricts the discovered enabled types;
100
+ unavailable types are refused. IDs, titles and available choices remain GitHub
101
+ facts. Unknown keys and legacy full-config files are refused.
102
+
103
+ Worktree bases, verification, PR fetches and cleanup all use the selected remote's
104
+ tracking refs. Fetch that remote and set its remote HEAD before delivery when its
105
+ default branch is not `main`; delivery never falls back to another remote or a
106
+ local branch to establish its base.
107
+
108
+ Set each role's environment variables to its App ID, installation ID and absolute
109
+ private-key path. Secret values and keys stay outside Git. The author App needs
110
+ Contents, Issues, organization Projects and Pull requests write permissions plus
111
+ read access to repository issue types and fields. Discovery uses that author
112
+ identity; review operations still use the distinct reviewer App (Contents read,
113
+ Pull requests write). Personal author authentication requires explicit
114
+ `--identity personal --personal-auth`; it is never an automatic fallback.
115
+
116
+ Inspect the result before issuing a new runtime admission:
117
+
118
+ ```sh
119
+ npx ai-delivery --repo-root /absolute/path/to/consumer config:resolve
120
+ ```
121
+
122
+ This read returns `routing` (repository, Project/field/option identities and
123
+ selection source) and `configDigest`. CLI and MCP use the same asynchronous
124
+ `loadDeliveryConfig` resolver. `issue_create` and `issue_info` also expose the
125
+ resolved routing. An MCP server stays bound to its startup checkout; use separate
126
+ bindings or explicit CLI checkout selection for multiple repositories.
127
+
128
+ The consumer installer must issue a private `ai-delivery.runtime-admission@2`
129
+ record at `<git-common-dir>/ai-delivery/runtime-admission.json`. It binds the
130
+ verified archive, package version, capability 2, actual CLI/MCP/plugin bytes and
131
+ paths, repository and the resolver's `configDigest`. That digest includes the
132
+ policy/settings source, validated effective roles and checks, optional overrides
133
+ and effective discovered routing;
134
+ **do not substitute a JSON-file hash**. Drift in the Project, fields, options,
135
+ policy, overrides or installed bytes invalidates admission and verification
136
+ receipts. Resolution never refreshes its own admission during a mutation.
137
+
138
+ To migrate from 0.1: move `roles` and `commandPolicy` into the existing policy's
139
+ `deliverySettings` export; replace the old JSON with only necessary overrides
140
+ (or remove it when using the default policy filename); await `loadDeliveryConfig`
141
+ in installer integrations; review the resolved destination and reissue capability-2
142
+ admission using its digest. Do not upgrade old receipts into approvals. Existing
143
+ rows in `.issue-cli/worktrees.json` remain with their original runtime unless
144
+ they already have an exact `ai-delivery.worktree-owner@1` witness. Installing this
145
+ package never adopts or switches an active legacy writer.
146
+
147
+ `verify` classifies a clean Git base/head range, runs only the stages selected by the repository policy, and persists content-addressed private checkpoints under the Git common directory. It reuses compatible complete stages and rejects corrupt or stale inputs. Selected stage commands run asynchronously without a total-duration deadline. Bounded JSON status lines on stderr show the current stage and command, completed/reused/remaining stage counts, elapsed time, and captured output bytes when a command starts and every five seconds while it runs. These observations are not completion evidence; only complete receipts and the exact-source aggregate establish that. Captured stdout and stderr together remain limited to 8 MiB. Cancellation stops the current owned process group on POSIX and preserves completed checkpoints for a later retry. The `--admit` flag explicitly admits additional resource classes. Publication creates a draft PR only after exact-head verification; a high-risk policy also requires a prepublication review artifact. Ready promotion and merge require a submitted formal review. Merge checks live blockers, checks, base/head coordinates, and the policy boundary. Repositories may require an exact base/head lease for merge.
60
148
 
61
149
  For recovery, inspect the original issue/PR, worktree registry and exact source
62
150
  head before retrying. A `created-not-started` response includes `safeResume`
@@ -69,7 +157,7 @@ routing belong to a separate orchestrator, not this CLI.
69
157
 
70
158
  ## Compatibility contract
71
159
 
72
- The MCP input and result contract is `ai-delivery.mcp@1`, exported as `AI_DELIVERY_MCP_CONTRACT_VERSION`. It retains the 13 `issue_*` tool names. Each tool rejects unknown fields at the request boundary. `issue_create` accepts a title with optional body, Issue Type, Points, Priority, taxonomy labels, milestone, parent and blockers; it returns `{body, created: {number, title, url}}`. A linked parent is read back and cleared of Points. `issue_start({issueNumber})` always checks readiness and prepares that existing issue; `develop` gates only preparation of a newly created issue. New starts default to 2 Points. `resumeCreated` requires both `issueNumber` and `develop: true` and never creates a second issue. Immediate creation and development preflights readiness before creation and returns `ai-delivery.issue-start-registration@1` with `status: "started"` or a `created-not-started` failure and exact `safeResume` arguments. The CLI prints that recovery JSON and exits nonzero for `created-not-started`. Scratch starts derive safe names from the request or title and return the branch and worktree path. `repo` on create, start and ready check, or global CLI `--repo`, must match the repository selected by the checkout's validated config; a mismatch fails before a GitHub call.
160
+ The MCP input and result contract is `ai-delivery.mcp@1`, exported as `AI_DELIVERY_MCP_CONTRACT_VERSION`. It retains the 13 `issue_*` tool names. Each tool rejects unknown fields at the request boundary. `issue_create` accepts a title with optional body, Issue Type, Points, Priority, taxonomy labels, milestone, parent and blockers; it returns `{body, created: {number, title, url}, routing}`. A linked parent is read back and cleared of Points. `issue_start({issueNumber})` always checks readiness and prepares that existing issue; `develop` gates only preparation of a newly created issue. New starts default to 2 Points. `resumeCreated` requires both `issueNumber` and `develop: true` and never creates a second issue. Immediate creation and development preflights readiness before creation and returns `ai-delivery.issue-start-registration@1` with `status: "started"` or a `created-not-started` failure and exact `safeResume` arguments. The CLI prints that recovery JSON and exits nonzero for `created-not-started`. Scratch starts derive safe names from the request or title and return the branch and worktree path. `repo` on create, start and ready check, or global CLI `--repo`, must match the repository selected by the checkout's validated Git remote; a mismatch fails before a GitHub call.
73
161
 
74
162
  `issue_update` returns authoritative issue readback; `issue_info` returns current native metadata, parent, blockers, Project state and registered worktree; `issue_ready_check` returns deterministic admission and reasons; `issue_develop` and `issue_worktree_create` return registered worktree rows. `issue_verify` returns classification, aggregate, manifest and publication evidence IDs. `issue_pr_create` returns the PR number, URL and bound publication evidence ID; `issue_pr_info` returns number, state, exact head/base, draft flag and URL. `issue_pr_review` returns an exact-head submitted review receipt, `issue_pr_merge` a durable merge receipt, and `issue_finish` returns the merge SHA and successful issue/cleanup readback. CLI and MCP call the same owners for these tools.
75
163
 
@@ -77,7 +165,7 @@ The CLI also exposes native relationship reads (`parent`, `subissues`, `blockers
77
165
 
78
166
  ## Contributor checks and release
79
167
 
80
- Use Node 24.21.0 and npm 11.19.0. `npm ci` installs the single committed lockfile; `npm run checks` is the canonical local gate and runs Oxfmt, native Oxlint with `oxlint-tsgolint`, strict TypeScript, a compiled build, and Vitest over the emitted `dist/**/*.test.js` files. The compiled test target preserves CLI child-process and package-file assertions. `npm run build` can be run separately before packing. Tests retain the accepted 25 synthetic lifecycle, identity, receipt, recovery, cleanup, and plugin cases. See [CONTRIBUTING.md](CONTRIBUTING.md) for the local commands and release prerequisites.
168
+ Use Node 24.21.0 and npm 11.19.0. `npm ci` installs the single committed lockfile; `npm run checks` is the canonical local gate and runs Oxfmt, native Oxlint with `oxlint-tsgolint`, strict TypeScript, a compiled build, and Vitest over the emitted `dist/**/*.test.js` files. The compiled test target preserves CLI child-process and package-file assertions. `npm run build` can be run separately before packing. Tests cover discovery, identity, admission drift, lifecycle receipts, interruption/recovery, cleanup, and plugin boundaries with synthetic repositories. See [CONTRIBUTING.md](CONTRIBUTING.md) for the local commands and release prerequisites.
81
169
 
82
170
  The standalone lint config enables native error, promise, unsafe-value, and explicit-type checks. TypeScript uses exact optional properties, checked indexed access, explicit overrides, return/fallthrough, and unused-symbol checks. Tests and review cover the delivery behavior boundary.
83
171
 
package/dist/agent.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { loadDeliveryConfig, parseDeliveryConfig, resolveDeliveryRoleCredentials } from './config/deliveryConfig.js';
1
+ export { loadDeliveryConfig, loadDeliverySettings, readDeliveryOverrides, parseDeliveryConfig, resolveDeliveryRoleCredentials, } from './config/deliveryConfig.js';
2
2
  export type { DeliveryConfig, DeliveryRole, LoadedDeliveryConfig } from './config/deliveryConfig.js';
3
3
  export { createDeliveryGitHubClients } from './github/client.js';
4
4
  export { resolveDeliveryRepo } from './github/repo.js';
@@ -15,3 +15,6 @@ export type { DeliveryRecord, VelocityReport, PointBucketStatistics } from './se
15
15
  export { getIssueWorktreeStrict, listWorktreesStrict } from './services/worktreeRegistry.js';
16
16
  export { prepareIssueWorktree, prepareStandaloneWorktree } from './worktree.js';
17
17
  export { verifyIssue, createIssuePhaseEvidence } from './verification.js';
18
+ export { discoverDeliveryRouting } from './github/discovery.js';
19
+ export type { DeliveryRouting, DiscoveryClients } from './github/discovery.js';
20
+ export type { DeliveryOverrides, DeliveryPolicySettings, LoadedDeliverySettings } from './config/deliveryConfig.js';
package/dist/agent.js CHANGED
@@ -1,4 +1,4 @@
1
- export { loadDeliveryConfig, parseDeliveryConfig, resolveDeliveryRoleCredentials } from './config/deliveryConfig.js';
1
+ export { loadDeliveryConfig, loadDeliverySettings, readDeliveryOverrides, parseDeliveryConfig, resolveDeliveryRoleCredentials, } from './config/deliveryConfig.js';
2
2
  export { createDeliveryGitHubClients } from './github/client.js';
3
3
  export { resolveDeliveryRepo } from './github/repo.js';
4
4
  export { AI_DELIVERY_MCP_CONTRACT_VERSION, AI_DELIVERY_MCP_TOOLS, createAiDeliveryMcpServer } from './mcp/index.js';
@@ -13,4 +13,5 @@ export { buildVelocityReport, getDeliveryRecords, recordMergedDelivery } from '.
13
13
  export { getIssueWorktreeStrict, listWorktreesStrict } from './services/worktreeRegistry.js';
14
14
  export { prepareIssueWorktree, prepareStandaloneWorktree } from './worktree.js';
15
15
  export { verifyIssue, createIssuePhaseEvidence } from './verification.js';
16
+ export { discoverDeliveryRouting } from './github/discovery.js';
16
17
  //# sourceMappingURL=agent.js.map
package/dist/agent.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAErH,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACpH,OAA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AC;AACpH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC/G,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACrH,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEpH,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/cli.js CHANGED
@@ -17,7 +17,7 @@ const program = new Command();
17
17
  program
18
18
  .name('ai-delivery')
19
19
  .description('Generic GitHub issue and pull request delivery')
20
- .version('0.1.0')
20
+ .version('0.2.1')
21
21
  .option('--identity <name>', 'Configured author or reviewer identity')
22
22
  .option('--personal-auth', 'Explicit personal-token author mode')
23
23
  .option('--repo <owner/name>', 'Repository selector; must match the configured checkout')
@@ -223,8 +223,11 @@ program
223
223
  .command('pr:checkout')
224
224
  .requiredOption('--pr <number>')
225
225
  .action(async (o) => {
226
- assertDeliveryRuntimeAdmitted(execution());
227
226
  const context = await contextFor(execution(), 'pr:checkout');
227
+ await assertDeliveryRuntimeAdmitted({
228
+ ...execution(),
229
+ ...(context.configuration ? { configuration: context.configuration } : {}),
230
+ });
228
231
  print(await checkoutPr(context, Number(o.pr)));
229
232
  });
230
233
  program
@@ -279,9 +282,13 @@ program
279
282
  .option('--pr <number>')
280
283
  .option('--name <name>')
281
284
  .action(async (o) => {
282
- assertDeliveryRuntimeAdmitted(execution());
283
285
  const context = await contextFor(execution(), 'worktrees:cleanup');
286
+ await assertDeliveryRuntimeAdmitted({
287
+ ...execution(),
288
+ ...(context.configuration ? { configuration: context.configuration } : {}),
289
+ });
284
290
  await cleanupNonIssueWorktree({
291
+ ...(context.configuration?.remote ? { remote: context.configuration.remote } : {}),
285
292
  repoRoot: context.root,
286
293
  ...(o.pr === undefined ? {} : { prNumber: Number(o.pr) }),
287
294
  ...(o.name === undefined ? {} : { name: o.name }),
@@ -300,12 +307,19 @@ program
300
307
  .description('Report bounded terminal delivery metrics')
301
308
  .command('velocity')
302
309
  .option('--json', 'Print the canonical JSON report')
303
- .action(() => {
310
+ .action(async () => {
304
311
  const root = primaryGitRoot(execution().repoRoot);
305
- const config = loadDeliveryConfig(root).config;
312
+ const config = (await loadDeliveryConfig(root)).config;
306
313
  const report = buildVelocityReport(getDeliveryRecords(root), new Date(), config.native.points.values.map(Number));
307
314
  process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
308
315
  });
316
+ program
317
+ .command('config:resolve')
318
+ .description('Read the effective GitHub destination and admission digest')
319
+ .action(async () => {
320
+ const context = await contextFor(execution(), 'config:resolve');
321
+ print({ configDigest: context.configuration?.configDigest, routing: context.configuration?.routing });
322
+ });
309
323
  program.command('mcp:serve').action(async () => serveAiDeliveryMcp(execution()));
310
324
  program.parseAsync(process.argv).catch((error) => {
311
325
  process.stderr.write(`ai-delivery: ${error instanceof Error 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@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { type DiscoveryClients, type DeliveryRouting } from '../github/discovery.js';
2
3
  export declare const DELIVERY_CONFIG_FILE = "ai-delivery.config.json";
3
4
  export declare const DELIVERY_POLICY_CONTRACT = "RepositoryDeliveryPolicy@1";
4
5
  declare const DeliveryConfigSchema: z.ZodObject<{
@@ -89,20 +90,117 @@ declare const DeliveryConfigSchema: z.ZodObject<{
89
90
  identity: z.ZodString;
90
91
  }, z.core.$strict>;
91
92
  }, z.core.$strict>;
92
- schemaVersion: z.ZodLiteral<"ai-delivery.config@1">;
93
+ schemaVersion: z.ZodLiteral<"ai-delivery.config@2">;
93
94
  }, z.core.$strict>;
94
95
  export type DeliveryConfig = z.infer<typeof DeliveryConfigSchema>;
95
96
  export type DeliveryRole = keyof DeliveryConfig['roles'];
97
+ declare const OverridesSchema: z.ZodObject<{
98
+ schemaVersion: z.ZodOptional<z.ZodLiteral<"ai-delivery.config@2">>;
99
+ repository: z.ZodOptional<z.ZodString>;
100
+ remote: z.ZodOptional<z.ZodString>;
101
+ policy: z.ZodOptional<z.ZodObject<{
102
+ module: z.ZodString;
103
+ }, z.core.$strict>>;
104
+ project: z.ZodOptional<z.ZodNumber>;
105
+ pointsField: z.ZodOptional<z.ZodString>;
106
+ priorityField: z.ZodOptional<z.ZodString>;
107
+ statusField: z.ZodOptional<z.ZodString>;
108
+ statuses: z.ZodOptional<z.ZodObject<{
109
+ blocked: z.ZodString;
110
+ done: z.ZodString;
111
+ inProgress: z.ZodString;
112
+ todo: z.ZodString;
113
+ }, z.core.$strict>>;
114
+ issueTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
+ }, z.core.$strict>;
116
+ export type DeliveryOverrides = z.infer<typeof OverridesSchema>;
117
+ declare const PolicySettingsSchema: z.ZodObject<{
118
+ roles: z.ZodObject<{
119
+ author: z.ZodObject<{
120
+ credentialEnv: z.ZodObject<{
121
+ appId: z.ZodString;
122
+ installationId: z.ZodString;
123
+ privateKeyPath: z.ZodString;
124
+ }, z.core.$strict>;
125
+ identity: z.ZodString;
126
+ }, z.core.$strict>;
127
+ reviewer: z.ZodObject<{
128
+ credentialEnv: z.ZodObject<{
129
+ appId: z.ZodString;
130
+ installationId: z.ZodString;
131
+ privateKeyPath: z.ZodString;
132
+ }, z.core.$strict>;
133
+ identity: z.ZodString;
134
+ }, z.core.$strict>;
135
+ }, z.core.$strict>;
136
+ commandPolicy: z.ZodObject<{
137
+ checks: z.ZodObject<{
138
+ format: z.ZodEnum<{
139
+ REQUIRED: "REQUIRED";
140
+ OPTIONAL: "OPTIONAL";
141
+ SKIP: "SKIP";
142
+ }>;
143
+ gitClean: z.ZodEnum<{
144
+ REQUIRED: "REQUIRED";
145
+ OPTIONAL: "OPTIONAL";
146
+ SKIP: "SKIP";
147
+ }>;
148
+ lint: z.ZodEnum<{
149
+ REQUIRED: "REQUIRED";
150
+ OPTIONAL: "OPTIONAL";
151
+ SKIP: "SKIP";
152
+ }>;
153
+ test: z.ZodEnum<{
154
+ REQUIRED: "REQUIRED";
155
+ OPTIONAL: "OPTIONAL";
156
+ SKIP: "SKIP";
157
+ }>;
158
+ typecheck: z.ZodEnum<{
159
+ REQUIRED: "REQUIRED";
160
+ OPTIONAL: "OPTIONAL";
161
+ SKIP: "SKIP";
162
+ }>;
163
+ }, z.core.$strict>;
164
+ timeoutsMs: z.ZodObject<{
165
+ lint: z.ZodNumber;
166
+ test: z.ZodNumber;
167
+ typecheck: z.ZodNumber;
168
+ }, z.core.$strict>;
169
+ }, z.core.$strict>;
170
+ }, z.core.$strict>;
171
+ export type DeliveryPolicySettings = z.infer<typeof PolicySettingsSchema>;
172
+ export interface LoadedDeliverySettings extends DeliveryPolicySettings {
173
+ configPath: string | null;
174
+ overrides: DeliveryOverrides;
175
+ policy: DeliveryConfig['policy'];
176
+ policyModulePath: string;
177
+ repository: string;
178
+ sourceDigest: string;
179
+ }
96
180
  export interface LoadedDeliveryConfig {
97
181
  config: DeliveryConfig;
98
182
  configDigest: string;
99
- configPath: string;
183
+ configPath: string | null;
100
184
  policyModulePath: string;
185
+ remote: string | undefined;
186
+ routing: DeliveryRouting;
101
187
  }
102
- export declare function loadDeliveryConfig(repositoryRoot: string): LoadedDeliveryConfig;
188
+ /** The optional file contains choices, never a required copy of GitHub metadata. */
189
+ export declare function readDeliveryOverrides(repositoryRoot: string): {
190
+ overrides: DeliveryOverrides;
191
+ bytes: Buffer;
192
+ path: string | null;
193
+ };
194
+ /** Explicit credentials and checks stay with the already-required repository policy. */
195
+ export declare function loadDeliverySettings(repositoryRoot: string): Promise<LoadedDeliverySettings>;
196
+ /** One resolver supplies the CLI, MCP, installer admission and verification evidence. */
197
+ export declare function loadDeliveryConfig(repositoryRoot: string, options?: {
198
+ clients?: DiscoveryClients;
199
+ personalAuth?: boolean;
200
+ }): Promise<LoadedDeliveryConfig>;
103
201
  export declare function parseDeliveryConfig(input: unknown): DeliveryConfig;
104
202
  export declare function resolveDeliveryRoleCredentials(input: {
105
- config: DeliveryConfig;
203
+ config: Pick<DeliveryConfig, 'roles'>;
106
204
  env?: NodeJS.ProcessEnv;
107
205
  role: DeliveryRole;
108
206
  }): {