c456-cli 0.1.6 → 0.3.0

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
@@ -12,6 +12,14 @@
12
12
 
13
13
  C456 命令行工具:通过 **HTTP API v1** 读写收录、打法等数据,适合本地使用或与 AI Agent 集成。
14
14
 
15
+ ## 用 C456 搭建私人知识库
16
+
17
+ 若你希望把 **[c456.com](https://c456.com)** 当作私人或团队的**云端知识底座**——在本地用「卡帕西式」Wiki 维护笔记与素材,用本 CLI 与线上收录做**同步**,并按权限**对内协作或对外分享**——请直接阅读独立指南:
18
+
19
+ **[私人知识库:用 AI 客户端使用 C456](https://github.com/xiaohui-zhangxh/c456-cli/blob/main/docs/private-knowledge-base.md)**(克隆仓库后也可打开 [`docs/private-knowledge-base.md`](./docs/private-knowledge-base.md))
20
+
21
+ 该流程会串联:**注册 C456 → 安装配置 c456-cli → 安装 [Karpathy Wiki](https://github.com/baklib-tools/skills/tree/main/skills/karpathy-wiki) 技能 → 安装 [c456-llm-wiki](https://github.com/xiaohui-zhangxh/c456-cli/tree/main/skills/c456-llm-wiki) 双向同步规范**。
22
+
15
23
  ## 安装
16
24
 
17
25
  ```bash
@@ -83,21 +91,47 @@ c456 config show
83
91
 
84
92
  ## 常用命令
85
93
 
86
- ### 收录(intake)
94
+ ### 数据管理(5 大类)
87
95
 
88
96
  ```bash
89
- # 按 URL 创建 tool 收录(-B 为站点,-u 为收录目标)
90
- c456 -B https://c456.example.com intake new -k tool -u "https://github.com/owner/repo" --auto-resolve-url
97
+ # 工具
98
+ c456 tool new -u "https://github.com/owner/repo" --auto-resolve-url
99
+
100
+ # 渠道
101
+ c456 channel new -u "https://example.com" --auto-resolve-url
91
102
 
92
103
  # 纯文本信号(可无 URL)
93
- c456 intake new -k signal -t "标题" -b "正文"
104
+ c456 signal new -t "标题" -b "正文"
105
+
106
+ c456 signal show <id>
107
+ c456 signal list -q "关键词" --stage raw
108
+ c456 signal refine <id> --to cleaned --ai
109
+ c456 signal update <id> --refinement-status approved
94
110
 
95
- c456 intake show <id>
96
- c456 intake list -k signal -q "关键词"
97
- c456 intake update <id> -t "新标题"
98
- c456 intake delete <id> --force
111
+ # 打法(M1/M2 仍为独立资源;M3 会逐步合回 Intake)
112
+ c456 playbook new -t "标题" -b "Markdown 正文"
113
+ c456 playbook show <id>
114
+ c456 playbook list -q "关键词"
115
+
116
+ # 讲解
117
+ c456 walkthrough new -t "标题" --cast-file ./demo.cast
118
+ c456 walkthrough list
99
119
  ```
100
120
 
121
+ ### 素材库(图片)
122
+
123
+ ```bash
124
+ c456 asset upload -f ./diagram.png
125
+ c456 asset list
126
+ c456 asset show <id>
127
+ c456 asset update <id> --filename logo.webp
128
+ c456 asset delete <id>
129
+ c456 asset refresh-markdown --body-file ./note.md > ./note.new.md
130
+ c456 asset fingerprint --body-file ./note.md
131
+ ```
132
+
133
+ 规格见 C456 主仓 [`docs/20-engineering/specs/api-v1.md`](https://github.com/xiaohui-zhangxh/c456/blob/main/docs/20-engineering/specs/api-v1.md) 与 [`docs/10-product/experience/media-library-v1.md`](https://github.com/xiaohui-zhangxh/c456/blob/main/docs/10-product/experience/media-library-v1.md)。
134
+
101
135
  ### 资料抓取(fetch)
102
136
 
103
137
  ```bash
@@ -111,6 +145,16 @@ c456 search signals -q "关键词"
111
145
  c456 search playbooks -q "关键词"
112
146
  ```
113
147
 
148
+ ### AI 自动识别入口(intake)
149
+
150
+ `intake` 保留为 **AI 识别与录入** 的入口:当你不确定应该落到 signal/tool/channel/playbook 时使用。
151
+
152
+ ```bash
153
+ c456 intake new -t "疑似工具/渠道/信号" -b "一段描述或粘贴内容"
154
+ ```
155
+
156
+ 当 AI 判断不在 `signal/tool/channel/playbook/walkthrough` 五类范围内,会返回 422 并给出错误提示;若识别为 `walkthrough`,会提示改用 `walkthrough` 子命令(因为需要媒体文件/外链)。
157
+
114
158
  ### 打法(playbook)
115
159
 
116
160
  ```bash