Skip to content

Add Opencode Webhook Plugin v0.0.1#2

Merged
zenibako merged 4 commits into
mainfrom
claude/webhook-plugin-opencode-018Kn1PP9kaCk6crmNkMchKN
Nov 20, 2025
Merged

Add Opencode Webhook Plugin v0.0.1#2
zenibako merged 4 commits into
mainfrom
claude/webhook-plugin-opencode-018Kn1PP9kaCk6crmNkMchKN

Conversation

@zenibako

Copy link
Copy Markdown
Owner

Opencode Webhook Plugin

This PR adds a comprehensive TypeScript plugin for Opencode that enables sending webhook notifications on any Opencode event.

Features

  • ✅ Send webhooks on any Opencode event (session, code, build, test, error)
  • ✅ Multiple webhook configurations
  • ✅ Custom payload transformations
  • ✅ Filtering logic with shouldSend
  • ✅ Automatic retry with exponential backoff
  • ✅ Full TypeScript support
  • ✅ Support for Slack, Discord, Teams, and custom webhooks

Quality

  • 98% test coverage - 41 passing tests
  • ESLint - Strict TypeScript linting
  • Full CI/CD pipeline - Automated testing, building, and publishing

Package Details

  • Package: @opencode/webhook-plugin
  • Version: 0.0.1
  • Size: 8.9 KB

Installation

```bash
npm install @opencode/webhook-plugin
```

Next Steps

After merge, create a GitHub release with tag v0.0.1 to automatically publish to npm.

- Add "files" field to package.json to control what gets published
- Add comprehensive npm pack step to CI workflow:
  - Creates tarball with npm pack
  - Verifies package contents and size
  - Checks that essential files are included
  - Ensures unwanted files (tests, node_modules) are excluded
  - Uploads package as artifact (7-day retention)
- Add "package" npm script for local testing
- Add *.tgz to .gitignore

Package size: 8.5 KB (unpacked: 29.8 KB)
Package includes: dist/, LICENSE, README.md, package.json
- Add npm run package to available scripts
- Update CI workflow description to include packaging step
CI Pipeline Enhancements:
- Add npm publish dry-run verification to catch issues early
- Verify package can be published on every build
- Ensures no surprises during actual release

Release Workflow Enhancements:
- Verify package.json version matches GitHub release tag
- Create and publish npm package with provenance
- Verify package availability on npm registry
- Upload multiple release assets (npm tarball + source archive)
- Generate detailed release summary with links

Documentation:
- Add RELEASE.md with complete release process guide
- Document version management and semver guidelines
- Add troubleshooting section for common issues
- Update README with publishing information

Features:
- ✅ Automated version verification
- ✅ Full quality checks before publish (lint, test, build)
- ✅ NPM provenance for supply chain security
- ✅ Post-publish verification
- ✅ Release asset creation
- ✅ Detailed GitHub Actions summaries

Package verified:
- Size: 8.9 KB (unpacked: 30.7 KB)
- All 41 tests passing
- Ready for npm publishing
- Update package version from 1.0.0 to 0.0.1
- Preparing for initial beta release
- Follows semver for pre-1.0 development versions
@github-actions

Copy link
Copy Markdown

PR Validation Results

✅ All checks completed!

Test Coverage

  • Statements: 98.03%
  • Branches: 90%
  • Functions: 100%
  • Lines: 98%

Build artifacts generated successfully.

@codecov

codecov Bot commented Nov 20, 2025

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@zenibako
zenibako merged commit 0409c82 into main Nov 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants