@yottameta/yotta-skills-plugin 0.19.12 → 0.19.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/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/yotta-skills/SKILL.md +9 -5
- package/skills/yotta-skills/bin/yotta-skills.js +27 -3
- package/skills/yotta-skills/references/skill-list.md +3 -3
- package/skills/yotta-skills/scripts/yotta-skills-mcp.py +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"authentication": "ON_INSTALL"
|
|
13
13
|
},
|
|
14
14
|
"category": "Developer Tools",
|
|
15
|
-
"version": "0.19.
|
|
15
|
+
"version": "0.19.14",
|
|
16
16
|
"description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
|
|
17
17
|
"interface": {
|
|
18
18
|
"displayName": "元阁 yotta-skills",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"authentication": "ON_INSTALL"
|
|
13
13
|
},
|
|
14
14
|
"category": "Developer Tools",
|
|
15
|
-
"version": "0.19.
|
|
15
|
+
"version": "0.19.14",
|
|
16
16
|
"description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
|
|
17
17
|
"interface": {
|
|
18
18
|
"displayName": "元阁 yotta-skills",
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "yotta-skills",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.14",
|
|
5
5
|
"description": "YuanGe (元阁) - orchestration routing, inventory, and one-command installer for the YottaMeta skill family (zero dependencies, Node.js only).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "YottaMeta",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yotta-skills
|
|
3
|
-
version: 0.19.
|
|
3
|
+
version: 0.19.14
|
|
4
4
|
description: 元阁 -- 元阁全家技能的总编排策划 + 编排路由 + 一键安装器 + 技能盘点 + 运行时 hook 适配。路由层:--route / route_request 按需求摘要给出候选组合、调用顺序、角色、置信度、依据、已装/缺失状态与安装命令,只建议不自动安装;非元阁家族已装技能按 frontmatter description 机械匹配作并列候选(标注来源与未扫描状态,只读不自动调用);策划层:按场景给出「该组合哪几个元技能、组合强在哪、怎么组合使用(安装与调用均由用户确认后执行)」;安装层:一条命令把 YottaMeta 已发布的全部 yotta-* 技能装进指定智能体或目录(默认 --pin 锁死清单精确版本);盘点层:--inventory / --reindex 扫描本机已装技能生成/更新注册表,新装技能自动被发现(install/update 后自动 re-index,会话开工只建议跑本地 --reindex;更新检查走手动 --check 或后台 --check --scheduled);运行时适配层:hook capabilities / evaluate / bind / unbind 按宿主能力矩阵执行六个统一事件并留证降级,元信 before_install 已接入安装管线;自包含零依赖,不依赖任何元技能;MCP 按需加载且需用户确认后写入配置(可选:list_installed_skills/describe_skill/reindex/route_request,不常驻,未加载降级 CLI)。支持 --list 清单 / --route 路由 / install / update / update --check(只读检查)/ update --check --scheduled(后台周检)/ update --auto(家族自动更新)/ hook 适配 / --inventory / --reindex / --dry-run 预览 / --pin(默认)/ --range。触发:需要批量安装或更新元阁全家技能、按场景组合多个元技能、路由或判断该用哪些技能、盘点或查看本机已装技能、重扫技能注册表、给某个智能体或目录一次性铺齐 yotta-* 技能、评估宿主 hook 能力、预览安装清单、锁版本安装、或用户说 元阁/装全家/一次装齐/yotta-skills/install-all/更新全家/检查更新/自动更新/hook 适配/该用哪个技能/路由技能/盘点技能/查看已装技能 等。边界(Do NOT trigger):只做「组合策划 + 静态路由建议 + 清单 + 下载 + 落位 + 汇总 + 盘点 + re-index + hook 适配」,不含技能本体、不做技能内容开发、不 -g 污染全局、不自动安装缺失技能、不静默写宿主配置或全局记忆;家族安装先自举或调用元信装前门禁,DO NOT INSTALL 阻断,非元阁家族包不自动安装。
|
|
5
5
|
license: MIT
|
|
6
6
|
metadata:
|
|
@@ -341,10 +341,14 @@ npx -y @yottameta/yotta-skills --route "检查代码质量,别糊弄" --json
|
|
|
341
341
|
- `INSTALL WITH CAUTION` / `REVIEW REQUIRED`:继续安装,但显示风险并写入证据;
|
|
342
342
|
- `DO NOT INSTALL` 或扫描失败:阻断,不替换旧版本。
|
|
343
343
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
引擎查找顺序(v0.19.13 收紧):`--verify` 指定路径 → 环境变量 `YOTTA_SKILLS_VERIFY` →
|
|
345
|
+
**受信安装记录**(`~/.yottaskills/trusted-verifier.json`,由安装管线在元信安装 / 更新成功后写入,
|
|
346
|
+
记录包身份 + 引擎路径 + SHA-256)。候选引擎必须同时满足:路径不经符号链接跳转、
|
|
347
|
+
包内 `SKILL.md` 与 `skill-manifest.json` 身份一致(slug / package / trust / 版本)、
|
|
348
|
+
引擎摘要与记录一致;任一不满足即 fail-closed,改走自举安装。
|
|
349
|
+
不再按本地注册表里 `name: yotta-verify` 的目录发现引擎。
|
|
350
|
+
`--skip-scan` 只保留为人工应急路径,使用时输出 `explicit-unverified` 并写入
|
|
351
|
+
`~/.yottaskills/install-log.jsonl`;`update --auto` 不会使用该开关。
|
|
348
352
|
|
|
349
353
|
## 支持智能体
|
|
350
354
|
|
|
@@ -29,6 +29,7 @@ const http = require('http');
|
|
|
29
29
|
const https = require('https');
|
|
30
30
|
const evidenceLib = require('../lib/install-evidence');
|
|
31
31
|
const gateLib = require('../lib/verify-gate');
|
|
32
|
+
const trustedVerifierLib = require('../lib/trusted-verifier');
|
|
32
33
|
const healthLib = require('../lib/install-health');
|
|
33
34
|
const lifecycleLib = require('../lib/install-lifecycle');
|
|
34
35
|
const snapshotLib = require('../lib/install-snapshot');
|
|
@@ -37,7 +38,7 @@ const hookAdapterLib = require('../lib/hook-adapter');
|
|
|
37
38
|
const { createInstaller, isSafeTarEntry } = require('../lib/install-pipeline');
|
|
38
39
|
|
|
39
40
|
const PKG_ROOT = path.join(__dirname, '..');
|
|
40
|
-
let VERSION = '0.19.
|
|
41
|
+
let VERSION = '0.19.14';
|
|
41
42
|
try { VERSION = require(path.join(PKG_ROOT, 'package.json')).version; } catch (_) { /* keep fallback */ }
|
|
42
43
|
|
|
43
44
|
function loadManifest() {
|
|
@@ -542,8 +543,26 @@ function detectProjectDir() {
|
|
|
542
543
|
|
|
543
544
|
// ── 元信 scan 与安装门禁 ──────────────────────────────────────────────────
|
|
544
545
|
function findVerifyEngine(dest, opts) {
|
|
545
|
-
|
|
546
|
-
|
|
546
|
+
// v0.19.13:不再用注册表(身份来自被扫描技能自己的 frontmatter)发现校验器,
|
|
547
|
+
// 只认安装管线写入的受信记录(路径 + 摘要双绑定)。
|
|
548
|
+
return gateLib.findVerifier({ dest, opts, trustedVerifier: trustedVerifierLib.loadRecord() });
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/** 安装 / 更新元信成功后写入受信记录(身份 + 摘要),后续门禁只认这份记录。 */
|
|
552
|
+
function recordTrustedVerifier(dest) {
|
|
553
|
+
const engine = path.join(dest, 'yotta-verify', 'scripts', 'yotta_verify.py');
|
|
554
|
+
const check = trustedVerifierLib.verifyEngine(engine, { requireRecord: false });
|
|
555
|
+
if (!check.ok) return null;
|
|
556
|
+
const record = {
|
|
557
|
+
slug: check.info.slug,
|
|
558
|
+
package: check.info.package,
|
|
559
|
+
version: check.info.version,
|
|
560
|
+
path: check.path,
|
|
561
|
+
sha256: check.info.sha256,
|
|
562
|
+
recordedAt: new Date().toISOString(),
|
|
563
|
+
};
|
|
564
|
+
trustedVerifierLib.saveRecord(record);
|
|
565
|
+
return record;
|
|
547
566
|
}
|
|
548
567
|
|
|
549
568
|
function findPython(opts) {
|
|
@@ -678,6 +697,9 @@ function ensureGate(context) {
|
|
|
678
697
|
if (result.status !== 'ok') return { ok: false, error: '元信自举失败: ' + result.note };
|
|
679
698
|
const installedEngine = path.join(dest, 'yotta-verify', 'scripts', 'yotta_verify.py');
|
|
680
699
|
if (!fs.existsSync(installedEngine)) return { ok: false, error: '元信自举后未找到安装引擎' };
|
|
700
|
+
if (!recordTrustedVerifier(dest)) {
|
|
701
|
+
return { ok: false, error: '元信自举后身份 / 摘要校验未通过(fail-closed,不执行该引擎)' };
|
|
702
|
+
}
|
|
681
703
|
return { ok: true, engine: installedEngine, mode: 'trusted-bootstrap' };
|
|
682
704
|
} finally {
|
|
683
705
|
if (tmp) fs.rmSync(tmp, { recursive: true, force: true });
|
|
@@ -708,6 +730,7 @@ function runInstall(opts, dest) {
|
|
|
708
730
|
if (r.gate && r.gate.mode === 'explicit-unverified') {
|
|
709
731
|
out(' ⚠ ' + s.slug.padEnd(22) + '未执行装前扫描(explicit-unverified)');
|
|
710
732
|
}
|
|
733
|
+
if (s.slug === 'yotta-verify') recordTrustedVerifier(dest);
|
|
711
734
|
out(' ✔ ' + s.slug.padEnd(22) + s.name + ' -> ' + (r.version || '?'));
|
|
712
735
|
}
|
|
713
736
|
else if (r.status === 'skip') out(' - ' + s.slug.padEnd(22) + s.name + ' (' + r.note + ',v' + r.version + ')');
|
|
@@ -744,6 +767,7 @@ function runUpdate(opts, dest) {
|
|
|
744
767
|
if (r.gate && r.gate.mode === 'explicit-unverified') {
|
|
745
768
|
out(' ⚠ ' + s.slug.padEnd(22) + '未执行装前扫描(explicit-unverified)');
|
|
746
769
|
}
|
|
770
|
+
if (s.slug === 'yotta-verify') recordTrustedVerifier(dest);
|
|
747
771
|
out(' ✔ ' + s.slug.padEnd(22) + s.name + ' -> ' + (r.version || '?') + (existing ? '(原 v' + existing + ')' : '(新装)'));
|
|
748
772
|
}
|
|
749
773
|
else if (r.status === 'skip') out(' - ' + s.slug.padEnd(22) + s.name + ' (' + r.note + ')');
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
| `yotta-anti-shallow` | 元谨 | `@yottameta/yotta-anti-shallow` | 1.4.0 | 防 AI 敷衍规则引擎(深入分析/根因追溯时激活) |
|
|
9
9
|
| `yotta-code-quality` | 元质 | `@yottameta/yotta-code-quality` | 0.4.1 | 结对式代码质量评审(十二类腐化风险 + 0-100 健康分) |
|
|
10
10
|
| `yotta-workflow` | 元序 | `@yottameta/yotta-workflow` | 0.4.1 | 跨会话/跨项目通用工作流协议(状态就近存) |
|
|
11
|
-
| `yotta-memory` | 元忆 | `@yottameta/yotta-memory` | 0.16.
|
|
11
|
+
| `yotta-memory` | 元忆 | `@yottameta/yotta-memory` | 0.16.2 | 有权限边界的文件式智能体记忆(FACT/PREF/BOUND/COMMIT) |
|
|
12
12
|
| `yotta-learn` | 元习 | `@yottameta/yotta-learn` | 0.2.1 | 学习沉淀 CLI:错误/纠正/洞见沉淀为 .learnings/ 条目 |
|
|
13
13
|
| `yotta-security-audit` | 元安 | `@yottameta/yotta-security-audit` | 0.2.4 | 安全扫描引擎:13 类检测器 + 系统安全基线 |
|
|
14
14
|
| `yotta-vetter` | 元审 | `@yottameta/yotta-vetter` | 0.2.5 | 安全审查协议:四阶段 review + SAFE TO INSTALL 判定 |
|
|
15
15
|
| `yotta-recon` | 元析 | `@yottameta/yotta-recon` | 0.1.7 | 跨智能体网络侦察:零依赖端口/服务/版本指纹探测 |
|
|
16
|
-
| `yotta-guardian` | 元盾 | `@yottameta/yotta-guardian` | 0.1.
|
|
16
|
+
| `yotta-guardian` | 元盾 | `@yottameta/yotta-guardian` | 0.1.5 | 跨智能体危险调用拦截护栏:确定性规则 + 可插拔意图验证 |
|
|
17
17
|
| `yotta-humanize` | 元真 | `@yottameta/yotta-humanize` | 0.2.1 | 去 AI 味中文写作编辑:检测器引擎 |
|
|
18
18
|
| `yotta-logs` | 元史 | `@yottameta/yotta-logs` | 0.3.1 | 跨智能体历史会话 / 记忆日志检索 |
|
|
19
19
|
| `yotta-security-testing` | 元测 | `@yottameta/yotta-security-testing` | 0.3.1 | 有纪律的 AI 安全测试方法论 + Scope Guard 五道防线 |
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
| `yotta-chain` | 元链 | `@yottameta/yotta-chain` | 0.1.4 | 供应链依赖校验引擎 |
|
|
27
27
|
| `yotta-triage` | 元鉴 | `@yottameta/yotta-triage` | 0.1.3 | 恶意样本静态初筛引擎(哈希/熵/字符串/PE-ELF) |
|
|
28
28
|
| `yotta-prompt` | 元引 | `@yottameta/yotta-prompt` | 0.2.2 | 意图澄清 + 生态入口(常驻注入,map 串联元阁全家) |
|
|
29
|
-
| `yotta-verify` | 元信 | `@yottameta/yotta-verify` | 0.3.
|
|
29
|
+
| `yotta-verify` | 元信 | `@yottameta/yotta-verify` | 0.3.2 | 装前安全扫描器 + audited 徽章(prompt injection + 危险模式) |
|
|
30
30
|
|
|
31
31
|
## 家族分布
|
|
32
32
|
|