live: connect ship-log extension to /live page, fix repo link

This commit is contained in:
2026-03-02 19:10:39 +08:00
parent 3bc412320b
commit d08c6a0f3e
173 changed files with 30458 additions and 43 deletions

20
CLAUDE.md Normal file
View File

@@ -0,0 +1,20 @@
# Pi vs CC — Extension Playground
Pi Coding Agent extension examples and experiments.
## Tooling
- **Package manager**: `bun` (not npm/yarn/pnpm)
- **Task runner**: `just` (see justfile)
- **Extensions run via**: `pi -e extensions/<name>.ts`
## Project Structure
- `extensions/` — Pi extension source files (.ts)
- `specs/` — Feature specifications
- `.pi/agents/` — Agent definitions for agent-team extension
- `.pi/agent-sessions/` — Ephemeral session files (gitignored)
## Conventions
- Extensions are standalone .ts files loaded by Pi's jiti runtime
- Available imports: `@mariozechner/pi-coding-agent`, `@mariozechner/pi-tui`, `@mariozechner/pi-ai`, `@sinclair/typebox`, plus any deps in package.json
- Register tools at the top level of the extension function (not inside event handlers)
- Use `isToolCallEventType()` for type-safe tool_call event narrowing