@syferit/cli 1.0.2 → 2.0.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 +42 -33
- package/dist/bin.js +535 -59
- package/dist/index.js +878 -98
- package/dist/setup.js +1264 -0
- package/dist/updater.js +1871 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://syferit.soltrixstudios.com">
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="https://syferit.soltrixstudios.com/icon.png" alt="Syferit Logo" width="80" height="80" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<h1 align="center">@syferit/cli</h1>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<strong>Universal Binary &
|
|
10
|
+
<strong>Universal Binary & 15+ Language Code Defense Hardener (v2.0.0)</strong><br>
|
|
11
11
|
<em>“Don't Just Ship it. Syferit.”</em>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
|
-
> Command-line tool for protecting
|
|
14
|
+
> Command-line tool for protecting Web (JS/TS), Mobile (Kotlin, Java, Swift, Dart), C# (.NET/Unity), WebAssembly, Python 3, C/C++, Rust, and LLVM IR. Part of the **[Syferit](https://syferit.soltrixstudios.com)** framework by **[Soltrix Studios](https://soltrixstudios.com)**.
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
+
### Option 1: Standalone Zero-Node Native Binaries (No Node.js Required)
|
|
21
|
+
```powershell
|
|
22
|
+
# Windows (PowerShell — downloads syferit.exe & registers PATH automatically)
|
|
23
|
+
irm https://syferit.soltrixstudios.com/install.ps1 | iex
|
|
24
|
+
```
|
|
25
|
+
```bash
|
|
26
|
+
# macOS & Linux (downloads syferit binary & registers PATH automatically)
|
|
27
|
+
curl -fsSL https://syferit.soltrixstudios.com/install.sh | sh
|
|
28
|
+
```
|
|
29
|
+
Or download `syferit.exe`, `syferit-linux-x64`, or `syferit-macos-arm64` directly from [GitHub Releases](https://github.com/soltrix-studios/syferit/releases/latest) (verified via `SHA256SUMS.txt`).
|
|
30
|
+
|
|
31
|
+
### Option 2: npm / npx
|
|
20
32
|
```bash
|
|
21
33
|
npm i -g @syferit/cli
|
|
22
34
|
```
|
|
@@ -24,44 +36,41 @@ npm i -g @syferit/cli
|
|
|
24
36
|
## Quickstart
|
|
25
37
|
|
|
26
38
|
```bash
|
|
27
|
-
#
|
|
28
|
-
syferit
|
|
39
|
+
# Create starter syferit.config.json
|
|
40
|
+
syferit init
|
|
29
41
|
|
|
30
|
-
#
|
|
31
|
-
syferit protect
|
|
42
|
+
# Preview matched files safely without writing changes
|
|
43
|
+
syferit protect ./dist --dry-run
|
|
32
44
|
|
|
33
|
-
# Protect
|
|
34
|
-
syferit protect ./dist -
|
|
45
|
+
# Protect a directory with v2.0 Quantum RNS-ARX preset
|
|
46
|
+
syferit protect ./dist --out ./dist-protected --preset v2-quantum-rns
|
|
35
47
|
|
|
36
|
-
# Protect
|
|
37
|
-
syferit protect ./
|
|
48
|
+
# Protect C# (.NET/Unity), Android (Kotlin/Java), iOS (Swift), or Flutter (Dart)
|
|
49
|
+
syferit protect ./Assets/Scripts -o ./Assets/Scripts-Protected --preset v2-quantum-rns
|
|
50
|
+
|
|
51
|
+
# Exclude third-party vendor libraries or minified bundles
|
|
52
|
+
syferit protect ./src -o ./build -e vendor "*.min.js" --preset v2-quantum-rns
|
|
53
|
+
|
|
54
|
+
# Guided PATH registration (for manually downloaded binaries) & seamless upgrade
|
|
55
|
+
syferit setup
|
|
56
|
+
syferit upgrade
|
|
38
57
|
```
|
|
39
58
|
|
|
40
59
|
## CLI Reference
|
|
41
60
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
| Flag | Description | Default |
|
|
61
|
+
| Command / Flag | Description | Default |
|
|
45
62
|
| :--- | :--- | :--- |
|
|
46
|
-
| `[target]
|
|
47
|
-
| `-
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
| `-
|
|
52
|
-
|
|
|
53
|
-
| `-
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
57
|
-
> [!TIP]
|
|
58
|
-
> **Smart Collision Avoidance:** If you pass `-p standard` or `-p maximum` (thinking `-p` was preset), Syferit automatically detects the preset value and routes it to `--preset` without error.
|
|
59
|
-
|
|
60
|
-
## Features
|
|
61
|
-
|
|
62
|
-
- **Adversarial Resilience:** Specifically designed to defeat autonomous AI reverse-engineering agents, LLM-assisted decompilers, and MCP bridge tools.
|
|
63
|
-
- **Provable Equivalence:** Retains 100% deterministic execution behavior while maximizing structural and algorithmic entropy.
|
|
64
|
-
- **Zero Runtime Dependencies:** Lean and production-ready for mission-critical deployments.
|
|
63
|
+
| `protect [target]`, `-t, --target <path>` | File or directory to protect (defaults to `syferit.config.json` target) | *(Required)* |
|
|
64
|
+
| `-o, --out, --output <path>` | Destination output path (in-place overwrite if omitted) | *(In-place)* |
|
|
65
|
+
| `--preset <preset>` | Defense preset: `standard`, `hardened`, `maximum`, or `v2-quantum-rns` | `'hardened'` |
|
|
66
|
+
| `-d, --domain, -p, --profile <profile>` | Domain profile: `saas`, `fintech`, `security`, `gaming` | `'saas'` |
|
|
67
|
+
| `-s, --seed <seed>` | Deterministic seed for reproducible builds | *(CSPRNG UUIDv4)* |
|
|
68
|
+
| `-e, --exclude <patterns...>` | Exclude folder/glob patterns (skips `node_modules`, `obj`, `target`, `.venv` automatically) | `[]` |
|
|
69
|
+
| `--dry-run` | Preview matched files without modifying any files | `false` |
|
|
70
|
+
| `-q, --quiet` | Suppress terminal banner and progress stream | `false` |
|
|
71
|
+
| `init [-f, --force]` | Generate a starter `syferit.config.json` configuration file | `false` |
|
|
72
|
+
| `setup [-y, --yes]` | Install standalone binary to `~/.syferit/bin` and register system `PATH` | Interactive |
|
|
73
|
+
| `upgrade [--check]` | Seamlessly self-update to the latest release | In-place |
|
|
65
74
|
|
|
66
75
|
## Documentation & Support
|
|
67
76
|
|