@devness/useai-cli 0.8.2 → 0.8.4

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 +5 -26
  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.2";
33
+ var VERSION = "0.8.4";
34
34
 
35
35
  // ../shared/dist/constants/defaults.js
36
36
  var DEFAULT_CAPTURE_CONFIG = {
@@ -40,20 +40,9 @@ var DEFAULT_CAPTURE_CONFIG = {
40
40
  evaluation_reasons: "all",
41
41
  milestones: true
42
42
  };
43
- var DEFAULT_SYNC_INCLUDE_CONFIG = {
44
- sessions: true,
45
- evaluations: true,
46
- milestones: true,
47
- prompts: false,
48
- private_titles: false,
49
- projects: false,
50
- model: true,
51
- languages: true
52
- };
53
43
  var DEFAULT_SYNC_CONFIG = {
54
44
  enabled: false,
55
- interval_hours: 3,
56
- include: { ...DEFAULT_SYNC_INCLUDE_CONFIG }
45
+ interval_hours: 3
57
46
  };
58
47
  var DEFAULT_CONFIG = {
59
48
  capture: { ...DEFAULT_CAPTURE_CONFIG },
@@ -230,7 +219,7 @@ function migrateConfig(raw) {
230
219
  };
231
220
  }
232
221
  if (!config.sync || typeof config.sync !== "object") {
233
- config.sync = { ...DEFAULT_SYNC_CONFIG, include: { ...DEFAULT_SYNC_INCLUDE_CONFIG } };
222
+ config.sync = { ...DEFAULT_SYNC_CONFIG };
234
223
  if (typeof raw["auto_sync"] === "boolean") {
235
224
  config.sync.enabled = raw["auto_sync"];
236
225
  }
@@ -239,22 +228,12 @@ function migrateConfig(raw) {
239
228
  }
240
229
  } else {
241
230
  const s = config.sync;
242
- const include = s.include ?? {};
243
231
  config.sync = {
244
232
  enabled: s.enabled ?? DEFAULT_SYNC_CONFIG.enabled,
245
- interval_hours: s.interval_hours ?? DEFAULT_SYNC_CONFIG.interval_hours,
246
- include: {
247
- sessions: include.sessions ?? DEFAULT_SYNC_INCLUDE_CONFIG.sessions,
248
- evaluations: include.evaluations ?? DEFAULT_SYNC_INCLUDE_CONFIG.evaluations,
249
- milestones: include.milestones ?? DEFAULT_SYNC_INCLUDE_CONFIG.milestones,
250
- prompts: include.prompts ?? DEFAULT_SYNC_INCLUDE_CONFIG.prompts,
251
- private_titles: include.private_titles ?? DEFAULT_SYNC_INCLUDE_CONFIG.private_titles,
252
- projects: include.projects ?? DEFAULT_SYNC_INCLUDE_CONFIG.projects,
253
- model: include.model ?? DEFAULT_SYNC_INCLUDE_CONFIG.model,
254
- languages: include.languages ?? DEFAULT_SYNC_INCLUDE_CONFIG.languages
255
- }
233
+ interval_hours: s.interval_hours ?? DEFAULT_SYNC_CONFIG.interval_hours
256
234
  };
257
235
  }
236
+ delete config.sync.include;
258
237
  if (!config.evaluation_framework) {
259
238
  config.evaluation_framework = "space";
260
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devness/useai-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
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",