copilot-operator 0.1.4 → 0.1.6

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.
Files changed (47) hide show
  1. package/dist/src/api/operator.controller.js +5 -2
  2. package/dist/src/api/operator.service.js +48 -12
  3. package/dist/src/orchestrator/taskRunner.js +12 -2
  4. package/dist/src/plan/brief.js +1290 -1221
  5. package/dist/src/plan/schema.js +12 -0
  6. package/dist/src/plan/script.js +13 -0
  7. package/dist/src/plan/systemGuide.js +1396 -172
  8. package/dist/src/session/compose.js +5 -1
  9. package/dist/src/session/exports.js +4 -0
  10. package/dist/src/session/store.js +4 -1
  11. package/dist/src/session/story.js +10 -1
  12. package/dist/src/vcs/taskVcs.js +122 -12
  13. package/dist/web/404.html +2 -2
  14. package/dist/web/_next/static/chunks/549-afafecd6bfbb138e.js +1 -0
  15. package/dist/web/_next/static/chunks/56-91cd1709158ebf99.js +1 -0
  16. package/dist/web/_next/static/chunks/867-fc983d08916b4e28.js +1 -0
  17. package/dist/web/_next/static/chunks/app/history/page-b3b4af994c868b5d.js +1 -0
  18. package/dist/web/_next/static/chunks/app/layout-e0174d863960f109.js +1 -0
  19. package/dist/web/_next/static/chunks/app/sessions/view/page-d4213354730a945c.js +1 -0
  20. package/dist/web/_next/static/css/{5a10c60adf9c5336.css → 63fea96806e6b2cb.css} +1 -1
  21. package/dist/web/appearance.html +2 -2
  22. package/dist/web/appearance.txt +25 -24
  23. package/dist/web/defaults.html +2 -2
  24. package/dist/web/defaults.txt +25 -24
  25. package/dist/web/history.html +2 -2
  26. package/dist/web/history.txt +25 -24
  27. package/dist/web/import.html +2 -2
  28. package/dist/web/import.txt +25 -24
  29. package/dist/web/index.html +2 -2
  30. package/dist/web/index.txt +25 -24
  31. package/dist/web/level1.html +2 -2
  32. package/dist/web/level1.txt +25 -24
  33. package/dist/web/presets.html +2 -2
  34. package/dist/web/presets.txt +25 -24
  35. package/dist/web/sessions/view.html +2 -2
  36. package/dist/web/sessions/view.txt +25 -24
  37. package/dist/web/system.html +2 -2
  38. package/dist/web/system.txt +25 -24
  39. package/package.json +4 -3
  40. package/dist/web/_next/static/chunks/549-2086c05135bc9753.js +0 -1
  41. package/dist/web/_next/static/chunks/867-f0e3e152f6f67e45.js +0 -1
  42. package/dist/web/_next/static/chunks/89-382e9b29486d2747.js +0 -1
  43. package/dist/web/_next/static/chunks/app/history/page-8d4f817e36986e3f.js +0 -1
  44. package/dist/web/_next/static/chunks/app/layout-92fa876afe619cf3.js +0 -1
  45. package/dist/web/_next/static/chunks/app/sessions/view/page-185f5fcc383e6619.js +0 -1
  46. /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → WJ_8hRZsp4VWiDZx8NMUw}/_buildManifest.js +0 -0
  47. /package/dist/web/_next/static/{p9lexLS0u8W5N6VzLavHO → WJ_8hRZsp4VWiDZx8NMUw}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{952:()=>{},1035:(e,t,n)=>{"use strict";n.d(t,{DialogHost:()=>c,Z:()=>i});var a=n(3365),r=n(1521),l=n(867);let s=null,o=[];function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(n=>{var a;return a={kind:"confirm",message:e,...t,resolve:n},void(s?s(a):o.push(a))})}function c(e){var t,n;let{children:i}=e,{t:c}=(0,l.kj)(),[d,u]=(0,r.useState)([]),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(s=e=>u(t=>[...t,e]),o.length>0){let e=o.splice(0,o.length);u(t=>[...t,...e])}return()=>{s=null}},[]);let m=d[0],v=(0,r.useCallback)(e=>{m&&(m.resolve(e),u(e=>e.slice(1)))},[m]);return(0,r.useEffect)(()=>{var e;if(!m)return;null==(e=h.current)||e.focus();let t=e=>{"Escape"===e.key&&(e.preventDefault(),v(!1))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[m,v]),(0,a.jsxs)(a.Fragment,{children:[i,m&&(0,a.jsx)("div",{className:"modal-backdrop",onClick:()=>v(!1),role:"presentation",children:(0,a.jsxs)("div",{className:"modal".concat(m.danger?" danger":""),role:"confirm"===m.kind?"alertdialog":"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("h2",{id:"modal-title",children:null!=(t=m.title)?t:c("confirm"===m.kind?"dialog.confirmTitle":"dialog.noticeTitle")}),(0,a.jsx)("div",{className:"modal-body",children:m.message}),(0,a.jsxs)("div",{className:"row modal-actions",children:["confirm"===m.kind&&(0,a.jsx)("button",{type:"button",className:"quiet",onClick:()=>v(!1),children:c("dialog.cancel")}),(0,a.jsx)("button",{ref:h,type:"button",className:m.danger?"danger":"primary",onClick:()=>v(!0),children:null!=(n=m.okLabel)?n:c("dialog.ok")})]})]})})]})}},1205:(e,t,n)=>{"use strict";n.d(t,{AppearanceProvider:()=>d,K:()=>u,themeScript:()=>o});var a=n(3365),r=n(1521);let l={theme:"light",textSize:"normal",highContrast:!1,reduceMotion:!1,underlineLinks:!1,strongFocus:!1},s="cop.appearance",o="\n(function () {\n try {\n var d = document.documentElement;\n var raw = localStorage.getItem('".concat(s,"');\n var a = raw ? JSON.parse(raw) : {};\n d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';\n d.dataset.textsize = a.textSize || 'normal';\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\n } catch (e) {}\n})();\n");function i(e){let t=document.documentElement;t.dataset.theme=e.theme,t.dataset.textsize=e.textSize,t.dataset.contrast=e.highContrast?"high":"normal",t.dataset.motion=e.reduceMotion?"reduced":"normal",t.dataset.links=e.underlineLinks?"underline":"plain",t.dataset.focus=e.strongFocus?"strong":"normal"}let c=(0,r.createContext)({appearance:l,set:()=>void 0,reset:()=>void 0,loaded:!1});function d(e){let{children:t}=e,[n,o]=(0,r.useState)(l),[d,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=l;try{let t=window.localStorage.getItem(s);t?e={...l,...JSON.parse(t)}:window.matchMedia("(prefers-color-scheme: dark)").matches&&(e={...e,theme:"dark"}),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!t&&(e={...e,reduceMotion:!0})}catch(e){}o(e),i(e),u(!0)},[]);let h=(0,r.useCallback)(e=>{o(t=>{let n={...t,...e};i(n);try{window.localStorage.setItem(s,JSON.stringify(n))}catch(e){}return n})},[]),m=(0,r.useCallback)(()=>{o(l),i(l);try{window.localStorage.removeItem(s)}catch(e){}},[]);return(0,a.jsx)(c.Provider,{value:{appearance:n,set:h,reset:m,loaded:d},children:t})}function u(){return(0,r.useContext)(c)}},1702:(e,t,n)=>{"use strict";var a=n(9962);n.o(a,"usePathname")&&n.d(t,{usePathname:function(){return a.usePathname}}),n.o(a,"useSearchParams")&&n.d(t,{useSearchParams:function(){return a.useSearchParams}})},6657:(e,t,n)=>{"use strict";n.d(t,{GlobalApprovals:()=>d});var a=n(3365),r=n(1521),l=n(8197),s=n.n(l),o=n(5549),i=n(867),c=n(1035);function d(){let{t:e}=(0,i.kj)(),[t,n]=(0,r.useState)([]),[l,s]=(0,r.useState)({}),c=(0,r.useCallback)(async()=>{try{let e=await o.FH.approvals();if(n(e),e.some(e=>!l[e.sessionId])){let e=await o.FH.sessions().catch(()=>[]);s(Object.fromEntries(e.map(e=>[e.id,e.name])))}}catch(e){}},[l]);return((0,r.useEffect)(()=>{c();let e=setInterval(()=>void c(),2e3);return()=>clearInterval(e)},[c]),(0,r.useEffect)(()=>{let n="copilot-operator";document.title=t.length>0?"(".concat(t.length,") ").concat(e("approval.tabTitle")," — ").concat(n):n},[t.length,e]),0===t.length)?null:(0,a.jsxs)("section",{className:"approval-banner",role:"alert","aria-live":"assertive",children:[(0,a.jsx)("h2",{children:e("approval.waitingHere")}),(0,a.jsx)("p",{className:"small",children:e("approval.waitingHereWhy")}),t.map(e=>{var t;return(0,a.jsx)(u,{approval:e,sessionName:null!=(t=l[e.sessionId])?t:e.sessionId,onDecided:()=>void c()},e.id)})]})}function u(e){let{approval:t,sessionName:n,onDecided:l}=e,{t:d}=(0,i.kj)(),u=(0,i.W3)(),[h,m]=(0,r.useState)(!1),v=async e=>{if("run-all"!==e||await (0,c.Z)(d("approval.runAllConfirm"))){m(!0);try{await o.FH.decide(t.id,e)}finally{m(!1),l()}}};return(0,a.jsxs)("div",{className:"approval",children:[(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("strong",{children:d("approval.title",{n:t.stepId})}),(0,a.jsx)(s(),{href:(0,o.aT)(t.sessionId),children:n}),(0,a.jsx)("span",{className:"muted small",children:u(t.createdAt)})]}),(0,a.jsx)("pre",{style:{margin:"8px 0"},children:t.description}),t.network&&(0,a.jsx)("p",{className:"reason small",children:d("approval.network")}),(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("button",{className:"primary",disabled:h,onClick:()=>void v("run"),children:d("approval.run")}),!t.network&&(0,a.jsx)("button",{disabled:h,onClick:()=>void v("run-all"),title:d("approval.runAllWhy"),children:d("approval.runAll")}),(0,a.jsx)("button",{disabled:h,onClick:()=>void v("skip"),children:d("approval.skip")}),(0,a.jsx)("button",{className:"danger",disabled:h,onClick:()=>void v("abort"),children:d("approval.abort")})]})]})}},7712:(e,t,n)=>{"use strict";n.d(t,{ScrollJump:()=>s});var a=n(3365),r=n(1521),l=n(867);function s(){let{t:e}=(0,l.kj)(),[t,n]=(0,r.useState)({long:!1,atTop:!0,atBottom:!1});return((0,r.useEffect)(()=>{let e=()=>{let e=document.documentElement;n({long:e.scrollHeight>2*window.innerHeight,atTop:window.scrollY<200,atBottom:window.innerHeight+window.scrollY>=e.scrollHeight-200})};e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e);let t=new ResizeObserver(e);return t.observe(document.body),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),t.disconnect()}},[]),t.long)?(0,a.jsxs)("div",{className:"scroll-jump",children:[!t.atTop&&(0,a.jsx)("button",{type:"button","aria-label":e("scroll.top"),title:e("scroll.top"),onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"↑"}),!t.atBottom&&(0,a.jsx)("button",{type:"button","aria-label":e("scroll.bottom"),title:e("scroll.bottom"),onClick:()=>window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"}),children:"↓"})]}):null}},8214:(e,t,n)=>{"use strict";n.d(t,{Nav:()=>m,SkipLink:()=>h});var a=n(3365),r=n(1521),l=n(8197),s=n.n(l),o=n(1702),i=n(5549),c=n(867);let d={sessions:(0,a.jsx)("path",{d:"M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"}),defaults:(0,a.jsx)("path",{d:"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"}),import:(0,a.jsx)("path",{d:"M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),history:(0,a.jsx)("path",{d:"M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),level1:(0,a.jsx)("path",{d:"M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),presets:(0,a.jsx)("path",{d:"M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),appearance:(0,a.jsx)("path",{d:"M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}),system:(0,a.jsx)("path",{d:"M4 5h16v10H4zM2 19h20M9 15v4M15 15v4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})},u=[{href:"/",label:"nav.sessions",icon:"sessions"},{href:"/defaults",label:"nav.defaults",icon:"defaults"},{href:"/import",label:"nav.import",icon:"import"},{href:"/history",label:"nav.history",icon:"history"},{href:"/level1",label:"nav.level1",icon:"level1"},{href:"/presets",label:"nav.presets",icon:"presets"},{href:"/appearance",label:"nav.appearance",icon:"appearance"},{href:"/system",label:"nav.system",icon:"system"}];function h(){let{t:e}=(0,c.kj)();return(0,a.jsx)("a",{className:"skip-link",href:"#main",children:e("a11y.skip")})}function m(){let{t:e}=(0,c.kj)(),t=(0,o.usePathname)(),n=function(){let[e,t]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let e=!0,n=()=>i.FH.activity().then(n=>{e&&t(n.sessions)}).catch(()=>void 0);n();let a=setInterval(n,4e3);return()=>{e=!1,clearInterval(a)}},[]),e}();return(0,a.jsxs)("nav",{"aria-label":e("nav.label"),children:[u.map(r=>(0,a.jsxs)(s(),{href:r.href,"aria-current":t===r.href?"page":void 0,children:[(0,a.jsx)("svg",{className:"nav-icon",viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:d[r.icon]}),(0,a.jsx)("span",{children:e(r.label)}),"/history"===r.href&&n>0&&(0,a.jsxs)("span",{className:"live",title:e("nav.liveTitle",{n:n}),children:[(0,a.jsx)("span",{className:"dot","aria-hidden":"true"}),e("nav.live")]})]},r.href)),(0,a.jsx)(c.c5,{})]})}},9218:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,8197,23)),Promise.resolve().then(n.bind(n,6657)),Promise.resolve().then(n.bind(n,1035)),Promise.resolve().then(n.t.bind(n,952,23)),Promise.resolve().then(n.bind(n,8214)),Promise.resolve().then(n.bind(n,7712)),Promise.resolve().then(n.bind(n,1205)),Promise.resolve().then(n.bind(n,867))}},e=>{e.O(0,[353,197,867,549,347,131,358],()=>e(e.s=9218)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66],{1205:(e,s,a)=>{"use strict";a.d(s,{AppearanceProvider:()=>o,K:()=>m,themeScript:()=>i});var n=a(3365),l=a(1521);let t={theme:"light",textSize:"normal",highContrast:!1,reduceMotion:!1,underlineLinks:!1,strongFocus:!1},r="cop.appearance",i="\n(function () {\n try {\n var d = document.documentElement;\n var raw = localStorage.getItem('".concat(r,"');\n var a = raw ? JSON.parse(raw) : {};\n d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';\n d.dataset.textsize = a.textSize || 'normal';\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\n } catch (e) {}\n})();\n");function c(e){let s=document.documentElement;s.dataset.theme=e.theme,s.dataset.textsize=e.textSize,s.dataset.contrast=e.highContrast?"high":"normal",s.dataset.motion=e.reduceMotion?"reduced":"normal",s.dataset.links=e.underlineLinks?"underline":"plain",s.dataset.focus=e.strongFocus?"strong":"normal"}let d=(0,l.createContext)({appearance:t,set:()=>void 0,reset:()=>void 0,loaded:!1});function o(e){let{children:s}=e,[a,i]=(0,l.useState)(t),[o,m]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=t;try{let s=window.localStorage.getItem(r);s?e={...t,...JSON.parse(s)}:window.matchMedia("(prefers-color-scheme: dark)").matches&&(e={...e,theme:"dark"}),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!s&&(e={...e,reduceMotion:!0})}catch(e){}i(e),c(e),m(!0)},[]);let h=(0,l.useCallback)(e=>{i(s=>{let a={...s,...e};c(a);try{window.localStorage.setItem(r,JSON.stringify(a))}catch(e){}return a})},[]),u=(0,l.useCallback)(()=>{i(t),c(t);try{window.localStorage.removeItem(r)}catch(e){}},[]);return(0,n.jsx)(d.Provider,{value:{appearance:a,set:h,reset:u,loaded:o},children:s})}function m(){return(0,l.useContext)(d)}},1702:(e,s,a)=>{"use strict";var n=a(9962);a.o(n,"usePathname")&&a.d(s,{usePathname:function(){return n.usePathname}}),a.o(n,"useSearchParams")&&a.d(s,{useSearchParams:function(){return n.useSearchParams}})},1772:(e,s,a)=>{Promise.resolve().then(a.bind(a,4269))},2244:(e,s,a)=>{"use strict";a.d(s,{k:()=>o});var n=a(3365),l=a(1521),t=a(5549),r=a(867);function i(e){return e.trim().replace(/\\/g,"/").replace(/^\.\//,"").replace(/\/+$/,"")}function c(e,s){return"."===s||""===s||e===s||e.startsWith("".concat(s,"/"))}function d(e,s,a){return a.includes(e)?"out":a.some(s=>s!==e&&c(e,s))?"out-inherited":s.includes(e)?"in":s.some(s=>s!==e&&c(e,s))?"inherited":"none"}function o(e){let{rootDir:s,respectGitignore:a,includeEnvFiles:o,include:m,exclude:h,onChange:u}=e,{t:p}=(0,r.kj)(),[x,v]=(0,l.useState)(null),[j,g]=(0,l.useState)(""),[f,k]=(0,l.useState)(new Set),[y,b]=(0,l.useState)(""),N=async()=>{if(s.trim()){g("");try{let e=await t.FH.dirs(s,a);v(e),b("".concat(s,"|").concat(a)),k(new Set(e.filter(e=>!e.includes("/"))))}catch(e){g(e.message)}}};(0,l.useEffect)(()=>{v(null),b("")},[s,a]);let w=(0,l.useMemo)(()=>(function(e){let s=[],a=new Map;for(let l of[...e].sort()){var n;let e={path:l,name:null!=(n=l.split("/").pop())?n:l,children:[]};a.set(l,e);let t=l.includes("/")?a.get(l.slice(0,l.lastIndexOf("/"))):void 0;(t?t.children:s).push(e)}return s})(null!=x?x:[]),[x]),C=m.map(i).filter(Boolean),S=h.map(i).filter(Boolean),F=e=>(0,n.jsx)("ul",{className:"dir-tree",children:e.map(e=>{let s=d(e.path,C,S),a=f.has(e.path),l=function(e,s,a){let n=s=>s.filter(s=>s!==e&&c(s,e)).length;return{included:n(s),excluded:n(a)}}(e.path,C,S),t=!a&&e.children.length>0&&(l.included>0||l.excluded>0);return(0,n.jsxs)("li",{className:"dir ".concat(s),children:[(0,n.jsxs)("div",{className:"dir-row",children:[e.children.length>0?(0,n.jsx)("button",{type:"button",className:"dir-flip",onClick:()=>{let s;return s=e.path,k(e=>{let a=new Set(e);return a.has(s)?a.delete(s):a.add(s),a})},"aria-label":a?p("tree.fold"):p("tree.unfold"),"aria-expanded":a,children:a?"▾":"▸"}):(0,n.jsx)("span",{className:"dir-flip","aria-hidden":"true"}),(0,n.jsxs)("button",{type:"button",className:"dir-name",onClick:()=>(e=>{if("in"===d(e,C,S))return void u(C.filter(s=>s!==e),S);u([...C.filter(s=>!c(s,e)),e],S.filter(s=>!c(s,e)))})(e.path),title:"in"===s?p("tree.stateIn"):"inherited"===s?p("tree.stateInherited"):"out"===s?p("tree.stateOut"):"out-inherited"===s?p("tree.stateOutInherited"):p("tree.stateNone"),"aria-pressed":"in"===s||"inherited"===s,children:[(0,n.jsx)("span",{className:"dir-mark","aria-hidden":"true",children:"in"===s?"✓":"inherited"===s?"\xb7":"out"===s||"out-inherited"===s?"\xd7":""}),e.name]}),(0,n.jsx)("button",{type:"button",className:"dir-out".concat("out"===s?" on":""),onClick:()=>(e=>{if(S.includes(e))return void u(C,S.filter(s=>s!==e));u(C.filter(s=>s!==e&&!c(s,e)),[...S.filter(s=>!c(s,e)),e])})(e.path),title:"out"===s?p("tree.unexclude"):p("tree.exclude"),children:"−"}),t&&(0,n.jsx)("span",{className:"chip inside".concat(l.excluded>0?" out":""),title:p("tree.insideWhy"),children:l.excluded>0&&l.included>0?p("tree.insideBoth",{i:l.included,e:l.excluded}):l.excluded>0?p("tree.insideOut",{n:l.excluded}):p("tree.insideIn",{n:l.included})})]}),a&&e.children.length>0&&F(e.children)]},e.path)})}),D=y!=="".concat(s,"|").concat(a);return(0,n.jsxs)("div",{className:"dir-tree-box",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",onClick:()=>void N(),disabled:!s.trim(),children:null===x||D?p("tree.load"):p("tree.reload")}),(0,n.jsx)("span",{className:"muted small",children:p("tree.hint")})]}),j&&(0,n.jsx)("div",{className:"err small",children:j}),(0,n.jsxs)("p",{className:"muted small",style:{marginTop:6},children:[p("tree.alsoOut")," ",[a?p("tree.alsoGitignore"):null,!1===o?p("tree.alsoEnv"):null,p("tree.alsoAlways")].filter(Boolean).join(" \xb7 ")]}),null!==x&&!D&&(0===x.length?(0,n.jsx)("p",{className:"muted small",children:p("mirror.noDirs")}):F(w))]})}},4269:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>w});var n=a(3365),l=a(1521),t=a(1702),r=a(8197),i=a.n(r),c=a(5549),d=a(867),o=a(1910),m=a(3523),h=a(3374);function u(e){let s=e.trim().replace(/\\/g,"/").replace(/^\.\//,"").replace(/\/+$/,"");return""===s?".":s}function p(e){return e.split("\n").map(e=>e.trim()).filter(Boolean)}var x=a(1205),v=a(8848),j=a(4784),g=a(2244),f=a(2876),k=a(5132),y=a(1035),b=a(4811),N=a(3041);function w(){return(0,n.jsx)(l.Suspense,{fallback:null,children:(0,n.jsx)(C,{})})}function C(){var e;let{t:s}=(0,d.kj)(),a=null!=(e=(0,t.useSearchParams)().get("id"))?e:"",[r,o]=(0,l.useState)(null),[m,h]=(0,l.useState)([]),[u,p]=(0,l.useState)([]),[x,v]=(0,l.useState)(null),[j,g]=(0,l.useState)(""),f=(0,l.useRef)(null),k=(0,l.useCallback)(async()=>{try{o(await c.FH.session(a)),g("")}catch(e){g(e.message)}},[a]),y=(0,l.useCallback)(()=>{f.current||(f.current=window.setTimeout(()=>{f.current=null,k()},400))},[k]);if((0,l.useEffect)(()=>{k(),c.FH.presets().then(p).catch(()=>void 0),c.FH.level1().then(v).catch(()=>void 0);let e=new EventSource(c.FH.streamUrl(a));e.onmessage=e=>{let s=JSON.parse(e.data);"ping"!==s.type&&(h(e=>[...e.slice(-400),s]),y())},e.onerror=()=>{};let s=setInterval(()=>void k(),8e3);return()=>{e.close(),clearInterval(s)}},[a,k,y]),j&&!r)return(0,n.jsx)("div",{className:"panel err",children:j});if(!r)return(0,n.jsx)("div",{className:"panel muted",children:s("home.loading")});let b=r.tasks.filter(e=>"queued"===e.status).length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"crumbs",children:[(0,n.jsx)(i(),{href:"/",children:s("session.crumb")})," / ",r.name]}),(0,n.jsx)(S,{session:r,queued:b,onChange:k}),(0,n.jsx)(R,{tasks:r.tasks}),(0,n.jsx)(D,{session:r,onChange:k}),(0,n.jsx)(F,{level1:x,sent:r.contractSent}),(0,n.jsx)(T,{session:r,onChange:k}),(0,n.jsx)(H,{session:r,onChange:k}),(0,n.jsx)(M,{session:r,onChange:k}),(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsx)("h2",{children:s("tasks.title")}),(0,n.jsx)("p",{className:"muted small",children:s("tasks.hint")}),(0,n.jsx)(P,{session:r,onChange:k}),0===r.tasks.length&&(0,n.jsx)("div",{className:"muted",children:s("tasks.none")}),r.tasks.map((e,s)=>(0,n.jsx)(A,{session:r,task:e,index:s+1,presets:u,onChange:k},e.id))]}),(0,n.jsx)(L,{session:r}),(0,n.jsx)(O,{session:r,presets:u,onAdded:k,onPresetsChanged:()=>c.FH.presets().then(p)}),(0,n.jsx)(B,{events:m})]})}function S(e){var s;let{session:a,queued:t,onChange:r}=e,{t:i}=(0,d.kj)(),[o,m]=(0,l.useState)(""),[h,u]=(0,l.useState)("");(0,l.useEffect)(()=>{c.FH.models().then(e=>{var s;return u(null!=(s=e.defaultModel)?s:"")}).catch(()=>void 0)},[]);let[p,x]=(0,l.useState)(a.name),[v,j]=(0,l.useState)(null!=(s=a.conversationGroup)?s:"");(0,l.useEffect)(()=>x(a.name),[a.name]),(0,l.useEffect)(()=>{var e;return j(null!=(e=a.conversationGroup)?e:"")},[a.conversationGroup]);let g=(0,b.p)(),f=async e=>{var s;if("unattended"===e&&!g&&!await (0,y.Z)(i("session.unattendedConfirm")))return;let n=await c.FH.start(a.id,e,a.planName);m(n.started?i("unattended"===e?"session.startedAuto":"session.startedStep"):i("session.notStarted",{reason:null!=(s=n.reason)?s:""})),r()},k=async()=>{await c.FH.stop(a.id),m(i("session.stopping")),r()},N=async()=>{await c.FH.setRunMode(a.id,"confirm"),m(i("session.askingAgain")),r()},w=async()=>{p.trim()&&p!==a.name&&await c.FH.updateSession(a.id,{name:p}),r()},C=async()=>{if(a.running)return void m(i("home.deleteRunning"));if(await (0,y.Z)(i("home.deleteConfirm",{name:a.name,n:a.tasks.length})))try{await c.FH.deleteSession(a.id),window.location.href="/"}catch(e){m(e.message)}},S=async()=>{var e;if(v.trim()!==(null!=(e=a.conversationGroup)?e:""))try{await c.FH.updateSession(a.id,{conversationGroup:v.trim()}),m(i("session.groupSaved")),r()}catch(e){m(e.message)}},F=a.running?i("state.running"):i("state.".concat(a.status));return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("input",{type:"text",className:"grow",value:p,onChange:e=>x(e.target.value),onBlur:()=>void w()}),(0,n.jsx)("span",{className:"badge ".concat(a.running?"running":""),children:F})]}),!a.running&&(0,n.jsxs)("div",{className:"run-choice",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{className:"primary",onClick:()=>void f("unattended"),disabled:0===t,children:i("session.run",{n:t})}),(0,n.jsx)("p",{className:"why",children:i("session.runWhy")})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:()=>void f("confirm"),disabled:0===t,children:i("session.runStep")}),(0,n.jsx)("p",{className:"why",children:i("session.runStepWhy")})]})]}),(0,n.jsxs)("div",{className:"row",style:{marginTop:10},children:[a.running&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:"danger",onClick:()=>void k(),children:i("session.stop")}),"unattended"===a.runMode&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"badge waiting-approval",children:i("session.modeUnattended")}),(0,n.jsx)("button",{onClick:()=>void N(),children:i("session.askAgain")})]})]}),(0,n.jsx)("span",{className:"muted small",children:o}),(0,n.jsx)("span",{className:"grow"}),(0,n.jsx)("button",{className:"quiet",onClick:()=>void C(),disabled:a.running,children:i("home.delete")}),a.chat?(0,n.jsx)("a",{href:a.chat.url,target:"_blank",rel:"noreferrer",className:"small",children:i("session.openChat",{name:a.chat.name})}):(0,n.jsx)("span",{className:"muted small",children:i("session.noChat")})]}),(0,n.jsx)("label",{htmlFor:"session-group",children:i("session.group")}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("input",{id:"session-group",type:"text",className:"grow",value:v,placeholder:i("session.groupPlaceholder"),onChange:e=>j(e.target.value),onBlur:()=>void S(),disabled:a.running})}),(0,n.jsxs)("p",{className:"why",children:[i("session.groupWhy"),a.chat&&" ".concat(i("session.groupHasChat"))]}),(0,n.jsxs)("div",{className:"muted small",style:{marginTop:10},children:[i("session.willUseModel",{name:a.model||(h?i("model.followsDefault",{name:h}):i("model.default"))})," \xb7 ",a.mirror.enabled&&a.mirror.rootDir?i("session.willUseFiles",{root:a.mirror.rootDir,dirs:a.mirror.includeDirs.length?a.mirror.includeDirs.join(", "):"."}):(0,n.jsx)("span",{className:"err",children:i("session.noFiles")})]})]})}function F(e){var s;let{level1:a,sent:l}=e,{t}=(0,d.kj)();return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("h2",{className:"grow",style:{margin:0},children:t("l1.title")}),(0,n.jsx)("span",{className:"badge",children:t(l?"l1.sent":"l1.notSent")}),(0,n.jsx)(i(),{href:"/level1",className:"small",children:t("l1.edit")})]}),(0,n.jsxs)("p",{className:"muted small",style:{marginBottom:6},children:[t("l1.hint"),(null==a?void 0:a.customised)?" ".concat(t("l1.customised")):""]}),(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:t("l1.show")}),(0,n.jsx)("pre",{className:"tall",children:null!=(s=null==a?void 0:a.content)?s:"…"})]})]})}function D(e){var s,a,t,r;let{session:i,onChange:o}=e,{t:m}=(0,d.kj)(),h=(0,d.W3)(),[u,p]=(0,l.useState)(null),[x,j]=(0,l.useState)(!1),[g,f]=(0,l.useState)("");(0,l.useEffect)(()=>{c.FH.models().then(p).catch(()=>void 0)},[]);let k=async e=>{try{await c.FH.updateSession(i.id,{model:e}),f(e?m("model.saved",{name:e}):m("model.savedDefault")),o()}catch(e){f(e.message)}},b=async()=>{try{let e=await c.FH.setDefaultModel(w);p(s=>s?{...s,defaultModel:e.defaultModel}:s),f(e.defaultModel?m("model.defaultSaved",{name:e.defaultModel}):m("model.defaultCleared"))}catch(e){f(e.message)}},N=async()=>{if(await (0,y.Z)(m("model.refreshConfirm"))){j(!0),f(m("model.refreshing"));try{var e;let s=await c.FH.refreshModels();p(s),f(0===s.options.length?null!=(e=s.note)?e:m("model.none"):m("model.refreshed",{n:s.options.length}))}catch(e){f(e.message)}finally{j(!1)}}},w=null!=(s=i.model)?s:"",C=null!=(a=null==u?void 0:u.options)?a:[],S=C.some(e=>e.name===w),F=C.filter(e=>!e.group),D=new Map;for(let e of C)e.group&&D.set(e.group,[...null!=(t=D.get(e.group))?t:[],e]);return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("h2",{className:"grow",style:{margin:0},children:m("model.title")}),i.modelInUse&&(0,n.jsx)("span",{className:"chip",children:m("model.lastUsed",{name:i.modelInUse})})]}),(0,n.jsx)("p",{className:"muted small",children:m("model.hint")}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsxs)("select",{"aria-label":m("model.title"),value:w,disabled:i.running,onChange:e=>void k(e.target.value),style:{width:"auto",minWidth:260},children:[(0,n.jsx)("option",{value:"",children:(null==u?void 0:u.defaultModel)?m("model.followsDefault",{name:u.defaultModel}):m("model.default")}),w&&!S&&(0,n.jsx)("option",{value:w,children:m("model.notInList",{name:w})}),F.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(m("model.unavailable")):""]},e.name)),[...D.entries()].map(e=>{let[s,a]=e;return(0,n.jsx)("optgroup",{label:s,children:a.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(m("model.unavailable")):""]},e.name))},s)})]}),(0,n.jsx)("button",{onClick:()=>void N(),disabled:x||i.running,children:m("model.refresh")}),(0,n.jsx)("span",{className:"muted small",role:"status",children:g})]}),(0,n.jsx)(v.L,{current:w,onUse:e=>void k(e)}),(0,n.jsxs)("div",{className:"row",style:{marginTop:8},children:[(0,n.jsx)("span",{className:"muted small",children:(null==u?void 0:u.defaultModel)?m("model.defaultIs",{name:u.defaultModel}):m("model.defaultIsNone")}),(0,n.jsx)("button",{onClick:()=>void b(),disabled:w===(null!=(r=null==u?void 0:u.defaultModel)?r:""),children:w?m("model.makeDefault",{name:w}):m("model.clearDefault")})]}),(null==u?void 0:u.readAt)?(0,n.jsxs)("p",{className:"muted small",style:{marginTop:8},children:[m("model.readAt",{t:h(u.readAt),n:u.options.length}),u.current?" ".concat(m("model.chatWasOn",{name:u.current})):"",u.note?" ".concat(u.note):""]}):(0,n.jsx)("p",{className:"muted small",style:{marginTop:8},children:m("model.neverRead")}),C.length>0&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:m("model.showDetails")}),(0,n.jsx)("pre",{className:"tall",children:C.map(e=>"".concat(e.selected?"*":" "," ").concat(e.group?"".concat(e.group," > "):"").concat(e.name)+"".concat(e.disabled?" [unavailable]":"","\n ").concat(e.raw.replace(/\n/g," | "))).join("\n")})]})]})}function H(e){var s,a;let{session:t,onChange:r}=e,{t:i}=(0,d.kj)(),o=null!=(s=t.review)?s:{enabled:!0,model:""},[m,h]=(0,l.useState)(o.enabled),[u,p]=(0,l.useState)(null!=(a=o.model)?a:""),[x,g]=(0,l.useState)(""),[f,k]=(0,l.useState)(!1),[y,b]=(0,l.useState)("");(0,l.useEffect)(()=>{c.FH.models().then(e=>{var s;return b(null!=(s=e.defaultReviewModel)?s:"")}).catch(()=>void 0)},[]);let N=async()=>{k(!0),g("");try{await c.FH.updateSession(t.id,{review:{enabled:m,model:u}}),g(i("review.saved")),r()}catch(e){g(e.message)}finally{k(!1)}};return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("h2",{className:"grow",style:{margin:0},children:i("review.title")}),(0,n.jsx)("span",{className:"badge ".concat(m?"done":""),children:m?i("review.on"):i("review.off")})]}),(0,n.jsx)("p",{className:"muted small",children:i("review.hint")}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:m,onChange:e=>h(e.target.checked),disabled:t.running}),(0,n.jsx)("span",{children:i("review.enable")})]}),(0,n.jsx)("p",{className:"why",children:i("review.enableWhy")})]}),(0,n.jsx)("label",{htmlFor:"review-model",children:i("review.modelField")}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)(j.Y,{id:"review-model",chosen:u,onChange:p,none:y?i("model.followsDefault",{name:y}):i("review.modelSame"),disabled:t.running||!m})}),(0,n.jsx)("p",{className:"why",children:i("review.modelWhy")}),(0,n.jsx)(v.z4,{current:u,onUse:e=>p(e)}),(0,n.jsxs)("div",{className:"row",style:{marginTop:10},children:[(0,n.jsx)("button",{className:"primary",onClick:()=>void N(),disabled:f||t.running,children:i("review.save")}),x&&(0,n.jsx)("span",{className:"muted small",children:x})]})]})}function T(e){var s,a,t,r,i,o,m,h,u;let{session:p,onChange:x}=e,{t:j}=(0,d.kj)(),g=null!=(a=p.vcs)?a:{enabled:!0,repoDir:"",branchMode:"per-task",commitOnFinish:!0,branchPrefix:"cop/"},[f,k]=(0,l.useState)(g.repoDir),[y,b]=(0,l.useState)(null),[N,w]=(0,l.useState)(""),[C,S]=(0,l.useState)(!1),F=JSON.stringify(g),[D,H]=(0,l.useState)(null),[T,M]=(0,l.useState)(null!=(t=g.branchName)?t:"");(0,l.useEffect)(()=>{var e;return M(null!=(e=JSON.parse(F).branchName)?e:"")},[F]);let[I,P]=(0,l.useState)(null!=(r=g.baseBranch)?r:"");(0,l.useEffect)(()=>{var e;return P(null!=(e=JSON.parse(F).baseBranch)?e:"")},[F]);let W=null!=(i=g.startFrom)?i:"head";(0,l.useEffect)(()=>{k(JSON.parse(F).repoDir)},[F]);let L=JSON.parse(F).repoDir||p.mirror.rootDir||"";(0,l.useEffect)(()=>{let e=!1;return L.trim()?(c.FH.repoCheck(L).then(s=>{var a;e||H(s.ok?null:null!=(a=s.problem)?a:null)}).catch(()=>{e||H(null)}),()=>{e=!0}):void H(null)},[L]);let O=(0,l.useCallback)(()=>{c.FH.vcsStatus(p.id).then(b).catch(()=>b(null))},[p.id]);(0,l.useEffect)(O,[O,F]);let A=async e=>{try{await c.FH.updateSession(p.id,{vcs:e}),w(j("vcs.saved")),x(),O()}catch(e){w(e.message)}},B=async()=>{S(!0),w(j("mirror.browsing"));try{let s=await c.FH.browseFolder(f.trim()||p.mirror.rootDir||void 0);if(s.ok)k(s.path),await A({repoDir:s.path});else{var e;w(s.cancelled?j("mirror.browseCancelled"):null!=(e=s.reason)?e:"")}}finally{S(!1)}},E=g.repoDir||p.mirror.rootDir||"",R=""!==E.trim()&&null===D;return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("h2",{className:"grow",style:{margin:0},children:j("vcs.title")}),(0,n.jsx)("span",{className:"badge ".concat(g.enabled?"done":""),children:g.enabled?j("vcs.on"):j("vcs.off")})]}),(0,n.jsx)("p",{className:"muted small",children:j("vcs.hint")}),(0,n.jsx)("label",{htmlFor:"vcs-root",children:j("vcs.repoField")}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("input",{id:"vcs-root",type:"text",className:"grow",value:f,onChange:e=>k(e.target.value),onBlur:()=>f.trim()!==g.repoDir&&void A({repoDir:f.trim()}),placeholder:p.mirror.rootDir||"C:\\Projects\\my-app",disabled:p.running}),(0,n.jsx)("button",{onClick:()=>void B(),disabled:C||p.running,children:j("mirror.browse")})]}),(0,n.jsx)(v.H4,{current:f,onUse:e=>{k(e),A({repoDir:e})}}),D&&(0,n.jsxs)("div",{className:"notice caution",style:{marginTop:8},children:[(0,n.jsx)("strong",{children:j("vcs.noRepo")}),(0,n.jsx)("div",{className:"small",style:{marginTop:4},children:D}),(0,n.jsx)("div",{className:"muted small",style:{marginTop:6},children:j("vcs.noRepoHow")})]}),!D&&""!==E.trim()&&(0,n.jsx)("p",{className:"muted small",style:{marginTop:4},children:j("vcs.repoOk")}),""===E.trim()&&(0,n.jsx)("p",{className:"muted small",style:{marginTop:4},children:j("vcs.pickFirst")}),(0,n.jsxs)("div",{className:"option".concat(R||g.enabled?"":" warned"),children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:g.enabled,onChange:e=>void A({enabled:e.target.checked}),disabled:p.running||!R&&!g.enabled}),(0,n.jsx)("span",{children:j("vcs.enable")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.enableWhy")})]}),g.enabled&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"muted small",style:{marginTop:4},children:E?j("vcs.repoIs",{dir:E}):j("vcs.repoNone")}),(0,n.jsx)("h3",{children:j("vcs.branches")}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"branchMode",checked:"per-task"===g.branchMode,onChange:()=>void A({branchMode:"per-task"}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.perTask")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.perTaskWhy")})]}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"branchMode",checked:"per-session"===g.branchMode,onChange:()=>void A({branchMode:"per-session"}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.perSession")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.perSessionWhy")})]}),"per-session"===g.branchMode&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{htmlFor:"vcs-branch-name",children:j("vcs.branchName")}),(0,n.jsx)("input",{id:"vcs-branch-name",type:"text",value:T,onChange:e=>M(e.target.value),onBlur:()=>{var e;return T.trim()!==(null!=(e=g.branchName)?e:"")&&void A({branchName:T.trim()})},placeholder:p.name,disabled:p.running}),(0,n.jsx)("p",{className:"why",children:j("vcs.branchNameWhy")})]}),(0,n.jsx)("h3",{children:j("vcs.startFrom")}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"startFrom",checked:"branch"===W,onChange:()=>void A({startFrom:"branch"}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.startBranch")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.startBranchWhy")})]}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"startFrom",checked:"previous-session"===W,onChange:()=>void A({startFrom:"previous-session"}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.startPrevious")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.startPreviousWhy")})]}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"startFrom",checked:"head"===W,onChange:()=>void A({startFrom:"head"}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.startHead")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.startHeadWhy")})]}),"head"!==W&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{htmlFor:"vcs-base-branch",children:j("vcs.baseBranch")}),(0,n.jsx)("input",{id:"vcs-base-branch",type:"text",value:I,onChange:e=>P(e.target.value),onBlur:()=>{var e;return I.trim()!==(null!=(e=g.baseBranch)?e:"")&&void A({baseBranch:I.trim()})},placeholder:"main",disabled:p.running}),(0,n.jsx)("p",{className:"why",children:j("vcs.baseBranchWhy")})]}),p.vcsStart&&(0,n.jsxs)("p",{className:"muted small",children:["previous-session"===p.vcsStart.kind?j("vcs.startedPrevious",{name:null!=(o=null==(s=p.vcsStart.fromSession)?void 0:s.name)?o:"",branch:null!=(m=p.vcsStart.branch)?m:"",commit:p.vcsStart.commit.slice(0,8)}):"branch"===p.vcsStart.kind?j("vcs.startedBranch",{branch:null!=(h=p.vcsStart.branch)?h:"",commit:p.vcsStart.commit.slice(0,8)}):j("vcs.startedHead",{commit:p.vcsStart.commit.slice(0,8)}),p.vcsStart.note?" — ".concat(p.vcsStart.note):""]}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:g.commitOnFinish,onChange:e=>void A({commitOnFinish:e.target.checked}),disabled:p.running}),(0,n.jsx)("span",{children:j("vcs.commit")})]}),(0,n.jsx)("p",{className:"why",children:j("vcs.commitWhy")})]}),y&&!y.ok&&(0,n.jsxs)("div",{className:"notice caution",role:"status",children:[(0,n.jsx)("strong",{children:j("vcs.notReady")})," ",y.problem]}),(null==y?void 0:y.ok)&&(0,n.jsx)("div",{className:"muted small",children:j("vcs.ready",{branch:null!=(u=y.branch)?u:"—",dir:y.repoDir})}),(null==y?void 0:y.ok)&&y.work&&y.work.branches.length>0&&(0,n.jsxs)("div",{className:"muted small",children:["per-session"===y.work.mode&&y.work.complete?j("vcs.completeOn",{branch:y.work.complete}):j("vcs.noSingleBranch",{n:y.work.branches.length}),"per-task"===y.work.mode&&(0,n.jsx)("ul",{style:{margin:"4px 0",paddingLeft:20},children:y.work.branches.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{children:e.branch})," — ",e.title,e.commit?"":" (".concat(j("vcs.taskNoFiles"),")")]},e.branch))})]}),(0,n.jsx)("p",{className:"muted small",children:j("vcs.pushIsYours")})]}),(0,n.jsx)("div",{className:"muted small",role:"status",children:N})]})}function M(e){var s,a,t,r;let{session:i,onChange:o}=e,{t:m}=(0,d.kj)(),[h,x]=(0,l.useState)(i.mirror.enabled),[j,f]=(0,l.useState)(i.mirror.rootDir),[k,b]=(0,l.useState)(i.mirror.includeDirs.join("\n")),[N,w]=(0,l.useState)(i.mirror.excludeDirs.join("\n")),[C,S]=(0,l.useState)(null==(s=i.mirror.respectGitignore)||s),[F,D]=(0,l.useState)(null!=(a=i.mirror.includeEnvFiles)&&a),[H,T]=(0,l.useState)(null),[M,P]=(0,l.useState)(null),[W,L]=(0,l.useState)(""),[O,A]=(0,l.useState)(""),[B,E]=(0,l.useState)([]),R=JSON.stringify(i.mirror);(0,l.useEffect)(()=>{var e,s;let a=JSON.parse(R);x(a.enabled),f(a.rootDir),b(a.includeDirs.join("\n")),w(a.excludeDirs.join("\n")),S(null==(e=a.respectGitignore)||e),D(null!=(s=a.includeEnvFiles)&&s)},[R]),(0,l.useEffect)(()=>{c.FH.doctor().then(e=>{var s;return E(null!=(s=e.alwaysIgnoredDirs)?s:[])}).catch(()=>void 0)},[]);let U=p(k),G=p(N),q=function(e,s){let a=e.map(u).filter(Boolean),n=s.map(u).filter(Boolean),l=[];for(let e of a)for(let s of n)if(e.toLowerCase()===s.toLowerCase())l.push({include:e,exclude:s,kind:"same"});else("."===s?"."!==e:e.toLowerCase().startsWith("".concat(s.toLowerCase(),"/")))&&l.push({include:e,exclude:s,kind:"excluded-parent"});return l}(U,G),J={rootDir:j.trim(),includeDirs:U,excludeDirs:G,respectGitignore:C,includeEnvFiles:F},z=h&&!J.rootDir,Z=q.length>0||z,_=JSON.stringify({enabled:i.mirror.enabled,rootDir:i.mirror.rootDir,includeDirs:i.mirror.includeDirs,excludeDirs:i.mirror.excludeDirs,respectGitignore:null==(t=i.mirror.respectGitignore)||t,includeEnvFiles:null!=(r=i.mirror.includeEnvFiles)&&r}),K=JSON.stringify({enabled:h,...J}),Y=async()=>{if(!Z)try{await c.FH.updateSession(i.id,{mirror:{enabled:h,...J}}),A(m("mirror.saved")),o()}catch(e){A(e.message)}},$=async()=>{try{T(await c.FH.dirs(j,C)),A("")}catch(e){A(e.message)}},Q=async()=>{L("browse"),A(m("mirror.browsing"));try{let s=await c.FH.browseFolder(j.trim()||void 0);if(s.ok)f(s.path),T(null),P(null),A("");else{var e;A(s.cancelled?m("mirror.browseCancelled"):null!=(e=s.reason)?e:"")}}catch(e){A(e.message)}finally{L("")}},V=async()=>{if(!J.rootDir)return void A(m("mirror.needRoot"));L("check"),A(m("mirror.checking"));try{P(await c.FH.previewMirror(J)),A("")}catch(e){P(null),A(e.message)}finally{L("")}},X=async e=>{(!e||await (0,y.Z)(m("mirror.envWarn")))&&(D(e),P(null))};return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("h2",{className:"grow",style:{margin:0},children:m("mirror.title")}),(0,n.jsx)("span",{className:"badge ".concat(i.mirror.enabled?"done":""),children:i.mirror.enabled?m("mirror.stateOn"):m("mirror.stateOff")})]}),(0,n.jsx)("p",{className:"muted small",children:m("mirror.hint",{example:"src--test--a.spec.ts.txt"})}),(0,n.jsx)("div",{className:"option",children:(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:h,onChange:e=>x(e.target.checked)}),(0,n.jsx)("span",{children:m("mirror.enable")})]})}),(0,n.jsx)("label",{htmlFor:"mirror-root",children:m("mirror.root")}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("input",{id:"mirror-root",type:"text",className:"grow",value:j,onChange:e=>{f(e.target.value),P(null)},placeholder:"C:\\Projects\\my-app"}),(0,n.jsx)("button",{onClick:()=>void Q(),disabled:"browse"===W,children:m("mirror.browse")}),(0,n.jsx)("button",{onClick:()=>void $(),disabled:!j.trim(),children:m("mirror.listDirs")})]}),(0,n.jsx)("div",{className:"muted small",style:{marginTop:4},children:m("mirror.rootHint")}),(0,n.jsx)(v.H4,{current:j,onUse:e=>{f(e),P(null)}}),H&&(0,n.jsx)("div",{className:"small muted",style:{margin:"6px 0"},children:0===H.length?m("mirror.noDirs"):H.join(" \xb7 ")}),(0,n.jsx)("h3",{children:m("mirror.rules")}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:C,onChange:e=>{S(e.target.checked),P(null)}}),(0,n.jsx)("span",{children:m("mirror.gitignore")})]}),(0,n.jsx)("p",{className:"why",children:m("mirror.gitignoreWhy")})]}),(0,n.jsxs)("div",{className:"option".concat(F?" warned":""),children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:F,onChange:e=>X(e.target.checked)}),(0,n.jsx)("span",{children:m("mirror.env")})]}),(0,n.jsx)("p",{className:"why",children:m("mirror.envWhy")}),F&&(0,n.jsx)("p",{className:"why",children:(0,n.jsx)("strong",{children:m("mirror.envOn")})})]}),B.length>0&&(0,n.jsx)("p",{className:"muted small",children:m("mirror.alwaysOut",{dirs:B.join(", ")})}),(0,n.jsxs)("div",{className:"row",style:{alignItems:"flex-start"},children:[(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsx)("label",{htmlFor:"mirror-include",children:m("mirror.include")}),(0,n.jsx)("textarea",{id:"mirror-include",value:k,onChange:e=>{b(e.target.value),P(null)},placeholder:"src\ntests",style:{minHeight:80},"aria-invalid":q.length>0})]}),(0,n.jsxs)("div",{className:"grow",children:[(0,n.jsx)("label",{htmlFor:"mirror-exclude",children:m("mirror.exclude")}),(0,n.jsx)("textarea",{id:"mirror-exclude",value:N,onChange:e=>{w(e.target.value),P(null)},placeholder:"src/generated",style:{minHeight:80},"aria-invalid":q.length>0})]})]}),(0,n.jsx)(g.k,{rootDir:j,respectGitignore:C,includeEnvFiles:F,include:k.split("\n"),exclude:N.split("\n"),onChange:(e,s)=>{b(e.join("\n")),w(s.join("\n")),P(null)}}),q.length>0&&(0,n.jsxs)("div",{className:"notice",role:"alert",children:[(0,n.jsx)("strong",{children:m("mirror.conflict")}),(0,n.jsx)("ul",{children:q.map((e,s)=>(0,n.jsx)("li",{children:"same"===e.kind?m("mirror.conflictSame",{dir:e.include}):m("mirror.conflictParent",{include:e.include,exclude:e.exclude})},s))}),(0,n.jsx)("div",{style:{marginTop:6},children:m("mirror.conflictFix")})]}),z&&(0,n.jsx)("div",{className:"notice caution",role:"alert",children:(0,n.jsx)("strong",{children:m("mirror.needRoot")})}),K!==_&&(0,n.jsxs)("div",{className:"notice caution",role:"status",children:[(0,n.jsx)("strong",{children:m("mirror.unsaved")})," ",m("mirror.unsavedWhy")]}),(0,n.jsxs)("div",{className:"row",style:{marginTop:10},children:[(0,n.jsx)("button",{className:"primary",onClick:()=>void Y(),disabled:Z,children:m("mirror.save")}),(0,n.jsx)("button",{onClick:()=>void V(),disabled:q.length>0||"check"===W,children:m("mirror.check")}),(0,n.jsx)("span",{className:"muted small",role:"status",children:O})]}),M&&(0,n.jsx)(I,{preview:M})]})}function I(e){let{preview:s}=e,{t:a}=(0,d.kj)();return 0===s.files.length?(0,n.jsx)("div",{className:"notice caution",style:{marginTop:10},children:(0,n.jsx)("strong",{children:a("mirror.checkedNone")})}):(0,n.jsxs)("div",{className:"notice calm",style:{marginTop:10},children:[(0,n.jsx)("strong",{children:a("mirror.checked",{files:s.files.length,size:(0,c.zi)(s.totalBytes)})})," ",s.envFiles.length>0&&(0,n.jsx)("span",{className:"err",children:a("mirror.checkedEnv",{n:s.envFiles.length})})," ",s.skipped.length>0&&(0,n.jsx)("span",{className:"muted",children:a("mirror.checkedSkipped",{n:s.skipped.length})}),(0,n.jsxs)("details",{style:{marginTop:6},children:[(0,n.jsx)("summary",{children:a("mirror.showFiles")}),(0,n.jsx)("pre",{className:"tall",children:s.files.join("\n")})]}),s.skipped.length>0&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:a("mirror.showSkipped")}),(0,n.jsx)("pre",{className:"tall",children:s.skipped.map(e=>"".concat(e.relPath," — ").concat(e.reason)).join("\n")})]})]})}function P(e){var s;let{session:a,onChange:t}=e,{t:r}=(0,d.kj)(),[i,o]=(0,l.useState)(""),m=null!=(s=a.onFailure)?s:"stop",h=async e=>{if(e!==m)try{await c.FH.updateSession(a.id,{onFailure:e}),o(r("stop"===e?"chain.savedStop":"chain.savedContinue")),t()}catch(e){o(e.message)}};return(0,n.jsxs)("fieldset",{style:{border:0,padding:0,margin:"10px 0 14px"},children:[(0,n.jsx)("legend",{className:"muted small",style:{padding:0},children:r("chain.title")}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"chain",checked:"stop"===m,onChange:()=>void h("stop"),disabled:a.running}),(0,n.jsx)("span",{children:r("chain.stop")})]}),(0,n.jsx)("p",{className:"why",children:r("chain.stopWhy")})]}),(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"chain",checked:"continue"===m,onChange:()=>void h("continue"),disabled:a.running}),(0,n.jsx)("span",{children:r("chain.continue")})]}),(0,n.jsx)("p",{className:"why",children:r("chain.continueWhy")})]}),i&&(0,n.jsx)("div",{className:"muted small",role:"status",children:i}),a.running&&(0,n.jsx)("div",{className:"muted small",children:r("chain.locked")})]})}function W(e){let{value:s,onChange:a,presets:t,onPresetsChanged:r}=e,{t:i}=(0,d.kj)(),[o,m]=(0,l.useState)(""),h=async()=>{let e=prompt(i("l2.saveAsPrompt"));if(e)try{await c.FH.savePreset(e,s),m(i("l2.savedAs",{name:e})),null==r||r()}catch(e){m(e.message)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("label",{className:"grow",style:{margin:0},children:i("l2.label")}),(0,n.jsxs)("select",{value:"",onChange:e=>{let s=t.find(s=>s.name===e.target.value);s&&a(s.content)},children:[(0,n.jsx)("option",{value:"",children:i("l2.loadPreset")}),t.map(e=>(0,n.jsx)("option",{value:e.name,children:e.name},e.name))]}),(0,n.jsx)("button",{onClick:()=>void h(),disabled:!s.trim(),children:i("l2.saveAs")})]}),(0,n.jsx)("textarea",{className:"prose",value:s,onChange:e=>a(e.target.value),placeholder:i("l2.placeholder"),style:{minHeight:140,marginTop:10}}),o&&(0,n.jsx)("div",{className:"muted small",children:o})]})}function L(e){let{session:s}=e,{t:a}=(0,d.kj)(),t=(0,d.W3)(),r=s.tasks.filter(e=>"queued"!==e.status),[i,o]=(0,l.useState)([]),m=i.length>0?i:r.map(e=>e.id),h=e=>(0,c.ub)("".concat(c.nC,"/sessions/").concat(s.id,"/export?variant=").concat(e)+(i.length>0?"&tasks=".concat(encodeURIComponent(i.join(","))):""));return(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsx)("h2",{children:a("export.title")}),(0,n.jsx)("p",{className:"muted small",children:a("export.hint")}),0===r.length?(0,n.jsx)("div",{className:"empty",children:a("export.nothing")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"row",style:{marginBottom:6},children:[(0,n.jsx)("button",{className:"quiet",onClick:()=>o(r.map(e=>e.id)),children:a("export.all")}),(0,n.jsx)("button",{className:"quiet",onClick:()=>o([]),children:a("export.none")}),(0,n.jsx)("span",{className:"muted small",children:i.length>0?a("export.selected",{n:i.length}):a("export.allOf",{n:r.length})})]}),r.map(e=>{var s,l;return(0,n.jsx)("div",{className:"option",style:{margin:"6px 0"},children:(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",checked:i.includes(e.id),onChange:()=>{let s;return s=e.id,o(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])}}),(0,n.jsxs)("span",{children:[e.title," ",(0,n.jsx)("span",{className:"badge ".concat(e.status),children:a("status.".concat(e.status))})," ",e.readOnly&&(0,n.jsx)("span",{className:"chip",children:a("task.readOnly")})," ",(0,n.jsx)("span",{className:"muted small",children:t(null!=(l=null!=(s=e.finishedAt)?s:e.startedAt)?l:e.createdAt)})]})]})},e.id)}),(0,n.jsxs)("div",{className:"row",style:{marginTop:10},children:[(0,n.jsx)("a",{className:"button-link",href:h("outcome"),download:!0,children:a("export.outcome",{n:m.length})}),(0,n.jsx)("a",{className:"button-link",href:h("full"),download:!0,children:a("export.full",{n:m.length})})]}),(0,n.jsx)("p",{className:"muted small",style:{marginTop:8},children:a("export.outcomeWhy")})]})]})}function O(e){var s;let{session:a,presets:t,onAdded:r,onPresetsChanged:i}=e,{t:o}=(0,d.kj)(),m=[...a.tasks].reverse()[0],[h,u]=(0,l.useState)(""),[p,x]=(0,l.useState)(null!=(s=null==m?void 0:m.level2)?s:""),[v,j]=(0,l.useState)(""),[g,f]=(0,l.useState)(""),k=async()=>{try{await c.FH.addTask(a.id,{title:h,level2:p,prompt:v}),u(""),j(""),f(o("form.queued")),r()}catch(e){f(e.message)}};return(0,n.jsxs)("div",{className:"panel",id:"new-task",children:[(0,n.jsx)("h2",{children:o("form.title")}),(0,n.jsx)("p",{className:"muted small",children:o("form.hint")}),(0,n.jsx)("label",{children:o("form.titleLabel")}),(0,n.jsx)("input",{type:"text",value:h,onChange:e=>u(e.target.value),placeholder:o("form.titlePlaceholder")}),(0,n.jsx)("div",{style:{marginTop:10},children:(0,n.jsx)(W,{value:p,onChange:x,presets:t,onPresetsChanged:i})}),(0,n.jsx)("label",{children:o("form.taskLabel")}),(0,n.jsx)("textarea",{className:"prose",value:v,onChange:e=>j(e.target.value),placeholder:o("form.taskPlaceholder"),style:{minHeight:140}}),(0,n.jsxs)("div",{className:"row",style:{marginTop:10},children:[(0,n.jsx)("button",{className:"primary",onClick:()=>void k(),disabled:!v.trim(),children:o("form.add")}),(0,n.jsx)("span",{className:"muted small",children:g})]})]})}function A(e){var s,a,t,r,i,u,p,x,v,j,g,b,w,C,S,F,D,H,T,M,I,P,L,O,A,B,R,J,z,Z,_,K,Y,$,Q,V,X,ee,es,ea,en,el,et,er,ei,ec,ed,eo,em,eh,eu,ep,ex,ev,ej,eg,ef,ek,ey,eb,eN;let{session:ew,task:eC,index:eS,presets:eF,onChange:eD}=e,{t:eH}=(0,d.kj)(),eT=(0,d.W3)(),[eM,eI]=(0,l.useState)(!1),[eP,eW]=(0,l.useState)(!1),[eL,eO]=(0,l.useState)(eC.title),[eA,eB]=(0,l.useState)(eC.level2),[eE,eR]=(0,l.useState)(eC.prompt),[eU,eG]=(0,l.useState)(null!=(R=null==(s=eC.vcsPlan)?void 0:s.branch)?R:""),[eq,eJ]=(0,l.useState)(null!=(J=null==(a=eC.vcsPlan)?void 0:a.commitMessage)?J:""),[ez,eZ]=(0,l.useState)(null!=(z=eC.checks)?z:[]),e_=(0,h.c)((0,m.DG)(eC)),[eK,eY]=(0,l.useState)(null),[e$,eQ]=(0,l.useState)(""),eV=async()=>{try{await c.FH.updateTask(ew.id,eC.id,{title:eL,level2:eA,prompt:eE,vcsPlan:{branch:eU,commitMessage:eq},checks:ez}),eI(!1),eD()}catch(e){eQ(e.message)}},eX="running"===eC.status||"waiting-approval"===eC.status,e0=!eX&&"queued"!==eC.status,e1=!eX&&"queued"!==eC.status,e2=!eX&&null!=(Z=null==(t=ew.vcs)?void 0:t.enabled)&&Z&&(!!(null==(r=eC.vcs)?void 0:r.baseCommit)||(null!=(_=eC.attempts)?_:[]).some(e=>{var s;return null==(s=e.vcs)?void 0:s.baseCommit})),e4=!eX&&"limit-reached"===eC.status,e6=async()=>{if(await (0,y.Z)(eH("task.continueConfirm",{title:eC.title})))try{await c.FH.continueTask(ew.id,eC.id),eD()}catch(e){eQ(e.message)}},e8=async()=>{if(await (0,y.Z)(eH("task.rerunConfirm",{title:eC.title})))try{await c.FH.rerunTask(ew.id,eC.id),eD()}catch(e){eQ(e.message)}},e5=async()=>{if(await (0,y.Z)(eH("task.editRanConfirm",{title:eC.title})))try{await c.FH.rerunTask(ew.id,eC.id,{title:eL,level2:eA,prompt:eE,vcsPlan:{branch:eU,commitMessage:eq},checks:ez},{buildOnFinished:"done"===eC.status}),eI(!1),eD()}catch(e){eQ(e.message)}},e3=(0,N.e)(eD),e7=async()=>{let e="queued"===eC.status?"task.deleteConfirm":"task.deleteConfirmRan";if(await (0,y.Z)(eH(e,{title:eC.title})))try{await c.FH.deleteTask(ew.id,eC.id),eD()}catch(e){eQ(e.message)}},e9=async()=>{eK||eY(await c.FH.taskFiles(ew.id,eC.id))},se=(e,s,a)=>a.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"muted",children:[eH(e)," "]}),a.map(e=>(0,n.jsx)("span",{style:{marginRight:10},children:(0,n.jsx)(o.u,{label:e,save:()=>c.FH.saveTaskFile(ew.id,eC.id,s,e)})},e))]});return(0,n.jsxs)("div",{className:"task ".concat(eC.status),id:eC.id,children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsxs)("h4",{className:"grow",children:[eS,". ",eC.title]}),(0,n.jsx)("span",{className:"badge ".concat(eC.status),children:eH("status.".concat(eC.status))}),(null!=(K=eC.attempt)?K:1)>1&&(0,n.jsx)("span",{className:"chip",children:eH("task.attemptN",{n:null!=(Y=eC.attempt)?Y:1})}),eC.iterations>0&&(0,n.jsx)("span",{className:"muted small",children:eH("task.iterations",{n:eC.iterations})}),eC.runId&&(0,n.jsxs)("button",{className:eP?"":"quiet",onClick:()=>eW(e=>!e),title:(0,m.DG)(eC)?eH("story.showLiveWhy"):eH("story.why"),children:[(0,m.DG)(eC)&&!eP&&(0,n.jsx)("span",{className:"dot","aria-hidden":"true"}),eP?eH("story.hide"):(0,m.DG)(eC)?eH("story.showLive"):eH("story.show")]}),!eX&&(0,n.jsx)("button",{onClick:()=>eI(e=>!e),title:eH("task.editAll"),children:eM?eH("task.cancel"):eH("task.edit")}),e4&&(0,n.jsx)("button",{className:"primary",onClick:()=>void e6(),title:eH("task.continueWhy"),children:eH("task.continue")}),e1&&(0,n.jsx)("button",{className:e4?"":"primary",onClick:()=>void e8(),title:eH("task.rerunWhy"),children:eH("task.rerun")}),e2&&(0,n.jsx)("button",{onClick:()=>void e3.restore({sessionId:ew.id,taskId:eC.id,title:eC.title}),disabled:""!==e3.busy||ew.running,title:eH("restore.why"),children:"restore"===e3.busy?eH("restore.checking"):eH("restore.button")}),e0&&(0,n.jsx)("button",{onClick:()=>void e3.restartFrom({sessionId:ew.id,taskId:eC.id,title:eC.title}),disabled:""!==e3.busy||ew.running,title:eH("restart.why"),children:"restart"===e3.busy?eH("restart.checking"):eH("restart.button")}),!eX&&(0,n.jsx)("button",{className:"danger",onClick:()=>void e7(),children:eH("task.delete")}),!eM&&(e$||e3.message)&&(0,n.jsx)("span",{className:"err",role:"alert",children:e$||e3.message})]}),(0,n.jsxs)("div",{className:"muted small",children:[eC.startedAt?eH("task.started",{t:eT(eC.startedAt)}):eH("task.added",{t:eT(eC.createdAt)}),eC.finishedAt?" \xb7 ".concat(eH("task.finished",{t:eT(eC.finishedAt)})):"",eC.startedAt&&eC.finishedAt?" \xb7 ".concat(eH("task.took",{d:(0,c.c5)((0,m.d5)(eC.startedAt,eC.finishedAt))})):"",(0,m.DG)(eC)?" \xb7 ".concat(eH("task.runningFor",{d:(0,c.c5)((0,m.d5)(eC.startedAt,void 0,e_))})):""]}),"queued"!==eC.status&&(null==(i=ew.vcs)?void 0:i.enabled)&&eC.vcs&&(0,n.jsx)("div",{className:"muted small",children:eC.vcs.problem&&!eC.vcs.branch?(0,n.jsx)("span",{className:"reason",children:eH("vcs.taskProblem",{problem:eC.vcs.problem})}):(0,n.jsxs)(n.Fragment,{children:[eC.vcs.branch&&eH("vcs.taskBranch",{branch:eC.vcs.branch}),eC.vcs.baseCommit&&" \xb7 ".concat(eH("vcs.taskBase",{commit:eC.vcs.baseCommit.slice(0,8)})),eC.vcs.commit?" \xb7 ".concat(eH("vcs.taskCommit",{commit:eC.vcs.commit.slice(0,8)})):" \xb7 ".concat(eH("vcs.taskNoFiles")),(null!=($=null==(u=eC.vcs.files)?void 0:u.length)?$:0)>0&&(0,n.jsxs)("details",{style:{display:"inline"},children:[(0,n.jsxs)("summary",{style:{display:"inline",cursor:"pointer"},children:[" \xb7 ",eH("vcs.taskFiles",{n:null!=(Q=null==(p=eC.vcs.files)?void 0:p.length)?Q:0})]}),(0,n.jsx)("ul",{style:{margin:"4px 0 4px 0",paddingLeft:20},children:(null!=(V=eC.vcs.files)?V:[]).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{children:e.path})," ",e.added<0||e.removed<0?eH("vcs.taskBinary"):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{style:{color:"var(--ok)"},children:["+",e.added]})," ",(0,n.jsxs)("span",{style:{color:"var(--bad)"},children:["-",e.removed]})]})]},e.path))})]}),(null!=(X=null==(x=eC.vcs.suspicious)?void 0:x.length)?X:0)>0&&(0,n.jsxs)("div",{className:"err small",style:{marginTop:4},children:[eH("vcs.suspicious",{n:null!=(ee=null==(v=eC.vcs.suspicious)?void 0:v.length)?ee:0}),(0,n.jsx)("ul",{style:{margin:"4px 0",paddingLeft:20},children:(null!=(es=eC.vcs.suspicious)?es:[]).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{children:e.path})," — ",e.reason]},e.path))})]})]})}),"queued"===eC.status&&(null==(j=ew.vcs)?void 0:j.enabled)&&((null==(g=eC.vcsPlan)?void 0:g.branch)||(null==(b=eC.vcsPlan)?void 0:b.commitMessage))&&(0,n.jsx)("div",{className:"muted small",children:eC.vcsPlan.branch&&eC.vcsPlan.commitMessage?eH("task.gitNames",{branch:eC.vcsPlan.branch,subject:eC.vcsPlan.commitMessage.split("\n")[0]}):eC.vcsPlan.branch?eH("task.gitBranchOnly",{branch:eC.vcsPlan.branch}):eH("task.gitCommitOnly",{subject:(null!=(ea=eC.vcsPlan.commitMessage)?ea:"").split("\n")[0]})}),eP&&eC.runId&&(0,n.jsx)(f.P,{sessionId:ew.id,taskId:eC.id,live:"running"===eC.status||"waiting-approval"===eC.status}),eM?(0,n.jsxs)("div",{style:{marginTop:8},children:[(0,n.jsx)("label",{children:eH("form.titleLabel")}),(0,n.jsx)("input",{type:"text",value:eL,onChange:e=>eO(e.target.value)}),(0,n.jsx)("div",{style:{marginTop:8},children:(0,n.jsx)(W,{value:eA,onChange:eB,presets:eF})}),(0,n.jsx)("label",{children:eH("form.taskLabel")}),(0,n.jsx)("textarea",{className:"prose",value:eE,onChange:e=>eR(e.target.value)}),(null==(w=ew.vcs)?void 0:w.enabled)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{htmlFor:"branch-".concat(eC.id),children:eH("task.branch")}),(0,n.jsx)("input",{id:"branch-".concat(eC.id),type:"text",value:eU,onChange:e=>eG(e.target.value),placeholder:ew.vcs.branchPrefix,disabled:"per-session"===ew.vcs.branchMode}),(0,n.jsx)("p",{className:"why",children:"per-session"===ew.vcs.branchMode?eH("task.branchIgnored"):eH("task.branchWhy")}),(0,n.jsx)("label",{htmlFor:"commit-".concat(eC.id),children:eH("task.commitMessage")}),(0,n.jsx)("textarea",{id:"commit-".concat(eC.id),value:eq,onChange:e=>eJ(e.target.value),style:{minHeight:70}}),(0,n.jsx)("p",{className:"why",children:eH("task.commitWhy")})]}),(0,n.jsx)(E,{checks:ez,onChange:eZ}),(0,n.jsxs)("div",{className:"row",style:{marginTop:8},children:[(0,n.jsx)("button",{className:"primary",onClick:()=>void(e0?e5():eV()),children:e0?eH("task.saveAndRerun"):eH("task.save")}),(0,n.jsx)("span",{className:"err",children:e$})]}),e0&&(0,n.jsx)("p",{className:"muted small",children:eH("task.editRanWhy")})]}):(0,n.jsxs)(n.Fragment,{children:[(null!=(en=null==(C=eC.checks)?void 0:C.length)?en:0)>0&&(0,n.jsxs)("details",{className:"small",style:{margin:"6px 0"},children:[(0,n.jsxs)("summary",{children:[eH("checks.title")," — ",eH("checks.n",{n:null!=(el=null==(S=eC.checks)?void 0:S.length)?el:0}),(null!=(et=null==(F=eC.checkResults)?void 0:F.length)?et:0)>0&&" \xb7 ".concat((null!=(er=eC.checkResults)?er:[]).filter(e=>e.passed).length,"/").concat(null==(D=eC.checkResults)?void 0:D.length," ").concat(eH("checks.passed"))]}),(0,n.jsx)("ul",{style:{margin:"6px 0",paddingLeft:20},children:(null!=(ei=eC.checks)?ei:[]).map((e,s)=>{var a;let l=(null!=(a=eC.checkResults)?a:[]).find(s=>s.name===e.name);return(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:e.name}),(0,n.jsxs)("span",{className:"muted",children:[" — ",eH("checks.kind.".concat(e.expect)),e.value?' "'.concat(e.value,'"'):"",e.run?": ".concat(e.run):e.file?": ".concat(e.file):""]}),l&&(0,n.jsxs)("div",{className:l.passed?"muted":"reason",children:[l.passed?eH("checks.passed"):eH("checks.failed")," — ",l.detail]})]},"".concat(e.name,"-").concat(s))})})]}),(null!=(ec=null==(H=eC.reviewChecks)?void 0:H.length)?ec:0)>0&&(0,n.jsxs)("details",{className:"small",style:{margin:"6px 0"},children:[(0,n.jsx)("summary",{children:eH("checks.fromReview",{n:null!=(ed=null==(T=eC.reviewChecks)?void 0:T.length)?ed:0})}),(0,n.jsx)("p",{className:"why",children:eH("checks.fromReviewWhy")}),(0,n.jsx)("ul",{style:{margin:"6px 0",paddingLeft:20},children:(null!=(eo=eC.reviewChecks)?eo:[]).map(e=>{var s;let a=(null!=(s=eC.checkResults)?s:[]).find(s=>s.name===e.check.name);return(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{children:e.findingId})," ",(0,n.jsx)("strong",{children:e.check.name}),"active"!==e.state&&(0,n.jsx)("span",{className:"chip",style:{marginLeft:6},children:eH("checks.state.".concat(e.state))}),(0,n.jsx)("div",{className:"muted",children:e.what}),a&&(0,n.jsxs)("div",{className:a.passed?"muted":"reason",children:[a.passed?eH("checks.passed"):eH("checks.failed")," — ",a.detail]})]},e.check.name)})})]}),(0,n.jsx)(q,{review:eC.review}),eC.summary&&(0,n.jsxs)("div",{className:"summary",children:[(0,n.jsx)("strong",{children:eH("task.whatWasDone")}),(0,n.jsx)(k.s,{text:eC.summary})]}),(null!=(em=null==(M=eC.deviations)?void 0:M.length)?em:0)>0&&(0,n.jsx)(U,{items:null!=(eh=eC.deviations)?eh:[]}),(null!=(eu=null==(I=eC.disputes)?void 0:I.length)?eu:0)>0&&(0,n.jsx)(G,{items:null!=(ep=eC.disputes)?ep:[]}),eC.environment&&(0,n.jsx)("div",{className:"muted small",style:{margin:"4px 0"},children:eH("task.ranWith",{node:eC.environment.node,npm:null!=(ex=eC.environment.npm)?ex:"—",git:null!=(ev=eC.environment.git)?ev:"—",pwsh:null!=(eg=null!=(ej=eC.environment.pwsh)?ej:eC.environment.powershell)?eg:"—"})}),(null!=(ef=null==(P=eC.leftovers)?void 0:P.length)?ef:0)>0&&(0,n.jsxs)("div",{className:"err small",style:{margin:"6px 0"},children:[eH("task.leftovers",{n:null!=(ek=null==(L=eC.leftovers)?void 0:L.length)?ek:0}),(0,n.jsx)("ul",{style:{margin:"4px 0",paddingLeft:20},children:(null!=(ey=eC.leftovers)?ey:[]).map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("code",{children:e.name})," pid ",e.pid,e.ports.length>0?" \xb7 ".concat(eH("task.leftoverPorts",{ports:e.ports.join(", ")})):""," \xb7 ",e.by]},"".concat(e.by,"-").concat(e.pid)))})]}),eC.reason&&(0,n.jsx)("div",{className:"reason small",style:{margin:"6px 0"},children:eC.reason}),(null!=(eb=null==(O=eC.attempts)?void 0:O.length)?eb:0)>0&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.attempts",{n:null!=(eN=null==(A=eC.attempts)?void 0:A.length)?eN:0})}),null==(B=eC.attempts)?void 0:B.map((e,s)=>{var a;return(0,n.jsxs)("div",{className:"small",style:{margin:"8px 0 12px"},children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("strong",{children:eH("task.attemptN",{n:s+1})}),(0,n.jsx)("span",{className:"badge ".concat(e.status),children:eH("status.".concat(e.status))}),e.iterations>0&&(0,n.jsx)("span",{className:"muted",children:eH("task.iterations",{n:e.iterations})}),e.runId&&(0,n.jsx)(o.u,{label:eH("save.attemptLog"),save:()=>c.FH.saveTaskLog(ew.id,eC.id,e.runId)}),e.runId&&(0,n.jsx)(o.H,{sessionId:ew.id,taskId:eC.id,attempt:s+1})]}),(0,n.jsxs)("div",{className:"muted",children:[e.startedAt?eH("task.started",{t:eT(e.startedAt)}):"",e.finishedAt?" \xb7 ".concat(eH("task.finished",{t:eT(e.finishedAt)})):""]}),e.summary&&(0,n.jsx)("div",{children:e.summary}),e.reason&&(0,n.jsx)("div",{className:"err",children:e.reason}),e.prompt&&e.prompt!==eC.prompt&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.attemptText")}),(0,n.jsx)("pre",{children:e.prompt})]})]},"".concat(null!=(a=e.runId)?a:s))})]}),"queued"===eC.status?(0,n.jsxs)("div",{style:{marginTop:8},children:[(0,n.jsx)("div",{className:"muted small",children:eH("task.prompt")}),(0,n.jsx)("pre",{children:eC.prompt}),eC.level2.trim()?(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.l2Show",{n:eC.level2.trim().split("\n").length})}),(0,n.jsx)("pre",{children:eC.level2})]}):(0,n.jsx)("div",{className:"muted small",children:eH("task.noL2")})]}):(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.promptAndL2")}),eC.level2.trim()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"muted small",children:eH("task.l2")}),(0,n.jsx)("pre",{children:eC.level2})]}),(0,n.jsx)("div",{className:"muted small",children:eH("task.prompt")}),(0,n.jsx)("pre",{children:eC.prompt})]}),eC.firstMessage&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.firstMessage")}),(0,n.jsx)("pre",{className:"tall",children:eC.firstMessage})]}),eC.runId&&(0,n.jsxs)("details",{onToggle:e=>e.currentTarget.open&&void e9(),children:[(0,n.jsx)("summary",{children:eH("task.files")}),(0,n.jsx)("div",{className:"row small",style:{margin:"6px 0"},children:(0,n.jsx)(o.u,{label:eH("save.log"),save:()=>c.FH.saveTaskLog(ew.id,eC.id)})}),eK&&(0,n.jsxs)("div",{className:"small",children:[se("task.reports","reports",eK.reports),se("task.artifacts","artifacts",eK.artifacts),se("task.replies","replies",eK.replies)]})]}),eC.finalReply&&(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:eH("task.finalReply")}),(0,n.jsx)("pre",{className:"tall",children:eC.finalReply})]})]})]})}function B(e){let{events:s}=e,{t:a}=(0,d.kj)(),{appearance:t}=(0,x.K)(),r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{!t.reduceMotion&&r.current&&(r.current.scrollTop=r.current.scrollHeight)},[s.length,t.reduceMotion]),(0,n.jsxs)("div",{className:"panel",children:[(0,n.jsx)("h2",{children:a("live.title")}),(0,n.jsxs)("div",{className:"log",ref:r,children:[0===s.length&&(0,n.jsx)("div",{className:"muted",children:a("live.none")}),s.map((e,s)=>{var a;return(0,n.jsxs)("div",{className:e.level,children:[(0,n.jsx)("span",{className:"time",children:new Date(e.at).toLocaleTimeString(void 0,{hour12:!1})}),null!=(a=e.message)?a:e.type]},s)})]})]})}function E(e){let{checks:s,onChange:a}=e,{t:l}=(0,d.kj)(),t=(e,n)=>a(s.map((s,a)=>e===a?{...s,...n}:s));return(0,n.jsxs)("div",{style:{marginTop:12},children:[(0,n.jsx)("label",{children:l("checks.title")}),(0,n.jsx)("p",{className:"why",style:{marginTop:0},children:l("checks.why")}),0===s.length&&(0,n.jsx)("p",{className:"muted small",children:l("checks.noneWhy")}),s.map((e,r)=>{var i,d,o,m;return(0,n.jsxs)("div",{className:"option",children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("input",{type:"text",className:"grow",value:e.name,placeholder:l("checks.namePlaceholder"),onChange:e=>t(r,{name:e.target.value}),"aria-label":l("checks.name")}),(0,n.jsx)("select",{value:e.expect,onChange:e=>t(r,{expect:e.target.value}),"aria-label":l("checks.kind"),style:{width:"auto"},children:c.FZ.map(e=>(0,n.jsx)("option",{value:e,children:l("checks.kind.".concat(e))},e))}),(0,n.jsx)("button",{className:"quiet",onClick:()=>a(s.filter((e,s)=>s!==r)),children:l("checks.remove")})]}),(0,n.jsxs)("div",{className:"row",style:{marginTop:6},children:[(0,c.rt)(e.expect)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"text",className:"grow",value:null!=(i=e.run)?i:"",placeholder:l("checks.run"),onChange:e=>t(r,{run:e.target.value}),"aria-label":l("checks.run")}),(0,n.jsx)("input",{type:"text",value:null!=(d=e.cwd)?d:"",placeholder:l("checks.cwd"),onChange:e=>t(r,{cwd:e.target.value}),"aria-label":l("checks.cwd"),style:{width:220}})]}):(0,n.jsx)("input",{type:"text",className:"grow",value:null!=(o=e.file)?o:"",placeholder:l("checks.file"),onChange:e=>t(r,{file:e.target.value}),"aria-label":l("checks.file")}),(0,c.dK)(e.expect)&&(0,n.jsx)("input",{type:"text",value:null!=(m=e.value)?m:"",placeholder:"output-matches"===e.expect?l("checks.valueRegex"):l("checks.value"),onChange:e=>t(r,{value:e.target.value}),"aria-label":l("checks.value"),style:{width:240}})]})]},r)}),(0,n.jsx)("button",{onClick:()=>a([...s,{name:"",expect:"exit-zero",run:""}]),children:l("checks.add")})]})}function R(e){let{tasks:s}=e,{t:a}=(0,d.kj)(),l=(0,m.hH)(s),t=(0,h.c)(!!l&&l.tasks.some(m.DG));if(!l)return null;let r=(0,m.eZ)(l.run,l.tasks,t);return(0,n.jsx)("p",{className:"muted small",style:{margin:"4px 0 10px"},children:a(r.live?"session.runClockLive":"session.runClock",{n:r.tasks,d:(0,c.c5)(r.ms)})})}function U(e){let{items:s}=e,{t:a}=(0,d.kj)();return(0,n.jsxs)("div",{className:"summary",children:[(0,n.jsx)("strong",{children:a("task.deviations",{n:s.length})}),(0,n.jsx)("ol",{style:{margin:"6px 0",paddingLeft:20},children:s.map((e,s)=>(0,n.jsxs)("li",{style:{marginBottom:6},children:[(0,n.jsx)("div",{children:e.instruction}),(0,n.jsxs)("div",{className:"muted",children:[a("task.deviationDid"),": ",e.did]}),(0,n.jsxs)("div",{className:"muted",children:[a("task.deviationWhy"),": ",e.why]})]},s))})]})}function G(e){let{items:s}=e,{t:a}=(0,d.kj)();return(0,n.jsxs)("div",{className:"summary",children:[(0,n.jsx)("strong",{children:a("task.disputes",{n:s.length})}),(0,n.jsx)("ol",{style:{margin:"6px 0",paddingLeft:20},children:s.map((e,s)=>(0,n.jsxs)("li",{style:{marginBottom:6},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("code",{children:e.finding})," — ",e.why]}),(0,n.jsxs)("div",{className:"muted",children:[a("review.evidence"),": ",e.evidence]})]},s))})]})}function q(e){var s,a,l,t,r;let{review:i}=e,{t:c}=(0,d.kj)();if(!i||"skipped"===i.verdict)return null;let o="pass"===i.verdict?"done":"fail"===i.verdict?"blocked":"waiting-approval";return(0,n.jsxs)("div",{className:"small",style:{margin:"8px 0"},children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("span",{className:"badge ".concat(o),children:c("review.verdict.".concat(i.verdict))}),i.stepsRun>0&&(0,n.jsx)("span",{className:"muted",children:c("review.ran",{n:i.stepsRun})}),i.rounds>1&&(0,n.jsx)("span",{className:"muted",children:c("review.rounds",{n:i.rounds})}),i.model&&(0,n.jsx)("span",{className:"chip",children:c("review.onModel",{model:i.model})})]}),i.problem&&(0,n.jsx)("p",{className:"reason",children:c("review.problem",{problem:i.problem})}),i.summary&&(0,n.jsx)(k.s,{text:i.summary}),(null!=(l=null==(s=i.findings)?void 0:s.length)?l:0)>0&&(0,n.jsxs)("details",{style:{marginTop:4},children:[(0,n.jsx)("summary",{children:c("review.findings",{n:null!=(t=null==(a=i.findings)?void 0:a.length)?t:0})}),(0,n.jsx)("ol",{style:{margin:"6px 0",paddingLeft:20},children:(null!=(r=i.findings)?r:[]).map((e,s)=>(0,n.jsxs)("li",{style:{marginBottom:8},children:[(0,n.jsxs)("div",{children:[e.id&&(0,n.jsx)("code",{style:{marginRight:6},children:e.id}),e.what,"task"===e.about&&(0,n.jsx)("span",{className:"chip",style:{marginLeft:6},children:c("review.aboutTask")}),e.repeated&&(0,n.jsx)("span",{className:"chip",style:{marginLeft:6},children:c("review.repeated")})]}),e.where&&(0,n.jsx)("div",{className:"muted",children:e.where}),(0,n.jsxs)("div",{className:"muted",children:[c("review.evidence"),": ",e.evidence]})]},s))})]})]})}},4784:(e,s,a)=>{"use strict";a.d(s,{Y:()=>i});var n=a(3365),l=a(1521),t=a(5549),r=a(867);function i(e){var s,a;let{id:i,chosen:c,onChange:d,none:o,catalogue:m,disabled:h=!1,style:u}=e,{t:p}=(0,r.kj)(),x=function(e){let[s,a]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(void 0!==e)return;let s=!0;return t.FH.models().then(e=>{s&&a(e)}).catch(()=>void 0),()=>{s=!1}},[e]),void 0!==e?e:s}(m),v=null!=(s=null==x?void 0:x.options)?s:[],j=v.some(e=>e.name===c),g=v.filter(e=>!e.group),f=new Map;for(let e of v)e.group&&f.set(e.group,[...null!=(a=f.get(e.group))?a:[],e]);return(0,n.jsxs)("select",{id:i,value:c,onChange:e=>d(e.target.value),disabled:h,style:{width:"auto",minWidth:280,...u},children:[(0,n.jsx)("option",{value:"",children:o}),c&&!j&&(0,n.jsx)("option",{value:c,children:p("model.notInList",{name:c})}),g.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(p("model.unavailable")):""]},e.name)),[...f.entries()].map(e=>{let[s,a]=e;return(0,n.jsx)("optgroup",{label:s,children:a.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(p("model.unavailable")):""]},e.name))},s)})]})}},8848:(e,s,a)=>{"use strict";a.d(s,{H4:()=>d,L:()=>o,z4:()=>m});var n=a(3365),l=a(8197),t=a.n(l),r=a(1521),i=a(5549),c=a(867);function d(e){let{current:s,onUse:a}=e,{t:l}=(0,c.kj)(),[t,d]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=!1;return i.FH.project().then(s=>{e||d(s)}).catch(()=>void 0),()=>{e=!0}},[]),!t)return null;let o=t.rootDir.trim(),m=s.trim().toLowerCase(),h=a?t.others.filter(e=>e.rootDir.trim().toLowerCase()!==m):[];return(0,n.jsx)(u,{label:o?l("proj.defaultIs",{dir:o}):l("proj.noneShort"),offer:o&&a&&m!==o.toLowerCase()?{text:l("proj.useIt"),onUse:()=>a(o)}:void 0,more:h.map(e=>({text:l("proj.otherUse",{name:e.name}),title:e.rootDir,onUse:()=>null==a?void 0:a(e.rootDir)})),link:o?l("proj.change"):l("proj.setIt"),anchor:"project"})}function o(e){let{current:s,onUse:a}=e,l=h(),{t}=(0,c.kj)();if(!l)return null;let r=l.defaultModel.trim();return(0,n.jsx)(u,{label:r?t("def.modelDefaultIs",{name:r}):t("def.modelNoneShort"),offer:r&&a&&s.trim()!==r?{text:t("def.modelUseIt"),onUse:()=>a(r)}:void 0,link:t(r?"proj.change":"proj.setIt"),anchor:"model"})}function m(e){let{current:s,onUse:a}=e,l=h(),{t}=(0,c.kj)();if(!l)return null;let r=l.defaultReviewModel.trim();return(0,n.jsx)(u,{label:r?t("def.reviewDefaultIs",{name:r}):t("def.reviewNoneShort"),offer:r&&a&&s.trim()!==r?{text:t("def.modelUseIt"),onUse:()=>a(r)}:void 0,link:t(r?"proj.change":"proj.setIt"),anchor:"review"})}function h(){let[e,s]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=!1;return i.FH.models().then(a=>{e||s(a)}).catch(()=>void 0),()=>{e=!0}},[]),e}function u(e){let{label:s,offer:a,more:l=[],link:r,anchor:i}=e;return(0,n.jsxs)("p",{className:"muted small",style:{marginTop:4},children:[s," ",a&&(0,n.jsxs)(n.Fragment,{children:["\xb7"," ",(0,n.jsx)("button",{type:"button",className:"linkish",onClick:a.onUse,children:a.text})," "]}),l.map(e=>(0,n.jsxs)("span",{children:["\xb7"," ",(0,n.jsx)("button",{type:"button",className:"linkish",onClick:e.onUse,title:e.title,children:e.text})," "]},e.text)),"\xb7 ",(0,n.jsx)(t(),{href:"/defaults#".concat(i),children:r})]})}}},e=>{e.O(0,[197,867,549,56,347,131,358],()=>e(e.s=1772)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- :root{--bg:#fdf7f0;--bg-tint:#f7ead9;--panel:#fffdfb;--ink:#241a13;--muted:#7a6656;--line:#ecdcc9;--line-strong:#d8c3a9;--accent:#b4500b;--accent-ink:#fffaf5;--accent-soft:#fbe9d8;--ok:#2a6b45;--ok-soft:#e4f1e7;--warn:#8f5500;--warn-soft:#fbedd6;--bad:#a8271c;--bad-soft:#fbe6e2;--code:#f9efe3;--shadow:0 1px 2px rgba(74,45,20,0.06),0 6px 18px rgba(74,45,20,0.05);--radius:12px;--scale:1;--mono:ui-monospace,Consolas,"Cascadia Mono",monospace;--focus-width:2px}:root[data-theme=dark]{--bg:#17120f;--bg-tint:#221a15;--panel:#221b16;--ink:#f2e8df;--muted:#b6a493;--line:#3a2e26;--line-strong:#52412f;--accent:#ff9f45;--accent-ink:#2b1705;--accent-soft:#35251a;--ok:#7ed39f;--ok-soft:#1e2b22;--warn:#f0b96e;--warn-soft:#2f2417;--bad:#ff9081;--bad-soft:#33201d;--code:#1d1713;--shadow:0 1px 2px rgba(0,0,0,0.3),0 8px 24px rgba(0,0,0,0.25)}:root[data-contrast=high]{--ink:#000000;--muted:#4a3a2c;--line:#a88d6c;--line-strong:#6b5236;--accent:#8f3c00;--panel:#ffffff;--bg:#fff9f2;--ok:#17512f;--warn:#6b3f00;--bad:#8a1a11;--shadow:none}:root[data-theme=dark][data-contrast=high]{--ink:#ffffff;--muted:#e0cfbd;--line:#7d6650;--line-strong:#a88a6a;--accent:#ffc27a;--panel:#100c09;--bg:#000000;--code:#0a0705;--ok:#9ff0bd;--warn:#ffd08f;--bad:#ffb0a2;--shadow:none}:root[data-textsize=large]{--scale:1.12}:root[data-textsize=huge]{--scale:1.28}:root[data-focus=strong]{--focus-width:4px}*{box-sizing:border-box}body,html{margin:0;background:var(--bg);color:var(--ink);font:calc(15px * var(--scale)) /1.55 system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--accent);text-decoration:none}:root[data-links=underline] a,a:hover{text-decoration:underline}:focus-visible{outline:var(--focus-width) solid var(--accent);outline-offset:2px;border-radius:4px}:root[data-motion=reduced] *,:root[data-motion=reduced] :after,:root[data-motion=reduced] :before{transition:none!important;animation:none!important;scroll-behavior:auto!important}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:0 0 var(--radius) 0;z-index:10}.skip-link:focus{left:0}.wrap{max-width:1100px;margin:0 auto;padding:24px 16px 80px}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}.top h1{font-size:calc(21px * var(--scale));margin:0;letter-spacing:-.01em}.top h1 a{color:var(--accent)}.top nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.top nav a{color:var(--muted);padding:6px 10px;border-radius:999px;font-size:calc(14px * var(--scale))}.top nav a:hover{text-decoration:none}.top nav a:hover,.top nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.top nav a[aria-current=page]{font-weight:600}.top nav a .live{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:0 6px 0 4px;border-radius:999px;background:var(--ok-soft,var(--accent-soft));color:var(--ok,var(--accent));font-size:calc(10.5px * var(--scale));font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}.top nav a .live .dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:live-pulse 1.6s ease-in-out infinite}@keyframes live-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.75)}}.crumbs{color:var(--muted);font-size:calc(13px * var(--scale));margin-bottom:8px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px;box-shadow:var(--shadow)}.panel h2{font-size:calc(16px * var(--scale));margin:0 0 10px}.panel h3{font-size:calc(13px * var(--scale));margin:16px 0 6px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.grow{flex:1 1 auto}.muted{color:var(--muted)}.small{font-size:calc(13px * var(--scale))}input[type=text],select,textarea{width:100%;background:var(--code);color:var(--ink);border:1px solid var(--line-strong);border-radius:9px;padding:9px 11px;font:inherit}input[type=text]:focus,select:focus,textarea:focus{border-color:var(--accent)}textarea{min-height:110px;resize:vertical;font-family:var(--mono);font-size:calc(13px * var(--scale));line-height:1.5}textarea.prose{font-family:inherit;font-size:calc(14px * var(--scale))}label{display:block;font-size:calc(13px * var(--scale));color:var(--muted);margin:12px 0 4px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px}.option{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;background:var(--bg)}.option>label{display:flex;align-items:flex-start;gap:10px;margin:0;color:var(--ink);font-size:calc(14px * var(--scale));cursor:pointer}.option>label input{margin-top:3px;flex:none}.option .why{margin:6px 0 0 26px;color:var(--muted);font-size:calc(12.5px * var(--scale))}.option.warned{border-color:var(--warn);background:var(--warn-soft)}button{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:9px;padding:8px 13px;font:inherit;cursor:pointer;transition:background .12s ease,border-color .12s ease}button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:600}button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}button.danger{color:var(--bad);border-color:var(--bad)}button.danger:hover:not(:disabled){background:var(--bad-soft);border-color:var(--bad)}button.quiet{border-color:transparent;background:transparent;color:var(--muted)}button.quiet:hover:not(:disabled){color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}.badge{display:inline-block;font-size:calc(12px * var(--scale));padding:2px 9px;border-radius:999px;border:1px solid var(--line-strong);color:var(--muted);white-space:nowrap}.badge.running{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.badge.waiting-approval{color:var(--warn);border-color:var(--warn);background:var(--warn-soft)}.badge.done{color:var(--ok);border-color:var(--ok);background:var(--ok-soft)}.badge.blocked{color:var(--warn);border-color:var(--warn);background:var(--warn-soft)}.badge.aborted,.badge.failed,.badge.limit-reached{color:var(--bad);border-color:var(--bad);background:var(--bad-soft)}pre{background:var(--code);border:1px solid var(--line);border-radius:9px;padding:10px 12px;overflow:auto;font-family:var(--mono);font-size:calc(12.5px * var(--scale));line-height:1.5;margin:6px 0;white-space:pre-wrap;word-break:break-word}pre.tall{max-height:420px}details>summary{cursor:pointer;color:var(--muted);font-size:calc(13px * var(--scale));-webkit-user-select:none;-moz-user-select:none;user-select:none}details>summary:hover{color:var(--accent)}details[open]>summary{margin-bottom:6px}.task{border-left:4px solid var(--line-strong);padding-left:14px;margin-bottom:18px}.task.done{border-left-color:var(--ok)}.task.running,.task.waiting-approval{border-left-color:var(--accent)}.task.blocked{border-left-color:var(--warn)}.task.aborted,.task.failed,.task.limit-reached{border-left-color:var(--bad)}.task h4{margin:0 0 4px;font-size:calc(15px * var(--scale))}.task:target{background:var(--accent-soft);border-radius:0 10px 10px 0;padding:8px 8px 8px 14px}.summary{background:var(--ok-soft);border:1px solid var(--ok);border-radius:9px;padding:10px 12px;margin:8px 0;white-space:pre-wrap}.reason{color:var(--bad)}.approval{background:var(--warn-soft);border:2px solid var(--warn);border-radius:var(--radius);padding:12px 14px;margin-bottom:14px;position:-webkit-sticky;position:sticky;top:8px;z-index:2}.approval code{font-size:calc(13px * var(--scale))}.approval code,.log{font-family:var(--mono)}.log{font-size:calc(12.5px * var(--scale));max-height:320px;overflow:auto;background:var(--code);border:1px solid var(--line);border-radius:9px;padding:8px 10px}.log div{white-space:pre-wrap;word-break:break-word}.log .warn{color:var(--warn)}.log .error{color:var(--bad)}.log .time{color:var(--muted);margin-right:8px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:9px 6px;border-bottom:1px solid var(--line);font-size:calc(14px * var(--scale));vertical-align:top}th{color:var(--muted);font-weight:700;font-size:calc(12px * var(--scale));text-transform:uppercase;letter-spacing:.04em}.err{color:var(--bad);font-size:calc(13px * var(--scale))}.notice{border:1px solid var(--bad);background:var(--bad-soft);color:var(--ink);border-radius:10px;padding:10px 12px;margin:10px 0;font-size:calc(13.5px * var(--scale))}.notice strong{color:var(--bad)}.notice ul{margin:6px 0 0;padding-left:20px}.notice.caution{border-color:var(--warn);background:var(--warn-soft)}.notice.caution strong{color:var(--warn)}.notice.calm{border-color:var(--line-strong);background:var(--bg-tint)}.notice.calm strong{color:var(--ink)}.counts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:4px}.count{border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:96px;background:var(--bg)}.count .n{font-size:calc(22px * var(--scale));font-weight:700;line-height:1.2}.count .k{color:var(--muted);font-size:calc(12px * var(--scale));text-transform:uppercase;letter-spacing:.04em}.count.done .n{color:var(--ok)}.count.failed .n{color:var(--bad)}.count.running .n{color:var(--accent)}.attempts{list-style:none;margin:6px 0 0;padding:0 0 0 12px;border-left:2px solid var(--line)}.attempts>li{margin:0 0 10px}.attempts .head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.attempts .when{color:var(--muted);font-size:calc(12.5px * var(--scale))}.attempts .what{margin:4px 0 0}.count.queued .n{color:var(--accent)}.flow{list-style:none;margin:8px 0 0;padding:0}.flow>li{position:relative;padding:10px 0 14px 28px;border-left:2px solid var(--line);margin-left:7px}.flow>li:last-child{border-left-color:transparent}.flow>li:before{content:"";position:absolute;left:-9px;top:16px;width:16px;height:16px;border-radius:50%;background:var(--panel);border:3px solid var(--line-strong)}.flow>li.done:before{border-color:var(--ok);background:var(--ok)}.flow>li.running:before,.flow>li.waiting-approval:before{border-color:var(--accent);background:var(--accent)}.flow>li.aborted:before,.flow>li.failed:before,.flow>li.limit-reached:before{border-color:var(--bad);background:var(--bad)}.flow>li.queued:before{border-color:var(--line-strong);background:var(--panel)}.flow>li.next:before{border-color:var(--accent);background:var(--panel);box-shadow:0 0 0 4px var(--accent-soft)}.flow .when{color:var(--muted);font-size:calc(12.5px * var(--scale))}.flow .what{margin:4px 0 0}.flow .head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.flow .head strong{font-size:calc(14.5px * var(--scale))}.chip{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:1px 9px;font-size:calc(12px * var(--scale));color:var(--muted);background:var(--bg-tint)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.toolbar input[type=text],.toolbar select{width:auto;min-width:150px}.segmented{display:inline-flex;border:1px solid var(--line-strong);border-radius:9px;overflow:hidden}.segmented button{border:none;border-radius:0;border-right:1px solid var(--line)}.segmented button:last-child{border-right:none}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);font-weight:600}.button-link{display:inline-block;background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:9px;padding:8px 13px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.button-link:hover{filter:brightness(1.08);text-decoration:none}.button-link+.button-link{background:var(--panel);color:var(--ink);border-color:var(--line-strong);font-weight:400}.button-link+.button-link:hover{background:var(--accent-soft);border-color:var(--accent);filter:none}.empty{color:var(--muted);padding:14px 0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.dropzone{border:2px dashed var(--line-strong);border-radius:12px;padding:10px;background:var(--bg-tint)}.dropzone.active{border-color:var(--accent);background:var(--accent-soft)}.dropzone textarea{margin:0}.dropzone p{margin:8px 2px 2px}.batch-row td{vertical-align:middle}.batch-row.running{background:var(--accent-soft)}.run-order{list-style:decimal;margin:10px 0 4px;padding-left:28px}.run-order li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}.run-order button{padding:2px 8px;margin-left:4px}.linkish{background:none;border:0;padding:0;margin:0;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline}.linkish:hover{filter:brightness(1.15)}.run-choice{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0 4px}.run-choice>div{flex:1 1 280px}.run-choice .why{margin:6px 2px 0}.rich>:first-child{margin-top:0}.rich>:last-child{margin-bottom:0}.rich p{margin:0 0 8px;max-width:76ch}.rich ul{margin:0 0 8px;padding-left:20px}.rich li{margin:2px 0;max-width:74ch}.rich code{font-family:var(--mono);font-size:.92em;background:var(--bg-tint);border:1px solid var(--line);border-radius:5px;padding:0 4px;word-break:break-word}.rich pre{margin:6px 0 8px}.summary .rich{white-space:normal}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}select:disabled{cursor:not-allowed;opacity:.6}select optgroup,select option{background:var(--panel);color:var(--ink)}.top nav a{display:inline-flex;align-items:center;gap:6px}.top nav a .nav-icon{flex:none;opacity:.85}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 20px 60px rgba(0,0,0,.35);width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px}.modal h2{margin:0 0 10px;font-size:calc(16px * var(--scale))}.modal.danger h2{color:var(--bad)}.modal-body{white-space:pre-wrap;line-height:1.5;font-size:calc(14px * var(--scale))}.modal-actions{justify-content:flex-end;margin-top:16px}@media (max-width:600px){.wrap{padding:12px 10px 60px}.top{gap:8px;margin-bottom:12px;padding-bottom:10px}.top h1{font-size:calc(18px * var(--scale))}.top nav{width:100%;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}.top nav::-webkit-scrollbar{display:none}.top nav a{flex:none;padding:6px 9px;font-size:calc(13px * var(--scale))}.panel{padding:12px}.row{gap:8px}.row>input[type=text],.row>select,.row>textarea,.toolbar input[type=text],.toolbar select,.toolbar>div{width:100%;min-width:0;flex:1 1 100%}.row>button{flex:1 1 auto}select{min-width:0!important;width:100%}table{display:block;overflow-x:auto;white-space:nowrap}.counts{gap:6px}.count{flex-grow:1;flex-shrink:1;flex-basis:calc(50% - 6px)}.segmented{display:flex;width:100%}.segmented button{flex:1 1 auto}.flow>li{padding-left:18px}.modal{padding:14px}.log,pre{font-size:12px}}.run-fold{border-top:1px solid var(--line);padding:8px 0 4px}.run-fold:first-of-type{border-top:none}.run-fold>summary{cursor:pointer;list-style:none}.run-fold>summary::-webkit-details-marker{display:none}.run-fold>summary:before{content:"▸";display:inline-block;width:16px;color:var(--muted);transition:transform .15s}.run-fold[open]>summary:before{transform:rotate(90deg)}.run-fold>summary .run-heading{display:inline-block;width:calc(100% - 16px);vertical-align:top}.run-heading h2{font-size:calc(15px * var(--scale))}.exports{white-space:nowrap}.modal.wide{width:min(820px,100%)}.dir-tree-box{margin-top:8px}.dir-tree{list-style:none;margin:6px 0 0;padding-left:0}.dir-tree .dir-tree{padding-left:18px;border-left:1px dashed var(--line);margin-left:8px}.dir-row{display:flex;align-items:center;gap:4px;padding:1px 0}.dir-flip{width:20px;padding:0;border:none;color:var(--muted);font-size:12px}.dir-flip,.dir-name{background:transparent}.dir-name{border:1px solid transparent;padding:2px 8px 2px 6px;border-radius:6px;font-family:var(--mono);font-size:calc(12.5px * var(--scale));display:inline-flex;align-items:center;gap:6px}.dir-name:hover{border-color:var(--line-strong)}.dir-mark{display:inline-block;width:12px;text-align:center;color:var(--muted)}.dir.in>.dir-row .dir-name{background:var(--ok-soft);color:var(--ok);border-color:var(--ok)}.dir.inherited>.dir-row .dir-name{color:var(--ok)}.dir.out>.dir-row .dir-name{background:var(--bad-soft);color:var(--bad);border-color:var(--bad);text-decoration:line-through}.dir.out-inherited>.dir-row .dir-name{color:var(--muted);text-decoration:line-through}.dir-out{width:22px;height:22px;padding:0;border-radius:6px;font-size:13px;line-height:1;color:var(--muted)}.dir-out.on{color:var(--bad);border-color:var(--bad);background:var(--bad-soft)}.story-box{margin-top:8px;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;background:var(--code)}.story{list-style:none;margin:6px 0;padding:0}.story>li{border-left:3px solid var(--line-strong);padding:6px 10px;margin:6px 0}.story>li.sent{border-left-color:var(--accent)}.story>li.reply{border-left-color:var(--ok)}.story>li.story-step{border-left-color:var(--muted)}.story>li.failed{border-left-color:var(--bad);background:var(--bad-soft)}.story>li.story-review{border-left-color:var(--warn)}.story-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:calc(13px * var(--scale))}.story-cmd{margin:4px 0;color:var(--ink)}.story-cmd,.story-out{white-space:pre-wrap;word-break:break-word;font-size:calc(12px * var(--scale))}.story-out{margin:4px 0 0;max-height:420px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px}.story-out.always{max-height:260px}.story-notes{margin:4px 0;font-size:calc(13px * var(--scale))}.story-fixed{padding:8px 10px;border-radius:8px;background:var(--panel);border:1px solid var(--line);margin:6px 0}.story-fixed.close{border-color:var(--ok)}.story-fixed.close.failed{border-color:var(--bad);background:var(--bad-soft)}.option-inline{gap:6px}.option-inline,.story-box .live{display:inline-flex;align-items:center}.story-box .live{gap:4px;color:var(--ok);font-size:11px;font-weight:700;text-transform:uppercase}.story-box .live .dot,button .dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:live-pulse 1.6s ease-in-out infinite}button .dot{display:inline-block;margin-right:6px;vertical-align:middle}.info-dot{width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;font-size:calc(11px * var(--scale));font-style:italic;font-weight:700;line-height:1}.info-panel{flex-basis:100%;margin-top:6px}.info-panel dl{margin:6px 0 0}.info-panel dt{font-weight:600;margin-top:6px}.info-panel dd{margin:0 0 0 14px;opacity:.85}.flow .head .pick{margin:0 2px 0 0;flex:0 0 auto}.chip.inside{font-size:calc(10.5px * var(--scale));opacity:.85}.chip.inside.out{color:var(--bad);border-color:var(--bad)}.approval-banner{position:-webkit-sticky;position:sticky;top:0;z-index:30;background:var(--warn-soft);border:3px solid var(--warn);border-radius:var(--radius);padding:12px 14px 2px;margin:0 0 16px;box-shadow:0 6px 18px rgba(0,0,0,.18);max-height:70vh;overflow:auto}.approval-banner h2{margin:0 0 4px;color:var(--warn)}.approval-banner .approval{position:static;background:var(--bg);margin-bottom:10px}.approval-banner .approval button{font-size:calc(15px * var(--scale));padding:8px 14px}
1
+ :root{--bg:#fdf7f0;--bg-tint:#f7ead9;--panel:#fffdfb;--ink:#241a13;--muted:#7a6656;--line:#ecdcc9;--line-strong:#d8c3a9;--accent:#b4500b;--accent-ink:#fffaf5;--accent-soft:#fbe9d8;--ok:#2a6b45;--ok-soft:#e4f1e7;--warn:#8f5500;--warn-soft:#fbedd6;--bad:#a8271c;--bad-soft:#fbe6e2;--code:#f9efe3;--shadow:0 1px 2px rgba(74,45,20,0.06),0 6px 18px rgba(74,45,20,0.05);--radius:12px;--scale:1;--mono:ui-monospace,Consolas,"Cascadia Mono",monospace;--focus-width:2px}:root[data-theme=dark]{--bg:#17120f;--bg-tint:#221a15;--panel:#221b16;--ink:#f2e8df;--muted:#b6a493;--line:#3a2e26;--line-strong:#52412f;--accent:#ff9f45;--accent-ink:#2b1705;--accent-soft:#35251a;--ok:#7ed39f;--ok-soft:#1e2b22;--warn:#f0b96e;--warn-soft:#2f2417;--bad:#ff9081;--bad-soft:#33201d;--code:#1d1713;--shadow:0 1px 2px rgba(0,0,0,0.3),0 8px 24px rgba(0,0,0,0.25)}:root[data-contrast=high]{--ink:#000000;--muted:#4a3a2c;--line:#a88d6c;--line-strong:#6b5236;--accent:#8f3c00;--panel:#ffffff;--bg:#fff9f2;--ok:#17512f;--warn:#6b3f00;--bad:#8a1a11;--shadow:none}:root[data-theme=dark][data-contrast=high]{--ink:#ffffff;--muted:#e0cfbd;--line:#7d6650;--line-strong:#a88a6a;--accent:#ffc27a;--panel:#100c09;--bg:#000000;--code:#0a0705;--ok:#9ff0bd;--warn:#ffd08f;--bad:#ffb0a2;--shadow:none}:root[data-textsize=large]{--scale:1.12}:root[data-textsize=huge]{--scale:1.28}:root[data-focus=strong]{--focus-width:4px}*{box-sizing:border-box}body,html{margin:0;background:var(--bg);color:var(--ink);font:calc(15px * var(--scale)) /1.55 system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--accent);text-decoration:none}:root[data-links=underline] a,a:hover{text-decoration:underline}:focus-visible{outline:var(--focus-width) solid var(--accent);outline-offset:2px;border-radius:4px}:root[data-motion=reduced] *,:root[data-motion=reduced] :after,:root[data-motion=reduced] :before{transition:none!important;animation:none!important;scroll-behavior:auto!important}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:0 0 var(--radius) 0;z-index:10}.skip-link:focus{left:0}.wrap{max-width:1100px;margin:0 auto;padding:24px 16px 80px}.top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}.top h1{font-size:calc(21px * var(--scale));margin:0;letter-spacing:-.01em}.top h1 a{color:var(--accent)}.top nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.top nav a{color:var(--muted);padding:6px 10px;border-radius:999px;font-size:calc(14px * var(--scale))}.top nav a:hover{text-decoration:none}.top nav a:hover,.top nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.top nav a[aria-current=page]{font-weight:600}.top nav a .live{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:0 6px 0 4px;border-radius:999px;background:var(--ok-soft,var(--accent-soft));color:var(--ok,var(--accent));font-size:calc(10.5px * var(--scale));font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}.top nav a .live .dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:live-pulse 1.6s ease-in-out infinite}@keyframes live-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.75)}}.crumbs{color:var(--muted);font-size:calc(13px * var(--scale));margin-bottom:8px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px;box-shadow:var(--shadow)}.panel h2{font-size:calc(16px * var(--scale));margin:0 0 10px}.panel h3{font-size:calc(13px * var(--scale));margin:16px 0 6px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.grow{flex:1 1 auto}.muted{color:var(--muted)}.small{font-size:calc(13px * var(--scale))}input[type=text],select,textarea{width:100%;background:var(--code);color:var(--ink);border:1px solid var(--line-strong);border-radius:9px;padding:9px 11px;font:inherit}input[type=text]:focus,select:focus,textarea:focus{border-color:var(--accent)}textarea{min-height:110px;resize:vertical;font-family:var(--mono);font-size:calc(13px * var(--scale));line-height:1.5}textarea.prose{font-family:inherit;font-size:calc(14px * var(--scale))}label{display:block;font-size:calc(13px * var(--scale));color:var(--muted);margin:12px 0 4px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px}.option{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;background:var(--bg)}.option>label{display:flex;align-items:flex-start;gap:10px;margin:0;color:var(--ink);font-size:calc(14px * var(--scale));cursor:pointer}.option>label input{margin-top:3px;flex:none}.option .why{margin:6px 0 0 26px;color:var(--muted);font-size:calc(12.5px * var(--scale))}.option.warned{border-color:var(--warn);background:var(--warn-soft)}button{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:9px;padding:8px 13px;font:inherit;cursor:pointer;transition:background .12s ease,border-color .12s ease}button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:600}button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}button.danger{color:var(--bad);border-color:var(--bad)}button.danger:hover:not(:disabled){background:var(--bad-soft);border-color:var(--bad)}button.quiet{border-color:transparent;background:transparent;color:var(--muted)}button.quiet:hover:not(:disabled){color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}.badge{display:inline-block;font-size:calc(12px * var(--scale));padding:2px 9px;border-radius:999px;border:1px solid var(--line-strong);color:var(--muted);white-space:nowrap}.badge.running{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.badge.waiting-approval{color:var(--warn);border-color:var(--warn);background:var(--warn-soft)}.badge.done{color:var(--ok);border-color:var(--ok);background:var(--ok-soft)}.badge.blocked{color:var(--warn);border-color:var(--warn);background:var(--warn-soft)}.badge.aborted,.badge.failed,.badge.limit-reached{color:var(--bad);border-color:var(--bad);background:var(--bad-soft)}pre{background:var(--code);border:1px solid var(--line);border-radius:9px;padding:10px 12px;overflow:auto;font-family:var(--mono);font-size:calc(12.5px * var(--scale));line-height:1.5;margin:6px 0;white-space:pre-wrap;word-break:break-word}pre.tall{max-height:420px}details>summary{cursor:pointer;color:var(--muted);font-size:calc(13px * var(--scale));-webkit-user-select:none;-moz-user-select:none;user-select:none}details>summary:hover{color:var(--accent)}details[open]>summary{margin-bottom:6px}.task{border-left:4px solid var(--line-strong);padding-left:14px;margin-bottom:18px}.task.done{border-left-color:var(--ok)}.task.running,.task.waiting-approval{border-left-color:var(--accent)}.task.blocked{border-left-color:var(--warn)}.task.aborted,.task.failed,.task.limit-reached{border-left-color:var(--bad)}.task h4{margin:0 0 4px;font-size:calc(15px * var(--scale))}.task:target{background:var(--accent-soft);border-radius:0 10px 10px 0;padding:8px 8px 8px 14px}.summary{background:var(--ok-soft);border:1px solid var(--ok);border-radius:9px;padding:10px 12px;margin:8px 0;white-space:pre-wrap}.reason{color:var(--bad)}.approval{background:var(--warn-soft);border:2px solid var(--warn);border-radius:var(--radius);padding:12px 14px;margin-bottom:14px;position:-webkit-sticky;position:sticky;top:8px;z-index:2}.approval code{font-size:calc(13px * var(--scale))}.approval code,.log{font-family:var(--mono)}.log{font-size:calc(12.5px * var(--scale));max-height:320px;overflow:auto;background:var(--code);border:1px solid var(--line);border-radius:9px;padding:8px 10px}.log div{white-space:pre-wrap;word-break:break-word}.log .warn{color:var(--warn)}.log .error{color:var(--bad)}.log .time{color:var(--muted);margin-right:8px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:9px 6px;border-bottom:1px solid var(--line);font-size:calc(14px * var(--scale));vertical-align:top}th{color:var(--muted);font-weight:700;font-size:calc(12px * var(--scale));text-transform:uppercase;letter-spacing:.04em}.err{color:var(--bad);font-size:calc(13px * var(--scale))}.notice{border:1px solid var(--bad);background:var(--bad-soft);color:var(--ink);border-radius:10px;padding:10px 12px;margin:10px 0;font-size:calc(13.5px * var(--scale))}.notice strong{color:var(--bad)}.notice ul{margin:6px 0 0;padding-left:20px}.notice.caution{border-color:var(--warn);background:var(--warn-soft)}.notice.caution strong{color:var(--warn)}.notice.calm{border-color:var(--line-strong);background:var(--bg-tint)}.notice.calm strong{color:var(--ink)}.counts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:4px}.count{border:1px solid var(--line);border-radius:10px;padding:10px 14px;min-width:96px;background:var(--bg)}.count .n{font-size:calc(22px * var(--scale));font-weight:700;line-height:1.2}.count .k{color:var(--muted);font-size:calc(12px * var(--scale));text-transform:uppercase;letter-spacing:.04em}.count.done .n{color:var(--ok)}.count.failed .n{color:var(--bad)}.count.running .n{color:var(--accent)}.attempts{list-style:none;margin:6px 0 0;padding:0 0 0 12px;border-left:2px solid var(--line)}.attempts>li{margin:0 0 10px}.attempts .head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.attempts .when{color:var(--muted);font-size:calc(12.5px * var(--scale))}.attempts .what{margin:4px 0 0}.count.queued .n{color:var(--accent)}.flow{list-style:none;margin:8px 0 0;padding:0}.flow>li{position:relative;padding:10px 0 14px 28px;border-left:2px solid var(--line);margin-left:7px}.flow>li:last-child{border-left-color:transparent}.flow>li:before{content:"";position:absolute;left:-9px;top:16px;width:16px;height:16px;border-radius:50%;background:var(--panel);border:3px solid var(--line-strong)}.flow>li.done:before{border-color:var(--ok);background:var(--ok)}.flow>li.running:before,.flow>li.waiting-approval:before{border-color:var(--accent);background:var(--accent)}.flow>li.aborted:before,.flow>li.failed:before,.flow>li.limit-reached:before{border-color:var(--bad);background:var(--bad)}.flow>li.queued:before{border-color:var(--line-strong);background:var(--panel)}.flow>li.next:before{border-color:var(--accent);background:var(--panel);box-shadow:0 0 0 4px var(--accent-soft)}.flow .when{color:var(--muted);font-size:calc(12.5px * var(--scale))}.flow .what{margin:4px 0 0}.flow .head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.flow .head strong{font-size:calc(14.5px * var(--scale))}.chip{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:1px 9px;font-size:calc(12px * var(--scale));color:var(--muted);background:var(--bg-tint)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.toolbar input[type=text],.toolbar select{width:auto;min-width:150px}.segmented{display:inline-flex;border:1px solid var(--line-strong);border-radius:9px;overflow:hidden}.segmented button{border:none;border-radius:0;border-right:1px solid var(--line)}.segmented button:last-child{border-right:none}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);font-weight:600}.button-link{display:inline-block;background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:9px;padding:8px 13px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.button-link:hover{filter:brightness(1.08);text-decoration:none}.button-link+.button-link{background:var(--panel);color:var(--ink);border-color:var(--line-strong);font-weight:400}.button-link+.button-link:hover{background:var(--accent-soft);border-color:var(--accent);filter:none}.empty{color:var(--muted);padding:14px 0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.dropzone{border:2px dashed var(--line-strong);border-radius:12px;padding:10px;background:var(--bg-tint)}.dropzone.active{border-color:var(--accent);background:var(--accent-soft)}.dropzone textarea{margin:0}.dropzone p{margin:8px 2px 2px}.batch-row td{vertical-align:middle}.batch-row.running{background:var(--accent-soft)}.run-order{list-style:decimal;margin:10px 0 4px;padding-left:28px}.run-order li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}.run-order button{padding:2px 8px;margin-left:4px}.linkish{background:none;border:0;padding:0;margin:0;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline}.linkish:hover{filter:brightness(1.15)}.run-choice{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0 4px}.run-choice>div{flex:1 1 280px}.run-choice .why{margin:6px 2px 0}.rich>:first-child{margin-top:0}.rich>:last-child{margin-bottom:0}.rich p{margin:0 0 8px;max-width:76ch}.rich ul{margin:0 0 8px;padding-left:20px}.rich li{margin:2px 0;max-width:74ch}.rich code{font-family:var(--mono);font-size:.92em;background:var(--bg-tint);border:1px solid var(--line);border-radius:5px;padding:0 4px;word-break:break-word}.rich pre{margin:6px 0 8px}.summary .rich{white-space:normal}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}select:disabled{cursor:not-allowed;opacity:.6}select optgroup,select option{background:var(--panel);color:var(--ink)}.top nav a{display:inline-flex;align-items:center;gap:6px}.top nav a .nav-icon{flex:none;opacity:.85}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:50}.modal{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 20px 60px rgba(0,0,0,.35);width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px}.modal h2{margin:0 0 10px;font-size:calc(16px * var(--scale))}.modal.danger h2{color:var(--bad)}.modal-body{white-space:pre-wrap;line-height:1.5;font-size:calc(14px * var(--scale))}.modal-actions{justify-content:flex-end;margin-top:16px}@media (max-width:600px){.wrap{padding:12px 10px 60px}.top{gap:8px;margin-bottom:12px;padding-bottom:10px}.top h1{font-size:calc(18px * var(--scale))}.top nav{width:100%;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}.top nav::-webkit-scrollbar{display:none}.top nav a{flex:none;padding:6px 9px;font-size:calc(13px * var(--scale))}.panel{padding:12px}.row{gap:8px}.row>input[type=text],.row>select,.row>textarea,.toolbar input[type=text],.toolbar select,.toolbar>div{width:100%;min-width:0;flex:1 1 100%}.row>button{flex:1 1 auto}select{min-width:0!important;width:100%}table{display:block;overflow-x:auto;white-space:nowrap}.counts{gap:6px}.count{flex-grow:1;flex-shrink:1;flex-basis:calc(50% - 6px)}.segmented{display:flex;width:100%}.segmented button{flex:1 1 auto}.flow>li{padding-left:18px}.modal{padding:14px}.log,pre{font-size:12px}}.run-fold{border-top:1px solid var(--line);padding:8px 0 4px}.run-fold:first-of-type{border-top:none}.run-fold>summary{cursor:pointer;list-style:none}.run-fold>summary::-webkit-details-marker{display:none}.run-fold>summary:before{content:"▸";display:inline-block;width:16px;color:var(--muted);transition:transform .15s}.run-fold[open]>summary:before{transform:rotate(90deg)}.run-fold>summary .run-heading{display:inline-block;width:calc(100% - 16px);vertical-align:top}.run-heading h2{font-size:calc(15px * var(--scale))}.exports{white-space:nowrap}.modal.wide{width:min(820px,100%)}.dir-tree-box{margin-top:8px}.dir-tree{list-style:none;margin:6px 0 0;padding-left:0}.dir-tree .dir-tree{padding-left:18px;border-left:1px dashed var(--line);margin-left:8px}.dir-row{display:flex;align-items:center;gap:4px;padding:1px 0}.dir-flip{width:20px;padding:0;border:none;color:var(--muted);font-size:12px}.dir-flip,.dir-name{background:transparent}.dir-name{border:1px solid transparent;padding:2px 8px 2px 6px;border-radius:6px;font-family:var(--mono);font-size:calc(12.5px * var(--scale));display:inline-flex;align-items:center;gap:6px}.dir-name:hover{border-color:var(--line-strong)}.dir-mark{display:inline-block;width:12px;text-align:center;color:var(--muted)}.dir.in>.dir-row .dir-name{background:var(--ok-soft);color:var(--ok);border-color:var(--ok)}.dir.inherited>.dir-row .dir-name{color:var(--ok)}.dir.out>.dir-row .dir-name{background:var(--bad-soft);color:var(--bad);border-color:var(--bad);text-decoration:line-through}.dir.out-inherited>.dir-row .dir-name{color:var(--muted);text-decoration:line-through}.dir-out{width:22px;height:22px;padding:0;border-radius:6px;font-size:13px;line-height:1;color:var(--muted)}.dir-out.on{color:var(--bad);border-color:var(--bad);background:var(--bad-soft)}.story-box{margin-top:8px;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;background:var(--code)}.story{list-style:none;margin:6px 0;padding:0}.story>li{border-left:3px solid var(--line-strong);padding:6px 10px;margin:6px 0}.story>li.sent{border-left-color:var(--accent)}.story>li.reply{border-left-color:var(--ok)}.story>li.story-step{border-left-color:var(--muted)}.story>li.failed{border-left-color:var(--bad);background:var(--bad-soft)}.story>li.story-review{border-left-color:var(--warn)}.story-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:calc(13px * var(--scale))}.story-cmd{margin:4px 0;color:var(--ink)}.story-cmd,.story-out{white-space:pre-wrap;word-break:break-word;font-size:calc(12px * var(--scale))}.story-out{margin:4px 0 0;max-height:420px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px}.story-out.always{max-height:260px}.story-scroll.live{max-height:65vh;overflow:auto;overscroll-behavior:contain}.story-out.terminal{max-height:45vh;overscroll-behavior:contain}.scroll-jump{position:fixed;right:16px;bottom:24px;display:flex;flex-direction:column;gap:8px;z-index:40}.scroll-jump button{width:42px;height:42px;border-radius:50%;padding:0;font-size:20px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.18)}.story-notes{margin:4px 0;font-size:calc(13px * var(--scale))}.story-fixed{padding:8px 10px;border-radius:8px;background:var(--panel);border:1px solid var(--line);margin:6px 0}.story-fixed.close{border-color:var(--ok)}.story-fixed.close.failed{border-color:var(--bad);background:var(--bad-soft)}.option-inline{gap:6px}.option-inline,.story-box .live{display:inline-flex;align-items:center}.story-box .live{gap:4px;color:var(--ok);font-size:11px;font-weight:700;text-transform:uppercase}.story-box .live .dot,button .dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:live-pulse 1.6s ease-in-out infinite}button .dot{display:inline-block;margin-right:6px;vertical-align:middle}.info-dot{width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;font-size:calc(11px * var(--scale));font-style:italic;font-weight:700;line-height:1}.info-panel{flex-basis:100%;margin-top:6px}.info-panel dl{margin:6px 0 0}.info-panel dt{font-weight:600;margin-top:6px}.info-panel dd{margin:0 0 0 14px;opacity:.85}.flow .head .pick{margin:0 2px 0 0;flex:0 0 auto}.chip.inside{font-size:calc(10.5px * var(--scale));opacity:.85}.chip.inside.out{color:var(--bad);border-color:var(--bad)}.approval-banner{position:-webkit-sticky;position:sticky;top:0;z-index:30;background:var(--warn-soft);border:3px solid var(--warn);border-radius:var(--radius);padding:12px 14px 2px;margin:0 0 16px;box-shadow:0 6px 18px rgba(0,0,0,.18);max-height:70vh;overflow:auto}.approval-banner h2{margin:0 0 4px;color:var(--warn)}.approval-banner .approval{position:static;background:var(--bg);margin-bottom:10px}.approval-banner .approval button{font-size:calc(15px * var(--scale));padding:8px 14px}
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--p9lexLS0u8W5N6VzLavHO--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/5a10c60adf9c5336.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/197-f7c33a0114fc3db3.js" async=""></script><script src="/_next/static/chunks/867-f0e3e152f6f67e45.js" async=""></script><script src="/_next/static/chunks/549-2086c05135bc9753.js" async=""></script><script src="/_next/static/chunks/app/layout-92fa876afe619cf3.js" async=""></script><script src="/_next/static/chunks/app/appearance/page-501842e7aeac7f6b.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>
1
+ <!DOCTYPE html><!--WJ_8hRZsp4VWiDZx8NMUw--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/63fea96806e6b2cb.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/197-f7c33a0114fc3db3.js" async=""></script><script src="/_next/static/chunks/867-fc983d08916b4e28.js" async=""></script><script src="/_next/static/chunks/549-afafecd6bfbb138e.js" async=""></script><script src="/_next/static/chunks/app/layout-e0174d863960f109.js" async=""></script><script src="/_next/static/chunks/app/appearance/page-501842e7aeac7f6b.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>
2
2
  (function () {
3
3
  try {
4
4
  var d = document.documentElement;
@@ -12,4 +12,4 @@
12
12
  d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
13
13
  } catch (e) {}
14
14
  })();
15
- </script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a aria-current="page" href="/appearance"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></svg><span>Appearance</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><select aria-label="Language" style="width:auto"><option value="en" selected="">English</option><option value="bg">Български</option></select></nav></header><main id="main"><div class="panel"><h2>Appearance</h2><p class="muted small">Kept in this browser only. Nothing here is sent anywhere or shared with another machine.</p><h3>Theme</h3><div class="segmented" role="group" aria-label="Theme"><button type="button" aria-pressed="false">Light</button><button type="button" aria-pressed="false">Dark</button></div><p class="muted small" style="margin-top:6px">Warm light for a bright room, warm dark for a dim one.</p></div><div class="panel"><h2>Accessibility</h2><p class="muted small">Each of these can be turned on by itself; they are independent of the theme and of the language.</p><h3>Text size</h3><div class="segmented" role="group" aria-label="Text size"><button type="button" aria-pressed="false">Normal</button><button type="button" aria-pressed="false">Large</button><button type="button" aria-pressed="false">Largest</button></div><p class="muted small" style="margin-top:6px">Scales the whole interface, not only the body text.</p><div class="option"><label><input type="checkbox"/><span>Higher contrast</span></label><p class="why">Stronger borders and darker text. Drops some of the warmth in exchange for legibility.</p></div><div class="option"><label><input type="checkbox"/><span>Less motion</span></label><p class="why">No transitions, and the live log stops scrolling itself while a run is in progress.</p></div><div class="option"><label><input type="checkbox"/><span>Underline every link</span></label><p class="why">Links stop relying on colour alone to be recognisable.</p></div><div class="option"><label><input type="checkbox"/><span>Thick focus outline</span></label><p class="why">Makes what the keyboard is on impossible to lose, when tabbing through a page.</p></div><div class="row" style="margin-top:12px"><button>Back to the defaults</button></div></div><div class="panel"><h2>How it looks</h2><p class="small">A task that ended with a summary, one waiting for approval, and a link.<!-- --> <a href="#main">a link in a sentence</a></p><div class="row"><span class="badge done">done</span><span class="badge running">running</span><span class="badge waiting-approval">waiting for approval</span><span class="badge failed">failed</span></div><div class="summary" style="margin-top:10px"><strong>What was done</strong><div>A task that ended with a summary, one waiting for approval, and a link.</div></div><div class="row"><button class="primary">Run</button><button>Skip</button><button class="danger">Abort task</button></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1205,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"themeScript\"]\n3:I[1205,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"AppearanceProvider\"]\n4:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"LanguageProvider\"]\n5:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"DialogHost\"]\n6:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"SkipLink\"]\n7:I[8197,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"\"]\n8:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"Nav\"]\n9:I[6657,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"549\",\"static/chunks/549-2086c05135bc9753.js\",\"177\",\"static/chunks/app/layout-92fa876afe619cf3.js\"],\"GlobalApprovals\"]\na:I[5204,[],\"\"]\nb:I[2642,[],\"\"]\nc:I[7089,[],\"ClientPageRoot\"]\nd:I[4585,[\"867\",\"static/chunks/867-f0e3e152f6f67e45.js\",\"429\",\"static/chunks/app/appearance/page-501842e7aeac7f6b.js\"],\"default\"]\n10:I[433,[],\"OutletBoundary\"]\n12:I[9884,[],\"AsyncMetadataOutlet\"]\n14:I[433,[],\"ViewportBoundary\"]\n16:I[433,"])</script><script>self.__next_f.push([1,"[],\"MetadataBoundary\"]\n17:\"$Sreact.suspense\"\n19:I[3536,[],\"\"]\n:HL[\"/_next/static/css/5a10c60adf9c5336.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"p9lexLS0u8W5N6VzLavHO\",\"p\":\"\",\"c\":[\"\",\"appearance\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"appearance\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5a10c60adf9c5336.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{}],[\"$\",\"div\",null,{\"className\":\"wrap\",\"children\":[[\"$\",\"header\",null,{\"className\":\"top\",\"children\":[[\"$\",\"h1\",null,{\"children\":[\"$\",\"$L7\",null,{\"href\":\"/\",\"children\":\"copilot-operator\"}]}],[\"$\",\"$L8\",null,{}]]}],[\"$\",\"$L9\",null,{}],[\"$\",\"main\",null,{\"id\":\"main\",\"children\":[\"$\",\"$La\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lb\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}]}]}]}]]}]]}],{\"children\":[\"appearance\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$La\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lb\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lc\",null,{\"Component\":\"$d\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@e\",\"$@f\"]}],null,[\"$\",\"$L10\",null,{\"children\":[\"$L11\",[\"$\",\"$L12\",null,{\"promise\":\"$@13\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],null],[\"$\",\"$L16\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$17\",null,{\"fallback\":null,\"children\":\"$L18\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$19\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"e:{}\nf:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:null\n"])</script><script>self.__next_f.push([1,"13:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"18:\"$13:metadata\"\n"])</script></body></html>
15
+ </script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a aria-current="page" href="/appearance"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></svg><span>Appearance</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><select aria-label="Language" style="width:auto"><option value="en" selected="">English</option><option value="bg">Български</option></select></nav></header><main id="main"><div class="panel"><h2>Appearance</h2><p class="muted small">Kept in this browser only. Nothing here is sent anywhere or shared with another machine.</p><h3>Theme</h3><div class="segmented" role="group" aria-label="Theme"><button type="button" aria-pressed="false">Light</button><button type="button" aria-pressed="false">Dark</button></div><p class="muted small" style="margin-top:6px">Warm light for a bright room, warm dark for a dim one.</p></div><div class="panel"><h2>Accessibility</h2><p class="muted small">Each of these can be turned on by itself; they are independent of the theme and of the language.</p><h3>Text size</h3><div class="segmented" role="group" aria-label="Text size"><button type="button" aria-pressed="false">Normal</button><button type="button" aria-pressed="false">Large</button><button type="button" aria-pressed="false">Largest</button></div><p class="muted small" style="margin-top:6px">Scales the whole interface, not only the body text.</p><div class="option"><label><input type="checkbox"/><span>Higher contrast</span></label><p class="why">Stronger borders and darker text. Drops some of the warmth in exchange for legibility.</p></div><div class="option"><label><input type="checkbox"/><span>Less motion</span></label><p class="why">No transitions, and the live log stops scrolling itself while a run is in progress.</p></div><div class="option"><label><input type="checkbox"/><span>Underline every link</span></label><p class="why">Links stop relying on colour alone to be recognisable.</p></div><div class="option"><label><input type="checkbox"/><span>Thick focus outline</span></label><p class="why">Makes what the keyboard is on impossible to lose, when tabbing through a page.</p></div><div class="row" style="margin-top:12px"><button>Back to the defaults</button></div></div><div class="panel"><h2>How it looks</h2><p class="small">A task that ended with a summary, one waiting for approval, and a link.<!-- --> <a href="#main">a link in a sentence</a></p><div class="row"><span class="badge done">done</span><span class="badge running">running</span><span class="badge waiting-approval">waiting for approval</span><span class="badge failed">failed</span></div><div class="summary" style="margin-top:10px"><strong>What was done</strong><div>A task that ended with a summary, one waiting for approval, and a link.</div></div><div class="row"><button class="primary">Run</button><button>Skip</button><button class="danger">Abort task</button></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1205,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"themeScript\"]\n3:I[1205,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"AppearanceProvider\"]\n4:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"LanguageProvider\"]\n5:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"DialogHost\"]\n6:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"SkipLink\"]\n7:I[8197,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"\"]\n8:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"Nav\"]\n9:I[6657,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"GlobalApprovals\"]\na:I[5204,[],\"\"]\nb:I[2642,[],\"\"]\nc:I[7712,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-fc983d08916b4e28.js\",\"549\",\"static/chunks/549-afafecd6bfbb138e.js\",\"177\",\"static/chunks/app/layout-e0174d863960f109.js\"],\"ScrollJump\"]\nd:I[7089,[],\"ClientPageRoot\"]\ne:I[4585,[\"867\",\"stat"])</script><script>self.__next_f.push([1,"ic/chunks/867-fc983d08916b4e28.js\",\"429\",\"static/chunks/app/appearance/page-501842e7aeac7f6b.js\"],\"default\"]\n11:I[433,[],\"OutletBoundary\"]\n13:I[9884,[],\"AsyncMetadataOutlet\"]\n15:I[433,[],\"ViewportBoundary\"]\n17:I[433,[],\"MetadataBoundary\"]\n18:\"$Sreact.suspense\"\n1a:I[3536,[],\"\"]\n:HL[\"/_next/static/css/63fea96806e6b2cb.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"WJ_8hRZsp4VWiDZx8NMUw\",\"p\":\"\",\"c\":[\"\",\"appearance\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"appearance\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/63fea96806e6b2cb.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"children\":[[\"$\",\"$L6\",null,{}],[\"$\",\"div\",null,{\"className\":\"wrap\",\"children\":[[\"$\",\"header\",null,{\"className\":\"top\",\"children\":[[\"$\",\"h1\",null,{\"children\":[\"$\",\"$L7\",null,{\"href\":\"/\",\"children\":\"copilot-operator\"}]}],[\"$\",\"$L8\",null,{}]]}],[\"$\",\"$L9\",null,{}],[\"$\",\"main\",null,{\"id\":\"main\",\"children\":[\"$\",\"$La\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lb\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],[\"$\",\"$Lc\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"appearance\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$La\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Lb\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Ld\",null,{\"Component\":\"$e\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@f\",\"$@10\"]}],null,[\"$\",\"$L11\",null,{\"children\":[\"$L12\",[\"$\",\"$L13\",null,{\"promise\":\"$@14\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L15\",null,{\"children\":\"$L16\"}],null],[\"$\",\"$L17\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$18\",null,{\"fallback\":null,\"children\":\"$L19\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$1a\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:{}\n10:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"16:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n12:null\n"])</script><script>self.__next_f.push([1,"14:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"19:\"$14:metadata\"\n"])</script></body></html>
@@ -1,27 +1,28 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[1205,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"themeScript"]
3
- 3:I[1205,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"AppearanceProvider"]
4
- 4:I[867,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"LanguageProvider"]
5
- 5:I[1035,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"DialogHost"]
6
- 6:I[8214,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"SkipLink"]
7
- 7:I[8197,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],""]
8
- 8:I[8214,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"Nav"]
9
- 9:I[6657,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-f0e3e152f6f67e45.js","549","static/chunks/549-2086c05135bc9753.js","177","static/chunks/app/layout-92fa876afe619cf3.js"],"GlobalApprovals"]
2
+ 2:I[1205,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"themeScript"]
3
+ 3:I[1205,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"AppearanceProvider"]
4
+ 4:I[867,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"LanguageProvider"]
5
+ 5:I[1035,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"DialogHost"]
6
+ 6:I[8214,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"SkipLink"]
7
+ 7:I[8197,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],""]
8
+ 8:I[8214,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"Nav"]
9
+ 9:I[6657,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"GlobalApprovals"]
10
10
  a:I[5204,[],""]
