lasik-agents 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -10,13 +10,13 @@
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- <a href="https://github.com/pktq/lasik/actions/workflows/ci.yml"><img src="https://github.com/pktq/lasik/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
14
- <a href="LICENSE"><img src="https://img.shields.io/github/license/pktq/lasik?color=blue" alt="MIT license" /></a>
15
- <img src="https://img.shields.io/badge/node-%E2%89%A520.19-339933" alt="Node 20.19+" />
13
+ <a href="https://www.npmjs.com/package/lasik-agents"><img src="https://img.shields.io/npm/v/lasik-agents?style=for-the-badge&label=npm&color=22d3ee" alt="npm version" /></a>
14
+ <a href="https://github.com/pktq/lasik/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/pktq/lasik/ci.yml?branch=main&style=for-the-badge&label=CI" alt="CI" /></a>
15
+ <a href="docs/coverage.md"><img src="https://img.shields.io/badge/BLA_3.2.1-59%2F63_shields_healed-22d3ee?style=for-the-badge" alt="BLA coverage" /></a>
16
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-64748b?style=for-the-badge" alt="MIT license" /></a>
16
17
  </p>
17
18
 
18
19
  <p align="center">
19
- <a href="https://lasik.dev">Website</a> ·
20
20
  <a href="docs/how-it-works.md">How it works</a> ·
21
21
  <a href="docs/benchmark.md">Benchmark</a> ·
22
22
  <a href="CHANGELOG.md">Changelog</a>
@@ -100,6 +100,15 @@ Measured on the CrackMes BLA's maintainers published as challenges, vendored unc
100
100
 
101
101
  <p align="center"><img src="docs/assets/tokens.svg" alt="Log-scale bar chart: estimated tokens per BLA CrackMe artifact before and after LASIK" width="100%" /></p>
102
102
 
103
+ <!-- realbench:start -->
104
+ On a project we hardened ourselves with the published `bla-agents@3.2.1`, one file per format ([details](docs/benchmark.md#your-own-code-hardened-by-real-bla-321)):
105
+
106
+ | BLA run | Files | Original | BLA-hardened | After LASIK | Tokens (estimated) | Result |
107
+ |---|---:|---:|---:|---:|---|---|
108
+ | Defaults | 21 | 151.9 KB | 31.1 MB | 150.9 KB | 32,154,076 → 152,102 | 21/21 healed, 11 byte-identical |
109
+ | All opt-in layers | 21 | 151.9 KB | 31.2 MB | 151.0 KB | 32,178,121 → 152,197 | 21/21 healed, 10 byte-identical |
110
+ <!-- realbench:end -->
111
+
103
112
  Per-file numbers, the method and its caveats are in [docs/benchmark.md](docs/benchmark.md). LASIK makes the CrackMes readable; it does not publish their solutions.
104
113
 
105
114
  ## How it works
@@ -1,6 +1,6 @@
1
1
  export declare const NAME = "LASIK";
2
2
  export declare const PACKAGE = "lasik-agents";
3
- export declare const VERSION = "0.2.0";
3
+ export declare const VERSION = "0.2.1";
4
4
  export declare const EXPANSION = "LLM Agent Sight In Kode";
5
5
  export declare const TAGLINE = "BLA blinds your agent. LASIK gives it its sight back.";
6
6
  export declare const REPO = "https://github.com/pktq/lasik";
package/dist/identity.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const NAME = "LASIK";
2
2
  export const PACKAGE = "lasik-agents";
3
- export const VERSION = "0.2.0";
3
+ export const VERSION = "0.2.1";
4
4
  export const EXPANSION = "LLM Agent Sight In Kode";
5
5
  export const TAGLINE = "BLA blinds your agent. LASIK gives it its sight back.";
6
6
  export const REPO = "https://github.com/pktq/lasik";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lasik-agents",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "LASIK (LLM Agent Sight In Kode): restores the sight of AI reverse-engineering agents blinded by BLA. Statically undoes every BLA shield (JS bundles, Electron/ASAR, WebAssembly, Python/.pyc, native ELF/PE/Mach-O, SQLite, models, APK/DEX, JVM, .NET, BEAM, EVM, PCAP and more) and prompt-firewalls the decoy text so REA can read them again.",
5
5
  "keywords": [
6
6
  "lasik",
@@ -20,7 +20,7 @@
20
20
  "cursor",
21
21
  "codex"
22
22
  ],
23
- "homepage": "https://lasik.dev",
23
+ "homepage": "https://github.com/pktq/lasik#readme",
24
24
  "repository": {
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/pktq/lasik.git"
@@ -61,7 +61,8 @@
61
61
  "bench": "node dist/cli.js bench",
62
62
  "prepublishOnly": "npm run build && npm test",
63
63
  "coverage:docs": "node scripts/bla-coverage.mjs docs",
64
- "coverage:check": "node scripts/bla-coverage.mjs check"
64
+ "coverage:check": "node scripts/bla-coverage.mjs check",
65
+ "bench:real": "node scripts/bench-real.mjs"
65
66
  },
66
67
  "dependencies": {
67
68
  "@babel/generator": "^8.1.0",