@aiti-ai/aiti-doc-center 0.1.12 → 0.1.14
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 +2 -3
- package/README.zh-CN.md +2 -3
- package/dist/aiti-doc-center-client.mjs +2 -1
- package/index.ts +4 -3
- package/package.json +8 -2
- package/tools/deploy.mjs +3 -2
- package/icon.svg +0 -5
package/README.md
CHANGED
|
@@ -6,10 +6,9 @@ English · [简体中文](./README.zh-CN.md)
|
|
|
6
6
|
|
|
7
7
|
## About aiti
|
|
8
8
|
|
|
9
|
-
This package is part of the **aiti** ecosystem — a personal AI development workbench powered by [pi](https://pi.dev): **aiti-agent** (a self-hosted web workbench built on the open-source [pi-web](https://github.com/aiti-ai/
|
|
9
|
+
This package is part of the **aiti** ecosystem — a personal AI development workbench powered by [pi](https://pi.dev): **aiti-agent** (a self-hosted web workbench built on the open-source [pi-web](https://github.com/aiti-ai/aiti-ai)) plus debug injection into mainstream dev tools (aiti-devtools) and a rich extension system.
|
|
10
10
|
|
|
11
|
-
- Workbench
|
|
12
|
-
- Ecosystem monorepo: <https://github.com/aiti-ai/aiti-ai>
|
|
11
|
+
- Workbench & monorepo: <https://github.com/aiti-ai/aiti-ai>
|
|
13
12
|
- Site: <https://aiti.pw>
|
|
14
13
|
|
|
15
14
|
Category: Knowledge management · Tags: `docs` · `search` · `fts5` · `tag`
|
package/README.zh-CN.md
CHANGED
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
## 关于 aiti
|
|
8
8
|
|
|
9
|
-
本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/
|
|
9
|
+
本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/aiti-ai) 构建,浏览器为主操作面)+ 各开发工具内的调试注入(aiti-devtools)+ 丰富的扩展体系。
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
- 生态仓库: <https://github.com/aiti-ai/aiti-ai>
|
|
11
|
+
- 工作台 / 生态仓库(aiti-agent,基于 pi-web): <https://github.com/aiti-ai/aiti-ai>
|
|
13
12
|
- 官网: <https://aiti.pw>
|
|
14
13
|
|
|
15
14
|
分类: 知识管理 · tags: `docs` · `search` · `fts5` · `tag`
|
|
@@ -860,6 +860,7 @@ const DOCK_MENU_WORDS = {
|
|
|
860
860
|
block: { "zh-CN": "区块", en: "Block" },
|
|
861
861
|
position: { "zh-CN": "切换停靠位置", en: "Change dock position" },
|
|
862
862
|
actions: { "zh-CN": "区块操作", en: "Block actions" },
|
|
863
|
+
dragReorder: { "zh-CN": "拖动排序", en: "Drag to reorder" },
|
|
863
864
|
move: { "zh-CN": "移动", en: "Move" },
|
|
864
865
|
pin: { "zh-CN": "钉住", en: "Pin" },
|
|
865
866
|
unpin: { "zh-CN": "取消钉住", en: "Unpin" },
|
|
@@ -1384,7 +1385,7 @@ function DockBody(props) {
|
|
|
1384
1385
|
} };
|
|
1385
1386
|
if (chrome === "section" && kind !== "reserved") {
|
|
1386
1387
|
headerProps.draggable = true;
|
|
1387
|
-
headerProps.title = props.headerHint ?? "
|
|
1388
|
+
headerProps.title = props.headerHint ?? menuWord("dragReorder");
|
|
1388
1389
|
headerProps.onDragStart = onDragStart;
|
|
1389
1390
|
headerProps.onDragOver = (e) => {
|
|
1390
1391
|
if (isDockDrag(e) && dragKey !== blockKey) {
|
package/index.ts
CHANGED
|
@@ -602,7 +602,7 @@ function writeTagsToPath(root: string, rel: string, add: string[], remove: strin
|
|
|
602
602
|
const ext = {
|
|
603
603
|
id: "aiti-doc-center",
|
|
604
604
|
name: "文档中心",
|
|
605
|
-
icon: "
|
|
605
|
+
icon: "icons/book-open.svg",
|
|
606
606
|
client: "dist/aiti-doc-center-client.mjs",
|
|
607
607
|
ui: {
|
|
608
608
|
clientImmediately: false, // [懒加载 v2] M1 已同步生产,懒化重启用
|
|
@@ -705,8 +705,10 @@ const ext = {
|
|
|
705
705
|
"it.docs.title": "文档",
|
|
706
706
|
"it.aiti-doc-center-page.label": "文档中心",
|
|
707
707
|
"ext.displayName": "文档中心",
|
|
708
|
+
"dc.sch.scan": "文档中心定期收集整理",
|
|
708
709
|
},
|
|
709
710
|
en: {
|
|
711
|
+
"dc.sch.scan": "Doc center periodic scan & indexing",
|
|
710
712
|
"it.docs.title": "Doc Center: workspace doc collection & full-text search",
|
|
711
713
|
"feat.scan.roots.desc": "Comma/newline separated (supports ~). For precise tag layering use root|alias form; scans all workspace roots when empty",
|
|
712
714
|
"feat.scan.excludes.desc": "Comma-separated dir names or globs (*.tmp); also honors .gitignore automatically",
|
|
@@ -717,7 +719,6 @@ const ext = {
|
|
|
717
719
|
"it.aiti-doc-center-page.label": "Doc Center",
|
|
718
720
|
"it.docs.title": "Docs",
|
|
719
721
|
"ext.displayName": "Doc Center",
|
|
720
|
-
"ext.description": "Searches the workspace doc center (FTS full-text + weighted fusion ranking). Params: query (required, ≥3 chars works best), tag (optional, e.g. plan, docs), limit (optional, default 8). Returns docs with snippet highlights (path/title/updated/tags).",
|
|
721
722
|
"feat.aiti-doc-center-page": "Doc Center",
|
|
722
723
|
"feat.scan.roots": "Scan roots",
|
|
723
724
|
"feat.scan.excludes": "Excluded dirs",
|
|
@@ -837,7 +838,7 @@ const ext = {
|
|
|
837
838
|
schedules: [
|
|
838
839
|
{
|
|
839
840
|
id: "doc-center-scan",
|
|
840
|
-
name: "
|
|
841
|
+
name: "i18n:dc.sch.scan",
|
|
841
842
|
intervalSec: 600,
|
|
842
843
|
enabled: true,
|
|
843
844
|
run: (_ctx: any) => { postWorker({ cmd: "scan", full: false }); },
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiti-ai/aiti-doc-center",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "workspace markdown collection/organization/search — FTS5 trigram Chinese full-text + tag seven-source two-layer + 📚 float dialog four views",
|
|
6
|
+
"displayNameI18n": {
|
|
7
|
+
"en": "Doc Center"
|
|
8
|
+
},
|
|
9
|
+
"descriptionI18n": {
|
|
10
|
+
"zh-CN": "workspace md 收集/整理/检索——FTS5 trigram 中文全文 + tag 七来源两层 + 📚 float 弹窗四视图"
|
|
11
|
+
},
|
|
6
12
|
"scripts": {
|
|
7
13
|
"test": "node --experimental-strip-types --test doc-core.test.mjs",
|
|
8
14
|
"deploy": "node tools/deploy.mjs",
|
|
@@ -18,7 +24,7 @@
|
|
|
18
24
|
},
|
|
19
25
|
"aitiExtProtocol": "1.0",
|
|
20
26
|
"license": "MIT",
|
|
21
|
-
"contentHash": "
|
|
27
|
+
"contentHash": "daf1926262b4e028",
|
|
22
28
|
"repository": {
|
|
23
29
|
"type": "git",
|
|
24
30
|
"url": "git+https://github.com/aiti-ai/aiti-ai.git",
|
package/tools/deploy.mjs
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* 步骤(照 aiti-plan-first 四步):
|
|
6
6
|
* 0) 构建 JSX client bundle(client/src/*.tsx → client/aiti-doc-center-client.mjs,M2 起存在)
|
|
7
|
-
* 1)
|
|
7
|
+
* 1) copy server sources index.ts / doc-core.ts to both extension dirs (icon comes from the
|
|
8
|
+
* shared line-icon library via deploy-all's icon sync)
|
|
8
9
|
* 2) 拷贝 client 产物 / skills(存在才拷)
|
|
9
10
|
* 3) 提交部署状态到扩展 git 仓库(失败不影响部署)
|
|
10
11
|
*
|
|
@@ -40,7 +41,7 @@ const targets = [
|
|
|
40
41
|
resolve(homedir(), ".pi", "web", "extensions", "aiti-doc-center"),
|
|
41
42
|
resolve(homedir(), ".pi", "web-dev", "extensions", "aiti-doc-center"),
|
|
42
43
|
];
|
|
43
|
-
const files = ["index.ts", "doc-core.ts", "lib/ignore-semantics.ts", "
|
|
44
|
+
const files = ["index.ts", "doc-core.ts", "lib/ignore-semantics.ts", "package.json"];
|
|
44
45
|
const optionalDirs = ["dist", "skills"];
|
|
45
46
|
// doc-worker 是手写运行时源(Worker 线程直载,无构建)——随产物进 dist/(index.ts 按 dist/ 引用)
|
|
46
47
|
{
|
package/icon.svg
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
|
2
|
-
<path fill="#6366f1" d="M4 3h6a2 2 0 0 1 2 2v14a2 2 0 0 0-2-2H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z" opacity=".55"/>
|
|
3
|
-
<path fill="#6366f1" d="M20 3h-6a2 2 0 0 0-2 2v14a2 2 0 0 1 2-2h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1z"/>
|
|
4
|
-
<path fill="#a5b4fc" d="M7.5 7h2.2M7.5 10h2.2M14.3 7h2.2M14.3 10h2.2" stroke="#fff" stroke-width="1.3" stroke-linecap="round"/>
|
|
5
|
-
</svg>
|