After Effects スクリプト・拡張開発のための開発者向け CLI。
TypeScript/モダン JS → ExtendScript ES3 JSX のビルド・型検査・lint・
ソースマップに加え、capability registry 経由の discover / inspect / execute / verify を提供する。
Evidence level の正直な表示: fake/mock セッションでの結果は fake-level evidence として記録され、real-host 検証済みとは表示しない。
npm install @ido-bata/ae-devtools-cli # registry latest
npm install @ido-bata/ae-devtools-cli@0.8.0 # this release, once published
# tarball / local checkout からも可:
npm install ./ae-devtools-cli-0.8.0.tgz- The
@ido-bata/ae-a8npin moves to0.6.0, which publishes the GUI supervision contract (ae.supervisionState(),AfterEffects.rebuild(),startDetachedSupervisor(),ae-a8n supervise status|watch, durablesupervision.json,A8N_VERSION). Consumers keep reading the durableae-a8n.supervision/v1state file — it remains the cross-version / attached-session contract — but the public API is now available on the pinned dependency (#408–#410 consumer integration).
- The
@ido-bata/ae-a8npin is0.5.0, which shipsAfterEffects.attach. Registry installs of this version can now use the a8n-attached session lane; on the previous pin (0.2.0) it was refused up front withATTACHED_TARGET_UNSUPPORTED(#395).
- Scripting adapter coverage was extended across comp settings /
relink / render-queue, FolderItem hierarchy, AVItem proxy sources,
TextDocument attributes, ShapeLayer contents, and MarkerValue
(#289–#309).
ae-api.d.tsand the capability catalog were regenerated from the pinned Adobe sources; 4 signature claims remainunknownbecause the pinned source evidence is internally contradictory (documented ininventories/scripting). - VSCode extension: Problems-panel diagnostics publish/clear is now authoritative across multi-URI and multi-run sessions (#302, #312).
- trusted-execution gained a consent audit trail and dispatch store hardening (#318 series).
- The native-sdk experiment (
experiments/native-sdk,packages/native-adapter) added the intake args codec, aeRef identity descriptors, a per-request HMAC consent boundary, and the first mutating operation (AEGP_SetItemComment) — all verified at fake level only. These are not part of the shipped CLI contract; real-host LOAD-PROOF remains UNVERIFIED (Issue #223).
- New dev-loop surface:
ae-devtools discover/inspect/execute/verify,ae-devtools-mcp(stdio MCP), and the VSCode extension (ae-devtools-vscode-extension, packaged vianpm run package:vsix). --session a8n(real After Effects) now requires an ae-a8n build satisfying the capability contract (#102 handshake exports + #103/#105 fixes). ae-a8n<=0.1.0-alpha.2predates them and is refused up front (AE_A8N_CONTRACT_UNSUPPORTED; checkae-devtools doctor→aeA8n.contractOk). The pin is@ido-bata/ae-a8n@0.6.0; override with--ae-a8n-root <checkout>. Thefakesession is unaffected.
Provides seven bins:
ae-devtools— developer CLI (doctor,discover,inspect,execute,verify,runs,reap,diagnose)jsx-toolchain— TS→ES3 JSX build /check/lint/resolveae-devtools-mcp— stdio MCP server exposing the dev-loop tools (ae_discover/ae_inspect/ae_execute/ae_verify)ae-devtools-recover— crash/modal recovery orchestration (evidence/observe/recover/verify-exit)ae-devtools-cep— CEP extension devkit (scaffold/validate)ae-devtools-cep-lifecycle— CEP panel install/uninstall/status/ cleanup/logs/playerdebugmode(machine-level only; never launches AE)ae-devtools-debug—extendscript-debuglaunch.json generation / contract validation / attach preflight
ae-devtools-mcp speaks newline-delimited JSON-RPC 2.0 on stdio (no
extra dependencies). Point any MCP client at it:
{ "mcpServers": {
"ae-devtools": { "command": "ae-devtools-mcp", "args": [] } } }Claude Desktop: add the same entry under mcpServers in
claude_desktop_config.json. For a real After Effects session pass
"args": ["--session", "a8n", "--ae-a8n-root", "/path/to/ae-a8n"];
the default --session fake is fake/mock evidence only.
ae_execute / ae_verify keep the CLI consent contract:
consent:"grant" is required (default deny, checked before any
session opens), destructive ops need confirmDestructive:true, render
ops confirmRender:true. See mcp-server/README.md for details.
ae-devtools doctor
ae-devtools discover
ae-devtools inspect read.projectSummary
ae-devtools execute read.projectSummary --session fake --consent grant
ae-devtools verify --session fake --consent grantae-devtools execute <opId> --session a8n --consent grant
# 別の ae-a8n build を使う場合:
ae-devtools execute <opId> --session a8n --ae-a8n-root <local-a8n-checkout> --consent grant--session a8n は @ido-bata/ae-a8n の owned-session launch を使う。
解決される 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.6.0
で contract を満たす。<=0.1.0-alpha.2 を
解決した場合は launch 前に refuse される。別 build を使う場合は
--ae-a8n-root <ae-a8n checkout> で override できる。
attached/unknown ownership は拒否される。
consent の default は deny。destructive/render op は追加の confirm flag が必要。
ae-devtools-recover evidence --since <ISO> --out <dir> \
[--pid N] [--proc-name NAME] [--app-version V] [--proc-path P] \
[--reports-dir d]... [--sentry-dir d]...evidence は macOS の DiagnosticReports(.ips)と Sentry envelope を
収集し、sha256 付きで target process へ相関付ける read-only コマンド。
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.6.0はこれらを 同梱するため--ae-a8n-rootなしで解決される。古い ae-a8n を 使う場合のみ--ae-a8n-root <built-ae-a8n>を指定する。 recoverは devtools-cli の run marker (ae-devtools.cli.run-guard/v1) による認可が必須。self-declared flag では GUI mutation に到達しない。- 実機 GUI 経路は UNVERIFIED(fake-level のみ、
tests/run.mjs)。
詳細は recovery-orchestrator/README.md。
ae-devtools-cep scaffold --id com.example.my-panel --out ./my-panel \
[--title "My Panel"] [--version 0.1.0] [--host "[25.0,99.0]"] [--csxs 12.0] [--force]
ae-devtools-cep validate ./my-panel # JSON report; loadProof は常に "NOT RUN"CEP/UXP panel プロジェクトの scaffold 生成と静的 validate
(manifest well-formedness / 必須要素 / panel 参照 / CSInterface.js
同梱 / host .jsx の ES3 subset lint)。Node >= 22、追加依存なし、
AE 不要。
ae-devtools-cep-lifecycle は scaffold 生成物の OS CEP ディレクトリ
への install/uninstall/status/cleanup/log 収集と PlayerDebugMode
読み取りを行う(--target/--log-dir で退避可能)。実機での panel
load / reload / unload(CAP059)と UXP(CAP060)は UNVERIFIED /
BLOCKED — gated 手順は cep-extension/LOAD-PROOF.md、詳細と
証拠水準は cep-extension/README.md を参照。
bin は提供しない。fixer / consentProvider / stateReset は
呼び出し側(coding agent / deployment)が注入するため、正直な既定
CLI が存在しない。install した package から library として import
する:
import { runDevLoop, regressionCheck, toDiagnostic, FAKE_SESSION }
from "@ido-bata/ae-devtools-cli/agent-loop";
import { createFakeHost, createFakeApp }
from "@ido-bata/ae-devtools-cli/agent-loop/fake-host";supported subpath は exports map で列挙された以下のみ(Issue #184):
| subpath | 用途 |
|---|---|
@ido-bata/ae-devtools-cli/agent-loop |
dev loop library(runDevLoop 等) |
@ido-bata/ae-devtools-cli/agent-loop/fake-host |
fake host / fake app |
@ido-bata/ae-devtools-cli/trusted-execution/runner.mjs |
loadTrustedCodec(custom host を組む consumer 向け) |
@ido-bata/ae-devtools-cli/trusted-execution/permissions.mjs |
consentScopeFor(同上) |
上記以外の deep import(dev-loop/・tests/・その他内部 module を含む)は
ERR_PACKAGE_PATH_NOT_EXPORTED で拒否される unsupported surface であり、
予告なく変更され得る。consumer-smoke がこの境界を packed tarball 上で
検証する。
runDevLoop は dispatch→diagnose→fix→rerun→regression の dev loop
(Issue #38)。silent retry なし、fix budget は bounded、consent は
attempt ごとに注入 provider が評価、dirty FAILED 後の rerun は
stateReset 検証または明示 allowDirtyRerun が必須。詳細は
agent-loop/README.md。fake/mock level のみ — real AE dispatch /
ExtendScript semantics / real-host regression は未検証。
jsx-toolchain check src/main.ts # tsc --noEmit + AE API typings
jsx-toolchain lint src/main.ts # ES3-compat lint
jsx-toolchain build-project src/main.ts -o dist --name panel
jsx-toolchain resolve dist/panel.jsx.map 12 4 # JSX位置→TS位置check は同梱の生成済み ae-api.d.ts(scripting inventory 由来)を使う。
| dir | role |
|---|---|
devtools-cli/ |
developer CLI (cli.mjs, session guard, evidence records) |
dev-loop/ |
discover/inspect/execute/verify core |
trusted-execution/ |
codec, consent/permissions, outcomes, mutation guard, runner |
scripting-adapters/ |
operation registry + fake host + coverage claims |
a8n-transport/ |
owned-session transport over @ido-bata/ae-a8n |
mcp-server/ |
stdio MCP server (JSON-RPC) over the dev-loop core |
recovery-orchestrator/ |
crash/modal recovery orchestration (ae-devtools-recover bin) |
diagnostics/ |
ae-devtools.diagnostics/v1 record schema, collector registry, JSX→TS sourcemap resolution (consumed by ae-devtools diagnose) |
jsx-toolchain/ |
TS→ES3 JSX build / typecheck / lint / sourcemap |
cep-extension/ |
CEP extension scaffold + validate devkit (ae-devtools-cep, ae-devtools-cep-lifecycle bins) |
agent-loop/ |
agent dev loop library (@ido-bata/ae-devtools-cli/agent-loop; bin なし、fake-level) |
vscode-extension/ |
VSCode extension scaffold (vsce package → installable VSIX; fake level) |
vscode-debugger/ |
debugger attach-config generator + host preflight (ae-devtools-debug bin) |
npm test— 全 fake-level suite(AE 不要)。先頭でscripts/check-syntax.mjsが shipped.mjs全件にnode --checkを掛ける最小静的ゲート (tsc --checkJs/ eslint は未導入 — Issue #185 の記録済み判断)- テスト基盤:
*.test.mjsを持つ suite はscripts/test-harness.mjs経由、inline suite(devtools-cli / recovery-orchestrator / vscode-debugger / jsx-toolchain)はscripts/testkit.mjsのt/at/finishを共有 npm run smoke:consumer— tarball を外部ディレクトリへ install し、 fake session での CLI 実行を検証- real-host:
--session a8n経路は opt-in。AE 実機・Windows は 別途 evidence 記録(未検証は未検証と表示) - platform scope:
enginesはnode >=22のみを要求し、fake-level の 全 surface(discover/execute/verify/doctor、jsx-toolchain、MCP、 CEP scaffold、VSCode 拡張)は Node が動く OS で利用できる。一方 real-host session 系(AfterEffects.launch、run-marker のosascript/psベースの process probe、~/Library配下の DiagnosticReports 収集)は macOS 前提で実装されており、Windows 実機では UNVERIFIED(Issue #224 で追跡)
- Module READMEs:
devtools-cli/README.md,dev-loop/README.md,jsx-toolchain/README.md,a8n-transport/README.md,trusted-execution/README.md,mcp-server/README.md,recovery-orchestrator/README.md,cep-extension/README.md,agent-loop/README.md - Canonical governance: repo ルートの
AGENTS.md,docs/