iflow-comm 1.0.0 → 1.0.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 (82) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +59 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.yml +37 -0
  3. package/IFLOW.md +384 -0
  4. package/README.md +31 -30
  5. package/README_CN.md +244 -0
  6. package/README_DE.md +243 -0
  7. package/README_ES.md +243 -0
  8. package/README_FR.md +243 -0
  9. package/README_JA.md +243 -0
  10. package/README_KO.md +243 -0
  11. package/README_RU.md +243 -0
  12. package/assets/example1_EN.jpg +0 -0
  13. package/assets/iflow-cli.jpg +0 -0
  14. package/assets/iflow-wechat.jpg +0 -0
  15. package/assets/iflow_start.jpg +0 -0
  16. package/assets/login.jpg +0 -0
  17. package/assets/profile-settings.jpg +0 -0
  18. package/assets/web-login.jpg +0 -0
  19. package/bin/iflow-comm.js +7 -6
  20. package/docs_cn/changelog.md +269 -0
  21. package/docs_cn/configuration/iflow.md +461 -0
  22. package/docs_cn/configuration/iflowignore.md +216 -0
  23. package/docs_cn/configuration/settings.md +643 -0
  24. package/docs_cn/examples/basic-usage.md +215 -0
  25. package/docs_cn/examples/best-practices.md +318 -0
  26. package/docs_cn/examples/hooks.md +1015 -0
  27. package/docs_cn/examples/index.md +138 -0
  28. package/docs_cn/examples/keyboard-shortcuts.md +115 -0
  29. package/docs_cn/examples/mcp.md +289 -0
  30. package/docs_cn/examples/subagent.md +416 -0
  31. package/docs_cn/examples/subcommand.md +649 -0
  32. package/docs_cn/examples/workflow.md +151 -0
  33. package/docs_cn/features/action.md +148 -0
  34. package/docs_cn/features/checkpointing.md +165 -0
  35. package/docs_cn/features/ide.md +96 -0
  36. package/docs_cn/features/interactive.md +337 -0
  37. package/docs_cn/features/memory-import.md +234 -0
  38. package/docs_cn/features/output-style.md +81 -0
  39. package/docs_cn/features/sandbox.md +32 -0
  40. package/docs_cn/features/slash-commands.md +206 -0
  41. package/docs_cn/features/suspending-resuming.md +85 -0
  42. package/docs_cn/features/telemetry.md +481 -0
  43. package/docs_cn/features/thinking.md +144 -0
  44. package/docs_cn/glossary.md +180 -0
  45. package/docs_cn/quickstart.md +224 -0
  46. package/docs_cn/scenarios.md +499 -0
  47. package/docs_cn/sdk/sdk-android.md +518 -0
  48. package/docs_cn/sdk/sdk-python.md +445 -0
  49. package/docs_en/changelog.md +271 -0
  50. package/docs_en/configuration/iflow.md +461 -0
  51. package/docs_en/configuration/iflowignore.md +216 -0
  52. package/docs_en/configuration/settings.md +644 -0
  53. package/docs_en/examples/basic-usage.md +215 -0
  54. package/docs_en/examples/best-practices.md +318 -0
  55. package/docs_en/examples/hooks.md +1015 -0
  56. package/docs_en/examples/index.md +138 -0
  57. package/docs_en/examples/keyboard-shortcuts.md +115 -0
  58. package/docs_en/examples/mcp.md +284 -0
  59. package/docs_en/examples/subagent.md +416 -0
  60. package/docs_en/examples/subcommand.md +649 -0
  61. package/docs_en/examples/workflow.md +156 -0
  62. package/docs_en/features/action.md +148 -0
  63. package/docs_en/features/checkpointing.md +167 -0
  64. package/docs_en/features/ide.md +97 -0
  65. package/docs_en/features/interactive.md +337 -0
  66. package/docs_en/features/memory-import.md +234 -0
  67. package/docs_en/features/output-style.md +81 -0
  68. package/docs_en/features/sandbox.md +32 -0
  69. package/docs_en/features/slash-commands.md +206 -0
  70. package/docs_en/features/suspending-resuming.md +85 -0
  71. package/docs_en/features/telemetry.md +481 -0
  72. package/docs_en/features/thinking.md +144 -0
  73. package/docs_en/glossary.md +180 -0
  74. package/docs_en/quickstart.md +222 -0
  75. package/docs_en/scenarios.md +499 -0
  76. package/docs_en/sdk/sdk-android.md +521 -0
  77. package/docs_en/sdk/sdk-python.md +447 -0
  78. package/index.js +14 -0
  79. package/install.sh +558 -0
  80. package/install_beta.sh +539 -0
  81. package/package.json +32 -1
  82. package/PUBLISH.md +0 -54
