|
| 1 | +/** |
| 2 | + * knowledgeSample.ts — 摄影示例体系常量(v0.13.7 具象化)。 |
| 3 | + * |
| 4 | + * @ai-context: 示例≠预填(纪律裁决 2026-08-24)——示例是用户可见的完整 |
| 5 | + * 参照物,复制后处于"待改造"状态。结构对应既有 command 入参, |
| 6 | + * 复制时逐条调 create/add 命令落库(零新命令)。 |
| 7 | + */ |
| 8 | +import type { KnowledgeNodeType, SystemKind } from "../types/knowledge"; |
| 9 | + |
| 10 | +export interface SampleNode { |
| 11 | + type: KnowledgeNodeType; |
| 12 | + text: string; |
| 13 | + parentId: number | null; |
| 14 | +} |
| 15 | +export interface SampleConcept { |
| 16 | + name: string; |
| 17 | + essence: string; |
| 18 | + boundary: string; |
| 19 | + relation: string; |
| 20 | +} |
| 21 | +export interface SampleModel { |
| 22 | + name: string; |
| 23 | + disciplines: string[]; |
| 24 | + claim: string; |
| 25 | + validWhen: string; |
| 26 | + invalidWhen: string; |
| 27 | +} |
| 28 | + |
| 29 | +export const SAMPLE_SYSTEM = { |
| 30 | + name: "摄影", |
| 31 | + kind: "domain" as SystemKind, |
| 32 | + coreQuestion: "如何拍出有表达力、不灰蒙蒙的照片?", |
| 33 | + /** 问题树:7 节点(4 根 + 3 子;含 1 场景根)——parentId 索引指向 nodes 内下标 */ |
| 34 | + nodes: [ |
| 35 | + { type: "question", text: "照片为什么发灰、不通透?", parentId: null }, // 0 |
| 36 | + { type: "question", text: "怎么判断一张照片曝光是否准确?", parentId: 0 }, // 1 |
| 37 | + { type: "question", text: "高光溢出了怎么办?", parentId: 0 }, // 2 |
| 38 | + { type: "question", text: "为什么拍人像背景虚化不了?", parentId: null }, // 3 |
| 39 | + { type: "question", text: "怎么让背景虚化(光圈优先)?", parentId: 3 }, // 4 |
| 40 | + { type: "question", text: "构图总是很平淡怎么办?", parentId: null }, // 5 |
| 41 | + { type: "scenario", text: "本周修好 10 张发灰的旅行照", parentId: null }, // 6 |
| 42 | + ] as SampleNode[], |
| 43 | + concepts: [ |
| 44 | + { |
| 45 | + name: "曝光三角", |
| 46 | + essence: "光圈/快门/ISO 三者平衡光量的关系", |
| 47 | + boundary: "只影响明暗,不影响景深的是 ISO", |
| 48 | + relation: "感光元件对光的响应,是后期降噪的基础", |
| 49 | + }, |
| 50 | + { |
| 51 | + name: "安全快门", |
| 52 | + essence: "1/焦距 的倒数,低于它手抖必糊", |
| 53 | + boundary: "有防抖/三脚架时失效", |
| 54 | + relation: "与曝光三角中快门联动", |
| 55 | + }, |
| 56 | + { |
| 57 | + name: "三分构图", |
| 58 | + essence: "把主体放在画面 1/3 分割线上", |
| 59 | + boundary: "对称构图/居中构图时不用", |
| 60 | + relation: "与引导线结合更出效果", |
| 61 | + }, |
| 62 | + ] as SampleConcept[], |
| 63 | + models: [ |
| 64 | + { |
| 65 | + name: "黄金时刻法则", |
| 66 | + disciplines: ["摄影"], |
| 67 | + claim: "日出日落前后 1 小时光质最佳", |
| 68 | + validWhen: "户外自然光", |
| 69 | + invalidWhen: "室内闪光灯/阴天正午想拍蓝调", |
| 70 | + }, |
| 71 | + ] as SampleModel[], |
| 72 | +}; |
0 commit comments