@baseline-studio/cli 2.2.3 → 2.2.5

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.
@@ -29,17 +29,8 @@ async function init() {
29
29
  // 1. Gather basic info
30
30
  const clientName = await ask(rl, " What's your company or project name? ");
31
31
  const repo = "TrentM6/baseline-core";
32
- // Use current directory if empty, otherwise create a subfolder
33
- const cwd = process.cwd();
34
- const cwdEntries = (0, fs_1.readdirSync)(cwd).filter((f) => !f.startsWith("."));
35
- const destDir = cwdEntries.length === 0
36
- ? cwd
37
- : (0, path_1.join)(cwd, `${clientName.toLowerCase().replace(/\s+/g, "-")}-system`);
38
- if (destDir !== cwd && (0, fs_1.existsSync)(destDir)) {
39
- console.error(`\n Error: ${destDir} already exists.\n`);
40
- rl.close();
41
- process.exit(1);
42
- }
32
+ // Always scaffold in the current directory
33
+ const destDir = process.cwd();
43
34
  // 2. Fetch latest from core
44
35
  console.log(`\n Fetching latest from ${repo}...`);
45
36
  const latest = (0, git_js_1.getLatestTag)(repo);
@@ -156,18 +147,14 @@ async function init() {
156
147
  // Clean up
157
148
  (0, fs_1.rmSync)(tmpDir, { recursive: true });
158
149
  rl.close();
159
- const displayPath = destDir === cwd ? "." : `./${clientName.toLowerCase().replace(/\s+/g, "-")}-system`;
160
150
  const skillCount = (0, fs_1.existsSync)((0, path_1.join)(destDir, "skills")) ? (0, fs_1.readdirSync)((0, path_1.join)(destDir, "skills")).filter((f) => !f.startsWith(".") && !f.startsWith("_")).length : 0;
161
151
  const frameworkCount = (0, fs_1.existsSync)((0, path_1.join)(destDir, "frameworks")) ? (0, fs_1.readdirSync)((0, path_1.join)(destDir, "frameworks")).filter((f) => !f.startsWith(".") && !f.startsWith("_")).length : 0;
162
152
  const scriptCount = (0, fs_1.existsSync)((0, path_1.join)(destDir, "scripts")) ? (0, fs_1.readdirSync)((0, path_1.join)(destDir, "scripts")).filter((f) => !f.startsWith(".") && !f.startsWith("_")).length : 0;
163
153
  console.log(` ───────────────────────────────────`);
164
- console.log(` ${clientName} system created at ${displayPath}`);
154
+ console.log(` ${clientName} system ready!`);
165
155
  console.log(` Version: v${latest}`);
166
156
  console.log(` ${skillCount} skills | ${frameworkCount} frameworks | ${scriptCount} scripts`);
167
157
  console.log(`\n Next steps:`);
168
- if (destDir !== cwd) {
169
- console.log(` cd ${clientName.toLowerCase().replace(/\s+/g, "-")}-system`);
170
- }
171
158
  console.log(` Edit context/ files to add more detail`);
172
159
  console.log(` Run \`npx baseline status\` to check for updates\n`);
173
160
  }
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ const program = new commander_1.Command();
9
9
  program
10
10
  .name("baseline")
11
11
  .description("Distribute and update the Baseline System")
12
- .version("2.2.3");
12
+ .version("2.2.5");
13
13
  program
14
14
  .command("status")
15
15
  .description("Show current version and check for updates")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseline-studio/cli",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "CLI for distributing and updating the Baseline System — an AI-powered workflow system for product teams",
5
5
  "keywords": [
6
6
  "baseline",