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 |