@ankurhalder/codebase-snapshot 4.0.0 → 4.0.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/cli.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat } from './types-BdpT_4b8.cjs';
1
+ import { O as OutputFormat } from './types-LSfwsKE-.cjs';
2
2
 
3
3
  type Command = "generate" | "validate" | "report" | "init" | "explain" | "diff" | "describe" | "skill";
4
4
  /** A user-input problem: printed without a stack trace, exits 2. */
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat } from './types-BdpT_4b8.js';
1
+ import { O as OutputFormat } from './types-LSfwsKE-.js';
2
2
 
3
3
  type Command = "generate" | "validate" | "report" | "init" | "explain" | "diff" | "describe" | "skill";
4
4
  /** A user-input problem: printed without a stack trace, exits 2. */
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { parseByteSize, GENERATOR_VERSION, ARTIFACT_NAMES, getPreset, unknownPresetMessage, MIN_MAX_PART_BYTES, loadConfigFileDetailed, resolveConfig, validateSnapshot, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, GENERATOR_NAME, runInit, PromptCancelled, SCHEMA_VERSION, PRESETS, renderExplainText } from './chunk-FM4OOQPF.js';
1
+ import { parseByteSize, GENERATOR_VERSION, ARTIFACT_NAMES, getPreset, unknownPresetMessage, MIN_MAX_PART_BYTES, loadConfigFileDetailed, resolveConfig, validateSnapshot, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, GENERATOR_NAME, runInit, PromptCancelled, SCHEMA_VERSION, PRESETS, renderExplainText } from './chunk-RGIMMEAW.js';
2
2
  import * as fs from 'fs';
3
3
  import * as path2 from 'path';
4
4
  import { parseArgs } from 'util';
@@ -1295,8 +1295,7 @@ ${USAGE}
1295
1295
  warn(`\u274C ${manifestPath} is not a snapshot manifest: ${shapeError}`);
1296
1296
  return 1;
1297
1297
  }
1298
- const validation = validateSnapshot(resolved);
1299
- emit(invocation.format, { manifest, validation }, () => {
1298
+ emit(invocation.format, { manifest, validation: null }, () => {
1300
1299
  info(`
1301
1300
  \u{1F4CA} Codebase Snapshot Report (${resolved.cwd})`);
1302
1301
  info(` - Generated at: ${manifest.generatedAt}`);
@@ -1308,14 +1307,14 @@ ${USAGE}
1308
1307
  ` - Total size: ${(manifest.counts.totalSizeBytes / (1024 * 1024)).toFixed(2)} MB`
1309
1308
  );
1310
1309
  info(` - Total parts: ${manifest.counts.partsCount}`);
1311
- info(` - Integrity: ${validation.valid ? "\u2705 Clean (no drift)" : "\u274C Drift detected"}`);
1310
+ info(" - Integrity: not checked (run `codebase-snapshot validate`)");
1312
1311
  info(` - Warnings: ${manifest.warnings?.length ?? 0}`);
1313
1312
  info("\n Layers:");
1314
1313
  for (const [layer, count] of Object.entries(manifest.layers)) {
1315
1314
  info(` - ${layer.padEnd(16)}: ${count} files`);
1316
1315
  }
1317
1316
  });
1318
- return validation.valid ? 0 : 1;
1317
+ return 0;
1319
1318
  }
1320
1319
  if (invocation.command === "explain") {
1321
1320
  const result = explainPath(resolved, invocation.args[0]);