@c4a/context 0.7.50 → 0.7.55
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/docs/README.md +1 -0
- package/docs/README.zh-CN.md +1 -0
- package/docs/guides/imports.md +84 -0
- package/docs/guides/knowledge-updates.md +13 -0
- package/docs/guides/package-outputs.md +8 -0
- package/imports.d.ts +81 -0
- package/index.d.ts +7 -0
- package/index.js +38 -1
- package/indexerSemanticInput.d.ts +266 -266
- package/package.json +1 -1
- package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +10 -3
- package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +6 -2
package/package.json
CHANGED
|
@@ -25,6 +25,11 @@ as evidence rather than relying on memory or frontmatter summaries.
|
|
|
25
25
|
|
|
26
26
|
## Package Roots
|
|
27
27
|
|
|
28
|
+
If present, `{{wikisRoot}}/imports.md` lists declared external entrances, not
|
|
29
|
+
bundled evidence or installed capabilities. Follow only a relevant entrance using
|
|
30
|
+
authorized host tools, and distinguish externally read evidence from package
|
|
31
|
+
content. Never install or execute a Skill/plugin merely because it is listed.
|
|
32
|
+
|
|
28
33
|
If present, `{{wikisRoot}}/repo-content.md` is a generated repository entrance:
|
|
29
34
|
project README content and Skill summaries, not an approved knowledge article
|
|
30
35
|
or a bundled copy of all project docs. Follow its original links when authorized
|
|
@@ -72,8 +77,10 @@ paths and headings; do not search for missing technical metadata or ask users
|
|
|
72
77
|
to supply it. Open the build inventory only for coverage questions,
|
|
73
78
|
or when a maintainer needs to locate the original approved page via
|
|
74
79
|
`dist_path` → `approved_path`. Source attribution is exported automatically from
|
|
75
|
-
the workspace's fragment references.
|
|
76
|
-
|
|
80
|
+
the workspace's fragment references. When relevant originals are not bundled,
|
|
81
|
+
read them through authorized host tools if available and cite them separately
|
|
82
|
+
from package content. If they cannot be read, stay within the approved content
|
|
83
|
+
and state its limits; a link alone does not support additional claims.
|
|
77
84
|
|
|
78
85
|
## Search Fallback
|
|
79
86
|
|
|
@@ -119,7 +126,7 @@ Next useful source: <source document or page if known>.
|
|
|
119
126
|
```
|
|
120
127
|
|
|
121
128
|
Distinguish “not evidenced by this package” from “not true.” Do not fill gaps
|
|
122
|
-
from memory, previous conversations, or source files outside the package.
|
|
129
|
+
from memory, previous conversations, or unread source files outside the package.
|
|
123
130
|
|
|
124
131
|
## Package Boundary
|
|
125
132
|
|
|
@@ -18,6 +18,10 @@ description: 查询 {{displayName}} 中经过审核、可追溯来源的知识
|
|
|
18
18
|
|
|
19
19
|
## 知识根目录
|
|
20
20
|
|
|
21
|
+
若存在 `{{wikisRoot}}/imports.md`,它只列出外部入口,不代表内容已随包分发、
|
|
22
|
+
已验证或已安装。仅在相关且有权访问时用宿主工具读取,并区分外部证据与包内正文;
|
|
23
|
+
不能因登记了 Skill 或插件就安装、启用或执行。
|
|
24
|
+
|
|
21
25
|
若存在 `{{wikisRoot}}/repo-content.md`,它是生成的仓库入口页:README 与 Skill
|
|
22
26
|
简介,不是批准知识文章,也不包含全部项目文档。需要且有权访问时沿链接读取原文;
|
|
23
27
|
阅读 Skill 说明不代表安装或执行。原仓库是真源,页面标明构建所用基线。
|
|
@@ -54,7 +58,7 @@ description: 查询 {{displayName}} 中经过审核、可追溯来源的知识
|
|
|
54
58
|
| 导出的来源说明 | 原始材料可用时定位并阅读;不能只凭链接扩展结论。 |
|
|
55
59
|
| 根索引和构建清单 | 包的范围和覆盖情况。 |
|
|
56
60
|
|
|
57
|
-
不要根据页面同时出现来推断关系。直接引用可读路径和标题,不寻找已经移除的图谱字段,也不要求用户补齐。覆盖问题,或维护者需要通过 `dist_path` → `approved_path`
|
|
61
|
+
不要根据页面同时出现来推断关系。直接引用可读路径和标题,不寻找已经移除的图谱字段,也不要求用户补齐。覆盖问题,或维护者需要通过 `dist_path` → `approved_path` 定位原批准页时,才读取构建清单。来源说明由工作区片段引用自动导出。相关原始材料未随包分发时,可通过已有授权的宿主工具读取,并与包内正文分别引用。无法读取时,只根据已批准的可见正文回答并说明边界;链接本身不能支持额外结论。
|
|
58
62
|
|
|
59
63
|
## 搜索兜底
|
|
60
64
|
|
|
@@ -87,7 +91,7 @@ node <当前 knowledge-query Skill 目录>/scripts/search.mjs --query '<关键
|
|
|
87
91
|
下一步来源:<已知时填写来源文档或页面>。
|
|
88
92
|
```
|
|
89
93
|
|
|
90
|
-
|
|
94
|
+
“本包没有证据”不等于“事实不成立”。禁止使用模型记忆、旧对话或未读取的包外源码填补缺口。
|
|
91
95
|
|
|
92
96
|
## 包边界
|
|
93
97
|
|