@flydocs/cli 0.6.0-alpha.30 → 0.6.0-alpha.31

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/cli.js CHANGED
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME, POSTHOG_API_KEY;
15
15
  var init_constants = __esm({
16
16
  "src/lib/constants.ts"() {
17
17
  "use strict";
18
- CLI_VERSION = "0.6.0-alpha.30";
18
+ CLI_VERSION = "0.6.0-alpha.31";
19
19
  CLI_NAME = "flydocs";
20
20
  PACKAGE_NAME = "@flydocs/cli";
21
21
  POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
@@ -3559,27 +3559,27 @@ async function runCloneAndInit(targetDir, keyArg, repos, apiKey, workspaceId) {
3559
3559
  const shortName = repoShortName(repo.name);
3560
3560
  printInfo(`Workspace has 1 repo: ${pc8.bold(shortName)}`);
3561
3561
  const shouldClone = await confirm3({
3562
- message: `Clone ${shortName} and initialize?`
3562
+ message: `Clone ${shortName} into this directory and initialize?`
3563
3563
  });
3564
3564
  if (isCancel4(shouldClone) || !shouldClone) {
3565
3565
  cancel3("Init cancelled.");
3566
3566
  process.exit(0);
3567
3567
  }
3568
- const cloneDir = join20(targetDir, shortName);
3569
3568
  printInfo(`Cloning ${shortName}...`);
3570
- await execFileAsync("git", ["clone", repo.cloneUrl, cloneDir], {
3569
+ await execFileAsync("git", ["clone", repo.cloneUrl, "."], {
3570
+ cwd: targetDir,
3571
3571
  timeout: 6e4
3572
3572
  });
3573
3573
  printStatus(`Cloned ${shortName}`);
3574
3574
  const serverResponse = await pullServerConfig(
3575
3575
  apiKey,
3576
- cloneDir,
3576
+ targetDir,
3577
3577
  workspaceId,
3578
3578
  true
3579
3579
  // always include context on fresh clone
3580
3580
  );
3581
3581
  const { actions, skipped } = await initSingleRepo(
3582
- cloneDir,
3582
+ targetDir,
3583
3583
  apiKey,
3584
3584
  serverResponse
3585
3585
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flydocs/cli",
3
- "version": "0.6.0-alpha.30",
3
+ "version": "0.6.0-alpha.31",
4
4
  "type": "module",
5
5
  "description": "FlyDocs AI CLI — install, setup, and manage FlyDocs projects",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.0-alpha.30",
2
+ "version": "0.6.0-alpha.31",
3
3
  "sourceRepo": "github.com/plastrlab/flydocs-core",
4
4
  "tier": "local",
5
5
  "setupComplete": false,
@@ -1 +1 @@
1
- 0.6.0-alpha.30
1
+ 0.6.0-alpha.31
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.0-alpha.30",
2
+ "version": "0.6.0-alpha.31",
3
3
  "description": "FlyDocs Core - Manifest of all managed files",
4
4
  "repository": "github.com/plastrlab/flydocs-core",
5
5