codebase-snapshot 0.20.0 → 0.20.2

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
@@ -313,6 +313,9 @@ declare const CLI_OPTIONS: {
313
313
  readonly "all-members": {
314
314
  readonly type: "boolean";
315
315
  };
316
+ readonly deep: {
317
+ readonly type: "boolean";
318
+ };
316
319
  readonly help: {
317
320
  readonly type: "boolean";
318
321
  readonly short: "h";
@@ -448,6 +451,8 @@ interface ParsedInvocation {
448
451
  ignore?: string[];
449
452
  /** `--all-members` (health): audit every snapshot a `--workspace` run wrote. */
450
453
  allMembers?: boolean;
454
+ /** `health`: replay every full body against the source on disk. */
455
+ deep?: boolean;
451
456
  }
452
457
  declare function parsePositiveInteger(raw: string | undefined, optionName: string, minimum: number): number | undefined;
453
458
  /**
package/dist/cli.d.ts CHANGED
@@ -313,6 +313,9 @@ declare const CLI_OPTIONS: {
313
313
  readonly "all-members": {
314
314
  readonly type: "boolean";
315
315
  };
316
+ readonly deep: {
317
+ readonly type: "boolean";
318
+ };
316
319
  readonly help: {
317
320
  readonly type: "boolean";
318
321
  readonly short: "h";
@@ -448,6 +451,8 @@ interface ParsedInvocation {
448
451
  ignore?: string[];
449
452
  /** `--all-members` (health): audit every snapshot a `--workspace` run wrote. */
450
453
  allMembers?: boolean;
454
+ /** `health`: replay every full body against the source on disk. */
455
+ deep?: boolean;
451
456
  }
452
457
  declare function parsePositiveInteger(raw: string | undefined, optionName: string, minimum: number): number | undefined;
453
458
  /**
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- import { startHttpTransport } from './chunk-JCGCY6R3.js';
2
- import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, resolveConfig, validateSnapshot, auditSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, getGitInfo, signManifest, loadSigningKey, writeSignature, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, escapeControls, runWithStdoutCapture, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-S27VYVC4.js';
3
- export { buildAgentContract } from './chunk-S27VYVC4.js';
1
+ import { startHttpTransport } from './chunk-YL4VRORI.js';
2
+ import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, resolveConfig, validateSnapshot, auditSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, getGitInfo, signManifest, loadSigningKey, writeSignature, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, escapeControls, runWithStdoutCapture, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-DUDF3CR5.js';
3
+ export { buildAgentContract } from './chunk-DUDF3CR5.js';
4
4
  import { spawnSync } from 'child_process';
5
5
  import * as fs2 from 'fs';
6
6
  import * as path2 from 'path';
@@ -190,6 +190,7 @@ var CLI_OPTIONS = {
190
190
  only: { type: "string" },
191
191
  ignore: { type: "string" },
192
192
  "all-members": { type: "boolean" },
193
+ deep: { type: "boolean" },
193
194
  help: { type: "boolean", short: "h" },
194
195
  version: { type: "boolean", short: "v" }
195
196
  };
@@ -297,6 +298,11 @@ Options:
297
298
  --install-hook As for init
298
299
  --preset / --include / --exclude / --force As for init
299
300
 
301
+ health only:
302
+ --strict Treat warnings as failures (exit 2 on a critical failure)
303
+ --all-members Audit every snapshot a --workspace run wrote
304
+ --deep Replay every full body against the source on disk
305
+
300
306
  skill only:
301
307
  --install Write the skill into the repository instead of printing
302
308
  --target <name> claude | cursor | all (default: all)
@@ -641,6 +647,7 @@ function parseCliArgs(argv) {
641
647
  only: values.only === void 0 ? void 0 : String(values.only).split(",").map((item) => item.trim()).filter(Boolean),
642
648
  ignore: values.ignore === void 0 ? void 0 : String(values.ignore).split(",").map((item) => item.trim()).filter(Boolean),
643
649
  allMembers: values["all-members"] === true ? true : void 0,
650
+ deep: values.deep === true ? true : void 0,
644
651
  budgetTokens: values["budget-tokens"] === void 0 ? void 0 : parsePositiveInteger(values["budget-tokens"], "budget-tokens", 500),
645
652
  delta: values.delta === void 0 ? void 0 : String(values.delta),
646
653
  slice: values.slice === void 0 ? void 0 : String(values.slice),
@@ -1456,7 +1463,11 @@ ${USAGE}
1456
1463
  return 0;
1457
1464
  }
1458
1465
  const snapshotDir = path2.resolve(resolved.cwd, resolved.outDir);
1459
- const report = auditSnapshot({ snapshotDir, repoDir: resolved.cwd });
1466
+ const report = auditSnapshot({
1467
+ snapshotDir,
1468
+ repoDir: resolved.cwd,
1469
+ ...invocation.deep === true ? { deep: true } : {}
1470
+ });
1460
1471
  emit(invocation.format, report, () => renderHealthText(report));
1461
1472
  if (report.counts.fail > 0) return invocation.strict === true ? 2 : 1;
1462
1473
  if (invocation.strict === true && report.counts.warn > 0) return 1;