@@ -0,0 +1,59 @@
1
+ name: Bug Report
2
+ description: Report a bug to help us improve iFlow CLI
3
+ labels: ['kind/bug', 'status/need-triage']
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ > [!CAUTION]
9
+ > iFlow CLI is shutting down on April 17, 2026 (UTC+8). No new features or bug fixes will be released.
10
+ > See our [farewell post](https://vibex.iflow.cn/t/topic/4819) for details.
11
+
12
+ > [!IMPORTANT]
13
+ > Thanks for taking the time to fill out this bug report!
14
+ >
15
+ > Please search **[existing issues](https://github.com/iflow-ai/iflow-cli/issues)** to see if an issue already exists for the bug you encountered.
16
+
17
+ - type: textarea
18
+ id: problem
19
+ attributes:
20
+ label: What happened?
21
+ description: A clear and concise description of what the bug is.
22
+ validations:
23
+ required: true
24
+
25
+ - type: textarea
26
+ id: expected
27
+ attributes:
28
+ label: What did you expect to happen?
29
+ validations:
30
+ required: true
31
+
32
+ - type: textarea
33
+ id: info
34
+ attributes:
35
+ label: Client information
36
+ description: Please paste the full text from the `/about` command run from iFLow CLI. Also include which platform (macOS, Windows, Linux).
37
+ value: |
38
+ <details>
39
+
40
+ ```console
41
+ $ iflow /about
42
+ # paste output here
43
+ ```
44
+
45
+ </details>
46
+ validations:
47
+ required: true
48
+
49
+ - type: textarea
50
+ id: login-info
51
+ attributes:
52
+ label: Login information
53
+ description: Describe how you are logging in (e.g., iFlow Account, API key).
54
+
55
+ - type: textarea
56
+ id: additional-context
57
+ attributes:
58
+ label: Anything else we need to know?
59
+ description: Add any other context about the problem here.
@@ -0,0 +1,37 @@
1
+ name: Feature Request
2
+ description: Suggest an idea for this project
3
+ labels: ['kind/enhancement', 'status/need-triage']
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ > [!CAUTION]
9
+ > iFlow CLI is shutting down on April 17, 2026 (UTC+8). No new features or bug fixes will be released.
10
+ > See our [farewell post](https://vibex.iflow.cn/t/topic/4819) for details.
11
+
12
+ > [!IMPORTANT]
13
+ > Thanks for taking the time to suggest an enhancement!
14
+ >
15
+ > Please search **[existing issues](https://github.com/iflow-ai/iflow-cli/issues)** to see if a similar feature has already been requested.
16
+
17
+ - type: textarea
18
+ id: feature
19
+ attributes:
20
+ label: What would you like to be added?
21
+ description: A clear and concise description of the enhancement.
22
+ validations:
23
+ required: true
24
+
25
+ - type: textarea
26
+ id: rationale
27
+ attributes:
28
+ label: Why is this needed?
29
+ description: A clear and concise description of why this enhancement is needed.
30
+ validations:
31
+ required: true
32
+
33
+ - type: textarea
34
+ id: additional-context
35
+ attributes:
36
+ label: Additional context
37
+ description: Add any other context or screenshots about the feature request here.
package/IFLOW.md ADDED
@@ -0,0 +1,384 @@
1
+ # IFLOW.md
2
+
3
+ 此文件为 iFlow CLI 提供项目指导信息,帮助 AI 助手更好地理解和协作开发。
4
+
5
+ ## 项目概述
6
+
7
+ iFlow CLI 是一款直接在终端运行的强大 AI 助手,能够无缝分析代码仓库、执行编程任务、理解上下文需求,并通过自动化处理从简单的文件操作到复杂的工作流程,全面提升您的工作效率。
8
+
9
+ 本项目是 iFlow CLI 的官方仓库,包含安装脚本、多语言文档、资源文件和配置示例。
10
+
11
+ ## 核心特性
12
+
13
+ 1. **免费 AI 模型**:通过心流开放平台访问强大的免费 AI 模型,包括 Kimi K2、Qwen3 Coder、DeepSeek v3 等
14
+ 2. **灵活集成**:兼容 OpenAI 协议的模型提供商,支持切换使用 Claude、ChatGPT 等模型
15
+ 3. **工作流系统**:整合 agents、commands、MCP 工具创建完整的自动化工作流程
16
+ 4. **Hook 系统**:支持 9 种 Hook 类型,在特定事件发生时自动执行自定义命令
17
+ 5. **多模态支持**:支持图片粘贴理解,识别手稿并产出代码
18
+ 6. **IDE 集成**:支持 VS Code、JetBrains、Zed (ACP 协议) 查看和交互
19
+ 7. **对话管理**:支持历史对话保存、恢复和回滚(`iflow --resume`、`/chat` 命令)
20
+ 8. **心流开放市场**:一键安装 Sub Agent、MCP、Command、Workflow,所有组件均经过安全认证
21
+ 9. **国际化支持**:支持中文、英文、日文、韩文、法文、德文、西班牙文、俄文
22
+ 10. **自动升级**:自动检测最新版本并提示更新
23
+
24
+ ## 仓库结构
25
+
26
+ - `install.sh` / `install_beta.sh` - 安装脚本
27
+ - `README*.md` - 多语言文档(中文、英文、日文、韩文、法文、德文、西班牙文、俄文)
28
+ - `assets/` - 图片和截图
29
+ - `docs_cn/` - 中文文档
30
+ - `quickstart.md` - 快速开始指南
31
+ - `changelog.md` - 版本变更历史
32
+ - `glossary.md` - 术语词汇表
33
+ - `scenarios.md` - 使用场景
34
+ - `configuration/` - 配置相关文档
35
+ - `examples/` - 使用示例
36
+ - `features/` - 功能详解
37
+ - `sdk/` - SDK 文档
38
+ - `docs_en/` - 英文文档(结构同上)
39
+ - `Formula/` - Homebrew 安装配方
40
+ - `.github/` - GitHub 配置和 Issue 模板
41
+
42
+ ## 安装方法
43
+
44
+ ### 系统要求
45
+ - 操作系统:macOS 10.15+、Ubuntu 20.04+/Debian 10+,或 Windows 10+(使用 WSL 1、WSL 2 或 Git for Windows)
46
+ - 硬件:4GB+ 内存
47
+ - 软件:Node.js 22+
48
+ - 网络:需要互联网连接用于身份验证和 AI 处理
49
+
50
+ ### 快速安装
51
+
52
+ **macOS/Linux**
53
+ ```bash
54
+ # Homebrew 安装
55
+ brew tap iflow-ai/iflow-cli
56
+ brew install iflow-cli
57
+
58
+ # 一键安装脚本
59
+ bash -c "$(curl -fsSL https://gitee.com/iflow-ai/iflow-cli/raw/main/install.sh)"
60
+
61
+ # 使用 npm 安装
62
+ npm i -g iflow-comm@latest
63
+ ```
64
+
65
+ **Windows**
66
+ ```bash
67
+ # 1. 访问 https://nodejs.org/zh-cn/download 下载最新的 Node.js 安装程序
68
+ # 2. 运行安装程序安装 Node.js
69
+ # 3. 重启终端:CMD 或 PowerShell
70
+ # 4. 运行以下命令安装
71
+ npm install -g iflow-comm@latest
72
+ # 5. 运行 iflow-comm 启动
73
+ ```
74
+
75
+ ### 验证安装
76
+ ```bash
77
+ iflow-comm --version
78
+ ```
79
+
80
+ ### 卸载
81
+ ```bash
82
+ npm uninstall -g iflow-comm
83
+ ```
84
+
85
+ ## 身份验证
86
+
87
+ iFlow CLI 支持三种身份验证方式:
88
+
89
+ 1. **Login with iFlow(推荐)**:通过心流平台网页授权,享受完整功能(WebSearch、WebFetch、多模态、工具调用优化),令牌自动续期
90
+ 2. **心流 API Key**:适用于服务器环境,功能与第一种相同,但 API Key 有效期为 7 天
91
+ 3. **OpenAI Compatible API**:使用自有模型服务,不支持心流平台的 WebSearch、WebFetch 和多模态功能
92
+
93
+ ## 核心功能
94
+
95
+ ### 工作流系统
96
+ - 整合 agents、commands、MCP 工具创建完整的自动化工作流程
97
+ - 心流开放平台预置大量优秀工作流(小红书发文、深度研究、PPT 制作、流程图绘制等)
98
+ - 支持开发者工作流(GitHub spec、bmad、NioPD、ai-dev-task 等)
99
+ - 工作流默认安装在项目级别
100
+
101
+ ### Hook 系统
102
+ 支持 9 种 Hook 类型:
103
+ - **PreToolUse** - 工具执行前触发
104
+ - **PostToolUse** - 工具执行后触发
105
+ - **SetUpEnvironment** - 会话开始时环境设置
106
+ - **Stop** - 主会话结束时触发
107
+ - **SubagentStop** - 子代理会话结束时触发
108
+ - **SessionStart** - 会话开始时触发
109
+ - **SessionEnd** - 会话结束时触发
110
+ - **UserPromptSubmit** - 用户提交提示词前触发
111
+ - **Notification** - 发送通知时触发
112
+
113
+ ### 运行模式
114
+ 支持 4 种运行模式:
115
+ - **YOLO 模式** - 模型拥有最大权限,可执行任何操作
116
+ - **接受编辑模式** - 模型仅拥有文件修改权限
117
+ - **计划模式** - 先计划后执行
118
+ - **默认模式** - 模型无权限
119
+
120
+ ### 多模态支持
121
+ - 支持图片粘贴理解(Ctrl+V)
122
+ - 识别手稿并产出代码
123
+ - 支持读取 doc、excel、pdf 文件
124
+
125
+ ### IDE 集成
126
+ - **VS Code** - 自动安装插件
127
+ - **JetBrains** - 支持连接
128
+ - **Zed** - 支持 ACP 协议
129
+
130
+ ### 对话管理
131
+ - `iflow-comm --resume` - 恢复历史对话
132
+ - `iflow-comm --continue` - 继续上次对话
133
+ - `/chat` - 保存、恢复、删除对话检查点
134
+
135
+ ### 心流开放市场
136
+ - 一键安装 MCP 工具
137
+ - 一键安装 Sub Agent
138
+ - 一键安装自定义命令
139
+ - 一键安装工作流
140
+ - 所有组件均经过安全认证
141
+
142
+ ## 关键斜杠命令
143
+
144
+ ### 系统管理
145
+ - `/about` - 显示系统信息(版本、操作系统、模型版本等)
146
+ - `/auth` - 配置或更改身份验证提供商
147
+ - `/theme` - 自定义 CLI 外观主题
148
+ - `/model` - 更改正在使用的 AI 模型
149
+ - `/editor` - 配置首选的外部编辑器
150
+ - `/privacy` - 显示隐私通知和数据处理信息
151
+ - `/language` - 切换中英文界面
152
+
153
+ ### 会话控制
154
+ - `/chat` - 保存、恢复、删除对话检查点
155
+ - `/clear` - 清除屏幕并重置对话历史
156
+ - `/compress` - 使用 AI 将对话历史压缩为摘要
157
+ - `/memory` - 与 CLI 的内容系统交互
158
+ - `/restore` - 恢复到之前的检查点状态
159
+ - `/quit` - 退出 CLI 会话并显示统计信息
160
+
161
+ ### 工具集成
162
+ - `/ide` - 发现和连接到可用的 IDE 服务器
163
+ - `/ide-status` - 查询当前 IDE 连接状态
164
+ - `/ide-tool` - 访问特定的 IDE 集成工具
165
+ - `/mcp` - 管理 MCP 服务器、工具和身份验证
166
+ - `/tools` - 列出所有可用的内置 CLI 工具
167
+ - `/extensions` - 显示当前活动的扩展及版本
168
+
169
+ ### 开发辅助
170
+ - `/init` - 分析项目并创建定制的配置文件
171
+ - `/setup-github` - 配置 GitHub Actions 工作流
172
+ - `/directory` - 管理工作空间目录以获得项目上下文
173
+ - `/export` - 以各种格式导出对话历史
174
+ - `/copy` - 将最后的 AI 响应复制到剪贴板
175
+
176
+ ### 监控调试
177
+ - `/stats` - 监控会话使用情况和性能统计
178
+ - `/log` - 显示当前会话日志存储位置
179
+ - `/bug` - 提交带有系统信息的错误报告
180
+ - `/help` - 打开综合帮助对话框
181
+ - `/docs` - 在浏览器中打开完整文档
182
+
183
+ ### 特殊功能
184
+ - `/vim` - 切换 vim 风格按键绑定
185
+ - `/corgi` - 切换柯基主题 UI 模式(彩蛋)
186
+ - `/commands` - 管理和安装自定义命令
187
+ - `/agents` - 管理个人、项目和内置代理
188
+ - `/demo` - 交互式演示功能
189
+ - `/resume` - 恢复历史对话
190
+
191
+ ## @ 命令(文件引用)
192
+
193
+ 使用 `@` 符号引用文件或目录内容:
194
+ - `@<path_to_file_or_directory>` - 将文件或目录内容注入到提示中
195
+ - 支持自动补全和递归搜索
196
+
197
+ ## Shell 模式(!)
198
+
199
+ 使用 `!` 符号执行系统 shell 命令:
200
+ - `!<shell_command>` - 执行 shell 命令
201
+ - `!` - 切换 shell 模式
202
+
203
+ ## Sub Agent 系统
204
+
205
+ 使用 `$` 符号快速调用专业化 Agent:
206
+ - `$<agent-type> <task_description>` - 直接在当前对话中执行专业任务
207
+ - 支持的 Agent 类型:general-purpose、code-reviewer、frontend-developer、python-expert、data-scientist、doc-writer 等
208
+ - 支持通过心流开放市场安装更多 Agent
209
+
210
+ ## 配置文件
211
+
212
+ iFlow CLI 支持分层配置系统:
213
+
214
+ ### 配置层级(优先级从高到低)
215
+ 1. 命令行参数
216
+ 2. IFLOW 前缀环境变量
217
+ 3. 系统配置文件(`/etc/iflow-cli/settings.json` 或类似路径)
218
+ 4. 工作区配置文件(`./.iflow/settings.json`)
219
+ 5. 用户配置文件(`~/.iflow/settings.json`)
220
+ 6. 默认值
221
+
222
+ ### 环境变量支持
223
+ 所有 `settings.json` 中的配置项都可以通过环境变量设置,使用 `IFLOW_` 前缀:
224
+ - `IFLOW_apiKey` - API 密钥
225
+ - `IFLOW_baseUrl` - 基础 URL
226
+ - `IFLOW_modelName` - 模型名称
227
+ - `IFLOW_theme` - 主题设置
228
+ - 等等
229
+
230
+ ### 配置示例
231
+ ```json
232
+ {
233
+ "selectedAuthType": "iflow",
234
+ "apiKey": "your_api_key",
235
+ "baseUrl": "https://apis.iflow.cn/v1",
236
+ "modelName": "Qwen3-Coder",
237
+ "theme": "Default",
238
+ "hooks": {
239
+ "PreToolUse": [
240
+ {
241
+ "matcher": "Edit|Write",
242
+ "hooks": [
243
+ {
244
+ "type": "command",
245
+ "command": "echo 'File operation detected'"
246
+ }
247
+ ]
248
+ }
249
+ ]
250
+ }
251
+ }
252
+ ```
253
+
254
+ ## 文档结构
255
+
256
+ 详细的文档位于 `docs_cn/` 和 `docs_en/` 目录:
257
+
258
+ - **quickstart.md** - 5 分钟快速开始指南
259
+ - **changelog.md** - 版本更新历史
260
+ - **glossary.md** - 术语词汇表
261
+ - **scenarios.md** - 使用场景示例
262
+ - **configuration/** - 详细配置说明
263
+ - iflow.md - IFLOW.md 配置说明
264
+ - iflowignore.md - .iflowignore 配置
265
+ - settings.md - settings.json 完整配置
266
+ - **examples/** - 使用示例
267
+ - basic-usage.md - 基础用法
268
+ - best-practices.md - 最佳实践
269
+ - mcp.md - MCP 扩展系统
270
+ - subagent.md - Sub Agent 使用
271
+ - subcommand.md - 自定义命令
272
+ - workflow.md - 工作流系统
273
+ - hooks.md - Hook 配置
274
+ - keyboard-shortcuts.md - 键盘快捷键
275
+ - **features/** - 功能详解
276
+ - slash-commands.md - 斜杠命令详解
277
+ - interactive.md - 交互模式
278
+ - ide.md - IDE 集成
279
+ - checkpointing.md - 检查点功能
280
+ - suspending-resuming.md - 暂停和恢复
281
+ - telemetry.md - 遥测功能
282
+ - thinking.md - 思考模式
283
+ - output-style.md - 输出样式
284
+ - sandbox.md - 沙箱模式
285
+ - action.md - Action 功能
286
+ - memory-import.md - 记忆导入
287
+ - **sdk/** - SDK 文档
288
+ - sdk-python.md - Python SDK
289
+ - sdk-android.md - Android SDK
290
+
291
+ ## 架构概览
292
+
293
+ iFlow CLI 是基于 Node.js 构建的命令行工具,集成了多个 AI 模型和 MCP 服务器,提供强大的终端 AI 助手能力。
294
+
295
+ ### 核心组件
296
+ - **CLI 界面** - 基于 Terminal UI 的交互式界面
297
+ - **模型集成** - 支持心流平台和 OpenAI 协议的多种 AI 模型
298
+ - **MCP 客户端** - 用于连接和管理 MCP 服务器
299
+ - **Sub Agent 系统** - 智能任务分发和专业化处理
300
+ - **Hook 系统** - 事件驱动的自动化执行
301
+ - **工作流引擎** - 组件编排和自动化流程
302
+ - **IDE 集成** - VS Code、JetBrains、Zed 插件支持
303
+
304
+ ### 安装脚本功能
305
+ 1. 检测并安装 Node.js(如果未安装)
306
+ 2. 设置 npm 全局目录
307
+ 3. 安装 iFlow CLI 包
308
+ 4. 配置 MCP 服务器(如需要)
309
+ 5. 初始化用户配置
310
+
311
+ ### 多语言支持
312
+ - 通过 `docs_cn/` 和 `docs_en/` 目录提供完整的中文和英文文档
313
+ - CLI 界面支持中英文切换(`/language` 命令)
314
+ - 自动检测终端语言设置
315
+
316
+ ## 常见使用场景
317
+
318
+ ### 项目初始化
319
+ ```bash
320
+ cd your-project/
321
+ iflow-comm
322
+ > /init
323
+ > 分析项目结构并创建 IFLOW.md
324
+ ```
325
+
326
+ ### 代码开发
327
+ ```bash
328
+ iflow-comm
329
+ > 创建一个 React 组件,实现用户登录功能
330
+ ```
331
+
332
+ ### 代码审查
333
+ ```bash
334
+ iflow-comm
335
+ > $code-reviewer 对当前项目进行全面的代码审查
336
+ ```
337
+
338
+ ### 数据分析
339
+ ```bash
340
+ iflow-comm
341
+ > 分析 sales_data.csv 中的销售趋势,生成可视化图表
342
+ ```
343
+
344
+ ### 工作流使用
345
+ ```bash
346
+ # 安装 PPT 生成工作流
347
+ iflow workflow add "ppt-generator-v3-OzctqA"
348
+
349
+ # 使用工作流
350
+ iflow-comm
351
+ > /ppt-generator
352
+ ```
353
+
354
+ ## 故障排除
355
+
356
+ ### 安装问题
357
+ ```bash
358
+ # 检查 Node.js 版本
359
+ node --version # 需要 22+
360
+
361
+ # 检查网络连接
362
+ curl -I https://apis.iflow.cn/v1
363
+ ```
364
+
365
+ ### 认证问题
366
+ - 确保使用正确的认证方式
367
+ - 检查 API 密钥或令牌是否有效
368
+ - 验证网络连接是否正常
369
+
370
+ ### 命令不响应
371
+ - 使用 `Ctrl+C` 中断当前操作
372
+ - 运行 `/clear` 清空上下文
373
+ - 重启 CLI:`/quit` 后重新运行 `iflow-comm`
374
+
375
+ ## 社区和支持
376
+
377
+ - **GitHub Issues**:[提交问题](https://github.com/iflow-ai/iflow-cli/issues)
378
+ - **心流开放平台**:[https://platform.iflow.cn/](https://platform.iflow.cn/)
379
+ - **文档中心**:[https://platform.iflow.cn/docs](https://platform.iflow.cn/docs)
380
+
381
+ ## 版本信息
382
+
383
+ 当前版本信息请使用 `iflow-comm --version` 或 `/about` 命令查看。
384
+ 详细的版本更新历史请参考 `docs_cn/changelog.md` 或 `docs_en/changelog.md`。
package/README.md CHANGED
@@ -81,7 +81,7 @@ brew install iflow-cli
81
81
 
82
82
  * Using Node.js installation
83
83
  ```shell
84
- npm i -g @iflow-ai/iflow-cli
84
+ npm i -g iflow-comm
85
85
  ```
86
86
 
87
87
  This command automatically installs all necessary dependencies for your terminal.
@@ -90,8 +90,8 @@ This command automatically installs all necessary dependencies for your terminal
90
90
  1. Go to https://nodejs.org/en/download to download the latest Node.js installer
91
91
  2. Run the installer to install Node.js
92
92
  3. Restart your terminal: CMD or PowerShell
93
- 4. Run `npm install -g @iflow-ai/iflow-cli` to install iFlow CLI
94
- 5. Run `iflow` to start iFlow CLI
93
+ 4. Run `npm install -g iflow-comm` to install iFlow CLI
94
+ 5. Run `iflow-comm` to start iFlow CLI
95
95
 
96
96
  If you are in China Mainland, you can use the following command to install iFlow CLI:
97
97
  1. Go to https://cloud.iflow.cn/iflow-cli/nvm-setup.exe to download the latest nvm installer
@@ -100,44 +100,44 @@ If you are in China Mainland, you can use the following command to install iFlow
100
100
  4. Run `nvm node_mirror https://npmmirror.com/mirrors/node/` and `nvm npm_mirror https://npmmirror.com/mirrors/npm/`
101
101
  5. Run `nvm install 22` to install Node.js 22
102
102
  6. Run `nvm use 22` to use Node.js 22
103
- 7. Run `npm install -g @iflow-ai/iflow-cli` to install iFlow CLI
104
- 8. Run `iflow` to start iFlow CLI
103
+ 7. Run `npm install -g iflow-comm` to install iFlow CLI
104
+ 8. Run `iflow-comm` to start iFlow CLI
105
105
 
106
106
  ## 🗑️ Uninstall
107
107
  ```shell
108
- npm uninstall -g @iflow-ai/iflow-cli
108
+ npm uninstall -g iflow-comm
109
109
  ```
110
110
 
111
111
  ## 🔑 Authentication
112
112
 
113
- iFlow CLI supports OpenAI-compatible APIs for authentication and model access.
113
+ iFlow offers two authentication options:
114
114
 
115
- To configure your API credentials, edit the settings file in `~/.iflow/settings.json`:
115
+ 1. **Recommended**: Use iFlow's native authentication
116
+ 2. **Alternative**: Connect via OpenAI-compatible APIs
116
117
 
117
- ```json
118
- {
119
- "selectedAuthType": "openai-compatible",
120
- "apiKey": "your_api_key",
121
- "baseUrl": "https://api.openai.com/v1",
122
- "modelName": "gpt-4"
123
- }
124
- ```
118
+ ![iFlow CLI Login](./assets/login.jpg)
125
119
 
126
- You can also set these values using environment variables:
120
+ Choose option 1 to login directly, which will open iFlow account authentication in a web page. After completing authentication, you can use it for free.
127
121
 
128
- ```bash
129
- export IFLOW_apiKey="your_api_key"
130
- export IFLOW_baseUrl="https://api.openai.com/v1"
131
- export IFLOW_modelName="gpt-4"
132
- iflow
133
- ```
122
+ ![iFlow CLI Web Login](./assets/web-login.jpg)
123
+
124
+ If you are in an environment like a server where you cannot open a web page, please use option 2 to login.
125
+
126
+ To get your API key:
127
+ 1. Register for an iFlow account
128
+ 2. Go to your profile settings or click [this direct link](https://iflow.cn/?open=setting)
129
+ 3. Click "Reset" in the pop-up dialog to generate a new API key
130
+
131
+ ![iFlow Profile Settings](./assets/profile-settings.jpg)
132
+
133
+ After generating your key, paste it into the terminal prompt to complete setup.
134
134
 
135
135
  ## 🚀 Getting Started
136
136
 
137
137
  To launch iFlow CLI, navigate to your workspace in the terminal and type:
138
138
 
139
139
  ```shell
140
- iflow
140
+ iflow-comm
141
141
  ```
142
142
 
143
143
  ### Starting New Projects
@@ -146,7 +146,7 @@ For new projects, simply describe what you want to create:
146
146
 
147
147
  ```shell
148
148
  cd new-project/
149
- iflow
149
+ iflow-comm
150
150
  > Create a web-based Minecraft game using HTML
151
151
  ```
152
152
 
@@ -156,7 +156,7 @@ For existing codebases, begin with the `/init` command to help iFlow understand
156
156
 
157
157
  ```shell
158
158
  cd project1/
159
- iflow
159
+ iflow-comm
160
160
  > /init
161
161
  > Analyze the requirements according to the PRD document in requirement.md file, and output a technical document, then implement the solution.
162
162
  ```
@@ -229,10 +229,11 @@ Here is a settings demo file:
229
229
  ```json
230
230
  {
231
231
  "theme": "Default",
232
- "selectedAuthType": "openai-compatible",
233
- "apiKey": "your_api_key",
234
- "baseUrl": "https://api.openai.com/v1",
235
- "modelName": "gpt-4"
232
+ "selectedAuthType": "iflow",
233
+ "apiKey": "your iflow key",
234
+ "baseUrl": "https://apis.iflow.cn/v1",
235
+ "modelName": "Qwen3-Coder",
236
+ "searchApiKey": "your iflow key"
236
237
  }
237
238
  ```
238
239