arcvision 0.1.3 → 0.1.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.
package/dist/index.js CHANGED
@@ -4220,10 +4220,10 @@ var require_supports_color = __commonJS({
4220
4220
  return 3;
4221
4221
  }
4222
4222
  if ("TERM_PROGRAM" in env) {
4223
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4223
+ const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4224
4224
  switch (env.TERM_PROGRAM) {
4225
4225
  case "iTerm.app":
4226
- return version >= 3 ? 3 : 2;
4226
+ return version2 >= 3 ? 3 : 2;
4227
4227
  case "Apple_Terminal":
4228
4228
  return 2;
4229
4229
  }
@@ -44650,8 +44650,8 @@ var require_trace_mapping_umd = __commonJS({
44650
44650
  if (!isString && map._decodedMemo)
44651
44651
  return map;
44652
44652
  const parsed = parse(map);
44653
- const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
44654
- this.version = version;
44653
+ const { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
44654
+ this.version = version2;
44655
44655
  this.file = file;
44656
44656
  this.names = names || [];
44657
44657
  this.sourceRoot = sourceRoot;
@@ -56606,6 +56606,9 @@ var path = require("path");
56606
56606
  var fs = require("fs");
56607
56607
  var os = require("os");
56608
56608
  var scanner = require_scanner();
56609
+ var packageJsonPath = path.join(__dirname, "../../package.json");
56610
+ var packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
56611
+ var version = packageJson.version;
56609
56612
  var CONFIG_FILE = path.join(os.homedir(), ".arcvisionrc");
56610
56613
  var API_URL = process.env.ARCVISION_API_URL || "https://arcvisiondev.vercel.app";
56611
56614
  function saveToken(token) {
@@ -56720,7 +56723,7 @@ Quick Start:
56720
56723
  4. Run: arcvision link <token>
56721
56724
  5. Run: arcvision scan --upload
56722
56725
  6. Open dashboard to see results
56723
- `).version("1.0.0");
56726
+ `).version(version);
56724
56727
  program.command("link <token>").description("Link this CLI to a project via upload token").action((token) => {
56725
56728
  try {
56726
56729
  saveToken(token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcvision",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Architecture scanner for modern codebases",
5
5
  "bin": {
6
6
  "arcvision": "./dist/index.js"
package/src/index.js CHANGED
@@ -7,6 +7,11 @@ const fs = require('fs');
7
7
  const os = require('os');
8
8
  const scanner = require('./core/scanner');
9
9
 
10
+ // Get version from package.json
11
+ const packageJsonPath = path.join(__dirname, '../../package.json');
12
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
13
+ const version = packageJson.version;
14
+
10
15
  const CONFIG_FILE = path.join(os.homedir(), '.arcvisionrc');
11
16
  const API_URL = process.env.ARCVISION_API_URL || 'https://arcvisiondev.vercel.app';
12
17
 
@@ -140,7 +145,7 @@ Quick Start:
140
145
  5. Run: arcvision scan --upload
141
146
  6. Open dashboard to see results
142
147
  `)
143
- .version('1.0.0');
148
+ .version(version);
144
149
 
145
150
  program
146
151
  .command('link <token>')