Reviewed extension documentation.
UnderstandCreated file watcher extension with start/stop tools.
BuildStarted watching markdown files in target directory.
Setuptehre are md files in plans/, i'm editing them in vs code. i want you to get notified if i change them, with the latest content if a file change is detected on this. can you write an extension that does that? should be something configurable, possibly giving you a tool to start/stop observing.
Let me read the extension docs first.
Now I have a clear picture. Let me build the extension.
Done. Created .pi/extensions/watch-plans.ts. Here's what it does:
Two tools:
watch_plans_start - starts watching a directory (defaults to plans/). Takes an optional directory parameter.watch_plans_stop - stops watching.Behavior:
.md file changessendMessageUse /reload to pick it up, then ask me to start watching and I'll call watch_plans_start.
oki start watching
Watching plans/ now. Go ahead and edit your markdown files in VS Code, I'll see the changes as they come in.