@ekkos/cli 0.2.14 → 0.2.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.
@@ -57,6 +57,9 @@ const child_process_1 = require("child_process");
57
57
  const open_1 = __importDefault(require("open"));
58
58
  const state_1 = require("../utils/state");
59
59
  const init_1 = require("./init");
60
+ // Get version from package.json (CommonJS compatible)
61
+ const pkgPath = path.resolve(__dirname, '../../package.json');
62
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
60
63
  const PLATFORM_URL = process.env.PLATFORM_URL || 'https://platform.ekkos.dev';
61
64
  const MEMORY_API_URL = process.env.MEMORY_API_URL || 'https://mcp.ekkos.dev';
62
65
  const POLLING_INTERVAL = 2000; // 2 seconds
@@ -94,7 +97,7 @@ function getOrCreateDeviceInfo() {
94
97
  platform: os.platform(),
95
98
  arch: os.arch(),
96
99
  nodeVersion: process.version,
97
- cliVersion: '0.2.8', // TODO: Get from package.json
100
+ cliVersion: pkg.version,
98
101
  };
99
102
  // Save device info
100
103
  if (!fs.existsSync(state_1.EKKOS_DIR)) {
package/dist/index.js CHANGED
@@ -1,5 +1,38 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
3
36
  var __importDefault = (this && this.__importDefault) || function (mod) {
4
37
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
38
  };
@@ -16,10 +49,15 @@ const setup_remote_1 = require("./commands/setup-remote");
16
49
  const agent_1 = require("./commands/agent");
17
50
  const state_1 = require("./utils/state");
18
51
  const chalk_1 = __importDefault(require("chalk"));
52
+ const fs = __importStar(require("fs"));
53
+ const path = __importStar(require("path"));
54
+ // Get version from package.json (CommonJS compatible)
55
+ const pkgPath = path.resolve(__dirname, '../package.json');
56
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
19
57
  commander_1.program
20
58
  .name('ekkos')
21
59
  .description('ekkOS memory CLI for AI coding assistants')
22
- .version('0.2.8')
60
+ .version(pkg.version)
23
61
  .addHelpText('beforeAll', chalk_1.default.cyan('\n made by ekkOS_ with ❤️\n'));
24
62
  // Main init command (combined auth + setup)
25
63
  commander_1.program
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@ekkos/cli",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "Setup ekkOS memory for AI coding assistants (Claude Code, Cursor, Windsurf)",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "ekkos": "dist/index.js",
8
+ "cli": "dist/index.js",
8
9
  "ekkos-capture": "dist/cache/capture.js"
9
10
  },
10
11
  "scripts": {