@vibgrate/cli 1.0.67 → 1.0.69

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.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  baselineCommand,
3
3
  runBaseline
4
- } from "./chunk-NASOHLRL.js";
5
- import "./chunk-56UAFVE4.js";
4
+ } from "./chunk-DGQCRO6X.js";
5
+ import "./chunk-5DTDDZHE.js";
6
6
  import "./chunk-TBE6NQ5Z.js";
7
7
  export {
8
8
  baselineCommand,
@@ -7938,7 +7938,6 @@ async function scanApiSurface(rootDir, fileCache) {
7938
7938
  result.rateLimitOverrides.push(...extract(file.content, /\b(?:rate[_-]?limit|max[_-]?requests|throttle)\b[^\n]*/gi, file.relPath));
7939
7939
  result.customHeaders.push(...extract(file.content, /\b(?:x-[a-z0-9-]+|authorization|user-agent)\b[^\n]*/gi, file.relPath));
7940
7940
  result.corsPolicies.push(...extract(file.content, /\b(?:cors|access-control-allow-origin|allowedOrigins)\b[^\n]*/gi, file.relPath));
7941
- result.oauthScopes.push(...extract(file.content, /\bscopes?\s*[=:]\s*['"][^'"]*(?:openid|profile|email|offline_access|read(?::\w+)?|write(?::\w+)?)[^'"]*['"]/gi, file.relPath));
7942
7941
  result.apiTokens.push(...extract(file.content, /\b(?:api[_-]?token|access[_-]?token|bearer[_-]?token)\b[^\n]*/gi, file.relPath));
7943
7942
  }
7944
7943
  const integrationMap = /* @__PURE__ */ new Map();
@@ -8081,6 +8080,19 @@ async function scanAssetBranding(rootDir, fileCache) {
8081
8080
  productLogos: uniq(logoCandidates.map((entry) => entry.relPath))
8082
8081
  };
8083
8082
  }
8083
+ async function findProjectFavicon(projectDir) {
8084
+ const cache = new FileCache();
8085
+ try {
8086
+ const entries = await cache.walkDir(projectDir);
8087
+ const favicon = entries.find((entry) => entry.isFile && /favicon/i.test(entry.name));
8088
+ if (!favicon) return null;
8089
+ const content = await cache.readTextFile(favicon.absPath);
8090
+ if (!content) return null;
8091
+ return Buffer.from(content).toString("base64").slice(0, 1e4);
8092
+ } catch {
8093
+ return null;
8094
+ }
8095
+ }
8084
8096
  async function scanOssGovernance(rootDir, fileCache) {
8085
8097
  const files = await scanTextFiles(rootDir, fileCache);
8086
8098
  const directDeps = /* @__PURE__ */ new Set();
@@ -8821,6 +8833,11 @@ async function runScan(rootDir, opts) {
8821
8833
  }
8822
8834
  }));
8823
8835
  }
8836
+ await Promise.all(allProjects.map(async (project) => {
8837
+ const projectAbsPath = path24.join(rootDir, project.path);
8838
+ const favicon = await findProjectFavicon(projectAbsPath);
8839
+ if (favicon) project.faviconBase64 = favicon;
8840
+ }));
8824
8841
  if (scannerPolicy.architecture && scanners?.architecture?.enabled !== false) {
8825
8842
  progress.startStep("architecture");
8826
8843
  extended.architecture = await scanArchitecture(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runScan
3
- } from "./chunk-56UAFVE4.js";
3
+ } from "./chunk-5DTDDZHE.js";
4
4
  import {
5
5
  writeJsonFile
6
6
  } from "./chunk-TBE6NQ5Z.js";
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  baselineCommand
4
- } from "./chunk-NASOHLRL.js";
4
+ } from "./chunk-DGQCRO6X.js";
5
5
  import {
6
6
  VERSION,
7
7
  dsnCommand,
@@ -10,7 +10,7 @@ import {
10
10
  pushCommand,
11
11
  scanCommand,
12
12
  writeDefaultConfig
13
- } from "./chunk-56UAFVE4.js";
13
+ } from "./chunk-5DTDDZHE.js";
14
14
  import {
15
15
  ensureDir,
16
16
  pathExists,
@@ -39,7 +39,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
39
39
  console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
40
40
  }
41
41
  if (opts.baseline) {
42
- const { runBaseline } = await import("./baseline-YGEO4GK7.js");
42
+ const { runBaseline } = await import("./baseline-ZTTNU7WC.js");
43
43
  await runBaseline(rootDir);
44
44
  }
45
45
  console.log("");
package/dist/index.d.ts CHANGED
@@ -59,6 +59,8 @@ interface ProjectScan {
59
59
  relationshipDiagram?: MermaidDiagram;
60
60
  /** Compacted UI purpose evidence for this project */
61
61
  uiPurpose?: CompactUiPurpose;
62
+ /** Base64-encoded favicon for this project, detected from its public/ directory */
63
+ faviconBase64?: string;
62
64
  }
63
65
  interface SolutionScan {
64
66
  /** Deterministic solution ID: SHA-256 hash of `${path}:${name}:${workspaceId}` */
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  formatText,
6
6
  generateFindings,
7
7
  runScan
8
- } from "./chunk-56UAFVE4.js";
8
+ } from "./chunk-5DTDDZHE.js";
9
9
  import "./chunk-TBE6NQ5Z.js";
10
10
  export {
11
11
  computeDriftScore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibgrate/cli",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "description": "CLI for measuring upgrade drift across Node, .NET, Python & Java projects",
5
5
  "type": "module",
6
6
  "bin": {