@flydocs/cli 0.5.0-beta.17 → 0.5.0-beta.19

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.5.0-beta.17";
18
+ CLI_VERSION = "0.5.0-beta.19";
19
19
  CLI_NAME = "flydocs";
20
20
  PACKAGE_NAME = "@flydocs/cli";
21
21
  POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
@@ -1674,13 +1674,10 @@ async function ensureConfig() {
1674
1674
  return existing;
1675
1675
  }
1676
1676
  const config = {
1677
- enabled: true,
1677
+ enabled: false,
1678
1678
  anonymousId: randomUUID()
1679
1679
  };
1680
1680
  await writeConfig2(config);
1681
- printInfo(
1682
- "Anonymous usage analytics enabled. Run `flydocs telemetry disable` to opt out."
1683
- );
1684
1681
  return config;
1685
1682
  }
1686
1683
  async function isEnabled() {
@@ -1692,7 +1689,7 @@ async function isEnabled() {
1692
1689
  if (config) {
1693
1690
  return config.enabled;
1694
1691
  }
1695
- return true;
1692
+ return false;
1696
1693
  } catch {
1697
1694
  return false;
1698
1695
  }
@@ -1762,7 +1759,7 @@ async function getStatus() {
1762
1759
  const envOverride = process.env.FLYDOCS_TELEMETRY === "0";
1763
1760
  const config = await readConfig2();
1764
1761
  return {
1765
- enabled: config?.enabled ?? true,
1762
+ enabled: config?.enabled ?? false,
1766
1763
  envOverride,
1767
1764
  anonymousId: config?.anonymousId ?? null
1768
1765
  };
@@ -1772,7 +1769,6 @@ var init_telemetry = __esm({
1772
1769
  "src/lib/telemetry.ts"() {
1773
1770
  "use strict";
1774
1771
  init_constants();
1775
- init_ui();
1776
1772
  CONFIG_DIR = join12(homedir2(), ".flydocs");
1777
1773
  CONFIG_FILE = join12(CONFIG_DIR, "telemetry.json");
1778
1774
  POSTHOG_BATCH_URL = "https://us.i.posthog.com/batch/";
@@ -1869,29 +1865,30 @@ var init_install = __esm({
1869
1865
  process.exit(1);
1870
1866
  }
1871
1867
  tier = args.tier;
1872
- printInfo(`Tier set via flag: ${tier}`);
1873
1868
  } else if (await pathExists(join13(targetDir, ".flydocs", "config.json"))) {
1874
1869
  try {
1875
1870
  const existing = await readConfig(targetDir);
1876
1871
  if (existing.tier) {
1877
1872
  tier = existing.tier;
1878
- printInfo(`Tier from config: ${tier}`);
1879
1873
  }
1880
1874
  } catch {
1881
1875
  }
1882
1876
  }
1883
- if (!tier) {
1877
+ if (!args.tier) {
1884
1878
  const shouldInstall = await confirm2({
1885
- message: `Install FlyDocs here? (local tier)
1879
+ message: `Install FlyDocs here?${tier ? ` (${tier} tier)` : " (local tier)"}
1886
1880
  Directory: ${targetDir}`
1887
1881
  });
1888
1882
  if (isCancel3(shouldInstall) || !shouldInstall) {
1889
1883
  cancel2("Installation cancelled.");
1890
1884
  process.exit(0);
1891
1885
  }
1892
- tier = "local";
1893
1886
  console.log();
1894
1887
  }
1888
+ if (!tier) {
1889
+ tier = "local";
1890
+ }
1891
+ printInfo(`Tier: ${tier}`);
1895
1892
  await capture("install_tier_selected", { tier });
1896
1893
  if (!await pathExists(join13(targetDir, ".git"))) {
1897
1894
  printWarning("No git repository detected. Run git init when ready.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flydocs/cli",
3
- "version": "0.5.0-beta.17",
3
+ "version": "0.5.0-beta.19",
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.5.0-beta.17",
2
+ "version": "0.5.0-beta.19",
3
3
  "sourceRepo": "github.com/plastrlab/flydocs-core",
4
4
  "tier": "local",
5
5
  "setupComplete": false,
@@ -1 +1 @@
1
- 0.5.0-beta.17
1
+ 0.5.0-beta.19
@@ -7,6 +7,25 @@ Versioning: [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.5.0-beta.19] — 2026-02-27
11
+
12
+ ### Fixed
13
+
14
+ - **Install always confirms before proceeding** — the "Install FlyDocs here?"
15
+ prompt now shows even when an existing config is detected. Previously, reinstalls
16
+ with an existing `.flydocs/config.json` skipped the confirmation entirely.
17
+
18
+ ---
19
+
20
+ ## [0.5.0-beta.18] — 2026-02-27
21
+
22
+ ### Changed
23
+
24
+ - **Telemetry disabled by default** — analytics are opt-in only. No data is sent
25
+ until a user explicitly runs `flydocs telemetry enable`. Removed first-run notice.
26
+
27
+ ---
28
+
10
29
  ## [0.5.0-beta.17] — 2026-02-26
11
30
 
12
31
  ### Added
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0-beta.17",
2
+ "version": "0.5.0-beta.19",
3
3
  "description": "FlyDocs Core - Manifest of all managed files",
4
4
  "repository": "github.com/plastrlab/flydocs-core",
5
5