shiva-code 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -15118,13 +15118,20 @@ hookCommand.command("branch-switch").description("Branch-Wechsel behandeln (f\xF
15118
15118
  `);
15119
15119
  }
15120
15120
  });
15121
- hookCommand.command("scan-command").description("Scanne Bash-Befehle auf Package-Installationen (f\xFCr Hook)").argument("<command>", "Der zu scannende Befehl").action(async (command) => {
15121
+ hookCommand.command("scan-command").description("Scanne Bash-Befehle auf Package-Installationen (f\xFCr Hook)").argument("<tool-input>", "JSON Tool Input von Claude Code").action(async (toolInput) => {
15122
15122
  const config = packageScanner.getConfig();
15123
15123
  if (!config.enabled) {
15124
15124
  console.log(JSON.stringify({ hookSpecificOutput: null }));
15125
15125
  return;
15126
15126
  }
15127
15127
  try {
15128
+ let command;
15129
+ try {
15130
+ const parsed = JSON.parse(toolInput);
15131
+ command = parsed.command || toolInput;
15132
+ } catch {
15133
+ command = toolInput;
15134
+ }
15128
15135
  if (!packageScanner.isInstallCommand(command)) {
15129
15136
  console.log(JSON.stringify({ hookSpecificOutput: null }));
15130
15137
  return;
@@ -16116,7 +16123,7 @@ sandboxCommand.command("delete <id>").description("Sandbox l\xF6schen").option("
16116
16123
 
16117
16124
  // src/index.ts
16118
16125
  var program = new Command39();
16119
- program.name("shiva").description("SHIVA Code - Control Station for Claude Code").version("0.6.3");
16126
+ program.name("shiva").description("SHIVA Code - Control Station for Claude Code").version("0.6.4");
16120
16127
  program.addCommand(loginCommand);
16121
16128
  program.addCommand(logoutCommand);
16122
16129
  program.addCommand(sessionsCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shiva-code",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Makes Claude Code Persistent - Cross-Project Memory CLI",
5
5
  "author": "SHIVA AI",
6
6
  "license": "MIT",