copilot-operator 0.1.52 → 0.1.54

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.
Files changed (154) hide show
  1. package/README.md +23 -1
  2. package/dist/src/api/operator.controller.js +71 -2
  3. package/dist/src/api/operator.service.js +99 -7
  4. package/dist/src/config/schema.js +32 -0
  5. package/dist/src/exec/policy.js +11 -1
  6. package/dist/src/exec/scriptFiles.js +108 -2
  7. package/dist/src/orchestrator/leadRunner.js +50 -4
  8. package/dist/src/orchestrator/review.js +9 -3
  9. package/dist/src/orchestrator/taskRunner.js +55 -3
  10. package/dist/src/plan/kerrigan.js +35 -4
  11. package/dist/src/plan/systemGuide.js +234 -4
  12. package/dist/src/session/compose.js +16 -4
  13. package/dist/src/session/store.js +3 -0
  14. package/dist/src/session/workspace.js +22 -0
  15. package/dist/src/session/workspaceSearch.js +162 -0
  16. package/dist/src/util/pacing.js +33 -2
  17. package/dist/src/vcs/git.js +12 -2
  18. package/dist/src/vcs/referenceGuard.js +299 -0
  19. package/dist/web/404.html +3 -2
  20. package/dist/web/_next/static/{_1zhoDsMOPAH2xW702E5A → WuIGWiKKh_ESR3KwzsLZF}/_buildManifest.js +1 -1
  21. package/dist/web/_next/static/chunks/1017.ce926873b598fb89.js +1 -0
  22. package/dist/web/_next/static/chunks/1077.ae2fd686ef05572e.js +1 -0
  23. package/dist/web/_next/static/chunks/12.06a7f14bd6716249.js +1 -0
  24. package/dist/web/_next/static/chunks/1350.a5dc706c8110fd34.js +24 -0
  25. package/dist/web/_next/static/chunks/1548.bd558d3f2c8df4af.js +1 -0
  26. package/dist/web/_next/static/chunks/1706.db51b57351297898.js +309 -0
  27. package/dist/web/_next/static/chunks/1707.7d64ffc060c697a0.js +193 -0
  28. package/dist/web/_next/static/chunks/1880.87829ecb91209eda.js +24 -0
  29. package/dist/web/_next/static/chunks/20154aaa.28032c3aa5bcd84d.js +1 -0
  30. package/dist/web/_next/static/chunks/2037.d1bb5e37c7fe85ae.js +104 -0
  31. package/dist/web/_next/static/chunks/2163.b41334711ddcceff.js +1 -0
  32. package/dist/web/_next/static/chunks/2398d077.79ae940919b9695e.js +1 -0
  33. package/dist/web/_next/static/chunks/2435.9b433b38d34b4b2e.js +1 -0
  34. package/dist/web/_next/static/chunks/2506.bc8515842e225d2a.js +1 -0
  35. package/dist/web/_next/static/chunks/2529.c88688b437d71d68.js +41 -0
  36. package/dist/web/_next/static/chunks/2908.4e0e875d2d471932.js +1 -0
  37. package/dist/web/_next/static/chunks/3117.a4e1c3348e8bead9.js +1 -0
  38. package/dist/web/_next/static/chunks/3131-8ec8b632ebf0450d.js +1 -0
  39. package/dist/web/_next/static/chunks/3134-b6a7bc1f267c39aa.js +1 -0
  40. package/dist/web/_next/static/chunks/3233.1dcc2798f7f5efa0.js +149 -0
  41. package/dist/web/_next/static/chunks/344.41cc997c8c8deeed.js +115 -0
  42. package/dist/web/_next/static/chunks/3690.f691d3fcbd70073d.js +1 -0
  43. package/dist/web/_next/static/chunks/3804.593b14643e74a2a1.js +1 -0
  44. package/dist/web/_next/static/chunks/3816.9f5568918e35e4ef.js +77 -0
  45. package/dist/web/_next/static/chunks/3859.f56f3c6ac4b74cf1.js +94 -0
  46. package/dist/web/_next/static/chunks/3976.11b159e82e0aa974.js +1 -0
  47. package/dist/web/_next/static/chunks/3986.d47ed4855773e6dd.js +1 -0
  48. package/dist/web/_next/static/chunks/441.172f3f581f0030d1.js +226 -0
  49. package/dist/web/_next/static/chunks/442.2e236a6c5c413bd9.js +1 -0
  50. package/dist/web/_next/static/chunks/4459.d6df347eb58fccd7.js +1 -0
  51. package/dist/web/_next/static/chunks/4619.ae3628373decf74f.js +34 -0
  52. package/dist/web/_next/static/chunks/4623.d5711a8d967e49f4.js +1 -0
  53. package/dist/web/_next/static/chunks/4670.6b811cc3f67a851c.js +62 -0
  54. package/dist/web/_next/static/chunks/4812.0af1380aa478f6d3.js +93 -0
  55. package/dist/web/_next/static/chunks/4969.4f7aff472cf938bf.js +1 -0
  56. package/dist/web/_next/static/chunks/5790.fe114d1a18741d62.js +86 -0
  57. package/dist/web/_next/static/chunks/603.4055460889ea24d8.js +1 -0
  58. package/dist/web/_next/static/chunks/6072.b4b359b24b1738d4.js +286 -0
  59. package/dist/web/_next/static/chunks/6230.8645bbed143793da.js +1 -0
  60. package/dist/web/_next/static/chunks/6260.6b5b5c9713d7133f.js +1 -0
  61. package/dist/web/_next/static/chunks/63b9f8e2.218fd437b256a7e4.js +1 -0
  62. package/dist/web/_next/static/chunks/6421.3ace3aefc3e7350e.js +1 -0
  63. package/dist/web/_next/static/chunks/6542.963ec591b5c2bc5a.js +1 -0
  64. package/dist/web/_next/static/chunks/6885.8fb8eeb9e792b515.js +1 -0
  65. package/dist/web/_next/static/chunks/6891.dd910309748ad46b.js +1 -0
  66. package/dist/web/_next/static/chunks/714.cb77983f9be215c9.js +1 -0
  67. package/dist/web/_next/static/chunks/7220.072a60cd9d60220a.js +1 -0
  68. package/dist/web/_next/static/chunks/7307.39c27470a879fd0a.js +1 -0
  69. package/dist/web/_next/static/chunks/7333.04d0e45b223dadd4.js +32 -0
  70. package/dist/web/_next/static/chunks/7489.395193bf37b80884.js +1 -0
  71. package/dist/web/_next/static/chunks/7496.17282033df0e8794.js +148 -0
  72. package/dist/web/_next/static/chunks/7500-f90e2ae7061e351d.js +1 -0
  73. package/dist/web/_next/static/chunks/7507.9fd648884587a7f3.js +287 -0
  74. package/dist/web/_next/static/chunks/76.f9c2aea58a61692f.js +1 -0
  75. package/dist/web/_next/static/chunks/7664.bd6265e6e94e1ecd.js +79 -0
  76. package/dist/web/_next/static/chunks/7872.9b08a88b7289949f.js +64 -0
  77. package/dist/web/_next/static/chunks/7921-54dae769aa8bae96.js +1 -0
  78. package/dist/web/_next/static/chunks/795.710d39b80c9ae80c.js +1 -0
  79. package/dist/web/_next/static/chunks/8173.b82aa1855e641605.js +1 -0
  80. package/dist/web/_next/static/chunks/8216.b248ebe0af447347.js +8 -0
  81. package/dist/web/_next/static/chunks/82d3f3cb.23be11b749288234.js +62 -0
  82. package/dist/web/_next/static/chunks/8381.2d6783c030f8a913.js +27 -0
  83. package/dist/web/_next/static/chunks/85120a0e.ac16dccf0b8d73d3.js +66 -0
  84. package/dist/web/_next/static/chunks/8547.0a9997b67008c706.js +1 -0
  85. package/dist/web/_next/static/chunks/8584.9d5d6c09b0375015.js +1 -0
  86. package/dist/web/_next/static/chunks/8662.f2663643214caed1.js +38 -0
  87. package/dist/web/_next/static/chunks/8689.e564346c6e0d16be.js +1 -0
  88. package/dist/web/_next/static/chunks/9067.832c4761a991f2c2.js +1 -0
  89. package/dist/web/_next/static/chunks/9125.8589db5ba200cbf1.js +1 -0
  90. package/dist/web/_next/static/chunks/9202.8dcf7e6a85cc3d36.js +1 -0
  91. package/dist/web/_next/static/chunks/9249.916a423ac8a07e76.js +1 -0
  92. package/dist/web/_next/static/chunks/9313.e4f6405d96375c40.js +92 -0
  93. package/dist/web/_next/static/chunks/937.6d8406b06135134f.js +1 -0
  94. package/dist/web/_next/static/chunks/9418.1e8f8e14bb5fe3ae.js +217 -0
  95. package/dist/web/_next/static/chunks/9591.fabd60bd0d10341c.js +1 -0
  96. package/dist/web/_next/static/chunks/972.db753db904050e48.js +23 -0
  97. package/dist/web/_next/static/chunks/9747.c8d4ba56c9eef95f.js +1 -0
  98. package/dist/web/_next/static/chunks/9763.da9015d4a1b533b9.js +36 -0
  99. package/dist/web/_next/static/chunks/9884.8712c5ed7b044ff2.js +1 -0
  100. package/dist/web/_next/static/chunks/9891.91a2c59fd073fd48.js +74 -0
  101. package/dist/web/_next/static/chunks/9984.cdabea5a592e42a1.js +1 -0
  102. package/dist/web/_next/static/chunks/a9ddb983.8bbb677720017a57.js +122 -0
  103. package/dist/web/_next/static/chunks/app/_not-found/page-1264c0db9665169c.js +1 -0
  104. package/dist/web/_next/static/chunks/app/defaults/page-a1f90fe37e302928.js +1 -0
  105. package/dist/web/_next/static/chunks/app/layout-46efb208d7c88648.js +1 -0
  106. package/dist/web/_next/static/chunks/app/page-57787f15774d76b8.js +1 -0
  107. package/dist/web/_next/static/chunks/app/system/page-825f53f14d16033d.js +1 -0
  108. package/dist/web/_next/static/chunks/c7879cf7-fabe25011515220e.js +1 -0
  109. package/dist/web/_next/static/chunks/c7ea4e13.9b71b5f026a1d6d4.js +1 -0
  110. package/dist/web/_next/static/chunks/f99cb6a2.3f570aeba3860608.js +160 -0
  111. package/dist/web/_next/static/chunks/framework-a8bf4d38dd23845f.js +1 -0
  112. package/dist/web/_next/static/chunks/main-app-f747f0f5ddb4213b.js +1 -0
  113. package/dist/web/_next/static/chunks/main-d3bbfb91b54fbcc3.js +1 -0
  114. package/dist/web/_next/static/chunks/pages/_app-5b348989bba3d570.js +1 -0
  115. package/dist/web/_next/static/chunks/pages/_error-cf88c6d2cc5868d7.js +1 -0
  116. package/dist/web/_next/static/chunks/webpack-cb74fa884b8af278.js +1 -0
  117. package/dist/web/_next/static/css/d3398f485b2a9075.css +1 -0
  118. package/dist/web/defaults.html +3 -2
  119. package/dist/web/defaults.txt +16 -16
  120. package/dist/web/index.html +4 -2
  121. package/dist/web/index.txt +16 -16
  122. package/dist/web/system.html +3 -2
  123. package/dist/web/system.txt +16 -16
  124. package/package.json +8 -2
  125. package/prompts/level1.md +32 -12
  126. package/prompts/review1.md +287 -286
  127. package/dist/web/_next/static/chunks/12.f1f4d35b52633e8d.js +0 -1
  128. package/dist/web/_next/static/chunks/131-bae98f790a541679.js +0 -1
  129. package/dist/web/_next/static/chunks/134-ddd50a7fbb536ec8.js +0 -1
  130. package/dist/web/_next/static/chunks/163.dbd7d36584d0bb37.js +0 -1
  131. package/dist/web/_next/static/chunks/220.35531b39410e1a9f.js +0 -1
  132. package/dist/web/_next/static/chunks/489.158bbe303a595fba.js +0 -1
  133. package/dist/web/_next/static/chunks/548.71ac96c94136659b.js +0 -1
  134. package/dist/web/_next/static/chunks/584.6df695c5b86a75aa.js +0 -1
  135. package/dist/web/_next/static/chunks/67.9ed79e2fbfb56f26.js +0 -1
  136. package/dist/web/_next/static/chunks/714.1e2338736a70b9c7.js +0 -1
  137. package/dist/web/_next/static/chunks/747.d2c1249d736dc03b.js +0 -1
  138. package/dist/web/_next/static/chunks/77.a200abef0f5b4a7f.js +0 -1
  139. package/dist/web/_next/static/chunks/808-bc7d7eac6d823291.js +0 -1
  140. package/dist/web/_next/static/chunks/921-dc5538cd779c6432.js +0 -1
  141. package/dist/web/_next/static/chunks/app/_not-found/page-0d0d8e7e62efca12.js +0 -1
  142. package/dist/web/_next/static/chunks/app/defaults/page-edd7534ca9ecf366.js +0 -1
  143. package/dist/web/_next/static/chunks/app/layout-8f99a164d76897a0.js +0 -1
  144. package/dist/web/_next/static/chunks/app/page-4bed816eda370d0c.js +0 -1
  145. package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +0 -1
  146. package/dist/web/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js +0 -1
  147. package/dist/web/_next/static/chunks/framework-9ac6a346bd42cedd.js +0 -1
  148. package/dist/web/_next/static/chunks/main-6be4444e2d667e41.js +0 -1
  149. package/dist/web/_next/static/chunks/main-app-e3a5f713ba31557e.js +0 -1
  150. package/dist/web/_next/static/chunks/pages/_app-32d20d5a04949d29.js +0 -1
  151. package/dist/web/_next/static/chunks/pages/_error-abbab53f25ea29b0.js +0 -1
  152. package/dist/web/_next/static/chunks/webpack-77147e31d2125631.js +0 -1
  153. package/dist/web/_next/static/css/3bea264adc472bc8.css +0 -1
  154. /package/dist/web/_next/static/{_1zhoDsMOPAH2xW702E5A → WuIGWiKKh_ESR3KwzsLZF}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--_1zhoDsMOPAH2xW702E5A--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal" data-night="off"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/3bea264adc472bc8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-77147e31d2125631.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/134-ddd50a7fbb536ec8.js" async=""></script><script src="/_next/static/chunks/921-dc5538cd779c6432.js" async=""></script><script src="/_next/static/chunks/808-bc7d7eac6d823291.js" async=""></script><script src="/_next/static/chunks/app/layout-8f99a164d76897a0.js" async=""></script><script src="/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js" async=""></script><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>(function(){try{
1
+ <!DOCTYPE html><!--WuIGWiKKh_ESR3KwzsLZF--><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/d3398f485b2a9075.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-cb74fa884b8af278.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-f747f0f5ddb4213b.js" async=""></script><script src="/_next/static/chunks/3134-b6a7bc1f267c39aa.js" async=""></script><script src="/_next/static/chunks/7921-54dae769aa8bae96.js" async=""></script><script src="/_next/static/chunks/7500-f90e2ae7061e351d.js" async=""></script><script src="/_next/static/chunks/app/layout-46efb208d7c88648.js" async=""></script><script src="/_next/static/chunks/app/system/page-825f53f14d16033d.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
2
  var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
3
3
  if(!a||typeof a!=='object')a={};
4
4
  d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
@@ -8,6 +8,7 @@ d.dataset.motion=a.reduceMotion?'reduced':'normal';
8
8
  d.dataset.links=a.underlineLinks?'underline':'plain';
9
9
  d.dataset.focus=a.strongFocus?'strong':'normal';
10
10
  d.dataset.night=a.nightLight?'on':'off';
11
+ d.dataset.cursor=a.systemCursor?'system':'own';
11
12
  var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
12
13
  if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
13
- }catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a aria-current="page" href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></nav></header><main id="main"><div class="panel"><h2>This machine</h2><div class="muted">Loading…</div><div class="row" style="margin-top:10px"><a class="button-link plain" href="/api/terminal" download="">Download what the terminal showed</a></div><p class="why">The bot&#x27;s console — what npm start or cop start printed — as a text file: the latest lines, each with its time, secret-shaped text taken out. Everything since the bot started is also in the data folder, logs\terminal.log.</p></div><div class="panel"><h2>Settings</h2><p class="muted small">Read from data/settings.json next to the project. It has the same shape as run.example.yaml; anything missing takes the default. Edit the file and restart the API.</p></div><div class="panel"><h2>Sign-in</h2><p class="muted small">Signing in is done once, from the terminal, so that the bot never handles credentials:</p><pre>npx tsx src/cli.ts login --account you@yourtenant.org</pre></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-77147e31d2125631.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8078,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"ScrollJump\"]\na:I[7089,[],\"ClientPageRoot\"]\nb:I[3134,[\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"186\",\"static/chunks/app/system/page-1cf9e75e76da59ed.js\"],\"default\"]\ne:I[433,[],\"OutletBoundary\"]\n10:I[9884,[],\"AsyncMetadataOutlet\"]\n12:I[433,[],\"ViewportBoundary\"]\n14:I[433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/css/3bea264adc472bc8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"_1zhoDsMOPAH2xW702E5A\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/3bea264adc472bc8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"system\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$La\",null,{\"Component\":\"$b\",\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}],null,[\"$\",\"$Le\",null,{\"children\":[\"$Lf\",[\"$\",\"$L10\",null,{\"promise\":\"$@11\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],null],[\"$\",\"$L14\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$15\",null,{\"fallback\":null,\"children\":\"$L16\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$17\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:{}\nd:\"$0:f:0:1:2:children:2:children:1:props:children:0:props:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nf:null\n"])</script><script>self.__next_f.push([1,"11:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"16:\"$11:metadata\"\n"])</script></body></html>
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&#x27;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-cb74fa884b8af278.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[98078,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"LanguageProvider\"]\n4:I[51035,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"DialogHost\"]\n5:I[28214,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"SkipLink\"]\n6:I[68300,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"ScrollJump\"]\na:I[17089,[],\"ClientPageRoot\"]\nb:I[13134,[\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"1186\",\"static/chunks/app/system/page-825f53f14d16033d.js\"],\"default\"]\ne:I[60433,[],\"OutletBoundary\"]\n10:I[19884,[],\"AsyncMetadataOutlet\"]\n12:I[60433,[],\"ViewportBoundary\"]\n14:I[60433,[],\"MetadataBoundary\"]\n15:\"$Sreact.suspense\"\n17:I[3536,[],\"\"]\n:HL[\"/_next/static/css/d3398f485b2a9075.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"WuIGWiKKh_ESR3KwzsLZF\",\"p\":\"\",\"c\":[\"\",\"system\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"system\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/d3398f485b2a9075.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>
@@ -1,22 +1,22 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[8078,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"AppearanceProvider"]
3
- 3:I[8205,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"LanguageProvider"]
4
- 4:I[1035,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"DialogHost"]
5
- 5:I[8214,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"SkipLink"]
6
- 6:I[8300,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"Shell"]
7
- 7:I[5204,[],""]
8
- 8:I[2642,[],""]
9
- 9:I[7712,["134","static/chunks/134-ddd50a7fbb536ec8.js","921","static/chunks/921-dc5538cd779c6432.js","808","static/chunks/808-bc7d7eac6d823291.js","177","static/chunks/app/layout-8f99a164d76897a0.js"],"ScrollJump"]
10
- a:I[7089,[],"ClientPageRoot"]
11
- b:I[3134,["921","static/chunks/921-dc5538cd779c6432.js","186","static/chunks/app/system/page-1cf9e75e76da59ed.js"],"default"]
12
- e:I[433,[],"OutletBoundary"]
13
- 10:I[9884,[],"AsyncMetadataOutlet"]
14
- 12:I[433,[],"ViewportBoundary"]
15
- 14:I[433,[],"MetadataBoundary"]
2
+ 2:I[98078,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"AppearanceProvider"]
3
+ 3:I[8205,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"LanguageProvider"]
4
+ 4:I[51035,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"DialogHost"]
5
+ 5:I[28214,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"SkipLink"]
6
+ 6:I[68300,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"Shell"]
7
+ 7:I[25204,[],""]
8
+ 8:I[42642,[],""]
9
+ 9:I[87712,["3134","static/chunks/3134-b6a7bc1f267c39aa.js","7921","static/chunks/7921-54dae769aa8bae96.js","7500","static/chunks/7500-f90e2ae7061e351d.js","7177","static/chunks/app/layout-46efb208d7c88648.js"],"ScrollJump"]
10
+ a:I[17089,[],"ClientPageRoot"]
11
+ b:I[13134,["7921","static/chunks/7921-54dae769aa8bae96.js","1186","static/chunks/app/system/page-825f53f14d16033d.js"],"default"]
12
+ e:I[60433,[],"OutletBoundary"]
13
+ 10:I[19884,[],"AsyncMetadataOutlet"]
14
+ 12:I[60433,[],"ViewportBoundary"]
15
+ 14:I[60433,[],"MetadataBoundary"]
16
16
  15:"$Sreact.suspense"
17
17
  17:I[3536,[],""]
18
- :HL["/_next/static/css/3bea264adc472bc8.css","style"]
19
- 0:{"P":null,"b":"_1zhoDsMOPAH2xW702E5A","p":"","c":["","system"],"i":false,"f":[[["",{"children":["system",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/3bea264adc472bc8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"data-theme":"light","data-textsize":"normal","data-contrast":"normal","data-motion":"normal","data-links":"plain","data-focus":"normal","data-night":"off","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\nif(!a||typeof a!=='object')a={};\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\nd.dataset.textsize=[\"small\",\"normal\",\"large\",\"huge\",\"giant\"].indexOf(a.textSize)>=0?a.textSize:'normal';\nd.dataset.contrast=a.highContrast?'high':'normal';\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\nd.dataset.links=a.underlineLinks?'underline':'plain';\nd.dataset.focus=a.strongFocus?'strong':'normal';\nd.dataset.night=a.nightLight?'on':'off';\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\nif([\"ar\"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}\n}catch(e){}})();"}}]}],["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L9",null,{}]]}]}]}]}]]}]]}],{"children":["system",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":{},"promises":["$@c","$@d"]}],null,["$","$Le",null,{"children":["$Lf",["$","$L10",null,{"promise":"$@11"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L12",null,{"children":"$L13"}],null],["$","$L14",null,{"children":["$","div",null,{"hidden":true,"children":["$","$15",null,{"fallback":null,"children":"$L16"}]}]}]]}],false]],"m":"$undefined","G":["$17",[]],"s":false,"S":true}
18
+ :HL["/_next/static/css/d3398f485b2a9075.css","style"]
19
+ 0:{"P":null,"b":"WuIGWiKKh_ESR3KwzsLZF","p":"","c":["","system"],"i":false,"f":[[["",{"children":["system",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3398f485b2a9075.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.52",
3
+ "version": "0.1.54",
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:e2e-run && npm run check:e2e-continue && npm run check:e2e-planmode && npm run check:e2e-chat && npm run check:e2e-lead && npm run check:workspace-git && npm run check:e2e-interrupt && npm run check:e2e-vcs && npm run check:noattach && npm run check:guard && npm run check:gate && npm run check:e2e-review && npm run check:e2e-branches && npm run check:e2e-loop && npm run check:transport && npm run check:exec && npm run check:pins && npm run check:login && npm run check:snapshot && npm run check:inputs && npm run check:attempts && npm run check:finding-ids && npm run check:e2e-commit && npm run check:live-fixes",
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:search && npm run check:installed && 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",
@@ -82,6 +82,12 @@
82
82
  "check:e2e-vcs": "tsx test/e2e-vcs.check.ts",
83
83
  "check:noattach": "tsx test/noattach.check.ts",
84
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",
89
+ "check:search": "tsx test/search.check.ts",
90
+ "check:installed": "tsx test/installed.check.ts",
85
91
  "check:gate": "tsx test/gate.check.ts",
86
92
  "check:e2e-review": "tsx test/e2e-review.check.ts",
87
93
  "check:e2e-branches": "tsx test/e2e-branches.check.ts",
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`. For something too long for one line, write
303
- the file **from a command step** and run it in the next:
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\count-tests.ps1 -Value @'
308
- Get-ChildItem .\test -Recurse -Filter *.test.ts | Measure-Object | Select-Object Count
328
+ Set-Content -NoNewline -Path .\.cop-tmp\notes.md -Value @'
329
+ # What the survey found
309
330
 
310
331
  '@
311
332
  ```
312
333
 
313
- then `pwsh -File .\.cop-tmp\count-tests.ps1`. Helper scripts, scratch copies and anything else
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 script inline, which is how quoting gets
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 script, a config, a sample file | write it into the project with a `command` step (`Set-Content` and a here-string) |
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
- | writing a script and running it in the same step | write it in one step, run it in the next |
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
- Scripts you run with `pwsh -File` are **read from disk before they run** and held to the same
482
- rules as a step; a script that does not exist yet, or that could not be read, is not run.
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