@ory/claude-code 1.2.1 → 1.2.2
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/hook.js +6 -0
- package/package.json +2 -2
package/dist/hook.js
CHANGED
|
@@ -80,6 +80,12 @@ async function main() {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
const output = await (0, handlers_js_1.handleHookEvent)(input, client);
|
|
83
|
+
if (input.hook_event_name === "SessionEnd") {
|
|
84
|
+
// Claude is already shutting down and may cancel hooks that remain alive.
|
|
85
|
+
// Activity enqueueing synchronously persists the event to the durable outbox,
|
|
86
|
+
// so a later hook can deliver it without delaying session termination.
|
|
87
|
+
process.exit(0);
|
|
88
|
+
}
|
|
83
89
|
if (output.decision === "block") {
|
|
84
90
|
process.stdout.write(JSON.stringify(output));
|
|
85
91
|
await flushEvents();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/claude-code",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"reova": "^0.7.0",
|
|
81
|
-
"@ory/argus": "1.2.
|
|
81
|
+
"@ory/argus": "1.2.2"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=22"
|