@aviaratech/ai-delivery 0.3.21 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -10
- package/dist/agent.d.ts +2 -1
- package/dist/agent.js +1 -1
- package/dist/agent.js.map +1 -1
- package/dist/cli.js +77 -0
- package/dist/cli.js.map +1 -1
- package/dist/delivery/common.d.ts +4 -1
- package/dist/delivery/common.js +49 -6
- package/dist/delivery/common.js.map +1 -1
- package/dist/delivery/stage.d.ts +6 -0
- package/dist/delivery/stage.js +11 -2
- package/dist/delivery/stage.js.map +1 -1
- package/dist/dispatch.js +6 -1
- package/dist/dispatch.js.map +1 -1
- package/dist/github/relationships.d.ts +4 -1
- package/dist/github/relationships.js +30 -3
- package/dist/github/relationships.js.map +1 -1
- package/dist/issue.d.ts +64 -1
- package/dist/issue.js +350 -3
- package/dist/issue.js.map +1 -1
- package/dist/issueTracking.test.d.ts +1 -0
- package/dist/issueTracking.test.js +624 -0
- package/dist/issueTracking.test.js.map +1 -0
- package/dist/lifecycle.test.js +4 -0
- package/dist/lifecycle.test.js.map +1 -1
- package/dist/mcp/index.js +2 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +56 -0
- package/dist/mcp/tools.js +41 -2
- package/dist/mcp/tools.js.map +1 -1
- package/dist/pluginInstaller.d.ts +51 -0
- package/dist/pluginInstaller.js +774 -0
- package/dist/pluginInstaller.js.map +1 -0
- package/dist/pluginInstaller.test.d.ts +1 -0
- package/dist/pluginInstaller.test.js +543 -0
- package/dist/pluginInstaller.test.js.map +1 -0
- package/dist/pluginPackaging.test.d.ts +1 -0
- package/dist/pluginPackaging.test.js +116 -0
- package/dist/pluginPackaging.test.js.map +1 -0
- package/dist/setup.d.ts +1 -0
- package/dist/setup.js +71 -10
- package/dist/setup.js.map +1 -1
- package/dist/setup.test.js +584 -199
- package/dist/setup.test.js.map +1 -1
- package/dist/verification.d.ts +61 -0
- package/dist/verification.js +168 -6
- package/dist/verification.js.map +1 -1
- package/package.json +4 -4
- package/plugins/ai-delivery/.claude-plugin/plugin.json +6 -1
- package/plugins/ai-delivery/LICENSE +21 -0
- package/plugins/ai-delivery/README.md +4 -2
- package/plugins/ai-delivery/dist/mcp-launcher.js +19 -8
- package/plugins/ai-delivery/mcp.json +10 -0
- package/plugins/ai-delivery/plugin.json +10 -0
- package/plugins/ai-delivery/runtime/dist/THIRD-PARTY-NOTICES.md +1010 -0
- package/plugins/ai-delivery/runtime/dist/cli.js +285 -0
- package/plugins/ai-delivery/runtime/package.json +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aviaratech/ai-delivery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Generic GitHub issue and pull request delivery CLI and MCP server",
|
|
6
6
|
"homepage": "https://github.com/aviaratech/ai-delivery#readme",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
|
-
"format": "oxfmt src package.json tsconfig.json tsconfig.build.json vitest.config.ts .oxlintrc.json .oxfmtrc.json",
|
|
50
|
-
"format:check": "oxfmt --check src package.json tsconfig.json tsconfig.build.json vitest.config.ts .oxlintrc.json .oxfmtrc.json",
|
|
49
|
+
"format": "oxfmt src scripts package.json tsconfig.json tsconfig.build.json vitest.config.ts .oxlintrc.json .oxfmtrc.json",
|
|
50
|
+
"format:check": "oxfmt --check src scripts package.json tsconfig.json tsconfig.build.json vitest.config.ts .oxlintrc.json .oxfmtrc.json",
|
|
51
51
|
"lint": "oxlint",
|
|
52
52
|
"typecheck": "tsc -p tsconfig.json",
|
|
53
|
-
"build": "tsc -p tsconfig.build.json",
|
|
53
|
+
"build": "tsc -p tsconfig.build.json && node scripts/build-plugin.mjs",
|
|
54
54
|
"postbuild": "node -e \"require('node:fs').chmodSync('dist/cli.js', 0o755)\"",
|
|
55
55
|
"test": "npm run build && vitest run",
|
|
56
56
|
"checks": "npm run format:check && npm run lint && npm run typecheck && npm test"
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-delivery",
|
|
3
|
+
"version": "0.3.23",
|
|
3
4
|
"description": "GitHub issue and pull request delivery tools for prepared worktrees and evidence-based handoff.",
|
|
5
|
+
"author": { "name": "AviaraTech", "url": "https://github.com/aviaratech" },
|
|
6
|
+
"homepage": "https://github.com/aviaratech/ai-delivery#readme",
|
|
7
|
+
"repository": "https://github.com/aviaratech/ai-delivery",
|
|
8
|
+
"license": "MIT",
|
|
4
9
|
"deliveryCapabilityVersion": 2,
|
|
5
|
-
"packageVersion": "0.3.
|
|
10
|
+
"packageVersion": "0.3.23"
|
|
6
11
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aviara Tech
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# ai-delivery plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Self-contained host plugin for `@aviaratech/ai-delivery`. Its built launcher starts the package's existing `mcp:serve` command in the adjacent `runtime` directory, which includes the built CLI and runtime dependencies. It can start from a native plugin root without a parent npm installation, source build or postinstall. The root contains portable `plugin.json` / `mcp.json` and the preserved Claude-compatible `.claude-plugin/plugin.json` / `.mcp.json`. Package, CLI, MCP server and native manifest versions agree; application and bundled dependency notices accompany the launcher. MCP schemas, GitHub operations, worktree handling and delivery logic retain their existing owners in the package.
|
|
4
4
|
|
|
5
|
-
The bundled skills cover issue intake, prepared worktree development, and pull request handoff.
|
|
5
|
+
The bundled skills cover issue intake, prepared 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
|
+
|
|
7
|
+
Set the consuming repository's selected author and reviewer credential environment outside source control, and use the public `runtime:stage` / `runtime:admit` setup operations before a lifecycle write. Stage can bind the exact native plugin root using `--native-plugin-root`; use the path the host actually loads, which may differ from its reported cache path. Admission remains a separate explicit final write that rechecks the reviewed archive, consumer source/configuration, configured actors and installed bytes. A read-only `issue_info` call can confirm repository selection; `issue_pr_create` with `dryRun: true` reports effective actors and rule visibility before publication. Keep one active writer per issue and preserve its original worktree owner when upgrading.
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
+
import { realpathSync } from 'node:fs';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
2
4
|
import { fileURLToPath } from 'node:url';
|
|
3
5
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
const pluginRoot = realpathSync(fileURLToPath(new URL('../', import.meta.url)));
|
|
7
|
+
let cliEntry = join(pluginRoot, 'runtime', 'dist', 'cli.js');
|
|
8
|
+
try {
|
|
9
|
+
// Preserve the existing npm runtime only for this exact package-local root.
|
|
10
|
+
// An ambient parent installation can never replace a copied plugin's runtime.
|
|
11
|
+
const packageEntry = fileURLToPath(import.meta.resolve('@aviaratech/ai-delivery'));
|
|
12
|
+
const packageRoot = dirname(dirname(packageEntry));
|
|
13
|
+
if (realpathSync(join(packageRoot, 'plugins', 'ai-delivery')) === pluginRoot)
|
|
14
|
+
cliEntry = join(packageRoot, 'dist', 'cli.js');
|
|
15
|
+
} catch {
|
|
16
|
+
// A native cache needs only its own released, bundled runtime.
|
|
7
17
|
}
|
|
8
|
-
|
|
9
|
-
const cliEntry = fileURLToPath(new URL('./cli.js', packageEntry));
|
|
10
|
-
const child = spawn(process.execPath, [cliEntry, 'mcp:serve'], {
|
|
18
|
+
const child = spawn(process.execPath, [realpathSync(cliEntry), 'mcp:serve'], {
|
|
11
19
|
env: process.env,
|
|
12
20
|
stdio: 'inherit',
|
|
13
21
|
});
|
|
14
|
-
|
|
22
|
+
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
23
|
+
process.on(signal, () => {
|
|
24
|
+
child.kill(signal);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
child.on('error', (error) => {
|
|
16
28
|
process.stderr.write(`Unable to start ai-delivery MCP server: ${error.message}\n`);
|
|
17
29
|
process.exitCode = 1;
|
|
18
30
|
});
|
|
19
|
-
|
|
20
31
|
child.on('close', (code, signal) => {
|
|
21
32
|
process.exitCode = code ?? (signal ? 1 : 0);
|
|
22
33
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "ai-delivery",
|
|
4
|
+
"version": "0.3.23",
|
|
5
|
+
"description": "GitHub issue and pull request delivery tools for prepared worktrees and evidence-based handoff.",
|
|
6
|
+
"author": { "name": "AviaraTech", "url": "https://github.com/aviaratech" },
|
|
7
|
+
"homepage": "https://github.com/aviaratech/ai-delivery#readme",
|
|
8
|
+
"repository": "https://github.com/aviaratech/ai-delivery",
|
|
9
|
+
"license": "MIT"
|
|
10
|
+
}
|