mirror of
https://github.com/CharlesWiltgen/Axiom.git
synced 2026-09-20 19:58:20 +08:00
31224bece0
Add an axiom-pi extension for the Pi coding agent. Pi has no sub-agent or plugin-command system, so this supplies the layers its skills can't: - the 15 /axiom-* commands, each dispatching a prompt that triggers the matching skill inline (sendUserMessage); - a session hook injecting the iOS-version ground truth and on-PATH tool availability (before_agent_start), gated to Apple projects; - tool hooks: swiftformat + @State access-control guardrail on Swift writes, crash-file Read routing to xcsym, and bash-output skill hints. Pure logic lives in commands/session/guardrails.ts with colocated vitest tests (31 tests); index.ts is thin Pi wiring, typechecked against the @earendil-works/pi-coding-agent types. Declare a pi manifest (pi.skills + pi.extensions) in the root package.json so `pi install git:github.com/CharlesWiltgen/Axiom` delivers the 27 skills and the extension in one native command — no npm publish, no build step (Pi runs the TypeScript directly).
18 lines
396 B
JSON
18 lines
396 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["ES2023"],
|
|
"types": ["node"],
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"skipLibCheck": true,
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true
|
|
},
|
|
"include": ["src"]
|
|
}
|