copilot-operator 0.1.50 → 0.1.51
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 +582 -574
- package/dist/src/api/operator.controller.js +77 -932
- package/dist/src/api/operator.service.js +197 -2461
- package/dist/src/orchestrator/hold.js +49 -0
- package/dist/src/orchestrator/taskRunner.js +157 -23
- package/dist/src/plan/kerrigan.js +107 -0
- package/dist/src/plan/systemGuide.js +438 -3374
- package/dist/src/session/chatNotice.js +76 -0
- package/dist/src/session/store.js +2 -57
- package/dist/src/session/workspace.js +52 -5
- package/dist/src/transport/chatTransport.js +1 -1
- package/dist/src/transport/copilotTransport.js +133 -1
- package/dist/web/404.html +5 -3
- package/dist/web/_next/static/chunks/134-ddd50a7fbb536ec8.js +1 -0
- package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +1 -0
- package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +1 -0
- package/dist/web/_next/static/chunks/867-869900ec999e6345.js +1 -0
- package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +1 -0
- package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +1 -0
- package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +1 -0
- package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +1 -0
- package/dist/web/_next/static/css/8b14cb3cf0051138.css +1 -0
- package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +1 -0
- package/dist/web/appearance.html +5 -3
- package/dist/web/appearance.txt +22 -23
- package/dist/web/defaults.html +5 -3
- package/dist/web/defaults.txt +22 -23
- package/dist/web/index.html +5 -3
- package/dist/web/index.txt +22 -23
- package/dist/web/level1.html +5 -3
- package/dist/web/level1.txt +22 -23
- package/dist/web/presets.html +6 -4
- package/dist/web/presets.txt +22 -23
- package/dist/web/system.html +5 -3
- package/dist/web/system.txt +22 -23
- package/package.json +3 -20
- package/dist/src/api/saveToDesktop.js +0 -157
- package/dist/src/plan/brief.js +0 -2003
- package/dist/src/plan/changes.js +0 -217
- package/dist/src/plan/script.js +0 -1014
- package/dist/src/session/debugExport.js +0 -165
- package/dist/src/session/exportRecord.js +0 -277
- package/dist/src/session/metrics.js +0 -95
- package/dist/src/vcs/startChoice.js +0 -367
- package/dist/web/_next/static/chunks/197-f7c33a0114fc3db3.js +0 -1
- package/dist/web/_next/static/chunks/499-751e0be9d4f86e2d.js +0 -1
- package/dist/web/_next/static/chunks/534-56c68930a1a3c10f.js +0 -1
- package/dist/web/_next/static/chunks/549-c32dd718a1809d4d.js +0 -1
- package/dist/web/_next/static/chunks/699-9d031f8c145a0465.js +0 -1
- package/dist/web/_next/static/chunks/867-0e5d0d5472bf185f.js +0 -1
- package/dist/web/_next/static/chunks/app/appearance/page-a18019cdc395de3d.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-614be29d185a2947.js +0 -1
- package/dist/web/_next/static/chunks/app/history/page-95bab4c1b1ff9339.js +0 -1
- package/dist/web/_next/static/chunks/app/import/page-8ef75fc08638e75f.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-a1314921eeba8ad5.js +0 -1
- package/dist/web/_next/static/chunks/app/level1/page-dd3ebf37d29dce4f.js +0 -1
- package/dist/web/_next/static/chunks/app/page-4d8f0851fe672925.js +0 -1
- package/dist/web/_next/static/chunks/app/presets/page-93ab518db67e52a2.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/page-28376d2e4a9b4738.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/view/page-adb64f8ba3d8c06e.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-227a259e383ca2a0.js +0 -1
- package/dist/web/_next/static/css/4335e4ce269ba1ea.css +0 -1
- package/dist/web/_next/static/z74_FBfnnXW5IJCHTgTH2/_buildManifest.js +0 -1
- package/dist/web/history.html +0 -16
- package/dist/web/history.txt +0 -26
- package/dist/web/import.html +0 -16
- package/dist/web/import.txt +0 -26
- package/dist/web/sessions/view.html +0 -16
- package/dist/web/sessions/view.txt +0 -26
- package/dist/web/sessions.html +0 -16
- package/dist/web/sessions.txt +0 -26
- package/prompts/organisation.bg.md +0 -43
- package/prompts/organisation.en.md +0 -43
- package/prompts/persona.bg.md +0 -17
- package/prompts/persona.en.md +0 -17
- package/prompts/work.bg.md +0 -19
- package/prompts/work.en.md +0 -19
- /package/dist/web/_next/static/{z74_FBfnnXW5IJCHTgTH2 → eqTUTH_SJtBgNgq8Zzy3n}/_ssgManifest.js +0 -0
package/dist/web/system.html
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--eqTUTH_SJtBgNgq8Zzy3n--><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/8b14cb3cf0051138.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/134-ddd50a7fbb536ec8.js" async=""></script><script src="/_next/static/chunks/867-869900ec999e6345.js" async=""></script><script src="/_next/static/chunks/643-e85d221d57900ed7.js" async=""></script><script src="/_next/static/chunks/190-70555f20dd0da19b.js" async=""></script><script src="/_next/static/chunks/app/layout-b4fc21e26e1bad95.js" async=""></script><script src="/_next/static/chunks/app/system/page-2a270bb885885821.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>
|
|
2
2
|
(function () {
|
|
3
3
|
try {
|
|
4
4
|
var d = document.documentElement;
|
|
5
5
|
var raw = localStorage.getItem('cop.appearance');
|
|
6
6
|
var a = raw ? JSON.parse(raw) : {};
|
|
7
7
|
if (!a || typeof a !== 'object') a = {};
|
|
8
|
-
|
|
8
|
+
// "system", the default: whatever the machine is set to, light or dark (2026-10-20).
|
|
9
|
+
d.dataset.theme = a.theme === 'dark' || a.theme === 'light' ? a.theme : window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
9
10
|
d.dataset.textsize = ["small","normal","large","huge","giant"].indexOf(a.textSize) >= 0 ? a.textSize : 'normal';
|
|
10
11
|
d.dataset.contrast = a.highContrast ? 'high' : 'normal';
|
|
11
12
|
d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';
|
|
12
13
|
d.dataset.links = a.underlineLinks ? 'underline' : 'plain';
|
|
13
14
|
d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
|
|
15
|
+
d.dataset.night = a.nightLight ? 'on' : 'off';
|
|
14
16
|
} catch (e) {}
|
|
15
17
|
})();
|
|
16
|
-
</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="/sessions"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a 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,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"AppearanceProvider\"]\n3:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"LanguageProvider\"]\n4:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"DialogHost\"]\n5:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"SkipLink\"]\n6:I[966,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"ScrollJump\"]\na:I[1701,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"StartDialogHost\"]\nb:I[7089,[],\"ClientPageRoot\"]\nc:I[3134,[\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"186\",\"static/chunk"])</script><script>self.__next_f.push([1,"s/app/system/page-227a259e383ca2a0.js\"],\"default\"]\nf:I[433,[],\"OutletBoundary\"]\n11:I[9884,[],\"AsyncMetadataOutlet\"]\n13:I[433,[],\"ViewportBoundary\"]\n15:I[433,[],\"MetadataBoundary\"]\n16:\"$Sreact.suspense\"\n18:I[3536,[],\"\"]\n:HL[\"/_next/static/css/4335e4ce269ba1ea.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"z74_FBfnnXW5IJCHTgTH2\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/4335e4ce269ba1ea.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\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 d.dataset.theme = a.theme === 'dark' ? '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 } 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,{}],[\"$\",\"$La\",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\":[[\"$\",\"$Lb\",null,{\"Component\":\"$c\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@d\",\"$@e\"]}],null,[\"$\",\"$Lf\",null,{\"children\":[\"$L10\",[\"$\",\"$L11\",null,{\"promise\":\"$@12\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L13\",null,{\"children\":\"$L14\"}],null],[\"$\",\"$L15\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$16\",null,{\"fallback\":null,\"children\":\"$L17\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$18\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"d:{}\ne:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"14:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n10:null\n"])</script><script>self.__next_f.push([1,"12:{\"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,"17:\"$12:metadata\"\n"])</script></body></html>
|
|
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>
|
package/dist/web/system.txt
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[8078,["
|
|
3
|
-
3:I[867,["
|
|
4
|
-
4:I[1035,["
|
|
5
|
-
5:I[8214,["
|
|
6
|
-
6:I[
|
|
2
|
+
2: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"]
|
|
3
|
+
3: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"]
|
|
4
|
+
4: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"]
|
|
5
|
+
5: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"]
|
|
6
|
+
6: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"]
|
|
7
7
|
7:I[5204,[],""]
|
|
8
8
|
8:I[2642,[],""]
|
|
9
|
-
9:I[7712,["
|
|
10
|
-
a:I[
|
|
11
|
-
b:I[
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
15:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
:
|
|
20
|
-
|
|
21
|
-
d:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
17:"$12:metadata"
|
|
9
|
+
9: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"]
|
|
10
|
+
a:I[7089,[],"ClientPageRoot"]
|
|
11
|
+
b:I[3134,["867","static/chunks/867-869900ec999e6345.js","186","static/chunks/app/system/page-2a270bb885885821.js"],"default"]
|
|
12
|
+
e:I[433,[],"OutletBoundary"]
|
|
13
|
+
10:I[9884,[],"AsyncMetadataOutlet"]
|
|
14
|
+
12:I[433,[],"ViewportBoundary"]
|
|
15
|
+
14:I[433,[],"MetadataBoundary"]
|
|
16
|
+
15:"$Sreact.suspense"
|
|
17
|
+
17:I[3536,[],""]
|
|
18
|
+
:HL["/_next/static/css/8b14cb3cf0051138.css","style"]
|
|
19
|
+
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 && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n d.dataset.textsize = [\"small\",\"normal\",\"large\",\"huge\",\"giant\"].indexOf(a.textSize) >= 0 ? a.textSize : 'normal';\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\n 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}
|
|
20
|
+
c:{}
|
|
21
|
+
d:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
|
|
22
|
+
13:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
23
|
+
f:null
|
|
24
|
+
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"}
|
|
25
|
+
16:"$11:metadata"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-operator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
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:
|
|
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:sync && npm run check:e2e-run && npm run check:e2e-continue && npm run check:e2e-planmode && npm run check:e2e-chat && 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:prepare && 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",
|
|
@@ -29,15 +29,12 @@
|
|
|
29
29
|
"start": "node scripts/dev.mjs",
|
|
30
30
|
"dev": "node scripts/dev.mjs --open",
|
|
31
31
|
"check:vcs": "tsx test/vcs.check.ts",
|
|
32
|
-
"check:plan": "tsx test/plan.check.ts",
|
|
33
32
|
"check:checks": "tsx test/checks.check.ts",
|
|
34
33
|
"check:workdir": "tsx test/workdir.check.ts",
|
|
35
34
|
"check:processes": "tsx test/processes.check.ts",
|
|
36
35
|
"check:environment": "tsx test/environment.check.ts",
|
|
37
|
-
"check:clock": "tsx test/clock.check.ts",
|
|
38
36
|
"check:crash": "tsx test/crash.check.ts",
|
|
39
37
|
"check:clipboard": "tsx test/clipboard.check.ts",
|
|
40
|
-
"check:restart": "tsx test/restart.check.ts",
|
|
41
38
|
"check:review": "tsx test/review.check.ts",
|
|
42
39
|
"check:review-evidence": "tsx test/review-evidence.check.ts",
|
|
43
40
|
"check:settings-precedence": "tsx test/settings-precedence.check.ts",
|
|
@@ -45,7 +42,6 @@
|
|
|
45
42
|
"check:workspace-git": "tsx test/workspace-git.check.ts",
|
|
46
43
|
"check:model-help": "tsx test/model-help.check.ts",
|
|
47
44
|
"check:shells": "tsx test/shells.check.ts",
|
|
48
|
-
"check:save": "tsx test/save.check.ts",
|
|
49
45
|
"check:guide": "tsx test/guide.check.ts",
|
|
50
46
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json && npm run typecheck --workspace web",
|
|
51
47
|
"check:bundle": "tsx test/bundle.check.ts",
|
|
@@ -58,9 +54,6 @@
|
|
|
58
54
|
"check:isolation": "tsx test/isolation.check.ts",
|
|
59
55
|
"check:security": "tsx test/security.check.ts",
|
|
60
56
|
"check:update": "tsx test/update.check.ts",
|
|
61
|
-
"check:persona": "tsx test/persona.check.ts",
|
|
62
|
-
"check:script": "tsx test/script.check.ts",
|
|
63
|
-
"check:batch": "tsx test/batch.check.ts",
|
|
64
57
|
"check:confinement": "tsx test/confinement.check.ts",
|
|
65
58
|
"check:network": "tsx test/network.check.ts",
|
|
66
59
|
"check:hardening": "tsx test/hardening.check.ts",
|
|
@@ -72,7 +65,6 @@
|
|
|
72
65
|
"check:integrity": "tsx test/integrity.check.ts",
|
|
73
66
|
"check:scope": "tsx test/scope.check.ts",
|
|
74
67
|
"check:progress": "tsx test/progress.check.ts",
|
|
75
|
-
"check:metrics": "tsx test/metrics.check.ts",
|
|
76
68
|
"check:modelpicker": "tsx test/modelpicker.check.ts",
|
|
77
69
|
"check:formatrepair": "tsx test/formatrepair.check.ts",
|
|
78
70
|
"check:intent": "tsx test/intent.check.ts",
|
|
@@ -84,8 +76,6 @@
|
|
|
84
76
|
"check:e2e-run": "tsx test/e2e-run.check.ts",
|
|
85
77
|
"check:e2e-continue": "tsx test/e2e-continue.check.ts",
|
|
86
78
|
"check:e2e-planmode": "tsx test/e2e-planmode.check.ts",
|
|
87
|
-
"check:e2e-undo": "tsx test/e2e-undo.check.ts",
|
|
88
|
-
"check:e2e-kerrigan": "tsx test/e2e-kerrigan.check.ts",
|
|
89
79
|
"check:e2e-chat": "tsx test/e2e-chat.check.ts",
|
|
90
80
|
"check:e2e-interrupt": "tsx test/e2e-interrupt.check.ts",
|
|
91
81
|
"check:ui": "node scripts/build-package.mjs && tsx test/ui.check.ts && tsx test/ui-flows.check.ts",
|
|
@@ -94,27 +84,20 @@
|
|
|
94
84
|
"check:noattach": "tsx test/noattach.check.ts",
|
|
95
85
|
"check:guard": "tsx test/guard.check.ts",
|
|
96
86
|
"check:gate": "tsx test/gate.check.ts",
|
|
97
|
-
"check:e2e-batch": "tsx test/e2e-batch.check.ts",
|
|
98
87
|
"check:e2e-review": "tsx test/e2e-review.check.ts",
|
|
99
88
|
"check:e2e-branches": "tsx test/e2e-branches.check.ts",
|
|
100
89
|
"check:e2e-loop": "tsx test/e2e-loop.check.ts",
|
|
101
90
|
"check:transport": "tsx test/transport.check.ts",
|
|
102
|
-
"check:e2e-plan": "tsx test/e2e-plan.check.ts",
|
|
103
91
|
"check:exec": "tsx test/exec.check.ts",
|
|
104
92
|
"check:pins": "tsx test/pins.check.ts",
|
|
105
93
|
"check:release": "tsx test/release.check.ts",
|
|
106
94
|
"check:ui-flows": "tsx test/ui-flows.check.ts",
|
|
107
95
|
"check:login": "tsx test/login.check.ts",
|
|
108
|
-
"check:order": "tsx test/order.check.ts",
|
|
109
96
|
"check:snapshot": "tsx test/snapshot.check.ts",
|
|
110
97
|
"check:inputs": "tsx test/inputs.check.ts",
|
|
111
|
-
"check:e2e-inputs": "tsx test/e2e-inputs.check.ts",
|
|
112
98
|
"check:attempts": "tsx test/attempts.check.ts",
|
|
113
99
|
"check:finding-ids": "tsx test/finding-ids.check.ts",
|
|
114
|
-
"check:e2e-commit": "tsx test/e2e-commit.check.ts"
|
|
115
|
-
"check:e2e-retry-inputs": "tsx test/e2e-retry-inputs.check.ts",
|
|
116
|
-
"check:e2e-run-vcs": "tsx test/e2e-run-vcs.check.ts",
|
|
117
|
-
"check:startbranch": "tsx test/startbranch.check.ts"
|
|
100
|
+
"check:e2e-commit": "tsx test/e2e-commit.check.ts"
|
|
118
101
|
},
|
|
119
102
|
"dependencies": {
|
|
120
103
|
"@nestjs/common": "^12.0.3",
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A log, on the Desktop, with Explorer already pointing at it.
|
|
3
|
-
*
|
|
4
|
-
* The operator does not read these logs in a browser. They run the bot, and then they hand
|
|
5
|
-
* what came out of it to a separate chat that orchestrates the whole effort. Offering the log
|
|
6
|
-
* as a page in a new tab was answering a question nobody had: getting it from that tab into
|
|
7
|
-
* the chat meant save-as, then remembering where the browser put it, then finding it again,
|
|
8
|
-
* then dragging it. Four steps, every one of them somewhere else on the screen.
|
|
9
|
-
*
|
|
10
|
-
* So the log is written as a file instead, and Explorer is opened on it with the file already
|
|
11
|
-
* selected. One press, and the thing the operator wants to drag is under the cursor. The
|
|
12
|
-
* browser is not asked to be a file manager, because it is not one.
|
|
13
|
-
*
|
|
14
|
-
* The files go into one folder under the Desktop rather than loose on it. A Desktop that
|
|
15
|
-
* slowly fills with task logs is a worse outcome than the tab ever was, and a folder that is
|
|
16
|
-
* always the same one is also a place the operator learns, so the second log is found without
|
|
17
|
-
* being revealed at all.
|
|
18
|
-
*
|
|
19
|
-
* Nothing here overwrites. A log that was saved once may already have been dragged into a
|
|
20
|
-
* chat, attached to a message or renamed by somebody; writing over it because the same button
|
|
21
|
-
* was pressed twice would destroy a file the bot has no claim on. Every save earns its own
|
|
22
|
-
* name, and the timestamp in that name is what tells two saves of one attempt apart.
|
|
23
|
-
*
|
|
24
|
-
* Revealing is a Windows idea and this module says so plainly anywhere else, in the manner of
|
|
25
|
-
* `folderPicker.ts`: the file is still written, and the caller is told where, so the feature
|
|
26
|
-
* degrades to something useful rather than to an error.
|
|
27
|
-
*/
|
|
28
|
-
import { spawn } from 'node:child_process';
|
|
29
|
-
import { existsSync } from 'node:fs';
|
|
30
|
-
import { mkdir, writeFile } from 'node:fs/promises';
|
|
31
|
-
import { extname, join } from 'node:path';
|
|
32
|
-
import { resolveDesktopDir } from '../context/desktopDir.js';
|
|
33
|
-
/** The one folder under the Desktop that every saved log lands in. */
|
|
34
|
-
export const LOGS_FOLDER = 'copilot-operator-logs';
|
|
35
|
-
/** The folder every saved log goes into. */
|
|
36
|
-
export function logsDir(env = process.env) {
|
|
37
|
-
return join(resolveDesktopDir(env), LOGS_FOLDER);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* One part of a file name, made safe for NTFS.
|
|
41
|
-
*
|
|
42
|
-
* Session names and task titles are prose written by a human, so they carry colons, slashes
|
|
43
|
-
* and quotation marks as a matter of course — every one of them illegal in a Windows file
|
|
44
|
-
* name. A name Windows refuses is a save that fails for a reason the operator cannot act on,
|
|
45
|
-
* so the illegal characters become dashes rather than a refusal. The trailing dots and spaces
|
|
46
|
-
* go too: Windows silently drops them, which would leave the path the caller was told about
|
|
47
|
-
* and the file actually on disk disagreeing.
|
|
48
|
-
*/
|
|
49
|
-
export function sanitiseNamePart(part, limit = 60) {
|
|
50
|
-
const cleaned = part
|
|
51
|
-
.replace(/[<>:"/\\|?*\u0000-\u001f]/g, '-')
|
|
52
|
-
.replace(/\s+/g, ' ')
|
|
53
|
-
.trim()
|
|
54
|
-
.slice(0, limit)
|
|
55
|
-
.replace(/[. ]+$/, '');
|
|
56
|
-
return cleaned.length > 0 ? cleaned : 'unnamed';
|
|
57
|
-
}
|
|
58
|
-
/** The timestamp in a file name: sortable, readable, and legal, so local time with no colons. */
|
|
59
|
-
function stampOf(at) {
|
|
60
|
-
const two = (n) => String(n).padStart(2, '0');
|
|
61
|
-
return (`${at.getFullYear()}-${two(at.getMonth() + 1)}-${two(at.getDate())}` +
|
|
62
|
-
`-${two(at.getHours())}${two(at.getMinutes())}${two(at.getSeconds())}`);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* The name a saved log is given: the session, the task, the attempt and when it was saved.
|
|
66
|
-
*
|
|
67
|
-
* All four are there because the operator ends up with a folder of these and has to tell them
|
|
68
|
-
* apart by sight, in the drag-and-drop list of a chat, without opening any of them.
|
|
69
|
-
*/
|
|
70
|
-
export function logFileName(naming, at = new Date()) {
|
|
71
|
-
const parts = [sanitiseNamePart(naming.session, 40), sanitiseNamePart(naming.task, 60)];
|
|
72
|
-
if (naming.attempt !== undefined)
|
|
73
|
-
parts.push(`attempt ${naming.attempt}`);
|
|
74
|
-
// A task's own file keeps its extension; the consolidated log is text and says so.
|
|
75
|
-
const extension = naming.file ? extname(naming.file) || '.txt' : '.txt';
|
|
76
|
-
if (naming.file) {
|
|
77
|
-
const stem = naming.file.slice(0, naming.file.length - extname(naming.file).length);
|
|
78
|
-
parts.push(sanitiseNamePart(stem, 50));
|
|
79
|
-
}
|
|
80
|
-
parts.push(stampOf(at));
|
|
81
|
-
return `${parts.join(' - ')}${extension}`;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* The asked-for name, or the first free variation of it.
|
|
85
|
-
*
|
|
86
|
-
* Two saves inside the same second collide on the timestamp, and so does a folder restored
|
|
87
|
-
* from a backup. Windows' own ` (2)` suffix is used because the operator has seen it before
|
|
88
|
-
* and knows what it means.
|
|
89
|
-
*/
|
|
90
|
-
export function freeName(dir, fileName, taken = existsSync) {
|
|
91
|
-
if (!taken(join(dir, fileName)))
|
|
92
|
-
return fileName;
|
|
93
|
-
const extension = extname(fileName);
|
|
94
|
-
const stem = fileName.slice(0, fileName.length - extension.length);
|
|
95
|
-
for (let n = 2; n < 1000; n += 1) {
|
|
96
|
-
const candidate = `${stem} (${n})${extension}`;
|
|
97
|
-
if (!taken(join(dir, candidate)))
|
|
98
|
-
return candidate;
|
|
99
|
-
}
|
|
100
|
-
// A thousand collisions is not a folder anyone is still reading, so stop guessing politely.
|
|
101
|
-
return `${stem} (${Date.now()})${extension}`;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Explorer, opened on the folder with the file selected.
|
|
105
|
-
*
|
|
106
|
-
* `explorer.exe` exits with a non-zero code when it has done exactly what was asked, which is
|
|
107
|
-
* long-standing and documented behaviour rather than a bug to work around, so the exit code is
|
|
108
|
-
* ignored entirely. Only a failure to start the process at all means the reveal did not
|
|
109
|
-
* happen. The arguments go through verbatim because Explorer parses `/select,"<path>"` itself
|
|
110
|
-
* and Node's own quoting of an argument with spaces in it would leave it parsing something
|
|
111
|
-
* else.
|
|
112
|
-
*
|
|
113
|
-
* `windowsHide` is deliberately not set, unlike everywhere else in this codebase that starts a
|
|
114
|
-
* process: it asks Windows to start the child with its window hidden, and a hidden window is
|
|
115
|
-
* the exact opposite of the point here. Explorer is a windowed program with no console of its
|
|
116
|
-
* own, so nothing flashes for leaving it off.
|
|
117
|
-
*/
|
|
118
|
-
export const revealInExplorer = (path) => new Promise((settle, fail) => {
|
|
119
|
-
const child = spawn('explorer.exe', [`/select,"${path}"`], {
|
|
120
|
-
windowsVerbatimArguments: true,
|
|
121
|
-
detached: true,
|
|
122
|
-
stdio: 'ignore',
|
|
123
|
-
});
|
|
124
|
-
child.on('error', fail);
|
|
125
|
-
// Explorer outlives the API process; nothing here waits for it to close.
|
|
126
|
-
child.on('spawn', () => {
|
|
127
|
-
child.unref();
|
|
128
|
-
settle();
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* Writes the text to the Desktop folder and opens Explorer on it.
|
|
133
|
-
*
|
|
134
|
-
* Failing to reveal is not failing to save. The file is on disk either way and the caller is
|
|
135
|
-
* told where, because a path the operator can paste into an address bar is still most of what
|
|
136
|
-
* they wanted.
|
|
137
|
-
*/
|
|
138
|
-
export async function saveAndReveal(text, naming, options = {}) {
|
|
139
|
-
const env = options.env ?? process.env;
|
|
140
|
-
const platform = options.platform ?? process.platform;
|
|
141
|
-
const dir = logsDir(env);
|
|
142
|
-
await mkdir(dir, { recursive: true });
|
|
143
|
-
const fileName = freeName(dir, logFileName(naming, options.now ?? new Date()));
|
|
144
|
-
const path = join(dir, fileName);
|
|
145
|
-
await writeFile(path, text, 'utf8');
|
|
146
|
-
if (platform !== 'win32') {
|
|
147
|
-
return { path, dir, fileName, revealed: false, note: 'Opening the folder is Windows-only. The file was saved.' };
|
|
148
|
-
}
|
|
149
|
-
const reveal = options.reveal ?? revealInExplorer;
|
|
150
|
-
try {
|
|
151
|
-
await reveal(path);
|
|
152
|
-
return { path, dir, fileName, revealed: true };
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
return { path, dir, fileName, revealed: false, note: `The file was saved, but Explorer did not open: ${e.message}` };
|
|
156
|
-
}
|
|
157
|
-
}
|