copilot-operator 0.1.75 → 0.1.80
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.controller.js +7 -4
- package/dist/src/api/operator.service.js +73 -20
- package/dist/src/config/live.js +122 -0
- package/dist/src/exec/commandHeads.js +11 -2
- package/dist/src/exec/locations.js +194 -0
- package/dist/src/exec/network.js +3 -1
- package/dist/src/exec/scriptFiles.js +46 -21
- package/dist/src/exec/stops.js +147 -0
- package/dist/src/orchestrator/chosenAnswers.js +22 -0
- package/dist/src/orchestrator/handoff.js +37 -2
- package/dist/src/orchestrator/leadRunner.js +39 -22
- package/dist/src/orchestrator/taskRunner.js +129 -50
- package/dist/src/plan/kerrigan.js +2 -2
- package/dist/src/plan/systemGuide.js +38 -22
- package/dist/src/protocol/leadSchema.js +6 -1
- package/dist/src/protocol/replySchema.js +6 -0
- package/dist/src/queue/queue.js +6 -0
- package/dist/src/session/model.js +12 -0
- package/dist/src/util/pacing.js +6 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1024-17c74da39fb738c9.js +1 -0
- package/dist/web/_next/static/chunks/1077.ad76ce55c8120db5.js +1 -0
- package/dist/web/_next/static/chunks/1548.4dc2e419eee42487.js +1 -0
- package/dist/web/_next/static/chunks/2163.9f5c1d052712579f.js +1 -0
- package/dist/web/_next/static/chunks/714.3f04498b624bc1a4.js +1 -0
- package/dist/web/_next/static/chunks/7220.43612a34a3cb5146.js +1 -0
- package/dist/web/_next/static/chunks/7921-df716a0338420836.js +1 -0
- package/dist/web/_next/static/chunks/8124-2f07cc63c1494443.js +1 -0
- package/dist/web/_next/static/chunks/8584.36fd8289becb2d75.js +1 -0
- package/dist/web/_next/static/chunks/895-9c1f0751920e6624.js +1 -0
- package/dist/web/_next/static/chunks/9067.eff8198294aec025.js +1 -0
- package/dist/web/_next/static/chunks/9747.43e5b7201aa505ba.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-b8a1e0075a48b025.js +1 -0
- package/dist/web/_next/static/chunks/app/page-4a7cf5d83c000d73.js +1 -0
- package/dist/web/_next/static/chunks/app/queue/{page-82f724d0842f4870.js → page-317151444eda8115.js} +1 -1
- package/dist/web/_next/static/chunks/app/settings/page-ec85a538fda29964.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-f9f820c51a8952c8.js → webpack-a7f5c4d1eda36000.js} +1 -1
- package/dist/web/_next/static/css/0e586e29189e8783.css +1 -0
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +8 -8
- package/dist/web/index.html +3 -3
- package/dist/web/index.txt +9 -9
- package/dist/web/queue.html +2 -2
- package/dist/web/queue.txt +9 -9
- package/dist/web/settings.html +2 -2
- package/dist/web/settings.txt +9 -9
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +9 -9
- package/package.json +4 -3
- package/prompts/lead1.md +5 -2
- package/prompts/level1.md +8 -2
- package/dist/web/_next/static/chunks/1024-67625a65f58057ae.js +0 -1
- package/dist/web/_next/static/chunks/1077.14d6c828d8f71111.js +0 -1
- package/dist/web/_next/static/chunks/1548.2f75926c6e664f79.js +0 -1
- package/dist/web/_next/static/chunks/2163.f9f1ad4af05520cc.js +0 -1
- package/dist/web/_next/static/chunks/714.4507656685cb9337.js +0 -1
- package/dist/web/_next/static/chunks/7220.9bc9dd9f211b11e4.js +0 -1
- package/dist/web/_next/static/chunks/7921-9aaec581982b2329.js +0 -1
- package/dist/web/_next/static/chunks/8124-a39d85dff0db6600.js +0 -1
- package/dist/web/_next/static/chunks/8584.f2cb3ca81223d626.js +0 -1
- package/dist/web/_next/static/chunks/9067.a6cb3b9157a80921.js +0 -1
- package/dist/web/_next/static/chunks/9747.15aa40a046d54a2a.js +0 -1
- package/dist/web/_next/static/chunks/9929-2e0b1d006ebd5345.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-52a2079ffa83c21f.js +0 -1
- package/dist/web/_next/static/chunks/app/page-80730838a81da226.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-4f3c739287d7f32e.js +0 -1
- package/dist/web/_next/static/css/63b30b8e1a4aa500.css +0 -1
- /package/dist/web/_next/static/{9DmRzBb0M5BZ3dvVpbFMM → NP3hd8WmgkJYg_cn8gcXy}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{9DmRzBb0M5BZ3dvVpbFMM → NP3hd8WmgkJYg_cn8gcXy}/_ssgManifest.js +0 -0
package/dist/web/settings.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[98078,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
3
|
-
3:I[8205,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
4
|
-
4:I[51035,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
5
|
-
5:I[16752,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
6
|
-
6:I[
|
|
2
|
+
2:I[98078,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"AppearanceProvider"]
|
|
3
|
+
3:I[8205,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"LanguageProvider"]
|
|
4
|
+
4:I[51035,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"DialogHost"]
|
|
5
|
+
5:I[16752,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"SkipLink"]
|
|
6
|
+
6:I[19050,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"Shell"]
|
|
7
7
|
7:I[25204,[],""]
|
|
8
8
|
8:I[42642,[],""]
|
|
9
|
-
9:I[87712,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
9
|
+
9:I[87712,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"ScrollJump"]
|
|
10
10
|
a:I[17089,[],"ClientPageRoot"]
|
|
11
|
-
b:I[91082,["7921","static/chunks/7921-
|
|
11
|
+
b:I[91082,["7921","static/chunks/7921-df716a0338420836.js","4662","static/chunks/app/settings/page-ec85a538fda29964.js"],"default"]
|
|
12
12
|
e:I[60433,[],"OutletBoundary"]
|
|
13
13
|
10:I[19884,[],"AsyncMetadataOutlet"]
|
|
14
14
|
12:I[60433,[],"ViewportBoundary"]
|
|
15
15
|
14:I[60433,[],"MetadataBoundary"]
|
|
16
16
|
15:"$Sreact.suspense"
|
|
17
17
|
17:I[3536,[],""]
|
|
18
|
-
:HL["/_next/static/css/
|
|
19
|
-
0:{"P":null,"b":"
|
|
18
|
+
:HL["/_next/static/css/0e586e29189e8783.css","style"]
|
|
19
|
+
0:{"P":null,"b":"NP3hd8WmgkJYg_cn8gcXy","p":"","c":["","settings"],"i":false,"f":[[["",{"children":["settings",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0e586e29189e8783.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","data-night":"off","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\nif(!a||typeof a!=='object')a={};\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\nd.dataset.textsize=[\"smallest\",\"verysmall\",\"compact\",\"small\",\"normal\",\"large\",\"huge\",\"giant\"].indexOf(a.textSize)>=0?a.textSize:'normal';\nd.dataset.contrast=a.highContrast?'high':'normal';\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\nd.dataset.links=a.underlineLinks?'underline':'plain';\nd.dataset.focus=a.strongFocus?'strong':'normal';\nd.dataset.night=a.nightLight?'on':'off';\nd.dataset.cursor=a.systemCursor?'system':'own';\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\nif([\"ar\"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}\n}catch(e){}})();"}}]}],["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",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"}]}],["$","$L9",null,{}]]}]}]}]}]]}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":{},"promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":["$Lf",["$","$L10",null,{"promise":"$@11"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L12",null,{"children":"$L13"}],null],["$","$L14",null,{"children":["$","div",null,{"hidden":true,"children":["$","$15",null,{"fallback":null,"children":"$L16"}]}]}]]}],false]],"m":"$undefined","G":["$17",[]],"s":false,"S":true}
|
|
20
20
|
c:{}
|
|
21
21
|
d:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
22
22
|
13:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/dist/web/system.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--NP3hd8WmgkJYg_cn8gcXy--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal" data-night="off"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/0e586e29189e8783.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a7f5c4d1eda36000.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-d23441ca81b3a063.js" async=""></script><script src="/_next/static/chunks/8197-e2fcb43f38a2b4a7.js" async=""></script><script src="/_next/static/chunks/7921-df716a0338420836.js" async=""></script><script src="/_next/static/chunks/895-9c1f0751920e6624.js" async=""></script><script src="/_next/static/chunks/8124-2f07cc63c1494443.js" async=""></script><script src="/_next/static/chunks/app/layout-b8a1e0075a48b025.js" async=""></script><script src="/_next/static/chunks/app/system/page-3466496814a70b62.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><link rel="icon" href="/icon.svg?23b6e9b8199c9069" type="image/svg+xml" sizes="any"/><script>(function(){try{
|
|
2
2
|
var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
|
|
3
3
|
if(!a||typeof a!=='object')a={};
|
|
4
4
|
d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
|
|
@@ -11,4 +11,4 @@ d.dataset.night=a.nightLight?'on':'off';
|
|
|
11
11
|
d.dataset.cursor=a.systemCursor?'system':'own';
|
|
12
12
|
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
13
13
|
if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
|
|
14
|
-
}catch(e){}})();</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 class="brand-link" href="/"><svg class="brand-logo" viewBox="0 0 200 120" aria-hidden="true" focusable="false"><defs><mask id="cop-logo-R56db" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="120"><rect width="200" height="120" fill="#fff"></rect><path d="M50 3L94 60L94 62.6L69.5 89.6L30.5 89.6L6 62.6L6 60Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="#000" stroke="#000" stroke-width="18" stroke-linejoin="round"></path></mask></defs><g mask="url(#cop-logo-R56db)" fill="none" stroke="var(--logo-orbit)" stroke-linecap="round"><ellipse cx="96" cy="64" rx="86" ry="36" transform="rotate(-25 96 64)" stroke-width="6.5"></ellipse><path d="M70 104 C112 124 166 112 186 86 C194 74 192 60 184 52" stroke-width="6"></path><path d="M22 28 C18 42 22 56 34 70" stroke-width="2.4"></path></g><path class="brand-plane" d="M50 3C54.6 3 56.6 8.2 56.6 14.5L56.6 35.5L91.5 55.8C93.2 56.8 94 58.2 94 60L94 62.6L56.6 52.8L55.4 74.5L69.5 84.6L69.5 89.6L52.6 85.6L50 89.8L47.4 85.6L30.5 89.6L30.5 84.6L44.6 74.5L43.4 52.8L6 62.6L6 60C6 58.2 6.8 56.8 8.5 55.8L43.4 35.5L43.4 14.5C43.4 8.2 45.4 3 50 3Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="var(--logo-plane)"></path></svg>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 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</span></a><a href="/settings"><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 aria-current="page" 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><span class="nav-pair"><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></span></nav></header><main id="main"><div class="panel"><h2>This machine</h2><div class="muted">Loading…</div><div class="row" style="margin-top:10px"><a class="button-link plain" href="/api/terminal" download="">Download what the terminal showed</a></div><p class="why">The bot's console — what npm start or cop start printed — as a text file: the latest lines, each with its time, secret-shaped text taken out. Everything since the bot started is also in the data folder, logs\terminal.log.</p><div class="sys-export"><h3>Export everything the bot keeps</h3><p class="muted small">One .zip of the bot's folder: settings, conversations, skills, level 2 templates and logs (… files, …). Left out: the API's key, which belongs to this machine, and the Edge profile, which holds your Microsoft 365 sign-in.</p><label class="sys-home-copyline small"><input type="checkbox" id="export-runs"/><span>Every run's records too (… files, …)</span></label><div class="row" style="margin-top:8px"><a class="button-link plain sys-export-link" href="/api/home/export" download="">Export (.zip)</a></div></div></div><div class="panel"><h2>Settings</h2><p class="muted small">Read from data/settings.json. It has the same shape as run.example.yaml; anything missing takes the default. Edit the file and start the bot again.</p></div><div class="panel"><h2>Sign-in</h2><p class="muted small">Signing in is done once, from the terminal, so that the bot never handles credentials:</p><pre>npx tsx src/cli.ts login --account you@yourtenant.org</pre></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-f9f820c51a8952c8.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[98078,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"SkipLink\"]\n6:I[98333,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"9929\",\"static/chunks/9929-2e0b1d006ebd5345.js\",\"8124\",\"static/chunks/8124-a39d85dff0db6600.js\",\"7177\",\"static/chunks/app/layout-52a2079ffa83c21f.js\"],\"ScrollJump\"]\na:I[17089,[],\"ClientPageRoot\"]\nb:I[13134,[\"7921\",\"static/chunks/7921-9aaec581982b2329.js\",\"1186\",\"static/chunks/app/system/page-3466496814a70b62.js\"],\"default\"]\ne:I[60433,[],\"OutletBoundary\"]\n10:I[19884,[],\"AsyncMetadataOutlet\"]\n12:I[60433,[],\"ViewportBoundary\"]\n14:I[60433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/"])</script><script>self.__next_f.push([1,"css/63b30b8e1a4aa500.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"9DmRzBb0M5BZ3dvVpbFMM\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/63b30b8e1a4aa500.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\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",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\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"system\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{\"Component\":\"$b\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}],null,[\"$\",\"$Le\",null,{\"children\":[\"$Lf\",[\"$\",\"$L10\",null,{\"promise\":\"$@11\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],null],[\"$\",\"$L14\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$15\",null,{\"fallback\":null,\"children\":\"$L16\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$17\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:{}\nd:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nf:null\n"])</script><script>self.__next_f.push([1,"18:I[66644,[],\"IconMark\"]\n11:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?23b6e9b8199c9069\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L18\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"16:\"$11:metadata\"\n"])</script></body></html>
|
|
14
|
+
}catch(e){}})();</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 class="brand-link" href="/"><svg class="brand-logo" viewBox="0 0 200 120" aria-hidden="true" focusable="false"><defs><mask id="cop-logo-R56db" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="120"><rect width="200" height="120" fill="#fff"></rect><path d="M50 3L94 60L94 62.6L69.5 89.6L30.5 89.6L6 62.6L6 60Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="#000" stroke="#000" stroke-width="18" stroke-linejoin="round"></path></mask></defs><g mask="url(#cop-logo-R56db)" fill="none" stroke="var(--logo-orbit)" stroke-linecap="round"><ellipse cx="96" cy="64" rx="86" ry="36" transform="rotate(-25 96 64)" stroke-width="6.5"></ellipse><path d="M70 104 C112 124 166 112 186 86 C194 74 192 60 184 52" stroke-width="6"></path><path d="M22 28 C18 42 22 56 34 70" stroke-width="2.4"></path></g><path class="brand-plane" d="M50 3C54.6 3 56.6 8.2 56.6 14.5L56.6 35.5L91.5 55.8C93.2 56.8 94 58.2 94 60L94 62.6L56.6 52.8L55.4 74.5L69.5 84.6L69.5 89.6L52.6 85.6L50 89.8L47.4 85.6L30.5 89.6L30.5 84.6L44.6 74.5L43.4 52.8L6 62.6L6 60C6 58.2 6.8 56.8 8.5 55.8L43.4 35.5L43.4 14.5C43.4 8.2 45.4 3 50 3Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="var(--logo-plane)"></path></svg>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 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</span></a><a href="/settings"><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 aria-current="page" 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><span class="nav-pair"><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></span></nav></header><main id="main"><div class="panel"><h2>This machine</h2><div class="muted">Loading…</div><div class="row" style="margin-top:10px"><a class="button-link plain" href="/api/terminal" download="">Download what the terminal showed</a></div><p class="why">The bot's console — what npm start or cop start printed — as a text file: the latest lines, each with its time, secret-shaped text taken out. Everything since the bot started is also in the data folder, logs\terminal.log.</p><div class="sys-export"><h3>Export everything the bot keeps</h3><p class="muted small">One .zip of the bot's folder: settings, conversations, skills, level 2 templates and logs (… files, …). Left out: the API's key, which belongs to this machine, and the Edge profile, which holds your Microsoft 365 sign-in.</p><label class="sys-home-copyline small"><input type="checkbox" id="export-runs"/><span>Every run's records too (… files, …)</span></label><div class="row" style="margin-top:8px"><a class="button-link plain sys-export-link" href="/api/home/export" download="">Export (.zip)</a></div></div></div><div class="panel"><h2>Settings</h2><p class="muted small">Read from data/settings.json. It has the same shape as run.example.yaml; anything missing takes the default. Edit the file and start the bot again.</p></div><div class="panel"><h2>Sign-in</h2><p class="muted small">Signing in is done once, from the terminal, so that the bot never handles credentials:</p><pre>npx tsx src/cli.ts login --account you@yourtenant.org</pre></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-a7f5c4d1eda36000.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[98078,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"ScrollJump\"]\na:I[17089,[],\"ClientPageRoot\"]\nb:I[13134,[\"7921\",\"static/chunks/7921-df716a0338420836.js\",\"1186\",\"static/chunks/app/system/page-3466496814a70b62.js\"],\"default\"]\ne:I[60433,[],\"OutletBoundary\"]\n10:I[19884,[],\"AsyncMetadataOutlet\"]\n12:I[60433,[],\"ViewportBoundary\"]\n14:I[60433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/css/0e586e29"])</script><script>self.__next_f.push([1,"189e8783.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"NP3hd8WmgkJYg_cn8gcXy\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/0e586e29189e8783.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\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",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\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"system\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{\"Component\":\"$b\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}],null,[\"$\",\"$Le\",null,{\"children\":[\"$Lf\",[\"$\",\"$L10\",null,{\"promise\":\"$@11\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],null],[\"$\",\"$L14\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$15\",null,{\"fallback\":null,\"children\":\"$L16\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$17\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:{}\nd:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nf:null\n"])</script><script>self.__next_f.push([1,"18:I[66644,[],\"IconMark\"]\n11:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?23b6e9b8199c9069\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L18\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"16:\"$11:metadata\"\n"])</script></body></html>
|
package/dist/web/system.txt
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[98078,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
3
|
-
3:I[8205,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
4
|
-
4:I[51035,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
5
|
-
5:I[16752,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
6
|
-
6:I[
|
|
2
|
+
2:I[98078,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"AppearanceProvider"]
|
|
3
|
+
3:I[8205,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"LanguageProvider"]
|
|
4
|
+
4:I[51035,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"DialogHost"]
|
|
5
|
+
5:I[16752,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"SkipLink"]
|
|
6
|
+
6:I[19050,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"Shell"]
|
|
7
7
|
7:I[25204,[],""]
|
|
8
8
|
8:I[42642,[],""]
|
|
9
|
-
9:I[87712,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-
|
|
9
|
+
9:I[87712,["8197","static/chunks/8197-e2fcb43f38a2b4a7.js","7921","static/chunks/7921-df716a0338420836.js","895","static/chunks/895-9c1f0751920e6624.js","8124","static/chunks/8124-2f07cc63c1494443.js","7177","static/chunks/app/layout-b8a1e0075a48b025.js"],"ScrollJump"]
|
|
10
10
|
a:I[17089,[],"ClientPageRoot"]
|
|
11
|
-
b:I[13134,["7921","static/chunks/7921-
|
|
11
|
+
b:I[13134,["7921","static/chunks/7921-df716a0338420836.js","1186","static/chunks/app/system/page-3466496814a70b62.js"],"default"]
|
|
12
12
|
e:I[60433,[],"OutletBoundary"]
|
|
13
13
|
10:I[19884,[],"AsyncMetadataOutlet"]
|
|
14
14
|
12:I[60433,[],"ViewportBoundary"]
|
|
15
15
|
14:I[60433,[],"MetadataBoundary"]
|
|
16
16
|
15:"$Sreact.suspense"
|
|
17
17
|
17:I[3536,[],""]
|
|
18
|
-
:HL["/_next/static/css/
|
|
19
|
-
0:{"P":null,"b":"
|
|
18
|
+
:HL["/_next/static/css/0e586e29189e8783.css","style"]
|
|
19
|
+
0:{"P":null,"b":"NP3hd8WmgkJYg_cn8gcXy","p":"","c":["","system"],"i":false,"f":[[["",{"children":["system",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0e586e29189e8783.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","data-night":"off","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\nif(!a||typeof a!=='object')a={};\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\nd.dataset.textsize=[\"smallest\",\"verysmall\",\"compact\",\"small\",\"normal\",\"large\",\"huge\",\"giant\"].indexOf(a.textSize)>=0?a.textSize:'normal';\nd.dataset.contrast=a.highContrast?'high':'normal';\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\nd.dataset.links=a.underlineLinks?'underline':'plain';\nd.dataset.focus=a.strongFocus?'strong':'normal';\nd.dataset.night=a.nightLight?'on':'off';\nd.dataset.cursor=a.systemCursor?'system':'own';\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\nif([\"ar\"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}\n}catch(e){}})();"}}]}],["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",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"}]}],["$","$L9",null,{}]]}]}]}]}]]}]]}],{"children":["system",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":{},"promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":["$Lf",["$","$L10",null,{"promise":"$@11"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L12",null,{"children":"$L13"}],null],["$","$L14",null,{"children":["$","div",null,{"hidden":true,"children":["$","$15",null,{"fallback":null,"children":"$L16"}]}]}]]}],false]],"m":"$undefined","G":["$17",[]],"s":false,"S":true}
|
|
20
20
|
c:{}
|
|
21
21
|
d:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
22
22
|
13:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-operator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Automates a Microsoft 365 Copilot chat: sends prompts, extracts commands, runs them, reports back.",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"cop": "tsx src/cli.ts",
|
|
19
19
|
"check:parser": "tsx test/parser.check.ts",
|
|
20
20
|
"check:report": "tsx test/report.check.ts",
|
|
21
|
-
"check": "npm run check:suite && npm run check:parser && npm run check:damage && npm run check:session && npm run check:report && npm run check:runner && npm run check:vcs && npm run check:checks && npm run check:workdir && npm run check:processes && npm run check:environment && npm run check:crash && npm run check:clipboard && npm run check:review && npm run check:chat && npm run check:pacing && npm run check:pause-clock && npm run check:shells && npm run check:guide && npm run check:bundle && npm run check:runname && npm run check:dangerous && npm run check:read-only && npm run check:programs && npm run check:manifest && npm run check:lock && npm run check:isolation && npm run check:security && npm run check:update && npm run check:confinement && npm run check:network && npm run check:hardening && npm run check:package && npm run check:models && npm run check:settings-precedence && npm run check:review-evidence && npm run check:model-help && npm run check:continue && npm run check:startfrom && npm run check:diff && npm run check:integrity && npm run check:scope && npm run check:progress && npm run check:modelpicker && npm run check:formatrepair && npm run check:intent && npm run check:e2e-run && npm run check:e2e-continue && npm run check:e2e-planmode && npm run check:e2e-chat && npm run check:e2e-lead && npm run check:subtask-retry && npm run check:lead-ledger && npm run check:actors && npm run check:e2e-actors && npm run check:brand && npm run check:platforms && npm run check:e2e-ask && npm run check:e2e-handoff && npm run check:export && npm run check:picker-locators && npm run check:queue && npm run check:new-branch && npm run check:step-password && npm run check:workspace-git && npm run check:e2e-interrupt && npm run check:e2e-vcs && npm run check:noattach && npm run check:guard && npm run check:gate && npm run check:own-scripts && npm run check:written-scripts && npm run check:file-icons && npm run check:reference && npm run check:skills && npm run check:search && npm run check:installed && npm run check:notices && npm run check:e2e-review && npm run check:e2e-branches && npm run check:e2e-loop && npm run check:transport && npm run check:exec && npm run check:pins && npm run check:login && npm run check:snapshot && npm run check:inputs && npm run check:attempts && npm run check:finding-ids && npm run check:e2e-commit && npm run check:live-fixes",
|
|
21
|
+
"check": "npm run check:suite && npm run check:parser && npm run check:damage && npm run check:session && npm run check:report && npm run check:runner && npm run check:vcs && npm run check:checks && npm run check:workdir && npm run check:processes && npm run check:environment && npm run check:crash && npm run check:clipboard && npm run check:review && npm run check:chat && npm run check:pacing && npm run check:pause-clock && npm run check:shells && npm run check:guide && npm run check:bundle && npm run check:runname && npm run check:dangerous && npm run check:read-only && npm run check:programs && npm run check:manifest && npm run check:lock && npm run check:isolation && npm run check:security && npm run check:update && npm run check:confinement && npm run check:network && npm run check:hardening && npm run check:package && npm run check:models && npm run check:settings-precedence && npm run check:review-evidence && npm run check:model-help && npm run check:continue && npm run check:startfrom && npm run check:diff && npm run check:integrity && npm run check:scope && npm run check:progress && npm run check:modelpicker && npm run check:formatrepair && npm run check:intent && npm run check:e2e-run && npm run check:e2e-continue && npm run check:e2e-planmode && npm run check:e2e-chat && npm run check:e2e-lead && npm run check:subtask-retry && npm run check:lead-ledger && npm run check:actors && npm run check:e2e-actors && npm run check:brand && npm run check:platforms && npm run check:e2e-ask && npm run check:e2e-handoff && npm run check:live-settings && npm run check:export && npm run check:picker-locators && npm run check:queue && npm run check:new-branch && npm run check:step-password && npm run check:workspace-git && npm run check:e2e-interrupt && npm run check:e2e-vcs && npm run check:noattach && npm run check:guard && npm run check:gate && npm run check:own-scripts && npm run check:written-scripts && npm run check:file-icons && npm run check:reference && npm run check:skills && npm run check:search && npm run check:installed && npm run check:notices && npm run check:e2e-review && npm run check:e2e-branches && npm run check:e2e-loop && npm run check:transport && npm run check:exec && npm run check:pins && npm run check:login && npm run check:snapshot && npm run check:inputs && npm run check:attempts && npm run check:finding-ids && npm run check:e2e-commit && npm run check:live-fixes",
|
|
22
22
|
"probe": "tsx scripts/probe-locators.ts",
|
|
23
23
|
"check:damage": "tsx test/damage.check.ts",
|
|
24
24
|
"api": "npm run build && node dist/src/api/main.js",
|
|
@@ -119,7 +119,8 @@
|
|
|
119
119
|
"check:inputs": "tsx test/inputs.check.ts",
|
|
120
120
|
"check:attempts": "tsx test/attempts.check.ts",
|
|
121
121
|
"check:finding-ids": "tsx test/finding-ids.check.ts",
|
|
122
|
-
"check:e2e-commit": "tsx test/e2e-commit.check.ts"
|
|
122
|
+
"check:e2e-commit": "tsx test/e2e-commit.check.ts",
|
|
123
|
+
"check:live-settings": "tsx test/live-settings.check.ts"
|
|
123
124
|
},
|
|
124
125
|
"dependencies": {
|
|
125
126
|
"@nestjs/common": "^12.0.3",
|
package/prompts/lead1.md
CHANGED
|
@@ -83,7 +83,9 @@ with everything you need in it.
|
|
|
83
83
|
|
|
84
84
|
Always give `options`: two to four answers the operator can click, **your recommended one first** — the operator may
|
|
85
85
|
have set the runner to take the first without asking. An open question gets its likely answers too; the operator can
|
|
86
|
-
still write another.
|
|
86
|
+
still write another. When more than one of them may be chosen at once, add `"multiple": true`: the operator presses
|
|
87
|
+
each one they want and sends them together, and you get the ones chosen, one a line, with anything they wrote
|
|
88
|
+
besides. Never ask the operator to run a command by hand: give the worker a subtask that runs it — a
|
|
87
89
|
command that reaches a platform with the operator's access (Azure, AWS, GitHub, Jira, Vercel, Kubernetes, publishing a
|
|
88
90
|
package) waits for the operator's permission anyway.
|
|
89
91
|
|
|
@@ -128,7 +130,8 @@ The statuses, and what each one requires:
|
|
|
128
130
|
done, "steps": [the stages, in order], "files": [the files that will change, if any], "verification": how the
|
|
129
131
|
result will be shown right, "risks": what could go wrong or is still open }`; and `todo`, the subtasks the plan
|
|
130
132
|
needs, in order, with their phases.
|
|
131
|
-
- **`ask`** — `question`: what only the operator can answer, with `why`, and `options` when there are choices
|
|
133
|
+
- **`ask`** — `question`: what only the operator can answer, with `why`, and `options` when there are choices
|
|
134
|
+
(`"multiple": true` when more than one may be chosen).
|
|
132
135
|
- **`done`** — `answer`: the result, in the form the assignment asked for, in full; `evidence`: what shows it.
|
|
133
136
|
- **`blocked`** — `summary`: what was done and found, with its evidence; `needed`: what would let it go on.
|
|
134
137
|
|
package/prompts/level1.md
CHANGED
|
@@ -121,6 +121,10 @@ system outside the project, a sign-in — ask with `"status": "ask"`, instead of
|
|
|
121
121
|
runs it at once and sends you its output with the answer. **Never ask the operator in prose to run a command by
|
|
122
122
|
hand** — put it in a step, or in an option's `run`. The one exception is what only the operator can run: see "You
|
|
123
123
|
never write a script to run something".
|
|
124
|
+
- Add **`"multiple": true`** when the operator may choose more than one of the answers at once — which of several
|
|
125
|
+
files, checks or fixes to include. The operator presses each one they want and sends them together; you get the
|
|
126
|
+
ones chosen, one a line, and anything they wrote besides. Such answers cannot carry `run`: once the answer comes
|
|
127
|
+
back, send the commands the chosen ones need as steps. Without it, the operator chooses one.
|
|
124
128
|
- Never offer an answer that only promises something later ("I will send the path", "I will give the token"): the
|
|
125
129
|
runner may take the first answer by itself. What only the operator can type is a question with an answer written
|
|
126
130
|
out, not an option.
|
|
@@ -165,7 +169,8 @@ refuses here — hand the commands over with `"status": "handoff"`, still as com
|
|
|
165
169
|
```
|
|
166
170
|
|
|
167
171
|
- **`commands`**: the exact lines, in order, as the operator types them in their own terminal, in **`cwd`** (relative
|
|
168
|
-
to the project; the project itself when left out).
|
|
172
|
+
to the project; the project itself when left out). **Never `exit`** in them: typed into the operator's open terminal,
|
|
173
|
+
it closes that terminal, and what it printed with it. To show how they ended, print it: `Write-Output ('EXIT=' + $LASTEXITCODE)`.
|
|
169
174
|
- **`expect`**: what they should see when it works, so the two can be compared.
|
|
170
175
|
- **`exit`**, **`network`**, **`platforms`**, **`changes`**: how it should end; what it reaches on the network and on a
|
|
171
176
|
platform with the operator's access ("Nothing" when it reaches none); what it changes in the project. The card shows
|
|
@@ -312,7 +317,7 @@ reply is tagged `json`. A short sentence before or after it is fine. The block i
|
|
|
312
317
|
- `blocked` — the work cannot be finished. No steps, and `tried` is required. See "When you
|
|
313
318
|
cannot finish".
|
|
314
319
|
- `ask` — a question only the operator can answer. No steps; `question` and at least two `options` are
|
|
315
|
-
required. See "When you need the operator".
|
|
320
|
+
required, `"multiple": true` when more than one may be chosen. See "When you need the operator".
|
|
316
321
|
- `handoff` — commands for the operator to run themselves, which the runner cannot. No steps; `handoff`
|
|
317
322
|
is required. See "You never write a script to run something".
|
|
318
323
|
|
|
@@ -588,6 +593,7 @@ ordinary way to do each one:
|
|
|
588
593
|
| opening a file or a URL through Windows (`Invoke-Item`, `Start-Process` on a document or an address) | start the program itself, by name, with the file as its argument |
|
|
589
594
|
| anything under `.git\`, and `git config <key> <value>` | read history with `git log`, `git show`, `git diff`; the runner owns the repository |
|
|
590
595
|
| the runner itself: `localhost:4000`, `localhost:3210`, its `data` folder | nothing: the bot that runs the task is not part of the task |
|
|
596
|
+
| stopping processes by the name `node` or `msedge` (`Stop-Process -Name node`, `taskkill /IM node.exe`), or on the runner's ports: the runner runs on node, its chat in Edge | stop only the process the work started: by the id `Start-Process -PassThru` gave, or by the port it listens on |
|
|
591
597
|
| writing a script to run, or running one written or changed during the work, or anything in `.cop-tmp` | the commands themselves, in the step, on as many lines as they need |
|
|
592
598
|
|
|
593
599
|
The project's own scripts are **read from disk before they run** and held to the same rules as a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1024],{24784:(e,s,t)=>{t.d(s,{Yb:()=>i,u:()=>l});var n=t(73365),a=t(1521),r=t(15549),o=t(8205);let l="::by-hand::";function i(e){var s,t,i;let{id:d,chosen:c,onChange:p,none:u,byHand:m,catalogue:h,disabled:v=!1,style:x}=e,{t:j}=(0,o.kj)(),k=function(e){let[s,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(void 0!==e)return;let s=!0;return r.FH.models().then(e=>{s&&t(e)}).catch(()=>void 0),()=>{s=!1}},[e]),void 0!==e?e:s}(h),w=null!=(s=null==k?void 0:k.options)?s:[],y=e=>e.toLowerCase().replace(/[-‐‑‒–—_]+/g," ").replace(/\s+/g," ").trim(),b=c&&c!==l?w.find(e=>y(e.name)===y(c)):void 0,N=null!=(t=null==b?void 0:b.name)?t:c,f=!!b||c===l&&void 0!==m,g=w.filter(e=>!e.group),C=new Map;for(let e of w)e.group&&C.set(e.group,[...null!=(i=C.get(e.group))?i:[],e]);return(0,n.jsxs)("select",{id:d,value:N,onChange:e=>p(e.target.value),disabled:v,style:{width:"auto",minWidth:280,...x},children:[void 0!==m&&(0,n.jsx)("option",{value:l,children:m}),void 0!==u&&(0,n.jsx)("option",{value:"",children:u}),c&&!f&&(0,n.jsx)("option",{value:c,children:j("model.notInList",{name:c})}),g.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name)),[...C.entries()].map(e=>{let[s,t]=e;return(0,n.jsx)("optgroup",{label:s,children:t.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name))},s)})]})}},34982:(e,s,t)=>{t.d(s,{a:()=>m});var n=t(73365),a=t(1521),r=t(8205),o=t(33389),l=t(24872),i=t(79717),d=t(65132),c=t(68176);let p={same:"retry.same",fresh:"retry.fresh",continue:"retry.continue",restore:"retry.restore",accept:"retry.accept"},u={plan:"pk.waitsPlan",question:"pk.waitsQuestion",retry:"pk.waitsRetry",command:"pk.waitsCommand",model:"pk.waitsModel",password:"pk.waitsPassword"};function m(e){var s,t;let{parked:m,onAnswer:h}=e,{t:v}=(0,r.kj)(),x=(0,r.W3)(),j=(0,a.useId)(),[k,w]=(0,a.useState)(""),{locked:y,err:b,choose:N,mark:f}=(0,o.p)(),[g,C]=(0,a.useState)(""),q=m.approval,F=async(e,s)=>{await N(e,()=>h(s))&&C("stop"in s?"stopped":"answered")};return m.answer||g?(0,n.jsx)("p",{className:"small pk-answered",role:"status",children:v("stopped"===g?"pk.stopped":"pk.answered")}):(0,n.jsxs)("div",{className:"pk",role:"group","aria-label":v("pk.title"),children:[(0,n.jsxs)("p",{className:"small pk-head",children:[(0,n.jsx)("strong",{children:v("pk.title")})," ",(0,n.jsx)("span",{className:"muted",children:v("pk.since",{at:x(m.at),what:v(u[m.kind])})})]}),"plan"===m.kind&&q.plan&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.D,{plan:q.plan.plan,showApproval:!1}),(0,n.jsx)("label",{htmlFor:"".concat(j,"-note"),className:"small",children:v("pk.note")}),(0,n.jsx)("textarea",{id:"".concat(j,"-note"),className:"prose",rows:2,value:k,onChange:e=>w(e.target.value),disabled:y}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",className:"primary",...f("approve"),onClick:()=>void F("approve",{decision:"approve",...k.trim()?{note:k.trim()}:{}}),children:v("pk.approve")}),(0,n.jsx)("button",{type:"button",...f("revise"),disabled:y||!k.trim(),onClick:()=>void F("revise",{decision:"revise",note:k.trim()}),title:k.trim()?void 0:v("pk.reviseWhy"),children:v("pk.revise")})]})]}),"question"===m.kind&&(null==(s=q.question)?void 0:s.handoff)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Lp,{card:q.question.handoff,why:q.question.text}),(0,n.jsx)("label",{htmlFor:"".concat(j,"-out"),className:"small",children:v("ho.output")}),(0,n.jsx)("textarea",{id:"".concat(j,"-out"),className:"prose",rows:4,dir:"ltr",value:k,onChange:e=>w(e.target.value),placeholder:v("ho.outputPlaceholder"),disabled:y}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",className:"primary",...f("ran"),disabled:y||!k.trim(),onClick:()=>void F("ran",{answer:k.trim(),ran:!0,outcome:"ran"}),children:v("ho.send")}),(0,n.jsx)("button",{type:"button",...f("revise"),disabled:y||!k.trim(),onClick:()=>void F("revise",{answer:k.trim(),outcome:"revise"}),title:v("pk.handoffReviseWhy"),children:v("ho.revise")}),(0,n.jsx)("button",{type:"button",...f("declined"),onClick:()=>void F("declined",{answer:k.trim(),ran:!1,outcome:"declined"}),title:v("ho.notRunWhy"),children:v("ho.notRun")})]})]}),"question"===m.kind&&q.question&&!q.question.handoff&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.s,{text:q.question.text}),q.question.why&&(0,n.jsx)("p",{className:"muted small",children:q.question.why}),(0,n.jsx)("div",{className:"cs-copy-row",children:(0,n.jsx)(l.i,{text:[q.question.text,null!=(t=q.question.why)?t:"",...q.question.options.map((e,s)=>"".concat(s+1,". ").concat(e))].filter(Boolean).join("\n"),what:"chat.copyQuestion"})}),q.question.options.length>0&&(0,n.jsx)("div",{className:"row cs-options",children:q.question.options.map((e,s)=>(0,n.jsx)("button",{type:"button",className:0===s?"primary cs-option":"cs-option",...f("option-".concat(s)),onClick:()=>void F("option-".concat(s),{answer:e}),children:e},e))}),(0,n.jsx)("label",{htmlFor:"".concat(j,"-answer"),className:"small",children:v("lead.answer")}),(0,n.jsx)("textarea",{id:"".concat(j,"-answer"),className:"prose",rows:2,value:k,onChange:e=>w(e.target.value),disabled:y}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("button",{type:"button",className:"primary",...f("written"),disabled:y||!k.trim(),onClick:()=>void F("written",{answer:k.trim()}),children:v("lead.send")})})]}),"retry"===m.kind&&q.retry&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"small",children:[v("retry.title",{n:q.retry.n})," — ",q.retry.title]}),q.retry.reason&&(0,n.jsx)("p",{className:"small",children:v("retry.reason",{reason:q.retry.reason})}),"unknown"===q.retry.sideEffects&&(0,n.jsx)("p",{className:"reason small",children:v("retry.unknown")}),(0,n.jsx)("div",{className:"row",children:q.retry.choices.map((e,s)=>(0,n.jsx)("button",{type:"button",className:0===s?"primary":void 0,...f(e),onClick:()=>void F(e,{choice:e}),children:v(p[e])},e))})]}),"command"===m.kind&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("pre",{className:"cs-out",children:q.description}),q.platform&&(0,n.jsx)("p",{className:"reason small",children:v("approval.platform",{platform:q.platform})}),q.readOnly&&(0,n.jsx)("p",{className:"reason small",children:v("approval.readOnly")}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",className:"primary",...f("run"),onClick:()=>void F("run",{decision:"run"}),children:v("pk.run")}),(0,n.jsx)("button",{type:"button",...f("skip"),onClick:()=>void F("skip",{decision:"skip"}),children:v("pk.skip")})]})]}),("model"===m.kind||"password"===m.kind)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"small",children:v("model"===m.kind?"pk.modelWhy":"pk.passwordWhy")}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("button",{type:"button",className:"primary",...f("resume"),onClick:()=>void F("resume",{resume:!0}),children:v("pk.resume")})})]}),(0,n.jsx)("div",{className:"row pk-stop",children:(0,n.jsx)("button",{type:"button",className:"quiet",...f("stop"),onClick:()=>void F("stop",{stop:!0}),children:v("pk.stop")})}),b&&(0,n.jsx)("p",{className:"err",role:"alert",children:b})]})}},41370:(e,s,t)=>{t.d(s,{q:()=>a});var n=t(1521);function a(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:450,[t,a]=(0,n.useState)(1);return(0,n.useEffect)(()=>{if(!e)return void a(1);let t=window.setInterval(()=>a(e=>e%3+1),s);return()=>window.clearInterval(t)},[e,s]),".".repeat(t)}}}]);
|