@ory/opencode 1.2.4 → 1.3.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/README.md +3 -3
- package/dist/cli/main.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -137,7 +137,7 @@ npx -y -p @ory/opencode ory-opencode configure \
|
|
|
137
137
|
|
|
138
138
|
**Ory Network or OEL.** Either works. For an Ory Network project the URL is `https://<slug>.projects.oryapis.com`; for a self-hosted **Ory Enterprise License** deployment, point `--project-url` at that deployment's base URL and use the sign-in client id from its Agent Security configuration. Everything downstream — sign-in, checks, delegation — is identical.
|
|
139
139
|
|
|
140
|
-
**There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP grants, and observe/enforce posture are provisioned in the Console by someone with project access. At
|
|
140
|
+
**There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP grants, and observe/enforce posture are provisioned in the Console by someone with project access. At session start the plugin loads or enrolls OpenCode's Talos runtime credential in the OS credential store; tool paths only read it. Installing needs no workspace privilege.
|
|
141
141
|
|
|
142
142
|
Sign-in runs at the start of every session and never blocks — a declined, skipped, or timed-out login simply leaves that session without a user identity.
|
|
143
143
|
|
|
@@ -150,7 +150,7 @@ ory-opencode install | uninstall Install (add --project-url to also conn
|
|
|
150
150
|
ory-opencode status Show configuration, identities, native tool access, recent activity
|
|
151
151
|
ory-opencode permissions <cmd> status (read-only; blocks + posture live in the Ory Console)
|
|
152
152
|
ory-opencode configure <flags> Connect a project (--project-url) or --disconnect
|
|
153
|
-
ory-opencode agent <status|unregister>
|
|
153
|
+
ory-opencode agent <status|unregister> Inspect runtime status / clear legacy OAuth state
|
|
154
154
|
ory-opencode local <up|down|status|…> Run / manage a local Ory in Docker
|
|
155
155
|
ory-opencode version Print plugin, core, and Node versions (--json for machine-readable)
|
|
156
156
|
```
|
|
@@ -160,7 +160,7 @@ All prefixed with `npx -y -p @ory/opencode`.
|
|
|
160
160
|
## Troubleshooting
|
|
161
161
|
|
|
162
162
|
- **`/ory:local-up` fails** — make sure Docker is running and ports `4000`, `4100`, `4455`, and `16686` are free.
|
|
163
|
-
- **Browser sign-in loops** (after connecting) —
|
|
163
|
+
- **Browser sign-in loops** (after connecting) — confirm the reserved login client has all four documented loopback redirect URIs; `agent unregister` only clears legacy agent OAuth state.
|
|
164
164
|
- **Running an older CLI than expected** — `npx -p @ory/opencode` (no version pin) reuses a previously-downloaded copy instead of re-resolving to the latest. The install banner prints the running version; confirm it with `npx -y -p @ory/opencode ory-opencode version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/opencode ory-opencode install`. Pinning an exact version (`@ory/opencode@<version>`) also bypasses the cached copy.
|
|
165
165
|
- **Hooks don't seem to run, but skills and `/ory:` commands are there** — OpenCode isn't loading the plugin. It fetches plugins itself, with npm, into its own cache (`~/.cache/opencode/packages/<spec>/`), and neither outcome is visible in OpenCode: an install that succeeded is never re-resolved (so an older cached copy keeps loading), and one that failed is retried and fails the same way every session. Run `npx -y -p @ory/opencode ory-opencode status` — it reports the copy OpenCode will actually load, says when an install was attempted and failed, explains why the spec can't be resolved, and flags stale cache directories.
|
|
166
166
|
- **The plugin can't be installed from your registry** — OpenCode's plugin install uses the npm configuration its own process inherits, so it goes to the public registry unless `npm_config_registry` says otherwise, and any `min-release-age` in your `.npmrc` applies to it as well. A build that isn't on the registry OpenCode reaches (a private or local publish) or a version newer than your freshness gate can't be installed, and `install`/`status` will tell you so. Either launch OpenCode against the right registry — `npm_config_registry=<registry> npm_config_min_release_age=0 opencode` — or point it at a local copy, which skips the registry entirely: `ory-opencode install --plugin-spec file:///path/to/node_modules/@ory/opencode`.
|
package/dist/cli/main.js
CHANGED
|
@@ -260,7 +260,7 @@ Commands:
|
|
|
260
260
|
a file:// path to load a local build instead of npm)
|
|
261
261
|
uninstall [--project-dir <path>] Remove the Ory plugin and MCP server from opencode.json
|
|
262
262
|
configure Set or view Ory project URL and API key
|
|
263
|
-
agent <status|unregister>
|
|
263
|
+
agent <status|unregister> Inspect runtime status or clear legacy OAuth state
|
|
264
264
|
permissions Show live mode and native allowed/blocked state
|
|
265
265
|
local <cmd> Manage local Ory dev environment
|
|
266
266
|
(up, down, status, seed, logs, env, configure, reset)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/opencode",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Ory plugin for OpenCode: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://ory.com",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"reova": "^0.7.0",
|
|
69
|
-
"@ory/argus": "1.
|
|
69
|
+
"@ory/argus": "1.3.1"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=22"
|