You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 94b4710
Browse filesBrowse the repository at this point in the historyBrowse files
feat(opencode-api)!: download the OpenAPI spec at run time instead of shipping it
The ~1 MB spec was over the Claude plugin directory's 256 KiB file limit.
api_lookup.py now fetches https://opencode.ai/docs/openapi.json on first use
into $XDG_CACHE_HOME/opencode-dev-plugin/opencode-api/ (ETag re-check after
7 days, stale copy used offline, --spec for a local file, --refresh).
refresh_references.py becomes fetch_spec.py and writes to that cache.
opencode-api 0.3.0.
BREAKING CHANGE: references/openapi.json and scripts/refresh_references.py
are gone; the first lookup needs network access to opencode.ai (or --spec).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QT6szy26vmHpCXcLaDEDSy
Copy file name to clipboardExpand all lines: .skillspector/opencode-api.yaml
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,6 @@
6
6
# rules to one file so a new gap still fails CI. Format: upstream
7
7
# docs/SUPPRESSION.md.
8
8
version: 2
9
-
rules:
10
-
- id: "AE1"
11
-
path: "SKILL.md"
12
-
message: "*references/openapi.json (partial)*"
13
-
reason: "Coverage gap: SkillSpector's bounded static parser (tool-misuse analyzer) stops on long expressions in this file; scanner limit, not a finding in the file (vendored OpenAPI spec)"
14
-
- id: "AS2"
15
-
path: "references/openapi.json"
16
-
reason: "Vendored upstream docs (references/ is downloaded, never hand-edited): the opencode server's /mcp endpoint description 'List MCP servers', not an access to MCP config"
9
+
# The two rules for the shipped references/openapi.json were dropped when the
Copy file name to clipboardExpand all lines: skills/opencode-api/SKILL.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
name: opencode-api
3
3
description: Use when calling or scripting the opencode server's HTTP API - sessions, prompts, messages, the event stream, PTYs and shells, files, MCP, config, permissions, worktrees, integrations - with curl, opencode api or another HTTP client, when reading the server's OpenAPI spec, or when unsure whether an opencode endpoint is v1 (/session, /event, /global/...) or v2 (/api/...).
4
-
compatibility: Refreshing references/openapi.json (scripts/refresh_references.py) needs network access to opencode.ai; calls need a running opencode server.
4
+
compatibility: The first lookup downloads the OpenAPI spec (about 1 MB) from opencode.ai into a per-user cache, so it needs network access once; calls need a running opencode server.
0 commit comments