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 +52 -8
- package/dist/index.js +398 -71
- package/docs/private-knowledge-base.md +129 -0
- package/package.json +3 -1
- package/skills/c456-cli/SKILL.md +118 -0
- package/skills/c456-cli/references/content-syntax-kramdown.md +80 -0
- package/skills/c456-cli/references/douyin-channel-intake.md +65 -0
- package/skills/c456-cli/references/intake-profile-data-json.md +164 -0
- package/skills/c456-cli/references/media-library-and-icons.md +46 -0
- package/skills/c456-llm-wiki/SKILL.md +242 -0
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
|
-
###
|
|
94
|
+
### 数据管理(5 大类)
|
|
87
95
|
|
|
88
96
|
```bash
|
|
89
|
-
#
|
|
90
|
-
c456
|
|
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
|
|
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
|
-
|
|
96
|
-
c456
|
|
97
|
-
c456
|
|
98
|
-
c456
|
|
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
|