11
11
  b:I[2642,[],""]
12
- c:I[7089,[],"ClientPageRoot"]
13
- d:I[4585,["867","static/chunks/867-f0e3e152f6f67e45.js","429","static/chunks/app/appearance/page-501842e7aeac7f6b.js"],"default"]
14
- 10:I[433,[],"OutletBoundary"]
15
- 12:I[9884,[],"AsyncMetadataOutlet"]
16
- 14:I[433,[],"ViewportBoundary"]
17
- 16:I[433,[],"MetadataBoundary"]
18
- 17:"$Sreact.suspense"
19
- 19:I[3536,[],""]
20
- :HL["/_next/static/css/5a10c60adf9c5336.css","style"]
21
- 0:{"P":null,"b":"p9lexLS0u8W5N6VzLavHO","p":"","c":["","appearance"],"i":false,"f":[[["",{"children":["appearance",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5a10c60adf9c5336.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"data-theme":"light","data-textsize":"normal","data-contrast":"normal","data-motion":"normal","data-links":"plain","data-focus":"normal","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}]}],["$","body",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":[["$","$L6",null,{}],["$","div",null,{"className":"wrap","children":[["$","header",null,{"className":"top","children":[["$","h1",null,{"children":["$","$L7",null,{"href":"/","children":"copilot-operator"}]}],["$","$L8",null,{}]]}],["$","$L9",null,{}],["$","main",null,{"id":"main","children":["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}]}]}]}]]}]]}],{"children":["appearance",["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lc",null,{"Component":"$d","searchParams":{},"params":{},"promises":["$@e","$@f"]}],null,["$","$L10",null,{"children":["$L11",["$","$L12",null,{"promise":"$@13"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L14",null,{"children":"$L15"}],null],["$","$L16",null,{"children":["$","div",null,{"hidden":true,"children":["$","$17",null,{"fallback":null,"children":"$L18"}]}]}]]}],false]],"m":"$undefined","G":["$19",[]],"s":false,"S":true}
22
- e:{}
23
- f:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
24
- 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
25
- 11:null
26
- 13:{"metadata":[["$","title","0",{"children":"copilot-operator"}],["$","meta","1",{"name":"description","content":"Runs task loops with Microsoft 365 Copilot on this machine."}]],"error":null,"digest":"$undefined"}
27
- 18:"$13:metadata"
12
+ c:I[7712,["197","static/chunks/197-f7c33a0114fc3db3.js","867","static/chunks/867-fc983d08916b4e28.js","549","static/chunks/549-afafecd6bfbb138e.js","177","static/chunks/app/layout-e0174d863960f109.js"],"ScrollJump"]
13
+ d:I[7089,[],"ClientPageRoot"]
14
+ e:I[4585,["867","static/chunks/867-fc983d08916b4e28.js","429","static/chunks/app/appearance/page-501842e7aeac7f6b.js"],"default"]
15
+ 11:I[433,[],"OutletBoundary"]
16
+ 13:I[9884,[],"AsyncMetadataOutlet"]
17
+ 15:I[433,[],"ViewportBoundary"]
18
+ 17:I[433,[],"MetadataBoundary"]
19
+ 18:"$Sreact.suspense"
20
+ 1a:I[3536,[],""]
21
+ :HL["/_next/static/css/63fea96806e6b2cb.css","style"]
22
+ 0:{"P":null,"b":"WJ_8hRZsp4VWiDZx8NMUw","p":"","c":["","appearance"],"i":false,"f":[[["",{"children":["appearance",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/63fea96806e6b2cb.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"data-theme":"light","data-textsize":"normal","data-contrast":"normal","data-motion":"normal","data-links":"plain","data-focus":"normal","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}]}],["$","body",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":[["$","$L6",null,{}],["$","div",null,{"className":"wrap","children":[["$","header",null,{"className":"top","children":[["$","h1",null,{"children":["$","$L7",null,{"href":"/","children":"copilot-operator"}]}],["$","$L8",null,{}]]}],["$","$L9",null,{}],["$","main",null,{"id":"main","children":["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],["$","$Lc",null,{}]]}]}]}]}]]}]]}],{"children":["appearance",["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$Lb",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Ld",null,{"Component":"$e","searchParams":{},"params":{},"promises":["$@f","$@10"]}],null,["$","$L11",null,{"children":["$L12",["$","$L13",null,{"promise":"$@14"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L15",null,{"children":"$L16"}],null],["$","$L17",null,{"children":["$","div",null,{"hidden":true,"children":["$","$18",null,{"fallback":null,"children":"$L19"}]}]}]]}],false]],"m":"$undefined","G":["$1a",[]],"s":false,"S":true}
23
+ f:{}
24
+ 10:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
25
+ 16:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
26
+ 12:null
27
+ 14:{"metadata":[["$","title","0",{"children":"copilot-operator"}],["$","meta","1",{"name":"description","content":"Runs task loops with Microsoft 365 Copilot on this machine."}]],"error":null,"digest":"$undefined"}
28
+ 19:"$14:metadata"