@aviaratech/ai-delivery 0.3.24 → 0.3.26
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 +157 -16
- package/README.md +124 -9
- package/dist/agent.d.ts +2 -0
- package/dist/agent.js +1 -0
- package/dist/agent.js.map +1 -1
- package/dist/agentReadiness.test.d.ts +1 -0
- package/dist/agentReadiness.test.js +77 -0
- package/dist/agentReadiness.test.js.map +1 -0
- package/dist/cli.js +136 -36
- package/dist/cli.js.map +1 -1
- package/dist/config/deliveryConfig.js +5 -1
- package/dist/config/deliveryConfig.js.map +1 -1
- package/dist/contributorChecks.test.d.ts +1 -0
- package/dist/contributorChecks.test.js +1010 -0
- package/dist/contributorChecks.test.js.map +1 -0
- package/dist/currentConsumer.test.d.ts +1 -0
- package/dist/currentConsumer.test.js +832 -0
- package/dist/currentConsumer.test.js.map +1 -0
- package/dist/deliveryHealth.test.d.ts +1 -0
- package/dist/deliveryHealth.test.js +167 -0
- package/dist/deliveryHealth.test.js.map +1 -0
- package/dist/dependencyCompatibility.test.d.ts +1 -0
- package/dist/dependencyCompatibility.test.js +175 -0
- package/dist/dependencyCompatibility.test.js.map +1 -0
- package/dist/directoryIndependent.test.js +91 -1
- package/dist/directoryIndependent.test.js.map +1 -1
- package/dist/dispatch.d.ts +1 -0
- package/dist/dispatch.js +53 -4
- package/dist/dispatch.js.map +1 -1
- package/dist/fixtures/inertEntrypointChild.d.ts +1 -0
- package/dist/fixtures/inertEntrypointChild.js +62 -0
- package/dist/fixtures/inertEntrypointChild.js.map +1 -0
- package/dist/fixtures/inertEntrypoints.d.ts +49 -0
- package/dist/fixtures/inertEntrypoints.js +276 -0
- package/dist/fixtures/inertEntrypoints.js.map +1 -0
- package/dist/fixtures/inertTarget.d.ts +643 -0
- package/dist/fixtures/inertTarget.js +713 -0
- package/dist/fixtures/inertTarget.js.map +1 -0
- package/dist/fixtures/issue63.d.ts +68 -0
- package/dist/fixtures/issue63.js +272 -0
- package/dist/fixtures/issue63.js.map +1 -0
- package/dist/github/client.d.ts +2 -0
- package/dist/github/client.js +94 -12
- package/dist/github/client.js.map +1 -1
- package/dist/github/issueHistory.d.ts +40 -0
- package/dist/github/issueHistory.js +144 -0
- package/dist/github/issueHistory.js.map +1 -0
- package/dist/github/machineAuth.d.ts +9 -0
- package/dist/github/machineAuth.js +135 -0
- package/dist/github/machineAuth.js.map +1 -0
- package/dist/github/machineAuth.test.d.ts +1 -0
- package/dist/github/machineAuth.test.js +409 -0
- package/dist/github/machineAuth.test.js.map +1 -0
- package/dist/github/projectDelivery.d.ts +2 -0
- package/dist/github/projectDelivery.js +6 -0
- package/dist/github/projectDelivery.js.map +1 -1
- package/dist/github/relationships.d.ts +9 -2
- package/dist/github/relationships.js +6 -2
- package/dist/github/relationships.js.map +1 -1
- package/dist/investigationCompletion.test.d.ts +1 -0
- package/dist/investigationCompletion.test.js +728 -0
- package/dist/investigationCompletion.test.js.map +1 -0
- package/dist/issue.d.ts +29 -6
- package/dist/issue.js +153 -22
- package/dist/issue.js.map +1 -1
- package/dist/issue63History.test.d.ts +1 -0
- package/dist/issue63History.test.js +45 -0
- package/dist/issue63History.test.js.map +1 -0
- package/dist/issue63Routes.test.d.ts +1 -0
- package/dist/issue63Routes.test.js +153 -0
- package/dist/issue63Routes.test.js.map +1 -0
- package/dist/issueBlockerGuard.test.d.ts +1 -0
- package/dist/issueBlockerGuard.test.js +162 -0
- package/dist/issueBlockerGuard.test.js.map +1 -0
- package/dist/issueContract.d.ts +230 -0
- package/dist/issueContract.js +341 -0
- package/dist/issueContract.js.map +1 -0
- package/dist/issueContract.test.d.ts +27 -0
- package/dist/issueContract.test.js +314 -0
- package/dist/issueContract.test.js.map +1 -0
- package/dist/issueIntake.test.d.ts +1 -0
- package/dist/issueIntake.test.js +649 -0
- package/dist/issueIntake.test.js.map +1 -0
- package/dist/issueJournal.d.ts +1 -1
- package/dist/issueJournal.test.js +88 -6
- package/dist/issueJournal.test.js.map +1 -1
- package/dist/issueTracking.test.js +16 -8
- package/dist/issueTracking.test.js.map +1 -1
- package/dist/mcp/tools.d.ts +142 -12
- package/dist/mcp/tools.js +104 -34
- package/dist/mcp/tools.js.map +1 -1
- package/dist/pluginAuthProbe.d.ts +6 -0
- package/dist/pluginAuthProbe.js +53 -0
- package/dist/pluginAuthProbe.js.map +1 -0
- package/dist/pluginAuthProbe.test.d.ts +1 -0
- package/dist/pluginAuthProbe.test.js +66 -0
- package/dist/pluginAuthProbe.test.js.map +1 -0
- package/dist/pluginCredentials.test.d.ts +1 -0
- package/dist/pluginCredentials.test.js +277 -0
- package/dist/pluginCredentials.test.js.map +1 -0
- package/dist/pluginDoctor.test.d.ts +1 -0
- package/dist/pluginDoctor.test.js +627 -0
- package/dist/pluginDoctor.test.js.map +1 -0
- package/dist/pluginInstaller.d.ts +36 -0
- package/dist/pluginInstaller.js +238 -11
- package/dist/pluginInstaller.js.map +1 -1
- package/dist/pluginInstaller.test.js +242 -2
- package/dist/pluginInstaller.test.js.map +1 -1
- package/dist/pluginPackaging.test.js +123 -9
- package/dist/pluginPackaging.test.js.map +1 -1
- package/dist/pr.d.ts +90 -13
- package/dist/pr.js +875 -66
- package/dist/pr.js.map +1 -1
- package/dist/pr.test.js +166 -7
- package/dist/pr.test.js.map +1 -1
- package/dist/prAssociation.test.d.ts +1 -0
- package/dist/prAssociation.test.js +1336 -0
- package/dist/prAssociation.test.js.map +1 -0
- package/dist/prDispatch.test.d.ts +1 -0
- package/dist/prDispatch.test.js +96 -0
- package/dist/prDispatch.test.js.map +1 -0
- package/dist/releaseReconciliation.test.js +6 -2
- package/dist/releaseReconciliation.test.js.map +1 -1
- package/dist/releaseWorkflow.test.d.ts +1 -0
- package/dist/releaseWorkflow.test.js +447 -0
- package/dist/releaseWorkflow.test.js.map +1 -0
- package/dist/services/agentReadinessService.d.ts +9 -8
- package/dist/services/agentReadinessService.js +32 -223
- package/dist/services/agentReadinessService.js.map +1 -1
- package/dist/services/blockerGuardService.d.ts +17 -0
- package/dist/services/blockerGuardService.js +194 -0
- package/dist/services/blockerGuardService.js.map +1 -0
- package/dist/services/deliveryAdmission.js +22 -19
- package/dist/services/deliveryAdmission.js.map +1 -1
- package/dist/services/deliveryHealthService.d.ts +84 -0
- package/dist/services/deliveryHealthService.js +206 -0
- package/dist/services/deliveryHealthService.js.map +1 -0
- package/dist/services/worktreeRegistry.d.ts +84 -0
- package/dist/services/worktreeRegistry.js +265 -1
- package/dist/services/worktreeRegistry.js.map +1 -1
- package/dist/setup.test.js +97 -3
- package/dist/setup.test.js.map +1 -1
- package/dist/stagedChecks.test.d.ts +1 -0
- package/dist/stagedChecks.test.js +228 -0
- package/dist/stagedChecks.test.js.map +1 -0
- package/dist/start.test.js +30 -3
- package/dist/start.test.js.map +1 -1
- package/dist/stdoutRegression.test.js +36 -6
- package/dist/stdoutRegression.test.js.map +1 -1
- package/dist/targetPolicyEntrypoints.test.d.ts +1 -0
- package/dist/targetPolicyEntrypoints.test.js +275 -0
- package/dist/targetPolicyEntrypoints.test.js.map +1 -0
- package/dist/targetPolicyLocal.test.d.ts +1 -0
- package/dist/targetPolicyLocal.test.js +707 -0
- package/dist/targetPolicyLocal.test.js.map +1 -0
- package/dist/targetPolicyRoutes.test.d.ts +1 -0
- package/dist/targetPolicyRoutes.test.js +298 -0
- package/dist/targetPolicyRoutes.test.js.map +1 -0
- package/dist/verification.js +48 -12
- package/dist/verification.js.map +1 -1
- package/dist/verificationGate.test.d.ts +1 -0
- package/dist/verificationGate.test.js +106 -0
- package/dist/verificationGate.test.js.map +1 -0
- package/dist/worktree.d.ts +6 -1
- package/dist/worktree.js +90 -3
- package/dist/worktree.js.map +1 -1
- package/dist/worktreeTransition.test.js +1 -1
- package/dist/worktreeTransition.test.js.map +1 -1
- package/package.json +9 -6
- package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
- package/plugins/ai-delivery/README.md +160 -1
- package/plugins/ai-delivery/plugin.json +1 -1
- package/plugins/ai-delivery/runtime/dist/THIRD-PARTY-NOTICES.md +1 -1
- package/plugins/ai-delivery/runtime/dist/cli.js +83 -49
- package/plugins/ai-delivery/runtime/package.json +1 -1
- package/plugins/ai-delivery/skills/intake-create/SKILL.md +45 -30
- package/plugins/ai-delivery/skills/pr-handoff/SKILL.md +20 -0
|
@@ -4,4 +4,163 @@ Self-contained host plugin for `@aviaratech/ai-delivery`. Its built launcher sta
|
|
|
4
4
|
|
|
5
5
|
The bundled skills cover issue intake, host-owned worktree development, and pull request handoff. Use `ai-delivery plugin install --host codex --scope user --version <published-version>` or select `--host claude-code` with a native `user`, `project`, or `local` scope. The same command group provides `doctor`, explicit-version `update`, `rollback` to the recorded previous version, and `remove`, with `--dry-run` and `--json` on each. The [package guide](../../README.md) describes managed version retention, read-only diagnostics, and data preservation. Restart the host after changing its plugin selection.
|
|
6
6
|
|
|
7
|
-
Configure operator-owned JSON at `~/.config/aviaratech-ai/ai-delivery.json` and
|
|
7
|
+
Configure operator-owned JSON at `~/.config/aviaratech-ai/ai-delivery.json` and provide its selected author/reviewer credential references outside source control. A personal author naming `GH_TOKEN` can use the machine's existing active `gh` session when that variable is absent. Every remote tool accepts an explicit `repo` and works without a checkout or repository policy files; one launched MCP server can switch repositories. The launcher needs no `AI_DELIVERY_IDENTITY`: command roles default from user settings. `issue_pr_create` with `dryRun: true` reports configured actors and rule visibility. Hosts own worktrees, contributor checks, commits and pushes. Explicit `runtime:stage` / `runtime:admit` remain separate controller operations; installing the plugin does not activate or alter a private runtime or adopt historical custody.
|
|
8
|
+
|
|
9
|
+
## Credentials and readiness
|
|
10
|
+
|
|
11
|
+
User JSON names credential variables; it does not provide their values. For the
|
|
12
|
+
fictional configuration in the [package guide](../../README.md#user-configuration),
|
|
13
|
+
the selected personal author names `GH_TOKEN`. When it is absent, the existing
|
|
14
|
+
active personal `github.com` session from `gh` is selected. A supplied value takes
|
|
15
|
+
precedence; empty, malformed, expired or denied explicit credentials fail without
|
|
16
|
+
switching actors. A custom reference such as `DELIVERY_AUTHOR_TOKEN` always
|
|
17
|
+
requires its value and has no missing-variable fallback. Ambient `GITHUB_TOKEN`
|
|
18
|
+
or unrelated credentials do not replace a configured reference. The reviewer App
|
|
19
|
+
needs `DELIVERY_REVIEWER_APP_ID`, `DELIVERY_REVIEWER_INSTALLATION_ID`, and
|
|
20
|
+
`DELIVERY_REVIEWER_KEY_PATH`; the last value names an absolute private-key file.
|
|
21
|
+
An App author needs its own three references. Role identities, reference names,
|
|
22
|
+
and authenticated actors must remain distinct. Never substitute an ambient token
|
|
23
|
+
or the author's credential for the reviewer.
|
|
24
|
+
|
|
25
|
+
The bundled launcher inherits the environment supplied by the native host. It
|
|
26
|
+
does not automatically read a shell profile, `.env` file, repository configuration,
|
|
27
|
+
or secret manager. A variable exported in a terminal may be absent from an
|
|
28
|
+
already-running GUI application. Supplying variables to a separate CLI command
|
|
29
|
+
does not change the native host's running MCP process.
|
|
30
|
+
|
|
31
|
+
The author resolver finds `gh` on that actual process PATH, with no hardcoded
|
|
32
|
+
installation path, shell-profile launch or current-directory search. It uses
|
|
33
|
+
supported `gh auth status --hostname github.com --active --json hosts` and
|
|
34
|
+
privately captures `gh auth token --hostname github.com --user <active-user>`.
|
|
35
|
+
Status JSON can exit zero despite authentication errors: the selected active
|
|
36
|
+
state and actual authenticated user must both pass and match. Inactive account
|
|
37
|
+
errors do not invalidate a healthy selected user. Missing/ambiguous/expired
|
|
38
|
+
sessions, identity mismatch or unavailable keyring refuse without another
|
|
39
|
+
account, login/switch/refresh or a permission grant. Only necessary non-secret
|
|
40
|
+
home/PATH/gh configuration selectors reach this child; credentials, debug flags,
|
|
41
|
+
injection flags and unrelated environment variables are excluded. The token and
|
|
42
|
+
raw stdout/stderr stay private to the selected auth client; no released files,
|
|
43
|
+
logs, settings or native diagnostic output receive them.
|
|
44
|
+
|
|
45
|
+
The package currently supports `github.com` only. An enterprise repository or
|
|
46
|
+
conflicting `GH_HOST` fails safely instead of substituting `github.com`.
|
|
47
|
+
`GH_CONFIG_DIR` / `XDG_CONFIG_HOME`, when supplied, retain their selected gh
|
|
48
|
+
configuration location rather than falling back to another profile. The role's
|
|
49
|
+
configured identity is a label; Git author metadata is not authentication.
|
|
50
|
+
Actual user/repository readback remains required. Read access does not prove a
|
|
51
|
+
future write is allowed or that a reviewer App approval will count.
|
|
52
|
+
|
|
53
|
+
Shell `gh` availability and a healthy keyring session do not prove native GUI
|
|
54
|
+
PATH/keyring visibility. After adopting the exact qualified package in each
|
|
55
|
+
host, retain an actual read-only native selected-user/repository readback, or
|
|
56
|
+
its actionable missing-gh/session refusal. A selected-runtime CLI pass does not
|
|
57
|
+
establish Codex/Claude GUI propagation. Author fallback never substitutes for
|
|
58
|
+
the reviewer App's configured credentials or identity.
|
|
59
|
+
|
|
60
|
+
Use an operator-controlled, host-supported environment mechanism for the selected
|
|
61
|
+
server and the configured reference names. [Codex's stdio configuration](https://developers.openai.com/codex/mcp)
|
|
62
|
+
supports per-server `env` and allow-and-forward `env_vars`; forwarding requires
|
|
63
|
+
the named input to exist in the selected local or remote environment.
|
|
64
|
+
[Claude Code's MCP configuration](https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json)
|
|
65
|
+
supports `${VAR}` expansion in server environment fields. Expansion also requires
|
|
66
|
+
the input to exist; an unresolved placeholder is not a supplied credential.
|
|
67
|
+
These mechanisms configure the host boundary, rather than importing consumer
|
|
68
|
+
policy. OpenAI does not expand Claude's `${user_config.*}` plugin options, so
|
|
69
|
+
those prompts are not a shared setup path for both hosts.
|
|
70
|
+
[OpenAI's compatibility guide](https://developers.openai.com/plugins/guides/submit-claude-plugin#replace-claude-userconfig)
|
|
71
|
+
describes this limitation.
|
|
72
|
+
|
|
73
|
+
Keep values in the operator's protected credential storage and out of plugin
|
|
74
|
+
manifests, released cache files, project settings, transcripts, and diagnostic
|
|
75
|
+
output. Select only the configured delivery references; do not export a whole
|
|
76
|
+
credential file or unrelated service variables. A scoped launcher may retain
|
|
77
|
+
ordinary inherited process variables: that is different from proving the entire
|
|
78
|
+
environment is sanitized. Restart the selected host after changing its launch
|
|
79
|
+
environment, then verify from that host. Native per-server setup must retain the
|
|
80
|
+
selected released plugin; do not patch its cache or add a competing server to
|
|
81
|
+
hide a missing-variable failure.
|
|
82
|
+
|
|
83
|
+
Treat each readiness layer separately:
|
|
84
|
+
|
|
85
|
+
| Layer | Evidence | What remains unproved |
|
|
86
|
+
| --------------------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
87
|
+
| Installed bytes | Selected version and matching source integrity | Server startup and credentials |
|
|
88
|
+
| Startup | Default `plugin doctor` initializes the bundled server and lists tools without credentials | Settings validity and GitHub use |
|
|
89
|
+
| User settings | The operator JSON validates its schema, role identities, reference names, and paths | Reference availability and authentication |
|
|
90
|
+
| Reference availability | Required variables are present; an absent conventional author reference may select the machine route | Token/key/session authentication remains separate |
|
|
91
|
+
| 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 |
|
|
92
|
+
| 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 |
|
|
93
|
+
|
|
94
|
+
Default doctor is credential-free and does not contact GitHub or read user
|
|
95
|
+
settings, selected credential variables or keys. To opt in, run from the intended
|
|
96
|
+
credential environment with an explicit repository (required even outside Git):
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
ai-delivery --repo example/widget plugin doctor --host codex --scope user --check-auth --json
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Use `--host claude-code` for the corresponding managed native selection. The
|
|
103
|
+
diagnostic refuses absent, disabled, modified or failed-startup selections. It
|
|
104
|
+
then validates settings and reports required/missing variable names without
|
|
105
|
+
values. Eligible absent `GH_TOKEN` is not reported as a required supplied token.
|
|
106
|
+
Missing reviewer/custom references or invalid explicit inputs stop before key read or authentication
|
|
107
|
+
request. Credential names must not overlap runtime selectors (`PATH`, `HOME`,
|
|
108
|
+
host/configuration selectors or Node/npm/Git environment controls).
|
|
109
|
+
|
|
110
|
+
The verified selected runtime's existing `config:resolve` owns the readback.
|
|
111
|
+
Only configured references and necessary selectors are forwarded; an eligible
|
|
112
|
+
machine route also retains the process's supported gh home/PATH/config selectors. Unrelated
|
|
113
|
+
variables, legacy personal overrides and caller Node injection flags are excluded.
|
|
114
|
+
Output separates settings, process references, authenticated author/reviewer,
|
|
115
|
+
repository access and visible rules. Authentication/discovery failure can leave
|
|
116
|
+
both identity and repository access unverified; a generic failure is not a
|
|
117
|
+
permission diagnosis. Raw errors, upstream bodies/headers and private-key paths
|
|
118
|
+
are withheld. Rule visibility or App permissions never imply counted approval.
|
|
119
|
+
The authentication probe supervises the selected CLI and its children. Its
|
|
120
|
+
30-second timeout and host cancellation await owned-process cleanup while
|
|
121
|
+
keeping captured output private. If cleanup cannot be confirmed, the result is
|
|
122
|
+
`probe_cleanup_unverified` and authentication remains unverified.
|
|
123
|
+
The machine author diagnostic includes its safe route/resolved executable. It
|
|
124
|
+
does not expose a token or claim a missing variable became present.
|
|
125
|
+
The invocation context is `selected_runtime_cli`, and native GUI propagation
|
|
126
|
+
remains `unverified`. Dry-run does not validate settings or authenticate.
|
|
127
|
+
|
|
128
|
+
For a direct package CLI readback, the existing command is:
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
ai-delivery --repo example/widget config:resolve
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This command uses the existing configuration and GitHub clients to read routing,
|
|
135
|
+
the authenticated author and reviewer App, and visible repository rules. It does
|
|
136
|
+
not create an issue, branch, review, or PR. A failure such as a missing author
|
|
137
|
+
variable must not be reported as authenticated readiness even if startup passed.
|
|
138
|
+
Successful reviewer access also does not establish counted approval; that needs
|
|
139
|
+
readback after an exact-head review is submitted.
|
|
140
|
+
|
|
141
|
+
Inside Codex or Claude Code, request an actual read-only `issue_info` call with a
|
|
142
|
+
known issue and explicit `repo: "example/widget"`. Label this native author-only
|
|
143
|
+
readback accurately. For a full role preflight, `issue_pr_create` with
|
|
144
|
+
`dryRun: true` also requires an existing open issue and a GitHub-linked branch
|
|
145
|
+
in the selected repository with a readable valid head. Without `headBranch`,
|
|
146
|
+
exactly one linked branch must be available; when several exist, pass
|
|
147
|
+
`headBranch` naming one of those linked branches. The base must be the repository
|
|
148
|
+
default branch, and any matching existing PR must have compatible state and
|
|
149
|
+
readable issue association. Check the configured author, reviewer and rule
|
|
150
|
+
visibility only after the dry-run succeeds.
|
|
151
|
+
|
|
152
|
+
A branch or issue/PR-state refusal can occur before reviewer preflight; it does
|
|
153
|
+
not establish that credentials are invalid. If the prerequisites or successful
|
|
154
|
+
dry-run result are unavailable, leave native full-role readiness unverified.
|
|
155
|
+
Keep any author-only native readback or separate CLI preflight labelled with its
|
|
156
|
+
own evidence context. Do not create a branch or PR to force this diagnostic.
|
|
157
|
+
Repeat for another explicitly selected repository when cross-repository access
|
|
158
|
+
is required; an outside-Git launch and repository switching require no consumer
|
|
159
|
+
policy files.
|
|
160
|
+
|
|
161
|
+
Record the host, selected version, repository, check, outcome, missing variable
|
|
162
|
+
names, and safe actor identifiers. Keep native GUI results, native CLI results,
|
|
163
|
+
supplied-environment package CLI results, and synthetic fixtures in separate
|
|
164
|
+
evidence categories. A fictional fixture validates a contract, not a real
|
|
165
|
+
credential or native installation. Do not include environment values, private
|
|
166
|
+
keys, private-key paths, headers, or raw authentication errors in shared reports.
|
|
@@ -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.26",
|
|
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",
|