co-mono/packages/ai/test
Mario Zechner c6fc084534 Merge hooks and custom-tools into unified extensions system (#454)
Breaking changes:
- Settings: 'hooks' and 'customTools' arrays replaced with 'extensions'
- CLI: '--hook' and '--tool' flags replaced with '--extension' / '-e'
- API: HookMessage renamed to CustomMessage, role 'hookMessage' to 'custom'
- API: FileSlashCommand renamed to PromptTemplate
- API: discoverSlashCommands() renamed to discoverPromptTemplates()
- Directories: commands/ renamed to prompts/ for prompt templates

Migration:
- Session version bumped to 3 (auto-migrates v2 sessions)
- Old 'hookMessage' role entries converted to 'custom'

Structural changes:
- src/core/hooks/ and src/core/custom-tools/ merged into src/core/extensions/
- src/core/slash-commands.ts renamed to src/core/prompt-templates.ts
- examples/hooks/ and examples/custom-tools/ merged into examples/extensions/
- docs/hooks.md and docs/custom-tools.md merged into docs/extensions.md

New test coverage:
- test/extensions-runner.test.ts (10 tests)
- test/extensions-discovery.test.ts (26 tests)
- test/prompt-templates.test.ts
2026-01-05 01:43:35 +01:00
..
.temp-images Release v0.23.2 2025-12-17 17:56:00 +01:00
data feat(ai): Add image input tests for vision-capable models 2025-08-30 18:37:17 +02:00
abort.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
context-overflow.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
empty.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
handoff.test.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
image-limits.test.ts Fix image limits test to use realistic payload sizes 2025-12-16 23:48:59 +01:00
image-tool-result.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
oauth.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
stream.test.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
tokens.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
tool-call-without-result.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
total-tokens.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
unicode-surrogate.test.ts WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
xhigh.test.ts Add xhigh thinking level for OpenAI codex-max models 2025-12-08 21:12:54 +01:00