Application schema 参考
本页面渲染由固定版本 bricoop-releases 生成的 application 定义 schema。每个字段都列出了它的 path、type、required 标志以及 schema 声明的任何 enum 或 default 值,让你可以按照 Bricoop 实际执行的契约编写 manifest。下面的表格是 application schema 的唯一真实来源。
切勿手动编辑这些行。这些字段在构建时由 sources/synced/protocol/reference.json 生成,任何手动编辑都会在下一次同步时被覆盖。如果某个字段有误,请在上游 bricoop-releases 中修正并重新运行 protocol 同步;本页的下一次发布会带上修正后的行。
该表格由路由从构建所校验的同一固定快照渲染,所以你在这里读到的行与 Bricoop Desktop 在运行时执行的行一致。表格上方显示的 schemaRevision 是按文件计算的哈希;页面页脚显示的 revision 是导入快照时所用的 40 字符上游 commit。
Application stable schema
| path | type | required | default | enum |
|---|---|---|---|---|
configs[].content.linux.json | any | yes | ||
configs[].content.linux.value | string | yes | ||
configs[].content.macos.json | any | yes | ||
configs[].content.macos.value | string | yes | ||
configs[].content.windows.json | any | yes | ||
configs[].content.windows.value | string | yes | ||
configs[].create_if_missing | boolean | yes | ||
configs[].format | string | yes | json, jsonc, yaml, toml | |
configs[].path.linux | string | yes | ||
configs[].path.macos | string | yes | ||
configs[].path.windows | string | yes | ||
configs[].type | string | yes | file_patch | |
configs[].writes[].entry_id | string | yes | ||
configs[].writes[].op | string | yes | set | |
configs[].writes[].path | string | yes | ||
configs[].writes[].present_when | null|string | no | ||
configs[].writes[].value.linux.json | any | yes | ||
configs[].writes[].value.linux.value | string | yes | ||
configs[].writes[].value.macos.json | any | yes | ||
configs[].writes[].value.macos.value | string | yes | ||
configs[].writes[].value.windows.json | any | yes | ||
configs[].writes[].value.windows.value | string | yes | ||
id | string | yes | ||
minimal_application_version | null|string | no | ||
minimal_client_version | string | yes | ||
model_slots[].description | string | yes | ||
model_slots[].kind | string | no | chat | |
model_slots[].label | string | yes | ||
model_slots[].required | boolean | no | false | |
name | string | yes | ||
schema_version | integer | yes | ||
version | string | yes |