niumagents-cli 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niumagents-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "AI Code Agent",
5
5
  "type": "module",
6
6
  "main": "dist/nium.js",
@@ -12,9 +12,7 @@
12
12
  "dist/**/*.js",
13
13
  "dist/**/*.md",
14
14
  "dist/**/*.LICENSE.txt",
15
- "dist/src/agent/builtin-agents/configs/**/*.md",
16
15
  "bin/",
17
- "examples/",
18
16
  "README.md",
19
17
  ".niumignore"
20
18
  ],
@@ -1,6 +0,0 @@
1
- # Nium-coder 环境变量配置示例
2
- # 将此文件复制到 .nium/.env 并根据需要修改
3
-
4
- # LLM配置
5
- USE_LLM_DISCLOSURE=true
6
- USE_LLM_SUMMARY=true
@@ -1,43 +0,0 @@
1
- # niumagents-cli 忽略文件示例
2
- # 此文件定义了在代码检索时应该忽略的文件和目录
3
- # 语法与.gitignore类似
4
-
5
- # 忽略node_modules目录
6
- node_modules/
7
-
8
- # 忽略构建输出目录
9
- dist/
10
- build/
11
-
12
- # 忽略所有的日志文件
13
- *.log
14
- *.log.*
15
-
16
- # 忽略IDE相关文件
17
- .vscode/
18
- .idea/
19
- *.suo
20
- *.ntvs*
21
- *.njsproj
22
- *.sln
23
- *.sw?
24
-
25
- # 忽略测试覆盖率报告
26
- coverage/
27
- .nyc_output/
28
-
29
- # 忽略环境变量文件
30
- .env
31
- .env.local
32
- .env.*.local
33
-
34
- # 忽略特定的配置文件
35
- config.local.json
36
-
37
- # 使用通配符忽略多个目录
38
- */tmp/
39
-
40
- # 忽略所有隐藏文件和目录
41
- .*
42
-
43
- # 注意:.niumignore文件本身不会被忽略,除非显式添加到忽略列表中
@@ -1,70 +0,0 @@
1
- ---
2
- name: commit-helper
3
- description: Git提交信息助手,帮助生成规范的commit message
4
- keywords: commit, git, 提交, commit message, 提交信息, git commit, changelog
5
- ---
6
-
7
- 你是一位Git提交信息助手。你的任务是帮助用户生成清晰、规范的commit message。
8
-
9
- ## 核心职责
10
-
11
- 1. **分析代码变更**:理解用户修改了什么代码
12
- 2. **生成提交信息**:根据变更内容生成符合规范的commit message
13
- 3. **遵循约定**:使用常见的commit message规范(如Conventional Commits)
14
-
15
- ## Commit Message 规范
16
-
17
- 使用以下格式:
18
-
19
- ```
20
- <type>(<scope>): <subject>
21
-
22
- <body>
23
-
24
- <footer>
25
- ```
26
-
27
- ### Type(类型)
28
-
29
- - `feat`: 新功能
30
- - `fix`: 修复bug
31
- - `docs`: 文档变更
32
- - `style`: 代码格式调整(不影响功能)
33
- - `refactor`: 重构代码
34
- - `test`: 添加或修改测试
35
- - `chore`: 构建过程或辅助工具的变动
36
-
37
- ### 示例
38
-
39
- ```
40
- feat(user): 添加用户登录功能
41
-
42
- - 实现用户名密码登录
43
- - 添加JWT token认证
44
- - 创建登录API接口
45
-
46
- Closes #123
47
- ```
48
-
49
- ```
50
- fix(api): 修复用户查询接口返回错误
51
-
52
- 修复当用户ID不存在时返回500错误的问题,
53
- 现在正确返回404状态码。
54
-
55
- Fixes #456
56
- ```
57
-
58
- ## 工作流程
59
-
60
- 1. **查看变更**:使用 `shell("git diff")` 或 `shell("git status")` 查看代码变更
61
- 2. **分析变更**:理解修改的内容和目的
62
- 3. **生成信息**:根据变更生成规范的commit message
63
- 4. **展示给用户**:将生成的commit message展示给用户,供其参考或直接使用
64
-
65
- ## 注意事项
66
-
67
- - Subject(主题)行不超过50个字符
68
- - Body(正文)每行不超过72个字符
69
- - 使用现在时态("添加"而不是"添加了")
70
- - 中文和英文都可以,但保持一致性
@@ -1,31 +0,0 @@
1
- {
2
- "models": {
3
- "defaultModel": {
4
- "apiKey": "your-api-key-here",
5
- "baseURL": "https://api.openai.com/v1",
6
- "model": "gpt-4o",
7
- "provider": "openai",
8
- "maxToken": 128000
9
- },
10
- "liteModel": {
11
- "apiKey": "your-api-key-here",
12
- "baseURL": "https://api.openai.com/v1",
13
- "model": "gpt-3.5-turbo",
14
- "provider": "openai",
15
- "maxToken": 16385
16
- }
17
- },
18
- "mcpServers": [
19
- {
20
- "name": "example-http-server",
21
- "description": "Example HTTP MCP server",
22
- "transport": "http",
23
- "url": "http://localhost:3000",
24
- "headers": {
25
- "Authorization": "Bearer your-token-here"
26
- },
27
- "timeout": 30000,
28
- "enabled": false
29
- }
30
- ]
31
- }
@@ -1,3 +0,0 @@
1
- # 项目约定文件
2
-
3
- - 使用中文回复所有问题