@aaplugin/platform-codex
v1.0.0-beta.4
Published
Codex Platform integration for AAPlugin.
Readme
@aaplugin/platform-codex
Codex Platform package for aaplugin.
pnpm add -D @aaplugin/kit @aaplugin/platform-codeximport { defineConfig } from '@aaplugin/kit';
import codex from '@aaplugin/platform-codex';
export default defineConfig({
name: 'my-plugin',
version: '1.0.0',
description: 'Reusable AI workflows.',
platforms: [codex()],
});Commands become explicit Codex Skills named <plugin-name>-<command-id>.
For Plugin my-plugin, Command bootstrap is delivered at
skills/my-plugin-bootstrap/SKILL.md. Arbitrary templates and per-Command
overrides are intentionally not supported.
The package also exports the named codex factory, its option types, PLATFORM_ID, and PLATFORM_API_VERSION.
Codex does not currently expose a Platform Component Contribution payload. A Contributor that submits a non-empty private component contribution for Codex fails during Package finalization; it is never converted to an agent-* Skill.
Runtime and installation
The complete Plugin root is dist/codex/plugin/. Enable the Platform's marketplace option to produce dist/codex/marketplace/, then publish that directory's contents at the root of a release branch. Keep hidden manifests, Runtime, and all auxiliary files.
codex plugin marketplace add ./dist/codex/marketplace
codex plugin add my-plugin@my-marketplaceFor a Git branch containing the generated Marketplace:
codex plugin marketplace add OWNER/REPO --ref release-codex
codex plugin add my-plugin@my-marketplace
codex plugin list --jsonThese command names were checked against Codex CLI 0.163.0; it provides plugin add, not plugin install, and has no plugin validate command.
Runtime entries are at runtime/<id>/main.mjs. Use the loaded Skill's source path to resolve ../../runtime/<id>/main.mjs, then run node with the quoted absolute file path and the business repository as cwd. Generated Command Skills and Agent guidance Skills use the same relative relationship. A Hook configuration placeholder is not a promised environment variable in an agent shell.
Node must be on PATH. AAPlugin targets Node 20 ESM without supplying Node; a product may require a newer version. Framework validation and standalone Runtime execution are distinct from an actual Codex install/discovery/session check.
An Extension can continue to deliver its own private role Markdown as Assets for explicit inline use. The absence of a native Component payload does not prohibit that delivery, and does not imply native Agent isolation.
License
MIT
