deepclause-sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/dist/agent.d.ts +2 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +5 -0
- package/dist/agent.js.map +1 -1
- package/dist/cli/agent-inbox.d.ts +25 -0
- package/dist/cli/agent-inbox.d.ts.map +1 -0
- package/dist/cli/agent-inbox.js +46 -0
- package/dist/cli/agent-inbox.js.map +1 -0
- package/dist/cli/config.d.ts +28 -28
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/repl.d.ts +7 -0
- package/dist/cli/repl.d.ts.map +1 -1
- package/dist/cli/repl.js +181 -13
- package/dist/cli/repl.js.map +1 -1
- package/dist/cli/run.d.ts +1 -0
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +3 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/serve.d.ts +3 -0
- package/dist/cli/serve.d.ts.map +1 -0
- package/dist/cli/serve.js +131 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/judge/llm.d.ts.map +1 -1
- package/dist/judge/llm.js +9 -4
- package/dist/judge/llm.js.map +1 -1
- package/dist/judge/types.d.ts +10 -0
- package/dist/judge/types.d.ts.map +1 -1
- package/dist/judge/types.js.map +1 -1
- package/dist/prolog-src/deepclause_mi.pl +370 -54
- package/dist/repl/agent-inbox.d.ts +73 -0
- package/dist/repl/agent-inbox.d.ts.map +1 -0
- package/dist/repl/agent-inbox.js +168 -0
- package/dist/repl/agent-inbox.js.map +1 -0
- package/dist/repl/agent.d.ts +14 -1
- package/dist/repl/agent.d.ts.map +1 -1
- package/dist/repl/agent.js +25 -6
- package/dist/repl/agent.js.map +1 -1
- package/dist/repl/backend.d.ts +6 -0
- package/dist/repl/backend.d.ts.map +1 -1
- package/dist/repl/backend.js +17 -2
- package/dist/repl/backend.js.map +1 -1
- package/dist/repl/event-history.d.ts.map +1 -1
- package/dist/repl/event-history.js +3 -0
- package/dist/repl/event-history.js.map +1 -1
- package/dist/repl/harness-tools.d.ts +9 -2
- package/dist/repl/harness-tools.d.ts.map +1 -1
- package/dist/repl/harness-tools.js +38 -14
- package/dist/repl/harness-tools.js.map +1 -1
- package/dist/repl/history.d.ts +14 -3
- package/dist/repl/history.d.ts.map +1 -1
- package/dist/repl/history.js +62 -5
- package/dist/repl/history.js.map +1 -1
- package/dist/repl/index.d.ts +11 -0
- package/dist/repl/index.d.ts.map +1 -1
- package/dist/repl/index.js +6 -2
- package/dist/repl/index.js.map +1 -1
- package/dist/repl/process-backend.d.ts +1 -0
- package/dist/repl/process-backend.d.ts.map +1 -1
- package/dist/repl/process-executor.d.ts +4 -0
- package/dist/repl/process-executor.d.ts.map +1 -1
- package/dist/repl/process-executor.js +36 -1
- package/dist/repl/process-executor.js.map +1 -1
- package/dist/repl/process-worker.d.ts.map +1 -1
- package/dist/repl/process-worker.js +33 -8
- package/dist/repl/process-worker.js.map +1 -1
- package/dist/repl/processes.d.ts +14 -1
- package/dist/repl/processes.d.ts.map +1 -1
- package/dist/repl/processes.js +8 -2
- package/dist/repl/processes.js.map +1 -1
- package/dist/repl/reference.d.ts.map +1 -1
- package/dist/repl/reference.js +4 -3
- package/dist/repl/reference.js.map +1 -1
- package/dist/repl/render.d.ts.map +1 -1
- package/dist/repl/render.js +13 -0
- package/dist/repl/render.js.map +1 -1
- package/dist/repl/session.d.ts +72 -5
- package/dist/repl/session.d.ts.map +1 -1
- package/dist/repl/session.js +595 -42
- package/dist/repl/session.js.map +1 -1
- package/dist/repl/toolset.d.ts +8 -0
- package/dist/repl/toolset.d.ts.map +1 -1
- package/dist/repl/toolset.js +53 -4
- package/dist/repl/toolset.js.map +1 -1
- package/dist/repl/tui/renderer.d.ts.map +1 -1
- package/dist/repl/tui/renderer.js +3 -1
- package/dist/repl/tui/renderer.js.map +1 -1
- package/dist/repl/work-hooks.d.ts +29 -0
- package/dist/repl/work-hooks.d.ts.map +1 -0
- package/dist/repl/work-hooks.js +117 -0
- package/dist/repl/work-hooks.js.map +1 -0
- package/dist/repl/worker-host.d.ts +2 -0
- package/dist/repl/worker-host.d.ts.map +1 -1
- package/dist/repl/worker-host.js +48 -4
- package/dist/repl/worker-host.js.map +1 -1
- package/dist/repl/worker-protocol.d.ts +23 -2
- package/dist/repl/worker-protocol.d.ts.map +1 -1
- package/dist/repl/worker-protocol.js +1 -1
- package/dist/runner.d.ts +2 -2
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +19 -3
- package/dist/runner.js.map +1 -1
- package/dist/runtime-identity.json +6 -6
- package/dist/serve/agent-broadcast.d.ts +29 -0
- package/dist/serve/agent-broadcast.d.ts.map +1 -0
- package/dist/serve/agent-broadcast.js +28 -0
- package/dist/serve/agent-broadcast.js.map +1 -0
- package/dist/serve/agent-preferences.d.ts +16 -0
- package/dist/serve/agent-preferences.d.ts.map +1 -0
- package/dist/serve/agent-preferences.js +42 -0
- package/dist/serve/agent-preferences.js.map +1 -0
- package/dist/serve/api-docs.d.ts +61 -0
- package/dist/serve/api-docs.d.ts.map +1 -0
- package/dist/serve/api-docs.js +122 -0
- package/dist/serve/api-docs.js.map +1 -0
- package/dist/serve/backend.d.ts +12 -0
- package/dist/serve/backend.d.ts.map +1 -0
- package/dist/serve/backend.js +52 -0
- package/dist/serve/backend.js.map +1 -0
- package/dist/serve/capabilities.d.ts +6 -0
- package/dist/serve/capabilities.d.ts.map +1 -0
- package/dist/serve/capabilities.js +21 -0
- package/dist/serve/capabilities.js.map +1 -0
- package/dist/serve/example-agent.d.ts +5 -0
- package/dist/serve/example-agent.d.ts.map +1 -0
- package/dist/serve/example-agent.js +5 -0
- package/dist/serve/example-agent.js.map +1 -0
- package/dist/serve/files.d.ts +55 -0
- package/dist/serve/files.d.ts.map +1 -0
- package/dist/serve/files.js +249 -0
- package/dist/serve/files.js.map +1 -0
- package/dist/serve/harness.d.ts +3 -0
- package/dist/serve/harness.d.ts.map +1 -0
- package/dist/serve/harness.js +53 -0
- package/dist/serve/harness.js.map +1 -0
- package/dist/serve/previews.d.ts +40 -0
- package/dist/serve/previews.d.ts.map +1 -0
- package/dist/serve/previews.js +240 -0
- package/dist/serve/previews.js.map +1 -0
- package/dist/serve/protocol.d.ts +228 -0
- package/dist/serve/protocol.d.ts.map +1 -0
- package/dist/serve/protocol.js +2 -0
- package/dist/serve/protocol.js.map +1 -0
- package/dist/serve/schedules.d.ts +85 -0
- package/dist/serve/schedules.d.ts.map +1 -0
- package/dist/serve/schedules.js +249 -0
- package/dist/serve/schedules.js.map +1 -0
- package/dist/serve/server.d.ts +50 -0
- package/dist/serve/server.d.ts.map +1 -0
- package/dist/serve/server.js +1696 -0
- package/dist/serve/server.js.map +1 -0
- package/dist/serve/session-worker.d.ts +2 -0
- package/dist/serve/session-worker.d.ts.map +1 -0
- package/dist/serve/session-worker.js +291 -0
- package/dist/serve/session-worker.js.map +1 -0
- package/dist/serve/sessions.d.ts +178 -0
- package/dist/serve/sessions.d.ts.map +1 -0
- package/dist/serve/sessions.js +905 -0
- package/dist/serve/sessions.js.map +1 -0
- package/dist/serve/storage.d.ts +41 -0
- package/dist/serve/storage.d.ts.map +1 -0
- package/dist/serve/storage.js +211 -0
- package/dist/serve/storage.js.map +1 -0
- package/dist/serve/ui/api-docs.html +17 -0
- package/dist/serve/ui/api-docs.js +36 -0
- package/dist/serve/ui/app.js +958 -0
- package/dist/serve/ui/authoring.js +92 -0
- package/dist/serve/ui/deepclause-logo.png +0 -0
- package/dist/serve/ui/deepclause-mark.svg +1 -0
- package/dist/serve/ui/diff.js +16 -0
- package/dist/serve/ui/dompurify-LICENSE.txt +202 -0
- package/dist/serve/ui/features.css +15 -0
- package/dist/serve/ui/files.js +13 -0
- package/dist/serve/ui/ibm-plex-mono-latin.woff2 +0 -0
- package/dist/serve/ui/ibmplexmono-OFL.txt +93 -0
- package/dist/serve/ui/icons.js +30 -0
- package/dist/serve/ui/index.html +68 -0
- package/dist/serve/ui/manrope-OFL.txt +93 -0
- package/dist/serve/ui/manrope-latin.woff2 +0 -0
- package/dist/serve/ui/markdown.js +38 -0
- package/dist/serve/ui/marked-LICENSE.txt +44 -0
- package/dist/serve/ui/marked.js +88 -0
- package/dist/serve/ui/purify.js +2454 -0
- package/dist/serve/ui/style.css +249 -0
- package/dist/serve/ui/web-work.css +247 -0
- package/dist/serve/ui/web.css +1848 -0
- package/dist/serve/workflow-bundles.d.ts +8 -0
- package/dist/serve/workflow-bundles.d.ts.map +1 -0
- package/dist/serve/workflow-bundles.js +78 -0
- package/dist/serve/workflow-bundles.js.map +1 -0
- package/dist/serve/workflow-calls.d.ts +6 -0
- package/dist/serve/workflow-calls.d.ts.map +1 -0
- package/dist/serve/workflow-calls.js +13 -0
- package/dist/serve/workflow-calls.js.map +1 -0
- package/dist/serve/workflows.d.ts +93 -0
- package/dist/serve/workflows.d.ts.map +1 -0
- package/dist/serve/workflows.js +219 -0
- package/dist/serve/workflows.js.map +1 -0
- package/dist/system/assets/docs/AGENT_PROMPT.md +6 -6
- package/dist/system/assets/docs/DML_AUTHORING.md +80 -2
- package/dist/system/assets/docs/DML_PROCESSES.md +24 -0
- package/dist/system/assets/docs/DML_REFERENCE.md +98 -10
- package/dist/system/assets/docs/DML_SHELL.md +149 -7
- package/dist/system/assets/docs/DML_TASKS.md +10 -3
- package/dist/system/assets/docs/LOCAL_AGENT_PROMPT.md +6 -6
- package/dist/system/environment.d.ts +5 -1
- package/dist/system/environment.d.ts.map +1 -1
- package/dist/system/environment.js +14 -8
- package/dist/system/environment.js.map +1 -1
- package/dist/system/runtime/agentvm-manager.d.ts +12 -1
- package/dist/system/runtime/agentvm-manager.d.ts.map +1 -1
- package/dist/system/runtime/agentvm-manager.js +136 -20
- package/dist/system/runtime/agentvm-manager.js.map +1 -1
- package/dist/system/runtime/shell-manager.d.ts +3 -0
- package/dist/system/runtime/shell-manager.d.ts.map +1 -1
- package/dist/system/runtime/shell-manager.js +1 -1
- package/dist/system/runtime/shell-manager.js.map +1 -1
- package/dist/system/timezone.d.ts +20 -0
- package/dist/system/timezone.d.ts.map +1 -0
- package/dist/system/timezone.js +37 -0
- package/dist/system/timezone.js.map +1 -0
- package/dist/types.d.ts +37 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/work/index.d.ts +13 -3
- package/dist/work/index.d.ts.map +1 -1
- package/dist/work/index.js +80 -15
- package/dist/work/index.js.map +1 -1
- package/docs/DEEP_RESEARCH_EXAMPLE.md +127 -0
- package/docs/SERVE.md +664 -0
- package/docs/WORK_AGENT_HOOKS_PLAN.md +416 -0
- package/docs/WORK_AGENT_INBOX.md +140 -0
- package/docs/WORK_AGENT_INBOX_PLAN.md +91 -0
- package/docs/WORK_MODE.md +269 -0
- package/package.json +24 -2
- package/sdk-examples/deep-research.dml +144 -0
- package/sdk-examples/deep-research.py +502 -0
- package/sdk-examples/hooked-agent.dml +49 -0
- package/sdk-examples/subagent-inbox.dml +66 -0
- package/src/prolog-src/deepclause_mi.pl +370 -54
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {lineDiff} from '/diff.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read-only linked files of one immutable published revision. The host serves
|
|
5
|
+
* bounded text previews (64 KiB) for each declared asset, so an author can see
|
|
6
|
+
* exactly what a run would have available without touching the draft.
|
|
7
|
+
*/
|
|
8
|
+
export function versionFilesSection({api,el,button,workflowId,revision,assets}){
|
|
9
|
+
const root=el('section',undefined,'version-files');root.setAttribute('aria-label','Linked files in this published version');
|
|
10
|
+
if(!assets?.length){root.append(el('p','No linked files in this version.','muted'));return root;}
|
|
11
|
+
for(const asset of assets){
|
|
12
|
+
const row=el('div',undefined,'version-file'),body=el('pre',undefined,'version-file-preview');body.hidden=true;
|
|
13
|
+
const toggle=button(`${asset.path} · ${asset.size} B`,async()=>{
|
|
14
|
+
if(!body.hidden){body.hidden=true;return;}
|
|
15
|
+
if(!body.dataset.loaded){try{const file=await api(`workflows/${workflowId}/versions/${revision}/asset?path=${encodeURIComponent(asset.path)}`);body.textContent=file.text===null?'Binary file; text preview unavailable.':file.text+(file.truncated?'\n\n… preview limited to 64 KiB':'');body.dataset.loaded='true';}catch(error){body.textContent=`Could not load ${asset.path}: ${error.message}`;}}
|
|
16
|
+
body.hidden=false;
|
|
17
|
+
},undefined,'btn small');
|
|
18
|
+
toggle.setAttribute('aria-expanded','false');
|
|
19
|
+
toggle.addEventListener('click',()=>toggle.setAttribute('aria-expanded',String(!body.hidden)));
|
|
20
|
+
row.append(toggle,el('small',`sha256 ${String(asset.sha256).slice(0,12)} · read-only`,'muted'),body);root.append(row);
|
|
21
|
+
}
|
|
22
|
+
return root;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function createAuthoringPanel({api,el,button,current,modal,showError,onRefresh,onSelect,onDiagram,withAuthorLoading=action=>action()}){
|
|
26
|
+
const root=document.querySelector('#author-code'),cache=new Map();let active,ui,generation=0;
|
|
27
|
+
function diffNode(before,after){
|
|
28
|
+
const rows=lineDiff(before,after),changed=rows.filter(row=>row.kind!=='context'),box=el('div',undefined,'source-diff');box.setAttribute('aria-label','Workflow source diff');
|
|
29
|
+
box.append(el('p',`${changed.filter(r=>r.kind==='add').length} added · ${changed.filter(r=>r.kind==='remove').length} removed`,'diff-summary'));
|
|
30
|
+
if(!changed.length)box.append(el('p','No code changes.','muted'));
|
|
31
|
+
let shown=0;
|
|
32
|
+
for(let i=0;i<rows.length;i++){if(rows[i].kind==='context' && !rows.slice(Math.max(0,i-2),i+3).some(row=>row.kind!=='context'))continue;if(shown++>=1200){box.append(el('p','Diff display limited to 1,200 lines. Full source remains in Code.'));break;}const line=el('pre',(rows[i].kind==='add' ? '+ ' : rows[i].kind==='remove' ? '- ' : ' ')+rows[i].text,'diff-line '+rows[i].kind);box.append(line);}
|
|
33
|
+
return box;
|
|
34
|
+
}
|
|
35
|
+
function paint(){
|
|
36
|
+
const item=cache.get(active);if(!item || !ui)return;
|
|
37
|
+
const session=current(),busy=Boolean(session?.operation)||session?.state!=='ready';
|
|
38
|
+
ui.status.textContent=item.conflict ? 'Agent updated the code. Your local edits are preserved; load latest before saving.' : item.dirty ? 'Unsaved local edits' : `Draft ${item.state?.spec.version ?? 0}${session?.authoring?.version ? ` · Published v${session.authoring.version}` : ''}${busy ? ' · Agent working' : ' · In sync'}`;
|
|
39
|
+
ui.save.disabled=busy || !item.dirty || item.conflict || item.saving;
|
|
40
|
+
ui.latest.hidden=!item.conflict;ui.history.disabled=!item.state;
|
|
41
|
+
ui.diagram.replaceChildren(...(item.state?.spec.shell?.workflows ?? []).map(entry=>{const b=button(entry.name,()=>onDiagram(entry,active),'diagram','btn ghost small');b.disabled=busy || item.dirty || item.state?.spec.status!=='ready';return b;}));
|
|
42
|
+
ui.diff.replaceChildren(diffNode(item.dirty ? item.state?.source ?? '' : item.previous ?? item.buffer,item.buffer));
|
|
43
|
+
ui.codeTab.setAttribute('aria-pressed',String(!item.diff));ui.diffTab.setAttribute('aria-pressed',String(Boolean(item.diff)));ui.editor.hidden=Boolean(item.diff);ui.diff.hidden=!item.diff;
|
|
44
|
+
}
|
|
45
|
+
function build(id){
|
|
46
|
+
active=id;root.replaceChildren();const toolbar=el('div',undefined,'author-toolbar');
|
|
47
|
+
const codeTab=button('Code',()=>{cache.get(id).diff=false;paint();},undefined,'btn ghost small'),diffTab=button('Changes',()=>{cache.get(id).diff=true;paint();},undefined,'btn ghost small');
|
|
48
|
+
const history=button('History',showHistory,'clock','btn ghost small');const refresh=button('Refresh',()=>load(current(),true),'info','btn ghost small');toolbar.append(codeTab,diffTab,history,refresh);
|
|
49
|
+
const status=el('p','Loading workflow code…','source-status'),editor=el('textarea',undefined,'source-editor');editor.spellcheck=false;editor.disabled=true;editor.setAttribute('aria-label','Workflow DML source');
|
|
50
|
+
editor.oninput=()=>{const item=cache.get(id);item.buffer=editor.value;item.dirty=item.buffer!==item.state?.source;paint();};
|
|
51
|
+
const diff=el('div',undefined,'author-diff-scroll'),diagram=el('div',undefined,'author-diagrams');diagram.setAttribute('aria-label','Draft workflow diagrams');
|
|
52
|
+
const save=button('Validate, commit & activate',async()=>{const item=cache.get(id);if(save.disabled)return;item.saving=true;paint();try{const result=await api(`sessions/${id}/source`,{source:item.buffer,expectedHash:item.baseHash},'PUT');if(result.error)throw new Error(result.error);item.dirty=false;item.conflict=false;await onRefresh();await load(current(),true);}finally{item.saving=false;paint();}},'edit','btn primary small');
|
|
53
|
+
save.disabled=true;history.disabled=true;
|
|
54
|
+
const latest=button('Load latest code',()=>{const item=cache.get(id);if(item.dirty && !confirm('Discard your unsaved local edits and load the Agent’s latest code?'))return;item.dirty=false;item.conflict=false;item.buffer=item.state.source;item.baseHash=item.state.spec.hash;editor.value=item.buffer;paint();},undefined,'btn small');latest.hidden=true;
|
|
55
|
+
const actions=el('div',undefined,'author-save');actions.append(save,latest);root.append(toolbar,status,diagram,editor,diff,actions);ui={status,editor,diff,diagram,save,latest,history,codeTab,diffTab};
|
|
56
|
+
}
|
|
57
|
+
async function load(session,force=false){
|
|
58
|
+
if(!session || session.mode!=='develop'){root.hidden=true;active=undefined;generation++;return;}
|
|
59
|
+
root.hidden=false;let item=cache.get(session.id);if(!item){item={buffer:'',dirty:false};cache.set(session.id,item);if(cache.size>24)cache.delete(cache.keys().next().value);}
|
|
60
|
+
if(active!==session.id){build(session.id);ui.editor.value=item.buffer;force=true;}
|
|
61
|
+
if(item.actorHash!==session.hash)force=true;
|
|
62
|
+
if(session.state!=='ready'){ui.status.textContent='Saved author session. Send a message to reopen before editing code.';ui.editor.disabled=true;ui.save.disabled=true;return;}
|
|
63
|
+
ui.editor.disabled=!item.state;if(item.loading){item.again ||= force;paint();return;}
|
|
64
|
+
if(item.state && !force){paint();return;}
|
|
65
|
+
item.loading=true;const turn=++generation,id=session.id;
|
|
66
|
+
try{const state=await api(`sessions/${id}/source`);if(turn!==generation || active!==id)return;
|
|
67
|
+
if(item.state?.source!==state.source || item.state?.spec.hash!==state.spec.hash){item.previous=item.state?.source ?? state.source;if(item.dirty){item.conflict=true;}else{item.buffer=state.source;item.baseHash=state.spec.hash;ui.editor.value=state.source;}}
|
|
68
|
+
item.state=state;item.actorHash=session.hash;ui.editor.disabled=false;paint();
|
|
69
|
+
}catch(error){if(active===id)ui.status.textContent=error.message;}finally{item.loading=false;if(item.again && active===id){item.again=false;void load(current(),true);}}
|
|
70
|
+
}
|
|
71
|
+
async function showHistory(){
|
|
72
|
+
const session=current();if(!session?.authoring)return;const owner=session.id;
|
|
73
|
+
const body=el('div');body.append(el('p','Published history. Restore updates code in this same author conversation and creates a new validated revision. Conversation history is retained; active runs and external effects are not rewound.','muted'));
|
|
74
|
+
const entries=(await api('workflows')).entries,head=entries.find(entry=>entry.workflowId===session.authoring.workflowId);
|
|
75
|
+
if(!head)body.append(el('p','This draft has not been published yet. Commit a valid change to create its first published version.'));
|
|
76
|
+
else{const history=await api(`workflows/${head.workflowId}/versions`);for(const version of history.versions){const row=el('section',undefined,'author-history-row');row.append(el('h3',`v${version.version}${version.revision===head.revision ? ' · Current' : ''}`),el('small',new Date(version.createdAt).toLocaleString()));
|
|
77
|
+
row.append(button('Inspect / diff',async()=>{const saved=await api(`workflows/${head.workflowId}/versions/${version.revision}`),view=el('div');if(active!==owner || !cache.has(owner))return;view.append(el('h3',`Published v${saved.version}`),diffNode(saved.source,cache.get(active)?.state?.source ?? ''),el('pre',saved.source,'history-source'),el('h3','Linked files'),versionFilesSection({api,el,button,workflowId:head.workflowId,revision:saved.revision,assets:saved.assets}),button('Back to history',showHistory));modal('Workflow history',view,true);document.querySelector('#modal').dataset.ownerSession=owner;},'edit','btn small'));
|
|
78
|
+
const restore=button('Restore this version',async()=>{if(!confirm(`Restore published v${version.version} into this workflow's author session? This replaces current draft code and linked assets, discards unsaved local code edits, and publishes a new revision. Conversation history is kept. External effects are not undone.`))return;await withAuthorLoading(async()=>{const author=await api(`workflows/${head.workflowId}/restore`,{revision:version.revision,expectedRevision:head.revision});const item=cache.get(owner);if(item){item.dirty=false;item.conflict=false;}document.querySelector('#modal').close();await onRefresh();await onSelect(author.id);});},'clock','btn small');restore.disabled=version.revision===head.revision || Boolean(session.operation);row.append(restore);body.append(row);}}
|
|
79
|
+
if(active!==owner || !cache.has(owner))return;
|
|
80
|
+
modal('Workflow history',body,true);document.querySelector('#modal').dataset.ownerSession=session.id;
|
|
81
|
+
}
|
|
82
|
+
async function settings(){
|
|
83
|
+
const session=current();if(!session?.authoring || session.state!=='ready' || session.operation)throw new Error('Finish the current workflow turn before changing settings');
|
|
84
|
+
if(cache.get(session.id)?.dirty)throw new Error('Save or discard local code edits before changing workflow settings');
|
|
85
|
+
const state=await api(`sessions/${session.id}/source`);if(active!==session.id)return;const entry=state.spec.shell?.workflows[0];if(!entry)throw new Error('Declare a valid workflow interface before editing its settings');
|
|
86
|
+
const form=el('form',undefined,'workflow-settings-form'),field=el('label','Workflow name','field'),input=el('input');input.value=entry.name;input.required=true;input.maxLength=120;input.setAttribute('aria-label','Workflow name');field.append(input);form.append(field,el('p','Saving commits the validated workflow interface. The workflow ID and its author conversation stay the same.','muted'));
|
|
87
|
+
const save=el('button','Save workflow settings','btn primary');save.type='submit';form.append(save);
|
|
88
|
+
form.onsubmit=async event=>{event.preventDefault();if(save.disabled)return;save.disabled=true;try{await api(`sessions/${session.id}/workflow-settings`,{name:input.value.trim(),previousName:entry.name,expectedHash:state.spec.hash},'PATCH');document.querySelector('#modal').close();await onRefresh();await load(current(),true);}catch(error){showError(error);}finally{save.disabled=false;}};
|
|
89
|
+
modal('Workflow settings',form);document.querySelector('#modal').dataset.ownerSession=session.id;input.focus();
|
|
90
|
+
}
|
|
91
|
+
return {load,history:showHistory,settings,forget(id){cache.delete(id);if(active===id){active=undefined;generation++;root.replaceChildren();root.hidden=true;}}};
|
|
92
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="hero-logo" viewBox="0 0 316 180" width="316" height="180" role="img" aria-label="DeepClause octopus" focusable="false"><g class="hero-logo-arrive"><g class="hero-logo-drift"><g fill="none" stroke="currentColor" stroke-width="8" stroke-linejoin="round"><path class="hero-logo-tentacle" d="M30 61.5H127L168.5 89.5" pathLength="100" style="--logo-delay:180ms"></path><path class="hero-logo-tentacle" d="M64.5 89.5H168.5" pathLength="100" style="--logo-delay:300ms"></path><path class="hero-logo-tentacle" d="M98.5 117.5H127L168.5 89.5" pathLength="100" style="--logo-delay:420ms"></path><path class="hero-logo-tentacle" d="M150 17.5H208L232 43" pathLength="100" style="--logo-delay:640ms"></path><path class="hero-logo-tentacle" d="M150 157.5H210L216 151" pathLength="100" style="--logo-delay:760ms"></path><path class="hero-logo-tentacle" d="M145.5 26L158 43" pathLength="100" style="--logo-delay:460ms"></path><path class="hero-logo-tentacle" d="M172 62L190.5 89L172 115" pathLength="100" style="--logo-delay:580ms"></path><path class="hero-logo-tentacle" d="M157.5 133L145.5 149" pathLength="100" style="--logo-delay:700ms"></path></g><g fill="none" stroke="currentColor" stroke-width="5.5"><circle class="hero-logo-ring" cx="17.5" cy="62" r="10.5" pathLength="100" style="--logo-delay:80ms"></circle><circle class="hero-logo-ring" cx="52" cy="90" r="10.5" pathLength="100" style="--logo-delay:200ms"></circle><circle class="hero-logo-ring" cx="86" cy="117.5" r="10.5" pathLength="100" style="--logo-delay:320ms"></circle><circle class="hero-logo-ring" cx="138.5" cy="16" r="10.2" pathLength="100" style="--logo-delay:400ms"></circle><circle class="hero-logo-ring" cx="165" cy="52" r="10.2" pathLength="100" style="--logo-delay:520ms"></circle><circle class="hero-logo-ring" cx="165" cy="124" r="10.2" pathLength="100" style="--logo-delay:640ms"></circle><circle class="hero-logo-ring" cx="138.5" cy="159" r="10.2" pathLength="100" style="--logo-delay:720ms"></circle></g><circle class="hero-logo-junction" cx="168.5" cy="89.5" r="11" fill="currentColor"></circle><path class="hero-logo-mantle" d="M208.5 40H232 C269 39 290.5 60.5 290.5 98 C290.5 135.5 269 155.5 235 155.5H208.5V136 C232 140 255 123 255 110 C255 102 251 98.5 243 98.5H231 C218 98.5 218 80 231 80H234 C248 80 248 69 236 63 C228 59 217 58.5 208.5 60Z" fill="currentColor"></path><path class="hero-logo-outline" d="M208.5 40H232 C269 39 290.5 60.5 290.5 98 C290.5 135.5 269 155.5 235 155.5H208.5V136 C232 140 255 123 255 110 C255 102 251 98.5 243 98.5H231 C218 98.5 218 80 231 80H234 C248 80 248 69 236 63 C228 59 217 58.5 208.5 60Z" fill="none" stroke="currentColor" stroke-width="0.8" pathLength="100" opacity="0"></path><g fill="none" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path class="hero-logo-signal" d="M30 61.5H127L168.5 89.5" pathLength="100" opacity="0" style="--logo-delay:0ms"></path><path class="hero-logo-signal" d="M64.5 89.5H168.5" pathLength="100" opacity="0" style="--logo-delay:240ms"></path><path class="hero-logo-signal" d="M98.5 117.5H127L168.5 89.5" pathLength="100" opacity="0" style="--logo-delay:480ms"></path></g></g></g></svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Bounded, dependency-free line diff. No HTML from source is ever interpreted.
|
|
2
|
+
export function lineDiff(before,after){
|
|
3
|
+
const a=String(before).split('\n',16001),b=String(after).split('\n',16001),result=[];
|
|
4
|
+
let start=0,endA=a.length,endB=b.length;
|
|
5
|
+
while(start<endA && start<endB && a[start]===b[start]){result.push({kind:'context',text:a[start]});start++;}
|
|
6
|
+
while(endA>start && endB>start && a[endA-1]===b[endB-1]){endA--;endB--;}
|
|
7
|
+
const n=endA-start,m=endB-start;
|
|
8
|
+
if(n*m<=250000){
|
|
9
|
+
const width=m+1,dp=new Uint16Array((n+1)*width);
|
|
10
|
+
for(let i=n-1;i>=0;i--)for(let j=m-1;j>=0;j--)dp[i*width+j]=a[start+i]===b[start+j] ? dp[(i+1)*width+j+1]+1 : Math.max(dp[(i+1)*width+j],dp[i*width+j+1]);
|
|
11
|
+
let i=0,j=0;while(i<n || j<m){if(i<n && j<m && a[start+i]===b[start+j]){result.push({kind:'context',text:a[start+i]});i++;j++;}else if(i<n && (j===m || dp[(i+1)*width+j]>=dp[i*width+j+1]))result.push({kind:'remove',text:a[start+i++]});else result.push({kind:'add',text:b[start+j++]});}
|
|
12
|
+
}else{for(let i=start;i<endA;i++)result.push({kind:'remove',text:a[i]});for(let j=start;j<endB;j++)result.push({kind:'add',text:b[j]});}
|
|
13
|
+
for(let i=endA;i<a.length;i++)result.push({kind:'context',text:a[i]});
|
|
14
|
+
if(a.length>16000 || b.length>16000)result.push({kind:'context',text:'… Diff limited to the first 16,000 lines.'});
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.file-ribbon{display:inline-flex;align-items:center;gap:12px;max-width:100%;padding:12px 16px;margin:6px 0;border:1px solid var(--border,#ddd);border-radius:10px;background:var(--surface,#fff);color:inherit;text-decoration:none!important;cursor:pointer;vertical-align:middle}.file-ribbon:hover{border-color:var(--accent,#d77b54);background:var(--surface-hover,#faf8f5)}.file-ribbon>svg{flex-shrink:0;width:21px;height:25px}.file-ribbon>span{min-width:0;display:grid;gap:3px}.file-ribbon strong{font-size:14px;overflow-wrap:anywhere}.file-ribbon small{display:block;color:var(--text-muted,#777);font-size:11px;overflow-wrap:anywhere}.file-ribbon>svg:last-child{width:16px;height:16px;margin-left:auto}.file-input-actions,.file-browser-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.file-browser-toolbar code{overflow-wrap:anywhere;flex:1}.file-browser-toolbar input{max-width:220px}.file-browser-list{display:grid;margin:16px 0;max-height:45vh;overflow:auto}.file-browser-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eee}.file-browser-row>.file-browser-name{flex:1;min-width:0;justify-content:flex-start;text-align:left;overflow-wrap:anywhere}.file-browser-row>.file-ribbon{padding:6px 10px;margin:3px;font-size:12px;max-width:40%}.file-browser-row>.file-ribbon small{display:none}.file-preview pre{max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:monospace;font-size:12px;background:#f7f7f6;padding:16px;border-radius:8px}.source-editor{display:block;box-sizing:border-box;width:100%;min-height:50vh;font:13px/1.6 'IBM Plex Mono',monospace;tab-size:4;white-space:pre;resize:vertical;padding:16px;margin:16px 0;overflow:auto}.schedule-controls{display:grid;gap:10px;margin:16px 0;padding:16px;border:1px solid #ddd;border-radius:8px}.schedule-controls[hidden]{display:none}.schedule-row{border-bottom:1px solid #ddd;padding:12px 0;overflow-wrap:anywhere}.workflow-form>.btn{margin:8px 8px 0 0}.modal.file-browser{z-index:20}.version-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.agent-editor .modal-body{display:grid;gap:14px;max-height:75vh;overflow:auto}.agent-editor textarea{width:100%;resize:vertical}.recipient-choice{display:flex;align-items:center;gap:8px}.recipient-choice input{width:auto}.agent-summary{flex-basis:100%;font-size:12px;color:#777;margin:4px 0 0;max-width:640px}.session-heading:has(.agent-summary:not([hidden])){flex-wrap:wrap}@media(max-width:640px){#schedules{font-size:11px;padding:6px}#files{font-size:11px;padding:6px}.file-browser-row>.file-ribbon{max-width:35%}.file-browser-row>.file-ribbon strong{display:none}.file-browser-row>.file-ribbon>svg:last-child{display:none}.session-actions{flex-wrap:wrap}.source-editor{font-size:11px}}
|
|
2
|
+
/* Published-version linked files: read-only, lazy bounded previews. */
|
|
3
|
+
.version-files{display:grid;gap:8px;margin:8px 0 14px}.version-file{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.version-file .btn{justify-content:flex-start;text-align:left;overflow-wrap:anywhere}.version-file small{color:var(--dim);font-size:10.5px}.version-file-preview{margin:0;max-height:45vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 var(--font-mono);background:var(--panel);padding:10px;border-radius:7px}
|
|
4
|
+
/* Author startup feedback; execution is unchanged. */
|
|
5
|
+
dialog.modal.author-loading{width:min(420px,94vw);padding:24px;gap:14px}.author-loading-status{display:flex;align-items:center;gap:12px}.author-loading-status h2{margin:0;font:600 15px/1.5 var(--font-sans)}.author-loading .spinner{width:24px;height:24px;border-width:3px;flex:none}.author-loading p{margin:0;font-size:12px;line-height:1.6}@media(prefers-reduced-motion:reduce){.author-loading .spinner{animation:none}}
|
|
6
|
+
/* Harness authoring and task views. */
|
|
7
|
+
.workspace-actions{padding:0 6px}.new-agent-pill{border-radius:999px;width:100%;justify-content:center}.work-side-row>.icon-only{width:27px;min-width:27px;padding:4px}.workflow-group{min-width:0}.workflow-group.active>.entry{background:var(--accent-soft);border-radius:9px}
|
|
8
|
+
.author-workspace{display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}.conversation-pane{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.conversation-pane .chat-scroll{flex:1;min-height:0;overflow:auto}.author-workspace.author-mode{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.author-mode .chat-scroll{padding:24px 20px}.author-code{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid var(--border);background:var(--panel)}.author-toolbar,.author-save,.author-diagrams{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px 12px;flex:none}.author-toolbar{border-bottom:1px solid var(--border)}.author-toolbar [aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.source-status{padding:8px 12px;margin:0;font-size:11px;color:var(--dim);flex:none}.author-code .source-editor{flex:1;min-height:0;resize:none;margin:0;border:0;border-radius:0;padding:12px;font:12px/1.7 var(--font-mono);background:var(--surface);color:var(--text);white-space:pre;overflow:auto}.author-diagrams{padding-top:0}.author-diagrams:empty{display:none}.author-diff-scroll{flex:1;min-height:0;overflow:auto;background:var(--surface)}.source-diff{font:11px/1.6 var(--font-mono);padding:10px}.diff-summary{font-family:var(--font-sans);color:var(--dim)}.diff-line{margin:0;padding:2px 6px;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.diff-line.add{background:#e5f3e9;color:#185e35}.diff-line.remove{background:#fae8e8;color:#922d30}.author-save{border-top:1px solid var(--border)}.author-history-row{padding:12px 0;border-bottom:1px solid var(--border)}.author-history-row .btn{margin:8px 6px 0 0}.history-source{max-height:40vh;overflow:auto;white-space:pre-wrap;font-size:11px}.agent-summary{max-width:800px;line-height:1.6}
|
|
9
|
+
.dock.runs-view{width:480px;min-width:340px}.workflow-run-pane{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.run-filters{padding:12px;font-size:11px}.run-filters select{width:auto;margin-left:6px}.run-table-scroll{flex:1;min-height:100px;overflow:auto}.run-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.run-table th,.run-table td{padding:9px 8px;border-bottom:1px solid var(--border);vertical-align:top}.run-table th{position:sticky;top:0;background:var(--chrome);font-weight:600}.run-table small{display:block;color:var(--dim);margin-top:4px}.run-table tr.active{background:var(--accent-soft)}.run-table td:last-child{white-space:nowrap}.run-details{padding:14px;max-height:55%;overflow:auto;border-top:1px solid var(--border);flex:none}.run-details h3{font-size:13px;margin:0}.run-details .result-card{margin:10px 0}.run-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.run-inputs{margin:10px 0}.run-status{font-size:10px}.dock-head .btn[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}
|
|
10
|
+
#layout.dock-open .session-header{flex-direction:column;align-items:stretch;gap:8px}#layout.dock-open .session-actions{max-width:none;justify-content:flex-start;flex-wrap:wrap}#layout.dock-open .session-heading{width:100%}
|
|
11
|
+
@media(max-width:1100px){.session-header{align-items:stretch;flex-direction:column;padding:12px 16px}.session-actions{flex-wrap:wrap;justify-content:flex-start;max-width:100%}.header{gap:6px;padding:0 10px}.brand-name{font-size:13px}.dock.runs-view{width:360px}}
|
|
12
|
+
@media(max-width:960px){.author-workspace.author-mode{display:flex}.author-mode .author-code{display:none}.author-mode.show-code .conversation-pane{display:none}.author-mode.show-code .author-code{display:flex;flex:1;border-left:0}.dock.runs-view{width:min(480px,96vw);min-width:0}.header .brand-name{font-size:12px}.header .btn{font-size:10px;padding:5px}.session-actions{max-width:100%}.source-status{font-size:10px}}
|
|
13
|
+
@media(max-width:600px){.header .brand-name{max-width:90px;white-space:normal;font-size:11px;line-height:1.2}.header .brand-mark{width:24px}.header .api-link{display:none}.header #files,.header #schedules,.header #process-toggle,.header #runs-toggle{font-size:0;gap:3px;padding:5px}.header .header-action-label{display:none}.header .btn svg{width:15px;height:15px}}
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { icon } from '/icons.js';
|
|
2
|
+
let download = async () => { throw new Error('Downloads are not connected'); };
|
|
3
|
+
export function configureDownloads(action) { download = action; }
|
|
4
|
+
export function fileRibbon(file, label) {
|
|
5
|
+
const link = document.createElement('a'); link.className = 'file-ribbon';
|
|
6
|
+
link.href = '/api/files/content?path=' + encodeURIComponent(file.path); link.download = file.name || file.path.split('/').at(-1) || 'download';
|
|
7
|
+
const copy = document.createElement('span');
|
|
8
|
+
const title = document.createElement('strong'); title.textContent = label || file.name || link.download;
|
|
9
|
+
const detail = document.createElement('small'); detail.textContent = file.path + (Number.isFinite(file.size) ? ` · ${file.size.toLocaleString()} bytes` : '');
|
|
10
|
+
copy.append(title, detail); link.append(icon('file'),copy,icon('download')); link.title = 'Download ' + file.path;
|
|
11
|
+
link.onclick = event => { event.preventDefault(); void download(file); };
|
|
12
|
+
return link;
|
|
13
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
|
|
5
|
+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Geometry reused from deepclause-web/src/components/icons.tsx.
|
|
2
|
+
const paths = {
|
|
3
|
+
file: ['M14 2H6v20h12V6z','M14 2v5h5M9 12h6M9 16h6'],
|
|
4
|
+
folder: ['M3 5h7l2 3h9v12H3z'],
|
|
5
|
+
download: ['M12 3v12m-5-5 5 5 5-5M5 16v5h14v-5'],
|
|
6
|
+
clock: ['M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z','M12 6v6l4 2'],
|
|
7
|
+
send: ['M22 2 11 13', 'M22 2 15 22l-4-9-9-4Z'],
|
|
8
|
+
stop: ['M6 6h12v12H6z'], plus: ['M12 5v14M5 12h14'],
|
|
9
|
+
play: ['M6 4l14 8-14 8z'], close: ['M6 6l12 12M18 6 6 18'],
|
|
10
|
+
menu: ['M4 6h16M4 12h16M4 18h16'],
|
|
11
|
+
processes: ['m12 2 9 5-9 5-9-5 9-5Z', 'm3 12 9 5 9-5', 'm3 17 9 5 9-5'],
|
|
12
|
+
terminal: ['m4 17 6-5-6-5M12 19h8'],
|
|
13
|
+
edit: ['m16 3 5 5-12 12-6 1 1-6L16 3Z', 'm13 6 5 5'],
|
|
14
|
+
trash: ['M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14'],
|
|
15
|
+
chat: ['M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5Z'],
|
|
16
|
+
diagram: ['M12 3v5M5 16v-5h14v5', 'M9 2h6v5H9zM2 16h6v6H2zM16 16h6v6h-6z'],
|
|
17
|
+
trace: ['M4 4h6M4 12h6M4 20h6M14 4h6M14 12h6M14 20h6M7 4v16M17 4v16'],
|
|
18
|
+
details: ['M4 6h16M4 12h16M4 18h16'],
|
|
19
|
+
info: ['M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Z', 'M12 11v6M12 7h.01'],
|
|
20
|
+
tools: ['m14.7 6.3 3 3-9.4 9.4a2.1 2.1 0 0 1-3-3l9.4-9.4Z', 'M14 3a6 6 0 0 0-4 7l4 4a6 6 0 0 0 7-4l-4 1-4-4 1-4Z'],
|
|
21
|
+
};
|
|
22
|
+
export function icon(name) {
|
|
23
|
+
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
24
|
+
for (const [key, value] of Object.entries({ viewBox: '0 0 24 24', width: '16', height: '16', fill: 'none', stroke: 'currentColor', 'stroke-width': '1.7', 'stroke-linecap': 'round', 'stroke-linejoin': 'round', 'aria-hidden': 'true' })) svg.setAttribute(key, value);
|
|
25
|
+
for (const d of paths[name] || paths.tools) { const path = document.createElementNS(svg.namespaceURI, 'path'); path.setAttribute('d', d); svg.append(path); }
|
|
26
|
+
return svg;
|
|
27
|
+
}
|
|
28
|
+
export function decorate(root = document) {
|
|
29
|
+
for (const node of root.querySelectorAll('[data-icon]')) { node.prepend(icon(node.dataset.icon)); delete node.dataset.icon; }
|
|
30
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
6
|
+
<meta name="theme-color" content="#f2f2f0">
|
|
7
|
+
<title>DeepClause Harness</title>
|
|
8
|
+
<link rel="icon" href="/deepclause-logo.png">
|
|
9
|
+
<link rel="preload" href="/manrope-latin.woff2" as="font" type="font/woff2" crossorigin>
|
|
10
|
+
<link rel="stylesheet" href="/web.css">
|
|
11
|
+
<link rel="stylesheet" href="/web-work.css">
|
|
12
|
+
<link rel="stylesheet" href="/style.css">
|
|
13
|
+
<link rel="stylesheet" href="/features.css">
|
|
14
|
+
</head>
|
|
15
|
+
<body class="serve-work">
|
|
16
|
+
<div class="app">
|
|
17
|
+
<header class="header">
|
|
18
|
+
<button id="sidebar-toggle" class="btn ghost icon-only mobile-nav" aria-label="Toggle navigation" aria-expanded="false" aria-controls="sidebar" data-icon="menu"></button>
|
|
19
|
+
<div class="brand"><img class="brand-mark" src="/deepclause-logo.png" alt=""><span class="brand-name">DeepClause Harness</span></div>
|
|
20
|
+
<span id="harness" class="work-head-name" hidden></span>
|
|
21
|
+
<div class="header-spacer"></div>
|
|
22
|
+
<span id="connection" class="pill connection" role="status" data-state="connecting">Connecting…</span>
|
|
23
|
+
<a href="/api-docs" class="btn ghost api-link" title="Harness API documentation">API</a>
|
|
24
|
+
<button id="files" class="btn ghost" data-icon="folder">Files</button>
|
|
25
|
+
<button id="schedules" class="btn ghost" data-icon="clock">Schedules</button>
|
|
26
|
+
<button id="info" class="btn ghost" aria-label="Harness info" title="Harness info" data-icon="info"><span class="header-action-label">Info</span></button>
|
|
27
|
+
<button id="runs-toggle" class="btn ghost" aria-expanded="false" aria-controls="process-section" data-icon="play">Runs <span id="workflow-session-count" class="count">0</span></button>
|
|
28
|
+
<button id="process-toggle" class="btn ghost" aria-expanded="false" aria-controls="process-section" data-icon="processes">Processes <span id="process-count" class="count">0</span></button>
|
|
29
|
+
</header>
|
|
30
|
+
<div id="warning-bar" class="error-banner" hidden><span id="warning" role="alert"></span><button id="dismiss-warning" class="btn ghost icon-only" aria-label="Dismiss notification" data-icon="close"></button></div>
|
|
31
|
+
<div id="layout" class="work-shell-layout">
|
|
32
|
+
<button id="pane-backdrop" aria-label="Close navigation panels" hidden></button>
|
|
33
|
+
<aside id="sidebar" class="work-shell-side" aria-label="Workspace navigation">
|
|
34
|
+
<div class="work-side-scroll">
|
|
35
|
+
<div class="workspace-actions"><button id="new-session" class="btn primary new-agent-pill" data-icon="plus">New agent</button></div>
|
|
36
|
+
<section class="work-side-section"><div class="work-side-head"><span>Agents</span><span id="session-count" class="work-side-count"></span></div><nav id="sessions" class="work-side-list" aria-label="Agents"></nav></section>
|
|
37
|
+
<section class="work-side-section"><div class="work-side-head"><span>Workflows</span><button id="create-workflow" class="btn ghost small" aria-label="Create workflow" data-icon="plus">Create</button><span id="workflow-count" class="work-side-count"></span></div><div id="workflows" class="work-side-list"></div></section>
|
|
38
|
+
</div>
|
|
39
|
+
<footer class="work-side-foot"><span class="dot"></span><p>Execution stays on the server.<br>Switch Agents or close this tab safely.</p></footer>
|
|
40
|
+
</aside>
|
|
41
|
+
<main class="work-main main">
|
|
42
|
+
<div class="session-header">
|
|
43
|
+
<div class="session-heading"><h1 id="session-title">DeepClause Harness</h1><span id="session-kind" class="pill subtle"></span><span id="activity" class="pill" data-status="idle">Ready</span><p id="agent-summary" class="agent-summary" hidden></p></div>
|
|
44
|
+
<div class="session-actions"><button id="workflow-settings" class="btn ghost small" hidden data-icon="edit">Workflow settings</button><button id="source" class="btn ghost small" hidden data-icon="edit">Code</button><button id="test-workflow" class="btn ghost small" hidden data-icon="play">Test draft</button><button id="apps" class="btn ghost small" hidden>Apps</button><button id="details" class="btn ghost small" aria-pressed="false" data-icon="details">Details</button><button id="trace" class="btn ghost small" data-icon="trace">Trace</button><button id="rename" class="btn ghost icon-only" title="Rename Agent" aria-label="Rename Agent" data-icon="edit"></button><button id="close-session" class="btn ghost icon-only" title="Close Agent/run and retain history" aria-label="Close Agent/run" data-icon="close"></button><button id="delete-agent" class="btn ghost danger icon-only" hidden title="Permanently delete Agent" aria-label="Permanently delete Agent" data-icon="trash"></button></div>
|
|
45
|
+
</div>
|
|
46
|
+
<div id="session-notice" class="session-notice" role="status" hidden><span id="session-notice-text"></span><button id="new-agent-from-history" class="btn primary small" data-icon="plus" hidden>New agent conversation</button></div>
|
|
47
|
+
<div id="author-workspace" class="author-workspace"><section id="conversation-pane" class="conversation-pane" aria-label="Session conversation">
|
|
48
|
+
<div id="transcript" class="chat-scroll" role="log" aria-label="Conversation" aria-live="polite" aria-relevant="additions text"></div>
|
|
49
|
+
<div id="interactions" aria-label="Requested input"></div>
|
|
50
|
+
<div class="run-actions"><button id="stop" class="btn danger small" data-icon="stop" hidden>Stop foreground</button><button id="resume" class="btn primary small" data-icon="play" hidden>Resume suspension</button></div>
|
|
51
|
+
<form id="chat" class="composer">
|
|
52
|
+
<div class="composer-inner"><div class="composer-box"><label for="message" class="sr-only">Message the Work assistant</label><textarea id="message" rows="2" placeholder="Ask your assistant, or choose a workflow…" required></textarea><button type="submit" class="btn primary send-button" title="Send message" aria-label="Send message" data-icon="send">Send</button></div><div class="composer-hint"><span>Enter to send · Shift+Enter for a new line</span><span id="chat-state">Work assistant</span></div></div>
|
|
53
|
+
</form>
|
|
54
|
+
<footer class="session-footer"><span id="identity" title="Model and session token usage"></span><span id="boundary">Trusted workspace · not a sandbox</span></footer>
|
|
55
|
+
</section><aside id="author-code" class="author-code" aria-label="Workflow code and changes" hidden></aside></div>
|
|
56
|
+
</main>
|
|
57
|
+
<aside id="process-section" class="dock" aria-label="Background processes">
|
|
58
|
+
<div class="dock-head"><span data-icon="processes"></span><button id="dock-process-tab" class="btn ghost small" aria-pressed="true">Processes</button><button id="dock-runs-tab" class="btn ghost small" aria-pressed="false">Workflow runs</button><span id="process-summary" class="pill subtle">0 active</span><button id="dock-close" class="btn ghost icon-only" aria-label="Hide processes" data-icon="close"></button></div>
|
|
59
|
+
<div id="workflow-run-pane" class="workflow-run-pane" hidden><div class="run-filters"><label>Status <select id="run-filter"><option value="all">All runs</option><option value="active">Active</option><option value="failed">Failed / interrupted</option><option value="finished">Finished</option></select></label></div><div class="run-table-scroll"><table class="run-table"><thead><tr><th>Workflow</th><th>Status</th><th>Started</th><th>Actions</th></tr></thead><tbody id="workflow-runs"></tbody></table></div></div>
|
|
60
|
+
<div id="processes" class="dock-processes"></div>
|
|
61
|
+
<div id="process-inspector" class="process-pane"></div>
|
|
62
|
+
</aside>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<dialog id="modal" class="modal" aria-labelledby="modal-title"><div class="modal-header"><h2 id="modal-title"></h2><button id="modal-close" class="btn ghost icon-only" aria-label="Close dialog" data-icon="close"></button></div><p id="modal-error" class="modal-error" role="alert" hidden></p><div id="modal-content" class="modal-body"></div></dialog>
|
|
66
|
+
<script type="module" src="/app.js"></script>
|
|
67
|
+
</body>
|
|
68
|
+
</html>
|