@ory/goose 0.13.9 → 1.0.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/README.md CHANGED
@@ -2,9 +2,12 @@
2
2
 
3
3
  Security and developer experience for [Goose](https://github.com/block/goose) (Block's open-source coding agent), powered by [Ory](https://ory.com).
4
4
 
5
- **Security.** Goose runs real actions on your machine — editing files, running shell commands, calling APIs. The plugin gives every session a verifiable identity (you sign in once; Goose and any sub-agents it spawns each get their own), checks every tool call against permissions you control, and records each decision as an audit trace you can ship to your observability stack. It starts in watch mode so nothing is blocked on day one, and if Ory is ever unreachable it steps aside rather than locking you out.
5
+ Goose runs real actions on your machine — editing files, running shell commands, calling APIs. This plugin gives those actions an identity, a permission check, and an audit trail.
6
6
 
7
- **Developer experience.** A single command installs the plugin and walks you through connecting — choose Ory Network, a local Docker stack, or audit-only, and it wires up the project, sign-in client, login, and permissions for you. It also helps you build Ory into your own app: ask in plain language to scaffold login, registration, and recovery pages, run a local Ory, or manage identities and permissions through the bundled MCP server.
7
+ One command installs two independent halves:
8
+
9
+ - **Developer experience** — the Ory skill catalog, the local Ory dev stack, and activity logging. No account, no keys, nothing to configure: it works the moment it's installed.
10
+ - **Ory Agent Security** — browser sign-in, brokered permission checks before tool calls, and the delegation trail. Opt-in connection details from the [Ory Console](https://console.ory.sh) switch it on, and it takes nothing away from the half above. See [Connect to Ory Agent Security](#connect-to-ory-agent-security).
8
11
 
9
12
  Verified against the `goose` binary (v1.39.0): the plugin layout, the `hooks.json` schema, and the discovery paths all match Goose's shell-hook plugin contract (see [block/goose#9304](https://github.com/block/goose/pull/9304)).
10
13
 
@@ -17,114 +20,121 @@ Verified against the `goose` binary (v1.39.0): the plugin layout, the `hooks.jso
17
20
 
18
21
  ## Get started
19
22
 
20
- Run one command. It installs the plugin and walks you through connecting:
23
+ Run one command:
21
24
 
22
25
  ```bash
23
26
  npx -y -p @ory/goose ory-goose install
24
27
  ```
25
28
 
26
- The installer drops a self-contained plugin at `<project>/.agents/plugins/ory/`, where Goose finds it on its own at startup — no `goose configure` step and nothing else in your Goose config gets touched. Then it asks how you want to connect **press Enter for the default**:
27
-
28
- - **Ory Network** *(default)* — sign in, or create a free account, in your browser. The project, keys, permissions, and login are all set up for you. Nothing to configure by hand.
29
- - **Local** — run a complete Ory on your laptop with Docker. No account, no signup, no keys. Great for trying it out.
30
- - **Audit-only** — skip Ory entirely and just log what Goose does.
29
+ The installer drops a self-contained plugin at `<project>/.agents/plugins/ory/`, where Goose finds it on its own at startup — no `goose configure` step and nothing else in your Goose config gets touched. Add `--global` to install for every project (at `~/.agents/plugins/ory/`).
31
30
 
32
- That's it. Confirm everything landed with:
31
+ Confirm everything landed with:
33
32
 
34
33
  ```bash
35
34
  npx -y -p @ory/goose ory-goose status
36
35
  ```
37
36
 
38
- `status` is your one-stop check: what's configured, who's signed in, which tools are covered by permissions, whether the plugin is registered (project and global), and recent activity.
37
+ `status` is your one-stop check: what's configured, who's signed in, which tools are covered by permissions, whether the plugin is registered (project and global), and recent activity. Until you connect Agent Security, the identity and permission rows say so and name what's missing.
38
+
39
+ ## Skills and commands
40
+
41
+ Installing the plugin drops the full Ory playbook catalog into Goose. **Skills** are vetted playbooks Goose runs when you ask for them in chat — plain language is enough.
42
+
43
+ | Skill | What it does for you |
44
+ |---|---|
45
+ | `ory-auth-setup` | Adds a complete auth system to your app — login, registration, recovery, verification, settings — on [Ory Elements](https://github.com/ory/elements) |
46
+ | `ory-login-flow` | Builds just the pages, wired to Ory's self-service flows |
47
+ | `ory-social-login` | "Sign in with…" for Google, GitHub, Apple, Microsoft, Discord, Slack, GitLab, Facebook |
48
+ | `ory-local-dev` | Develops and tests login/permission flows against a local Ory — no project, no account, offline |
49
+ | `ory-permissions-onboarding` | Walks a fresh install from observe mode to enforced per-tool permissions without getting blocked |
50
+ | `ory-build-agent` | Drops `@ory/argus` into an agent *you* own — Claude Agent SDK, OpenAI Agents, Mastra, Vercel AI, LangGraph/PydanticAI |
51
+ | `ory-build-integration` | Wires Ory into your app: Action webhooks, JWT validation at a gateway, live event streams |
52
+ | `ory-contribute-integration` | Authors and submits an integration to the public `ory/integrates` registry |
53
+ | `ory-e2b-sandbox` | Scaffolds an E2B sandbox template that boots with this plugin preinstalled |
54
+ | `ory-temporal-worker` | Scaffolds a Temporal TypeScript worker where every Activity is authenticated, authorized, and audited |
55
+
56
+ The local stack has its own playbooks — ask for them by name:
57
+
58
+ | Command | What it does |
59
+ |---|---|
60
+ | `ory-local-up` | Starts a local Ory (Identities, OAuth2, Permissions) in Docker and seeds a test user — it prints the email + password to sign in with |
61
+ | `ory-local-down` | Stops it, keeping your data volumes |
62
+ | `ory-temporal-up` | Starts a local Temporal dev server for the `ory-temporal-worker` scaffold |
63
+
64
+ The local stack runs entirely on your laptop: Ory APIs at `http://localhost:4000`, a login UI on `:4455` (not `:3000`, to dodge Next.js port clashes), and the Ory Console on `:4100`.
39
65
 
40
- Re-run install with `--reconfigure` to change your connection later, `--no-configure` to skip the wizard, or `--global` to install for every project (at `~/.agents/plugins/ory/`).
66
+ So: ask Goose *"add Ory login to this app"* and it scaffolds the pages, starts a local Ory, and wires them together.
41
67
 
42
68
  ## What you get
43
69
 
44
- Once connected, every tool Goose runs is governed by Ory three things happen automatically:
70
+ Out of the box, every tool Goose runs produces a privacy-safe structured activity event in the unified local log.
45
71
 
46
- - **Who's driving.** You sign in once in your browser (a standard, secure browser login); Goose gets its own separate identity and registers it automatically on first run. No tokens to copy around, and the "who did what" trail stays queryable later.
47
- - **What it's allowed to do.** Before a tool runs, Ory checks whether it's permitted. It starts in **watch mode** — nothing is blocked, you just *see* what would be — so it never gets in your way on day one.
48
- - **A record of everything.** Every decision (allowed, denied, skipped) is logged as a trace you can send to Jaeger, Honeycomb, Grafana, or just a file.
72
+ Once you connect to Ory Agent Security, two more things happen automatically:
49
73
 
50
- Under the hood, Goose runs the plugin as a small program for each thing it does, handing it the event and reading back a decision. The `hooks.json` file maps that: **SessionStart** signs you in, **PreToolUse** (the one point that can block) runs the permission check, and the rest **PostToolUse, BeforeReadFile, AfterFileEdit, BeforeShellExecution, Stop, SessionEnd** — just record activity. If Ory is ever unreachable, the plugin gets out of the way and lets Goose keep working, so it can't lock you out.
74
+ - **Who's driving.** You sign in once in your browser; Goose (and any sub-agents it spawns) each get their own identity. No tokens to copy around, and the "who acted on whose behalf" trail stays queryable later.
75
+ - **What it's allowed to do.** Before a tool runs, Ory checks whether it's permitted. It starts in **observe mode** — nothing is blocked, you just *see* what would be — so it never gets in your way on day one.
76
+
77
+ Under the hood, Goose runs the plugin as a small program for each thing it does, handing it the event and reading back a decision. The `hooks.json` file maps that: **SessionStart** signs you in (once connected), **PreToolUse** (the one point that can block) runs the permission check, and the rest — **PostToolUse, BeforeReadFile, AfterFileEdit, BeforeShellExecution, Stop, SessionEnd** — just record activity. If Ory is ever unreachable, the plugin gets out of the way and lets Goose keep working, so it can't lock you out.
51
78
 
52
79
  ### See what's happening
53
80
 
54
- Everything the plugin does is observable out of the box — no configuration required:
81
+ Everything the plugin does is observable out of the box:
55
82
 
56
- - **Status at a glance.** `npx -y -p @ory/goose ory-goose status` shows what's configured, who's signed in, how many built-in tools your permissions cover, and the most recent tool-call activity.
57
- - **Live traces.** Every tool call is recorded as an OpenTelemetry-style span. Watch them stream as the agent works:
83
+ - **Activity log.** Privacy-safe activity is always appended to `~/.config/ory-agent-plugins/goose/ory-agent-debug.log`. View events, decisions, and errors live with:
58
84
 
59
85
  ```bash
60
86
  npx -y -p @ory/goose ory-goose watch
61
87
  ```
62
88
 
63
- Spans are also written to `~/.config/ory-agent-plugins/goose/ory-agent-trace.ndjson` (NDJSON, one span per line) — tail that file, or point `OTEL_EXPORTER_OTLP_ENDPOINT` at a collector to ship them straight to Jaeger, Honeycomb, or Grafana.
64
- - **Debug log.** For a verbose play-by-play, set `ORY_AGENT_DEBUG=true`; structured logs land in `~/.config/ory-agent-plugins/goose/ory-agent-debug.log`.
89
+ Set `ORY_AGENT_LOG_FILE` to override the path; set it empty to disable file persistence.
90
+ - **Live debug.** Launch Goose with `ORY_AGENT_DEBUG=true` to add verbose local diagnostics, including raw shell commands, to the watched log and stderr. Secrets are recursively redacted; pass `watch --json` for NDJSON.
65
91
 
66
92
  ### Ready to enforce?
67
93
 
68
- When the watch-mode logs look right, turn on blocking with one command (setup already granted you the built-in tools):
94
+ Once connected, the deny posture lives on the Ory project: when the observe-mode activity looks right, an admin promotes it to **enforce** in the **Ory Console** (Agent Security). Every session reads that posture live, so nothing has to be reinstalled.
69
95
 
70
96
  ```bash
71
- npx -y -p @ory/goose ory-goose permissions enforce
97
+ npx -y -p @ory/goose ory-goose permissions # what the project grants, and the live mode
72
98
  ```
73
99
 
74
- Now a denied tool is actually blocked and Goose shows why. Go back to watch mode anytime with `permissions observe`. Use `permissions status` to see what's covered and `permissions bootstrap` to (re-)grant the built-in tools.
75
-
76
- ## Also: add login to your own app
100
+ Then a denied tool is actually blocked and Goose shows why.
77
101
 
78
- Beyond securing Goose, the plugin helps you build Ory into whatever you're working on — backed by a local Ory, so it needs nothing but Docker. Ask Goose in plain language, e.g. *"add Ory auth to this app"*, and it scaffolds the login, registration, recovery, and settings pages (using [Ory Elements](https://github.com/ory/elements)) wired to a local Ory — no signup or keys needed.
102
+ ## Connect to Ory Agent Security
79
103
 
80
- These are **skills** vetted playbooks Goose runs when you ask for them in chat. Start a local Ory with the `ory-local-up` skill (it prints a test email + password to sign in with) and tear it down with `ory-local-down`. More skills cover `ory-auth-setup`, `ory-login-flow`, `ory-social-login` (Google, GitHub, Apple…), `ory-permissions-onboarding`, and more.
104
+ Copy the connection details from the [Ory Console](https://console.ory.sh) under **Agent Security**:
81
105
 
82
- ## Configure by hand (CI / advanced)
83
-
84
- The guided setup covers most people. For scripted or CI setups, or to point at an existing Ory Network project, configure directly. Settings are saved to `~/.config/ory-agent-plugins/config.json` and shared across all your Ory agent plugins; environment variables win when both are set.
106
+ | Value | Flag | Environment variable |
107
+ |---|---|---|
108
+ | Project URL | `--project-url` | `ORY_PROJECT_URL` |
109
+ | Agent Security URL | `--agent-security-url` | `ORY_AGENT_SECURITY_URL` |
110
+ | Sign-in client id override (default `ory-agent-security-login`) | `--oauth2-client-id` | `ORY_OAUTH2_CLIENT_ID` |
85
111
 
86
112
  ```bash
87
113
  npx -y -p @ory/goose ory-goose configure \
88
114
  --project-url https://<slug>.projects.oryapis.com \
89
- --oauth2-client-id <sign-in client id> \
90
- --user-login
115
+ --agent-security-url https://agents.console.ory.com
91
116
  ```
92
117
 
93
- Goose's own identity registers itself automatically on first run nothing to create. The `--oauth2-client-id` is the one piece browser sign-in needs (the guided setup makes it for you). Persist the login toggle with `--user-login` / `--no-user-login`, or set it per-session with `ORY_USER_LOGIN=true`. For logging-only with no checks, use `--audit-only`. The matching env vars are `ORY_PROJECT_URL`, `ORY_OAUTH2_CLIENT_ID`, `ORY_USER_LOGIN`, and `ORY_AGENT_API_KEY`.
94
-
95
- <details>
96
- <summary>Create the sign-in client by hand</summary>
118
+ `install` accepts the same flags, so you can register the plugin **and** connect in one shot (`install --project-url <URL> --agent-security-url <URL>`). The login client defaults to `ory-agent-security-login`; custom deployments can override it with `--oauth2-client-id`. Existing configurations fall back to the project URL when the Agent Security URL is unset. To turn sign-in and checks back off later, use `configure --disconnect`.
97
119
 
98
- The guided setup normally does this. To do it yourself, create a **public** OAuth2 client (no secret) listing all four loopback URLs the plugin tries each in turn so sign-in survives a busy port:
99
-
100
- ```bash
101
- ory create oauth2-client --project <project-id> \
102
- --name "ory-agent-plugin" \
103
- --grant-type authorization_code,refresh_token \
104
- --response-type code \
105
- --scope openid,offline_access \
106
- --token-endpoint-auth-method none \
107
- --redirect-uri http://127.0.0.1:47823/callback \
108
- --redirect-uri http://127.0.0.1:47824/callback \
109
- --redirect-uri http://127.0.0.1:47825/callback \
110
- --redirect-uri http://127.0.0.1:47826/callback
111
- ```
120
+ **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.
112
121
 
113
- Pass the resulting id to `configure --oauth2-client-id`. Running headless with a session token already? Set `ORY_USER_SESSION_TOKEN` and skip the browser step entirely.
122
+ **There is nothing else for you to create.** The sign-in client, the permission model, the per-tool grants and blocks, and the observe/enforce posture are all provisioned in the Console by someone with project access. At runtime the plugin only *reads* permissions — it has no write path into your project, which is why installing it needs no workspace privilege. Each Goose session registers its own identity automatically on first use.
114
123
 
115
- </details>
124
+ 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.
116
125
 
117
- With nothing configured, the plugin still loads and runs in **pass-through mode**: skills and logging work, but no checks run and nothing is blocked. Perfectly fine if you only want the app-building features.
126
+ Settings are saved to `~/.config/ory-agent-plugins/config.json` and shared across all your Ory agent plugins; environment variables win when both are set. Running headless with an OAuth2 access token already? Set `ORY_USER_OAUTH2_TOKEN` and the browser step is skipped entirely.
118
127
 
119
128
  ## Commands
120
129
 
121
130
  ```
122
- ory-goose install | uninstall Install/remove; --reconfigure re-runs setup, --no-configure skips it, --global installs everywhere
131
+ ory-goose install | uninstall Install (add --project-url to also connect Agent Security) / remove; --global installs for every project
123
132
  ory-goose status Show configuration, identities, permission coverage, registration, recent activity
124
- ory-goose watch Tail the live trace stream (OTel spans)
125
- ory-goose permissions <cmd> status | bootstrap | observe (watch) | enforce (block)
126
- ory-goose configure <flags> Point at a project by hand (--project-url, --oauth2-client-id, --user-login, --audit-only)
133
+ ory-goose permissions <cmd> status (read-only; grants + posture live in the Ory Console)
134
+ ory-goose configure <flags> Connect a project (--project-url) or --disconnect
127
135
  ory-goose agent <status|unregister> Manage Goose's own auto-created identity
136
+ ory-goose local <up|down|status|…> Run / manage a local Ory in Docker
137
+ ory-goose version Print plugin, core, and Node versions (--json for machine-readable)
128
138
  ```
129
139
 
130
140
  All prefixed with `npx -y -p @ory/goose`.
@@ -132,16 +142,14 @@ All prefixed with `npx -y -p @ory/goose`.
132
142
  ## Troubleshooting
133
143
 
134
144
  - **The local Ory fails to start** — make sure Docker is running and ports `4000`, `4100`, `4455`, and `16686` are free.
135
- - **Browser sign-in loops** — reset with `ory-goose agent unregister` and try again.
136
- - **Install ran but never asked how to connect** — you're almost certainly on a stale `npx` cache. `npx -p @ory/goose` (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/goose ory-goose version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/goose ory-goose install`. Pinning an exact version (`@ory/goose@<version>`) also bypasses the cached copy.
145
+ - **Browser sign-in loops** (after connecting) — reset with `ory-goose agent unregister` and try again.
146
+ - **Running an older CLI than expected** — `npx -p @ory/goose` (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/goose ory-goose version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/goose ory-goose install`. Pinning an exact version (`@ory/goose@<version>`) also bypasses the cached copy.
137
147
  - **Goose isn't picking up the plugin** — confirm the tree at `<project>/.agents/plugins/ory/` exists (or re-run the installer), and restart Goose.
138
- - **Want to see what's happening** — `npx -y -p @ory/goose ory-goose status` for a snapshot, `npx -y -p @ory/goose ory-goose 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/goose/` (see [See what's happening](#see-whats-happening)).
139
148
 
140
149
  ## Learn more
141
150
 
142
151
  - [Ory documentation](https://www.ory.com/docs/) · [Ory Console](https://console.ory.sh) · [Ory Elements](https://github.com/ory/elements)
143
152
  - [Goose repository](https://github.com/block/goose)
144
- - [Repo README](../../README.md) and [AGENTS.md](../../AGENTS.md) — full env-var and permission-mode reference
145
153
 
146
154
  ## License
147
155
 
package/dist/cli/main.js CHANGED
@@ -57,6 +57,11 @@ const PLUGIN_NAME = "ory";
57
57
  const PACKAGE_ROOT = path.resolve(__dirname, "..", "..");
58
58
  function main() {
59
59
  const [command, ...args] = process.argv.slice(2);
60
+ // `--help` after a matched subcommand: print usage, do nothing else.
61
+ // Without this the switch below ignores the flag and `install --help`
62
+ // performs a real install (#221).
63
+ if ((0, argus_1.shouldPrintHelp)(command, args))
64
+ return help();
60
65
  switch (command) {
61
66
  case "install":
62
67
  (0, argus_1.beginDeferNextSteps)();
@@ -68,7 +73,10 @@ function main() {
68
73
  break;
69
74
  case "uninstall":
70
75
  uninstall(args);
71
- (0, argus_1.clearCredentialsForUninstall)().then(() => process.exit(0), (err) => {
76
+ (0, argus_1.clearCredentialsForUninstall)({
77
+ harness: "goose",
78
+ purge: args.includes("--purge"),
79
+ }).then(() => process.exit(0), (err) => {
72
80
  console.error(err.message ?? err);
73
81
  process.exit(1);
74
82
  });
@@ -77,7 +85,7 @@ function main() {
77
85
  (0, argus_1.runConfigureCommand)("ory-goose", args);
78
86
  break;
79
87
  case "agent":
80
- (0, argus_1.runAgentCommand)("ory-goose", args).then((code) => process.exit(code), (err) => {
88
+ (0, argus_1.runAgentCommand)("ory-goose", "goose", args).then((code) => process.exit(code), (err) => {
81
89
  console.error(err.message ?? err);
82
90
  process.exit(1);
83
91
  });
@@ -97,15 +105,15 @@ function main() {
97
105
  process.exit(1);
98
106
  });
99
107
  break;
108
+ case "watch":
109
+ (0, argus_1.runWatchCommand)("ory-goose", "goose", args).then((code) => process.exit(code), (err) => { console.error(err.message ?? err); process.exit(1); });
110
+ break;
100
111
  case "local":
101
112
  (0, argus_1.runLocalCommand)("ory-goose", args).catch((err) => {
102
113
  console.error(err.message ?? err);
103
114
  process.exit(1);
104
115
  });
105
116
  break;
106
- case "watch":
107
- (0, argus_1.runWatchCommand)("goose", args);
108
- break;
109
117
  case "version":
110
118
  case "--version":
111
119
  case "-v":
@@ -167,10 +175,11 @@ Commands:
167
175
  uninstall [--global] Remove the Ory plugin
168
176
  configure Set or view Ory project URL and API key
169
177
  agent <cmd> Manage the agent's OAuth2 (DCR) identity (status, unregister)
170
- permissions <cmd> Manage permission mode and tool permissions (status, bootstrap, observe, enforce)
178
+ permissions Show the live permission mode and per-tool coverage
171
179
  setup [--project-dir] Write the plugin tree directly (advanced)
172
180
  status Show plugin status and configuration
173
- watch [trace-file] Tail the trace stream (OTel spans) live
181
+ watch [--json] [--lines <count>]
182
+ Follow the live activity/debug log
174
183
  version Show version and the ory-agent-plugins build commit
175
184
  local <cmd> Manage local Ory dev environment (up, down, status, seed, ...)
176
185
 
@@ -7,10 +7,10 @@
7
7
  * - `~/.agents/plugins/<name>/` (user-global, with --global)
8
8
  *
9
9
  * Each plugin dir holds a `plugin.json` manifest and `hooks/hooks.json`
10
- * describing the hook commands. We render both fresh at install time so the
11
- * version pin baked into the hook command always matches the installed
12
- * package. No `goose configure`, config edit, or MCP registration is needed
13
- * for the gate — discovery is purely directory-based.
10
+ * describing the hook commands. We render both fresh at install time because
11
+ * the hook command points at the runtime shim resolved by this install. No
12
+ * `goose configure`, config edit, or MCP registration is needed for the gate —
13
+ * discovery is purely directory-based.
14
14
  *
15
15
  * The plugin dir layout (plugin.json + hooks/hooks.json) and discovery paths
16
16
  * are verified against goose v1.39.0.
package/dist/cli/setup.js CHANGED
@@ -8,10 +8,10 @@
8
8
  * - `~/.agents/plugins/<name>/` (user-global, with --global)
9
9
  *
10
10
  * Each plugin dir holds a `plugin.json` manifest and `hooks/hooks.json`
11
- * describing the hook commands. We render both fresh at install time so the
12
- * version pin baked into the hook command always matches the installed
13
- * package. No `goose configure`, config edit, or MCP registration is needed
14
- * for the gate — discovery is purely directory-based.
11
+ * describing the hook commands. We render both fresh at install time because
12
+ * the hook command points at the runtime shim resolved by this install. No
13
+ * `goose configure`, config edit, or MCP registration is needed for the gate —
14
+ * discovery is purely directory-based.
15
15
  *
16
16
  * The plugin dir layout (plugin.json + hooks/hooks.json) and discovery paths
17
17
  * are verified against goose v1.39.0.
@@ -64,8 +64,8 @@ const path = __importStar(require("node:path"));
64
64
  const argus_1 = require("@ory/argus");
65
65
  const assets_js_1 = require("./assets.js");
66
66
  const PACKAGE_NAME = "@ory/goose";
67
- const HOOK_BIN = "ory-goose-hook";
68
67
  const PLUGIN_NAME = "ory";
68
+ const PACKAGE_ROOT = path.resolve(__dirname, "..", "..");
69
69
  /**
70
70
  * Resolve the Goose plugin root: `~/.agents/plugins/ory` with --global, else
71
71
  * `<projectDir>/.agents/plugins/ory`.
@@ -97,19 +97,18 @@ function renderManifest(version) {
97
97
  return {
98
98
  name: PLUGIN_NAME,
99
99
  version,
100
- description: "Ory authentication, authorization, and distributed tracing for Goose",
100
+ description: "Ory authentication, authorization, and activity auditing for Goose",
101
101
  };
102
102
  }
103
103
  /**
104
- * Render hooks/hooks.json. Each event maps to the version-pinned hook binary,
105
- * resolved via npx so it needn't be on PATH after install. PreToolUse is the
106
- * only event that can block; the rest are observability hooks.
104
+ * Render hooks/hooks.json. Each event maps to the runtime shim resolved at
105
+ * install time, so no package resolution happens per tool call. PreToolUse is
106
+ * the only event that can block; the rest are observability hooks.
107
107
  *
108
108
  * The hooks.json schema (per-event arrays of `{ type, command }`, optional
109
109
  * regex `matcher`/`pattern`) is verified against goose v1.39.0.
110
110
  */
111
- function renderHooks(version) {
112
- const command = `npx -y -p ${PACKAGE_NAME}@${version} ${HOOK_BIN}`;
111
+ function renderHooks(command) {
113
112
  const entry = [{ type: "command", command }];
114
113
  return {
115
114
  hooks: {
@@ -127,20 +126,22 @@ function renderHooks(version) {
127
126
  },
128
127
  };
129
128
  }
130
- function writePluginTree(pluginRoot, version) {
129
+ function writePluginTree(pluginRoot, version, runtime) {
131
130
  fs.mkdirSync(pluginRoot, { recursive: true });
132
131
  fs.writeFileSync(path.join(pluginRoot, "plugin.json"), JSON.stringify(renderManifest(version), null, 2) + "\n");
133
132
  const hooksDir = path.join(pluginRoot, "hooks");
134
133
  fs.mkdirSync(hooksDir, { recursive: true });
135
- fs.writeFileSync(path.join(hooksDir, "hooks.json"), JSON.stringify(renderHooks(version), null, 2) + "\n");
134
+ fs.writeFileSync(path.join(hooksDir, "hooks.json"), JSON.stringify(renderHooks((0, argus_1.requireHookCommand)(runtime)), null, 2) + "\n");
136
135
  (0, assets_js_1.installGooseOryAssets)(pluginRoot);
137
136
  }
138
137
  function runSetup(args) {
139
138
  const version = readPackageVersion();
140
139
  if (args.print) {
140
+ // Nothing is resolved or written on a --print run, so the hook command is
141
+ // shown as the shim path it will point at.
141
142
  console.log(JSON.stringify({
142
143
  "plugin.json": renderManifest(version),
143
- "hooks/hooks.json": renderHooks(version),
144
+ "hooks/hooks.json": renderHooks(`node "<runtime shim>"`),
144
145
  }, null, 2));
145
146
  return;
146
147
  }
@@ -153,9 +154,26 @@ function runSetup(args) {
153
154
  (0, assets_js_1.uninstallGooseOryAssets)(pluginRoot);
154
155
  fs.rmSync(pluginRoot, { recursive: true, force: true });
155
156
  console.log(`Removed Ory plugin from ${pluginRoot}`);
157
+ (0, argus_1.removeRuntimeWiring)("goose");
158
+ for (const pruned of (0, argus_1.pruneRuntimeStores)()) {
159
+ console.log(` Removed runtime: ${pruned}`);
160
+ }
156
161
  return;
157
162
  }
158
- writePluginTree(pluginRoot, version);
163
+ const runtime = (0, argus_1.wireRuntime)({
164
+ harness: "goose",
165
+ packageName: PACKAGE_NAME,
166
+ packageRoot: PACKAGE_ROOT,
167
+ installCommand: "npx -y -p @ory/goose ory-goose install",
168
+ args: process.argv.slice(2),
169
+ });
170
+ console.log(runtime.target.kind === "linked"
171
+ ? `Runtime: linked to ${runtime.target.packageDir} (dev)`
172
+ : `Runtime: ${runtime.target.packageName}@${runtime.target.version} in ${runtime.target.storeDir}`);
173
+ for (const pruned of runtime.prunedStores) {
174
+ console.log(` Removed stale runtime: ${pruned}`);
175
+ }
176
+ writePluginTree(pluginRoot, version, runtime);
159
177
  console.log(`Ory plugin installed to ${pluginRoot}`);
160
178
  console.log(` plugin.json + hooks/hooks.json + skills/ written.`);
161
179
  (0, argus_1.printNextSteps)("Goose", "npx -y -p @ory/goose ory-goose-setup --uninstall", {
@@ -176,7 +194,10 @@ if (require.main === module) {
176
194
  // Direct `-setup --uninstall` path: also clear stored Ory credentials.
177
195
  // (The `ory-goose uninstall` command handles this itself.)
178
196
  if (process.argv.includes("--uninstall")) {
179
- (0, argus_1.clearCredentialsForUninstall)().then(() => process.exit(0), (err) => {
197
+ (0, argus_1.clearCredentialsForUninstall)({
198
+ harness: "goose",
199
+ purge: process.argv.includes("--purge"),
200
+ }).then(() => process.exit(0), (err) => {
180
201
  console.error(err.message ?? err);
181
202
  process.exit(1);
182
203
  });
@@ -1,14 +1,8 @@
1
- import { OryAgentClient, ensureUserAuthenticated, ensureAgentIdentity } from "@ory/argus";
1
+ import { OryAgentClient, ensureAgentIdentity, ensureUserAuthenticated } from "@ory/argus";
2
2
  import type { GooseHookInput, GooseHookOutput } from "./types.js";
3
3
  export interface HandleHookEventDeps {
4
- /** Test injection point for the user login flow. */
5
4
  userLogin?: typeof ensureUserAuthenticated;
6
- /** Test injection point for the agent identity gate. */
7
5
  agentGate?: typeof ensureAgentIdentity;
8
6
  }
9
- /**
10
- * Route a Goose hook event to the appropriate Ory integration.
11
- *
12
- * Event-name set verified against goose v1.39.0.
13
- */
7
+ /** Route a Goose hook event to the appropriate Ory integration. */
14
8
  export declare function handleHookEvent(input: GooseHookInput, client: OryAgentClient, deps?: HandleHookEventDeps): Promise<GooseHookOutput>;
package/dist/handlers.js CHANGED
@@ -2,11 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleHookEvent = handleHookEvent;
4
4
  const argus_1 = require("@ory/argus");
5
- /**
6
- * Route a Goose hook event to the appropriate Ory integration.
7
- *
8
- * Event-name set verified against goose v1.39.0.
9
- */
5
+ const HARNESS = "goose";
6
+ /** Route a Goose hook event to the appropriate Ory integration. */
10
7
  async function handleHookEvent(input, client, deps = {}) {
11
8
  const event = input.event;
12
9
  client.logger.debug("hook.received", {
@@ -14,292 +11,89 @@ async function handleHookEvent(input, client, deps = {}) {
14
11
  sessionId: input.session_id,
15
12
  toolName: input.tool_name,
16
13
  });
17
- // Set trace context so all spans within this hook invocation correlate.
18
- client.tracer.setContext({
19
- traceId: (0, argus_1.deriveTraceId)(input.session_id),
20
- sessionId: input.session_id,
21
- });
22
- try {
14
+ return (0, argus_1.withHookContext)(client, { sessionId: input.session_id }, async () => {
23
15
  switch (event) {
24
16
  case "SessionStart":
25
- return await handleSessionStart(input, client, deps);
17
+ client.logger.info("lifecycle.session_start", {
18
+ sessionId: input.session_id,
19
+ cwd: input.working_dir,
20
+ });
21
+ await (0, argus_1.sessionStart)(client, { harness: HARNESS, ...deps });
22
+ return {};
23
+ case "PreToolUse": {
24
+ const toolName = input.tool_name ?? "unknown";
25
+ client.logger.info("lifecycle.pre_tool_use", {
26
+ sessionId: input.session_id,
27
+ toolName,
28
+ toolInput: input.tool_input,
29
+ });
30
+ const result = await (0, argus_1.gate)(client, {
31
+ harness: HARNESS,
32
+ toolName,
33
+ toolArgs: input.tool_input,
34
+ subjectFallback: `session:${input.session_id}`,
35
+ });
36
+ return result.blocked
37
+ ? { action: "block", message: result.denialMessage }
38
+ : {};
39
+ }
40
+ case "PostToolUse": {
41
+ const toolName = input.tool_name ?? "unknown";
42
+ client.logger.info("lifecycle.post_tool_use", {
43
+ sessionId: input.session_id,
44
+ toolName,
45
+ error: input.error,
46
+ });
47
+ (0, argus_1.complete)(client, {
48
+ toolName,
49
+ input: input.tool_input,
50
+ output: input.tool_output,
51
+ });
52
+ return {};
53
+ }
54
+ case "PostToolUseFailure": {
55
+ const toolName = input.tool_name ?? "unknown";
56
+ client.logger.info("lifecycle.post_tool_use", {
57
+ sessionId: input.session_id,
58
+ toolName,
59
+ error: input.error,
60
+ });
61
+ (0, argus_1.fail)(client, { toolName, input: input.tool_input, error: input.error });
62
+ return {};
63
+ }
26
64
  case "SessionEnd":
27
65
  case "Stop":
28
- return await handleSessionEnd(input, client);
29
- case "PreToolUse":
30
- return await handlePreToolUse(input, client);
31
- case "PostToolUse":
32
- case "PostToolUseFailure":
33
- return await handlePostToolUse(input, client);
66
+ client.logger.info("lifecycle.session_end", {
67
+ sessionId: input.session_id,
68
+ event,
69
+ });
70
+ client.logger.activity("session.end", "ok", { attributes: { event } });
71
+ return {};
34
72
  case "UserPromptSubmit":
35
- return await handleUserPromptSubmit(input, client);
73
+ client.logger.info("lifecycle.user_prompt_submit", { sessionId: input.session_id });
74
+ client.logger.activity("user.prompt", "ok", { attributes: { event } });
75
+ return {};
36
76
  case "BeforeReadFile":
37
77
  case "AfterFileEdit":
38
78
  case "BeforeShellExecution":
39
79
  case "AfterShellExecution":
40
- return await handleTraceOnly(input, client);
80
+ client.logger.info("lifecycle.observe", {
81
+ sessionId: input.session_id,
82
+ event,
83
+ filePath: input.file_path,
84
+ });
85
+ client.logger.activity("notification", "ok", {
86
+ attributes: {
87
+ event,
88
+ ...(input.file_path ? { filePath: input.file_path } : {}),
89
+ ...(input.command ? { hasCommand: true } : {}),
90
+ },
91
+ });
92
+ return {};
41
93
  default:
42
94
  client.logger.debug("hook.passthrough", { event });
43
- client.tracer.record("hook.passthrough", "skipped", {
44
- attributes: { event },
45
- });
95
+ client.logger.activity("hook.passthrough", "skipped", { attributes: { event } });
46
96
  return {};
47
97
  }
48
- }
49
- finally {
50
- client.tracer.clearContext();
51
- }
52
- }
53
- // ─── SessionStart ───────────────────────────────────────────────────
54
- async function handleSessionStart(input, client, deps) {
55
- client.logger.info("lifecycle.session_start", {
56
- sessionId: input.session_id,
57
- cwd: input.working_dir,
58
- });
59
- client.tracer.record("session.start", "ok", {});
60
- const userGate = deps.userLogin ?? argus_1.ensureUserAuthenticated;
61
- const decision = await userGate(client, {
62
- binName: "ory-goose",
63
- harness: "goose",
64
- // Goose's PreToolUse carries exit code 2; SessionStart is a subprocess
65
- // hook too, so a declined login can hard-block the session.
66
- allowBlock: true,
67
- });
68
- // Resolve the agent identity (machine credentials). Never blocks;
69
- // attaches the agent's bearer token to outgoing Ory API calls.
70
- const agentGate = deps.agentGate ?? argus_1.ensureAgentIdentity;
71
- await agentGate(client, { projectUrl: (0, argus_1.resolveConfig)().projectUrl, harness: "goose" });
72
- // User → agent delegation tuple (best-effort, audit-trail only). Written
73
- // at most once per install.
74
- await (0, argus_1.writeUserDelegatesAgent)(client);
75
- if (!decision.proceed) {
76
- return { action: "block", message: decision.reason };
77
- }
78
- if (decision.mode !== "disabled") {
79
- return {};
80
- }
81
- const resolved = (0, argus_1.resolveConfig)();
82
- if (resolved.auditOnly) {
83
- client.logger.info("config.audit_only", {
84
- message: "Audit-only mode enabled. Auth and permission checks are disabled.",
85
- });
86
- return {};
87
- }
88
- if (!resolved.projectUrl) {
89
- client.logger.warn("config.not_configured", {
90
- message: "Ory plugin is not configured. Auth and permission checks are disabled. " +
91
- "Run 'npx ory-goose configure' to connect to an Ory project.",
92
- });
93
- return {};
94
- }
95
- // Legacy pre-supplied token verification (backward compat).
96
- const sessionToken = process.env.ORY_SESSION_TOKEN;
97
- const oauth2Token = process.env.ORY_OAUTH2_TOKEN;
98
- if (sessionToken) {
99
- await verifySessionToken(sessionToken, client);
100
- return {};
101
- }
102
- if (oauth2Token) {
103
- await verifyOAuth2Token(oauth2Token, client);
104
- return {};
105
- }
106
- client.logger.warn("session.no_credentials", {
107
- message: "Neither ORY_SESSION_TOKEN nor ORY_OAUTH2_TOKEN is set. " +
108
- "Skipping authentication.",
109
- });
110
- return {};
111
- }
112
- async function verifySessionToken(token, client) {
113
- try {
114
- const session = await client.verifySession(token);
115
- if (!session.active) {
116
- client.logger.warn("session.inactive", {
117
- message: "Ory session is not active. Re-authenticate to enable auth checks.",
118
- });
119
- }
120
- }
121
- catch (err) {
122
- const oryErr = err;
123
- client.logger.warn("session.verify_failed", {
124
- code: oryErr.code,
125
- message: oryErr.message,
126
- });
127
- }
128
- }
129
- async function verifyOAuth2Token(token, client) {
130
- try {
131
- const tokenInfo = await client.introspectToken(token);
132
- if (!tokenInfo.active) {
133
- client.logger.warn("oauth2.token_inactive", {
134
- message: "Ory OAuth2 token is not active. Obtain a new token to enable auth checks.",
135
- });
136
- return;
137
- }
138
- client.logger.info("oauth2.session_authenticated", {
139
- clientId: tokenInfo.clientId,
140
- subject: tokenInfo.subject,
141
- scope: tokenInfo.scope,
142
- });
143
- }
144
- catch (err) {
145
- const oryErr = err;
146
- client.logger.warn("oauth2.introspect_failed", {
147
- code: oryErr.code,
148
- message: oryErr.message,
149
- });
150
- }
151
- }
152
- // ─── PreToolUse ────────────────────────────────────────────────────
153
- async function handlePreToolUse(input, client) {
154
- const toolName = input.tool_name ?? "unknown";
155
- client.logger.info("lifecycle.pre_tool_use", {
156
- sessionId: input.session_id,
157
- toolName,
158
- toolInput: input.tool_input,
159
- });
160
- const inputSummary = (0, argus_1.summarizeToolInput)(toolName, input.tool_input);
161
- // In audit-only mode, log the invocation but skip permission checks.
162
- if ((0, argus_1.resolveConfig)().auditOnly) {
163
- client.tracer.record("tool.invoke", "ok", {
164
- attributes: { toolName, ...inputSummary },
165
- });
166
- return {};
167
- }
168
- const subject = (0, argus_1.resolveUserSubject)(client, `session:${input.session_id}`);
169
- const subjectId = (0, argus_1.subjectLabel)(subject);
170
- const namespace = resolveNamespace();
171
- try {
172
- const outcome = await (0, argus_1.gateToolCall)(client, {
173
- harness: "goose",
174
- toolName,
175
- check: { namespace, object: toolName, relation: "use", ...subject },
176
- spanAttributes: { toolName },
177
- });
178
- // Interactive tools (operator-extensible via ORY_INTERACTIVE_TOOLS):
179
- // user.interaction span is already recorded; pass through.
180
- if (outcome.kind === "interactive") {
181
- return {};
182
- }
183
- const decision = outcome;
184
- if (decision.kind === "fail_open") {
185
- return handlePermissionError(decision.error, toolName, client);
186
- }
187
- const attrs = { toolName, ...inputSummary };
188
- const decisionAttrs = decision.spanAttributes;
189
- if (decision.kind === "allow") {
190
- client.tracer.record("tool.invoke", "ok", {
191
- attributes: { ...attrs, ...decisionAttrs, allowed: true },
192
- });
193
- return {};
194
- }
195
- if (decision.kind === "observe") {
196
- client.tracer.record("tool.block", "denied", {
197
- attributes: { ...attrs, ...decisionAttrs, allowed: false, ...(0, argus_1.alertAttributes)(false) },
198
- });
199
- client.tracer.record("tool.invoke", "ok", {
200
- attributes: { ...attrs, ...decisionAttrs, allowed: false, observed: true },
201
- });
202
- return {};
203
- }
204
- client.tracer.record("tool.block", "denied", {
205
- attributes: { ...attrs, ...decisionAttrs, allowed: false, ...(0, argus_1.alertAttributes)(true) },
206
- });
207
- return {
208
- action: "block",
209
- message: (0, argus_1.formatDenialMessage)({ tool: toolName, subjectId, namespace }),
210
- };
211
- }
212
- catch (err) {
213
- return handlePermissionError(err, toolName, client);
214
- }
215
- }
216
- // ─── PostToolUse / PostToolUseFailure ──────────────────────────────
217
- async function handlePostToolUse(input, client) {
218
- const toolName = input.tool_name ?? "unknown";
219
- client.logger.info("lifecycle.post_tool_use", {
220
- sessionId: input.session_id,
221
- toolName,
222
- error: input.error,
223
- });
224
- const status = input.event === "PostToolUseFailure" ? "error" : "ok";
225
- client.tracer.record("tool.complete", status, {
226
- attributes: {
227
- toolName,
228
- ...(0, argus_1.summarizeToolInput)(toolName, input.tool_input),
229
- ...(0, argus_1.summarizeToolOutput)(toolName, input.tool_output),
230
- ...(input.error ? { error: input.error } : {}),
231
- },
232
- });
233
- return {};
234
- }
235
- // ─── SessionEnd / Stop ─────────────────────────────────────────────
236
- async function handleSessionEnd(input, client) {
237
- client.logger.info("lifecycle.session_end", {
238
- sessionId: input.session_id,
239
- event: input.event,
240
- });
241
- client.tracer.record("session.end", "ok", {
242
- attributes: { event: input.event },
243
- });
244
- return {};
245
- }
246
- // ─── UserPromptSubmit ──────────────────────────────────────────────
247
- //
248
- // User-facing phase. The human is the decision-maker; record an audit
249
- // span only and never block.
250
- async function handleUserPromptSubmit(input, client) {
251
- client.logger.info("lifecycle.user_prompt_submit", {
252
- sessionId: input.session_id,
253
- });
254
- client.tracer.record("user.prompt", "ok", {
255
- attributes: { event: input.event },
256
- });
257
- return {};
258
- }
259
- // ─── Trace-only file / shell observation events ────────────────────
260
- //
261
- // BeforeReadFile, AfterFileEdit, BeforeShellExecution, AfterShellExecution
262
- // are fine-grained observability hooks. The PreToolUse gate already
263
- // authorizes the tool that drives them, so these are audit spans only.
264
- async function handleTraceOnly(input, client) {
265
- client.logger.info("lifecycle.observe", {
266
- sessionId: input.session_id,
267
- event: input.event,
268
- filePath: input.file_path,
269
- });
270
- client.tracer.record("notification", "ok", {
271
- attributes: {
272
- event: input.event,
273
- ...(input.file_path ? { filePath: input.file_path } : {}),
274
- ...(input.command ? { hasCommand: true } : {}),
275
- },
276
- });
277
- return {};
278
- }
279
- // ─── Helpers ────────────────────────────────────────────────────────
280
- function resolveNamespace() {
281
- return process.env.ORY_PERMISSION_NAMESPACE ?? "AgentTools";
282
- }
283
- function handlePermissionError(oryErr, toolName, client) {
284
- if (oryErr.code === "network_error") {
285
- client.logger.warn("permission.network_error", {
286
- toolName,
287
- message: "Ory unreachable, failing open",
288
- });
289
- return {};
290
- }
291
- if (oryErr.code === "rate_limited") {
292
- client.logger.warn("permission.rate_limited", {
293
- toolName,
294
- message: "Ory rate limited, failing open",
295
- });
296
- return {};
297
- }
298
- // For other errors, also fail open but log prominently.
299
- client.logger.error("permission.check.error", {
300
- toolName,
301
- code: oryErr.code,
302
- message: oryErr.message,
303
98
  });
304
- return {};
305
99
  }
package/dist/hook.js CHANGED
@@ -13,6 +13,16 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  const argus_1 = require("@ory/argus");
15
15
  const handlers_js_1 = require("./handlers.js");
16
+ const EVENT_FLUSH_TIMEOUT_MS = 750;
17
+ let client;
18
+ async function flushEvents() {
19
+ try {
20
+ await client?.flushEvents(EVENT_FLUSH_TIMEOUT_MS);
21
+ }
22
+ catch {
23
+ // The hook decision must not depend on activity delivery.
24
+ }
25
+ }
16
26
  /**
17
27
  * Read all of stdin as a string.
18
28
  *
@@ -46,7 +56,7 @@ function readStdin() {
46
56
  });
47
57
  }
48
58
  async function main() {
49
- const client = argus_1.OryAgentClient.fromEnv("goose");
59
+ client = argus_1.OryAgentClient.fromEnv("goose");
50
60
  const raw = await readStdin();
51
61
  let input;
52
62
  try {
@@ -54,7 +64,6 @@ async function main() {
54
64
  }
55
65
  catch {
56
66
  client.logger.error("hook.stdin.parse_failed", { raw: raw.slice(0, 200) });
57
- await client.tracer.shutdown();
58
67
  process.exit(0); // Don't block on parse errors
59
68
  }
60
69
  const output = await (0, handlers_js_1.handleHookEvent)(input, client);
@@ -63,13 +72,14 @@ async function main() {
63
72
  // signal is the `action` key; emit it on stdout and exit 2 as a defensive
64
73
  // secondary signal — both indicate a hard deny.
65
74
  process.stdout.write(JSON.stringify(output));
66
- await client.tracer.shutdown();
75
+ await flushEvents();
67
76
  process.exit(2);
68
77
  }
69
- await client.tracer.shutdown();
78
+ await flushEvents();
70
79
  process.exit(0);
71
80
  }
72
- main().catch((err) => {
81
+ main().catch(async (err) => {
73
82
  process.stderr.write(`[ory-agent] fatal: ${err}\n`);
83
+ await flushEvents();
74
84
  process.exit(0); // Fail open
75
85
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/goose",
3
- "version": "0.13.9",
3
+ "version": "1.0.0",
4
4
  "description": "Ory plugin for Goose (Block's open-source agent CLI): 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",
@@ -35,8 +35,7 @@
35
35
  "agent-security",
36
36
  "guardrails",
37
37
  "llm",
38
- "tracing",
39
- "distributed-tracing",
38
+ "activity-auditing",
40
39
  "observability",
41
40
  "kratos",
42
41
  "keto",
@@ -47,6 +46,10 @@
47
46
  "registry": "https://registry.npmjs.org/",
48
47
  "provenance": true
49
48
  },
49
+ "reova": {
50
+ "enabled": true,
51
+ "endpoint": "https://telemetry.reo.dev/data"
52
+ },
50
53
  "main": "dist/index.js",
51
54
  "types": "dist/index.d.ts",
52
55
  "exports": {
@@ -62,12 +65,11 @@
62
65
  },
63
66
  "files": [
64
67
  "dist",
65
- "!dist/dev",
66
68
  "!dist/**/*.tsbuildinfo"
67
69
  ],
68
70
  "dependencies": {
69
- "reo-census": "^1.2.8",
70
- "@ory/argus": "0.13.9"
71
+ "reova": "^0.7.0",
72
+ "@ory/argus": "1.0.0"
71
73
  },
72
74
  "devDependencies": {
73
75
  "typescript": "^6.0.2",
@@ -81,7 +83,6 @@
81
83
  "clean": "rm -rf dist *.tsbuildinfo",
82
84
  "test": "vitest run",
83
85
  "test:watch": "vitest",
84
- "typecheck": "tsc --noEmit",
85
- "dev": "node dist/dev/launcher.js"
86
+ "typecheck": "tsc --noEmit"
86
87
  }
87
88
  }