@karmaniverous/stan
    Preparing search index...

    Function createArchiveDiff

    • Create a diff tar at /output/.diff.tar.

      • If snapshot exists: include only changed files.
      • If no snapshot exists: include full file list (diff equals full archive).
      • Snapshot update behavior is controlled by updateSnapshot.
      • When includeOutputDirInDiff === true, also include the entire /output tree (excluding /diff and the two archive files) regardless of change list length.
      • Always include /patch in the diff archive.

      Parameters

      • args: {
            baseName: string;
            cwd: string;
            excludes?: string[];
            includeOutputDirInDiff?: boolean;
            includes?: string[];
            stanPath: string;
            updateSnapshot?: SnapshotUpdateMode;
        }

        Object with:

        • cwd: Repo root.
        • stanPath: STAN workspace folder.
        • baseName: Base archive name (e.g., archive -> archive.diff.tar).
        • includes: Allow‑list globs (overrides excludes).
        • excludes: Deny‑list globs.
        • updateSnapshot: Controls when the snapshot file is replaced.
        • includeOutputDirInDiff: When true, include stanPath/output in the diff.

      Returns Promise<{ diffPath: string }>

      { diffPath } absolute path to the diff archive.