test-extension.md
This directory contains a test extension demonstrating pi-mono's extensibility.
The extension is at .pi/extensions/test-extensibility.ts and loads automatically.
cd ~/code/flow
pi
Once pi is running, try these:
use the counter tool to increment by 5
increment the counter 3 times, then show me the value
run: echo "hello world"
(Watch the console for [test-ext] Tool called: bash)
run: rm -i test.txt
(Should show a warning notification)
Type directly:
/count
The extension logs to console. Look for [test-ext] prefixed messages.
counter tool with multiple actionstool_call and turn_end listeners/count slash commandsession_startctx.ui.notify() for warningsEdit .pi/extensions/test-extensibility.ts to:
{ block: true })pi.registerShortcut()pi.registerProvider()