feat: complete native BOM and Harness execution acceptance
This commit is contained in:
1 parent
4f8fbd7806
commit
65438cb7e5
234 files changed
+24402
-865
No files matched your search
@@ -127,8 +127,8 @@ export async function apply(ctx){
|
||||
}}));
|
||||
registerLifecycle(ctx);
|
||||
registerFileTools(ctx);
|
||||
ctx.tools.guard(exec=>exec.name==='dx_task_snapshot'||(['dx_task_create',...lifecycleNames,...fileToolNames].includes(exec.name)&&!incidentSnapshots.has(exec.agent?.id))?
|
||||
undefined:'This tool is not enabled for this session. Automatic incident sessions may only read their snapshot.');
|
||||
ctx.tools.guard(exec=>incidentSnapshots.has(exec.agent?.id)&&exec.name!=='dx_task_snapshot'
|
||||
?'Automatic incident sessions may only read their snapshot.':undefined);
|
||||
const workspace=await ctx.workspaceRegistry.create(process.env.DX_DSH_WORKSPACE,'DxDesigner 任务中心');
|
||||
ctx.webServer.register({kind:'exact',path:'/dx/workspace',handler:async(req,res)=>{
|
||||
if(!admit(req,res))return;
|
||||
|
||||
Reference in new issue
Block a user