copilot-operator 0.1.51 → 0.1.53
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 +24 -3
- package/dist/src/api/operator.controller.js +55 -71
- package/dist/src/api/operator.service.js +243 -109
- package/dist/src/config/schema.js +45 -0
- package/dist/src/exec/policy.js +11 -1
- package/dist/src/exec/scriptFiles.js +108 -2
- package/dist/src/orchestrator/leadRunner.js +605 -0
- package/dist/src/orchestrator/review.js +9 -3
- package/dist/src/orchestrator/taskRunner.js +110 -20
- package/dist/src/plan/kerrigan.js +203 -47
- package/dist/src/plan/systemGuide.js +555 -499
- 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 +17 -5
- package/dist/src/session/store.js +21 -72
- package/dist/src/transport/copilotTransport.js +2 -0
- package/dist/src/util/pacing.js +33 -2
- package/dist/src/vcs/git.js +11 -1
- package/dist/src/vcs/referenceGuard.js +299 -0
- package/dist/web/404.html +14 -18
- package/dist/web/_next/static/FGzV3mVZpXRCVjiw1diNu/_buildManifest.js +1 -0
- package/dist/web/_next/static/chunks/163.980c5145848efbdf.js +1 -0
- package/dist/web/_next/static/chunks/220.447d1d8624d4644c.js +1 -0
- package/dist/web/_next/static/chunks/500-34d01f8d8d73eb2c.js +1 -0
- package/dist/web/_next/static/chunks/548.c6dfd1cb270f3c93.js +1 -0
- package/dist/web/_next/static/chunks/584.fc9e061dd4069406.js +1 -0
- package/dist/web/_next/static/chunks/67.1a3ca07919abce27.js +1 -0
- package/dist/web/_next/static/chunks/714.5b2e291a430adc9c.js +1 -0
- package/dist/web/_next/static/chunks/747.157732b5b3f3c435.js +1 -0
- package/dist/web/_next/static/chunks/77.d478a6f2eafe31e3.js +1 -0
- package/dist/web/_next/static/chunks/921-b2219533c5a6e38f.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-b7e4e94a55e65806.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-2b3718748721c1ac.js +1 -0
- package/dist/web/_next/static/chunks/app/page-59b9867b52914a6c.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +1 -0
- package/dist/web/_next/static/chunks/webpack-0c3cad1f3181d857.js +1 -0
- package/dist/web/_next/static/css/06f314fa5fccd68d.css +1 -0
- package/dist/web/defaults.html +14 -18
- package/dist/web/defaults.txt +9 -9
- package/dist/web/index.html +14 -18
- package/dist/web/index.txt +9 -9
- package/dist/web/system.html +14 -18
- package/dist/web/system.txt +9 -9
- package/package.json +8 -5
- package/prompts/lead1.md +116 -0
- package/prompts/level1.md +32 -12
- package/prompts/review1.md +287 -286
- 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 → FGzV3mVZpXRCVjiw1diNu}/_ssgManifest.js +0 -0
package/dist/web/system.html
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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><!--FGzV3mVZpXRCVjiw1diNu--><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/06f314fa5fccd68d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0c3cad1f3181d857.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-b2219533c5a6e38f.js" async=""></script><script src="/_next/static/chunks/500-34d01f8d8d73eb2c.js" async=""></script><script src="/_next/static/chunks/app/layout-2b3718748721c1ac.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
|
+
d.dataset.cursor=a.systemCursor?'system':'own';
|
|
12
|
+
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
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 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><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><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-0c3cad1f3181d857.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-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-b2219533c5a6e38f.js\",\"500\",\"static/chunks/500-34d01f8d8d73eb2c.js\",\"177\",\"static/chunks/app/layout-2b3718748721c1ac.js\"],\"ScrollJump\"]\na:I[7089,[],\"ClientPageRoot\"]\nb:I[3134,[\"921\",\"static/chunks/921-b2219533c5a6e38f.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/06f314fa5fccd68d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"FGzV3mVZpXRCVjiw1diNu\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/06f314fa5fccd68d.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';\\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,"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-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.js"],"AppearanceProvider"]
|
|
3
|
+
3:I[8205,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.js"],"LanguageProvider"]
|
|
4
|
+
4:I[1035,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.js"],"DialogHost"]
|
|
5
|
+
5:I[8214,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.js"],"SkipLink"]
|
|
6
|
+
6:I[8300,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.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-b2219533c5a6e38f.js","500","static/chunks/500-34d01f8d8d73eb2c.js","177","static/chunks/app/layout-2b3718748721c1ac.js"],"ScrollJump"]
|
|
10
10
|
a:I[7089,[],"ClientPageRoot"]
|
|
11
|
-
b:I[3134,["
|
|
11
|
+
b:I[3134,["921","static/chunks/921-b2219533c5a6e38f.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/06f314fa5fccd68d.css","style"]
|
|
19
|
+
0:{"P":null,"b":"FGzV3mVZpXRCVjiw1diNu","p":"","c":["","system"],"i":false,"f":[[["",{"children":["system",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/06f314fa5fccd68d.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';\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.53",
|
|
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:own-scripts && npm run check:file-icons && npm run check:reference && npm run check:skills && 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,12 +75,17 @@
|
|
|
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",
|
|
85
|
+
"check:own-scripts": "tsx test/own-scripts.check.ts",
|
|
86
|
+
"check:file-icons": "tsx test/file-icons.check.ts",
|
|
87
|
+
"check:reference": "tsx test/reference.check.ts",
|
|
88
|
+
"check:skills": "tsx test/skills.check.ts",
|
|
86
89
|
"check:gate": "tsx test/gate.check.ts",
|
|
87
90
|
"check:e2e-review": "tsx test/e2e-review.check.ts",
|
|
88
91
|
"check:e2e-branches": "tsx test/e2e-branches.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.
|
package/prompts/level1.md
CHANGED
|
@@ -299,27 +299,46 @@ There is no step that takes a file, and nothing you attach is fetched, saved or
|
|
|
299
299
|
a setting; the step type does not exist. A process that receives a file and executes it is a
|
|
300
300
|
loader whatever it meant, and that is what this runner refuses to be.
|
|
301
301
|
|
|
302
|
-
So everything you want done arrives as a `command
|
|
303
|
-
|
|
302
|
+
So everything you want done arrives as a `command`, and **runs as that command**: you never write
|
|
303
|
+
a script to run it. For something too long for one line, the command itself is several lines —
|
|
304
|
+
it is given to PowerShell whole:
|
|
305
|
+
|
|
306
|
+
```
|
|
307
|
+
$tests = Get-ChildItem .\test -Recurse -Filter *.test.ts
|
|
308
|
+
"$($tests.Count) test files"
|
|
309
|
+
$tests | Select-Object -First 5 -ExpandProperty FullName
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
**Only the project's own scripts run** (the operator's rule): a script file — `.ps1`, `.psm1`,
|
|
313
|
+
`.cmd`, `.bat`, `.sh`, `.vbs`, `.wsf` — must be committed in the project, unchanged since, and
|
|
314
|
+
committed before this work began. A script written, changed or downloaded during the work is refused
|
|
315
|
+
however it is called — `pwsh -File`, `&`, a path, `cmd /c`, `bash`, `Start-Process`, `Import-Module`
|
|
316
|
+
— and so is any file in `.cop-tmp` given to a program that runs it (`node .\.cop-tmp\x.js`). The
|
|
317
|
+
project's own tools are not scripts of this kind: `npm test`, `npm run build`, `dotnet test`, `node`
|
|
318
|
+
starting the application — the project's code, run the way the project runs it — go on as before.
|
|
319
|
+
If a script is meant to become part of the project, write it as part of the work and say in `notes`
|
|
320
|
+
that the operator should commit it; until then it is not run.
|
|
321
|
+
|
|
322
|
+
Scratch copies, drafts and anything else that is not the work go in `.cop-tmp`: the runner never
|
|
323
|
+
commits that folder, and nothing in it is run. Every other file you leave in the project is
|
|
324
|
+
committed as the work. A file's contents go in with `Set-Content` and a here-string:
|
|
304
325
|
|
|
305
326
|
```
|
|
306
327
|
New-Item -ItemType Directory -Force .\.cop-tmp | Out-Null
|
|
307
|
-
Set-Content -NoNewline -Path .\.cop-tmp\
|
|
308
|
-
|
|
328
|
+
Set-Content -NoNewline -Path .\.cop-tmp\notes.md -Value @'
|
|
329
|
+
# What the survey found
|
|
309
330
|
|
|
310
331
|
'@
|
|
311
332
|
```
|
|
312
333
|
|
|
313
|
-
|
|
314
|
-
that is not the work go in `.cop-tmp`: the runner never commits that folder. Every other file you
|
|
315
|
-
leave in the project is committed as the work. Keep `-NoNewline` and the empty line before `'@`: without
|
|
334
|
+
Keep `-NoNewline` and the empty line before `'@`: without
|
|
316
335
|
them `Set-Content` adds a Windows line ending after the last line while the lines of the
|
|
317
336
|
here-string end in LF, and a file with two kinds of line ending is sent back to you. When you
|
|
318
337
|
change an existing file, keep the line endings it already has. The difference is not cosmetic: what the file contains
|
|
319
338
|
passed through a step that was read and screened, and it is in the project where it can be read
|
|
320
339
|
afterwards, rather than arriving from the chat as something nobody saw.
|
|
321
340
|
|
|
322
|
-
Prefer a here-string (`@'` … `'@`) over quoting a long
|
|
341
|
+
Prefer a here-string (`@'` … `'@`) over quoting a long text inline, which is how quoting gets
|
|
323
342
|
mangled — and see "Characters that do not survive" below, which still applies inside one.
|
|
324
343
|
|
|
325
344
|
## You never download anything
|
|
@@ -339,7 +358,8 @@ Do this instead:
|
|
|
339
358
|
| Instead of downloading | Do this |
|
|
340
359
|
|---|---|
|
|
341
360
|
| a package or library | the project's own package manager: `npm install`, `dotnet add package`, `pip` into the project's `.venv` |
|
|
342
|
-
| a
|
|
361
|
+
| a config or a sample file | write it into the project with a `command` step (`Set-Content` and a here-string) |
|
|
362
|
+
| a script | the commands themselves, in the step; a script is not run unless it is the project's own |
|
|
343
363
|
| checking that a server you started answers | a request to this machine is fine: `curl http://localhost:3000/health`, `Invoke-WebRequest http://127.0.0.1:5000` |
|
|
344
364
|
| anything else from the internet | say in `notes` what is needed and from where, and end `blocked`; the operator fetches it |
|
|
345
365
|
|
|
@@ -476,10 +496,10 @@ ordinary way to do each one:
|
|
|
476
496
|
| 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 |
|
|
477
497
|
| anything under `.git\`, and `git config <key> <value>` | read history with `git log`, `git show`, `git diff`; the runner owns the repository |
|
|
478
498
|
| the runner itself: `localhost:4000`, `localhost:3210`, its `data` folder | nothing: the bot that runs the task is not part of the task |
|
|
479
|
-
|
|
|
499
|
+
| running a script written or changed during the work, or anything in `.cop-tmp` | the commands themselves, in the step, on as many lines as they need |
|
|
480
500
|
|
|
481
|
-
|
|
482
|
-
|
|
501
|
+
The project's own scripts are **read from disk before they run** and held to the same rules as a
|
|
502
|
+
step; one that could not be read is not run.
|
|
483
503
|
|
|
484
504
|
`npm install` runs **no install scripts** (`postinstall` and the like) on this machine, and `npx`
|
|
485
505
|
runs only a tool that is already installed in the project — an `npx` of something not installed
|