feat: complete native BOM and Harness execution acceptance

This commit is contained in:
阿白叔 committed 2026-11-12 19:21:55 +08:00
1 parent 4f8fbd7806
commit 65438cb7e5
234 files changed
+24402 -865

No files matched your search

+4 -2
View File
@@ -22,13 +22,15 @@ export function registerLifecycle(ctx){
pending.set(request_id,{promise,resolve,reject});
try{
exec.signal.throwIfAborted();exec.signal.addEventListener('abort',cancel,{once:true});
timer=setTimeout(cancel,capability==='execute'&&spec.operation==='start'?86400000:300000);
const executes=(capability==='execute'&&['start','resume'].includes(spec.operation))||
(capability==='operations'&&['resume','run_schedule'].includes(spec.operation));
timer=setTimeout(cancel,executes?86400000:300000);
process.stdout.write('DX_DSH_LIFECYCLE_REQUEST '+JSON.stringify({request_id,capability,spec})+'\n');
return await promise;
}finally{clearTimeout(timer);exec.signal.removeEventListener('abort',cancel);pending.delete(request_id);}
}
const output={schema:{type:'object',additionalProperties:true},render:(_args,value)=>[{type:'text',text:JSON.stringify(compactResult(value))}]};
const ids={type:'array',required:true,items:{type:'string'},description:'1 to 20 distinct real task IDs obtained from current records, in execution order. Never infer IDs.'};
const ids={type:'array',required:true,items:{type:'string'},description:'Distinct real task IDs obtained from current records, in execution order. Never infer IDs.'};
const definitions=[
{name:'dx_task_catalog',capability:'catalog',parameters:{task_id:{type:'string',description:'Optional real task ID to also read its saved rule mappings, Value policy and execution phase.'}},
description:'List real tasks and their IDs, names, groups, statuses and notes. Optionally read one task in detail, including existing rule mappings and bounded saved target identities/Value policies. Target value_mode is the explicit saved selection: inherit uses the task default, preserve retains original Value, part_label reads the library label during execution, part_number uses the replacement number, custom uses explicit text. value_policy is its effective mode; omitted_targets reports unreturned targets. Use real IDs before changing, copying or executing. Reads saved records only. Interactive conversations only.'},