@dodopayments/opencode-plugin 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # Dodo Payments Agent Plugin
2
2
 
3
3
  [![License](https://img.shields.io/github/license/dodopayments/dodo-agent-plugin.svg?style=flat-square)](./LICENSE)
4
- [![Version](https://img.shields.io/badge/version-0.2.0-blue.svg?style=flat-square)](./CHANGELOG.md)
4
+ [![Version](https://img.shields.io/badge/version-0.4.0-blue.svg?style=flat-square)](./CHANGELOG.md)
5
5
  [![npm](https://img.shields.io/npm/v/@dodopayments/opencode-plugin.svg?style=flat-square)](https://www.npmjs.com/package/@dodopayments/opencode-plugin)
6
6
  [![Discord](https://img.shields.io/discord/1305511580854779984?label=discord&style=flat-square)](https://discord.gg/bYqAp4ayYh)
7
7
 
8
- The official Dodo Payments plugin for AI coding agents. Installs eight integration skills and two MCP servers across **Claude Code**, **Codex CLI**, **Cursor**, and **OpenCode** from a single source of truth.
8
+ The official Dodo Payments plugin for AI coding agents. Installs seventeen integration skills and two MCP servers across **Claude Code**, **Codex CLI**, **Cursor**, and **OpenCode** from a single source of truth.
9
9
 
10
10
  ## What you get
11
11
 
12
12
  - **Dodo Payments API MCP server** - Live API access (payments, subscriptions, customers, products, refunds, licenses, usage). Authenticates via browser OAuth, no local credentials required.
13
13
  - **Dodo Knowledge MCP server** - No credentials. Semantic search over the current Dodo Payments documentation.
14
- - **Eight agent skills** - Written as `SKILL.md` files with YAML frontmatter. Your agent loads the relevant skill on its own when a task calls for it.
14
+ - **Seventeen agent skills** - Written as `SKILL.md` files with YAML frontmatter. Your agent loads the relevant skill on its own when a task calls for it.
15
15
 
16
16
  ## Install
17
17
 
@@ -71,7 +71,7 @@ OpenCode distributes via npm. Add the plugin to your `opencode.json`:
71
71
  }
72
72
  ```
73
73
 
74
- Restart OpenCode. Both MCP servers (`dodopayments-api`, `dodo-knowledge`) are registered automatically via the plugin's `config` hook, and the eight skills are auto-discovered from the installed package. No manual `mcp` block required.
74
+ Restart OpenCode. Both MCP servers (`dodopayments-api`, `dodo-knowledge`) are registered automatically via the plugin's `config` hook, and the seventeen skills are auto-discovered from the installed package. No manual `mcp` block required.
75
75
 
76
76
  If you prefer the local stdio API server with your own API key instead of the default remote OAuth server, declare `dodopayments-api` yourself in `opencode.json` - your entry wins over the plugin default:
77
77
 
@@ -95,16 +95,52 @@ If you prefer the local stdio API server with your own API key instead of the de
95
95
 
96
96
  ## Included Skills
97
97
 
98
+ **Getting started**
99
+
100
+ | Skill | Description |
101
+ |-------|-------------|
102
+ | `best-practices` | SDK setup, environments, API keys, and the canonical checkout-to-webhook architecture |
103
+ | `framework-adapters` | Official `@dodopayments/*` handlers for Next.js, Express, Hono, Astro, Remix, SvelteKit, Nuxt, Fastify, TanStack, Bun, Convex |
104
+ | `testing-and-go-live` | Test mode, test payment methods, webhook testing, production launch checklist |
105
+
106
+ **Accepting payments**
107
+
108
+ | Skill | Description |
109
+ |-------|-------------|
110
+ | `checkout-integration` | Checkout Sessions, payment links, and overlay checkout |
111
+ | `subscription-integration` | Subscription lifecycle, trials, plan changes, proration, on-demand charges |
112
+ | `mobile-checkout` | In-app checkout for React Native, Flutter, iOS, and Android |
113
+ | `webhook-integration` | Receiving and verifying webhooks via the Standard Webhooks spec |
114
+
115
+ **Billing models**
116
+
117
+ | Skill | Description |
118
+ |-------|-------------|
119
+ | `credit-based-billing` | Credit entitlements, balances, ledger, rollover, overage, meter-based deduction |
120
+ | `usage-based-billing` | Meters, event ingestion, aggregation, and per-unit pricing |
121
+ | `license-keys` | License key activation, validation, and instance management |
122
+
123
+ **Catalog and pricing**
124
+
125
+ | Skill | Description |
126
+ |-------|-------------|
127
+ | `product-catalog-management` | Products, pricing, add-ons, collections, images, digital delivery |
128
+ | `discounts-and-promotions` | Discount codes, eligibility, stacking, subscription-cycle limits |
129
+ | `localized-pricing` | Localized pricing, adaptive currency, and purchasing power parity |
130
+
131
+ **Customers and operations**
132
+
133
+ | Skill | Description |
134
+ |-------|-------------|
135
+ | `customer-management` | Customers, self-service portal, payment methods, wallets |
136
+ | `refunds-and-disputes` | Refunds, disputes and chargebacks, access reconciliation |
137
+
138
+ **UI and integrations**
139
+
98
140
  | Skill | Description |
99
141
  |-------|-------------|
100
- | `best-practices` | Comprehensive guide to integrating Dodo Payments with best practices |
101
- | `checkout-integration` | Creating checkout sessions and payment flows |
102
- | `subscription-integration` | Implementing subscription billing flows |
103
- | `webhook-integration` | Setting up and handling webhooks for payment events |
104
- | `usage-based-billing` | Implementing metered billing with events and meters |
105
- | `credit-based-billing` | Credit entitlements, balances, and metered credit deduction |
106
- | `license-keys` | Managing license keys for digital products |
107
- | `billing-sdk` | Using BillingSDK React components |
142
+ | `billing-sdk` | BillingSDK React components for pricing tables and billing UI |
143
+ | `better-auth-integration` | The `@dodopayments/better-auth` plugin for customer sync, checkout, portal |
108
144
 
109
145
  Skills source: [`dodopayments/skills`](https://github.com/dodopayments/skills) (bundled as a git submodule in `skills-src/`).
110
146
 
@@ -1,6 +1,6 @@
1
1
  # @dodopayments/opencode-plugin
2
2
 
3
- Official OpenCode plugin for Dodo Payments. Ships eight integration skills and auto-registers two MCP servers.
3
+ Official OpenCode plugin for Dodo Payments. Ships seventeen integration skills and auto-registers two MCP servers.
4
4
 
5
5
  This package is part of [`dodopayments/dodo-agent-plugin`](https://github.com/dodopayments/dodo-agent-plugin) - the universal Dodo Payments plugin that also installs into Claude Code, Codex, and Cursor.
6
6
 
@@ -18,12 +18,12 @@ Add to your `opencode.json`:
18
18
  Restart OpenCode. That's it.
19
19
 
20
20
  - Both MCP servers are registered automatically via the plugin's `config` hook.
21
- - The eight skills are auto-discovered from this package's `skills/` directory.
21
+ - The seventeen skills are auto-discovered from this package's `skills/` directory.
22
22
  - The first call to `dodopayments-api` opens a browser for OAuth. `dodo-knowledge` needs no auth.
23
23
 
24
24
  ## What you get
25
25
 
26
- Eight agent skills (auto-loaded when relevant): `best-practices`, `checkout-integration`, `subscription-integration`, `webhook-integration`, `usage-based-billing`, `credit-based-billing`, `license-keys`, `billing-sdk`.
26
+ Seventeen agent skills (auto-loaded when relevant): `best-practices`, `framework-adapters`, `testing-and-go-live`, `checkout-integration`, `subscription-integration`, `mobile-checkout`, `webhook-integration`, `credit-based-billing`, `usage-based-billing`, `license-keys`, `product-catalog-management`, `discounts-and-promotions`, `localized-pricing`, `customer-management`, `refunds-and-disputes`, `billing-sdk`, `better-auth-integration`.
27
27
 
28
28
  Two MCP servers (registered automatically):
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodopayments/opencode-plugin",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Dodo Payments skills and MCP server hints for OpenCode.",
5
5
  "type": "module",
6
6
  "main": "opencode-plugin/index.js",