declare-cc 0.3.6 → 0.3.9
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/install.js +13 -0
- package/dist/declare-tools.cjs +4 -3
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -1465,6 +1465,19 @@ function install(isGlobal, runtime = 'claude') {
|
|
|
1465
1465
|
console.log(` ${green}✓${reset} Installed workflows/`);
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
+
// Copy dashboard static files (src/server/public/) → .claude/server/public/
|
|
1469
|
+
const publicSrc = path.join(src, 'src', 'server', 'public');
|
|
1470
|
+
if (fs.existsSync(publicSrc)) {
|
|
1471
|
+
const publicDest = path.join(targetDir, 'server', 'public');
|
|
1472
|
+
fs.mkdirSync(publicDest, { recursive: true });
|
|
1473
|
+
for (const entry of fs.readdirSync(publicSrc, { withFileTypes: true })) {
|
|
1474
|
+
if (entry.isFile()) {
|
|
1475
|
+
fs.copyFileSync(path.join(publicSrc, entry.name), path.join(publicDest, entry.name));
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
console.log(` ${green}✓${reset} Installed dashboard (server/public/)`);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1468
1481
|
// Copy declare-tools.cjs bundle so commands can run `node {pathPrefix}declare-tools.cjs`
|
|
1469
1482
|
const bundleSrc = path.join(src, 'dist', 'declare-tools.cjs');
|
|
1470
1483
|
const bundleDest = path.join(targetDir, 'declare-tools.cjs');
|
package/dist/declare-tools.cjs
CHANGED
|
@@ -1329,7 +1329,7 @@ var require_help = __commonJS({
|
|
|
1329
1329
|
usage: "/declare:help"
|
|
1330
1330
|
}
|
|
1331
1331
|
],
|
|
1332
|
-
version: "0.
|
|
1332
|
+
version: "0.3.9"
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
1335
1335
|
module2.exports = { runHelp: runHelp2 };
|
|
@@ -3674,9 +3674,10 @@ var require_server = __commonJS({
|
|
|
3674
3674
|
".png": "image/png",
|
|
3675
3675
|
".ico": "image/x-icon"
|
|
3676
3676
|
};
|
|
3677
|
-
var PUBLIC_DIR_RELATIVE = path.join("src", "server", "public");
|
|
3678
3677
|
function getPublicDir(cwd) {
|
|
3679
|
-
|
|
3678
|
+
const installed = path.join(cwd, ".claude", "server", "public");
|
|
3679
|
+
if (require("fs").existsSync(installed)) return installed;
|
|
3680
|
+
return path.join(cwd, "src", "server", "public");
|
|
3680
3681
|
}
|
|
3681
3682
|
function sendJson(res, statusCode, data) {
|
|
3682
3683
|
const body = JSON.stringify(data, null, 2);
|
package/package.json
CHANGED