@b0tts/template-dev-installer 1.0.3 → 1.0.4
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/cli.mjs
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// the current working directory.
|
|
6
6
|
//
|
|
7
7
|
// Categories:
|
|
8
|
-
// 1. Skills
|
|
9
|
-
// 2. OpenCode
|
|
10
|
-
// 3. Pi
|
|
11
|
-
// 4. All
|
|
8
|
+
// 1. Skills — AGENTS.md, README.md, .agents/, b0ttsagent/ (additive)
|
|
9
|
+
// 2. OpenCode — .opencode/plugins/, opencode.json, settings.json
|
|
10
|
+
// 3. Pi — .pi/agent/settings.json, extensions/, mcp.json
|
|
11
|
+
// 4. All — everything above
|
|
12
12
|
// ────────────────────────────────────────────────────────────────────
|
|
13
13
|
|
|
14
14
|
import { checkbox, confirm } from "@inquirer/prompts";
|
|
@@ -26,11 +26,15 @@ const CWD = process.cwd();
|
|
|
26
26
|
|
|
27
27
|
const CATEGORIES = {
|
|
28
28
|
skills: {
|
|
29
|
-
label: "Skills (AGENTS.md, README.md, .agents/)",
|
|
29
|
+
label: "Skills (AGENTS.md, README.md, .agents/, b0ttsagent/)",
|
|
30
30
|
items: [
|
|
31
31
|
{ src: "AGENTS.md", dest: "AGENTS.md" },
|
|
32
32
|
{ src: "README.md", dest: "README.md" },
|
|
33
33
|
{ src: ".agents", dest: ".agents" },
|
|
34
|
+
{ src: "b0ttsagent/temp", dest: "b0ttsagent/temp", additive: true },
|
|
35
|
+
{ src: "b0ttsagent/sessionlogs", dest: "b0ttsagent/sessionlogs", additive: true },
|
|
36
|
+
{ src: "b0ttsagent/handoffs", dest: "b0ttsagent/handoffs", additive: true },
|
|
37
|
+
{ src: "b0ttsagent/NavGuides", dest: "b0ttsagent/NavGuides", additive: true },
|
|
34
38
|
],
|
|
35
39
|
},
|
|
36
40
|
opencode: {
|
|
@@ -66,8 +70,14 @@ function copyItem(item) {
|
|
|
66
70
|
console.log(` ✘ Source not found: ${item.src} (skipping)`);
|
|
67
71
|
return;
|
|
68
72
|
}
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
if (item.additive && existsSync(dest)) {
|
|
74
|
+
console.log(` → ${item.dest} already exists — skipping.`);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!item.additive) {
|
|
78
|
+
warnIfExists(dest);
|
|
79
|
+
}
|
|
80
|
+
cpSync(src, dest, { recursive: true, force: !item.additive });
|
|
71
81
|
console.log(` ✓ ${item.dest}`);
|
|
72
82
|
}
|
|
73
83
|
|
|
@@ -89,10 +99,10 @@ async function main() {
|
|
|
89
99
|
const chosen = await checkbox({
|
|
90
100
|
message: "Select categories to install (Space to toggle, Enter to confirm):",
|
|
91
101
|
choices: [
|
|
92
|
-
{ name: "All",
|
|
93
|
-
{ name: "Skills",
|
|
94
|
-
{ name: "OpenCode",
|
|
95
|
-
{ name: "Pi",
|
|
102
|
+
{ name: "All", value: "all" },
|
|
103
|
+
{ name: "Skills", value: "skills" },
|
|
104
|
+
{ name: "OpenCode", value: "opencode" },
|
|
105
|
+
{ name: "Pi", value: "pi" },
|
|
96
106
|
],
|
|
97
107
|
});
|
|
98
108
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b0tts/template-dev-installer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive installer for the DevelopmentTemplate — pick Skills, OpenCode, Pi, or install everything at once.",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"files/"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@inquirer/prompts": "^5.0.0"
|
|
14
|
+
"@inquirer/prompts": "^5.0.0",
|
|
15
|
+
"adm-zip": "^0.5.17"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
18
|
"template",
|