@validflow/ccneed-cli 0.1.0 → 0.1.1

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,126 +1,118 @@
1
1
  <div align="center">
2
- <img src="assets/ccneed-logo.png" alt="CCNeed:拿着放大镜的白色小河马" width="320">
2
+ <img src="https://raw.githubusercontent.com/validflow/ccneed-cli/main/assets/ccneed-logo.png" alt="CCNeed mascot holding a magnifying glass" width="320">
3
3
  <h1>CCNeed CLI</h1>
4
- <p>在你自己的 Agent 或终端中使用 CCNeed。</p>
4
+ <p>Run research with CCNeed from your own AI agent or terminal.</p>
5
+ <p><a href="README.zh.md">中文</a> | <a href="README.md">English</a></p>
5
6
  <p>
6
- <a href="https://ccneed.ai">官网</a> ·
7
- <a href="INSTALL.md">安装指南</a> ·
8
- <a href="skills/ccneed/SKILL.md">Skill</a> ·
9
- <a href="CONTRIBUTING.md">参与贡献</a> ·
10
- <a href="https://github.com/validflow/ccneed-cli/issues">反馈</a>
7
+ <a href="https://ccneed.ai">Website</a> ·
8
+ <a href="INSTALL.md">Installation guide</a> ·
9
+ <a href="skills/ccneed/SKILL.md">Agent Skill</a> ·
10
+ <a href="https://github.com/validflow/ccneed-cli/issues">Issues</a>
11
11
  </p>
12
12
  </div>
13
13
 
14
- 把研究任务交给 CCNeed 云端执行,继续在你自己的 Agent 里查看进度、回答确认问题、拿回报告。
14
+ CCNeed runs long research tasks in the cloud. Its CLI lets you submit work, follow progress, answer questions, and bring reports back into the agent you already use. The CLI and its companion Skill are installed together.
15
15
 
16
- 首个正式版为 `0.1.0`。确认 npm 上已有 `@validflow/ccneed-cli@latest` 后,按 [安装指南](INSTALL.md) 安装。CLI 可以独立发布;部分云端命令仍取决于 Club 正式环境的接口部署进度。
16
+ > Some cloud commands depend on the corresponding CCNeed service APIs being available in production.
17
17
 
18
- ## 安装
18
+ ## Install
19
19
 
20
- 需要 Node.js 22.14+ 和 npm;通过 npm 安装时无需安装 Go 或编译源码。
21
-
22
- 在自己的电脑上一次安装 CLI 和配套 Skill。将 `AGENT` 换成你使用的 Agent 类型(`codex`、`workbuddy` 或 `claude`):
20
+ Node.js 22.14+ and npm are required. Choose your agent: `codex`, `workbuddy` (local coding environment), or `claude`.
23
21
 
24
22
  ```bash
25
- npx @validflow/ccneed-cli@latest install --agent AGENT
23
+ npx @validflow/ccneed-cli@latest install --agent codex
26
24
  ```
27
25
 
28
- 安装完成后,直接使用:
26
+ Replace `codex` with your agent, or use `--agent codex,workbuddy` for both. The installer adds a global `ccneed` command and links the same-version Skill into the selected agent's user directory; it does not modify the current project. Restart your agent after installation.
29
27
 
30
28
  ```bash
31
29
  ccneed --help
32
30
  ```
33
31
 
34
- 安装器会把 CLI 装为全局 `ccneed` 命令,并把同版本 Skill 接入你选择的 Agent;不会修改当前项目。使用多个 Agent 时,可用逗号分隔类型。安装后重新打开 Agent,详见 [安装指南](INSTALL.md)。
35
-
36
- ### 让 Agent 帮你安装
32
+ ### Build from source
37
33
 
38
- 也可以把这句话发给你正在使用的 Agent:
34
+ For development, use Git and Go 1.25+:
39
35
 
40
- ```text
41
- 请阅读 https://github.com/validflow/ccneed-cli 的 INSTALL.md,
42
- 确认官方 npm 包已发布、当前 Agent 在支持列表中后,
43
- 帮我在这台电脑上安装 CCNeed CLI 和对应的 Skill;不支持时先告诉我。
44
- 登录时把官网授权链接发给我,由我完成授权。
36
+ ```bash
37
+ git clone https://github.com/validflow/ccneed-cli.git
38
+ cd ccneed-cli
39
+ go install ./cmd/ccneed
40
+ ccneed --help
45
41
  ```
46
42
 
47
- ## 登录
48
-
49
- 🔑 使用已有的 CCNeed 官网账号,不用再注册一套账号。
43
+ This builds the development CLI only. The source Skill lives in `skills/ccneed` and is **not** installed or updated automatically by `go install`. For a linked CLI + Skill that update together, use the npm method above. See the [installation guide](INSTALL.md) for PATH and source-build details.
50
44
 
51
- 先发起登录:
45
+ ### Ask your agent to install it
52
46
 
53
- ```bash
54
- ccneed auth login
47
+ ```text
48
+ Read https://github.com/validflow/ccneed-cli/blob/main/INSTALL.md.
49
+ Install the official CCNeed CLI and Skill for the agent I am using.
50
+ Give me the website authorization link; I will approve the login myself.
55
51
  ```
