feat: integrate pinned original Purge with host execution gates

This commit is contained in:
Agent Workbench Dev
2026-11-02 22:32:31 +08:00
parent 1408e7ac76
commit 9106655d46
26 changed files with 3217 additions and 38 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export function EngineRunPanel({ session, onSession, onError, onNavigate }: {
{job.error && <p className="engine-run-error">{job.error}</p>}
{job.status === 'completed' && <p className="engine-run-note">原引擎运行与调用账本已核验。工程完成仍以提案应用、当前检查和父工程交付为准。</p>}
{job.requiresVerification && <p className="engine-run-note">请返回父目标核对原输入与现场。原未知结果保留,继续会创建新的运行。</p>}
{job.installation.strategy && <div className="engine-prompt-note"><strong>Purge 提示实验 · {job.installation.strategy.source.version}</strong><p>本 Run 使用已封存工程提示,原审批与预算继续生效。</p><details><summary>查看本次实验策略</summary><dl><dt>策略 SHA256</dt><dd>{job.installation.strategy.sha256}</dd><dt>来源 SHA256</dt><dd>{job.installation.strategy.source.sourceSha256}</dd><dt>文本 SHA256</dt><dd>{job.installation.strategy.promptSha256}</dd><dt>来源目录</dt><dd>{job.installation.strategy.source.root}</dd></dl><pre>{job.installation.strategy.prompt}</pre></details></div>}
{job.installation.strategy && <div className="engine-prompt-note"><strong>Purge {job.installation.strategy.kind==='purge-original-restricted-v1'?'原版受限模式':'提示实验'} · {job.installation.strategy.source.version}</strong><p>{job.installation.strategy.kind==='purge-original-restricted-v1'?'本 Run 加载固定原版入口,自动重试和继续关闭;工作台审批与预算继续生效。':'本 Run 使用已封存工程提示,原审批与预算继续生效。'}</p><details><summary>查看本次实验策略</summary><dl><dt>策略 SHA256</dt><dd>{job.installation.strategy.sha256}</dd><dt>来源 SHA256</dt><dd>{job.installation.strategy.source.sourceSha256}</dd><dt>文本 SHA256</dt><dd>{job.installation.strategy.promptSha256}</dd><dt>来源目录</dt><dd>{job.installation.strategy.source.root}</dd>{job.installation.strategy.kind==='purge-original-restricted-v1'&&<><dt>固定运行依赖 SHA256</dt><dd>{job.installation.strategy.runtime.sha256}</dd><dt>加载范围</dt><dd>{job.installation.strategy.runtime.inputs.length} 份固定输入 / {job.installation.strategy.runtime.nativeAddons.length} 个固定原生模块</dd></>}</dl><pre>{job.installation.strategy.prompt}</pre></details></div>}
{job.review && <p className="engine-run-note">人工核对记录:<code>{job.review.evidenceSha256.slice(0, 16)}</code>。原未知输出未改写为完成。</p>}
<div className="engine-run-actions"><button className="button secondary" disabled={pending} onClick={() => void read(job, 'input')}><FileText size={14} />查看原输入</button><button className="button secondary" disabled={pending || !job.reportArtifactId} onClick={() => void read(job, 'report')}><Fingerprint size={14} />查看原报告</button><button className="text-button" disabled={!job.reportArtifactId} onClick={() => void download(job)}><Download size={14} />下载完整报告</button></div>
<details><summary>任务身份与来源</summary><dl><dt>Task</dt><dd>{job.taskId}</dd><dt>Run</dt><dd>{job.runId}</dd><dt>SDK 会话</dt><dd>{job.sdkSessionId}</dd><dt>安装目录</dt><dd>{job.installation.root}</dd><dt>输入 SHA256</dt><dd>{job.inputSha256}</dd><dt>报告 SHA256</dt><dd>{job.reportSha256 ?? '尚未封存'}</dd><dt>原事件</dt><dd>{job.nativeSummary.notifications} 项</dd></dl></details>
+2
View File
@@ -14,6 +14,8 @@
.purge-strategy-fields details { font-size:12px; color:#587087; min-width:0; }
.purge-strategy-fields summary { cursor:pointer; }
.purge-strategy-fields dl > div { margin-top:8px; }
.purge-strategy-fields .purge-source-inputs { max-height:260px; overflow:auto; padding-right:8px; }
.purge-strategy-fields select { width:100%; min-height:42px; min-width:0; border:1px solid #b8c7d5; border-radius:4px; background:white; color:#243d54; padding:8px; }
.purge-strategy-fields dd { margin:4px 0 0; }
.purge-strategy-control .purge-source-error { color:#794d21; background:#fff8ee; padding:10px; border-left:3px solid #925619; overflow-wrap:anywhere; }
.engine-run-panel .engine-prompt-note { padding:12px; background:#f5f6fa; border-left:3px solid #626594; font-size:12px; line-height:1.7; }
+20 -9
View File
@@ -4,38 +4,49 @@ import { api } from './api';
import type { PurgeSourceAvailability } from './types';
import './PurgeStrategyControl.css';
export type PurgeDraft = { enabled: boolean; root: string; prompt: string; source: PurgeSourceAvailability | null };
export const emptyPurgeDraft = (): PurgeDraft => ({ enabled: false, root: '', prompt: '', source: null });
export type PurgeDraft = { enabled: boolean; kind: 'purge-prompt-experiment' | 'purge-original-restricted-v1'; root: string; prompt: string; source: PurgeSourceAvailability | null };
export const emptyPurgeDraft = (): PurgeDraft => ({ enabled: false, kind: 'purge-prompt-experiment', root: '', prompt: '', source: null });
export const purgeStrategyInput = (value: PurgeDraft) => ({kind:value.kind,root:value.source?.root,sourceSha256:value.source?.sourceSha256,prompt:value.prompt,
...(value.kind==='purge-original-restricted-v1'?{runtimeSha256:value.source?.runtimeSha256}:{})});
export function purgeDraftReady(value: PurgeDraft) {
return !value.enabled || value.source?.status === 'available' && !!value.source.sourceSha256
&& (value.source.kind??'purge-prompt-experiment')===value.kind && (value.kind!=='purge-original-restricted-v1'||!!value.source.runtimeSha256)
&& !!value.prompt.trim() && new TextEncoder().encode(value.prompt).length <= 24000;
}
export function PurgeStrategyControl({ value, onChange, busy }: { value: PurgeDraft; onChange: (value: PurgeDraft) => void; busy: boolean }) {
export function PurgeStrategyControl({ value, onChange, busy, harnessRoot }: { value: PurgeDraft; onChange: (value: PurgeDraft) => void; busy: boolean; harnessRoot?: string | null }) {
const [detecting, setDetecting] = useState(false), [error, setError] = useState('');
const request = useRef(0), current = useRef(value); current.current = value;
const previousHarness = useRef(harnessRoot);
useEffect(() => { if(previousHarness.current===harnessRoot)return;previousHarness.current=harnessRoot;request.current++;setDetecting(false);setError('');
if(current.current.kind==='purge-original-restricted-v1')onChange({...current.current,source:null}); }, [harnessRoot, onChange]);
useEffect(() => () => { request.current++; }, []);
function enabled(next: boolean) { request.current++; setDetecting(false); setError(''); onChange({ ...value, enabled: next }); }
function editRoot(root: string) { request.current++; setDetecting(false); setError(''); onChange({ ...value, root, source: null }); }
async function detect() {
const generation = ++request.current; setDetecting(true); setError(''); onChange({ ...current.current, source: null });
try {
const source = await api<PurgeSourceAvailability>('/engines/purge/source' + (value.root.trim() ? '?root=' + encodeURIComponent(value.root.trim()) : ''));
const query=new URLSearchParams({kind:value.kind});if(value.root.trim())query.set('root',value.root.trim());if(value.kind==='purge-original-restricted-v1'&&harnessRoot)query.set('harnessRoot',harnessRoot);
const source = await api<PurgeSourceAvailability>('/engines/purge/source?'+query);
if (generation !== request.current) return;
onChange({ ...current.current, root: source.root ?? current.current.root, source, prompt: current.current.prompt || source.defaultPrompt });
} catch (failure) { if (generation === request.current) setError(failure instanceof Error ? failure.message : String(failure)); }
finally { if (generation === request.current) setDetecting(false); }
}
return <section className="purge-strategy-control" aria-label="Purge 提示实验">
<header><FlaskConical size={17} /><label><input type="checkbox" checked={value.enabled} disabled={busy} onChange={event => enabled(event.target.checked)} />启用 Purge 提示实验</label><span>{value.enabled ? '仅对本计划生效' : '默认关闭'}</span></header>
<p>追加已封存的工程提示,继续使用原任务范围、检查审批和累计预算。实际收益需同题对照验证。</p>
const original=value.kind==='purge-original-restricted-v1';
return <section className="purge-strategy-control" aria-label={original?'Purge 原版受限模式':'Purge 提示实验'}>
<header><FlaskConical size={17} /><label><input type="checkbox" checked={value.enabled} disabled={busy} onChange={event => enabled(event.target.checked)} />启用 Purge {original?'原版受限模式':'提示实验'}</label><span>{value.enabled ? '仅对本计划生效' : '默认关闭'}</span></header>
<p>{original?'运行原版 1.1.78 的固定受限配置,继续使用工作台的工具审批和累计预算。原版效果需另行实测。':'追加已封存的工程提示,继续使用原任务范围、检查审批和累计预算。实际收益需同题对照验证。'}</p>
{value.enabled && <div className="purge-strategy-fields">
<label>执行模式<select aria-label="Purge 执行模式" value={value.kind} disabled={busy} onChange={event=>{request.current++;setDetecting(false);setError('');onChange({...value,kind:event.target.value as PurgeDraft['kind'],source:null});}}>
<option value="purge-prompt-experiment">独立工程提示 · 不加载原版插件</option><option value="purge-original-restricted-v1">原版 1.1.78 · 固定受限配置</option>
</select></label>
<label>Purge 源码目录<input aria-label="Purge 源码目录" value={value.root} placeholder="留空检测已知来源,或填写绝对目录" disabled={busy} onChange={event => editRoot(event.target.value)} /></label>
<button type="button" className="button secondary" disabled={busy || detecting} onClick={() => void detect()}>{detecting ? <LoaderCircle className="spin" size={14} /> : <ShieldCheck size={14} />}检测 Purge 来源</button>
{value.source && <div className="purge-source-state" role="status"><strong>{value.source.status === 'available' ? '已核对 Purge ' + value.source.version : '来源尚不可用'}</strong><p>{value.source.message}</p>{value.source.sourceSha256 && <code>{value.source.sourceSha256}</code>}</div>}
{value.source && <div className="purge-source-state" role="status"><strong>{value.source.status === 'available' ? '已核对 Purge ' + value.source.version : '来源尚不可用'}</strong><p>{value.source.message}</p>{value.source.sourceSha256 && <code>{value.source.sourceSha256}</code>}{original&&value.source.runtimeSha256&&<p>固定运行依赖 {value.source.runtimeInputs} 份 · <code>{value.source.runtimeSha256}</code></p>}</div>}
{error && <p className="purge-source-error" role="alert">{error}</p>}
<label>增强工程提示<textarea aria-label="增强工程提示" rows={5} maxLength={8000} value={value.prompt} disabled={busy} onChange={event => onChange({ ...value, prompt: event.target.value })} /></label>
<small>{new TextEncoder().encode(value.prompt).length.toLocaleString()} / 24,000 字节 · 完整文本随计划保存,运行期间不能替换。</small>
<details><summary>实验来源与执行范围</summary><p>独立提示装配参考 YuJunZhiXue / dsh-purge(Apache-2.0)。不加载上游完整插件;实验不开启宿主修改、权限绕过或自动重试。</p>{value.source?.inputs && <dl>{value.source.inputs.map(input => <div key={input.relative}><dt>{input.relative}</dt><dd>{input.sha256}</dd></div>)}</dl>}</details>
<details><summary>实验来源与执行范围</summary><p>{original?'YuJunZhiXue / dsh-purge(Apache-2.0)原版入口,完整来源和运行副本逐份核对。自动更新、宿主修改、原版工具、自动重试和继续关闭;内部提示及钩子仍由原版装配。这是固定可信源码的 Windows x64 配置,Node 权限不等同于操作系统沙箱。':'独立提示装配参考 YuJunZhiXue / dsh-purge(Apache-2.0)。不加载上游完整插件;实验不开启宿主修改、权限绕过或自动重试。'}</p>{value.source?.inputs && <dl className="purge-source-inputs">{value.source.inputs.map(input => <div key={input.relative}><dt>{input.relative}</dt><dd>{input.sha256}</dd></div>)}</dl>}</details>
</div>}
</section>;
}
+4 -4
View File
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
import { ArrowUpRight, Check, GitBranch, LoaderCircle, Play, RefreshCw, ShieldCheck, Square } from 'lucide-react';
import { api, downloadBlob } from './api';
import { Modal } from './components';
import { PurgeStrategyControl, emptyPurgeDraft, purgeDraftReady } from './PurgeStrategyControl';
import { PurgeStrategyControl, emptyPurgeDraft, purgeDraftReady, purgeStrategyInput } from './PurgeStrategyControl';
import type { CollaborationGroup, Config, Session, WorkerView, ControlledEngineAvailability } from './types';
import './WorkerPanel.css';
@@ -59,7 +59,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
const result = await api<{ group: CollaborationGroup; session: Session }>('/sessions/' + session.id + '/collaborations', {
goal, children: (engineMode === 'deepseek' ? drafts.slice(0, 1) : drafts).map(child => ({ label: child.label, goal: child.goal, paths: splitPaths(child.paths) })),
...(engineMode === 'deepseek' ? { engine: { id: 'deepseek-harness', root: engineInstallation?.root, controlledSha256: engineInstallation?.controlledSha256,
...(purge.enabled ? { strategy: { kind: 'purge-prompt-experiment', root: purge.source?.root, sourceSha256: purge.source?.sourceSha256, prompt: purge.prompt } } : {}) } } : {}),
...(purge.enabled ? { strategy: purgeStrategyInput(purge) } : {}) } } : {}),
budget: { maxTokens: tokens, maxSteps: steps, maxToolCalls: toolCalls, maxDurationMs: duration * 60000 },
});
if (generation !== scope.current) return;
@@ -95,7 +95,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
{(!group || creating) && <div className="worker-plan-form">
<label>执行方式<select aria-label="执行方式" value={engineMode} onChange={event => setEngineMode(event.target.value as 'workbench' | 'deepseek')}><option value="workbench">工作台 · 两个受限子任务</option><option value="deepseek">DeepSeek Harness · 一个受控工程</option></select></label>
{engineMode === 'deepseek' && <section className="worker-engine-install" aria-label="受控引擎安装"><label>Harness 安装目录<input value={engineRoot} placeholder="留空检测已知本地安装" onChange={event => { detection.current++; setEngineRoot(event.target.value); setEngineInstallation(null); setDetectingEngine(false); }} /></label><button className="button secondary" disabled={detectingEngine || !!action} onClick={() => void detectEngine()}>{detectingEngine ? <LoaderCircle size={14} className="spin" /> : <ShieldCheck size={14} />}检测受控安装</button>{engineInstallation && <div role="status"><strong>{engineReady ? '受控安装可用' : '安装尚不可用'}</strong><p>{engineInstallation.message}</p>{engineReady && <code>Harness {engineInstallation.version} · {engineInstallation.controlledSha256?.slice(0, 16)}</code>}</div>}<p className="worker-note">模型连接由工作台使用;引擎只提交范围内的提案与检查请求,应用和检查仍需审查。</p></section>}
{engineMode === 'deepseek' && <PurgeStrategyControl value={purge} onChange={value => { setPurge(value); setError(''); }} busy={!!action} />}
{engineMode === 'deepseek' && <PurgeStrategyControl value={purge} onChange={value => { setPurge(value); setError(''); }} busy={!!action} harnessRoot={engineInstallation?.root} />}
<label>父目标<textarea value={goal} onChange={event => setGoal(event.target.value)} placeholder="描述需要交付的结果与验收要求" maxLength={20000} rows={3} /></label>
<div className={'worker-lanes' + (engineMode === 'deepseek' ? ' single' : '')}>{visibleDrafts.map((child, index) => <fieldset key={index}><legend>{engineMode === 'deepseek' ? '引擎工程' : '子任务 ' + (index + 1)}</legend><label>任务名称<input value={child.label} maxLength={64} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, label: event.target.value } : value))} /></label><label>独立子目标<textarea value={child.goal} maxLength={8000} rows={3} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, goal: event.target.value } : value))} /></label><label>允许修改的文件或目录<textarea value={child.paths} rows={2} placeholder="例如 src/parser.mjs,每行一个相对路径" onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, paths: event.target.value } : value))} /></label></fieldset>)}</div>
<div className="worker-budget-form"><label>总 token 预算<input type="number" min={1000} max={config.maxRunTokens} value={tokens} onChange={event => setTokens(Number(event.target.value))} /></label><label>总请求轮次<input type="number" min={2} max={200} value={steps} onChange={event => setSteps(Number(event.target.value))} /></label><label>总工具次数<input type="number" min={2} max={512} value={toolCalls} onChange={event => setToolCalls(Number(event.target.value))} /></label><label>总时限(分钟)<input type="number" min={1} max={Math.floor(config.maxRunDurationMs / 60000)} value={duration} onChange={event => setDuration(Number(event.target.value))} /></label></div>
@@ -103,7 +103,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
<div className="worker-actions"><button className="button" disabled={!canPlan || !goal.trim() || visibleDrafts.some(child => !child.goal.trim() || !splitPaths(child.paths).length) || engineMode === 'deepseek' && (!engineReady || detectingEngine || !promptReady)} onClick={() => void create()}><ShieldCheck size={15} />封存分工计划</button>{creating && <button className="button secondary" onClick={() => setCreating(false)}>返回原协作</button>}</div>
</div>}
{group && !creating && <>
{group.children[0]?.engine?.strategy && <p className="worker-engine-badge">本计划的 Purge 提示实验 · {group.children[0].engine.strategy.source.version} · {group.children[0].engine.strategy.sha256.slice(0, 16)}</p>}
{group.children[0]?.engine?.strategy && <p className="worker-engine-badge">本计划的 Purge {group.children[0].engine.strategy.kind==='purge-original-restricted-v1'?'原版受限模式':'提示实验'} · {group.children[0].engine.strategy.source.version} · {group.children[0].engine.strategy.sha256.slice(0, 16)}</p>}
{group.evaluation && <p className="worker-note">本协作属于固定工程评测。执行与采纳请使用「工程评测」;这里保留原任务导航和中断现场核对。</p>}<section className="worker-parent"><div className="worker-parent-top"><span className={'worker-status ' + (group.requiresVerification || group.status === 'conflict' ? 'attention' : '')}>{statusLabel(group.status)}</span><code>{group.source.identity.branch} · {group.source.identity.head.slice(0, 12)}</code></div><h3>{group.goal}</h3><p>{group.summary}</p><dl><div><dt>模型</dt><dd>{group.model.mode === 'demo' ? '离线演示' : group.model.model}</dd></div><div><dt>执行方式</dt><dd>{group.children[0].engine ? "DeepSeek Harness " + group.children[0].engine.version : "工作台受限子任务"}</dd></div><div><dt>总预算</dt><dd>{number(group.budget.maxTokens)} tokens / {group.budget.maxSteps} 轮 / {group.budget.maxToolCalls} 次工具</dd></div><div><dt>累计用量</dt><dd>{number(group.usage?.accountedTokens)} tokens / {group.usage?.steps ?? 0} 轮 / {group.usage?.toolCalls ?? 0} 次工具 / {group.usage?.requests ?? 0} 次模型请求</dd></div><div><dt>原修改</dt><dd>{group.source.changedPaths.length ? group.source.changedPaths.map(value => value.path).join('、') : '无未提交修改'}</dd></div></dl></section>
<div className={"worker-lanes" + (group.children.length === 1 ? " single" : "")}>{(group.workers ?? []).map((child, index) => <section className="worker-lane" key={child.id}><div className="worker-lane-title"><span>通道 {index + 1}</span><span className={'worker-status ' + (child.requiresVerification ? 'attention' : '')}>{statusLabel(child.sessionStatus === 'awaiting_approval' ? 'awaiting_approval' : child.status)}</span></div><h3>{child.label}</h3>{child.engine && <p className="worker-engine-badge">DeepSeek Harness {child.engine.version} · 固定安装 {child.engine.controlledSha256?.slice(0, 12)}</p>}<p className="worker-goal">{child.goal}</p><div className="worker-scope"><span>允许修改</span>{child.paths.map(path => <code key={path}>{path}</code>)}</div><p className="worker-meter">{number(child.usage?.accountedTokens)} / {number(child.budget.maxTokens)} tokens · {child.usage?.steps ?? 0}/{child.budget.maxSteps} 轮</p><p className="worker-summary">{child.summary ?? '先创建独立工作区,再开始子任务。'}</p>{child.result && <div className="worker-proof"><Check size={14} />{child.result.paths.length} 个原改动 · 当前检查已封存</div>}<div className="worker-actions">{child.status !== 'unprepared' && <button className="button secondary" onClick={() => void onNavigate(child.projectId, child.sessionId, child.sessionStatus === "awaiting_approval" ? "approval" : child.sessionStatus === "needs_review" ? "changes" : "task")}>{child.sessionStatus === 'awaiting_approval' ? '查看并审批检查' : child.sessionStatus === 'needs_review' ? '审查子任务改动' : '打开子任务'}<ArrowUpRight size={13} /></button>}{!group.evaluation && ['ready', 'paused', 'failed', 'awaiting_review'].includes(child.status) && !running && child.sessionStatus !== 'needs_review' && <button className="text-button" disabled={!!action || config.mode === 'demo' || group.requiresVerification} onClick={() => setConfirmation({ group, operation: 'start', workerId: child.id })}><Play size={13} />继续子任务</button>}</div></section>)}</div>
<section className="worker-review"><div className="worker-review-title"><GitBranch size={18} /><h3>父工程成果审查</h3></div>{group.collection ? <><p>{group.collection.paths.length} 个路径已核对,原记录 <code>{group.collection.sha256.slice(0, 16)}</code></p>{group.collection.conflicts.length > 0 && <ul className="worker-conflicts">{group.collection.conflicts.map((conflict, i) => <li key={i}><code>{conflict.path}</code><span>{conflict.reason}</span></li>)}</ul>}<button className="text-button" disabled={!!action} onClick={() => void showRecord(group, 'collection')}>查看原成果记录</button></> : <p>等待 {group.children.length} 个子任务完成实际修改与检查。重叠路径、来源变化或原证据失效会阻止合并。</p>}{group.merge?.changeSetId && <button className="button secondary" onClick={onReview}>打开父工程变更集审查<ArrowUpRight size={14} /></button>}</section>
+8 -1
View File
@@ -303,18 +303,25 @@ export interface EngineJob {
export interface ControlledEngineAvailability extends EngineAvailability {
controlledStatus: string; controlledSha256?: string; scope: string; bridgeSha256?: string;
controlledCapabilities?: { text: boolean; nativeSessionResume: boolean; nativeModelCredentials: boolean; cancellationUnit: string };
strategy?: PurgePromptStrategy;
strategy?: PurgePromptStrategy | PurgeOriginalStrategy;
}
export interface PurgeSourceAvailability {
status: string; root: string | null; message: string; version?: string; sourceSha256?: string;
defaultEnabled: boolean; defaultPrompt: string; supportedVersions: string[];
inputs?: { relative: string; path: string; bytes: number; sha256: string }[];
kind?: 'purge-prompt-experiment' | 'purge-original-restricted-v1'; runtimeSha256?: string; runtimeInputs?: number;
}
export interface PurgePromptStrategy {
kind: 'purge-prompt-experiment'; enabled: true; sha256: string; prompt: string; promptSha256: string;
source: { root: string; version: string; sourceSha256: string };
section: { name: string; order: number; interpolate: false; text: string; textSha256: string };
}
export interface PurgeOriginalStrategy {
kind: 'purge-original-restricted-v1'; enabled: true; sha256: string; prompt: string; promptSha256: string;
source: { root: string; version: string; sourceSha256: string };
runtime: { root: string; sha256: string; inputs: { path: string; sha256: string }[]; nativeAddons: { path: string; sha256: string }[] };
originalConfig: { autoRetry: false; autoContinue: false; hooksDenyBypass: false; postPrompt: string };
}
export interface EngineRunView {
id: string; projectId: string; sessionId: string; taskId: string; runId: string; workerId: string; collaborationId: string;
installation: ControlledEngineAvailability; sdkSessionId: string; status: string; requiresVerification: boolean; verified: boolean;