Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/ae-devtools-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <checkout>`.
`aeA8n.contractOk`). The pin is `@ido-bata/ae-a8n@0.5.0`; override
with `--ae-a8n-root <checkout>`.
The `fake` session is unaffected.

Provides seven bins:
Expand Down Expand Up @@ -107,8 +107,8 @@ ae-devtools execute <opId> --session a8n --ae-a8n-root <local-a8n-checkout> --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 <ae-a8n checkout>` で override できる。
`attached`/`unknown` ownership は拒否される。
Expand All @@ -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 <built-ae-a8n>` を指定する。
- `recover` は devtools-cli の run marker
Expand Down
9 changes: 5 additions & 4 deletions packages/ae-devtools-cli/a8n-transport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/ae-devtools-cli/a8n-transport/compat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ae-a8n checkout> to override the pinned dependency.",
);
error.code = "AE_A8N_CONTRACT_UNSUPPORTED";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
});
6 changes: 3 additions & 3 deletions packages/ae-devtools-cli/docs/adoption.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` を報告する
Expand Down Expand Up @@ -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` で
Expand Down
8 changes: 4 additions & 4 deletions packages/ae-devtools-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ae-devtools-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down