@itradingai/aiwiki 0.2.21 → 0.2.23
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 +211 -179
- package/README.zh-CN.md +312 -0
- package/docs/AGENT_HANDOFF.md +115 -185
- package/docs/AGENT_HANDOFF.zh-CN.md +150 -0
- package/docs/FAQ.md +73 -49
- package/docs/FAQ.zh-CN.md +103 -0
- package/docs/README.md +34 -23
- package/docs/README.zh-CN.md +34 -0
- package/docs/RELEASE.md +46 -16
- package/docs/RELEASE.zh-CN.md +84 -0
- package/docs/ROADMAP.md +51 -29
- package/docs/ROADMAP.zh-CN.md +65 -0
- package/docs/SHOWCASE.md +59 -45
- package/docs/SHOWCASE.zh-CN.md +81 -0
- package/docs/TRIAL_FEEDBACK_TEMPLATE.md +49 -0
- package/docs/USAGE.md +174 -362
- package/docs/USAGE.zh-CN.md +247 -0
- package/docs/development-log.md +145 -0
- package/package.json +12 -3
- package/skill/SKILL.md +6 -2
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# AIWiki 使用指南
|
|
2
|
+
|
|
3
|
+
AIWiki 的主路径是让 AI 助手来使用。
|
|
4
|
+
|
|
5
|
+
目标体验很简单:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
只设置一次
|
|
9
|
+
-> 以后把链接、文件、笔记发给 AI 助手
|
|
10
|
+
-> 助手调用 AIWiki
|
|
11
|
+
-> AIWiki 写入可复用的本地 Markdown 知识库
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
AIWiki 不抓网页,也不调用 LLM。宿主 AI 助手负责读取和理解资料;AIWiki 负责校验、写入、链接、查询和检查本地知识库。
|
|
15
|
+
|
|
16
|
+
## 1. 让 AI 助手安装 AIWiki
|
|
17
|
+
|
|
18
|
+
复制这段给你的 AI 助手:
|
|
19
|
+
|
|
20
|
+
发送前,请把所有 `<替换成我的 AIWiki 知识库路径>` 替换成你自己的本地文件夹路径,例如 `D:\AIWiki` 或 `~/AIWiki`。不要把这个占位符原样留在命令里。
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
请帮我安装并配置 AIWiki。
|
|
24
|
+
|
|
25
|
+
请先检查 Node.js 是否已安装,并确认 node --version >=20。
|
|
26
|
+
如果没有安装 Node.js,或版本低于 20,请先停止,并告诉我如何升级,不要继续运行 npm install。
|
|
27
|
+
|
|
28
|
+
我的知识库路径是:
|
|
29
|
+
|
|
30
|
+
<替换成我的 AIWiki 知识库路径>
|
|
31
|
+
|
|
32
|
+
运行命令前,请把下面所有 `<替换成我的 AIWiki 知识库路径>` 替换成我的真实本地文件夹路径。如果我没有替换,占位符仍然原样存在,请停止并向我询问真实路径。
|
|
33
|
+
|
|
34
|
+
请运行这些命令:
|
|
35
|
+
|
|
36
|
+
npm install -g @itradingai/aiwiki@latest
|
|
37
|
+
aiwiki setup --path "<替换成我的 AIWiki 知识库路径>" --yes
|
|
38
|
+
aiwiki agent sync --yes
|
|
39
|
+
aiwiki agent sync --path "<替换成我的 AIWiki 知识库路径>" --yes
|
|
40
|
+
aiwiki agent check --json
|
|
41
|
+
aiwiki agent check --path "<替换成我的 AIWiki 知识库路径>" --json
|
|
42
|
+
aiwiki doctor --path "<替换成我的 AIWiki 知识库路径>"
|
|
43
|
+
aiwiki status --path "<替换成我的 AIWiki 知识库路径>"
|
|
44
|
+
|
|
45
|
+
最后总结安装是否成功、同步了哪些助手目标、知识库根指导是否存在,以及我是否需要重启或重新加载助手。
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
知识库路径示例:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
Windows: D:\AIWiki
|
|
52
|
+
macOS/Linux: ~/AIWiki
|
|
53
|
+
项目内测试: ./aiwiki-test
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
这会创建或修复知识库,同步 AIWiki skill,并在知识库根目录写入 `AGENTS.md` 指导。
|
|
57
|
+
|
|
58
|
+
安装成功后应该看到:
|
|
59
|
+
|
|
60
|
+
- `aiwiki --version` 可以正常输出
|
|
61
|
+
- `aiwiki doctor --path <workspace>` 通过,或给出明确可处理的问题
|
|
62
|
+
- `aiwiki agent check --json` 报告支持的助手目标为 `installed`、`updated` 或 `current`
|
|
63
|
+
- `aiwiki agent check --path <workspace> --json` 报告知识库根指导是 current
|
|
64
|
+
- `aiwiki status --path <workspace>` 返回知识库状态和下一步动作
|
|
65
|
+
|
|
66
|
+
## 2. Agent 同步的两层含义
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
aiwiki agent sync --yes
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
同步到本机支持的 AI 助手环境,例如 Codex、Claude Code、QClaw、OpenClaw。
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
aiwiki agent sync --path <workspace> --yes
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
在知识库根目录写入带标记的指导,让以后进入这个目录的 Agent 先使用 AIWiki 命令,而不是直接翻文件。
|
|
79
|
+
|
|
80
|
+
验证两层同步:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
aiwiki agent check --json
|
|
84
|
+
aiwiki agent check --path <workspace> --json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
不支持自动写入的宿主,可以输出通用协议:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
aiwiki prompt agent
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## 3. 入库资料
|
|
94
|
+
|
|
95
|
+
对 AI 助手说:
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
把这个资料入库到 AIWiki:
|
|
99
|
+
https://example.com/article
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
助手应该:
|
|
103
|
+
|
|
104
|
+
1. 读取资料
|
|
105
|
+
2. 生成 `aiwiki.agent_payload.v1`
|
|
106
|
+
3. 能理解时尽量提供 `analysis` 或 `wiki_entry`
|
|
107
|
+
4. 调用 `aiwiki ingest-agent --stdin`
|
|
108
|
+
5. 汇报 Wiki Entry、Source Card 和 Processing Summary
|
|
109
|
+
|
|
110
|
+
本地文件可以调用:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
aiwiki ingest-file --file <file>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
如果网页读取失败,助手也应该记录 `fetch_status: "failed"`,让这次尝试可追踪。
|
|
117
|
+
|
|
118
|
+
## 4. 从知识库提问
|
|
119
|
+
|
|
120
|
+
对 AI 助手说:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
AIWiki 里关于 <主题> 有什么?
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
助手应该调用:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
aiwiki context "<主题>"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
`context` 返回给助手使用的 JSON,包含查询范围、结果质量、匹配原因、质量信号和相关引用。
|
|
133
|
+
|
|
134
|
+
人在终端里看结果可以用:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
aiwiki query "<主题>"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 5. 检查和维护知识库
|
|
141
|
+
|
|
142
|
+
对 AI 助手说:
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
帮我检查并整理 AIWiki 知识库。
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
助手应该先运行:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
aiwiki lint --json
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
如果只有安全修复,并且你允许整理:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
aiwiki lint --fix-empty-dirs --json
|
|
158
|
+
aiwiki lint --json
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
当前自动安全修复只包括:删除已知且为空的可选增强目录。AIWiki 不应把核心目录、未知目录、非空目录或文件当成 safe fix 删除。
|
|
162
|
+
|
|
163
|
+
## 6. 生成的文件
|
|
164
|
+
|
|
165
|
+
核心产物:
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
09-runs/<run-id>/payload.json
|
|
169
|
+
09-runs/<run-id>/raw.md
|
|
170
|
+
09-runs/<run-id>/source-card.md
|
|
171
|
+
09-runs/<run-id>/wiki-entry.md
|
|
172
|
+
09-runs/<run-id>/processing-summary.md
|
|
173
|
+
02-raw/articles/
|
|
174
|
+
03-sources/article-cards/
|
|
175
|
+
05-wiki/source-knowledge/
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
可选产物只在助手提供对应内容或明确请求时出现:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
09-runs/<run-id>/creative-assets.md
|
|
182
|
+
09-runs/<run-id>/topics.md
|
|
183
|
+
09-runs/<run-id>/draft-outline.md
|
|
184
|
+
04-claims/_suggestions/
|
|
185
|
+
06-assets/_suggestions/
|
|
186
|
+
07-topics/ready/
|
|
187
|
+
08-outputs/outlines/
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Wiki Entry 有两种质量模式:
|
|
191
|
+
|
|
192
|
+
- `agent_enriched` / `enriched`:助手提供了分析或 Wiki 内容。
|
|
193
|
+
- `deterministic_fallback` / `scaffold`:AIWiki 只根据来源内容生成可追踪脚手架。
|
|
194
|
+
|
|
195
|
+
## 7. Obsidian 和 Dataview
|
|
196
|
+
|
|
197
|
+
AIWiki 写的是普通 Markdown 和 frontmatter。
|
|
198
|
+
|
|
199
|
+
Obsidian 可选,Dataview 也可选。AIWiki 不修改 `.obsidian`,不安装插件,也不依赖 Dataview 查询知识库。
|
|
200
|
+
|
|
201
|
+
`aiwiki setup` 会在缺失时创建 dashboard 和 schema 文件,并保留用户已经编辑过的文件。
|
|
202
|
+
|
|
203
|
+
## 8. 常见排障
|
|
204
|
+
|
|
205
|
+
### 找不到 `aiwiki`
|
|
206
|
+
|
|
207
|
+
让助手重新安装:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
npm install -g @itradingai/aiwiki@latest
|
|
211
|
+
aiwiki --version
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### 助手还是直接翻文件
|
|
215
|
+
|
|
216
|
+
运行:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
aiwiki agent sync --yes
|
|
220
|
+
aiwiki agent sync --path <workspace> --yes
|
|
221
|
+
aiwiki agent check --path <workspace> --json
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
必要时重启或重新加载助手。
|
|
225
|
+
|
|
226
|
+
助手应该先使用 `aiwiki lint`、`aiwiki status`、`aiwiki query`、`aiwiki context`、`aiwiki ingest-file` 或 `aiwiki ingest-agent`,再考虑通用文件搜索。
|
|
227
|
+
|
|
228
|
+
### 助手读不到网页
|
|
229
|
+
|
|
230
|
+
这是宿主助手访问网页的问题,不是 AIWiki 爬虫失败。让助手记录 failed fetch payload,保留可追踪记录。
|
|
231
|
+
|
|
232
|
+
## 9. 本地开发
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
npm install
|
|
236
|
+
npm run build
|
|
237
|
+
npm test
|
|
238
|
+
npm link
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
用临时知识库测试:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
aiwiki setup --path "./aiwiki-test" --yes
|
|
245
|
+
aiwiki doctor --path "./aiwiki-test"
|
|
246
|
+
aiwiki status --path "./aiwiki-test"
|
|
247
|
+
```
|
package/docs/development-log.md
CHANGED
|
@@ -2,6 +2,151 @@
|
|
|
2
2
|
|
|
3
3
|
This log records queue-driven AIWiki development milestones that should remain visible to future maintainers, not only in automation chat history.
|
|
4
4
|
|
|
5
|
+
## 2026-06-11 - Repository trust and README P0/P1 polish
|
|
6
|
+
|
|
7
|
+
Status: implemented and locally verified. Demo GIF recording is intentionally deferred until the P0/P1 documentation and repository trust pass is complete.
|
|
8
|
+
|
|
9
|
+
### Goal
|
|
10
|
+
|
|
11
|
+
Close the high-priority public-facing issues identified after the README rewrite:
|
|
12
|
+
|
|
13
|
+
- keep GitHub About, npm metadata, and README positioning aligned;
|
|
14
|
+
- make README shorter and push detailed procedures into docs;
|
|
15
|
+
- document security and privacy boundaries;
|
|
16
|
+
- add CI coverage for build, test, and package inspection;
|
|
17
|
+
- make Agent sync failure reporting easier;
|
|
18
|
+
- keep WeChat community entry visible without overwhelming the README.
|
|
19
|
+
|
|
20
|
+
### Implemented
|
|
21
|
+
|
|
22
|
+
- Compressed the English and Chinese README quick-start flows around the assistant-driven install prompt.
|
|
23
|
+
- Moved detailed first-use, lint, and trial-route guidance toward the usage guides.
|
|
24
|
+
- Added Agent sync failure issue guidance with `agent check` and `doctor` evidence.
|
|
25
|
+
- Added Security and Privacy and Current Status sections in both README files.
|
|
26
|
+
- Refined practical scenarios around research, reusable ideas, assistant context, and traceability.
|
|
27
|
+
- Reduced community QR display size while keeping the WeChat group and official account visible.
|
|
28
|
+
- Clarified that `<replace-with-my-aiwiki-path>` and `<替换成我的 AIWiki 知识库路径>` are placeholders users must replace with their own local folder path before running commands.
|
|
29
|
+
- Added `.github/workflows/ci.yml` to run build, tests, and `npm pack --dry-run` on Node 20, 22, and 24.
|
|
30
|
+
- Fixed the npm test runner command so CI does not depend on shell glob expansion or newer Node test-runner glob behavior.
|
|
31
|
+
|
|
32
|
+
### Verification
|
|
33
|
+
|
|
34
|
+
- Local README/doc link check: passed, `broken links: 0`.
|
|
35
|
+
- `npm run release:check`: passed, 61 tests.
|
|
36
|
+
- `npm pack --dry-run --json`: passed for `@itradingai/aiwiki@0.2.22`, 90 files, package size approximately 106 kB.
|
|
37
|
+
- Pack inspection confirmed `docs/assets`, `aiwiki-hero`, `aiwiki-logo`, `join-group`, and `wechat-official-account` are still excluded from the npm tarball.
|
|
38
|
+
- GitHub About description was updated to match npm/README positioning.
|
|
39
|
+
- Initial CI run exposed Node 20 incompatibility in the quoted test glob; the test helper was added, and the follow-up GitHub Actions CI run passed on Node 20, 22, and 24.
|
|
40
|
+
|
|
41
|
+
## 2026-06-11 - README hero and logo asset refresh
|
|
42
|
+
|
|
43
|
+
Status: implemented and locally verified. This pass targets GitHub raw image delivery only; no npm publication.
|
|
44
|
+
|
|
45
|
+
### Goal
|
|
46
|
+
|
|
47
|
+
Replace the older README hero visual with gpt-image-2 generated brand assets that better match the current AIWiki positioning:
|
|
48
|
+
|
|
49
|
+
- golden angular AIWiki logo with a four-point star in the center;
|
|
50
|
+
- clear source inputs: Web link, PDF, and Notes;
|
|
51
|
+
- assistant-driven reading and understanding;
|
|
52
|
+
- AIWiki writing structured Markdown;
|
|
53
|
+
- local Markdown knowledge vault and later `aiwiki context` retrieval;
|
|
54
|
+
- separate English and Chinese README hero images.
|
|
55
|
+
|
|
56
|
+
### Implemented
|
|
57
|
+
|
|
58
|
+
- Replaced `docs/assets/aiwiki-hero.png` with the English gpt-image-2 generated hero.
|
|
59
|
+
- Added `docs/assets/aiwiki-hero.zh-CN.png` as the Chinese gpt-image-2 generated hero.
|
|
60
|
+
- Added `docs/assets/aiwiki-logo.png` cropped from the gpt-image-2 generated English hero for future brand reuse.
|
|
61
|
+
- Updated `README.zh-CN.md` to use the Chinese raw GitHub hero URL: `docs/assets/aiwiki-hero.zh-CN.png`.
|
|
62
|
+
- Kept README images out of the npm package; README files reference GitHub raw URLs instead.
|
|
63
|
+
|
|
64
|
+
### Verification
|
|
65
|
+
|
|
66
|
+
- Local README/doc link check: passed, `broken links: 0`.
|
|
67
|
+
- `npm run release:check`: passed, 61 tests.
|
|
68
|
+
- `npm pack --dry-run`: passed for `@itradingai/aiwiki@0.2.22`; confirmed `docs/assets`, `aiwiki-hero`, `aiwiki-logo`, `join-group`, and `wechat-official-account` were not included in the npm tarball.
|
|
69
|
+
|
|
70
|
+
## 2026-06-11 - Public trial path and feedback loop
|
|
71
|
+
|
|
72
|
+
Status: implemented and locally verified. Pre-delivery remote tarball smoke, GitHub push, Trusted Publishing, registry verification, and post-publish remote sanity are required before queue completion.
|
|
73
|
+
|
|
74
|
+
Version target: `@itradingai/aiwiki@0.2.22`
|
|
75
|
+
|
|
76
|
+
### Goal
|
|
77
|
+
|
|
78
|
+
Make the public trial path concrete enough that a first-time user can complete one useful AIWiki loop without learning the whole product first.
|
|
79
|
+
|
|
80
|
+
The scoped acceptance criteria were:
|
|
81
|
+
|
|
82
|
+
- show a 10-minute path from setup to first ingest to query/context reuse;
|
|
83
|
+
- explain what a successful first run should generate;
|
|
84
|
+
- cover installation, first ingest, doctor/lint, query/context, and feedback questions in public docs;
|
|
85
|
+
- give host Agents a small first-use handoff path;
|
|
86
|
+
- provide a minimal feedback template without adding a CLI command;
|
|
87
|
+
- keep the base product boundary: no crawler, WeChat reader, vector search, RAG-over-wiki, RBAC, RSS, scheduled collection, browser plugin, Pro-only command, or multi-KB workflow.
|
|
88
|
+
|
|
89
|
+
### Implemented
|
|
90
|
+
|
|
91
|
+
- Added an explicit 10-minute public trial path to the README, usage guide, and showcase.
|
|
92
|
+
- Added first-run success checks for the run folder, Source Card, Wiki Entry, query/context match, and structured lint output.
|
|
93
|
+
- Added `docs/TRIAL_FEEDBACK_TEMPLATE.md` for lightweight public-trial feedback.
|
|
94
|
+
- Updated FAQ coverage for first trial, doctor/lint, query/context, and feedback.
|
|
95
|
+
- Updated Agent handoff and packaged skill guidance so host Agents guide first-time users through one small loop before broad exploration.
|
|
96
|
+
- Included the trial feedback template in the npm package file list.
|
|
97
|
+
|
|
98
|
+
### Verification
|
|
99
|
+
|
|
100
|
+
- `npm test`: passed, 61 tests.
|
|
101
|
+
- `npm run release:check`: passed for `@itradingai/aiwiki@0.2.22`, including tests and `scripts/release-check.mjs`.
|
|
102
|
+
- `npm pack --dry-run`: passed for `@itradingai/aiwiki@0.2.22`, 90 files, package size approximately 105 kB. Exact tarball shasum is recorded in the queue evidence instead of this packaged log file to avoid a self-referential hash.
|
|
103
|
+
- Pack inspection confirmed `docs/TRIAL_FEEDBACK_TEMPLATE.md` is included and `docs/assets/` images are still excluded from the npm tarball.
|
|
104
|
+
|
|
105
|
+
## 2026-06-10 - README and documentation positioning rewrite
|
|
106
|
+
|
|
107
|
+
Status: implemented and locally verified. Not pushed, published, or remote-server verified in this documentation-only pass.
|
|
108
|
+
|
|
109
|
+
Version target: no version bump in this pass.
|
|
110
|
+
|
|
111
|
+
### Goal
|
|
112
|
+
|
|
113
|
+
Rebuild the public AIWiki documentation around a clearer user-facing position:
|
|
114
|
+
|
|
115
|
+
- English README is the primary GitHub/npm entry.
|
|
116
|
+
- Chinese documentation is split into dedicated `zh-CN` files.
|
|
117
|
+
- The first-screen message is "AIWiki is a local Markdown knowledge base for AI assistants."
|
|
118
|
+
- The main Quick Start asks users to let an AI assistant install and configure AIWiki.
|
|
119
|
+
- Agent sync remains explicit through `aiwiki agent sync` and `aiwiki agent check`; npm install alone does not silently modify host assistant configuration.
|
|
120
|
+
- The older split story of "manual install" followed by a separate host-Agent connection step is removed from the main README path.
|
|
121
|
+
- Community QR codes remain visible in the README through raw GitHub asset links.
|
|
122
|
+
|
|
123
|
+
### Implemented
|
|
124
|
+
|
|
125
|
+
- Rewrote `README.md` as the English public README with hero image, language/docs/npm links, Quick Start assistant prompt, first-use workflow, boundaries, community, and documentation links.
|
|
126
|
+
- Added `README.zh-CN.md` as the Chinese public README.
|
|
127
|
+
- Rewrote English docs: `docs/README.md`, `docs/USAGE.md`, `docs/FAQ.md`, `docs/AGENT_HANDOFF.md`, `docs/SHOWCASE.md`, `docs/ROADMAP.md`, and `docs/RELEASE.md`.
|
|
128
|
+
- Added matching Chinese docs: `docs/README.zh-CN.md`, `docs/USAGE.zh-CN.md`, `docs/FAQ.zh-CN.md`, `docs/AGENT_HANDOFF.zh-CN.md`, `docs/SHOWCASE.zh-CN.md`, `docs/ROADMAP.zh-CN.md`, and `docs/RELEASE.zh-CN.md`.
|
|
129
|
+
- Updated `package.json` description and package file list so the bilingual documentation is included in the npm tarball.
|
|
130
|
+
- Updated `skill/SKILL.md` to use the same product positioning while preserving the command-first AIWiki workflow.
|
|
131
|
+
- Updated CLI tests so bundled Claude handoff installation is verified against the new English `docs/AGENT_HANDOFF.md` contract.
|
|
132
|
+
|
|
133
|
+
### Verification
|
|
134
|
+
|
|
135
|
+
- `npm test`: passed, 61 tests.
|
|
136
|
+
- `npm run release:check`: passed, including tests and `scripts/release-check.mjs`.
|
|
137
|
+
- `npm pack --dry-run`: passed for `@itradingai/aiwiki@0.2.21`, 89 files, package size 100.0 kB, shasum `6973ed940edf8f4620b7a3e578ddf3ececa01f45`.
|
|
138
|
+
- Public English docs scan: no Chinese characters found in `README.md`, the English docs, or `package.json`.
|
|
139
|
+
- Deprecated onboarding scan: no `Manual Install`, old `npx ... setup` path, old "second step host Agent" wording, or old first-screen positioning found in the rewritten public docs.
|
|
140
|
+
|
|
141
|
+
### Follow-up Optimization
|
|
142
|
+
|
|
143
|
+
- Added npm, Node.js, and license badges to the public README files.
|
|
144
|
+
- Added Node.js >=20 checks to the assistant-install prompts.
|
|
145
|
+
- Added concrete knowledge base path examples for Windows, macOS/Linux, and project-local testing.
|
|
146
|
+
- Added "expected result" sections so users know what a successful install should report.
|
|
147
|
+
- Added practical scenario sections to make the README more readable for first-time users.
|
|
148
|
+
- Added FAQ entries for Node.js version-related installation failures.
|
|
149
|
+
|
|
5
150
|
## 2026-06-08 - Base contract cleanup and safe optional directory pruning
|
|
6
151
|
|
|
7
152
|
Status: implemented and locally verified, committed locally, blocked before GitHub push and npm publication. Test-server verification is now required before both GitHub push and npm publication.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itradingai/aiwiki",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Local Markdown knowledge base for AI assistants. Save what your AI reads, ask it later, and keep everything local.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"aiwiki",
|
|
@@ -35,19 +35,28 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/src",
|
|
37
37
|
"README.md",
|
|
38
|
+
"README.zh-CN.md",
|
|
38
39
|
"LICENSE",
|
|
39
40
|
"CONTRIBUTING.md",
|
|
40
41
|
"SECURITY.md",
|
|
41
42
|
"docs/20260607-aiwiki-feature-pruning-plan.md",
|
|
42
43
|
"docs/20260607-aiwiki-long-term-operating-roadmap.md",
|
|
43
44
|
"docs/AGENT_HANDOFF.md",
|
|
45
|
+
"docs/AGENT_HANDOFF.zh-CN.md",
|
|
44
46
|
"docs/FAQ.md",
|
|
47
|
+
"docs/FAQ.zh-CN.md",
|
|
45
48
|
"docs/OBSIDIAN_DATAVIEW_PLAN.md",
|
|
46
49
|
"docs/README.md",
|
|
50
|
+
"docs/README.zh-CN.md",
|
|
47
51
|
"docs/RELEASE.md",
|
|
52
|
+
"docs/RELEASE.zh-CN.md",
|
|
48
53
|
"docs/ROADMAP.md",
|
|
54
|
+
"docs/ROADMAP.zh-CN.md",
|
|
49
55
|
"docs/SHOWCASE.md",
|
|
56
|
+
"docs/SHOWCASE.zh-CN.md",
|
|
57
|
+
"docs/TRIAL_FEEDBACK_TEMPLATE.md",
|
|
50
58
|
"docs/USAGE.md",
|
|
59
|
+
"docs/USAGE.zh-CN.md",
|
|
51
60
|
"docs/development-log.md",
|
|
52
61
|
"docs/architecture.svg",
|
|
53
62
|
"examples",
|
|
@@ -58,7 +67,7 @@
|
|
|
58
67
|
},
|
|
59
68
|
"scripts": {
|
|
60
69
|
"build": "tsc -p tsconfig.json",
|
|
61
|
-
"test": "npm run build && node
|
|
70
|
+
"test": "npm run build && node scripts/run-tests.mjs",
|
|
62
71
|
"check": "npm run test",
|
|
63
72
|
"release:check": "npm test && node scripts/release-check.mjs",
|
|
64
73
|
"prepack": "npm run build"
|
package/skill/SKILL.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aiwiki
|
|
3
|
-
description:
|
|
3
|
+
description: Local Markdown knowledge base workflow for AI assistants.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<!-- aiwiki-skill-version: 0.2.
|
|
6
|
+
<!-- aiwiki-skill-version: 0.2.22 -->
|
|
7
7
|
|
|
8
8
|
# AIWiki Skill
|
|
9
9
|
|
|
10
10
|
Use this skill when the user asks an Agent to process one URL, article body, or local text file with the `aiwiki` keyword, or says phrases like `入库 <url>` / `收录 <url>` / `从 AIWiki 里了解 <topic>`.
|
|
11
11
|
|
|
12
|
+
AIWiki is a local Markdown knowledge base for AI assistants. Save what the assistant reads, ask it later, and keep everything local.
|
|
13
|
+
|
|
12
14
|
AIWiki CLI does not fetch webpages and does not call an LLM. The host Agent reads and understands the source; AIWiki validates, writes, links, tracks, queries, and lints local Markdown knowledge files.
|
|
13
15
|
|
|
14
16
|
## Agent-First Setup and Upgrade
|
|
@@ -84,6 +86,8 @@ If the material does not fit the purpose file, do not force it into the knowledg
|
|
|
84
86
|
|
|
85
87
|
## Ingest Flow
|
|
86
88
|
|
|
89
|
+
For first-time public-trial users, keep the path small and concrete: setup the workspace, ingest one source, inspect the generated run summary / Source Card / Wiki Entry, retrieve with query or context, run lint/doctor, then capture feedback with `docs/TRIAL_FEEDBACK_TEMPLATE.md`. Do not invent a new CLI command for feedback.
|
|
90
|
+
|
|
87
91
|
1. Read the URL, message, attachment, or user-provided body.
|
|
88
92
|
2. Read `_system/purpose.md` and decide whether the material fits this knowledge base.
|
|
89
93
|
3. Build an `aiwiki.agent_payload.v1` payload with `source` and `request`.
|