Skip to content

Commit 3621ba6

Browse files
sergicalcodex
andcommitted
fix(opencode): clarify bundle distribution
Co-Authored-By: GPT-5.6 <noreply@openai.com>
1 parent 01fdbc4 commit 3621ba6

11 files changed

Lines changed: 35 additions & 25 deletions

File tree

.github/workflows/deploy-plugins.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Deploy per-agent plugin distributions to their own repositories.
1+
# Deploy per-agent distributions to their own repositories.
22
#
33
# This repository is the single source of truth (skills + routing metadata,
4-
# feeding skills.sentry.dev). Each AI assistant needs the plugin in a different
5-
# shape, so this workflow builds each one and deploys it to a dedicated
6-
# repository whose ROOT is exactly that agent's plugin:
4+
# feeding skills.sentry.dev). Each AI assistant needs the integration in a
5+
# different shape, so this workflow builds each one and deploys it to a
6+
# dedicated repository whose root is exactly that agent's distribution:
77
#
8-
# claude -> getsentry/plugin-claude
9-
# cursor -> getsentry/plugin-cursor
10-
# codex -> getsentry/plugin-codex
11-
# grok -> getsentry/plugin-grok
8+
# claude -> getsentry/plugin-claude
9+
# cursor -> getsentry/plugin-cursor
10+
# codex -> getsentry/plugin-codex
11+
# grok -> getsentry/plugin-grok
1212
# opencode -> getsentry/plugin-opencode
1313
# opencode2 -> getsentry/plugin-opencode2
1414
#

.github/workflows/smoke-installer.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
# PATH to satisfy detection and verify the real clone (this is what exercises
1212
# the per-OS path handling, including Windows).
1313
#
14-
# OpenCode V2 currently recommends WSL on Windows and cannot share V1's MCP
15-
# config shape, so it runs in a separate Linux smoke job. The OpenCode target
16-
# repositories are replaced with temporary local git repositories in both jobs;
17-
# this tests the real clone flow before those generated repositories are first
18-
# deployed.
14+
# The OpenCode target repositories are replaced with temporary local git
15+
# repositories in both jobs; this tests the real clone flow before those
16+
# generated repositories are first deployed.
1917

2018
name: Smoke installer
2119

@@ -134,6 +132,8 @@ jobs:
134132
135133
echo "All agents have the Sentry plugin."
136134
135+
# OpenCode V2 currently recommends WSL on Windows and cannot share V1's MCP
136+
# config shape, so exercise it separately from the cross-platform V1 matrix.
137137
smoke-opencode2:
138138
name: OpenCode V2 beta
139139
runs-on: ubuntu-latest

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Agent Instructions
22

33
## Project Overview
4-
Sentry plugin for AI coding assistants (Claude Code, Cursor, Codex, Grok, and OpenCode V1/V2). Provides MCP server integration and skills.
4+
Sentry skills and MCP integration for AI coding assistants (Claude Code, Cursor, Codex, Grok, and OpenCode V1/V2).
55

