@ory/pi 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 CHANGED
@@ -130,7 +130,7 @@ All prefixed with `npx -y -p @ory/pi`.
130
130
 
131
131
  - **Local Ory won't start** — make sure Docker is running and ports `4000`, `4100`, `4455`, and `16686` are free.
132
132
  - **Browser sign-in loops** — reset with `ory-pi agent unregister` and try again.
133
- - **`npx` grabbed an old version** — force the latest: `npx -y -p @ory/pi@latest ory-pi …`.
133
+ - **Install ran but never asked how to connect** — you're almost certainly on a stale `npx` cache. `npx -p @ory/pi` (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/pi ory-pi version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/pi ory-pi install`. Pinning an exact version (`@ory/pi@<version>`) also bypasses the cached copy.
134
134
  - **Pi can't find the plugin** — make sure `@ory/pi` is installed in the project (`npm install @ory/pi`) and the loader exists at `.pi/extensions/ory.js`; re-run the installer if not.
135
135
  - **Want to see what's happening** — `npx -y -p @ory/pi ory-pi status` for a snapshot, `npx -y -p @ory/pi ory-pi 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/pi/` (see [See what's happening](#see-whats-happening)).
136
136
 
package/dist/cli/main.js CHANGED
@@ -48,6 +48,7 @@ const path = __importStar(require("node:path"));
48
48
  const argus_1 = require("@ory/argus");
49
49
  const assets_js_1 = require("./assets.js");
50
50
  const loader_js_1 = require("./loader.js");
51
+ const PACKAGE_ROOT = path.resolve(__dirname, "..", "..");
51
52
  function main() {
52
53
  const [command, ...args] = process.argv.slice(2);
53
54
  switch (command) {
@@ -96,6 +97,11 @@ function main() {
96
97
  case "watch":
97
98
  (0, argus_1.runWatchCommand)("pi", args);
98
99
  break;
100
+ case "version":
101
+ case "--version":
102
+ case "-v":
103
+ process.exit((0, argus_1.runVersionCommand)("ory-pi", args, { packageRoot: PACKAGE_ROOT }));
104
+ break;
99
105
  case "help":
100
106
  case "--help":
101
107
  case "-h":
@@ -177,6 +183,7 @@ Commands:
177
183
  (up, down, status, seed, logs, env, configure, reset)
178
184
  status [--project-dir <path>] Show plugin configuration and status
179
185
  watch [trace-file] Watch live trace output
186
+ version Show version and the ory-agent-plugins build commit
180
187
 
181
188
  After installing, the plugin hooks into these Pi lifecycle events:
182
189
  session-start (factory body) Verify session / resolve agent identity via Ory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/pi",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "Ory plugin for Pi (the minimal coding agent): 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",
@@ -73,7 +73,7 @@
73
73
  ],
74
74
  "dependencies": {
75
75
  "reo-census": "^1.2.8",
76
- "@ory/argus": "0.12.1"
76
+ "@ory/argus": "0.13.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "typescript": "^6.0.2",