Configuration¶
The current release keeps configuration intentionally small. The CLI exposes the canonical contract; the GitHub Action wrapper maps its inputs onto the same options.
Input¶
| Surface | How it is provided |
|---|---|
| CLI | First positional argument, or stdin when omitted. |
| Action | log-path input. |
| Library | inputPath argument to processLogFile, or a Readable stream to processLogStream. |
The parser is stream-based end-to-end, so large logs can be handled without loading the whole file into memory.
Output¶
| Surface | How it is provided |
|---|---|
| CLI | --output <path>, or stdout when omitted. |
| Action | Written next to the input as <basename>.logstrip<ext>. |
| Library | outputPath argument to processLogFile, or a Writable stream to processLogStream. |
Default file naming when running the action or omitting --output:
| Input | Output |
|---|---|
raw.log | raw.logstrip.log |
test-output.txt | test-output.logstrip.txt |
raw | raw.logstrip.log |
Aggressiveness¶
Accepted values:
| Value | Status |
|---|---|
low | accepted |
medium | accepted |
high | default |
aggressive | accepted |
In the current release, all levels use the same four-cut pipeline. The option is validated up front so planned enhancements can tune filter strength without changing the CLI or workflow syntax.
Stats and reports¶
| Surface | How to get stats |
|---|---|
| CLI | --stats (human-readable, stderr) or --json (machine-readable, stdout, requires --output). |
| Action | Always written as a GitHub Step Summary table. |
| Library | Returned as a LogStripResult from processLogFile / processLogStream. |
Package scripts¶
The coverage configuration requires 100% statements, branches, functions, and lines across src/core, src/cli, and src/action.