| icon | 📏 |
| itemType | Rule |
| items | {mode: path,path: /norms/rules,recursive: true} |
| writeTo | /norms/rules |
| properties | {ruleId: {kind: text,label: 编号,pinned: true},requirement: {kind: text,label: 必须成立的内容},level: {kind: select,label: 级别,options: [{name: MUST,label: 必须(MUST),color: red},{name: SHOULD,label: 应当(SHOULD),color: blue},{name: MAY,label: 可以(MAY),color: gray}]},floor: {kind: checkbox,label: 法律与安全},status: {kind: phase,contour: /norms/contours/rules,label: 状态},sphere: {kind: text,label: 范围},appliesTo: {kind: text,label: 适用于},enforcers: {kind: text,label: 执行器(路径)},plannedEnforcer: {kind: text,label: 执行器将是什么},enforcerKind: {kind: select,label: 执行器类型,options: [{name: gate,label: 闸门(检查),color: green},{name: sensor,label: 传感器,color: brown},{name: hook,label: 钩子,color: orange},{name: automation,label: 自动化,color: blue},{name: judge,label: 评审,color: purple},{name: instruction,label: 指令,color: gray}]},mode: {kind: select,label: 执行器模式,options: [{name: observe,label: 观察,color: gray},{name: warn,label: 警告,color: yellow},{name: enforce,label: 阻断,color: red}]},followsFrom: {kind: text,label: 依据},because: {kind: text,label: 理由},baseline: {kind: text,label: 已知违规},reviewBy: {kind: date,label: 复审日期},overrides: {kind: text,label: 覆盖(包的规范编号)},pack: {kind: text,label: 包},rail: {kind: text,label: 给智能体的一行},evidence: {kind: text,label: 来源}} |
| states | {hold: {provider: rule.hold,words: [{name: holder-down,label: 执行器已损坏,tone: trouble},{name: leaking,label: 泄漏,tone: trouble},{name: noisy,label: 噪音大,tone: attention},{name: by-nothing,label: 没有执行器,tone: attention},{name: only-asked,label: 只是请求,tone: calm},{name: held,label: 成立,tone: good}]}} |
| views | [{id: rules--table,name: 全部规则,layout: table,fields: {},sorting: [{propertyId: ruleId,direction: ascending}],properties: [{name: ruleId,visible: true},{name: title,visible: true,width: 380},{name: level,visible: true},{name: floor,visible: true},{name: status,visible: true},{name: enforcerKind,visible: true},{name: enforcers,visible: true},{name: pack,visible: true}]},{id: rules--board,name: 按状态,layout: board,fields: {},board: {preview: page-content,cardSize: small,wrap: true},grouping: {by: status,colorBy: status},sorting: [{propertyId: ruleId,direction: ascending}],properties: [{name: ruleId,visible: true},{name: title,visible: true},{name: level,visible: true},{name: pack,visible: true}]},{id: rules--by-level,name: 按级别,layout: board,fields: {},board: {preview: page-content,cardSize: small,wrap: true},grouping: {by: level,colorBy: level},sorting: [{propertyId: ruleId,direction: ascending}],properties: [{name: ruleId,visible: true},{name: title,visible: true},{name: enforcerKind,visible: true},{name: status,visible: true}]}] |