@cloudstreamsoftware/claude-tools 1.1.0 → 1.2.1
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/bin/cloudstream-setup.js +17 -7
- package/package.json +1 -1
package/bin/cloudstream-setup.js
CHANGED
|
@@ -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.
|
|
25
|
+
knowledgeApiUrl: 'https://cloudstream-knowledge.broken-rain-0984.workers.dev',
|
|
26
26
|
requiredDirs: [
|
|
27
27
|
'hooks/scripts',
|
|
28
28
|
'skills',
|
|
@@ -318,7 +318,7 @@ async function configureMcpServer(licenseKey) {
|
|
|
318
318
|
*/
|
|
319
319
|
async function verifyConnection(licenseKey) {
|
|
320
320
|
return new Promise((resolve) => {
|
|
321
|
-
const url = `${CONFIG.knowledgeApiUrl}/
|
|
321
|
+
const url = `${CONFIG.knowledgeApiUrl}/health`;
|
|
322
322
|
|
|
323
323
|
const options = {
|
|
324
324
|
headers: {
|
|
@@ -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
|
|
409
|
-
const
|
|
410
|
-
const
|
|
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
|
|
412
|
+
await fs.copyFile(packageHooksJson, targetHooksJson);
|
|
413
413
|
await updateHookPaths();
|
|
414
|
+
logSuccess('Hooks configuration installed');
|
|
414
415
|
} catch (error) {
|
|
415
|
-
logWarning(`
|
|
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