📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-08-31 05:00:46 +08:00
parent 8fea3d18fe
commit 0b2b056032
347 changed files with 38446 additions and 136 deletions
@@ -0,0 +1,49 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/capability-bundle.schema.json",
"title": "Cangjie Capability Bundle (verified.yaml)",
"description": "唯一可编译事实源(ADR-002)。Agent/RIA-TV++ 蒸馏产出本文件 + cards/*.mdsingle 与 pack 只做确定性编译。",
"type": "object",
"required": ["schema_version", "bundle_id", "book", "entry", "router_entry", "promotion_budget", "capabilities"],
"properties": {
"schema_version": { "const": 1 },
"bundle_id": { "type": "string", "pattern": "^bundle\\.[a-z0-9-]+$" },
"book": {
"type": "object",
"required": ["title", "source_pack"],
"properties": {
"title": { "type": "string" },
"author": { "type": "string" },
"source_pack": { "type": "string" },
"baseline_tag": { "type": "string" }
}
},
"entry": {
"type": "object",
"description": "single 模式主入口(人工/Agent 确认,编译器不猜测)",
"required": ["name", "description", "core_principles", "out_of_scope", "stop_conditions"],
"properties": {
"name": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
"description": { "type": "string", "minLength": 40 },
"core_principles": { "type": "array", "minItems": 3, "maxItems": 7, "items": { "type": "string" } },
"out_of_scope": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"stop_conditions": { "type": "array", "minItems": 1, "items": { "type": "string" } }
}
},
"router_entry": {
"type": "object",
"description": "compact pack 来源路由入口",
"required": ["name", "description"],
"properties": {
"name": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
"description": { "type": "string", "minLength": 40 }
}
},
"promotion_budget": { "type": "integer", "minimum": 2, "default": 8, "description": "可发现入口总预算,含 1 个来源路由入口" },
"capabilities": {
"type": "array",
"minItems": 1,
"items": { "$ref": "https://cangjie-skill.org/schemas/capability.schema.json" }
}
}
}
@@ -0,0 +1,69 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/capability.schema.json",
"title": "Cangjie Capability",
"description": "单个稳定能力。生命周期见方案 §4.5.1:文案润色只加 revision,语义拆分/合并才换 ID。",
"type": "object",
"required": ["capability_id", "revision", "status", "slug", "title", "importance", "importance_rationale", "one_liner", "intents", "keywords", "card"],
"properties": {
"capability_id": { "type": "string", "pattern": "^cap\\.[a-z0-9-]+\\.[a-z0-9-]+$" },
"revision": { "type": "integer", "minimum": 1 },
"status": { "enum": ["active", "deprecated", "merged", "split"] },
"aliases": { "type": "array", "items": { "type": "string" }, "default": [] },
"supersedes": { "type": "array", "items": { "type": "string" }, "default": [] },
"merged_into": { "type": ["string", "null"], "default": null },
"split_into": { "type": "array", "items": { "type": "string" }, "default": [] },
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
"title": { "type": "string", "minLength": 2 },
"importance": { "enum": ["critical", "high", "medium", "low"] },
"importance_rationale": { "type": "string", "minLength": 8, "description": "必须附依据:引用图入度/DIGEST 篇幅/任务集命中/读者任务映射,不得纯自评" },
"one_liner": { "type": "string", "minLength": 4 },
"intents": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"keywords": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"also_read": { "type": "array", "items": { "type": "string" }, "default": [] },
"card": { "type": "string", "description": "能力卡正文相对路径(bundle 内),R/I/A1/A2/E/B 六段", "pattern": "^cards/[a-z0-9-]+\\.md$" },
"frontmatter": {
"type": "object",
"description": "晋级为独立 Skill 时使用的 frontmatter 数据(description/tags 等)",
"properties": {
"description": { "type": "string" },
"tags": { "type": "array", "items": { "type": "string" } }
}
},
"source_evidence": {
"type": "array",
"description": "来源定位:source_id + version_id + 章节/页码/时间戳/chunk_id",
"items": {
"type": "object",
"required": ["source_id"],
"properties": {
"source_id": { "type": "string" },
"version_id": { "type": "string" },
"location": { "type": "string" },
"chunk_ids": { "type": "array", "items": { "type": "string" } }
}
},
"default": []
},
"promotion": {
"type": "object",
"description": "阶段 1.6 晋级门评审结果",
"required": ["destination"],
"properties": {
"destination": { "enum": ["promoted", "router"] },
"gate": {
"type": "object",
"description": "五条判据;前 3 条必须为 true 才可 promoted,后 2 条至少 1 条为 true",
"properties": {
"independent_intent": { "type": "boolean" },
"independent_contract": { "type": "boolean" },
"independent_run": { "type": "boolean" },
"independent_reuse": { "type": "boolean" },
"independent_eval": { "type": "boolean" }
}
},
"notes": { "type": "string" }
}
}
}
}
@@ -0,0 +1,41 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/change-set.schema.json",
"title": "Cangjie Change Set",
"description": "新增/变更资料先生成 change-set,不直接改 Skill(方案 §6.2)。",
"type": "object",
"required": ["schema_version", "change_id", "content_pack", "created_at", "changes"],
"properties": {
"schema_version": { "const": 1 },
"change_id": { "type": "string" },
"content_pack": { "type": "string" },
"created_at": { "type": "string" },
"base_version": { "type": "string" },
"new_version": { "type": "string" },
"changes": {
"type": "array",
"items": {
"type": "object",
"required": ["change_type", "chunk_id"],
"properties": {
"change_type": { "enum": ["exact_duplicate", "near_duplicate", "additive", "correction", "contradiction", "deletion", "modified"] },
"chunk_id": { "type": "string" },
"old_hash": { "type": ["string", "null"] },
"new_hash": { "type": ["string", "null"] },
"heading_path": { "type": "array", "items": { "type": "string" } },
"requires_human_confirmation": { "type": "boolean", "default": false },
"note": { "type": "string" }
}
}
},
"summary": {
"type": "object",
"properties": {
"added": { "type": "integer" },
"removed": { "type": "integer" },
"modified": { "type": "integer" },
"unchanged": { "type": "integer" }
}
}
}
}
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/contracts/chunk.schema.json",
"title": "Chunk Contract v1",
"description": "结构感知块(chunks.jsonl 每行一条)。块必须尊重章节边界并可回溯到 elements。",
"type": "object",
"required": ["chunk_id", "source_id", "version_id", "heading_path", "element_ids", "text", "content_hash"],
"properties": {
"chunk_id": { "type": "string", "pattern": "^ck-[0-9a-f]{12}$" },
"source_id": { "type": "string" },
"version_id": { "type": "string" },
"heading_path": { "type": "array", "items": { "type": "string" } },
"element_ids": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"text": { "type": "string" },
"char_count": { "type": "integer" },
"keywords": { "type": "array", "items": { "type": "string" }, "description": "确定性预筛关键词(供 FTS5 检索)" },
"content_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]+$" }
}
}
@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/contracts/source-document.schema.json",
"title": "SourceDocument Contract v1",
"description": "核心共享契约(ADR-003):外部预处理仓库必须遵守。核心自身首版只处理原生 Markdown/TXT。",
"type": "object",
"required": ["schema_version", "source_id", "version_id", "title", "media_type", "elements"],
"properties": {
"schema_version": { "const": 1 },
"source_id": { "type": "string", "description": "稳定 ID,文件改名不得自动变成新来源" },
"version_id": { "type": "string", "pattern": "^sha256:[0-9a-f]+$", "description": "由规范化字节确定性计算" },
"title": { "type": "string" },
"media_type": { "enum": ["markdown", "txt", "pdf", "html", "epub", "docx", "pptx", "xlsx", "subtitle", "audio", "video"] },
"language": { "type": "array", "items": { "type": "string" } },
"parser": { "type": "string", "description": "解析器名称@版本" },
"elements": {
"type": "array",
"items": {
"type": "object",
"required": ["element_id", "type", "content_hash"],
"properties": {
"element_id": { "type": "string", "pattern": "^el-[0-9]{6}$" },
"type": { "enum": ["heading", "paragraph", "list", "table", "image", "formula", "transcript", "frame", "code"] },
"text": { "type": "string" },
"heading_path": { "type": "array", "items": { "type": "string" } },
"page": { "type": ["integer", "null"] },
"time_start_ms": { "type": ["integer", "null"] },
"time_end_ms": { "type": ["integer", "null"] },
"bbox": { "type": ["array", "null"], "items": { "type": "number" }, "minItems": 4, "maxItems": 4 },
"asset_ref": { "type": ["string", "null"] },
"confidence": { "type": ["number", "null"], "minimum": 0, "maximum": 1 },
"content_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]+$" }
}
}
}
}
}
@@ -0,0 +1,38 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/dependency-graph.schema.json",
"title": "Cangjie Dependency Graph",
"description": "带类型和证据的依赖图(方案 §4.5)。块变更时沿图向下找受影响候选/能力/入口/测试。",
"type": "object",
"required": ["schema_version", "content_pack", "nodes", "edges"],
"properties": {
"schema_version": { "const": 1 },
"content_pack": { "type": "string" },
"generated_by": { "type": "string" },
"nodes": {
"type": "array",
"items": {
"type": "object",
"required": ["node_id", "node_type"],
"properties": {
"node_id": { "type": "string" },
"node_type": { "enum": ["source_version", "element", "chunk", "candidate", "capability", "entrypoint", "eval_case"] },
"label": { "type": "string" }
}
}
},
"edges": {
"type": "array",
"items": {
"type": "object",
"required": ["from", "to", "edge_type"],
"properties": {
"from": { "type": "string" },
"to": { "type": "string" },
"edge_type": { "enum": ["contains", "grouped_into", "supports", "contradicts", "examples", "validates_into", "compiled_as", "served_by", "compared_with", "depends_on", "composes_with", "covers"] },
"evidence": { "type": "string" }
}
}
}
}
}
@@ -0,0 +1,57 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/eval-suite.schema.json",
"title": "Cangjie Eval Suite",
"description": "触发评测与输出评测的用例集。train/validation 由固定种子切分,validation 在选版前保持隐藏(方案 §7.4/§10.3)。",
"type": "object",
"required": ["schema_version", "suite_id", "target", "trigger_cases"],
"properties": {
"schema_version": { "const": 1 },
"suite_id": { "type": "string" },
"target": { "type": "string", "description": "被评测的 skill/entrypoint 或 capability_id" },
"split_seed": { "type": "integer", "default": 42 },
"train_ratio": { "type": "number", "default": 0.6 },
"trigger_cases": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["case_id", "prompt", "expected"],
"properties": {
"case_id": { "type": "string" },
"prompt": { "type": "string" },
"expected": { "enum": ["should_trigger", "should_not_trigger", "sibling", "edge_case"] },
"sibling_target": { "type": "string", "description": "expected=sibling 时应触发的兄弟入口" },
"runs": { "type": "integer", "default": 3, "description": "Phase 0 粗筛可为 1" }
}
}
},
"output_cases": {
"type": "array",
"items": {
"type": "object",
"required": ["case_id", "prompt", "assertions"],
"properties": {
"case_id": { "type": "string" },
"prompt": { "type": "string" },
"input_files": { "type": "array", "items": { "type": "string" } },
"assertions": {
"type": "array",
"minItems": 1,
"description": "机械断言优先于 LLM judge",
"items": {
"type": "object",
"required": ["kind", "value"],
"properties": {
"kind": { "enum": ["contains", "not_contains", "regex", "file_exists", "json_path"] },
"value": { "type": "string" },
"note": { "type": "string" }
}
}
},
"compare_against": { "type": "array", "items": { "enum": ["old_skill", "without_skill"] } }
}
}
}
}
}
@@ -0,0 +1,32 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/failure-case.schema.json",
"title": "Cangjie Repair Failure Case",
"description": "repair 的最小输入(方案 §7.1)。用失败案例驱动,而不是「帮我润色一下」。",
"type": "object",
"required": ["schema_version", "skill", "failure_case"],
"properties": {
"schema_version": { "const": 1 },
"skill": { "type": "string", "description": "目标 skill slug 或 capability_id" },
"failure_case": {
"type": "object",
"required": ["prompt", "actual", "expected", "severity"],
"properties": {
"prompt": { "type": "string", "description": "用户真实输入" },
"actual": { "type": "string", "description": "当前实际输出或执行轨迹;宿主拿不到 Trace 时记 unavailable" },
"expected": { "type": "string", "description": "希望发生什么" },
"severity": { "enum": ["critical", "major", "minor"] },
"attachments": { "type": "array", "items": { "type": "string" }, "default": [] }
}
},
"diagnosis": {
"type": "object",
"description": "诊断结果(由 Agent 填写,CLI 校验)",
"properties": {
"category": { "enum": ["activation_miss", "false_activation", "knowledge_gap", "execution_gap", "boundary_gap", "structure_gap", "tool_gap", "preprocessing_gap", "eval_gap"] },
"evidence": { "type": "string" },
"planned_changes": { "type": "array", "items": { "type": "string" } }
}
}
}
}
@@ -0,0 +1,21 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/output-decision.schema.json",
"title": "Cangjie Output Decision",
"description": "auto 选择器的可解释决策记录(方案 §4.6.5)。默认值只是推荐,不能取消用户显式选择。",
"type": "object",
"required": ["schema_version", "requested", "selected", "decision_policy", "reasons"],
"properties": {
"schema_version": { "const": 1 },
"requested": { "enum": ["auto", "single", "pack"] },
"selected": { "enum": ["single", "pack"] },
"decision_policy": { "type": "string", "description": "如 single-first-v1" },
"skill_budget": { "type": "integer", "minimum": 2 },
"promoted_count": { "type": "integer", "minimum": 0 },
"capability_count": { "type": "integer", "minimum": 1 },
"reasons": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"alternative": { "type": "string", "description": "备选方案一句话描述" },
"user_confirmed": { "type": "boolean", "default": false },
"preserve_strategy_on_update": { "type": "boolean", "default": true }
}
}
@@ -0,0 +1,61 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/registry-entry-v1.schema.json",
"title": "Cangjie Skill Registry Entry v1 (frozen)",
"description": "冻结的 v1 契约(ADR-004):旧条目永远走本 schema,字段语义不变,读取层规范化为 output_mode=legacy-pack 但不回写文件。",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"slug",
"name",
"summary",
"source_type",
"source_url",
"skill_count",
"domains",
"language",
"status",
"quality",
"use_cases"
],
"properties": {
"schema_version": { "const": 1 },
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
"name": { "type": "string", "minLength": 2, "maxLength": 80 },
"summary": { "type": "string", "minLength": 10, "maxLength": 240 },
"source_type": { "enum": ["github", "bundled"] },
"source_url": { "type": "string", "format": "uri", "pattern": "^https://github\\.com/" },
"skill_path": { "type": "string", "pattern": "^[^/].*" },
"skill_count": { "type": "integer", "minimum": 1 },
"domains": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "type": "string", "minLength": 2, "maxLength": 30 }
},
"language": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "enum": ["zh-CN", "en", "ja"] }
},
"status": { "enum": ["active", "experimental", "archived"] },
"quality": { "enum": ["verified", "community", "experimental"] },
"featured": { "type": "boolean", "default": false },
"use_cases": {
"type": "array",
"minItems": 1,
"maxItems": 6,
"items": { "type": "string", "minLength": 4, "maxLength": 100 }
},
"install": {
"type": "object",
"additionalProperties": false,
"properties": {
"clone": { "type": "string", "minLength": 8 },
"copy": { "type": "string", "minLength": 8 }
}
}
}
}
@@ -0,0 +1,78 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/registry-entry-v2.schema.json",
"title": "Cangjie Skill Registry Entry v2",
"description": "支持 single / pack 输出模式的新契约(方案 §11.5、ADR-004)。skill_count 是兼容别名,必须等于 entrypoint_count(由校验脚本检查)。",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"slug",
"name",
"summary",
"source_type",
"source_url",
"output_mode",
"skill_count",
"entrypoint_count",
"capability_count",
"domains",
"language",
"status",
"quality",
"use_cases"
],
"properties": {
"schema_version": { "const": 2 },
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
"name": { "type": "string", "minLength": 2, "maxLength": 80 },
"summary": { "type": "string", "minLength": 10, "maxLength": 240 },
"source_type": { "enum": ["github", "bundled"] },
"source_url": { "type": "string", "format": "uri", "pattern": "^https://github\\.com/" },
"skill_path": { "type": "string", "pattern": "^[^/].*" },
"output_mode": { "enum": ["single", "pack", "legacy-pack"] },
"skill_count": { "type": "integer", "minimum": 1 },
"entrypoint_count": { "type": "integer", "minimum": 1, "description": "宿主可发现入口数;single 恒为 1" },
"capability_count": { "type": "integer", "minimum": 1, "description": "经验证的能力总数,允许大于入口数" },
"router_entrypoint": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "description": "pack 模式的来源路由入口 slug" },
"domains": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "type": "string", "minLength": 2, "maxLength": 30 }
},
"language": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "enum": ["zh-CN", "en", "ja"] }
},
"status": { "enum": ["active", "experimental", "archived"] },
"quality": { "enum": ["verified", "community", "experimental"] },
"featured": { "type": "boolean", "default": false },
"use_cases": {
"type": "array",
"minItems": 1,
"maxItems": 6,
"items": { "type": "string", "minLength": 4, "maxLength": 100 }
},
"install": {
"type": "object",
"additionalProperties": false,
"properties": {
"clone": { "type": "string", "minLength": 8 },
"copy": { "type": "string", "minLength": 8 }
}
}
},
"allOf": [
{
"if": { "properties": { "output_mode": { "const": "single" } } },
"then": { "properties": { "entrypoint_count": { "const": 1 } } }
},
{
"if": { "properties": { "output_mode": { "const": "pack" } } },
"then": { "required": ["router_entrypoint"] }
}
]
}
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/registry-entry.schema.json",
"title": "Cangjie Skill Registry Entry (v1/v2 dispatcher)",
"description": "按 schema_version 分发(ADR-004):v1 永久保持可读,新输出模式使用 v2。校验器需先注册 v1/v2 子 schema。",
"oneOf": [
{ "$ref": "https://cangjie-skill.org/schemas/registry-entry-v1.schema.json" },
{ "$ref": "https://cangjie-skill.org/schemas/registry-entry-v2.schema.json" }
]
}
@@ -0,0 +1,53 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cangjie-skill.org/schemas/source-manifest.schema.json",
"title": "Cangjie Source Manifest (.cangjie/manifest.yaml)",
"type": "object",
"required": ["schema_version", "content_pack", "sources"],
"properties": {
"schema_version": { "const": 1 },
"content_pack": { "type": "string" },
"output": {
"type": "object",
"description": "持久化的输出策略(update/repair 默认不重新选型)",
"properties": {
"requested": { "enum": ["auto", "single", "pack"] },
"selected": { "enum": ["single", "pack"] },
"decision_policy": { "type": "string" },
"skill_budget": { "type": "integer" },
"preserve_strategy_on_update": { "type": "boolean", "default": true }
}
},
"sources": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["source_id", "kind", "title", "uri", "rights", "trust", "versions"],
"properties": {
"source_id": { "type": "string", "pattern": "^src-[a-z0-9-]+$" },
"kind": { "enum": ["book", "article", "interview", "transcript", "course", "podcast", "other"] },
"title": { "type": "string" },
"author": { "type": "string" },
"uri": { "type": "string" },
"rights": { "enum": ["user-provided", "public-domain", "licensed", "unknown"] },
"trust": { "enum": ["primary", "secondary", "tertiary"] },
"versions": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["version_id", "added_at", "parser", "status"],
"properties": {
"version_id": { "type": "string", "pattern": "^sha256:[0-9a-f]+$" },
"added_at": { "type": "string" },
"parser": { "type": "string" },
"status": { "enum": ["active", "superseded", "withdrawn"] }
}
}
}
}
}
}
}
}