@ory/opencode 0.12.0 → 0.13.0
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/dist/cli/main.js +7 -0
- package/package.json +3 -2
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.0",
|
|
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",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"!dist/**/*.tsbuildinfo"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"
|
|
66
|
+
"reo-census": "^1.2.8",
|
|
67
|
+
"@ory/argus": "0.13.0"
|
|
67
68
|
},
|
|
68
69
|
"engines": {
|
|
69
70
|
"node": ">=22"
|