56
52
 
57
- 打开返回的官网链接,核对账号和确认码,点击同意授权。回到终端后完成登录并验证:
53
+ ## Sign in
54
+
55
+ Use your existing CCNeed account. The CLI opens a website authorization flow; it does not need your password or browser cookies.
58
56
 
59
57
  ```bash
58
+ ccneed auth login
59
+ # Open the URL, check the confirmation code, and approve in your browser.
60
60
  ccneed auth login --complete --timeout 60s
61
61
  ccneed auth status --verify
62
62
  ccneed account credits
63
63
  ```
64
64
 
65
- 第一步返回 `pending` 只是等待授权;完成授权后才能使用账号功能。CLI 默认连接 CCNeed 正式环境的 HTTPS 地址 `https://ccneed.ai`。开发者可用 `--api-url` 显式连接 staging;不要把测试环境凭证用于正式环境,也不要把密码、Token 或浏览器 Cookie 发给 Agent。
65
+ The default service is `https://ccneed.ai`. Developers can explicitly target staging with `--api-url`; staging and production credentials must stay separate.
66
66
 
67
- ## 使用
67
+ ## Work with CCNeed
68
68
 
69
- 💬 安装并登录后,在你自己的 Agent 里直接说:
69
+ In your agent, you can ask:
70
70
 
71
71
  ```text
72
- 使用 CCNeed,先让我选择知识库和文件,
73
- 分析高价值博主,生成报告并下载到我指定的目录。
74
- 需要确认的地方请问我。
72
+ Use CCNeed to analyze my posts.csv, find high-value creators, and bring me a PDF report.
73
+ Ask me before making any choice that needs my confirmation.
75
74
  ```
76
75
 
77
- 也可以直接在终端操作。下面的 ID 要替换为命令返回的真实值:
76
+ Or use the CLI directly. Replace example IDs with values returned by your commands:
78
77
 
79
78
  ```bash
80
79
  ccneed kb list
81
80
  ccneed files upload ./posts.csv
82
- ccneed threads create --title "博主分析" --kb-id 7 --file-id FILE_UUID
83
- ccneed run "分析已绑定资料并生成报告" --thread-id THREAD_UUID
81
+ ccneed threads create --title "Creator research" --kb-id 7 --file-id FILE_UUID
82
+ ccneed run "Analyze the attached data and prepare a report" --thread-id THREAD_UUID
84
83
  ```
85
84
 
86
- 文件上传后还需要绑定到会话;创建会话不会启动研究,`run` 才会提交任务。任务可能消耗官网积分。
85
+ Uploading a file does not bind it to a conversation automatically. Creating a conversation does not start a task; `run` does. A task may use your CCNeed credits.
87
86
 
88
- ### 查看进度与报告
89
-
90
- `run` 返回会话 ID 和本轮任务 ID 后就退出,研究继续在云端执行:
87
+ `run` returns immediately while the cloud task continues. You can watch the same turn, respond to a confirmation request, and retrieve its results:
91
88
 
92
89
  ```bash
93
90
  ccneed tasks watch --thread-id THREAD_UUID --turn-id TURN_UUID --timeout 60s
94
91
  ccneed artifacts list --thread-id THREAD_UUID
95
- ccneed artifacts download --thread-id THREAD_UUID --artifact-id ARTIFACT_UUID --output ./report.md
96
92
  ccneed artifacts export-pdf --thread-id THREAD_UUID --artifact-id ARTIFACT_UUID --output ./report.pdf
97
93
  ```
98
94
 
99
- `watch` 等待超时不取消任务,稍后查询同一轮即可。需要确认时,Agent 会把问题和选项交给你,再用 `tasks reply` 提交你的答案。任务完成后可查看本轮回答及 findings/reports,不展示隐藏推理或完整工具日志。阅读带图表与排版的完整报告,建议 `export-pdf`;需要原文或继续编辑时用 `download` 保存 MD。两者都不会覆盖已有文件。
95
+ For an editable Markdown report, use `ccneed artifacts download` instead. `watch` timing out does not cancel the cloud task; you can check again later. For all options, run `ccneed <command> --help` or read the [Skill](skills/ccneed/SKILL.md).
100
96
 
101
- ### 常用命令
97
+ ### At a glance
102
98
 
103
- | 想做什么 | 命令 |
99
+ | What you need | Command |
104
100
  | --- | --- |
