feihong-code 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/README.md +34 -13
  2. package/package.json +33 -7
package/README.md CHANGED
@@ -8,9 +8,15 @@
8
8
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue.svg)](https://typescriptlang.org)
9
9
  [![GitHub stars](https://img.shields.io/github/stars/wch887292/feihong-code?style=social)](https://github.com/wch887292/feihong-code/stargazers)
10
10
  [![GitHub issues](https://img.shields.io/github/issues/wch887292/feihong-code)](https://github.com/wch887292/feihong-code/issues)
11
+ [![npm version](https://img.shields.io/npm/v/feihong-code.svg)](https://www.npmjs.com/package/feihong-code)
12
+ [![npm downloads (monthly)](https://img.shields.io/npm/dm/feihong-code.svg)](https://www.npmjs.com/package/feihong-code)
13
+ [![npm downloads (total)](https://img.shields.io/npm/dt/feihong-code.svg)](https://www.npmjs.com/package/feihong-code)
11
14
  [![CI Status](https://github.com/wch887292/feihong-code/actions/workflows/ci.yml/badge.svg)](https://github.com/wch887292/feihong-code/actions)
12
15
 
13
- **🔍 关键词**:AI Agent · 代码生成 · SWE Agent · CLI · 多模型路由 · 企业级权限 · 离线可用
16
+ **🔍 关键词**:AI Agent · 代码生成 · SWE Agent · CLI · 多模型路由 · 企业级权限 · 离线可用
17
+
18
+ **📦 一键安装**:`npm install -g feihong-code` · 国内镜像:`npm install -g feihong-code --registry=https://registry.npmmirror.com`
19
+ **🚀 5 分钟上手**:`fhcode --version` → `fhcode chat`(离线模式免 API Key 即可对话)
14
20
 
15
21
 
16
22
  ---
@@ -68,6 +74,21 @@ export FH_ROLE=developer
68
74
 
69
75
  ---
70
76
 
77
+ ### 🆚 与其他工具对比
78
+
79
+ | 能力 | **fhcode(飞虹 Code)** | Claude Code | Cursor CLI | Aider | OpenCode |
80
+ |---|---|---|---|---|---|
81
+ | 终端原生 CLI | ✅ | ✅ | ⚠️(编辑器内) | ✅ | ✅ |
82
+ | 多模型路由(DeepSeek/通义/Ollama/OpenAI) | ✅ | ❌(仅 Anthropic) | ⚠️ | ⚠️ | ✅ |
83
+ | 离线 / 私有化(数据不出内网) | ✅(Ollama 本地) | ❌ | ❌ | ⚠️ | ✅ |
84
+ | 企业级 RBAC / 审计链 | ✅ | ❌ | ❌ | ❌ | ❌ |
85
+ | 全自动 SWE Agent(M0→M9.1) | ✅ | ✅ | ⚠️ | ✅ | ⚠️ |
86
+ | 多子代理并行(M2) | ✅ | ✅ | ❌ | ❌ | ❌ |
87
+ | 自我进化(M6) | ✅ | ❌ | ❌ | ❌ | ❌ |
88
+ | 开源可自托管(MIT) | ✅ | ❌ | ❌ | ✅ Apache-2.0 | ✅ MIT |
89
+
90
+ > 最适合:**数据不出内网**、需要**企业权限审计**、希望**混合调度多家大模型**的团队与个人开发者。
91
+
71
92
  ## 二、核心特性
72
93
 
73
94
  ### 🔥 主要亮点
@@ -118,18 +139,18 @@ node dist/cli/index.js --version
118
139
  bash install.sh
119
140
  ```
120
141
 
121
- ### 方式二:全局安装(已发布到 npm)
122
-
123
- ```bash
124
- # 官方源
125
- npm install -g feihong-code
126
- # 国内镜像(加速)
127
- npm install -g feihong-code --registry=https://registry.npmmirror.com
128
- fhcode --version # 直接调用 bin(Windows 下为 fhcode.cmd)
129
- ```
130
-
131
- > 要求 Node.js >= 18。入口 `dist/cli/index.js` 已带 `#!/usr/bin/env node` shebang。
132
- > 源码与问题反馈已迁移至 GitCode 镜像仓库:<https://gitcode.com/gcw_YuRlTP0G/feihong-code>
142
+ ### 方式二:全局安装(已发布到 npm)
143
+
144
+ ```bash
145
+ # 官方源
146
+ npm install -g feihong-code
147
+ # 国内镜像(加速)
148
+ npm install -g feihong-code --registry=https://registry.npmmirror.com
149
+ fhcode --version # 直接调用 bin(Windows 下为 fhcode.cmd)
150
+ ```
151
+
152
+ > 要求 Node.js >= 18。入口 `dist/cli/index.js` 已带 `#!/usr/bin/env node` shebang。
153
+ > 源码与问题反馈已迁移至 GitCode 镜像仓库:<https://gitcode.com/gcw_YuRlTP0G/feihong-code>
133
154
  ### 方式三:Docker
134
155
 
135
156
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feihong-code",
3
- "version": "0.2.1",
4
- "description": "飞虹 Code 终端 AI 编程智能体(对标 Muse Code),支持多模型路由、企业级 RBAC/审计、全自动 SWE Agent",
3
+ "version": "0.2.2",
4
+ "description": "fhcode(飞虹 Code)— 终端 AI 编程智能体,对标 Muse Code / Cursor CLI:多模型路由(DeepSeek/通义/Ollama/OpenAI)、企业级 RBAC 审计、全自动 SWE Agent、支持离线私有化",
5
5
  "bin": {
6
6
  "fhcode": "dist/cli/index.js"
7
7
  },
@@ -48,15 +48,41 @@
48
48
  "enterprise",
49
49
  "multi-tenant",
50
50
  "code-generation",
51
- "test-generation"
51
+ "test-generation",
52
+ "terminal",
53
+ "developer-tools",
54
+ "productivity",
55
+ "agentic",
56
+ "vibe-coding",
57
+ "code-review",
58
+ "refactor",
59
+ "automation",
60
+ "mcp",
61
+ "tool-use",
62
+ "claude",
63
+ "copilot",
64
+ "chatgpt",
65
+ "devops",
66
+ "agent-framework",
67
+ "ai-tools",
68
+ "coding-assistant",
69
+ "self-improving",
70
+ "offline-ai",
71
+ "ai-coding",
72
+ "command-line",
73
+ "software-development",
74
+ "llm-agent",
75
+ "nodejs-cli",
76
+ "code-assistant",
77
+ "agentic-ai"
52
78
  ],
53
- "author": "吴赐虹 <wch887292@gmail.com>",
79
+ "author": "吴赐虹 (晋江市飞虹智科技企业管理有限公司) <wch887292@gmail.com>",
54
80
  "license": "MIT",
55
81
  "repository": {
56
82
  "type": "git",
57
83
  "url": "https://gitcode.com/gcw_YuRlTP0G/feihong-code.git"
58
84
  },
59
- "homepage": "https://gitcode.com/gcw_YuRlTP0G/feihong-code#readme",
85
+ "homepage": "https://www.klai.top",
60
86
  "bugs": {
61
87
  "url": "https://gitcode.com/gcw_YuRlTP0G/feihong-code/issues"
62
88
  },
@@ -64,8 +90,8 @@
64
90
  "node": ">=18.0.0"
65
91
  },
66
92
  "funding": {
67
- "type": "github",
68
- "url": "https://github.com/sponsors/wch887292"
93
+ "type": "company",
94
+ "url": "https://www.klai.top"
69
95
  },
70
96
  "devDependencies": {
71
97
  "@types/express": "^4.17.21",