@cloudstreamsoftware/claude-tools 1.1.0 → 1.2.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.
@@ -22,7 +22,7 @@ const https = require('https');
22
22
  // Configuration
23
23
  const CONFIG = {
24
24
  claudeDir: path.join(os.homedir(), '.claude'),
25
- knowledgeApiUrl: 'https://knowledge.cloudstreamsoftware.com',
25
+ knowledgeApiUrl: 'https://cloudstream-knowledge.broken-rain-0984.workers.dev',
26
26
  requiredDirs: [
27
27
  'hooks/scripts',
28
28
  'skills',
@@ -405,14 +405,24 @@ async function setup() {
405
405
  logWarning(`Some configuration files could not be copied: ${error.message}`);
406
406
  }
407
407
 
408
- // Copy hook scripts
409
- const packageHooksDir = path.join(__dirname, '..', 'dist', 'hooks');
410
- const targetHooksDir = path.join(CONFIG.claudeDir, 'hooks', 'scripts');
408
+ // Copy hooks.json to ~/.claude/hooks/
409
+ const packageHooksJson = path.join(__dirname, '..', 'hooks', 'hooks.json');
410
+ const targetHooksJson = path.join(CONFIG.claudeDir, 'hooks', 'hooks.json');
411
411
  try {
412
- await copyConfigWithMerge(packageHooksDir, targetHooksDir);
412
+ await fs.copyFile(packageHooksJson, targetHooksJson);
413
413
  await updateHookPaths();
414
+ logSuccess('Hooks configuration installed');
414
415
  } catch (error) {
415
- logWarning(`Hook scripts could not be copied: ${error.message}`);
416
+ logWarning(`Hooks configuration could not be copied: ${error.message}`);
417
+ }
418
+
419
+ // Copy hook scripts to ~/.claude/hooks/scripts/
420
+ const packageScriptsDir = path.join(__dirname, '..', 'scripts', 'hooks');
421
+ const targetScriptsDir = path.join(CONFIG.claudeDir, 'hooks', 'scripts');
422
+ try {
423
+ await copyConfigWithMerge(packageScriptsDir, targetScriptsDir);
424
+ } catch (error) {
425
+ // Scripts directory may not exist, that's ok
416
426
  }
417
427
 
418
428
  // Step 6: Configure MCP server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudstreamsoftware/claude-tools",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "CloudStream Claude Code productivity tools - hooks, skills, agents, and knowledge server integration",
5
5
  "main": "dist/index.js",
6
6
  "bin": {