@joe-broadhead/opencode-github 0.0.0 → 0.0.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [0.0.1] - 2026-11-03
6
+
7
+ ### Added
8
+
9
+ - The tools RPC, `github.platform.tools`: a script can call GitHub's known MCP reads, and `api` (`github_api` limited
10
+ to REST GET and HEAD and single GraphQL queries), with no model, through `opencode api`, as a session and its agent.
11
+ It gets exactly the access that agent's model has: a tool its rules hide is refused, OpenCode checks each MCP call
12
+ against the agent's and the session's rules, and an ask is refused at once because no one is there to answer it.
13
+ `describe` lists the methods with each tool's live input schema. GitHub's writes, `ui_get` and any tool GitHub adds
14
+ later are never methods, and `api` refuses changes, downloads and uploads with `SCRIPT_READ_ONLY` before any
15
+ request. With `host` (GitHub Enterprise Server) only `api` runs. `docs/scripting.md` explains it.
16
+
17
+ ### Changed
18
+
19
+ - `check_dependency_vulnerabilities`, which GitHub's hosted server now lists in the `dependabot` toolset, is a known
20
+ read: it looks up a list of packages in the GitHub Advisory Database and changes nothing, so it runs without a
21
+ prompt, and `/github-status` no longer lists it as unknown.
22
+
5
23
  ## [0.0.0] - 2026-11-01
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -82,6 +82,17 @@ Three skills come with it:
82
82
 
83
83
  Each skill reports findings and changes nothing on GitHub unless you ask.
84
84
 
85
+ **Scripts.** A script or a cron job can call GitHub's read tools and `github_api`'s reads with no model, through
86
+ `opencode api`. It runs as a session and its agent, under that agent's permission rules and the session's own.
87
+ Scripts can never change anything on GitHub:
88
+
89
+ ```sh
90
+ opencode api post /api/rpc/github.platform.tools/pull_request_read \
91
+ -d '{"input":{"sessionID":"ses_…","input":{"method":"get","owner":"OWNER","repo":"REPO","pullNumber":42}}}'
92
+ ```
93
+
94
+ See [Scripting](https://github.com/joe-broadhead/opencode-github/blob/HEAD/docs/scripting.md).
95
+
85
96
  **Status.** `/github` in the TUI, or **GitHub: Status** in the command palette, opens a dialog with the state, the
86
97
  account and access, the tools (with the names of any the plugin does not know yet), the agents that miss the default
87
98
  rules with the rules to paste, the OpenCode check and the next step. `r` refreshes it and `Esc` closes it. It also
@@ -224,6 +235,9 @@ Error codes:
224
235
  | `OPTIONS_INVALID` | An option is unknown or has a wrong value; the message names it. Fix that option for the plugin in `opencode.json`. |
225
236
  | `SIGN_IN_…`, `TOKEN_…`, `DEVICE_…`, `CLIENT_ID_UNKNOWN` | Sign-in failed. The message ends with the next step; [the error codes](https://github.com/joe-broadhead/opencode-github/blob/HEAD/docs/configuration.md#errors) list them all. |
226
237
 
238
+ A script's errors from the tools RPC have their own codes, listed in
239
+ [Scripting](https://github.com/joe-broadhead/opencode-github/blob/HEAD/docs/scripting.md#errors).
240
+
227
241
  Other problems:
228
242
 
229
243
  | You see | What to do |
@@ -245,6 +259,8 @@ Other problems:
245
259
 
246
260
  - [Configuration](https://github.com/joe-broadhead/opencode-github/blob/HEAD/docs/configuration.md): options,
247
261
  toolsets, permission rules and error codes.
262
+ - [Scripting](https://github.com/joe-broadhead/opencode-github/blob/HEAD/docs/scripting.md): calling GitHub's reads
263
+ from scripts, with no model.
248
264
  - [Security](https://github.com/joe-broadhead/opencode-github/blob/HEAD/SECURITY.md): network endpoints,
249
265
  credentials, untrusted content and reporting a vulnerability.
250
266
  - [Contributing](https://github.com/joe-broadhead/opencode-github/blob/HEAD/CONTRIBUTING.md): development, checks