copilot-operator 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/operator.service.js +30 -1
- package/dist/src/cli.js +11 -8
- package/dist/src/orchestrator/taskRunner.js +29 -1
- package/dist/src/plan/systemGuide.js +24 -0
- package/dist/src/transport/copilotTransport.js +47 -18
- package/dist/src/transport/locators.js +7 -2
- package/dist/src/transport/modelMatch.js +12 -1
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/867-562abd8d5f8c3dc8.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-df7bec3acad93f15.js +1 -0
- package/dist/web/appearance.html +2 -2
- package/dist/web/appearance.txt +10 -10
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +10 -10
- package/dist/web/history.html +2 -2
- package/dist/web/history.txt +10 -10
- package/dist/web/import.html +2 -2
- package/dist/web/import.txt +10 -10
- package/dist/web/index.html +2 -2
- package/dist/web/index.txt +10 -10
- package/dist/web/level1.html +2 -2
- package/dist/web/level1.txt +10 -10
- package/dist/web/presets.html +2 -2
- package/dist/web/presets.txt +10 -10
- package/dist/web/sessions/view.html +2 -2
- package/dist/web/sessions/view.txt +10 -10
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +10 -10
- package/package.json +2 -1
- package/dist/web/_next/static/chunks/867-dfaaa8047cbf2fc2.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-3efbb282292ccc38.js +0 -1
- /package/dist/web/_next/static/{pfa56tOBq6o-WBQZnyUn2 → k4MMPCGaEGVTHKLfTmYlf}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{pfa56tOBq6o-WBQZnyUn2 → k4MMPCGaEGVTHKLfTmYlf}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{952:()=>{},1035:(e,t,n)=>{"use strict";n.d(t,{DialogHost:()=>d,Z:()=>c});var r=n(3365),a=n(1521),l=n(867),o=n(4969);let s=null,i=[];function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(n=>{var r;return r={kind:"confirm",message:e,...t,resolve:n},void(s?s(r):i.push(r))})}function d(e){var t,n;let{children:c}=e,{t:d}=(0,l.kj)(),[u,h]=(0,a.useState)([]),m=(0,a.useRef)(null),v=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(s=e=>h(t=>[...t,e]),i.length>0){let e=i.splice(0,i.length);h(t=>[...t,...e])}return()=>{s=null}},[]);let p=u[0],f=(0,a.useCallback)(e=>{p&&(p.resolve(e),h(e=>e.slice(1)))},[p]);return(0,o.V)(v,!!p,m),(0,a.useEffect)(()=>{if(!p)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),f(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[p,f]),(0,r.jsxs)(r.Fragment,{children:[c,p&&(0,r.jsx)("div",{className:"modal-backdrop",onClick:()=>f(!1),role:"presentation",children:(0,r.jsxs)("div",{ref:v,className:"modal".concat(p.danger?" danger":""),role:"confirm"===p.kind?"alertdialog":"dialog","aria-modal":"true","aria-labelledby":"modal-title","aria-describedby":"modal-body",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("h2",{id:"modal-title",children:null!=(t=p.title)?t:d("confirm"===p.kind?"dialog.confirmTitle":"dialog.noticeTitle")}),(0,r.jsx)("div",{id:"modal-body",className:"modal-body",children:p.message}),(0,r.jsxs)("div",{className:"row modal-actions",children:["confirm"===p.kind&&(0,r.jsx)("button",{type:"button",className:"quiet",onClick:()=>f(!1),children:d("dialog.cancel")}),(0,r.jsx)("button",{ref:m,type:"button",className:p.danger?"danger":"primary",onClick:()=>f(!0),children:null!=(n=p.okLabel)?n:d("dialog.ok")})]})]})})]})}},1702:(e,t,n)=>{"use strict";var r=n(9962);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},4969:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(1521);let a='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function l(e,t,n){(0,r.useEffect)(()=>{var r,l;if(!t)return;let o=document.activeElement instanceof HTMLElement?document.activeElement:null,s=e.current,i=null!=(l=null!=(r=null==n?void 0:n.current)?r:null==s?void 0:s.querySelector(a))?l:null;null==i||i.focus();let c=e=>{if("Tab"!==e.key||!s)return;let t=Array.from(s.querySelectorAll(a)).filter(e=>null!==e.offsetParent);if(0===t.length)return;let n=t[0],r=t[t.length-1],l=s.contains(document.activeElement);e.shiftKey&&(document.activeElement===n||!l)?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r&&l||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c),o&&document.contains(o)&&o.focus()}},[e,t,n])}},5924:(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,8078)),Promise.resolve().then(n.bind(n,867))},6657:(e,t,n)=>{"use strict";n.d(t,{GlobalApprovals:()=>u});var r=n(3365),a=n(1521),l=n(8197),o=n.n(l),s=n(5549),i=n(867),c=n(1035),d=n(7527);function u(){let{t:e}=(0,i.kj)(),[t,n]=(0,a.useState)([]),[l,o]=(0,a.useState)({}),c=(0,a.useRef)({}),u=(0,a.useRef)(""),m=(0,a.useCallback)(async()=>{try{let e=await s.FH.approvals();n(e);let t=[...new Set(e.map(e=>e.sessionId).filter(e=>!(e in c.current)))],r=t.sort().join(",");if(t.length>0&&r!==u.current){for(let e of(u.current=r,await s.FH.sessions().catch(()=>[])))c.current[e.id]=e.name;o({...c.current})}}catch(e){}},[]);return((0,d.z)(m,2e3),(0,a.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,r.jsxs)("section",{className:"approval-banner",role:"alert","aria-live":"assertive",children:[(0,r.jsx)("h2",{children:e("approval.waitingHere")}),(0,r.jsx)("p",{className:"small",children:e("approval.waitingHereWhy")}),t.map(e=>{var t;return(0,r.jsx)(h,{approval:e,sessionName:null!=(t=l[e.sessionId])?t:e.sessionId,onDecided:()=>void m()},e.id)})]})}function h(e){let{approval:t,sessionName:n,onDecided:l}=e,{t:d}=(0,i.kj)(),u=(0,i.W3)(),[h,m]=(0,a.useState)(!1),[v,p]=(0,a.useState)(""),f=(0,a.useRef)(!1),k=async e=>{if(!f.current&&("run-all"!==e||await (0,c.Z)(d("approval.runAllConfirm")))){f.current=!0,m(!0),p("");try{await s.FH.decide(t.id,e)}catch(e){p(e.message)}finally{f.current=!1,m(!1),l()}}};return(0,r.jsxs)("div",{className:"approval",children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("strong",{children:d("approval.title",{n:t.stepId})}),(0,r.jsx)(o(),{href:(0,s.aT)(t.sessionId),children:n}),(0,r.jsx)("span",{className:"muted small",children:u(t.createdAt)})]}),(0,r.jsx)("pre",{style:{margin:"8px 0"},children:t.description}),t.network&&(0,r.jsx)("p",{className:"reason small",children:d("approval.network")}),v&&(0,r.jsx)("p",{className:"err",role:"alert",children:v}),(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("button",{className:"primary",disabled:h,onClick:()=>void k("run"),children:d("approval.run")}),!t.network&&(0,r.jsx)("button",{disabled:h,onClick:()=>void k("run-all"),title:d("approval.runAllWhy"),children:d("approval.runAll")}),(0,r.jsx)("button",{disabled:h,onClick:()=>void k("skip"),children:d("approval.skip")}),(0,r.jsx)("button",{className:"danger",disabled:h,onClick:()=>void k("abort"),children:d("approval.abort")})]})]})}},7527:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var r=n(1521);function a(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,r.useRef)(e);a.current=e,(0,r.useEffect)(()=>{let e;if(!n)return;let r=!1,l=async()=>{try{await a.current()}catch(e){}finally{r||(e=setTimeout(()=>void l(),t))}};return l(),()=>{r=!0,e&&clearTimeout(e)}},[t,n])}},7712:(e,t,n)=>{"use strict";n.d(t,{ScrollJump:()=>o});var r=n(3365),a=n(1521),l=n(867);function o(){let{t:e}=(0,l.kj)(),[t,n]=(0,a.useState)({long:!1,atTop:!0,atBottom:!1});return((0,a.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,r.jsxs)("div",{className:"scroll-jump",children:[!t.atTop&&(0,r.jsx)("button",{type:"button","aria-label":e("scroll.top"),title:e("scroll.top"),onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"↑"}),!t.atBottom&&(0,r.jsx)("button",{type:"button","aria-label":e("scroll.bottom"),title:e("scroll.bottom"),onClick:()=>window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"}),children:"↓"})]}):null}},8078:(e,t,n)=>{"use strict";n.d(t,{AppearanceProvider:()=>d,KP:()=>u});var r=n(3365),a=n(1521);let l="cop.appearance",o=["small","normal","large","huge","giant"];"\n(function () {\n try {\n var d = document.documentElement;\n var raw = localStorage.getItem('".concat(l,"');\n var a = raw ? JSON.parse(raw) : {};\n if (!a || typeof a !== 'object') a = {};\n d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';\n d.dataset.textsize = ").concat(JSON.stringify(o),".indexOf(a.textSize) >= 0 ? 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");let s={theme:"light",textSize:"normal",highContrast:!1,reduceMotion:!1,underlineLinks:!1,strongFocus:!1};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,a.createContext)({appearance:s,set:()=>void 0,reset:()=>void 0,loaded:!1});function d(e){let{children:t}=e,[n,d]=(0,a.useState)(s),[u,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=s;try{let t=window.localStorage.getItem(l);t?e=function(e){let t=e&&"object"==typeof e?e:{},n=(e,t)=>"boolean"==typeof e?e:t;return{theme:"dark"===t.theme?"dark":"light"===t.theme?"light":s.theme,textSize:o.includes(t.textSize)?t.textSize:s.textSize,highContrast:n(t.highContrast,s.highContrast),reduceMotion:n(t.reduceMotion,s.reduceMotion),underlineLinks:n(t.underlineLinks,s.underlineLinks),strongFocus:n(t.strongFocus,s.strongFocus)}}(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){}d(e),i(e),h(!0)},[]);let m=(0,a.useCallback)(e=>{d(t=>{let n={...t,...e};i(n);try{window.localStorage.setItem(l,JSON.stringify(n))}catch(e){}return n})},[]),v=(0,a.useCallback)(()=>{d(s),i(s);try{window.localStorage.removeItem(l)}catch(e){}},[]);return(0,r.jsx)(c.Provider,{value:{appearance:n,set:m,reset:v,loaded:u},children:t})}function u(){return(0,a.useContext)(c)}},8214:(e,t,n)=>{"use strict";n.d(t,{Nav:()=>v,SkipLink:()=>m});var r=n(3365),a=n(1521),l=n(8197),o=n.n(l),s=n(1702),i=n(5549),c=n(7527),d=n(867);let u={sessions:(0,r.jsx)("path",{d:"M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"}),defaults:(0,r.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,r.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,r.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,r.jsx)("path",{d:"M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),presets:(0,r.jsx)("path",{d:"M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),appearance:(0,r.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,r.jsx)("path",{d:"M4 5h16v10H4zM2 19h20M9 15v4M15 15v4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})},h=[{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 m(){let{t:e}=(0,d.kj)();return(0,r.jsx)("a",{className:"skip-link",href:"#main",children:e("a11y.skip")})}function v(){let{t:e}=(0,d.kj)(),t=(0,s.usePathname)(),n=function(){let[e,t]=(0,a.useState)(0);return(0,c.z)(()=>i.FH.activity().then(e=>t(e.sessions)).catch(()=>void 0),4e3),e}();return(0,r.jsxs)("nav",{"aria-label":e("nav.label"),children:[h.map(a=>(0,r.jsxs)(o(),{href:a.href,"aria-current":t===a.href?"page":void 0,children:[(0,r.jsx)("svg",{className:"nav-icon",viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:u[a.icon]}),(0,r.jsx)("span",{children:e(a.label)}),"/history"===a.href&&n>0&&(0,r.jsxs)("span",{className:"live",title:e("nav.liveTitle",{n:n}),children:[(0,r.jsx)("span",{className:"dot","aria-hidden":"true"}),e("nav.live")]})]},a.href)),(0,r.jsx)(d.c5,{})]})}}},e=>{e.O(0,[353,197,867,549,347,131,358],()=>e(e.s=5924)),_N_E=e.O()}]);
|
/package/dist/web/_next/static/{pfa56tOBq6o-WBQZnyUn2 → k4MMPCGaEGVTHKLfTmYlf}/_buildManifest.js
RENAMED
|
File without changes
|
/package/dist/web/_next/static/{pfa56tOBq6o-WBQZnyUn2 → k4MMPCGaEGVTHKLfTmYlf}/_ssgManifest.js
RENAMED
|
File without changes
|