mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-20 21:11:58 +00:00
契约骨架补充:运行路径上的能力登记函数给出和今天一致的默认实现(并行开发互不卡住),build_tools 加 allow_write 参数;前端补 ViewRenderer、PrincipalPicker 的接口桩和按草稿预览的参数
This commit is contained in:
@@ -32,9 +32,12 @@ export const apps = {
|
||||
grants: (id: string) => get<{ items: AppGrant[] }>(`${at(id)}/grants`),
|
||||
setGrants: (id: string, items: AppGrant[]) => put<{ items: AppGrant[] }>(`${at(id)}/grants`, { items }),
|
||||
/** 页面解析:服务端解析好的视图模型(不可见的组件不下发,遮罩值不出服务端) */
|
||||
page: (id: string, page: string, params?: { instance?: string; params?: Record<string, unknown> }, opts?: RequestOptions) =>
|
||||
page: (id: string, page: string,
|
||||
params?: { instance?: string; params?: Record<string, unknown>; draft?: boolean }, opts?: RequestOptions) =>
|
||||
get<ViewModel>(`${at(id)}/pages/${encodeURIComponent(page)}${qs({
|
||||
instance: params?.instance, params: params?.params ? JSON.stringify(params.params) : undefined,
|
||||
// 编辑器预览:按草稿解析(不发起运行,视图取钉住版本已有的封存运行)
|
||||
draft: params?.draft ? 1 : undefined,
|
||||
})}`, opts),
|
||||
/** 发起一个实例 */
|
||||
start: (id: string, entry: string, values: Record<string, unknown>) =>
|
||||
|
||||
Reference in New Issue
Block a user