@aviaratech/ai-delivery 0.3.34 → 0.3.36
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/CONTRIBUTING.md +12 -206
- package/README.md +57 -506
- package/dist/agent.d.ts +0 -2
- package/dist/agent.js +76 -16
- package/dist/agent.js.map +7 -1
- package/dist/agentReadiness.test.js +73 -67
- package/dist/agentReadiness.test.js.map +7 -1
- package/dist/boardReconcile.test.js +1746 -0
- package/dist/boardReconcile.test.js.map +7 -0
- package/dist/build.test.js +130 -0
- package/dist/build.test.js.map +7 -0
- package/dist/callerErrors.test.js +105 -0
- package/dist/callerErrors.test.js.map +7 -0
- package/dist/cli.js +406 -485
- package/dist/cli.js.map +7 -1
- package/dist/cliResult.d.ts +2 -2
- package/dist/cliResult.js +42 -25
- package/dist/cliResult.js.map +7 -1
- package/dist/cliResult.test.js +434 -297
- package/dist/cliResult.test.js.map +7 -1
- package/dist/config/deliveryConfig.d.ts +320 -14
- package/dist/config/deliveryConfig.js +472 -385
- package/dist/config/deliveryConfig.js.map +7 -1
- package/dist/config/deliveryConfig.test.js +775 -584
- package/dist/config/deliveryConfig.test.js.map +7 -1
- package/dist/contributorChecks.test.js +1694 -916
- package/dist/contributorChecks.test.js.map +7 -1
- package/dist/currentConsumer.test.js +819 -737
- package/dist/currentConsumer.test.js.map +7 -1
- package/dist/currentTrackingScenario.test.js +499 -477
- package/dist/currentTrackingScenario.test.js.map +7 -1
- package/dist/delivery/common.js +160 -172
- package/dist/delivery/common.js.map +7 -1
- package/dist/delivery/delivery.test.js +509 -431
- package/dist/delivery/delivery.test.js.map +7 -1
- package/dist/delivery/evidence.d.ts +2 -2
- package/dist/delivery/evidence.js +133 -120
- package/dist/delivery/evidence.js.map +7 -1
- package/dist/delivery/index.js +7 -2
- package/dist/delivery/index.js.map +7 -1
- package/dist/delivery/legacy.js +65 -5
- package/dist/delivery/legacy.js.map +7 -1
- package/dist/delivery/policy.d.ts +10 -10
- package/dist/delivery/policy.js +211 -238
- package/dist/delivery/policy.js.map +7 -1
- package/dist/delivery/stage.d.ts +18 -18
- package/dist/delivery/stage.js +220 -235
- package/dist/delivery/stage.js.map +7 -1
- package/dist/deliveryBoard.d.ts +74 -0
- package/dist/deliveryBoard.js +644 -0
- package/dist/deliveryBoard.js.map +7 -0
- package/dist/deliveryBoard.test.d.ts +1 -0
- package/dist/deliveryBoard.test.js +649 -0
- package/dist/deliveryBoard.test.js.map +7 -0
- package/dist/deliveryHealth.test.js +179 -155
- package/dist/deliveryHealth.test.js.map +7 -1
- package/dist/dependencyCompatibility.test.js +154 -140
- package/dist/dependencyCompatibility.test.js.map +7 -1
- package/dist/directoryIndependent.test.js +417 -383
- package/dist/directoryIndependent.test.js.map +7 -1
- package/dist/dispatch.d.ts +17 -12
- package/dist/dispatch.js +330 -322
- package/dist/dispatch.js.map +7 -1
- package/dist/errors.d.ts +16 -3
- package/dist/errors.js +104 -82
- package/dist/errors.js.map +7 -1
- package/dist/fixtures/deliveryBoardReplay.d.ts +56 -0
- package/dist/fixtures/deliveryBoardReplay.js +617 -0
- package/dist/fixtures/deliveryBoardReplay.js.map +7 -0
- package/dist/fixtures/discovery.d.ts +59 -19
- package/dist/fixtures/discovery.js +96 -90
- package/dist/fixtures/discovery.js.map +7 -1
- package/dist/fixtures/inertEntrypointChild.js +57 -56
- package/dist/fixtures/inertEntrypointChild.js.map +7 -1
- package/dist/fixtures/inertEntrypoints.d.ts +1 -1
- package/dist/fixtures/inertEntrypoints.js +321 -276
- package/dist/fixtures/inertEntrypoints.js.map +7 -1
- package/dist/fixtures/inertTarget.d.ts +78 -7
- package/dist/fixtures/inertTarget.js +769 -691
- package/dist/fixtures/inertTarget.js.map +7 -1
- package/dist/fixtures/issue63.d.ts +4 -3
- package/dist/fixtures/issue63.js +260 -274
- package/dist/fixtures/issue63.js.map +7 -1
- package/dist/fixtures/issueProjectItems.d.ts +20 -0
- package/dist/fixtures/issueProjectItems.js +15 -0
- package/dist/fixtures/issueProjectItems.js.map +7 -0
- package/dist/fixtures/readView.d.ts +120 -0
- package/dist/fixtures/readView.js +172 -0
- package/dist/fixtures/readView.js.map +7 -0
- package/dist/fixtures/recordedGitHubFlows.d.ts +120 -0
- package/dist/fixtures/recordedGitHubFlows.js +109 -0
- package/dist/fixtures/recordedGitHubFlows.js.map +7 -0
- package/dist/genericCompatibility.test.js +64 -55
- package/dist/genericCompatibility.test.js.map +7 -1
- package/dist/git.js +73 -67
- package/dist/git.js.map +7 -1
- package/dist/gitProcess.d.ts +1 -1
- package/dist/gitProcess.js +58 -53
- package/dist/gitProcess.js.map +7 -1
- package/dist/github/client.d.ts +2 -2
- package/dist/github/client.js +484 -379
- package/dist/github/client.js.map +7 -1
- package/dist/github/commandIdentityPolicy.js +44 -51
- package/dist/github/commandIdentityPolicy.js.map +7 -1
- package/dist/github/discovery.d.ts +3 -0
- package/dist/github/discovery.js +197 -201
- package/dist/github/discovery.js.map +7 -1
- package/dist/github/discovery.test.js +223 -177
- package/dist/github/discovery.test.js.map +7 -1
- package/dist/github/issueHistory.d.ts +2 -2
- package/dist/github/issueHistory.js +117 -125
- package/dist/github/issueHistory.js.map +7 -1
- package/dist/github/machineAuth.d.ts +1 -1
- package/dist/github/machineAuth.js +126 -117
- package/dist/github/machineAuth.js.map +7 -1
- package/dist/github/machineAuth.test.js +755 -639
- package/dist/github/machineAuth.test.js.map +7 -1
- package/dist/github/nativeIssueMetadata.js +286 -273
- package/dist/github/nativeIssueMetadata.js.map +7 -1
- package/dist/github/projectDelivery.d.ts +53 -1
- package/dist/github/projectDelivery.js +623 -460
- package/dist/github/projectDelivery.js.map +7 -1
- package/dist/github/relationships.d.ts +5 -2
- package/dist/github/relationships.js +434 -333
- package/dist/github/relationships.js.map +7 -1
- package/dist/github/repo.d.ts +1 -0
- package/dist/github/repo.js +123 -96
- package/dist/github/repo.js.map +7 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +7 -1
- package/dist/issue.d.ts +103 -7
- package/dist/issue.js +2104 -1547
- package/dist/issue.js.map +7 -1
- package/dist/issue63History.test.js +40 -42
- package/dist/issue63History.test.js.map +7 -1
- package/dist/issue63Routes.test.js +154 -143
- package/dist/issue63Routes.test.js.map +7 -1
- package/dist/issueBatchUpdate.test.js +1004 -683
- package/dist/issueBatchUpdate.test.js.map +7 -1
- package/dist/issueBlockerGuard.test.js +262 -226
- package/dist/issueBlockerGuard.test.js.map +7 -1
- package/dist/issueContract.d.ts +23 -4
- package/dist/issueContract.js +416 -395
- package/dist/issueContract.js.map +7 -1
- package/dist/issueContract.test.d.ts +4 -3
- package/dist/issueContract.test.js +358 -321
- package/dist/issueContract.test.js.map +7 -1
- package/dist/issueDates.test.js +235 -233
- package/dist/issueDates.test.js.map +7 -1
- package/dist/issueInfoReadback.test.js +304 -190
- package/dist/issueInfoReadback.test.js.map +7 -1
- package/dist/issueIntake.test.js +1945 -1732
- package/dist/issueIntake.test.js.map +7 -1
- package/dist/issueJournal.d.ts +40 -19
- package/dist/issueJournal.js +229 -138
- package/dist/issueJournal.js.map +7 -1
- package/dist/issueJournal.test.js +605 -422
- package/dist/issueJournal.test.js.map +7 -1
- package/dist/issueRollup.test.d.ts +1 -0
- package/dist/issueRollup.test.js +476 -0
- package/dist/issueRollup.test.js.map +7 -0
- package/dist/issueTracking.test.js +1088 -593
- package/dist/issueTracking.test.js.map +7 -1
- package/dist/issueWriteRecovery.test.d.ts +1 -0
- package/dist/issueWriteRecovery.test.js +260 -0
- package/dist/issueWriteRecovery.test.js.map +7 -0
- package/dist/lifecycle.test.js +112 -441
- package/dist/lifecycle.test.js.map +7 -1
- package/dist/logger.js +80 -74
- package/dist/logger.js.map +7 -1
- package/dist/mcp/index.js +116 -90
- package/dist/mcp/index.js.map +7 -1
- package/dist/mcp/tools.d.ts +790 -220
- package/dist/mcp/tools.js +267 -333
- package/dist/mcp/tools.js.map +7 -1
- package/dist/pluginAuthProbe.js +63 -52
- package/dist/pluginAuthProbe.js.map +7 -1
- package/dist/pluginAuthProbe.test.js +85 -62
- package/dist/pluginAuthProbe.test.js.map +7 -1
- package/dist/pluginCredentials.test.js +282 -259
- package/dist/pluginCredentials.test.js.map +7 -1
- package/dist/pluginDoctor.test.js +653 -588
- package/dist/pluginDoctor.test.js.map +7 -1
- package/dist/pluginInstaller.d.ts +7 -5
- package/dist/pluginInstaller.js +1173 -1231
- package/dist/pluginInstaller.js.map +7 -1
- package/dist/pluginInstaller.test.js +1822 -1283
- package/dist/pluginInstaller.test.js.map +7 -1
- package/dist/pluginPackaging.test.js +485 -305
- package/dist/pluginPackaging.test.js.map +7 -1
- package/dist/pr.d.ts +132 -94
- package/dist/pr.js +1521 -1323
- package/dist/pr.js.map +7 -1
- package/dist/pr.test.js +1678 -632
- package/dist/pr.test.js.map +7 -1
- package/dist/prAssociation.test.js +2419 -1788
- package/dist/prAssociation.test.js.map +7 -1
- package/dist/prDispatch.test.js +150 -89
- package/dist/prDispatch.test.js.map +7 -1
- package/dist/readView.d.ts +183 -0
- package/dist/readView.js +217 -0
- package/dist/readView.js.map +7 -0
- package/dist/readView.test.d.ts +1 -0
- package/dist/readView.test.js +119 -0
- package/dist/readView.test.js.map +7 -0
- package/dist/releaseReconciliation.test.js +267 -288
- package/dist/releaseReconciliation.test.js.map +7 -1
- package/dist/releaseWorkflow.test.js +2493 -422
- package/dist/releaseWorkflow.test.js.map +7 -1
- package/dist/review.d.ts +738 -2
- package/dist/review.js +601 -348
- package/dist/review.js.map +7 -1
- package/dist/review.test.js +1218 -812
- package/dist/review.test.js.map +7 -1
- package/dist/reviewSubmit.test.d.ts +1 -0
- package/dist/reviewSubmit.test.js +747 -0
- package/dist/reviewSubmit.test.js.map +7 -0
- package/dist/services/agentReadinessService.js +42 -37
- package/dist/services/agentReadinessService.js.map +7 -1
- package/dist/services/blockerGuardService.js +188 -188
- package/dist/services/blockerGuardService.js.map +7 -1
- package/dist/services/boardReconcileService.d.ts +1204 -0
- package/dist/services/boardReconcileService.js +1445 -0
- package/dist/services/boardReconcileService.js.map +7 -0
- package/dist/services/deliveryAdmission.d.ts +2 -0
- package/dist/services/deliveryAdmission.js +129 -152
- package/dist/services/deliveryAdmission.js.map +7 -1
- package/dist/services/deliveryHealthService.js +197 -199
- package/dist/services/deliveryHealthService.js.map +7 -1
- package/dist/services/legacyIssueMigration.js +263 -277
- package/dist/services/legacyIssueMigration.js.map +7 -1
- package/dist/services/worktreeRegistry.d.ts +27 -119
- package/dist/services/worktreeRegistry.js +765 -1182
- package/dist/services/worktreeRegistry.js.map +7 -1
- package/dist/stagedChecks.test.js +396 -194
- package/dist/stagedChecks.test.js.map +7 -1
- package/dist/start.test.js +99 -95
- package/dist/start.test.js.map +7 -1
- package/dist/stdoutRegression.test.js +354 -350
- package/dist/stdoutRegression.test.js.map +7 -1
- package/dist/targetPolicyDiscovery.test.js +141 -143
- package/dist/targetPolicyDiscovery.test.js.map +7 -1
- package/dist/targetPolicyEntrypoints.test.js +308 -269
- package/dist/targetPolicyEntrypoints.test.js.map +7 -1
- package/dist/targetPolicyLocal.test.js +580 -1051
- package/dist/targetPolicyLocal.test.js.map +7 -1
- package/dist/targetPolicyRoutes.test.js +305 -281
- package/dist/targetPolicyRoutes.test.js.map +7 -1
- package/dist/targetRepositoryExecution.test.d.ts +1 -0
- package/dist/targetRepositoryExecution.test.js +463 -0
- package/dist/targetRepositoryExecution.test.js.map +7 -0
- package/dist/terminalMessages.js +41 -35
- package/dist/terminalMessages.js.map +7 -1
- package/dist/toolOutput.d.ts +2 -0
- package/dist/toolOutput.js +36 -0
- package/dist/toolOutput.js.map +7 -0
- package/dist/toolOutput.test.d.ts +1 -0
- package/dist/toolOutput.test.js +240 -0
- package/dist/toolOutput.test.js.map +7 -0
- package/dist/utils/atomicJson.js +84 -76
- package/dist/utils/atomicJson.js.map +7 -1
- package/dist/utils/filesystem.js +15 -18
- package/dist/utils/filesystem.js.map +7 -1
- package/dist/utils/lockfile.js +68 -71
- package/dist/utils/lockfile.js.map +7 -1
- package/dist/verification.d.ts +1 -19
- package/dist/verification.js +1020 -1929
- package/dist/verification.js.map +7 -1
- package/dist/verificationGate.test.js +127 -117
- package/dist/verificationGate.test.js.map +7 -1
- package/dist/version.d.ts +6 -0
- package/dist/version.js +24 -10
- package/dist/version.js.map +7 -1
- package/dist/worktree.d.ts +3 -15
- package/dist/worktree.js +97 -177
- package/dist/worktree.js.map +7 -1
- package/package.json +10 -8
- package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
- package/plugins/ai-delivery/README.md +47 -156
- package/plugins/ai-delivery/plugin.json +1 -1
- package/plugins/ai-delivery/runtime/dist/THIRD-PARTY-NOTICES.md +261 -43
- package/plugins/ai-delivery/runtime/dist/cli.js +369 -125
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/intake-create/SKILL.md +14 -78
- package/plugins/ai-delivery/skills/pr-handoff/SKILL.md +35 -36
- package/plugins/ai-delivery/skills/worktree-lifecycle/SKILL.md +14 -15
- package/dist/investigationCompletion.test.js +0 -728
- package/dist/investigationCompletion.test.js.map +0 -1
- package/dist/setup.d.ts +0 -60
- package/dist/setup.js +0 -585
- package/dist/setup.js.map +0 -1
- package/dist/setup.test.js +0 -3058
- package/dist/setup.test.js.map +0 -1
- package/dist/worktreeTransition.d.ts +0 -211
- package/dist/worktreeTransition.js +0 -1037
- package/dist/worktreeTransition.js.map +0 -1
- package/dist/worktreeTransition.test.js +0 -1191
- package/dist/worktreeTransition.test.js.map +0 -1
- /package/dist/{investigationCompletion.test.d.ts → boardReconcile.test.d.ts} +0 -0
- /package/dist/{setup.test.d.ts → build.test.d.ts} +0 -0
- /package/dist/{worktreeTransition.test.d.ts → callerErrors.test.d.ts} +0 -0
|
@@ -1,180 +1,71 @@
|
|
|
1
1
|
# ai-delivery plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This self-contained Codex and Claude Code plugin bundles the existing `@aviaratech/ai-delivery` CLI and MCP server. Its launcher starts `mcp:serve` from the adjacent `runtime` directory, so the plugin does not need a parent npm installation, source build, or postinstall. Portable `plugin.json` and `mcp.json` files support both hosts; Claude-compatible `.claude-plugin/plugin.json` and `.mcp.json` files remain included. Package, CLI, MCP server, and native manifest versions agree. Application and bundled dependency notices ship with the launcher; MCP schemas, GitHub operations, repository routing, and delivery logic remain owned by the package.
|
|
4
4
|
|
|
5
|
-
The complete plugin is the canonical public installation for Codex and Claude Code.
|
|
5
|
+
The complete plugin is the canonical public installation for Codex and Claude Code. Its skills cover issue intake, host-owned worktree development, and pull request handoff. Install a published version with:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```sh
|
|
8
|
+
ai-delivery plugin install --host codex --scope user --version <published-version>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Use `--host claude-code` for Claude Code, with its supported `user`, `project`, or `local` scope. The same command group provides `doctor`, no-write `preview`, explicit-version `update`, `rollback` to the recorded previous version, and `remove`; each accepts `--dry-run` and `--json`. See the [package guide's plugin installation](../../README.md#plugin-installation) for managed version retention, read-only diagnostics, and data preservation.
|
|
12
|
+
|
|
13
|
+
Standalone MCP registration is legacy; new consumers should install one complete plugin. CLI, SDK, and MCP entry points remain available. Legacy support lasts at least two subsequent stable releases and 90 days after a qualified migration path first ships. The actual release/date anchor is unknown: this diagnostics phase starts no clock and removes no legacy support.
|
|
14
|
+
|
|
15
|
+
Remote tools accept explicit `repo` outside a checkout; one server can switch repositories. Roles default from settings without `AI_DELIVERY_IDENTITY`. Hosts own worktrees, checks, commits, and pushes. Plugin installation does not adopt historical custody.
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
## Preview, activation, and migration
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
Run `ai-delivery plugin preview --host codex --scope user --json` (or `--host claude-code`) to inspect bounded configuration candidates. Preview starts no native tool or server and creates no settings, backup, lock, or checkpoint. Its migration status is refused, planned changes are empty, and unknown source/version or unavailable scope evidence remain unknown. Codex table-header observations do not identify a TOML/profile/managed resolver; Claude custom-profile configuration remains unverified. Native doctor can observe an external marketplace installation without adopting ownership or starting an unknown launcher. Neither path restores or deletes per-plugin or per-tool preferences.
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
Installed artifacts, a separate doctor startup, and the conversation's actual loaded version are distinct evidence. Follow [Claude's surface-specific activation guidance](https://code.claude.com/docs/en/discover-plugins) or [Codex's MCP guidance](https://learn.chatgpt.com/docs/extend/mcp); there is no blanket loaded-version or restart claim. Live migration, apply, retirement, and settings rollback remain unavailable until exact authorized ownership, lossless settings preservation, and native writer exclusion are proved. Manifest qualification and actual native migration/adoption remain under [#116](https://github.com/aviaratech/ai-delivery/issues/116). No automatic npm cleanup or mandatory hook is added; directory admission is separate from npm/local-catalog distribution.
|
|
14
22
|
|
|
15
|
-
##
|
|
23
|
+
## Issue reads and tool discovery
|
|
16
24
|
|
|
17
|
-
|
|
25
|
+
For a remote read, ask in ordinary language, for example: “Use the ai-delivery MCP issue_info tool to read example/widget issue 17. Make no changes and don't use another GitHub tool.” MCP initialization guidance precedes deferred tool discovery. The existing intake skill supports ordinary reading, listing, searching, and authorized intake. A remote read with an explicit repository needs no checkout or typed issue-creation fields.
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
Carry the named repository into `repo`, discover the intended installed provider, and inspect its schema. In Claude Code, when a bare ai-delivery tool and the installed plugin's tool coexist, the observed plugin-qualified read is `mcp__plugin_ai-delivery_ai-delivery__issue_info` with `{"repo":"example/widget","issueNumber":17}`. This example is host-specific; do not hardcode the name for other clients. A competing `issueNumber`/`cached`-only tool without `repo` has a different contract, and an unsupported field cannot select the repository.
|
|
20
28
|
|
|
21
|
-
Honor explicit provider, read-only and MCP-only restrictions. If the requested compatible provider is unavailable, report that
|
|
29
|
+
Honor explicit provider, read-only, and MCP-only restrictions. If the requested compatible provider is unavailable, report that without changing directories, using another GitHub provider/CLI, or repairing registration. A successful explicit-repository read demonstrates that read path only; installed files or guidance do not prove provider selection, a running server's version, or host isolation. Native validation should retain the selected tool, schema, arguments, and result, with model/skill context when shown.
|
|
22
30
|
|
|
23
31
|
## Credentials and readiness
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
`DELIVERY_REVIEWER_KEY_PATH`; the last value names an absolute private-key file.
|
|
35
|
-
An App author needs its own three references. Role identities, reference names,
|
|
36
|
-
and authenticated actors must remain distinct. Never substitute an ambient token
|
|
37
|
-
or the author's credential for the reviewer.
|
|
38
|
-
|
|
39
|
-
The bundled launcher inherits the environment supplied by the native host. It
|
|
40
|
-
does not automatically read a shell profile, `.env` file, repository configuration,
|
|
41
|
-
or secret manager. A variable exported in a terminal may be absent from an
|
|
42
|
-
already-running GUI application. Supplying variables to a separate CLI command
|
|
43
|
-
does not change the native host's running MCP process.
|
|
44
|
-
|
|
45
|
-
The author resolver finds `gh` on that actual process PATH, with no hardcoded
|
|
46
|
-
installation path, shell-profile launch or current-directory search. It uses
|
|
47
|
-
supported `gh auth status --hostname github.com --active --json hosts` and
|
|
48
|
-
privately captures `gh auth token --hostname github.com --user <active-user>`.
|
|
49
|
-
Status JSON can exit zero despite authentication errors: the selected active
|
|
50
|
-
state and actual authenticated user must both pass and match. Inactive account
|
|
51
|
-
errors do not invalidate a healthy selected user. Missing/ambiguous/expired
|
|
52
|
-
sessions, identity mismatch or unavailable keyring refuse without another
|
|
53
|
-
account, login/switch/refresh or a permission grant. Only necessary non-secret
|
|
54
|
-
home/PATH/gh configuration selectors reach this child; credentials, debug flags,
|
|
55
|
-
injection flags and unrelated environment variables are excluded. The token and
|
|
56
|
-
raw stdout/stderr stay private to the selected auth client; no released files,
|
|
57
|
-
logs, settings or native diagnostic output receive them.
|
|
58
|
-
|
|
59
|
-
The package currently supports `github.com` only. An enterprise repository or
|
|
60
|
-
conflicting `GH_HOST` fails safely instead of substituting `github.com`.
|
|
61
|
-
`GH_CONFIG_DIR` / `XDG_CONFIG_HOME`, when supplied, retain their selected gh
|
|
62
|
-
configuration location rather than falling back to another profile. The role's
|
|
63
|
-
configured identity is a label; Git author metadata is not authentication.
|
|
64
|
-
Actual user/repository readback remains required. Read access does not prove a
|
|
65
|
-
future write is allowed or that a reviewer App approval will count.
|
|
66
|
-
|
|
67
|
-
Shell `gh` availability and a healthy keyring session do not prove native GUI
|
|
68
|
-
PATH/keyring visibility. After adopting the exact qualified package in each
|
|
69
|
-
host, retain an actual read-only native selected-user/repository readback, or
|
|
70
|
-
its actionable missing-gh/session refusal. A selected-runtime CLI pass does not
|
|
71
|
-
establish Codex/Claude GUI propagation. Author fallback never substitutes for
|
|
72
|
-
the reviewer App's configured credentials or identity.
|
|
73
|
-
|
|
74
|
-
Use an operator-controlled, host-supported environment mechanism for the selected
|
|
75
|
-
server and the configured reference names. [Codex's stdio configuration](https://developers.openai.com/codex/mcp)
|
|
76
|
-
supports per-server `env` and allow-and-forward `env_vars`; forwarding requires
|
|
77
|
-
the named input to exist in the selected local or remote environment.
|
|
78
|
-
[Claude Code's MCP configuration](https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json)
|
|
79
|
-
supports `${VAR}` expansion in server environment fields. Expansion also requires
|
|
80
|
-
the input to exist; an unresolved placeholder is not a supplied credential.
|
|
81
|
-
These mechanisms configure the host boundary, rather than importing consumer
|
|
82
|
-
policy. OpenAI does not expand Claude's `${user_config.*}` plugin options, so
|
|
83
|
-
those prompts are not a shared setup path for both hosts.
|
|
84
|
-
[OpenAI's compatibility guide](https://developers.openai.com/plugins/guides/submit-claude-plugin#replace-claude-userconfig)
|
|
85
|
-
describes this limitation.
|
|
86
|
-
|
|
87
|
-
Keep values in the operator's protected credential storage and out of plugin
|
|
88
|
-
manifests, released cache files, project settings, transcripts, and diagnostic
|
|
89
|
-
output. Select only the configured delivery references; do not export a whole
|
|
90
|
-
credential file or unrelated service variables. A scoped launcher may retain
|
|
91
|
-
ordinary inherited process variables: that is different from proving the entire
|
|
92
|
-
environment is sanitized. Restart the selected host after changing its launch
|
|
93
|
-
environment, then verify from that host. Native per-server setup must retain the
|
|
94
|
-
selected released plugin; do not patch its cache or add a competing server to
|
|
95
|
-
hide a missing-variable failure.
|
|
96
|
-
|
|
97
|
-
Treat each readiness layer separately:
|
|
98
|
-
|
|
99
|
-
| Layer | Evidence | What remains unproved |
|
|
100
|
-
| --------------------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
101
|
-
| Installed bytes | Selected version and matching source integrity | Server startup and credentials |
|
|
102
|
-
| Startup | Default `plugin doctor` initializes the bundled server and lists tools without credentials | Settings validity and GitHub use |
|
|
103
|
-
| User settings | The operator JSON validates its schema, role identities, reference names, and paths | Reference availability and authentication |
|
|
104
|
-
| Reference availability | Required variables are present; an absent conventional author reference may select the machine route | Token/key/session authentication remains separate |
|
|
105
|
-
| Supplied-environment CLI authentication | Explicit `config:resolve` returns the selected repository, author, reviewer, and rule visibility | The native GUI/CLI host process received the same inputs |
|
|
106
|
-
| Native authentication | A read-only tool call succeeds through the selected host's actual MCP process | Reviewer approval counts on a later exact PR head |
|
|
107
|
-
|
|
108
|
-
Default doctor is credential-free and does not contact GitHub or read user
|
|
109
|
-
settings, selected credential variables or keys. To opt in, run from the intended
|
|
110
|
-
credential environment with an explicit repository (required even outside Git):
|
|
33
|
+
Configure operator-owned JSON at `~/.config/aviaratech-ai/ai-delivery.json` and keep credential values in protected storage, outside source control and plugin/project files. The [package guide](../../README.md#user-configuration) documents the schema and credential flow. For its conventional personal author reference, a missing `GH_TOKEN` may use the machine's active `gh` session; a supplied value takes precedence. A custom reference such as `DELIVERY_AUTHOR_TOKEN` has no fallback. Invalid or denied explicit credentials fail closed. The reviewer App requires `DELIVERY_REVIEWER_APP_ID`, `DELIVERY_REVIEWER_INSTALLATION_ID`, and `DELIVERY_REVIEWER_KEY_PATH`; App authors require their own references. Never substitute an ambient token or the author's credential for the reviewer. Role labels and Git author metadata are not authentication.
|
|
34
|
+
|
|
35
|
+
The key path must name an absolute private-key file. Missing, ambiguous or expired sessions, selected-user mismatches, or unavailable keyrings refuse without account switching, login/refresh, or added permissions. Unrelated `GITHUB_TOKEN` never replaces the configured reference.
|
|
36
|
+
|
|
37
|
+
The launcher inherits the native host's environment; it does not read shell profiles, `.env` files, repo config, or a secret manager. Terminal exports may be absent from an already-running GUI host, and configuring a separate CLI does not update that MCP process. Use the host's supported mechanism: [Codex MCP](https://developers.openai.com/codex/mcp) forwards configured `env`/`env_vars`; [Claude Code MCP](https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json) expands `${VAR}` only when supplied to the host. OpenAI does not expand Claude `${user_config.*}` plugin options; see [the compatibility guide](https://developers.openai.com/plugins/guides/submit-claude-plugin#replace-claude-userconfig). Do not patch plugin cache or add a competing server to mask missing variables. Restart after changing launch environment and verify from the selected host.
|
|
38
|
+
|
|
39
|
+
Only `github.com` is supported. Enterprise repositories or conflicting `GH_HOST` fail rather than switching hosts. Supplied `GH_CONFIG_DIR`/`XDG_CONFIG_HOME` remain selected; no alternate profile is tried. `gh` availability and a healthy keyring do not prove native GUI visibility. A selected-runtime CLI pass does not establish GUI propagation, write access, or future reviewer approval. After selecting the exact released plugin, retain a native read-only selected-user/repository result or its actionable missing-gh/session refusal. See the package guide's [reviewer setup](../../README.md#five-minute-reviewer-setup) for App credential and approval details.
|
|
40
|
+
|
|
41
|
+
Default `plugin doctor` is credential-free: it starts the bundled server and lists tools without contacting GitHub or reading settings, credential references, or keys. To opt in to auth diagnostics, use the intended environment and an explicit repository, even outside Git:
|
|
111
42
|
|
|
112
43
|
```sh
|
|
113
44
|
ai-delivery --repo example/widget plugin doctor --host codex --scope user --check-auth --json
|
|
114
45
|
```
|
|
115
46
|
|
|
116
|
-
Use `--host claude-code` for the
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
request. Credential names must not overlap runtime selectors (`PATH`, `HOME`,
|
|
122
|
-
host/configuration selectors or Node/npm/Git environment controls).
|
|
123
|
-
|
|
124
|
-
The verified selected runtime's existing `config:resolve` owns the readback.
|
|
125
|
-
Only configured references and necessary selectors are forwarded; an eligible
|
|
126
|
-
machine route also retains the process's supported gh home/PATH/config selectors. Unrelated
|
|
127
|
-
variables, legacy personal overrides and caller Node injection flags are excluded.
|
|
128
|
-
Output separates settings, process references, authenticated author/reviewer,
|
|
129
|
-
repository access and visible rules. Authentication/discovery failure can leave
|
|
130
|
-
both identity and repository access unverified; a generic failure is not a
|
|
131
|
-
permission diagnosis. Raw errors, upstream bodies/headers and private-key paths
|
|
132
|
-
are withheld. Rule visibility or App permissions never imply counted approval.
|
|
133
|
-
The authentication probe supervises the selected CLI and its children. Its
|
|
134
|
-
30-second timeout and host cancellation await owned-process cleanup while
|
|
135
|
-
keeping captured output private. If cleanup cannot be confirmed, the result is
|
|
136
|
-
`probe_cleanup_unverified` and authentication remains unverified.
|
|
137
|
-
The machine author diagnostic includes its safe route/resolved executable. It
|
|
138
|
-
does not expose a token or claim a missing variable became present.
|
|
139
|
-
The invocation context is `selected_runtime_cli`, and native GUI propagation
|
|
140
|
-
remains `unverified`. Dry-run does not validate settings or authenticate.
|
|
141
|
-
|
|
142
|
-
For a direct package CLI readback, the existing command is:
|
|
47
|
+
Use `--host claude-code` for the managed native selection. Diagnostics refuse absent, disabled, modified, or failed-startup plugins, then validate settings and report missing variable names without values. Missing reviewer/custom references stop before key read or authentication. Credential names must not overlap runtime controls such as `PATH`, `HOME`, host config, or Node/npm/Git variables.
|
|
48
|
+
|
|
49
|
+
This opt-in probe supervises the selected CLI for 30 seconds and awaits owned cleanup on timeout/cancellation. Its output keeps raw errors, upstream bodies/headers, tokens, and key paths private. Unconfirmed cleanup (`probe_cleanup_unverified`) leaves authentication unverified; its `selected_runtime_cli` context does not prove GUI propagation. `--dry-run` neither validates settings nor authenticates.
|
|
50
|
+
|
|
51
|
+
For direct package CLI readback, run `config:resolve`:
|
|
143
52
|
|
|
144
53
|
```sh
|
|
145
54
|
ai-delivery --repo example/widget config:resolve
|
|
146
55
|
```
|
|
147
56
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
readable issue association. Check the configured author, reviewer and rule
|
|
164
|
-
visibility only after the dry-run succeeds.
|
|
165
|
-
|
|
166
|
-
A branch or issue/PR-state refusal can occur before reviewer preflight; it does
|
|
167
|
-
not establish that credentials are invalid. If the prerequisites or successful
|
|
168
|
-
dry-run result are unavailable, leave native full-role readiness unverified.
|
|
169
|
-
Keep any author-only native readback or separate CLI preflight labelled with its
|
|
170
|
-
own evidence context. Do not create a branch or PR to force this diagnostic.
|
|
171
|
-
Repeat for another explicitly selected repository when cross-repository access
|
|
172
|
-
is required; an outside-Git launch and repository switching require no consumer
|
|
173
|
-
policy files.
|
|
174
|
-
|
|
175
|
-
Record the host, selected version, repository, check, outcome, missing variable
|
|
176
|
-
names, and safe actor identifiers. Keep native GUI results, native CLI results,
|
|
177
|
-
supplied-environment package CLI results, and synthetic fixtures in separate
|
|
178
|
-
evidence categories. A fictional fixture validates a contract, not a real
|
|
179
|
-
credential or native installation. Do not include environment values, private
|
|
180
|
-
keys, private-key paths, headers, or raw authentication errors in shared reports.
|
|
57
|
+
It reads routing, authenticated author/reviewer App, and visible repository rules without creating an issue, branch, review, or PR. Discovery/auth failure can leave identity/access unknown; it is not a permission diagnosis. Synthetic fixtures validate contracts, not real credentials or native installation. Keep GUI, CLI, and fixture evidence separate; never share values, keys/paths, headers, or raw auth errors.
|
|
58
|
+
|
|
59
|
+
Inside either host, request actual read-only `issue_info` with a known issue and explicit `repo: "example/widget"`; label it author-only. Full-role `issue_pr_create` with `dryRun: true` requires an existing open issue, a linked branch with readable valid head, default base, and compatible existing PR/issue association. If multiple linked branches exist, name one with `headBranch`; without it, exactly one must be linked. A branch/state refusal may occur before reviewer preflight, so it does not prove credentials invalid. Leave full-role readiness unverified unless the prerequisites and successful dry-run result are available. Do not create a branch or PR to force this diagnostic. See the package guide's [GitHub-gated lifecycle](../../README.md#github-gated-lifecycle).
|
|
60
|
+
|
|
61
|
+
## Independent reviewer command
|
|
62
|
+
|
|
63
|
+
See the [package guide's five-minute reviewer setup](../../README.md#five-minute-reviewer-setup) for a consumer-named App profile, explicit provider and actor, and credential source. `ai-delivery review doctor --identity <profile>` checks only that selected App without posting. A fresh independent reviewer writes the strict verdict, then submits it with:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
ai-delivery review submit --pr <number> --head <sha> --identity <profile> --verdict ./verdict.json --repo <owner/name>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Approval and request-changes retain their own events and readback states; inspect live required-review status after submission.
|
|
70
|
+
|
|
71
|
+
The runtime needs no dotenvx or host launcher fork. It reads one selected key in memory, fails closed without fallback, and redacts source errors. Command sources reuse the bounded POSIX supervisor; native Windows commands are deferred, and Windows protected-file permission equivalence is unqualified. Plugin installation does not migrate host credentials or install the optional Claude permission pattern `Bash(ai-delivery review submit *)`. Existing native policies and refusals remain binding.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "ai-delivery",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.36",
|
|
5
5
|
"description": "GitHub issue and pull request delivery tools for prepared worktrees and evidence-based handoff.",
|
|
6
6
|
"author": { "name": "AviaraTech", "url": "https://github.com/aviaratech" },
|
|
7
7
|
"homepage": "https://github.com/aviaratech/ai-delivery#readme",
|