copilot-operator 0.1.51 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/dist/src/api/operator.controller.js +32 -81
- package/dist/src/api/operator.service.js +166 -109
- package/dist/src/config/schema.js +13 -0
- package/dist/src/orchestrator/leadRunner.js +559 -0
- package/dist/src/orchestrator/taskRunner.js +55 -17
- package/dist/src/plan/kerrigan.js +172 -47
- package/dist/src/plan/systemGuide.js +443 -506
- package/dist/src/protocol/leadSchema.js +156 -0
- package/dist/src/protocol/parser.js +1 -1
- package/dist/src/session/chatNotice.js +115 -0
- package/dist/src/session/checkpoint.js +19 -0
- package/dist/src/session/compose.js +1 -1
- package/dist/src/session/store.js +18 -72
- package/dist/src/transport/copilotTransport.js +2 -0
- package/dist/web/404.html +13 -18
- package/dist/web/_next/static/_1zhoDsMOPAH2xW702E5A/_buildManifest.js +1 -0
- package/dist/web/_next/static/chunks/163.dbd7d36584d0bb37.js +1 -0
- package/dist/web/_next/static/chunks/220.35531b39410e1a9f.js +1 -0
- package/dist/web/_next/static/chunks/548.71ac96c94136659b.js +1 -0
- package/dist/web/_next/static/chunks/584.6df695c5b86a75aa.js +1 -0
- package/dist/web/_next/static/chunks/67.9ed79e2fbfb56f26.js +1 -0
- package/dist/web/_next/static/chunks/714.1e2338736a70b9c7.js +1 -0
- package/dist/web/_next/static/chunks/747.d2c1249d736dc03b.js +1 -0
- package/dist/web/_next/static/chunks/77.a200abef0f5b4a7f.js +1 -0
- package/dist/web/_next/static/chunks/808-bc7d7eac6d823291.js +1 -0
- package/dist/web/_next/static/chunks/921-dc5538cd779c6432.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-edd7534ca9ecf366.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-8f99a164d76897a0.js +1 -0
- package/dist/web/_next/static/chunks/app/page-4bed816eda370d0c.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +1 -0
- package/dist/web/_next/static/chunks/webpack-77147e31d2125631.js +1 -0
- package/dist/web/_next/static/css/3bea264adc472bc8.css +1 -0
- package/dist/web/defaults.html +13 -18
- package/dist/web/defaults.txt +9 -9
- package/dist/web/index.html +13 -18
- package/dist/web/index.txt +9 -9
- package/dist/web/system.html +13 -18
- package/dist/web/system.txt +9 -9
- package/package.json +4 -5
- package/prompts/lead1.md +116 -0
- package/dist/src/vcs/prepareFromRemote.js +0 -288
- package/dist/src/vcs/remoteAuth.js +0 -117
- package/dist/src/vcs/syncCommand.js +0 -97
- package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +0 -1
- package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +0 -1
- package/dist/web/_next/static/chunks/867-869900ec999e6345.js +0 -1
- package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +0 -1
- package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +0 -1
- package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +0 -1
- package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +0 -1
- package/dist/web/_next/static/chunks/webpack-0f31b926d9a9c5a4.js +0 -1
- package/dist/web/_next/static/css/8b14cb3cf0051138.css +0 -1
- package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +0 -1
- package/dist/web/appearance.html +0 -18
- package/dist/web/appearance.txt +0 -25
- package/dist/web/level1.html +0 -18
- package/dist/web/level1.txt +0 -25
- package/dist/web/presets.html +0 -21
- package/dist/web/presets.txt +0 -25
- /package/dist/web/_next/static/{eqTUTH_SJtBgNgq8Zzy3n → _1zhoDsMOPAH2xW702E5A}/_ssgManifest.js +0 -0
package/dist/web/system.html
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
d.dataset.links = a.underlineLinks ? 'underline' : 'plain';
|
|
14
|
-
d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
|
|
15
|
-
d.dataset.night = a.nightLight ? 'on' : 'off';
|
|
16
|
-
} catch (e) {}
|
|
17
|
-
})();
|
|
18
|
-
</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="M3 4h18v16H3zM9 4v16M3 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Workbench</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="/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 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 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><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>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><div class="panel"><h2>Settings</h2><p class="muted small">Read from data/settings.json next to the project. It has the same shape as run.example.yaml; anything missing takes the default. Edit the file and restart the API.</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-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[8078,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"AppearanceProvider\"]\n3:I[867,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"ScrollJump\"]\na:I[7089,[],\"ClientPageRoot\"]\nb:I[3134,[\"867\",\"static/chunks/867-869900ec999e6345.js\",\"186\",\"static/chunks/app/system/page-2a270bb885885821.js\"],\"default\"]\ne:I[433,[],\"OutletBoundary\"]\n10:I[9884,[],\"AsyncMetadataOutlet\"]\n12:I[433,[],\"ViewportBoundary\"]\n14:I[433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/css/8b14cb3cf0051138.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"eqTUTH_SJtBgNgq8Zzy3n\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/8b14cb3cf0051138.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\":\"\\n(function () {\\n try {\\n var d = document.documentElement;\\n var raw = localStorage.getItem('cop.appearance');\\n var a = raw ? JSON.parse(raw) : {};\\n if (!a || typeof a !== 'object') a = {};\\n // \\\"system\\\", the default: whatever the machine is set to, light or dark (2026-10-20).\\n d.dataset.theme = a.theme === 'dark' || a.theme === 'light' ? a.theme : window.matchMedia \u0026\u0026 window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\\n d.dataset.textsize = [\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize) \u003e= 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 d.dataset.night = a.nightLight ? 'on' : 'off';\\n } catch (e) {}\\n})();\\n\"}}]}],[\"$\",\"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,"11:{\"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,"16:\"$11:metadata\"\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><!--_1zhoDsMOPAH2xW702E5A--><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/3bea264adc472bc8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-77147e31d2125631.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/134-ddd50a7fbb536ec8.js" async=""></script><script src="/_next/static/chunks/921-dc5538cd779c6432.js" async=""></script><script src="/_next/static/chunks/808-bc7d7eac6d823291.js" async=""></script><script src="/_next/static/chunks/app/layout-8f99a164d76897a0.js" async=""></script><script src="/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>(function(){try{
|
|
2
|
+
var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
|
|
3
|
+
if(!a||typeof a!=='object')a={};
|
|
4
|
+
d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
|
|
5
|
+
d.dataset.textsize=["small","normal","large","huge","giant"].indexOf(a.textSize)>=0?a.textSize:'normal';
|
|
6
|
+
d.dataset.contrast=a.highContrast?'high':'normal';
|
|
7
|
+
d.dataset.motion=a.reduceMotion?'reduced':'normal';
|
|
8
|
+
d.dataset.links=a.underlineLinks?'underline':'plain';
|
|
9
|
+
d.dataset.focus=a.strongFocus?'strong':'normal';
|
|
10
|
+
d.dataset.night=a.nightLight?'on':'off';
|
|
11
|
+
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
12
|
+
if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
|
|
13
|
+
}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 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 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</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 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="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></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><div class="panel"><h2>Settings</h2><p class="muted small">Read from data/settings.json next to the project. It has the same shape as run.example.yaml; anything missing takes the default. Edit the file and restart the API.</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-77147e31d2125631.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[8078,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"ScrollJump\"]\na:I[7089,[],\"ClientPageRoot\"]\nb:I[3134,[\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"186\",\"static/chunks/app/system/page-1cf9e75e76da59ed.js\"],\"default\"]\ne:I[433,[],\"OutletBoundary\"]\n10:I[9884,[],\"AsyncMetadataOutlet\"]\n12:I[433,[],\"ViewportBoundary\"]\n14:I[433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/css/3bea264adc472bc8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"_1zhoDsMOPAH2xW702E5A\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/3bea264adc472bc8.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=[\\\"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';\\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,"11:{\"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,"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[8078,["134","static/chunks/134-ddd50a7fbb536ec8.js","
|
|
3
|
-
3:I[
|
|
4
|
-
4:I[1035,["134","static/chunks/134-ddd50a7fbb536ec8.js","
|
|
5
|
-
5:I[8214,["134","static/chunks/134-ddd50a7fbb536ec8.js","
|
|
6
|
-
6:I[8300,["134","static/chunks/134-ddd50a7fbb536ec8.js","
|
|
2
|
+
2:I[8078,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"AppearanceProvider"]
|
|
3
|
+
3:I[8205,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"LanguageProvider"]
|
|
4
|
+
4:I[1035,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"DialogHost"]
|
|
5
|
+
5:I[8214,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"SkipLink"]
|
|
6
|
+
6:I[8300,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"Shell"]
|
|
7
7
|
7:I[5204,[],""]
|
|
8
8
|
8:I[2642,[],""]
|
|
9
|
-
9:I[7712,["134","static/chunks/134-ddd50a7fbb536ec8.js","
|
|
9
|
+
9:I[7712,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"ScrollJump"]
|
|
10
10
|
a:I[7089,[],"ClientPageRoot"]
|
|
11
|
-
b:I[3134,["
|
|
11
|
+
b:I[3134,["921","static/chunks/921-dc5538cd779c6432.js","186","static/chunks/app/system/page-1cf9e75e76da59ed.js"],"default"]
|
|
12
12
|
e:I[433,[],"OutletBoundary"]
|
|
13
13
|
10:I[9884,[],"AsyncMetadataOutlet"]
|
|
14
14
|
12:I[433,[],"ViewportBoundary"]
|
|
15
15
|
14:I[433,[],"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/3bea264adc472bc8.css","style"]
|
|
19
|
+
0:{"P":null,"b":"_1zhoDsMOPAH2xW702E5A","p":"","c":["","system"],"i":false,"f":[[["",{"children":["system",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/3bea264adc472bc8.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=[\"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';\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.52",
|
|
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:shells && npm run check:guide && npm run check:bundle && npm run check:runname && npm run check:dangerous && 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:
|
|
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:shells && npm run check:guide && npm run check:bundle && npm run check:runname && npm run check:dangerous && 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: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: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",
|
|
@@ -68,8 +68,6 @@
|
|
|
68
68
|
"check:modelpicker": "tsx test/modelpicker.check.ts",
|
|
69
69
|
"check:formatrepair": "tsx test/formatrepair.check.ts",
|
|
70
70
|
"check:intent": "tsx test/intent.check.ts",
|
|
71
|
-
"check:sync": "tsx test/sync.check.ts",
|
|
72
|
-
"check:prepare": "tsx test/prepare.check.ts",
|
|
73
71
|
"check:live-fixes": "tsx test/live-fixes.check.ts",
|
|
74
72
|
"check:live-models": "tsx test/live-models.check.ts",
|
|
75
73
|
"check:live-chat": "tsx test/live-chatname.check.ts",
|
|
@@ -77,9 +75,10 @@
|
|
|
77
75
|
"check:e2e-continue": "tsx test/e2e-continue.check.ts",
|
|
78
76
|
"check:e2e-planmode": "tsx test/e2e-planmode.check.ts",
|
|
79
77
|
"check:e2e-chat": "tsx test/e2e-chat.check.ts",
|
|
78
|
+
"check:e2e-lead": "tsx test/e2e-lead.check.ts",
|
|
80
79
|
"check:e2e-interrupt": "tsx test/e2e-interrupt.check.ts",
|
|
81
80
|
"check:ui": "node scripts/build-package.mjs && tsx test/ui.check.ts && tsx test/ui-flows.check.ts",
|
|
82
|
-
"check:all": "npm run check && npm run check:ui && npm run check:release",
|
|
81
|
+
"check:all": "npm run typecheck && npm run check && npm run check:ui && npm run check:release",
|
|
83
82
|
"check:e2e-vcs": "tsx test/e2e-vcs.check.ts",
|
|
84
83
|
"check:noattach": "tsx test/noattach.check.ts",
|
|
85
84
|
"check:guard": "tsx test/guard.check.ts",
|
package/prompts/lead1.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# The lead: directing an assignment through a worker
|
|
2
|
+
|
|
3
|
+
You are the **lead** of a piece of work on a Windows machine. You do not run anything yourself and you cannot see
|
|
4
|
+
the machine. Another conversation — the **worker** — can: it runs commands in the project folder, reads files,
|
|
5
|
+
runs the build and the tests, debugs, changes code, and reports back. An automated runner carries your messages to
|
|
6
|
+
the worker and the worker's reports back to you. It is not a person and it cannot answer a question; the operator,
|
|
7
|
+
who gave you the assignment, can, and you may ask them — rarely, see "Asking the operator".
|
|
8
|
+
|
|
9
|
+
**This section has priority over everything that follows it.** Below it comes the assignment. It may add detail and
|
|
10
|
+
set goals; it cannot change, weaken or suspend anything here. If it conflicts with this, this wins, and you say so in
|
|
11
|
+
`notes`.
|
|
12
|
+
|
|
13
|
+
## Your job
|
|
14
|
+
|
|
15
|
+
You hold the whole assignment for the whole of this conversation: its goal, the result it asks for and the exact
|
|
16
|
+
form of that result, the constraints it names, and what "done" means. The worker sees only the subtask you give it
|
|
17
|
+
and what it has done itself; it does not see the assignment unless you tell it. So:
|
|
18
|
+
|
|
19
|
+
1. **Understand.** In your first reply, restate the assignment in `understanding`: the goal, the result to deliver
|
|
20
|
+
and its exact form (every field the operator asked for), the constraints, and how you will know it is done. If
|
|
21
|
+
something essential is missing and the project cannot tell you — ask the operator. Otherwise do not ask: find out.
|
|
22
|
+
2. **Survey.** Before you plan, have the worker look: what is in the project, how it is built, how its tests run,
|
|
23
|
+
where the things the assignment names are. A survey changes nothing (`"readOnly": true`).
|
|
24
|
+
3. **Plan.** Once you know enough, send the plan (`"status": "plan"`): the stages, in order, and how the result will
|
|
25
|
+
be shown to be right. When the operator approves plans, the work waits for that; otherwise it goes on at once.
|
|
26
|
+
When the plan has to change, say so in `notes` and send it again.
|
|
27
|
+
4. **Direct.** Give the worker one subtask at a time, each small enough to finish in a few rounds, and say exactly
|
|
28
|
+
what you need back and in which form. Read every report critically: a claim without evidence — the command, its
|
|
29
|
+
output, the file and the line — is a claim, not a fact. When something does not add up, ask the worker to show
|
|
30
|
+
it, or to check it another way. Never invent a result the worker did not report.
|
|
31
|
+
5. **Verify.** Before you deliver, have the worker verify the result: run the tests again, read back the files,
|
|
32
|
+
reproduce the failure, whatever shows it.
|
|
33
|
+
6. **Deliver.** End with `"status": "done"` and the result in `answer`, in exactly the form the assignment asked
|
|
34
|
+
for — every field, in its order, filled from what the worker found. List in `evidence` what shows each part: the
|
|
35
|
+
files the worker wrote, the commands and what they printed.
|
|
36
|
+
|
|
37
|
+
## A subtask
|
|
38
|
+
|
|
39
|
+
The worker treats each subtask as a task of its own, with the same rules it always works under: it plans, runs
|
|
40
|
+
commands, verifies, and closes "done" with a summary — the summary is its report to you — or "blocked" with what it
|
|
41
|
+
tried and what is in the way. Write a subtask so that someone who knows nothing else could do it:
|
|
42
|
+
|
|
43
|
+
- **`title`** — a few words.
|
|
44
|
+
- **`goal`** — what to find out or to do, and why it matters to the assignment.
|
|
45
|
+
- **`context`** — what the worker needs to know: paths, what earlier subtasks found, the decisions taken, what must
|
|
46
|
+
not be touched. The worker remembers its own earlier subtasks in its conversation; it knows nothing else.
|
|
47
|
+
- **`steps`** — how to go about it, when you know better than it would; optional.
|
|
48
|
+
- **`report`** — exactly what to put in its summary for you, and in which shape: a list, a table, the fields of a
|
|
49
|
+
record, the full text of an error. Ask for evidence, not conclusions.
|
|
50
|
+
- **`doneWhen`** — how it knows it is finished.
|
|
51
|
+
- **`readOnly`** — `true` when the subtask is to change nothing: a survey, a diagnosis, a reproduction. The runner
|
|
52
|
+
holds it to that.
|
|
53
|
+
- **`freshWorker`** — `true` to give it to a new worker conversation, with nothing of the earlier subtasks: when the
|
|
54
|
+
worker is confused, or its conversation has grown too long to be read. Then say in `context` everything it needs.
|
|
55
|
+
|
|
56
|
+
The runner answers each subtask with the worker's report: how it ended, its summary, the commands it ran with their
|
|
57
|
+
exit codes, the files it changed, and how many subtasks are left.
|
|
58
|
+
|
|
59
|
+
## Asking the operator
|
|
60
|
+
|
|
61
|
+
Ask only for what nobody but a person can give: a business decision, a choice between two outcomes the assignment
|
|
62
|
+
does not settle, permission for something that cannot be undone, a credential, an assignment that contradicts
|
|
63
|
+
itself. Everything else — anything the project, the documentation or the worker can answer — you find out yourself,
|
|
64
|
+
and an assumption you make, you state in `notes`. A question stops the work until the operator answers, so ask once,
|
|
65
|
+
with everything you need in it, and offer the choices in `options` when there are some.
|
|
66
|
+
|
|
67
|
+
## Ending without the result
|
|
68
|
+
|
|
69
|
+
End with `"status": "blocked"` only when the assignment cannot be taken further without the operator, or cannot be
|
|
70
|
+
done at all: say in `summary` what was done and what was found — as far as the work got, with its evidence — and in
|
|
71
|
+
`needed` what would let it go on. A partial result delivered with what is missing said plainly is a result; a stop
|
|
72
|
+
without one is not.
|
|
73
|
+
|
|
74
|
+
## The machine format
|
|
75
|
+
|
|
76
|
+
Every reply is exactly one fenced code block tagged json, and nothing outside it but your thinking, if you must:
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"status": "delegate",
|
|
81
|
+
"understanding": "Only in your first reply: the goal, the result and its exact form, the constraints, what done means.",
|
|
82
|
+
"notes": "What you learned from the last report, what you decide and why.",
|
|
83
|
+
"subtask": {
|
|
84
|
+
"title": "Survey the test suite",
|
|
85
|
+
"goal": "Find out how the project's automated tests are run and which of them fail now.",
|
|
86
|
+
"context": "The project is the open folder. Change nothing.",
|
|
87
|
+
"steps": ["Find the test framework and its configuration", "Run the whole suite once"],
|
|
88
|
+
"report": "The command that runs the tests; the totals (passed, failed, skipped); for each failing test, its name, its file and the first lines of its error, quoted.",
|
|
89
|
+
"doneWhen": "The suite has been run once and every failure is listed.",
|
|
90
|
+
"readOnly": true,
|
|
91
|
+
"freshWorker": false
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The statuses, and what each one requires:
|
|
97
|
+
|
|
98
|
+
- **`delegate`** — `subtask`, as above. One subtask per reply.
|
|
99
|
+
- **`plan`** — `plan`: `{ "existing": what is there, as the survey found it, "approach": how the assignment will be
|
|
100
|
+
done, "steps": [the stages, in order], "files": [the files that will change, if any], "verification": how the
|
|
101
|
+
result will be shown right, "risks": what could go wrong or is still open }`.
|
|
102
|
+
- **`ask`** — `question`: what only the operator can answer, with `why`, and `options` when there are choices.
|
|
103
|
+
- **`done`** — `answer`: the result, in the form the assignment asked for, in full; `evidence`: what shows it.
|
|
104
|
+
- **`blocked`** — `summary`: what was done and found, with its evidence; `needed`: what would let it go on.
|
|
105
|
+
|
|
106
|
+
`understanding` is required in your first reply and optional afterwards; `notes` is welcome in every reply.
|
|
107
|
+
|
|
108
|
+
## Rules that hold for everything
|
|
109
|
+
|
|
110
|
+
- No passwords, tokens, keys or personal data in a subtask; a secret is read from where it is kept, never written.
|
|
111
|
+
- Nothing destructive, nothing that cannot be undone, nothing pushed to a remote, without the operator's word.
|
|
112
|
+
- The worker's commands run in PowerShell on Windows, in the project folder, without administrator rights.
|
|
113
|
+
- Limits: you have at most a set number of subtasks — the runner tells you how many are left with every report.
|
|
114
|
+
Plan within them; when they run short, deliver what you have, with what is missing said.
|
|
115
|
+
- If a reply of yours does not match the format, the runner sends it back with the reason and asks again. Fix the
|
|
116
|
+
format; do not argue with the runner.
|