fnva 0.0.55 → 0.0.57

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
@@ -1,41 +1,58 @@
1
+ <div align="center">
2
+
1
3
  # fnva - Fast Environment Version Alter
2
4
 
3
- [![npm version](https://img.shields.io/npm/v/fnva)](https://www.npmjs.com/package/fnva) [![crates.io](https://img.shields.io/crates/v/fnva)](https://crates.io/crates/fnva) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
+ **Fast, cross-platform environment version switcher**
4
6
 
5
- [中文文档](README_zh.md) · [Full English](README_en.md) · [Docs](docs/)
7
+ [中文文档](README_zh.md) · [Architecture](docs/architecture/core-design.md) · [Releases](https://github.com/Protagonistss/fnva/releases)
6
8
 
7
- Cross-platform environment switcher for Java, Claude Code (CC), and LLM setups. Rust single binary with fast startup and zero runtime dependencies.
9
+ [![npm version](https://img.shields.io/npm/v/fnva)](https://www.npmjs.com/package/fnva)
10
+ [![crates.io](https://img.shields.io/crates/v/fnva)](https://crates.io/crates/fnva)
11
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8
12
 
9
- ## Install
13
+ <!-- TODO: Add demo.gif here -->
10
14
 
11
- - npm: `npm install -g fnva`
12
- - Cargo: `cargo install fnva`
13
- - Binary: download from [Releases](https://github.com/Protagonistss/fnva/releases) and add to `PATH`.
15
+ </div>
14
16
 
15
- ## Quick start
17
+ fnva is a cross-platform environment switcher for Java, Claude Code (CC), and general LLM setups. Written in Rust, it starts instantly, has zero runtime dependencies, and works via shell snippets without background daemons.
16
18
 
17
- - Init shell (Bash/Zsh): `eval "$(fnva env env --shell bash)"`
18
- PowerShell: `fnva env env --shell powershell | Out-String | Invoke-Expression`
19
- Fish: `fnva env env --shell fish | source`
20
- - Scan Java: `fnva java scan`
21
- - Switch Java for current session: `fnva java use jdk-17` (with shell integration)
22
- - Switch CC profile: `fnva cc use glmcc` (with shell integration)
23
- - New terminals auto-restore your last active environment
19
+ ## Core Features
24
20
 
25
- ## What it does
21
+ - **Fast & Zero Dependencies**: Single static binary.
22
+ - 🔄 **Session & Global Switching**: Per-shell activation and global defaults.
23
+ - 🐚 **Broad Shell Support**: PowerShell, Bash, Zsh, Fish, CMD.
24
+ - 🧠 **Auto-restore**: Opening a new terminal automatically restores your last active environment.
25
+ - ☕ **Smart Java Management**: Scan and dedupe local JDKs.
26
+ - 🤖 **Unified LLM Setup**: Configure LLM API keys in one place.
26
27
 
27
- - Manages multiple Java, CC, and generic LLM configurations.
28
- - Generates shell snippets to activate environments per session or by default.
29
- - **Auto-restore** — new terminals automatically restore the last active CC/Java environment.
30
- - Stores config at `~/.fnva/config.toml` (Windows: `%USERPROFILE%\.fnva\config.toml`).
31
- - Ships as a single binary; no background daemon.
28
+ ## Documentation Navigation
32
29
 
33
- ## Build/test locally
30
+ - [Core Architecture](docs/architecture/core-design.md) (Chinese)
31
+ - [Roadmap](docs/development/roadmap.md) (Chinese)
32
+ - [Contributing](docs/development/contributing.md) (Chinese)
33
+ - [Shell Integration Guide](docs/user-guide/shell-integration.md)
34
34
 
35
+ ## Installation
36
+
37
+ ```bash
38
+ # npm (recommended)
39
+ npm install -g fnva
40
+
41
+ # Cargo
42
+ cargo install fnva
35
43
  ```
36
- cargo fmt && cargo clippy --all-targets -- -D warnings
37
- cargo test
38
- cargo build --release
39
- ```
40
44
 
41
- For platform bundles: `npm run build:platforms`
45
+ Or download from [Releases](https://github.com/Protagonistss/fnva/releases) and add to `PATH`.
46
+
47
+ ## Quick Start
48
+
49
+ - Shell Integration: `eval "$(fnva env env --shell bash)"`
50
+ - Scan Java: `fnva java scan`
51
+ - Switch Java: `fnva java use jdk-17` (with shell integration)
52
+ - Switch CC profile: `fnva cc use glmcc`
53
+
54
+ ## Configuration
55
+ Config is stored at `~/.fnva/config.toml` (Windows: `%USERPROFILE%\.fnva\config.toml`).
56
+
57
+ ## License
58
+ MIT License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnva",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "description": "跨平台环境切换工具,支持 Java 和 LLM 环境配置",
5
5
  "author": "protagonistss",
6
6
  "license": "MIT",
Binary file
Binary file
Binary file
Binary file
Binary file