@moda-ai/cli 1.1.0 → 1.1.1

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/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "1.0.4";
1
+ export declare const VERSION: string;
2
2
  export declare const MODA_API_KEY: string | undefined;
3
3
  export declare const MODA_BASE_URL: string;
4
4
  export declare function validateConfig(): void;
package/dist/config.js CHANGED
@@ -1,5 +1,6 @@
1
- // src/config.ts
2
- export const VERSION = '1.0.4';
1
+ import { readFileSync } from 'node:fs';
2
+ const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
3
+ export const VERSION = pkg.version;
3
4
  export const MODA_API_KEY = process.env.MODA_API_KEY;
4
5
  export const MODA_BASE_URL = process.env.MODA_BASE_URL || 'https://moda.dev';
5
6
  export function validateConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moda-ai/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI for Moda - AI agent analytics and observability",
5
5
  "type": "module",
6
6
  "bin": {