setclaw 1.1.0 → 1.1.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/postinstall.mjs +5 -13
- package/package.json +1 -1
package/bin/postinstall.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { join } from "path";
|
|
4
|
-
import { homedir
|
|
4
|
+
import { homedir } from "os";
|
|
5
5
|
import { writeFileSync, mkdirSync } from "fs";
|
|
6
6
|
|
|
7
7
|
// ─── Write first-run marker ───────────────────────────────────────────
|
|
@@ -20,23 +20,15 @@ if (apiKey) {
|
|
|
20
20
|
process.exit(0);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
// ───
|
|
23
|
+
// ─── Print next-step instructions ────────────────────────────────────
|
|
24
24
|
// (visible when user runs: npm i -g setclaw --foreground-scripts)
|
|
25
25
|
const w = (msg = "") => process.stdout.write(msg + "\n");
|
|
26
26
|
|
|
27
27
|
w();
|
|
28
|
-
w(" \x1b[1msetclaw\x1b[0m
|
|
29
|
-
w(" \x1b[2m
|
|
28
|
+
w(" \x1b[1msetclaw\x1b[0m \u2014 BOA & Quatarly setup for Claude Code & Factory");
|
|
29
|
+
w(" \x1b[2m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\x1b[0m");
|
|
30
30
|
w();
|
|
31
|
-
w(" \x1b[32m
|
|
31
|
+
w(" \x1b[32m\u2714 Installed!\x1b[0m Now run:");
|
|
32
32
|
w();
|
|
33
33
|
w(" \x1b[36msetclaw\x1b[0m \x1b[33m<your-quatarly-api-key>\x1b[0m");
|
|
34
34
|
w();
|
|
35
|
-
if (platform() === "win32") {
|
|
36
|
-
w(" \x1b[2mor with env var:\x1b[0m");
|
|
37
|
-
w(' \x1b[2m$env:QUATARLY_API_KEY="<key>"; npm i -g setclaw --foreground-scripts\x1b[0m');
|
|
38
|
-
} else {
|
|
39
|
-
w(" \x1b[2mor with env var:\x1b[0m");
|
|
40
|
-
w(" \x1b[2mQUATARLY_API_KEY=<key> npm i -g setclaw --foreground-scripts\x1b[0m");
|
|
41
|
-
}
|
|
42
|
-
w();
|