UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

31 lines 956 B
/** * Cross-provider hook bridge types (PUW-018 / #1119). * * Per ADR-3 §1: AIWG hooks are authored in a canonical source format and * per-provider translators emit native artifacts at deploy time. This module * defines the shared type surface that translators consume. */ /** Canonical AIWG env vars. Translators substitute these at deploy time. */ export const AIWG_ENV_VARS = { PROJECT_DIR: '$AIWG_PROJECT_DIR', TOOL_NAME: '$AIWG_TOOL_NAME', HOOK_EVENT: '$AIWG_HOOK_EVENT', SESSION_ID: '$AIWG_SESSION_ID', }; /** Native env-var contract per ADR-3 §2 table. */ export const NATIVE_ENV_VAR_MAP = { claude: { PROJECT_DIR: '$CLAUDE_PROJECT_DIR', TOOL_NAME: '$CLAUDE_TOOL_NAME', }, factory: { PROJECT_DIR: '$FACTORY_PROJECT_DIR', }, codex: { PROJECT_DIR: '$CODEX_WORKSPACE', }, copilot: { PROJECT_DIR: '$GITHUB_WORKSPACE', }, }; //# sourceMappingURL=types.js.map