fnva 0.0.13 → 0.0.14

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/bin/fnva.js CHANGED
@@ -43,6 +43,11 @@ function buildBinaryPath() {
43
43
  return null;
44
44
  }
45
45
 
46
+ // 如果设置了 FNVA_AUTO_MODE,自动使用 Node.js 模式
47
+ if (process.env.FNVA_AUTO_MODE === '1') {
48
+ return null;
49
+ }
50
+
46
51
  const platform = resolvePlatform();
47
52
  const binaryCandidates = [];
48
53
 
@@ -379,7 +384,7 @@ function run() {
379
384
  const binaryPath = buildBinaryPath();
380
385
 
381
386
  if (!binaryPath) {
382
- if (process.env.FNVA_SKIP_NATIVE === '1') {
387
+ if (process.env.FNVA_SKIP_NATIVE === '1' || process.env.FNVA_AUTO_MODE === '1') {
383
388
  // 纯 Node.js 模式 - 实现基本的环境切换功能
384
389
  const args = process.argv.slice(2);
385
390
  handleNodeOnlyMode(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fnva",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "跨平台环境切换工具,支持 Java 和 LLM 环境配置",
5
5
  "author": "protagonistss",
6
6
  "license": "MIT",
package/platforms/fnva CHANGED
Binary file
Binary file