66
## Commit Attribution
77
AI commits MUST include:
@@ -21,7 +21,7 @@ src/plugins/<agent>/ # Per-agent build scripts + manifests
2121
src/SKILL_TREE.md # Generated skill index (see Skill Tree Navigation below)
2222
```
2323

24-
Per-agent plugin metadata is generated by the `src/plugins/<agent>/build.sh`
24+
Per-agent distribution metadata is generated by the `src/plugins/<agent>/build.sh`
2525
scripts and published to each agent's distribution repository; it is not
2626
committed here.
2727

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> [!IMPORTANT]
44
> **This is a skill _source_ repository — not something you install directly.**
5-
> The skills here are built from this source into installable plugins for
5+
> The skills here are built from this source into installable distributions for
66
> [Claude Code](https://github.com/getsentry/plugin-claude),
77
> [Cursor](https://github.com/getsentry/plugin-cursor),
88
> [Codex](https://github.com/getsentry/plugin-codex),
@@ -55,11 +55,11 @@ Set up OTel Collector with Sentry exporter
5555
## Distribution
5656

5757
This repository is the single source of truth for all skills, but it is not
58-
itself an installable plugin. Each assistant needs the plugin in a slightly
59-
different shape, so the per-agent plugins are **built** from it by the build
60-
scripts under `src/plugins/<agent>/build.sh`. CI runs these on every push and
61-
deploys each result to its own **distribution repository**, whose root is
62-
exactly that agent's plugin:
58+
itself an installable distribution. Each assistant needs the integration in a
59+
slightly different shape, so the per-agent distributions are **built** from it
60+
by the build scripts under `src/plugins/<agent>/build.sh`. CI runs these on
61+
every push and deploys each result to its own **distribution repository**,
62+
whose root is exactly that agent's installable bundle or native plugin:
6363

6464
| Agent | Distribution repository |
6565
| ----------- | ------------------------------------------------------------------------ |

packages/installer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For each detected assistant, the installer uses its native package command or in
4242
| OpenCode V1 | Clones [`getsentry/plugin-opencode`](https://github.com/getsentry/plugin-opencode) into OpenCode's global skills and adds the V1 Sentry MCP entry |
4343
| OpenCode V2 | Clones [`getsentry/plugin-opencode2`](https://github.com/getsentry/plugin-opencode2) into OpenCode's global skills and adds the V2 Sentry MCP entry |
4444

45-
Each per-agent plugin is built and published from the [`sentry-for-ai`](https://github.com/getsentry/sentry-for-ai) repository, which is the source of truth for all skills.
45+
Each per-agent distribution is built and published from the [`sentry-for-ai`](https://github.com/getsentry/sentry-for-ai) repository, which is the source of truth for all skills.
4646

4747
## Removing the plugin
4848

packages/installer/src/harnesses/opencode-common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { dirname, join } from "node:path";
22
import { applyEdits, findNodeAtLocation, modify, parseTree } from "jsonc-parser";
3+
import mcp from "../../../../mcp.json";
34
import type { OutputSink, SystemDeps } from "../system";
45
import type { Harness, InstallOutcome } from "./types";
56
import { detectOnPath, runCommand } from "./shell";
67

7-
const MCP_URL = "https://mcp.sentry.dev/mcp?utm_source=plugin";
8+
const MCP_URL = mcp.mcpServers.sentry.url;
89

910
interface OpenCodeHarnessOptions {
1011
id: string;

packages/installer/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"rootDir": "src",
88
"strict": true,
99
"esModuleInterop": true,
10+
"resolveJsonModule": true,
1011
"skipLibCheck": true,
1112
"types": ["node"]
1213
},

src/plugins/opencode/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The Sentry skill bundle for [OpenCode V1](https://opencode.ai/docs/). It
44
teaches OpenCode how to set up Sentry, debug production issues through the
55
Sentry MCP server, and configure monitoring features.
66

7+
This is an installer-managed skill and MCP bundle, not an OpenCode runtime
8+
plugin. Installation uses OpenCode's global skill discovery and MCP
9+
configuration surfaces separately.
10+
711
> [!IMPORTANT]
812
> This repository is generated. It is built from
913
> [getsentry/sentry-for-ai](https://github.com/getsentry/sentry-for-ai) and

src/plugins/opencode/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# build.sh - Build the OpenCode V1 distribution of the Sentry plugin.
3+
# build.sh - Build the OpenCode V1 Sentry skill and MCP distribution.
44
#
55
# OpenCode discovers SKILL.md files recursively below a configured skill source.
66
# The distribution therefore keeps the shared skills under skills/ and includes

src/plugins/opencode2/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The Sentry skill bundle for the
55
set up Sentry, debug production issues through the Sentry MCP server, and
66
configure monitoring features.
77

8+
This is an installer-managed skill and MCP bundle, not an OpenCode runtime
9+
plugin. V2 plugins can register skills but cannot register an MCP server, so
10+
installation configures those two surfaces separately.
11+
812
> [!IMPORTANT]
913
> This repository is generated. It is built from
1014
> [getsentry/sentry-for-ai](https://github.com/getsentry/sentry-for-ai) and

0 commit comments

Comments
 (0)