@devness/useai-cli 0.8.13 → 0.8.16

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/dist/index.js +9 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var SYSTEMD_SERVICE_PATH = join(homedir(), ".config", "systemd", "user", "useai-
30
30
  var WINDOWS_STARTUP_SCRIPT_PATH = join(process.env["APPDATA"] ?? join(homedir(), "AppData", "Roaming"), "Microsoft", "Windows", "Start Menu", "Programs", "Startup", "useai-daemon.vbs");
31
31
 
32
32
  // ../shared/dist/constants/version.js
33
- var VERSION = "0.8.13";
33
+ var VERSION = "0.8.16";
34
34
 
35
35
  // ../shared/dist/constants/defaults.js
36
36
  var DEFAULT_CAPTURE_CONFIG = {
@@ -42,7 +42,9 @@ var DEFAULT_CAPTURE_CONFIG = {
42
42
  };
43
43
  var DEFAULT_SYNC_CONFIG = {
44
44
  enabled: false,
45
- interval_hours: 1
45
+ interval_hours: 1,
46
+ include_stats: true,
47
+ include_details: true
46
48
  };
47
49
  var DEFAULT_CONFIG = {
48
50
  capture: { ...DEFAULT_CAPTURE_CONFIG },
@@ -230,7 +232,9 @@ function migrateConfig(raw) {
230
232
  const s = config.sync;
231
233
  config.sync = {
232
234
  enabled: s.enabled ?? DEFAULT_SYNC_CONFIG.enabled,
233
- interval_hours: s.interval_hours ?? DEFAULT_SYNC_CONFIG.interval_hours
235
+ interval_hours: s.interval_hours ?? DEFAULT_SYNC_CONFIG.interval_hours,
236
+ include_stats: s.include_stats ?? DEFAULT_SYNC_CONFIG.include_stats,
237
+ include_details: s.include_details ?? DEFAULT_SYNC_CONFIG.include_details
234
238
  };
235
239
  }
236
240
  delete config.sync.include;
@@ -7017,7 +7021,7 @@ var loginCommand = new Command10("login").description("Login to useai.dev and en
7017
7021
  username
7018
7022
  }
7019
7023
  },
7020
- sync: { enabled: true, interval_hours: config.sync.interval_hours }
7024
+ sync: { enabled: true, interval_hours: config.sync.interval_hours, include_stats: true, include_details: true }
7021
7025
  });
7022
7026
  console.log("");
7023
7027
  console.log(pc9.green(` \u2713 Cloud Mode enabled`));
@@ -7043,7 +7047,7 @@ var logoutCommand = new Command10("logout").description("Logout and return to Lo
7043
7047
  const email = config.auth.user.email;
7044
7048
  updateConfig({
7045
7049
  auth: void 0,
7046
- sync: { enabled: false, interval_hours: config.sync.interval_hours }
7050
+ sync: { enabled: false, interval_hours: config.sync.interval_hours, include_stats: config.sync.include_stats, include_details: config.sync.include_details }
7047
7051
  });
7048
7052
  console.log(pc9.green(` \u2713 Logged out from ${email}`));
7049
7053
  console.log(pc9.dim(" Local Mode \u2014 your data stays on this device."));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devness/useai-cli",
3
- "version": "0.8.13",
3
+ "version": "0.8.16",
4
4
  "description": "CLI tool for useai.dev — stats, sync, publish your AI development workflow",
5
5
  "author": "nabeelkausari",
6
6
  "license": "AGPL-3.0-only",