create-twinbloc-app 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/bin/cli.js +19 -3
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -93,16 +93,16 @@ const printBanner = () => {
93
93
  };
94
94
 
95
95
  const agentDirectories = [
96
- { key: "antigravity", path: ".agents/skills", label: "Antigravity" },
97
96
  { key: "agent", path: ".agent/skills", label: "Vscode" },
97
+ { key: "cursor", path: ".cursor", label: "Cursor" },
98
98
  { key: "claude", path: ".claude/skills", label: "Claude" },
99
+ { key: "windsurf", path: ".windsurf/skills", label: "Windsurf" },
99
100
  { key: "codex", path: ".codex/skills", label: "Codex" },
100
- { key: "cursor", path: ".cursor", label: "Cursor" },
101
+ { key: "antigravity", path: ".agents/skills", label: "Antigravity" },
101
102
  { key: "github", path: ".github/skills", label: "Github" },
102
103
  { key: "kilocode", path: ".kilocode/skills", label: "Kilocode" },
103
104
  { key: "opencode", path: ".opencode/skills", label: "Opencode" },
104
105
  { key: "trae", path: ".trae/skills", label: "Trae" },
105
- { key: "windsurf", path: ".windsurf/skills", label: "Windsurf" },
106
106
  ];
107
107
 
108
108
  const getExistingAgentKeys = async (rootDir) => {
@@ -222,6 +222,22 @@ const main = async () => {
222
222
  const selectedKeys = await promptAgentSelection(agentDirectories, defaultKeys);
223
223
  const selectedLabels = agentDirectories.filter((dir) => selectedKeys.has(dir.key)).map((dir) => dir.label);
224
224
 
225
+ // Copy skills from .agents/skills (master source) to other selected agents
226
+ const sourceAgent = agentDirectories.find((d) => d.key === "antigravity");
227
+ const sourcePath = path.join(targetDir, sourceAgent.path);
228
+
229
+ if (await fs.pathExists(sourcePath)) {
230
+ await Promise.all(
231
+ agentDirectories
232
+ .filter((dir) => selectedKeys.has(dir.key) && dir.key !== "antigravity")
233
+ .map(async (dir) => {
234
+ const destPath = path.join(targetDir, dir.path);
235
+ await fs.ensureDir(destPath);
236
+ await fs.copy(sourcePath, destPath, { overwrite: true });
237
+ }),
238
+ );
239
+ }
240
+
225
241
  await Promise.all(agentDirectories.filter((dir) => selectedKeys.has(dir.key)).map((dir) => fs.ensureDir(path.join(targetDir, dir.path))));
226
242
 
227
243
  const dirsToRemove = agentDirectories.filter((dir) => !selectedKeys.has(dir.key));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-twinbloc-app",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "React Native starter template with optional examples",
5
5
  "type": "module",
6
6
  "bin": {