@clawdreyhepburn/carapace 1.0.4 → 1.0.5

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.
@@ -2,7 +2,7 @@
2
2
  "id": "carapace",
3
3
  "name": "Carapace",
4
4
  "description": "Cedar policy enforcement for agent tool access via before_tool_call hook. Your agent's exoskeleton.",
5
- "version": "1.0.4",
5
+ "version": "1.0.5",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawdreyhepburn/carapace",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Cedar policy enforcement for agent tool access via OpenClaw's before_tool_call hook.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -107,12 +107,9 @@ export default function register(api: OpenClawPluginApi) {
107
107
  // --- Register before_tool_call hook ---
108
108
  if (api.on) {
109
109
  api.on("before_tool_call", async (event: any) => {
110
- logger.info(`[Carapace] HOOK FIRED: keys=${JSON.stringify(Object.keys(event))}`);
111
- logger.info(`[Carapace] before_tool_call fired: ${JSON.stringify(Object.keys(event))}`);
112
110
  const toolName: string = event.toolName ?? event.tool ?? event.name ?? "";
113
111
  const params: Record<string, unknown> = event.params ?? event.arguments ?? event.input ?? {};
114
112
 
115
- logger.info(`[Carapace] tool=${toolName} defaultPolicy=${config.defaultPolicy ?? "allow-all"}`);
116
113
  if (!toolName) return {};
117
114
 
118
115
  stats.toolCallsEvaluated++;