@ory/opencode 0.12.1 → 0.13.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 +1 -1
- package/dist/cli/main.js +7 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ All prefixed with `npx -y -p @ory/opencode`.
|
|
|
148
148
|
|
|
149
149
|
- **`/ory:local-up` fails** — make sure Docker is running and ports `4000`, `4100`, `4455`, and `16686` are free.
|
|
150
150
|
- **Browser sign-in loops** — reset with `ory-opencode agent unregister` and try again.
|
|
151
|
-
-
|
|
151
|
+
- **Install ran but never asked how to connect** — you're almost certainly on a stale `npx` cache. `npx -p @ory/opencode` (no version pin) reuses a previously-downloaded copy instead of re-resolving to the latest, so an older CLI whose install predates the setup wizard can run while you believe you're on the current release. 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.
|
|
152
152
|
- **`npm error code ENOVERSIONS` on install** — your npm has a freshness filter hiding brand-new versions. Wait it out, or run `npx -y --min-release-age=0 -p @ory/opencode ory-opencode install`.
|
|
153
153
|
- **Want to see what's happening** — `npx -y -p @ory/opencode ory-opencode status` for a snapshot, `npx -y -p @ory/opencode ory-opencode watch` for the live trace stream, or set `ORY_AGENT_DEBUG=true` for a verbose log. Traces and logs live under `~/.config/ory-agent-plugins/opencode/` (see [See what's happening](#see-whats-happening)).
|
|
154
154
|
|
package/dist/cli/main.js
CHANGED
|
@@ -46,6 +46,7 @@ const path = __importStar(require("node:path"));
|
|
|
46
46
|
const fs = __importStar(require("node:fs"));
|
|
47
47
|
const argus_1 = require("@ory/argus");
|
|
48
48
|
const assets_js_1 = require("./assets.js");
|
|
49
|
+
const PACKAGE_ROOT = path.resolve(__dirname, "..", "..");
|
|
49
50
|
function main() {
|
|
50
51
|
const [command, ...args] = process.argv.slice(2);
|
|
51
52
|
switch (command) {
|
|
@@ -94,6 +95,11 @@ function main() {
|
|
|
94
95
|
case "watch":
|
|
95
96
|
(0, argus_1.runWatchCommand)("opencode", args);
|
|
96
97
|
break;
|
|
98
|
+
case "version":
|
|
99
|
+
case "--version":
|
|
100
|
+
case "-v":
|
|
101
|
+
process.exit((0, argus_1.runVersionCommand)("ory-opencode", args, { packageRoot: PACKAGE_ROOT }));
|
|
102
|
+
break;
|
|
97
103
|
case "help":
|
|
98
104
|
case "--help":
|
|
99
105
|
case "-h":
|
|
@@ -222,6 +228,7 @@ Commands:
|
|
|
222
228
|
(up, down, status, seed, logs, env, configure, reset)
|
|
223
229
|
status [--project-dir <path>] Show plugin configuration and status
|
|
224
230
|
watch [trace-file] Tail the trace stream (OTel spans) live
|
|
231
|
+
version Show version and the ory-agent-plugins build commit
|
|
225
232
|
|
|
226
233
|
After installing, the plugin registers these OpenCode hooks:
|
|
227
234
|
config Log resolved Ory config at startup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"reo-census": "^1.2.8",
|
|
67
|
-
"@ory/argus": "0.
|
|
67
|
+
"@ory/argus": "0.13.1"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=22"
|