@codest0411/pathport 0.0.0-stage → 0.1.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +129 -2
  4. package/bin/pathport.js +7 -0
  5. package/dist/cli.d.ts +12 -0
  6. package/dist/cli.d.ts.map +1 -0
  7. package/dist/cli.js +169 -0
  8. package/dist/cli.js.map +1 -0
  9. package/dist/index.d.ts +6 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +5 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/reporters/json.d.ts +6 -0
  14. package/dist/reporters/json.d.ts.map +1 -0
  15. package/dist/reporters/json.js +7 -0
  16. package/dist/reporters/json.js.map +1 -0
  17. package/dist/reporters/text.d.ts +6 -0
  18. package/dist/reporters/text.d.ts.map +1 -0
  19. package/dist/reporters/text.js +45 -0
  20. package/dist/reporters/text.js.map +1 -0
  21. package/dist/rules/collisions.d.ts +4 -0
  22. package/dist/rules/collisions.d.ts.map +1 -0
  23. package/dist/rules/collisions.js +147 -0
  24. package/dist/rules/collisions.js.map +1 -0
  25. package/dist/rules/index.d.ts +10 -0
  26. package/dist/rules/index.d.ts.map +1 -0
  27. package/dist/rules/index.js +46 -0
  28. package/dist/rules/index.js.map +1 -0
  29. package/dist/rules/paths.d.ts +4 -0
  30. package/dist/rules/paths.d.ts.map +1 -0
  31. package/dist/rules/paths.js +111 -0
  32. package/dist/rules/paths.js.map +1 -0
  33. package/dist/rules/symlinks.d.ts +4 -0
  34. package/dist/rules/symlinks.d.ts.map +1 -0
  35. package/dist/rules/symlinks.js +60 -0
  36. package/dist/rules/symlinks.js.map +1 -0
  37. package/dist/rules/windows.d.ts +4 -0
  38. package/dist/rules/windows.d.ts.map +1 -0
  39. package/dist/rules/windows.js +85 -0
  40. package/dist/rules/windows.js.map +1 -0
  41. package/dist/scanner.d.ts +12 -0
  42. package/dist/scanner.d.ts.map +1 -0
  43. package/dist/scanner.js +248 -0
  44. package/dist/scanner.js.map +1 -0
  45. package/dist/types.d.ts +91 -0
  46. package/dist/types.d.ts.map +1 -0
  47. package/dist/types.js +2 -0
  48. package/dist/types.js.map +1 -0
  49. package/package.json +64 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-11-26
