logstrip 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -10,6 +10,7 @@ _A zero-dependency Node.js CLI (with a TypeScript library and an optional GitHub
10
10
 
11
11
  [![CI](https://github.com/mrwogu/logstrip/actions/workflows/ci.yml/badge.svg)](https://github.com/mrwogu/logstrip/actions/workflows/ci.yml)
12
12
  [![npm version](https://img.shields.io/npm/v/logstrip?color=white)](https://www.npmjs.com/package/logstrip)
13
+ [![GitHub Action](https://img.shields.io/badge/marketplace-LogStrip-blue?logo=githubactions&logoColor=white)](https://github.com/marketplace/actions/logstrip)
13
14
  [![Coverage](https://codecov.io/gh/mrwogu/logstrip/branch/main/graph/badge.svg)](https://codecov.io/gh/mrwogu/logstrip)
14
15
  [![License: MIT](https://img.shields.io/badge/license-MIT-white.svg)](https://opensource.org/licenses/MIT)
15
16
 
@@ -296,10 +297,12 @@ custom config integration.
296
297
 
297
298
  ## GitHub Action <a id="github-action"></a>
298
299
 
299
- The repository also ships an optional GitHub Action that wraps the same parser.
300
+ The repository also ships an optional [GitHub Action](https://github.com/marketplace/actions/logstrip) that wraps the same parser.
300
301
  It is useful when you want a single step in CI and a tidy Step Summary, but the
301
302
  CLI is the primary distribution channel.
302
303
 
304
+ > **Dogfooding:** This project uses its own action in its [CI pipeline](https://github.com/mrwogu/logstrip/actions/workflows/ci.yml) to compress fixture logs and render token savings in every workflow run.
305
+
303
306
  ```yaml
304
307
  - name: Compress logs with LogStrip
305
308
  uses: mrwogu/logstrip@v1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { Writable } from 'node:stream';
3
3
  import { type Aggressiveness, type LogStripResult } from '../core/logstrip-parser';
4
- export declare const CLI_VERSION = "1.0.0";
4
+ export declare const CLI_VERSION = "1.1.0";
5
5
  export declare const HELP_TEXT = "Usage: logstrip [INPUT] [options]\n\nStream-based log compression that trims noisy server logs, build\npipelines, vulnerability scanners, and container workloads down to the\ndiagnostic context an LLM actually needs.\n\nArguments:\n INPUT Path to the raw log. When omitted, reads from stdin.\n\nOptions:\n -o, --output <path> Write the compressed log to <path>. Defaults to stdout.\n -a, --aggressiveness <l> Compression preset: low | medium | high | aggressive.\n Default: high.\n -s, --stats Print compression statistics to stderr.\n -j, --json Print LogStripResult as JSON to stdout. Requires --output.\n --config <path> Path to .logstrip.yml config file. Auto-detects from cwd.\n -h, --help Show this help text and exit.\n -v, --version Print the CLI version and exit.\n\nExamples:\n logstrip raw.log -o clean.log\n cat raw.log | logstrip > clean.log\n logstrip raw.log --stats > clean.log\n logstrip raw.log -o clean.log --json\n";
6
6
  export interface CliOptions {
7
7
  input?: string;
package/dist/cli/index.js CHANGED
@@ -11,7 +11,7 @@ exports.runCli = runCli;
11
11
  const node_fs_1 = require("node:fs");
12
12
  const node_util_1 = require("node:util");
13
13
  const logstrip_parser_1 = require("../core/logstrip-parser");
14
- exports.CLI_VERSION = '1.0.0'; // x-release-please-version
14
+ exports.CLI_VERSION = '1.1.0'; // x-release-please-version
15
15
  exports.HELP_TEXT = `Usage: logstrip [INPUT] [options]
16
16
 
17
17
  Stream-based log compression that trims noisy server logs, build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logstrip",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Stream-based CLI that trims noisy server logs, build pipelines, vulnerability scanners, and container workloads down to the diagnostic context LLM agents actually need.",
5
5
  "private": false,
6
6
  "license": "MIT",