@scotthamilton77/sidekick 0.1.23 → 0.1.24
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/dist/bin.js +19 -5
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -81899,6 +81899,19 @@ var require_dev_mode = __commonJS({
|
|
|
81899
81899
|
"pre-compact",
|
|
81900
81900
|
"statusline"
|
|
81901
81901
|
];
|
|
81902
|
+
async function collectMdFiles(dir) {
|
|
81903
|
+
const results = [];
|
|
81904
|
+
const entries = await (0, promises_12.readdir)(dir, { withFileTypes: true });
|
|
81905
|
+
for (const entry of entries) {
|
|
81906
|
+
const full = node_path_1.default.join(dir, entry.name);
|
|
81907
|
+
if (entry.isDirectory()) {
|
|
81908
|
+
results.push(...await collectMdFiles(full));
|
|
81909
|
+
} else if (entry.isFile() && entry.name.endsWith(".md")) {
|
|
81910
|
+
results.push(full);
|
|
81911
|
+
}
|
|
81912
|
+
}
|
|
81913
|
+
return results;
|
|
81914
|
+
}
|
|
81902
81915
|
async function copySkillsForDev(projectDir, stdout) {
|
|
81903
81916
|
const srcSkillsRoot = node_path_1.default.join(projectDir, "packages", "sidekick-plugin", "skills");
|
|
81904
81917
|
if (!await (0, fs_js_1.fileExists)(srcSkillsRoot)) {
|
|
@@ -81912,11 +81925,12 @@ var require_dev_mode = __commonJS({
|
|
|
81912
81925
|
const destDir = node_path_1.default.join(projectDir, ".claude", "skills", skillDir.name);
|
|
81913
81926
|
await (0, promises_12.rm)(destDir, { recursive: true, force: true });
|
|
81914
81927
|
await (0, promises_12.cp)(srcDir, destDir, { recursive: true });
|
|
81915
|
-
const
|
|
81916
|
-
|
|
81917
|
-
const content = await (0, promises_12.readFile)(
|
|
81928
|
+
const mdFiles = await collectMdFiles(destDir);
|
|
81929
|
+
for (const mdFile of mdFiles) {
|
|
81930
|
+
const content = await (0, promises_12.readFile)(mdFile, "utf-8");
|
|
81918
81931
|
const transformed = content.replace(/npx @scotthamilton77\/sidekick/g, "pnpm sidekick");
|
|
81919
|
-
|
|
81932
|
+
if (transformed !== content)
|
|
81933
|
+
await (0, promises_12.writeFile)(mdFile, transformed);
|
|
81920
81934
|
}
|
|
81921
81935
|
log(stdout, "info", `Copied ${skillDir.name} skill to ${destDir}`);
|
|
81922
81936
|
}
|
|
@@ -85228,7 +85242,7 @@ var require_cli = __commonJS({
|
|
|
85228
85242
|
var promises_12 = require("node:fs/promises");
|
|
85229
85243
|
var node_stream_1 = require("node:stream");
|
|
85230
85244
|
var yargs_parser_1 = __importDefault2(require_build());
|
|
85231
|
-
var VERSION = true ? "0.1.
|
|
85245
|
+
var VERSION = true ? "0.1.24" : "dev";
|
|
85232
85246
|
var SANDBOX_ERROR_MESSAGE = `Error: Daemon commands cannot run in sandbox mode.
|
|
85233
85247
|
|
|
85234
85248
|
Claude Code's sandbox blocks Unix socket operations required for daemon IPC.
|