9
+
10
+ ### Added
11
+
12
+ - Initial MVP release of `pathport` CLI and programmatic API.
13
+ - Read-only filesystem scanner (`scanRepository`) with symlink loop/escape detection, explicit exclusions, `maxDepth`, and `maxDiagnostics` bounds.
14
+ - Cross-platform rules `PP001`–`PP011` covering Windows reserved device names, trailing dots/spaces, invalid characters, case-insensitive collisions, Unicode NFC/NFD collisions, Git case-collision warnings, macOS colons, control characters, path length limits, and symlink escapes/loops/broken links.
15
+ - Human-readable text reporter and stable JSON reporter (`schemaVersion: "1.0.0"`).
16
+ - Comprehensive `node:test` unit and integration suite.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PathPort Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,130 @@
1
- # Temporary Holding Version
1
+ # PathPort
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Local-first cross-platform filename compatibility checker for software repositories.
4
+
5
+ PathPort scans file and directory names in a repository and reports names, character sequences, collisions, path lengths, and symlink patterns that behave differently across **Windows**, **macOS**, and **Linux**.
6
+
7
+ **Read-only by design:** PathPort never renames, deletes, rewrites, or uploads scanned files, never executes repository scripts, and never makes network requests.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install --save-dev pathport
13
+ ```
14
+
15
+ Or run globally / via `npx`:
16
+
17
+ ```bash
18
+ npx pathport --path .
19
+ ```
20
+
21
+ Requires **Node.js >= 20.11.0**.
22
+
23
+ ## Quick Start
24
+
25
+ Scan the current directory for all platforms (`windows`, `macos`, `linux`):
26
+
27
+ ```bash
28
+ npx pathport
29
+ ```
30
+
31
+ Scan a specific directory for Windows compatibility and output JSON for CI:
32
+
33
+ ```bash
34
+ npx pathport --path ./my-repo --platform windows --format json
35
+ ```
36
+
37
+ Fail CI on warnings as well as errors:
38
+
39
+ ```bash
40
+ npx pathport --platform all --fail-on warning
41
+ ```
42
+
43
+ ## CLI Reference
44
+
45
+ ```text
46
+ Usage:
47
+ pathport [options]
48
+
49
+ Options:
50
+ -p, --path <directory> Directory to scan (default: ".")
51
+ --platform <target> Target platform: windows | macos | linux | all (default: "all")
52
+ -f, --format <format> Output format: text | json (default: "text")
53
+ --fail-on <severity> Exit 1 if findings meet/exceed: error | warning | info | none (default: "error")
54
+ --exclude <pattern> Exclude name, relative path, or simple prefix/suffix * glob (repeatable)
55
+ --no-default-excludes Do not exclude default directories (.git, node_modules)
56
+ --max-depth <n> Maximum directory traversal depth (positive integer)
57
+ --max-diagnostics <n> Maximum diagnostics to emit (default: 1000)
58
+ -h, --help Show this help message
59
+ -v, --version Show version number
60
+ ```
61
+
62
+ ### Exit Codes
63
+
64
+ - `0`: Scan completed with no findings at or above the `--fail-on` threshold.
65
+ - `1`: Scan completed and findings meet or exceed the `--fail-on` threshold.
66
+ - `2`: Invalid CLI arguments or operational error (such as a missing directory).
67
+
68
+ ## Sample Output
69
+
70
+ ### Text (`--format text`)
71
+
72
+ ```text
73
+ PathPort scan: /path/to/repo
74
+ Target platform: all | Scanned: 42 entries (35 files, 7 dirs, 0 symlinks) | Skipped: 2
75
+
76
+ [ERROR ] PP004 (case-insensitive-collision) [windows,macos]
77
+ Path: src/Utils.ts
78
+ Related: src/utils.ts
79
+ Issue: Case-insensitive collision between sibling entries: 'Utils.ts', 'utils.ts'.
80
+ Why: Default Windows (NTFS) and macOS (APFS/HFS+) filesystems are case-insensitive. Checking out or extracting these entries on those platforms can cause one file or directory to overwrite or shadow another.
81
+ Remediation: Rename one of the colliding entries so all sibling names remain distinct when compared case-insensitively (use `git mv` with a temporary name if renaming on a case-insensitive host).
82
+
83
+ Summary: 1 finding(s) (1 error, 0 warning, 0 info) in 3.12ms.
84
+ Note: Filesystem behavior varies by OS, filesystem (NTFS/APFS/ext4), mount options, and Git config (e.g. core.ignorecase, core.precomposeUnicode).
85
+ ```
86
+
87
+ ### JSON (`--format json`)
88
+
89
+ JSON output uses `schemaVersion: "1.0.0"` with deterministic ordering (`severity`, then `path`, then `ruleId`) and includes `rootPath`, `platform`, `excludedPatterns`, `diagnostics`, `summary`, `stats`, and `errors`.
90
+
91
+ ## Rule Reference
92
+
93
+ | Rule ID | Name | Default Severity | Target Platforms | Description |
94
+ | ------- | --------------------------------- | --------------------------------------------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------- |
95
+ | `PP001` | `windows-reserved-name` | `error` | `windows` | Flags `CON`, `PRN`, `AUX`, `NUL`, `COM1`–`COM9`, `LPT1`–`LPT9`, including with extensions (`CON.txt`). |
96
+ | `PP002` | `windows-trailing-dot-or-space` | `error` | `windows` | Flags names ending in `.` or space (` `). |
97
+ | `PP003` | `windows-invalid-char` | `error` | `windows` | Flags `< > : " / \ | ? *`and ASCII control chars`0x00`–`0x1F`. |
98
+ | `PP004` | `case-insensitive-collision` | `error` | `windows`, `macos` | Flags sibling entries in the same directory differing only by case. |
99
+ | `PP005` | `unicode-normalization-collision` | `error` | `macos` | Flags sibling entries identical after Unicode NFC normalization but differing in raw code points (NFC vs NFD). |
100
+ | `PP006` | `git-case-collision-risk` | `warning` | `linux` | Warns on `--platform linux` when sibling entries differ only by case (Git checkout risk on Windows/macOS). |
101
+ | `PP007` | `macos-colon-character` | `warning` | `macos` | Flags `:` in filenames, which macOS Finder disallows / maps in HFS+ layers. |
102
+ | `PP008` | `control-character` | `warning` (`error` for NUL) | `windows`, `macos`, `linux` | Flags ASCII control characters (`0x00`–`0x1F`, `0x7F`). |
103
+ | `PP009` | `path-length-limit` | `error` (>255B segment) / `warning` (>=220 chars relpath) | `windows`, `macos`, `linux` | Flags >255-byte segments on all platforms and >=220-char relative paths on Windows/all. |
104
+ | `PP010` | `symlink-escapes-root` | `warning` | `windows`, `macos`, `linux` | Flags symlinks resolving outside the scan root. |
105
+ | `PP011` | `symlink-loop-or-broken` | `warning` | `windows`, `macos`, `linux` | Flags symlink loops (`ELOOP`) and dangling symlinks. |
106
+
107
+ ## Programmatic API
108
+
109
+ ```ts
110
+ import { scanRepository, formatTextReport } from "pathport";
111
+
112
+ const result = await scanRepository({
113
+ rootPath: ".",
114
+ platform: "all",
115
+ exclude: ["dist"],
116
+ maxDepth: 20,
117
+ });
118
+
119
+ console.log(formatTextReport(result));
120
+ ```
121
+
122
+ ## Limitations & Filesystem Nuances
123
+
124
+ - **OS & filesystem variation:** Filesystem semantics depend on OS, filesystem type (NTFS, FAT32, APFS, HFS+, ext4, XFS), mount options (e.g., case-sensitive APFS volumes or Windows per-directory case sensitivity), and Git configuration (`core.ignorecase`, `core.precomposeUnicode`, `core.longpaths`).
125
+ - **Host-dependent creation:** Some invalid names (such as `CON.txt` or `foo:bar` on Windows, or two case-only siblings on a default macOS/Windows disk) cannot even exist simultaneously on a case-insensitive host; running PathPort in Linux CI catches issues before Windows/macOS contributors pull them.
126
+ - **No automatic fixes:** PathPort intentionally does not rename or modify files.
127
+
128
+ ## Contributing
129
+
130
+ See [CONTRIBUTING.md](CONTRIBUTING.md), [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /* global process */
3
+
4
+ import { runCli } from "../dist/cli.js";
5
+
6
+ const exitCode = await runCli(process.argv.slice(2));
7
+ process.exitCode = exitCode;
package/dist/cli.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import type { FailOnThreshold, ScanResult } from "./types.js";
2
+ export declare function getHelpText(): string;
3
+ export declare function shouldFailOnResult(result: ScanResult, threshold: FailOnThreshold): boolean;
4
+ export interface CliIo {
5
+ stdout: (text: string) => void;
6
+ stderr: (text: string) => void;
7
+ }
8
+ /**
9
+ * Executes the PathPort CLI with the provided argv slice and returns the exit code.
10
+ */
11
+ export declare function runCli(argv?: readonly string[], io?: CliIo): Promise<number>;
12
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAA0B,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBtF,wBAAgB,WAAW,IAAI,MAAM,CAuBpC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,GAAG,OAAO,CAW1F;AAmBD,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAWD;;GAEG;AACH,wBAAsB,MAAM,CAC1B,IAAI,GAAE,SAAS,MAAM,EAA0B,EAC/C,EAAE,GAAE,KAAkB,GACrB,OAAO,CAAC,MAAM,CAAC,CAkGjB"}
package/dist/cli.js ADDED
@@ -0,0 +1,169 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { parseArgs } from "node:util";
3
+ import { formatJsonReport } from "./reporters/json.js";
4
+ import { formatTextReport } from "./reporters/text.js";
5
+ import { DEFAULT_EXCLUDES, DEFAULT_MAX_DIAGNOSTICS, ScannerOperationalError, scanRepository, } from "./scanner.js";
6
+ const VALID_PLATFORMS = new Set(["windows", "macos", "linux", "all"]);
7
+ const VALID_FORMATS = new Set(["text", "json"]);
8
+ const VALID_FAIL_ON = new Set(["error", "warning", "info", "none"]);
9
+ function getPackageVersion() {
10
+ try {
11
+ const pkgUrl = new URL("../package.json", import.meta.url);
12
+ const raw = readFileSync(pkgUrl, "utf8");
13
+ const parsed = JSON.parse(raw);
14
+ return typeof parsed.version === "string" ? parsed.version : "0.0.0";
15
+ }
16
+ catch {
17
+ return "0.0.0";
18
+ }
19
+ }
20
+ export function getHelpText() {
21
+ return `pathport - Local-first cross-platform filename compatibility checker
22
+
23
+ Usage:
24
+ pathport [options]
25
+
26
+ Options:
27
+ -p, --path <directory> Directory to scan (default: ".")
28
+ --platform <target> Target platform: windows | macos | linux | all (default: "all")
29
+ -f, --format <format> Output format: text | json (default: "text")
30
+ --fail-on <severity> Exit 1 if findings meet/exceed: error | warning | info | none (default: "error")
31
+ --exclude <pattern> Exclude name, relative path, or simple prefix/suffix * glob (repeatable)
32
+ --no-default-excludes Do not exclude default directories (${DEFAULT_EXCLUDES.join(", ")})
33
+ --max-depth <n> Maximum directory traversal depth (positive integer)
34
+ --max-diagnostics <n> Maximum diagnostics to emit (default: ${DEFAULT_MAX_DIAGNOSTICS})
35
+ -h, --help Show this help message
36
+ -v, --version Show version number
37
+
38
+ Exit codes:
39
+ 0 Scan completed with no findings at or above --fail-on threshold
40
+ 1 Scan completed and findings meet or exceed --fail-on threshold
41
+ 2 Invalid arguments or operational error
42
+ `;
43
+ }
44
+ export function shouldFailOnResult(result, threshold) {
45
+ if (threshold === "none") {
46
+ return false;
47
+ }
48
+ if (threshold === "error") {
49
+ return result.summary.error > 0;
50
+ }
51
+ if (threshold === "warning") {
52
+ return result.summary.error > 0 || result.summary.warning > 0;
53
+ }
54
+ return result.summary.total > 0;
55
+ }
56
+ function parsePositiveInt(raw, flagName) {
57
+ if (!/^\d+$/.test(raw)) {
58
+ throw new ScannerOperationalError(`Invalid value '${raw}' for ${flagName}. Expected a positive integer.`, "ERR_INVALID_ARG");
59
+ }
60
+ const num = Number(raw);
61
+ if (!Number.isSafeInteger(num) || num < 1) {
62
+ throw new ScannerOperationalError(`Invalid value '${raw}' for ${flagName}. Expected a positive integer >= 1.`, "ERR_INVALID_ARG");
63
+ }
64
+ return num;
65
+ }
66
+ const DEFAULT_IO = {
67
+ stdout: (text) => {
68
+ process.stdout.write(`${text}\n`);
69
+ },
70
+ stderr: (text) => {
71
+ process.stderr.write(`${text}\n`);
72
+ },
73
+ };
74
+ /**
75
+ * Executes the PathPort CLI with the provided argv slice and returns the exit code.
76
+ */
77
+ export async function runCli(argv = process.argv.slice(2), io = DEFAULT_IO) {
78
+ let parsed;
79
+ try {
80
+ parsed = parseArgs({
81
+ args: [...argv],
82
+ allowPositionals: false,
83
+ options: {
84
+ path: { type: "string", short: "p" },
85
+ platform: { type: "string" },
86
+ format: { type: "string", short: "f" },
87
+ "fail-on": { type: "string" },
88
+ exclude: { type: "string", multiple: true },
89
+ "no-default-excludes": { type: "boolean" },
90
+ "max-depth": { type: "string" },
91
+ "max-diagnostics": { type: "string" },
92
+ help: { type: "boolean", short: "h" },
93
+ version: { type: "boolean", short: "v" },
94
+ },
95
+ });
96
+ }
97
+ catch (err) {
98
+ const message = err instanceof Error ? err.message : String(err);
99
+ io.stderr(`Error: ${message}\nRun 'pathport --help' for usage information.`);
100
+ return 2;
101
+ }
102
+ const { values } = parsed;
103
+ if (values.help === true) {
104
+ io.stdout(getHelpText());
105
+ return 0;
106
+ }
107
+ if (values.version === true) {
108
+ io.stdout(getPackageVersion());
109
+ return 0;
110
+ }
111
+ const targetPath = values.path ?? ".";
112
+ const platformRaw = values.platform ?? "all";
113
+ const formatRaw = values.format ?? "text";
114
+ const failOnRaw = values["fail-on"] ?? "error";
115
+ if (!VALID_PLATFORMS.has(platformRaw)) {
116
+ io.stderr(`Error: Invalid --platform '${platformRaw}'. Expected one of: windows, macos, linux, all.`);
117
+ return 2;
118
+ }
119
+ if (!VALID_FORMATS.has(formatRaw)) {
120
+ io.stderr(`Error: Invalid --format '${formatRaw}'. Expected one of: text, json.`);
121
+ return 2;
122
+ }
123
+ if (!VALID_FAIL_ON.has(failOnRaw)) {
124
+ io.stderr(`Error: Invalid --fail-on '${failOnRaw}'. Expected one of: error, warning, info, none.`);
125
+ return 2;
126
+ }
127
+ try {
128
+ const maxDepth = values["max-depth"] !== undefined
129
+ ? parsePositiveInt(values["max-depth"], "--max-depth")
130
+ : undefined;
131
+ const maxDiagnostics = values["max-diagnostics"] !== undefined
132
+ ? parsePositiveInt(values["max-diagnostics"], "--max-diagnostics")
133
+ : undefined;
134
+ const scanOptions = {
135
+ rootPath: targetPath,
136
+ platform: platformRaw,
137
+ ...(values.exclude !== undefined ? { exclude: values.exclude } : {}),
138
+ ...(values["no-default-excludes"] === true ? { noDefaultExcludes: true } : {}),
139
+ ...(maxDepth !== undefined ? { maxDepth } : {}),
140
+ ...(maxDiagnostics !== undefined ? { maxDiagnostics } : {}),
141
+ };
142
+ const result = await scanRepository(scanOptions);
143
+ if (formatRaw === "json") {
144
+ io.stdout(formatJsonReport(result));
145
+ }
146
+ else {
147
+ io.stdout(formatTextReport(result));
148
+ }
149
+ return shouldFailOnResult(result, failOnRaw) ? 1 : 0;
150
+ }
151
+ catch (err) {
152
+ if (err instanceof ScannerOperationalError) {
153
+ io.stderr(`Error [${err.code}]: ${err.message}`);
154
+ }
155
+ else {
156
+ const message = err instanceof Error ? err.message : String(err);
157
+ io.stderr(`Error: ${message}`);
158
+ }
159
+ return 2;
160
+ }
161
+ }
162
+ // Run when invoked directly via bin/pathport.js or node dist/src/cli.js
163
+ const isDirectExecution = process.argv[1] !== undefined &&
164
+ (process.argv[1].endsWith("cli.js") || process.argv[1].endsWith("pathport.js"));
165
+ if (isDirectExecution) {
166
+ const code = await runCli(process.argv.slice(2));
167
+ process.exitCode = code;
168
+ }
169
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,GACf,MAAM,cAAc,CAAC;AAGtB,MAAM,eAAe,GAAG,IAAI,GAAG,CAAW,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChF,MAAM,aAAa,GAAG,IAAI,GAAG,CAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAC9D,MAAM,aAAa,GAAG,IAAI,GAAG,CAAkB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAErF,SAAS,iBAAiB;IACxB,IAAI,CAAC;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BAAiB,EAAE,CAAC;IACtB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { formatJsonReport } from "./reporters/json.js";
2
+ export { formatTextReport } from "./reporters/text.js";
3
+ export { evaluateRules, RULE_REGISTRY } from "./rules/index.js";
4
+ export { DEFAULT_EXCLUDES, DEFAULT_MAX_DIAGNOSTICS, ScannerOperationalError, scanRepository, } from "./scanner.js";
5
+ export type { Diagnostic, EntryKind, FailOnThreshold, OutputFormat, Platform, RuleDefinition, ScanError, ScanOptions, ScanResult, ScanStats, ScanSummary, ScannedEntry, Severity, TargetPlatform, } from "./types.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,UAAU,EACV,SAAS,EACT,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,WAAW,EACX,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export { formatJsonReport } from "./reporters/json.js";
2
+ export { formatTextReport } from "./reporters/text.js";
3
+ export { evaluateRules, RULE_REGISTRY } from "./rules/index.js";
4
+ export { DEFAULT_EXCLUDES, DEFAULT_MAX_DIAGNOSTICS, ScannerOperationalError, scanRepository, } from "./scanner.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,GACf,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ScanResult } from "../types.js";
2
+ /**
3
+ * Formats a ScanResult into a stable, CI-friendly JSON string.
4
+ */
5
+ export declare function formatJsonReport(result: ScanResult, pretty?: boolean): string;
6
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporters/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,UAAO,GAAG,MAAM,CAE1E"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Formats a ScanResult into a stable, CI-friendly JSON string.
3
+ */
4
+ export function formatJsonReport(result, pretty = true) {
5
+ return JSON.stringify(result, null, pretty ? 2 : undefined);
6
+ }
7
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/reporters/json.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAkB,EAAE,MAAM,GAAG,IAAI;IAChE,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ScanResult } from "../types.js";
2
+ /**
3
+ * Formats a ScanResult into a human-readable plain-text report.
4
+ */
5
+ export declare function formatTextReport(result: ScanResult): string;
6
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/reporters/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AAM1D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAkD3D"}
@@ -0,0 +1,45 @@
1
+ function formatSeverityLabel(severity) {
2
+ return severity.toUpperCase().padEnd(7, " ");
3
+ }
4
+ /**
5
+ * Formats a ScanResult into a human-readable plain-text report.
6
+ */
7
+ export function formatTextReport(result) {
8
+ const lines = [];
9
+ lines.push(`PathPort scan: ${result.rootPath}`);
10
+ lines.push(`Target platform: ${result.platform} | Scanned: ${result.stats.scannedEntries} entries (${result.stats.scannedFiles} files, ${result.stats.scannedDirectories} dirs, ${result.stats.scannedSymlinks} symlinks) | Skipped: ${result.stats.skippedEntries}`);
11
+ lines.push("");
12
+ if (result.diagnostics.length === 0) {
13
+ lines.push("No cross-platform filename issues found.");
14
+ }
15
+ else {
16
+ for (const diag of result.diagnostics) {
17
+ const label = formatSeverityLabel(diag.severity);
18
+ const platforms = diag.platforms.join(",");
19
+ lines.push(`[${label}] ${diag.ruleId} (${diag.ruleName}) [${platforms}]`);
20
+ lines.push(` Path: ${diag.path}`);
21
+ if (diag.relatedPaths !== undefined && diag.relatedPaths.length > 0) {
22
+ lines.push(` Related: ${diag.relatedPaths.join(", ")}`);
23
+ }
24
+ lines.push(` Issue: ${diag.message}`);
25
+ lines.push(` Why: ${diag.explanation}`);
26
+ lines.push(` Remediation: ${diag.remediation}`);
27
+ lines.push("");
28
+ }
29
+ }
30
+ if (result.errors.length > 0) {
31
+ lines.push("Operational errors during scan:");
32
+ for (const err of result.errors) {
33
+ lines.push(` - ${err.path}: [${err.code}] ${err.message}`);
34
+ }
35
+ lines.push("");
36
+ }
37
+ if (result.stats.truncated) {
38
+ lines.push(`Note: Output was truncated to ${result.diagnostics.length} diagnostics. Use --max-diagnostics to adjust.`);
39
+ lines.push("");
40
+ }
41
+ lines.push(`Summary: ${result.summary.total} finding(s) (${result.summary.error} error, ${result.summary.warning} warning, ${result.summary.info} info) in ${result.stats.durationMs}ms.`);
42
+ lines.push("Note: Filesystem behavior varies by OS, filesystem (NTFS/APFS/ext4), mount options, and Git config (e.g. core.ignorecase, core.precomposeUnicode).");
43
+ return lines.join("\n");
44
+ }
45
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/reporters/text.ts"],"names":[],"mappings":"AAEA,SAAS,mBAAmB,CAAC,QAAgC;IAC3D,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAkB;IACjD,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,KAAK,CAAC,IAAI,CAAC,kBAAkB,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChD,KAAK,CAAC,IAAI,CACR,oBAAoB,MAAM,CAAC,QAAQ,eAAe,MAAM,CAAC,KAAK,CAAC,cAAc,aAAa,MAAM,CAAC,KAAK,CAAC,YAAY,WAAW,MAAM,CAAC,KAAK,CAAC,kBAAkB,UAAU,MAAM,CAAC,KAAK,CAAC,eAAe,yBAAyB,MAAM,CAAC,KAAK,CAAC,cAAc,EAAE,CAC1P,CAAC;IACF,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,IAAI,MAAM,CAAC,W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C,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAC9D,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CACR,iCAAiC,MAAM,CAAC,WAAW,CAAC,MAAM,gDAAgD,CAC3G,CAAC;QACF,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,YAAY,MAAM,CAAC,OAAO,CAAC,KAAK,gBAAgB,MAAM,CAAC,OAAO,CAAC,KAAK,WAAW,MAAM,CAAC,OAAO,CAAC,OAAO,aAAa,MAAM,CAAC,OAAO,CAAC,IAAI,aAAa,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,CAC/K,CAAC;IACF,KAAK,CAAC,IAAI,CACR,oJAAoJ,CACrJ,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Diagnostic, Platform, RuleDefinition, ScannedEntry } from "../types.js";
2
+ export declare const COLLISION_RULES: readonly RuleDefinition[];
3
+ export declare function checkDirectoryCollisions(entries: readonly ScannedEntry[], platform: Platform): Diagnostic[];
4
+ //# sourceMappingURL=collisions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collisions.d.ts","sourceRoot":"","sources":["../../src/rules/collisions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtF,eAAO,MAAM,eAAe,EAAE,SAAS,cAAc,EAyBpD,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,QAAQ,EAAE,QAAQ,GACjB,UAAU,EAAE,CA0Id"}