feat(ai): add @oh-my-pi/pi-ai package with tool name prefixing

- Port pi-ai from upstream with Bun-first approach (source files, no dist)
- Add cli_ prefix to tool names in OAuth mode to avoid collisions
- Improve beta header handling with proper deduplication
- Convert codex-instructions.md to Bun text embed
- Strip .js extensions from all imports
This commit is contained in:
can1357
2026-01-09 12:10:03 +01:00
parent d934594aed
commit 5a63120dd3
138 changed files with 25016 additions and 474 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ The coding-agent is structured into distinct layers:
┌─────────────────────────────────────────────────────────────┐
│ External Dependencies │
│ @oh-my-pi/pi-agent-core (Agent core) │
│ @mariozechner/pi-ai (models, providers) │
│ @oh-my-pi/pi-ai (models, providers) │
│ @oh-my-pi/pi-tui (TUI components) │
│ @oh-my-pi/pi-git-tool (Git tool) │
└─────────────────────────────────────────────────────────────┘
@@ -469,7 +469,7 @@ This is part of a monorepo with the following packages:
- `@oh-my-pi/pi-agent-core` - Core agent implementation
- `@oh-my-pi/pi-tui` - TUI components
- `@oh-my-pi/pi-git-tool` - Git tool integration
- `@mariozechner/pi-ai` - External AI provider library
- `@oh-my-pi/pi-ai` - External AI provider library
## Documentation