105
- | 💳 查看积分、订阅 | `ccneed account credits` / `ccneed account overview` |
106
- | 💬 查看会话 | `ccneed threads list` |
107
- | 📚 查看知识库 | `ccneed kb list` |
108
- | ➕ 创建知识库 | `ccneed kb create`,返回网页入口 |
109
- | 📎 查看、上传文件 | `ccneed files list` / `ccneed files upload ./posts.csv` |
110
- | 🗂️ 查看、追加会话资料 | `ccneed threads resources` / `ccneed threads append` |
111
- | 🕘 查看任务历史 | `ccneed tasks list --thread-id THREAD_UUID` |
112
- | 🚪 退出登录 | `ccneed auth logout` |
113
-
114
- 表中未展开的参数,可用 `ccneed <命令> --help` 查看。知识库与文件绑定只追加、不解绑;完整调用规则见 [Skill](skills/ccneed/SKILL.md)。
115
-
116
- ## 更新
101
+ | 💳 Check credits and subscription | `ccneed account credits` / `ccneed account overview` |
102
+ | 💬 Find conversations | `ccneed threads list` |
103
+ | 📚 Explore knowledge bases | `ccneed kb list` |
104
+ | ➕ Create a knowledge base in the browser | `ccneed kb create` |
105
+ | 📎 List or upload files | `ccneed files list` / `ccneed files upload ./posts.csv` |
106
+ | 🗂️ View or add conversation resources | `ccneed threads resources` / `ccneed threads append` |
107
+ | 🕘 Review task history | `ccneed tasks list --thread-id THREAD_UUID` |
108
+ | 🚪 Sign out | `ccneed auth logout` |
117
109
 
118
- 🔄 以后重新执行安装命令即可更新。CLI 和已接入的 Skill 一起升级,不需要分别下载;更新后重新打开 Agent。更新提醒不会替你自动升级。
110
+ Knowledge-base and file bindings can be added, but not removed. Use `ccneed <command> --help` for the required arguments.
119
111
 
120
- ## 反馈与贡献
112
+ ## Update and contribute
121
113
 
122
- 遇到问题请 [提交 Issue](https://github.com/validflow/ccneed-cli/issues),附上操作系统、CLI 版本和脱敏后的错误。不要上传凭证或私人文件。
114
+ Run the same `npx @validflow/ccneed-cli@latest install --agent ...` command to update both the CLI and linked Skill. Reload your agent afterward; update notifications never install software without your action.
123
115
 
124
- [安装与排障](INSTALL.md) · [开发与贡献](CONTRIBUTING.md) · [代码规范](CODE_STYLE.md) · [安全说明](SECURITY.md) · [版本发布](RELEASING.md)
116
+ Found a problem? [Open an issue](https://github.com/validflow/ccneed-cli/issues) with your OS, CLI version, and a redacted error message. Never post credentials or private files.
125
117
 
126
- 源码构建与开发联调见 [贡献指南](CONTRIBUTING.md);版本与 npm 发布见 [发行说明](RELEASING.md)。
118
+ [Installation](INSTALL.md) · [Contributing](CONTRIBUTING.md) · [Code style](CODE_STYLE.md) · [Security](SECURITY.md) · [Releasing](RELEASING.md)
package/checksums.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.1",
3
3
  "assets": {
4
- "ccneed-0.1.0-linux-amd64": "68ac6173282db46e5536b5f20700233e570c4c7afa22658cd5e739876bf38e06",
5
- "ccneed-0.1.0-linux-arm64": "f5860db9183f84b38492dd724944c1b723271ed32542c854742e7d81bda2f8ee",
6
- "ccneed-0.1.0-darwin-amd64": "72ea361972dc996519ff4289b0757f055d82daecc5ff7ebe8bf497d1c88f710d",
7
- "ccneed-0.1.0-darwin-arm64": "1cbc2fc903115ce65b5c1066780a497e656f83edb715dcea94c815144f4f8c5c",
8
- "ccneed-0.1.0-windows-amd64.exe": "100df4a8436012d29f4109ea7cb3985462409f76b619c43cf1b157579a4217c0",
9
- "ccneed-0.1.0-windows-arm64.exe": "d6c4c3cd0c33388f59c739f2a61f954540edf53feaac59af1392903cdc275991"
4
+ "ccneed-0.1.1-linux-amd64": "25658392cbe9c902c954fc36e1b75d1c1c14a2524b733c467d6075ab7f3f75ab",
5
+ "ccneed-0.1.1-linux-arm64": "17c1e4903a3a47c5a1a9fb2fa16030fd855b3f6e328a0ea0316e7dd993f576d3",
6
+ "ccneed-0.1.1-darwin-amd64": "2e97a06ac1fde28a0ab3494d2ea9c0ca5e00ede9d60c51cd15ccd37fd92f956f",
7
+ "ccneed-0.1.1-darwin-arm64": "3c7559a0e2da7fb93712af3d12c61ebb2b2134bb613a7df8a7eb53b26a306cc2",
8
+ "ccneed-0.1.1-windows-amd64.exe": "717a20229dbfe917b6ff940e59a8928eb971e82297fdbecfbd7e5f9dc3d1b037",
9
+ "ccneed-0.1.1-windows-arm64.exe": "9d4dc5b3595535371ea5213623bf8e9579f9906c812fdc2515014efc54adb000"
10
10
  },
11
11
  "skill_sha256": "5fc9782bdd758d327e192b2c261505dcc0cef4c374df2ccf8d68900586005895"
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@validflow/ccneed-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "CCNeed cloud agent command-line integration",
6
6
  "license": "MIT",