artifact-chain-assistant 0.9.4 → 0.10.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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.kimi-plugin/plugin.json +1 -1
- package/CHANGELOG.md +20 -0
- package/INSTALL.md +19 -15
- package/README.md +4 -4
- package/README.zh-CN.md +4 -4
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/INSTALL.md +19 -15
- package/adapters/claude/agent-methods/catalog.yaml +4 -4
- package/adapters/claude/compatibility.json +4 -4
- package/adapters/claude/family-apis/catalog.json +1 -1
- package/adapters/claude/scripts/lib/entry-discovery.mjs +123 -0
- package/adapters/claude/scripts/setup-checks.mjs +267 -0
- package/adapters/claude/skills/help/SKILL.md +17 -4
- package/adapters/claude/skills/quickstart/SKILL.md +56 -1
- package/adapters/claude/skills/setup/SKILL.md +58 -6
- package/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/adapters/codex/INSTALL.md +19 -15
- package/adapters/codex/agent-methods/catalog.yaml +4 -4
- package/adapters/codex/compatibility.json +4 -4
- package/adapters/codex/family-apis/catalog.json +1 -1
- package/adapters/codex/scripts/lib/entry-discovery.mjs +123 -0
- package/adapters/codex/scripts/setup-checks.mjs +267 -0
- package/adapters/codex/skills/help/SKILL.md +17 -4
- package/adapters/codex/skills/quickstart/SKILL.md +56 -1
- package/adapters/codex/skills/setup/SKILL.md +58 -6
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/INSTALL.md +19 -15
- package/adapters/kimi/agent-methods/catalog.yaml +4 -4
- package/adapters/kimi/compatibility.json +4 -4
- package/adapters/kimi/family-apis/catalog.json +1 -1
- package/adapters/kimi/scripts/lib/entry-discovery.mjs +123 -0
- package/adapters/kimi/scripts/setup-checks.mjs +267 -0
- package/adapters/kimi/skills/help/SKILL.md +17 -4
- package/adapters/kimi/skills/quickstart/SKILL.md +56 -1
- package/adapters/kimi/skills/setup/SKILL.md +58 -6
- package/agent-methods/catalog.yaml +4 -4
- package/compatibility.json +4 -4
- package/family-apis/catalog.json +1 -1
- package/package.json +3 -3
- package/scripts/build-runtime-bundles.mjs +1 -0
- package/scripts/lib/entry-discovery.mjs +123 -0
- package/scripts/setup-checks.mjs +267 -0
- package/skills/help/SKILL.md +17 -4
- package/skills/quickstart/SKILL.md +56 -1
- package/skills/setup/SKILL.md +58 -6
- package/skills-src/help/SKILL.md +17 -4
- package/skills-src/quickstart/SKILL.md +56 -1
- package/skills-src/setup/SKILL.md +58 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifact-chain-assistant",
|
|
3
3
|
"displayName": "Artifact Chain Assistant",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "Artifact-chain intake, review/repair/batch/audit workflows, diagnostics, and version-lock maintenance helpers.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "广州市风荷科技有限公司"
|
package/.kimi-plugin/plugin.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added the product-owned setup runner and entry-discovery contract to every generated Codex,
|
|
8
|
+
Claude Code, and Kimi Code surface. Setup reports native-binding failures from structured doctor
|
|
9
|
+
output and keeps bootstrap behind explicit write authorization.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Aligned the existing 16-entry method catalog, generated host surfaces, and documentation with the
|
|
14
|
+
canonical `help`, `quickstart`, and `setup` entry semantics.
|
|
15
|
+
- Runtime compatibility, installation commands, plugin manifests, Family API metadata, and adapter
|
|
16
|
+
catalogs are synchronized with `artifact-graph@0.10.0`.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Entry skills resolve shared scripts from the installed plugin root. Their behavior no longer
|
|
21
|
+
depends on the target project's working directory or a parent-repository layout.
|
|
22
|
+
|
|
3
23
|
## 0.9.4
|
|
4
24
|
|
|
5
25
|
### Added
|
package/INSTALL.md
CHANGED
|
@@ -15,7 +15,7 @@ instructions.
|
|
|
15
15
|
## Prerequisites
|
|
16
16
|
|
|
17
17
|
- Node.js `>=22.0.0`.
|
|
18
|
-
- `artifact-graph` 0.
|
|
18
|
+
- `artifact-graph` 0.10.0 installed in the target project.
|
|
19
19
|
- **GitHub SSH key** — Claude Code clones `source: github` entries over SSH by default. If you
|
|
20
20
|
have not configured a GitHub SSH key, set `CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1` in your shell
|
|
21
21
|
profile, or add the marketplace with an explicit `https://` URL. Codex users can check
|
|
@@ -27,24 +27,24 @@ instructions.
|
|
|
27
27
|
|
|
28
28
|
| Plugin | Verified Runtime | Install |
|
|
29
29
|
| --- | --- | --- |
|
|
30
|
-
| `artifact-chain-assistant` 0.
|
|
30
|
+
| `artifact-chain-assistant` 0.10.0 | `artifact-graph` 0.10.0 | `pnpm add -D artifact-graph@0.10.0` |
|
|
31
31
|
|
|
32
32
|
### Install The Runtime
|
|
33
33
|
|
|
34
34
|
The default installation path uses the npm registry with a precise version:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
pnpm add -D artifact-graph@0.
|
|
37
|
+
pnpm add -D artifact-graph@0.10.0
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
If the npm registry is unavailable, use the explicit GitHub fallback pinned to the verified tag:
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.
|
|
43
|
+
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.10.0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
> **Never** install with an unlocked range (`artifact-graph`, `artifact-graph@latest`,
|
|
47
|
-
> `artifact-graph@^0.
|
|
47
|
+
> `artifact-graph@^0.10.0`) or an unpinned GitHub URL (`github:ifoohoo/artifact-graph`).
|
|
48
48
|
> Unlocked installs produce non-reproducible dependency trees and break version-lock audit.
|
|
49
49
|
|
|
50
50
|
With pnpm 10+, projects that install `artifact-graph` must allow the native `better-sqlite3`
|
|
@@ -71,7 +71,7 @@ allowBuilds:
|
|
|
71
71
|
|
|
72
72
|
The plugin's `doctor` command validates the installed runtime version before running any
|
|
73
73
|
diagnostic. If it detects a version mismatch or missing CLI, it reports the exact remediation
|
|
74
|
-
command (`pnpm add -D artifact-graph@0.
|
|
74
|
+
command (`pnpm add -D artifact-graph@0.10.0`) and exits non-zero.
|
|
75
75
|
|
|
76
76
|
### CLI Resolution Order
|
|
77
77
|
|
|
@@ -146,7 +146,7 @@ wrappers, and Stop-hook guardrail. These assistant controls do not replace Git h
|
|
|
146
146
|
|
|
147
147
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
148
148
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
149
|
-
> must publish and enable `artifact-chain-assistant` 0.
|
|
149
|
+
> must publish and enable `artifact-chain-assistant` 0.10.0 before the install commands above will
|
|
150
150
|
> succeed.
|
|
151
151
|
|
|
152
152
|
### Kimi Code
|
|
@@ -210,15 +210,19 @@ adapter doctor.
|
|
|
210
210
|
|
|
211
211
|
After installing the plugin, use these entry points to understand available capabilities:
|
|
212
212
|
|
|
213
|
-
1. **`help`** — Run this skill
|
|
214
|
-
It shows
|
|
215
|
-
|
|
213
|
+
1. **`help`** — Run this skill when you ask "what can this plugin do" or "how does the artifact
|
|
214
|
+
chain work". It shows the standard Family API catalog and bundled legacy methods — the plugin's
|
|
215
|
+
capabilities and what the artifact chain is for — without claiming any are installed, enabled, or
|
|
216
|
+
verified for your project. Installation of the plugin does NOT mean families are bound or providers
|
|
217
|
+
are active. If the Registry is missing, it still runs and honestly lists which standard services
|
|
218
|
+
are not yet executable.
|
|
216
219
|
|
|
217
|
-
2. **`setup`** — Run this skill
|
|
220
|
+
2. **`setup`** — Run this skill when you ask "is my environment ready". It performs read-only
|
|
221
|
+
environment diagnostics: plugin closure integrity, Node/CLI
|
|
218
222
|
availability, doctor output, project config, version lock, and registry availability. It outputs a structured status
|
|
219
223
|
report with PASS/WARN/FAIL for each check plus precise next steps, and writes nothing without explicit authorization.
|
|
220
224
|
|
|
221
|
-
3. **`quickstart`** — Run this skill when unsure which skill to use. It routes your intent to the correct skill:
|
|
225
|
+
3. **`quickstart`** — Run this skill when getting started or unsure which skill to use. It routes your intent to the correct skill via a deterministic routing table covering common Chinese/English requests:
|
|
222
226
|
capability questions go to `help`, environment checks to `setup`, initialization to `setup` then bootstrap,
|
|
223
227
|
project triage to `where-am-i`, maintenance to `maintainer`, and explicit artifact tasks to the matching family/service.
|
|
224
228
|
|
|
@@ -253,7 +257,7 @@ The plugin should not move these files into the plugin repository.
|
|
|
253
257
|
|
|
254
258
|
For a first-time setup, the end-to-end sequence is:
|
|
255
259
|
|
|
256
|
-
1. **Install the CLI** — `pnpm add -D artifact-graph@0.
|
|
260
|
+
1. **Install the CLI** — `pnpm add -D artifact-graph@0.10.0` (see Prerequisites above).
|
|
257
261
|
2. **Install the plugin** — follow the Codex or Claude Code section above.
|
|
258
262
|
3. **Run bootstrap** — ask the assistant to use the `artifact-chain-bootstrap` skill (see prompt
|
|
259
263
|
below). The skill will:
|
|
@@ -1051,7 +1055,7 @@ with append-only behavior; it does not overwrite local rules.
|
|
|
1051
1055
|
### Recovery Steps
|
|
1052
1056
|
|
|
1053
1057
|
```bash
|
|
1054
|
-
# 1. Install dependencies from lockfile (gets artifact-graph@0.
|
|
1058
|
+
# 1. Install dependencies from lockfile (gets artifact-graph@0.10.0)
|
|
1055
1059
|
pnpm install --frozen-lockfile
|
|
1056
1060
|
|
|
1057
1061
|
# 2. Install plugin per your host (Codex / Claude Code / Kimi Code)
|
|
@@ -1118,7 +1122,7 @@ pnpm exec artifact-graph hooks install-git --hook all
|
|
|
1118
1122
|
### Enterprise Mirror
|
|
1119
1123
|
|
|
1120
1124
|
If the corporate environment cannot access the public npm registry or GitHub, mirror both
|
|
1121
|
-
`artifact-graph@0.
|
|
1125
|
+
`artifact-graph@0.10.0` and the plugin marketplace repository on an internal registry. The mirror
|
|
1122
1126
|
does not change the state ownership model: Git-tracked files remain authoritative, local caches
|
|
1123
1127
|
remain derived.
|
|
1124
1128
|
|
package/README.md
CHANGED
|
@@ -154,13 +154,13 @@ override, compact query, fallback behavior, and `PLUGIN_ROOT` discovery, see
|
|
|
154
154
|
|
|
155
155
|
| Plugin | Runtime | Install |
|
|
156
156
|
| --- | --- | --- |
|
|
157
|
-
| `artifact-chain-assistant` 0.
|
|
157
|
+
| `artifact-chain-assistant` 0.10.0 | `artifact-graph` 0.10.0 | `pnpm add -D artifact-graph@0.10.0` |
|
|
158
158
|
|
|
159
159
|
## Install
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
162
|
# Runtime (required)
|
|
163
|
-
npm install --save-dev artifact-graph@0.
|
|
163
|
+
npm install --save-dev artifact-graph@0.10.0
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
```bash
|
|
@@ -182,7 +182,7 @@ codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
|
182
182
|
|
|
183
183
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
184
184
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
185
|
-
> must publish and enable `artifact-chain-assistant` 0.
|
|
185
|
+
> must publish and enable `artifact-chain-assistant` 0.10.0 before the install commands above will
|
|
186
186
|
> succeed.
|
|
187
187
|
|
|
188
188
|
```text
|
|
@@ -211,7 +211,7 @@ For the full installation guide, quick start, Agent prompts, and clone onboardin
|
|
|
211
211
|
|
|
212
212
|
## Quick Start
|
|
213
213
|
|
|
214
|
-
1. Install plugin 0.
|
|
214
|
+
1. Install plugin 0.10.0 (above) and runtime: `pnpm add -D artifact-graph@0.10.0`.
|
|
215
215
|
2. Run `artifact-graph doctor --root . --format json` to verify the runtime.
|
|
216
216
|
3. For first-time setup, use the bootstrap skill.
|
|
217
217
|
4. For daily work, use the maintainer skill.
|
package/README.zh-CN.md
CHANGED
|
@@ -201,13 +201,13 @@ catalog 还包含 `artifact.generate`,用于从模板和 profile 配置生成
|
|
|
201
201
|
|
|
202
202
|
| 插件 | 运行时 | 安装 |
|
|
203
203
|
| --- | --- | --- |
|
|
204
|
-
| `artifact-chain-assistant` 0.
|
|
204
|
+
| `artifact-chain-assistant` 0.10.0 | `artifact-graph` 0.10.0 | `pnpm add -D artifact-graph@0.10.0` |
|
|
205
205
|
|
|
206
206
|
## 安装
|
|
207
207
|
|
|
208
208
|
```bash
|
|
209
209
|
# 运行时(必需)
|
|
210
|
-
npm install --save-dev artifact-graph@0.
|
|
210
|
+
npm install --save-dev artifact-graph@0.10.0
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
```bash
|
|
@@ -229,7 +229,7 @@ codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
|
229
229
|
|
|
230
230
|
> **市场说明**:`ifoohoo/artifact-skill-set` 是外部独立市场,插件载荷仍由
|
|
231
231
|
> `ifoohoo/artifact-chain-assistant` 发布。市场条目必须先发布并启用
|
|
232
|
-
> `artifact-chain-assistant` 0.
|
|
232
|
+
> `artifact-chain-assistant` 0.10.0,上述安装命令才能生效。
|
|
233
233
|
|
|
234
234
|
```text
|
|
235
235
|
# Kimi Code 插件(交互式,user 作用域)
|
|
@@ -256,7 +256,7 @@ Qoder 当前承诺的边界是技能安装与发现;不提供 Claude Code 的
|
|
|
256
256
|
|
|
257
257
|
## 快速开始
|
|
258
258
|
|
|
259
|
-
1. 安装插件 0.
|
|
259
|
+
1. 安装插件 0.10.0(见上文)和运行时:`pnpm add -D artifact-graph@0.10.0`。
|
|
260
260
|
2. 运行 `artifact-graph doctor --root . --format json` 验证运行时。
|
|
261
261
|
3. 首次搭建,进入 bootstrap 技能。
|
|
262
262
|
4. 日常工作,进入 maintainer 技能。
|
|
@@ -18,7 +18,7 @@ instructions.
|
|
|
18
18
|
## Prerequisites
|
|
19
19
|
|
|
20
20
|
- Node.js `>=22.0.0`.
|
|
21
|
-
- `artifact-graph` 0.
|
|
21
|
+
- `artifact-graph` 0.10.0 installed in the target project.
|
|
22
22
|
- **GitHub SSH key** — Claude Code clones `source: github` entries over SSH by default. If you
|
|
23
23
|
have not configured a GitHub SSH key, set `CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1` in your shell
|
|
24
24
|
profile, or add the marketplace with an explicit `https://` URL. Codex users can check
|
|
@@ -30,24 +30,24 @@ instructions.
|
|
|
30
30
|
|
|
31
31
|
| Plugin | Verified Runtime | Install |
|
|
32
32
|
| --- | --- | --- |
|
|
33
|
-
| `artifact-chain-assistant` 0.
|
|
33
|
+
| `artifact-chain-assistant` 0.10.0 | `artifact-graph` 0.10.0 | `pnpm add -D artifact-graph@0.10.0` |
|
|
34
34
|
|
|
35
35
|
### Install The Runtime
|
|
36
36
|
|
|
37
37
|
The default installation path uses the npm registry with a precise version:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
pnpm add -D artifact-graph@0.
|
|
40
|
+
pnpm add -D artifact-graph@0.10.0
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
If the npm registry is unavailable, use the explicit GitHub fallback pinned to the verified tag:
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.
|
|
46
|
+
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.10.0
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
> **Never** install with an unlocked range (`artifact-graph`, `artifact-graph@latest`,
|
|
50
|
-
> `artifact-graph@^0.
|
|
50
|
+
> `artifact-graph@^0.10.0`) or an unpinned GitHub URL (`github:ifoohoo/artifact-graph`).
|
|
51
51
|
> Unlocked installs produce non-reproducible dependency trees and break version-lock audit.
|
|
52
52
|
|
|
53
53
|
With pnpm 10+, projects that install `artifact-graph` must allow the native `better-sqlite3`
|
|
@@ -74,7 +74,7 @@ allowBuilds:
|
|
|
74
74
|
|
|
75
75
|
The plugin's `doctor` command validates the installed runtime version before running any
|
|
76
76
|
diagnostic. If it detects a version mismatch or missing CLI, it reports the exact remediation
|
|
77
|
-
command (`pnpm add -D artifact-graph@0.
|
|
77
|
+
command (`pnpm add -D artifact-graph@0.10.0`) and exits non-zero.
|
|
78
78
|
|
|
79
79
|
### CLI Resolution Order
|
|
80
80
|
|
|
@@ -149,7 +149,7 @@ wrappers, and Stop-hook guardrail. These assistant controls do not replace Git h
|
|
|
149
149
|
|
|
150
150
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
151
151
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
152
|
-
> must publish and enable `artifact-chain-assistant` 0.
|
|
152
|
+
> must publish and enable `artifact-chain-assistant` 0.10.0 before the install commands above will
|
|
153
153
|
> succeed.
|
|
154
154
|
|
|
155
155
|
### Kimi Code
|
|
@@ -213,15 +213,19 @@ adapter doctor.
|
|
|
213
213
|
|
|
214
214
|
After installing the plugin, use these entry points to understand available capabilities:
|
|
215
215
|
|
|
216
|
-
1. **`help`** — Run this skill
|
|
217
|
-
It shows
|
|
218
|
-
|
|
216
|
+
1. **`help`** — Run this skill when you ask "what can this plugin do" or "how does the artifact
|
|
217
|
+
chain work". It shows the standard Family API catalog and bundled legacy methods — the plugin's
|
|
218
|
+
capabilities and what the artifact chain is for — without claiming any are installed, enabled, or
|
|
219
|
+
verified for your project. Installation of the plugin does NOT mean families are bound or providers
|
|
220
|
+
are active. If the Registry is missing, it still runs and honestly lists which standard services
|
|
221
|
+
are not yet executable.
|
|
219
222
|
|
|
220
|
-
2. **`setup`** — Run this skill
|
|
223
|
+
2. **`setup`** — Run this skill when you ask "is my environment ready". It performs read-only
|
|
224
|
+
environment diagnostics: plugin closure integrity, Node/CLI
|
|
221
225
|
availability, doctor output, project config, version lock, and registry availability. It outputs a structured status
|
|
222
226
|
report with PASS/WARN/FAIL for each check plus precise next steps, and writes nothing without explicit authorization.
|
|
223
227
|
|
|
224
|
-
3. **`quickstart`** — Run this skill when unsure which skill to use. It routes your intent to the correct skill:
|
|
228
|
+
3. **`quickstart`** — Run this skill when getting started or unsure which skill to use. It routes your intent to the correct skill via a deterministic routing table covering common Chinese/English requests:
|
|
225
229
|
capability questions go to `help`, environment checks to `setup`, initialization to `setup` then bootstrap,
|
|
226
230
|
project triage to `where-am-i`, maintenance to `maintainer`, and explicit artifact tasks to the matching family/service.
|
|
227
231
|
|
|
@@ -256,7 +260,7 @@ The plugin should not move these files into the plugin repository.
|
|
|
256
260
|
|
|
257
261
|
For a first-time setup, the end-to-end sequence is:
|
|
258
262
|
|
|
259
|
-
1. **Install the CLI** — `pnpm add -D artifact-graph@0.
|
|
263
|
+
1. **Install the CLI** — `pnpm add -D artifact-graph@0.10.0` (see Prerequisites above).
|
|
260
264
|
2. **Install the plugin** — follow the Codex or Claude Code section above.
|
|
261
265
|
3. **Run bootstrap** — ask the assistant to use the `artifact-chain-bootstrap` skill (see prompt
|
|
262
266
|
below). The skill will:
|
|
@@ -1054,7 +1058,7 @@ with append-only behavior; it does not overwrite local rules.
|
|
|
1054
1058
|
### Recovery Steps
|
|
1055
1059
|
|
|
1056
1060
|
```bash
|
|
1057
|
-
# 1. Install dependencies from lockfile (gets artifact-graph@0.
|
|
1061
|
+
# 1. Install dependencies from lockfile (gets artifact-graph@0.10.0)
|
|
1058
1062
|
pnpm install --frozen-lockfile
|
|
1059
1063
|
|
|
1060
1064
|
# 2. Install plugin per your host (Codex / Claude Code / Kimi Code)
|
|
@@ -1121,7 +1125,7 @@ pnpm exec artifact-graph hooks install-git --hook all
|
|
|
1121
1125
|
### Enterprise Mirror
|
|
1122
1126
|
|
|
1123
1127
|
If the corporate environment cannot access the public npm registry or GitHub, mirror both
|
|
1124
|
-
`artifact-graph@0.
|
|
1128
|
+
`artifact-graph@0.10.0` and the plugin marketplace repository on an internal registry. The mirror
|
|
1125
1129
|
does not change the state ownership model: Git-tracked files remain authoritative, local caches
|
|
1126
1130
|
remain derived.
|
|
1127
1131
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
schemaVersion: 1
|
|
2
2
|
catalog:
|
|
3
3
|
id: artifact-chain-assistant
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.10.0"
|
|
5
5
|
entries:
|
|
6
6
|
- ref: artifact.prd-feature.default
|
|
7
7
|
provider:
|
|
@@ -247,7 +247,7 @@ entries:
|
|
|
247
247
|
plugin: artifact-chain-assistant
|
|
248
248
|
skill: help
|
|
249
249
|
kind: operation
|
|
250
|
-
summary: "
|
|
250
|
+
summary: "能力说明入口:回答\"能做什么\"、\"制品链怎么用\",展示标准 Family API、bundled legacy 方法和采用步骤;Registry 缺失时诚实降级"
|
|
251
251
|
match:
|
|
252
252
|
domains: [artifact]
|
|
253
253
|
artifactTypes: [design-spec, link, e2e, domain, contract, blueprint, verification, prd-feature, scenario-script]
|
|
@@ -265,7 +265,7 @@ entries:
|
|
|
265
265
|
plugin: artifact-chain-assistant
|
|
266
266
|
skill: setup
|
|
267
267
|
kind: operation
|
|
268
|
-
summary: "
|
|
268
|
+
summary: "环境诊断入口:回答\"环境准备好了吗\",只读检查插件闭包、CLI、config、版本锁、registry 可用性,输出 PASS/WARN/FAIL"
|
|
269
269
|
match:
|
|
270
270
|
domains: [artifact]
|
|
271
271
|
artifactTypes: [design-spec, link, e2e, domain, contract, blueprint, verification, prd-feature, scenario-script]
|
|
@@ -283,7 +283,7 @@ entries:
|
|
|
283
283
|
plugin: artifact-chain-assistant
|
|
284
284
|
skill: quickstart
|
|
285
285
|
kind: operation
|
|
286
|
-
summary: "
|
|
286
|
+
summary: "上手路径入口:不知道用哪个技能时,按确定性路由表把自然语言需求路由到 help/setup/where-am-i 等正确入口"
|
|
287
287
|
match:
|
|
288
288
|
domains: [artifact]
|
|
289
289
|
artifactTypes: [design-spec, link, e2e, domain, contract, blueprint, verification, prd-feature, scenario-script]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0",
|
|
3
|
-
"pluginVersion": "0.
|
|
3
|
+
"pluginVersion": "0.10.0",
|
|
4
4
|
"artifactGraph": {
|
|
5
|
-
"verifiedVersion": "0.
|
|
6
|
-
"installSpec": "artifact-graph@0.
|
|
7
|
-
"githubFallbackSpec": "github:ifoohoo/artifact-graph#artifact-graph-v0.
|
|
5
|
+
"verifiedVersion": "0.10.0",
|
|
6
|
+
"installSpec": "artifact-graph@0.10.0",
|
|
7
|
+
"githubFallbackSpec": "github:ifoohoo/artifact-graph#artifact-graph-v0.10.0"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// @feature ACA21
|
|
2
|
+
// @scenario S-91
|
|
3
|
+
// @decision D-ACA-26
|
|
4
|
+
// 入口可发现性确定性合同:三类自然语言意图的关键词集合与 quickstart 确定性路由表。
|
|
5
|
+
// 本文件是三入口发现表面的唯一权威事实源;skills-src 三入口 description、catalog.yaml、
|
|
6
|
+
// 安装文档与生成适配器副本必须与其保持一致(由 entry-discovery-contract 测试断言)。
|
|
7
|
+
|
|
8
|
+
export const discoveryIntentClasses = [
|
|
9
|
+
{
|
|
10
|
+
id: 'capability',
|
|
11
|
+
zh: '能力说明',
|
|
12
|
+
en: 'capability overview',
|
|
13
|
+
keywords: {
|
|
14
|
+
zh: ['能做什么', '有哪些能力', '能力说明'],
|
|
15
|
+
en: ['what can', 'capabilities'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'onboarding',
|
|
20
|
+
zh: '上手路径',
|
|
21
|
+
en: 'getting-started path',
|
|
22
|
+
keywords: {
|
|
23
|
+
zh: ['怎么上手', '如何开始', '不知道用哪个'],
|
|
24
|
+
en: ['getting started', 'unsure which skill'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'artifact-chain-purpose',
|
|
29
|
+
zh: '制品链用途',
|
|
30
|
+
en: 'artifact chain purpose',
|
|
31
|
+
keywords: {
|
|
32
|
+
zh: ['制品链怎么用', '制品链'],
|
|
33
|
+
en: ['artifact chain'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
// 确定性路由目标集合:target 是稳定标识,quickstart 路由表与测试共同引用。
|
|
39
|
+
export const routingTargets = {
|
|
40
|
+
help: {
|
|
41
|
+
skill: 'help',
|
|
42
|
+
authorizationGate: false,
|
|
43
|
+
summary: '能力说明:展示标准 Family API、bundled legacy 方法和采用步骤',
|
|
44
|
+
},
|
|
45
|
+
setup: {
|
|
46
|
+
skill: 'setup',
|
|
47
|
+
authorizationGate: false,
|
|
48
|
+
summary: '环境诊断:只读环境检查,输出 PASS/WARN/FAIL 状态报告',
|
|
49
|
+
},
|
|
50
|
+
'setup-then-bootstrap': {
|
|
51
|
+
skill: 'artifact-chain-bootstrap',
|
|
52
|
+
authorizationGate: true,
|
|
53
|
+
summary: '写入初始化:先经 setup 只读检查,获得用户明确授权后才进入 bootstrap',
|
|
54
|
+
},
|
|
55
|
+
'where-am-i': {
|
|
56
|
+
skill: 'where-am-i',
|
|
57
|
+
authorizationGate: false,
|
|
58
|
+
summary: '模糊项目任务:搜索项目配置与制品图,输出项目事实和路由建议',
|
|
59
|
+
},
|
|
60
|
+
maintainer: {
|
|
61
|
+
skill: 'artifact-chain-maintainer',
|
|
62
|
+
authorizationGate: false,
|
|
63
|
+
summary: '日常维护:版本锁刷新、hook 管理等维护任务',
|
|
64
|
+
},
|
|
65
|
+
'family-service': {
|
|
66
|
+
skill: null,
|
|
67
|
+
authorizationGate: false,
|
|
68
|
+
summary: '明确制品任务:路由到对应 family/service 专业入口',
|
|
69
|
+
},
|
|
70
|
+
ask: {
|
|
71
|
+
skill: null,
|
|
72
|
+
authorizationGate: false,
|
|
73
|
+
summary: '意图不明确:输出追问而非猜测路由',
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// 常见中英文自然语言需求的最小覆盖集。phrase 全部小写比较;lang 标注语言。
|
|
78
|
+
export const routingVectors = [
|
|
79
|
+
{ phrase: '你能做什么', lang: 'zh', target: 'help' },
|
|
80
|
+
{ phrase: '这个插件有哪些能力', lang: 'zh', target: 'help' },
|
|
81
|
+
{ phrase: '这个项目的制品链怎么用', lang: 'zh', target: 'help' },
|
|
82
|
+
{ phrase: 'what can this plugin do', lang: 'en', target: 'help' },
|
|
83
|
+
{ phrase: 'how does the artifact chain work', lang: 'en', target: 'help' },
|
|
84
|
+
{ phrase: '我的环境准备好了吗', lang: 'zh', target: 'setup' },
|
|
85
|
+
{ phrase: '帮我检查一下环境', lang: 'zh', target: 'setup' },
|
|
86
|
+
{ phrase: 'is my environment ready', lang: 'en', target: 'setup' },
|
|
87
|
+
{ phrase: '帮我初始化这个项目', lang: 'zh', target: 'setup-then-bootstrap' },
|
|
88
|
+
{ phrase: '怎么开始使用这个插件', lang: 'zh', target: 'setup-then-bootstrap' },
|
|
89
|
+
{ phrase: 'initialize this project', lang: 'en', target: 'setup-then-bootstrap' },
|
|
90
|
+
{ phrase: 'how do i get started', lang: 'en', target: 'setup-then-bootstrap' },
|
|
91
|
+
{ phrase: '我下一步该做什么', lang: 'zh', target: 'where-am-i' },
|
|
92
|
+
{ phrase: '这个项目现在该从哪里入手', lang: 'zh', target: 'where-am-i' },
|
|
93
|
+
{ phrase: 'what should i do next', lang: 'en', target: 'where-am-i' },
|
|
94
|
+
{ phrase: '帮我刷新版本锁', lang: 'zh', target: 'maintainer' },
|
|
95
|
+
{ phrase: 'refresh the version lock', lang: 'en', target: 'maintainer' },
|
|
96
|
+
{ phrase: '请审阅这个 PRD feature', lang: 'zh', target: 'family-service' },
|
|
97
|
+
{ phrase: 'review this design spec', lang: 'en', target: 'family-service' },
|
|
98
|
+
{ phrase: '随便看看', lang: 'zh', target: 'ask' },
|
|
99
|
+
{ phrase: 'hello', lang: 'en', target: 'ask' },
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
// 从 quickstart SKILL.md 正文提取确定性路由表 JSON 块。
|
|
103
|
+
export function extractRoutingTable(skillMarkdown) {
|
|
104
|
+
const match = skillMarkdown.match(/```json quickstart-routing-table\n([\s\S]*?)\n```/);
|
|
105
|
+
if (!match) return null;
|
|
106
|
+
try {
|
|
107
|
+
return JSON.parse(match[1]);
|
|
108
|
+
} catch {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// 从 SKILL.md 提取 frontmatter 字段(name/description)。
|
|
114
|
+
export function parseFrontmatter(skillMarkdown) {
|
|
115
|
+
const match = skillMarkdown.match(/^---\n([\s\S]*?)\n---/);
|
|
116
|
+
if (!match) return null;
|
|
117
|
+
const fields = {};
|
|
118
|
+
for (const line of match[1].split('\n')) {
|
|
119
|
+
const kv = line.match(/^(\w+):\s*(.*)$/);
|
|
120
|
+
if (kv) fields[kv[1]] = kv[2].trim();
|
|
121
|
+
}
|
|
122
|
+
return fields;
|
|
123
|
+
}
|