rskim 0.9.5 → 2.0.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 +16 -5
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -67,11 +67,12 @@ skim --clear-cache
|
|
|
67
67
|
|
|
68
68
|
## Features
|
|
69
69
|
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
70
|
+
- **12 Languages**: TypeScript, JavaScript, Python, Rust, Go, Java, C, C++, Markdown, JSON, YAML, TOML
|
|
71
|
+
- **5 Transformation Modes**: Structure, Signatures, Types, Minimal, Full
|
|
72
72
|
- **Fast**: 14.6ms for 3000-line files (3x faster than target)
|
|
73
73
|
- **Cached**: 40-50x speedup on repeated processing (enabled by default)
|
|
74
74
|
- **Multi-file**: Glob patterns with parallel processing (`skim 'src/**/*.ts'`)
|
|
75
|
+
- **Token Budget**: Cascade through modes to fit a target token count (`--tokens N`)
|
|
75
76
|
- **Token Stats**: Show reduction statistics with `--show-stats`
|
|
76
77
|
- **Streaming**: Outputs to stdout for pipe workflows
|
|
77
78
|
- **Safe**: Built-in DoS protections
|
|
@@ -89,9 +90,13 @@ skim <FILE>
|
|
|
89
90
|
```bash
|
|
90
91
|
Options:
|
|
91
92
|
-m, --mode <MODE> Transformation mode [default: structure]
|
|
92
|
-
[possible values: structure, signatures, types, full]
|
|
93
|
-
-l, --language <LANGUAGE> Override language detection
|
|
94
|
-
[possible values: typescript, javascript, python, rust, go, java
|
|
93
|
+
[possible values: structure, signatures, types, minimal, full]
|
|
94
|
+
-l, --language <LANGUAGE> Override language detection (alias: --lang)
|
|
95
|
+
[possible values: typescript, javascript, python, rust, go, java,
|
|
96
|
+
c, cpp, markdown, json, yaml, toml]
|
|
97
|
+
--filename <PATH> Hint filename for stdin language detection
|
|
98
|
+
--tokens <N> Target token budget (cascades through modes to fit)
|
|
99
|
+
--max-lines <N> Maximum output lines (AST-aware truncation)
|
|
95
100
|
-j, --jobs <JOBS> Number of parallel jobs [default: number of CPUs]
|
|
96
101
|
--no-header Don't print file path headers for multi-file output
|
|
97
102
|
--no-cache Disable caching (caching is enabled by default)
|
|
@@ -234,6 +239,12 @@ cat *.py | skim - --language=python
|
|
|
234
239
|
| Rust | `.rs` | ✅ |
|
|
235
240
|
| Go | `.go` | ✅ |
|
|
236
241
|
| Java | `.java` | ✅ |
|
|
242
|
+
| C | `.c`, `.h` | ✅ |
|
|
243
|
+
| C++ | `.cpp`, `.hpp`, `.cc`, `.hh`, `.cxx`, `.hxx` | ✅ |
|
|
244
|
+
| Markdown | `.md`, `.markdown` | ✅ |
|
|
245
|
+
| JSON | `.json` | ✅ |
|
|
246
|
+
| YAML | `.yaml`, `.yml` | ✅ |
|
|
247
|
+
| TOML | `.toml` | ✅ |
|
|
237
248
|
|
|
238
249
|
## Performance
|
|
239
250
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rskim",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Smart code reader - streaming code transformation for AI agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"node": ">=16"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@rskim/cli-darwin-arm64": "0.
|
|
38
|
-
"@rskim/cli-darwin-x64": "0.
|
|
39
|
-
"@rskim/cli-linux-arm64": "0.
|
|
40
|
-
"@rskim/cli-linux-x64": "0.
|
|
41
|
-
"@rskim/cli-linux-arm64-musl": "0.
|
|
42
|
-
"@rskim/cli-linux-x64-musl": "0.
|
|
43
|
-
"@rskim/cli-win32-x64": "0.
|
|
37
|
+
"@rskim/cli-darwin-arm64": "2.0.0",
|
|
38
|
+
"@rskim/cli-darwin-x64": "2.0.0",
|
|
39
|
+
"@rskim/cli-linux-arm64": "2.0.0",
|
|
40
|
+
"@rskim/cli-linux-x64": "2.0.0",
|
|
41
|
+
"@rskim/cli-linux-arm64-musl": "2.0.0",
|
|
42
|
+
"@rskim/cli-linux-x64-musl": "2.0.0",
|
|
43
|
+
"@rskim/cli-win32-x64": "2.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|