@agiflowai/hooks-adapter 0.0.12 → 0.0.14
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/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -239,6 +239,7 @@ var ClaudeCodeAdapter = class extends BaseAdapter {
|
|
|
239
239
|
permissionDecisionReason: response.message
|
|
240
240
|
} };
|
|
241
241
|
if (response.updatedInput) output.hookSpecificOutput.updatedInput = response.updatedInput;
|
|
242
|
+
if (response.decision === "allow" && response.message) output.hookSpecificOutput.additionalContext = response.message;
|
|
242
243
|
const formattedOutput = JSON.stringify(output, null, 2);
|
|
243
244
|
__agiflowai_aicode_utils.log.debug("ClaudeCodeAdapter: Formatted PreToolUse output", { output: formattedOutput });
|
|
244
245
|
return formattedOutput;
|
package/dist/index.mjs
CHANGED
|
@@ -208,6 +208,7 @@ var ClaudeCodeAdapter = class extends BaseAdapter {
|
|
|
208
208
|
permissionDecisionReason: response.message
|
|
209
209
|
} };
|
|
210
210
|
if (response.updatedInput) output.hookSpecificOutput.updatedInput = response.updatedInput;
|
|
211
|
+
if (response.decision === "allow" && response.message) output.hookSpecificOutput.additionalContext = response.message;
|
|
211
212
|
const formattedOutput = JSON.stringify(output, null, 2);
|
|
212
213
|
log.debug("ClaudeCodeAdapter: Formatted PreToolUse output", { output: formattedOutput });
|
|
213
214
|
return formattedOutput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agiflowai/hooks-adapter",
|
|
3
3
|
"description": "Hook adapters for normalizing AI agent hook formats (Claude Code, Gemini, etc.)",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"author": "AgiflowIO",
|
|
7
7
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agiflowai/aicode-utils": "1.0.
|
|
29
|
-
"@agiflowai/coding-agent-bridge": "1.0.
|
|
28
|
+
"@agiflowai/aicode-utils": "1.0.13",
|
|
29
|
+
"@agiflowai/coding-agent-bridge": "1.0.16"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|