@ory/claude-code 0.9.1 → 0.11.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 +2 -2
- package/dist/handlers.js +7 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ Bundled and registered automatically. Exposes the Ory CLI and the Ory Network RE
|
|
|
116
116
|
/ory-agent-plugin:temporal-up # start a local Temporal dev server (for ory-temporal-worker)
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
`local-up` runs a complete Ory on your laptop: the Ory APIs (Identities, OAuth2, Permissions) at `http://localhost:4000`, a login UI on `:3000
|
|
119
|
+
`local-up` runs a complete Ory on your laptop: the Ory APIs (Identities, OAuth2, Permissions) at `http://localhost:4000`, a login UI on `:4455` (not :3000, to avoid Next.js port conflicts), and Jaeger (the trace viewer) on `:16686`. A test user identity is seeded and its credentials are printed for you. Use it to:
|
|
120
120
|
|
|
121
121
|
- **Learn Ory hands-on** without signing up for a hosted project.
|
|
122
122
|
- **Prototype** flows (login, social, MFA, recovery, permissions) against a real Ory backend.
|
|
@@ -263,7 +263,7 @@ Highlights:
|
|
|
263
263
|
|
|
264
264
|
## Troubleshooting
|
|
265
265
|
|
|
266
|
-
- **`/ory-agent-plugin:local-up` fails.** Make sure Docker is running and ports `
|
|
266
|
+
- **`/ory-agent-plugin:local-up` fails.** Make sure Docker is running and ports `4455` (login UI), `4000`, `4100`, and `16686` are free.
|
|
267
267
|
- **PKCE login loops.** Clear persisted state with `npx -y -p @ory/claude-code ory-claude agent unregister` and retry.
|
|
268
268
|
- **`npx` fetches an old version.** Force a fresh fetch: `npx -y -p @ory/claude-code@latest ory-claude …`.
|
|
269
269
|
- **Hooks pinned to an old plugin version.** After a plugin upgrade, run `/plugin marketplace update ory` inside Claude Code (or re-run the npx installer) so the hook commands and MCP server pick up the new release.
|
package/dist/handlers.js
CHANGED
|
@@ -167,18 +167,19 @@ async function handlePreToolUse(input, client, deps = {}) {
|
|
|
167
167
|
toolInput: input.tool_input,
|
|
168
168
|
});
|
|
169
169
|
const inputSummary = (0, argus_1.summarizeToolInput)(toolName, input.tool_input);
|
|
170
|
-
//
|
|
171
|
-
//
|
|
172
|
-
// that sub-agent via DCR and record the agent→sub-agent delegation
|
|
173
|
-
// tuple. Best-effort — failures here never block the actual tool call.
|
|
174
|
-
await maybeRegisterSubAgent(toolName, input.tool_input, client, deps);
|
|
175
|
-
// In audit-only mode, log the invocation but skip permission checks
|
|
170
|
+
// In audit-only mode, log the invocation but skip permission checks —
|
|
171
|
+
// and skip sub-agent DCR/delegation writes too (Ory is disabled entirely).
|
|
176
172
|
if ((0, argus_1.resolveConfig)().auditOnly) {
|
|
177
173
|
client.tracer.record("tool.invoke", "ok", {
|
|
178
174
|
attributes: { toolName, ...inputSummary },
|
|
179
175
|
});
|
|
180
176
|
return {};
|
|
181
177
|
}
|
|
178
|
+
// If the agent is invoking a sub-agent (Claude Code's "Task"/"Agent"
|
|
179
|
+
// tool with a `subagent_type`), resolve a distinct OAuth2 identity for
|
|
180
|
+
// that sub-agent via DCR and record the agent→sub-agent delegation
|
|
181
|
+
// tuple. Best-effort — failures here never block the actual tool call.
|
|
182
|
+
await maybeRegisterSubAgent(toolName, input.tool_input, client, deps);
|
|
182
183
|
const subject = (0, argus_1.resolveUserSubject)(client, `session:${input.session_id}`);
|
|
183
184
|
const subjectId = (0, argus_1.subjectLabel)(subject);
|
|
184
185
|
const mcpTool = (0, argus_1.parseClaudeCodeMcpTool)(toolName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/claude-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Ory plugin for Claude Code: 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://github.com/ory/claude-plugins/tree/master/plugins/ory-agent-plugin",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"!dist/**/*.tsbuildinfo"
|
|
76
76
|
],
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@ory/argus": "0.
|
|
78
|
+
"@ory/argus": "0.11.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22"
|