flu-cli-core 1.1.1 → 1.1.2

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/index.cjs CHANGED
@@ -15063,6 +15063,7 @@ function _prepareInitAiBase(opts) {
15063
15063
  }
15064
15064
  };
15065
15065
  }
15066
+ if (!(0, import_fs17.existsSync)(projectDir)) (0, import_fs17.mkdirSync)(projectDir, { recursive: true });
15066
15067
  const packageName = normalizeProjectIdToPackageName(opts.projectId);
15067
15068
  const skillSlug = slugForAgentSkill(packageName);
15068
15069
  const configPath = (0, import_path29.join)(projectDir, ".flu-cli.json");
package/dist/index.js CHANGED
@@ -14191,7 +14191,7 @@ features:
14191
14191
  }
14192
14192
 
14193
14193
  // src/commands/init_ai_base.ts
14194
- import { existsSync as existsSync16, readFileSync as readFileSync10, writeFileSync as writeFileSync11 } from "fs";
14194
+ import { existsSync as existsSync16, mkdirSync as mkdirSync10, readFileSync as readFileSync10, writeFileSync as writeFileSync11 } from "fs";
14195
14195
  import { join as join27, resolve as resolve5 } from "path";
14196
14196
  var PROJECT_ID_RE = /^[a-z][a-z0-9-]{2,32}$/;
14197
14197
  function validateProjectId(projectId) {
@@ -14257,6 +14257,7 @@ function _prepareInitAiBase(opts) {
14257
14257
  }
14258
14258
  };
14259
14259
  }
14260
+ if (!existsSync16(projectDir)) mkdirSync10(projectDir, { recursive: true });
14260
14261
  const packageName = normalizeProjectIdToPackageName(opts.projectId);
14261
14262
  const skillSlug = slugForAgentSkill(packageName);
14262
14263
  const configPath = join27(projectDir, ".flu-cli.json");
@@ -15373,7 +15374,7 @@ import { createRequire } from "module";
15373
15374
  import { createHash } from "crypto";
15374
15375
 
15375
15376
  // src/utils/config_manager.ts
15376
- import { existsSync as existsSync19, readFileSync as readFileSync11, writeFileSync as writeFileSync12, mkdirSync as mkdirSync10 } from "fs";
15377
+ import { existsSync as existsSync19, readFileSync as readFileSync11, writeFileSync as writeFileSync12, mkdirSync as mkdirSync11 } from "fs";
15377
15378
  import { join as join30 } from "path";
15378
15379
  import { homedir as homedir2 } from "os";
15379
15380
  var ConfigManager = class _ConfigManager {
@@ -15383,7 +15384,7 @@ var ConfigManager = class _ConfigManager {
15383
15384
  constructor() {
15384
15385
  const configDir = join30(homedir2(), ".flu-cli");
15385
15386
  if (!existsSync19(configDir)) {
15386
- mkdirSync10(configDir, { recursive: true });
15387
+ mkdirSync11(configDir, { recursive: true });
15387
15388
  }
15388
15389
  this.configPath = join30(configDir, "config.json");
15389
15390
  this.config = this.loadConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flu-cli-core",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Core logic for flu-cli",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.cjs",