Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Feature/extensions api migration#5

Merged
zedrdave merged 2 commits intomainfrom
feature/extensions-api-migration
Jan 6, 2026
Merged

Feature/extensions api migration#5
zedrdave merged 2 commits intomainfrom
feature/extensions-api-migration

Conversation

@zedrdave
Copy link
Copy Markdown
Member

@zedrdave zedrdave commented Jan 6, 2026

No description provided.

BREAKING CHANGES:
- Requires pi-coding-agent >= 0.35.0
- Unified extension system replaces separate hooks/tools
- Installation path changed from tools/ to extensions/

Changes:
- Merged hook.ts and tools.ts into unified extension.ts
- Updated to ExtensionAPI interface (replaces HookAPI + CustomToolFactory)
- Tools now registered via pi.registerTool() instead of export
- Context injection via before_agent_start event handler
- Updated package.json:
  - Bump version to 0.3.0
  - Update peer dependency to >= 0.35.0
  - Remove hook export, keep only main extension export
  - Update dev dependency to pi-coding-agent@0.35.0
- Updated README.md:
  - New installation instructions for extensions/ directory
  - Added migration guide from v0.2.x
  - Updated requirements (pi >= 0.35.0)
- Updated PI_INSTRUCTIONS.md:
  - Changed instructions for extensions/ instead of tools/
  - Removed separate hook installation step
  - Added migration instructions from old setup

All tests pass. The extension provides the same functionality:
- Automatic language detection and context injection
- 5 SCIP tools: find_definition, find_references, list_symbols, search_symbols, project_tree
- Automatic index generation and staleness detection
- Add timestamp query param to npm badge URL to prevent caching
- Created scripts/update-badge-timestamp.cjs to update timestamp
- Added npm version hook to auto-update timestamp on version bumps
- Timestamp will be refreshed automatically when running 'npm version'
@zedrdave zedrdave merged commit 74169a8 into main Jan 6, 2026
3 checks passed
@zedrdave zedrdave deleted the feature/extensions-api-migration branch January 6, 2026 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant