From e01d6e4cdae252e5e9b96ea4d93d1cb7a3756e3c Mon Sep 17 00:00:00 2001 From: rebuildup Date: Sat, 21 Nov 2026 07:17:07 +0900 Subject: [PATCH] chore(deps): bump @ido-bata/ae-a8n pin to 0.5.0 for a8n-attached lane The 0.2.0 pin lacks AfterEffects.attach, so registry installs refuse the a8n-attached lane with ATTACHED_TARGET_UNSUPPORTED. ae-a8n 0.5.0 ships the attach-only API (ae-a8n #269); the pin bump enables the lane on normal installs once 0.5.0 is published (Issue #395). Lockfile integrity is the SRI of the 0.5.0 publish-candidate tarball repacked from ae-a8n origin/main (444665c); re-verify against the registry tarball after publish. The resolve test now reads the pinned version from package.json instead of hard-coding it. --- packages/ae-devtools-cli/README.md | 10 +++++----- packages/ae-devtools-cli/a8n-transport/README.md | 9 +++++---- packages/ae-devtools-cli/a8n-transport/compat.mjs | 2 +- .../a8n-transport/tests/ae-a8n-resolve.test.mjs | 12 ++++++++---- packages/ae-devtools-cli/docs/adoption.md | 6 +++--- packages/ae-devtools-cli/package-lock.json | 8 ++++---- packages/ae-devtools-cli/package.json | 2 +- 7 files changed, 27 insertions(+), 22 deletions(-) diff --git a/packages/ae-devtools-cli/README.md b/packages/ae-devtools-cli/README.md index 4d01bbd..960a6f1 100644 --- a/packages/ae-devtools-cli/README.md +++ b/packages/ae-devtools-cli/README.md @@ -46,8 +46,8 @@ npm install ./ae-devtools-cli-0.5.0.tgz satisfying the capability contract** (#102 handshake exports + #103/#105 fixes). ae-a8n `<=0.1.0-alpha.2` predates them and is refused up front (`AE_A8N_CONTRACT_UNSUPPORTED`; check `ae-devtools doctor` → - `aeA8n.contractOk`). The pin is `@ido-bata/ae-a8n@0.2.0` (published - under the `next` dist-tag); override with `--ae-a8n-root `. + `aeA8n.contractOk`). The pin is `@ido-bata/ae-a8n@0.5.0`; override + with `--ae-a8n-root `. The `fake` session is unaffected. Provides seven bins: @@ -107,8 +107,8 @@ ae-devtools execute --session a8n --ae-a8n-root --co 解決される ae-a8n が必要 contract(#102 handshake export。#103/#105 修正を祖先に持つ)を満たさない場合は launch 前に `AE_A8N_CONTRACT_UNSUPPORTED` で refuse される — `ae-devtools doctor` -の `aeA8n.contractOk` で事前確認できる。npm pin は `@ido-bata/ae-a8n@0.2.0` -(`next` dist-tag で公開)で contract を満たす。`<=0.1.0-alpha.2` を +の `aeA8n.contractOk` で事前確認できる。npm pin は `@ido-bata/ae-a8n@0.5.0` +で contract を満たす。`<=0.1.0-alpha.2` を 解決した場合は launch 前に refuse される。別 build を使う場合は `--ae-a8n-root ` で override できる。 `attached`/`unknown` ownership は拒否される。 @@ -129,7 +129,7 @@ AE / GUI 不要で consumer 環境でも動く。 `observe` / `recover` / `verify-exit` は real-host 前提: - ae-a8n #109(GUI 観測)/#111(GUI lease + dialog class)の export を - 含む ae-a8n が必要。npm pin の `@ido-bata/ae-a8n@0.2.0` はこれらを + 含む ae-a8n が必要。npm pin の `@ido-bata/ae-a8n@0.5.0` はこれらを 同梱するため `--ae-a8n-root` なしで解決される。古い ae-a8n を 使う場合のみ `--ae-a8n-root ` を指定する。 - `recover` は devtools-cli の run marker diff --git a/packages/ae-devtools-cli/a8n-transport/README.md b/packages/ae-devtools-cli/a8n-transport/README.md index dbaa66b..c2229fe 100644 --- a/packages/ae-devtools-cli/a8n-transport/README.md +++ b/packages/ae-devtools-cli/a8n-transport/README.md @@ -55,10 +55,11 @@ runner.runScript(source) ## ae-a8n pin -`package.json` pins `@ido-bata/ae-a8n@0.2.0` — the first published -version carrying the ae-a8n #102 handshake exports and #103/#104/#105 -host-context fixes (published under the `next` dist-tag; `latest` -still resolves `0.1.0-alpha.0`). Earlier pins (`<=0.1.0-alpha.2`) +`package.json` pins `@ido-bata/ae-a8n@0.5.0` — it carries the ae-a8n +#102 handshake exports and #103/#104/#105 host-context fixes (first +published carrying them was `0.2.0`) plus `AfterEffects.attach` +(ae-a8n #269), which the `a8n-attached` lane requires. Earlier pins +(`<=0.1.0-alpha.2`) predated those fixes — a real launch through them fails (`EVIDENCE.md`, Attempt 1); the contract gate in `compat.mjs` (Issue #138) refuses them with `AE_A8N_CONTRACT_UNSUPPORTED` before diff --git a/packages/ae-devtools-cli/a8n-transport/compat.mjs b/packages/ae-devtools-cli/a8n-transport/compat.mjs index 861bdc0..0d36f79 100644 --- a/packages/ae-devtools-cli/a8n-transport/compat.mjs +++ b/packages/ae-devtools-cli/a8n-transport/compat.mjs @@ -62,7 +62,7 @@ export function aeA8nContractError({ source, version, missing }) { (version ? `@${version}` : "") + ` is missing ${missing.join(", ")} — required: ${CONTRACT_DESCRIPTION}. ` + "ae-a8n@0.1.0-alpha.2 and earlier predate these fixes " + - "(@ido-bata/ae-a8n@0.2.0 under the `next` dist-tag satisfies them); " + + "(the pinned @ido-bata/ae-a8n dependency satisfies them); " + "pass --ae-a8n-root to override the pinned dependency.", ); error.code = "AE_A8N_CONTRACT_UNSUPPORTED"; diff --git a/packages/ae-devtools-cli/a8n-transport/tests/ae-a8n-resolve.test.mjs b/packages/ae-devtools-cli/a8n-transport/tests/ae-a8n-resolve.test.mjs index 92f2347..b3a05dd 100644 --- a/packages/ae-devtools-cli/a8n-transport/tests/ae-a8n-resolve.test.mjs +++ b/packages/ae-devtools-cli/a8n-transport/tests/ae-a8n-resolve.test.mjs @@ -15,9 +15,10 @@ import { test } from "node:test"; import assert from "node:assert/strict"; import { execFileSync } from "node:child_process"; -import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from "node:fs"; +import { mkdtempSync, mkdirSync, readFileSync, writeFileSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; -import { join } from "node:path"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; import { resolveAeA8n } from "../ae-a8n-resolve.mjs"; @@ -73,12 +74,15 @@ test("resolveAeA8n: missing dist/index.js rejects (fail closed)", async () => { }); test("resolveAeA8n: npm branch resolves the pinned dependency", async () => { + const pkg = JSON.parse(readFileSync( + join(dirname(fileURLToPath(import.meta.url)), "..", "..", "package.json"), "utf8")); + const pinned = pkg.dependencies["@ido-bata/ae-a8n"]; const r = await resolveAeA8n({}); assert.equal(r.source, "npm:@ido-bata/ae-a8n"); - assert.equal(r.version, "0.2.0"); + assert.equal(r.version, pinned); assert.equal(typeof r.AfterEffects, "function"); assert.match(r.cliPath, /dist[\\/]cli\.js$/); assert.match(r.entry, /ae-a8n/); // npm installs attest version, not a git head - assert.equal(r.head, "0.2.0"); + assert.equal(r.head, pinned); }); diff --git a/packages/ae-devtools-cli/docs/adoption.md b/packages/ae-devtools-cli/docs/adoption.md index 5aa225a..3fac2a4 100644 --- a/packages/ae-devtools-cli/docs/adoption.md +++ b/packages/ae-devtools-cli/docs/adoption.md @@ -21,8 +21,8 @@ npm install --save-dev @ido-bata/ae-devtools-cli `--session a8n` は owned AE session を `@ido-bata/ae-a8n` 経由で使う。 この経路が要求する ae-a8n contract(capability handshake export = ae-a8n#102。#103 extension prelude / #105 LaunchServices 修正を祖先に持つ)を -満たすのは ae-a8n `release-0-2-0` 以降。npm pin は `@ido-bata/ae-a8n@0.2.0` -(`next` dist-tag で公開済み)で、これを満たす。`<=0.1.0-alpha.2` を +満たすのは ae-a8n `release-0-2-0` 以降。npm pin は `@ido-bata/ae-a8n@0.5.0` +で、これを満たす。`<=0.1.0-alpha.2` を 解決した場合のみ contract gate が launch 前に refuse する。 - `ae-devtools doctor` が解決した ae-a8n の `contractOk` を報告する @@ -173,7 +173,7 @@ tarball install して実行: 必要とする ae-a8n surface(`readGuiSession` / `listAppInstances` / `censusRunnerInSession` / `windowServerCensus` / `MacGuiRecovery` / `MacHostRecovery` / GUI lease 関連 export)は、公開版 - `@ido-bata/ae-a8n@0.2.0` が全て ship しているため、pinned + `@ido-bata/ae-a8n@0.5.0` が全て ship しているため、pinned dependency のまま動作する。`--ae-a8n-root` は別 build / 開発版の ae-a8n を指したい場合の override であり必須ではない。コマンド別に 必要 export が検証され、欠落時は `AE_A8N_SURFACE_MISSING` で diff --git a/packages/ae-devtools-cli/package-lock.json b/packages/ae-devtools-cli/package-lock.json index 7b52470..740aa47 100644 --- a/packages/ae-devtools-cli/package-lock.json +++ b/packages/ae-devtools-cli/package-lock.json @@ -9,7 +9,7 @@ "version": "0.6.0", "license": "MIT", "dependencies": { - "@ido-bata/ae-a8n": "0.2.0", + "@ido-bata/ae-a8n": "0.5.0", "acorn": "^8.19.0", "esbuild": "0.28.2", "jsonc-parser": "^3.3.1", @@ -445,9 +445,9 @@ } }, "node_modules/@ido-bata/ae-a8n": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.2.0.tgz", - "integrity": "sha512-NyKmrKIlm7zT4yHWPwf8VGxiW2FRBm5Dqf/IJWg1Dh04ceuk5KWLWHAEgNE5cPXc/N8vF3lQG/ny7axm25+shA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.5.0.tgz", + "integrity": "sha512-/ZtxGdSqvwedt3g0MKN3OZJsROeV+wGNLEMsVqqarWdy7RZxtDAi3fDNrLNNI+Gv7tCQKUCMosp4/JINOTbuxw==", "license": "MIT", "dependencies": { "acorn": "^8.18.0" diff --git a/packages/ae-devtools-cli/package.json b/packages/ae-devtools-cli/package.json index 50924d8..f57765f 100644 --- a/packages/ae-devtools-cli/package.json +++ b/packages/ae-devtools-cli/package.json @@ -60,7 +60,7 @@ "check:syntax": "node scripts/check-syntax.mjs" }, "dependencies": { - "@ido-bata/ae-a8n": "0.2.0", + "@ido-bata/ae-a8n": "0.5.0", "acorn": "^8.19.0", "esbuild": "0.28.2", "typescript": "5.9.3",