copilot-operator 0.1.66 → 0.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/operator.controller.js +8 -1
- package/dist/src/api/operator.service.js +3 -1
- package/dist/src/cli.js +1 -0
- package/dist/src/config/schema.js +7 -0
- package/dist/src/exec/authorizer.js +26 -6
- package/dist/src/exec/commandHeads.js +30 -6
- package/dist/src/exec/platforms.js +13 -2
- package/dist/src/exec/policy.js +31 -4
- package/dist/src/exec/policyManifest.js +9 -0
- package/dist/src/exec/readOnly.js +158 -0
- package/dist/src/orchestrator/taskRunner.js +4 -2
- package/dist/src/plan/kerrigan.js +3 -1
- package/dist/src/plan/systemGuide.js +63 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1024-5f630cbb54e7346f.js +1 -0
- package/dist/web/_next/static/chunks/{1077.b88b069535f7008e.js → 1077.3b82a837cf810f8b.js} +1 -1
- package/dist/web/_next/static/chunks/{1548.9e01803e48173ea9.js → 1548.52bfcd01c16aaafe.js} +1 -1
- package/dist/web/_next/static/chunks/{2163.018cd5f719ae4b3d.js → 2163.e60d3be9bb3f8b3f.js} +1 -1
- package/dist/web/_next/static/chunks/{714.281f68f85df26013.js → 714.b452ef814760b5a5.js} +1 -1
- package/dist/web/_next/static/chunks/{7220.3bd10a3e4e053e0c.js → 7220.96b18052ed9c06c7.js} +1 -1
- package/dist/web/_next/static/chunks/{7921-1c173d00d23b3589.js → 7921-dd201ce7aa02c12d.js} +1 -1
- package/dist/web/_next/static/chunks/{8124-bb544c96a7c0e7e3.js → 8124-c27ce7bd781f4c56.js} +1 -1
- package/dist/web/_next/static/chunks/{8584.c7cd52c2e7075bcb.js → 8584.ab8d406781cdd45c.js} +1 -1
- package/dist/web/_next/static/chunks/{9067.feaf894390db1a88.js → 9067.5b8abc40104d51d9.js} +1 -1
- package/dist/web/_next/static/chunks/9747.cf0353e7ffec2ee4.js +1 -0
- package/dist/web/_next/static/chunks/app/{page-95379244849623fc.js → page-ab73d1b3ba9181c2.js} +1 -1
- package/dist/web/_next/static/chunks/app/settings/page-7d120feb5af0ace9.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-5ea108bc2e386c55.js → webpack-23ace264f775d98a.js} +1 -1
- package/dist/web/_next/static/css/{a112074f3d1a8a07.css → 532df8667473c4fc.css} +1 -1
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +8 -8
- package/dist/web/index.html +3 -3
- package/dist/web/index.txt +9 -9
- package/dist/web/queue.html +2 -2
- package/dist/web/queue.txt +9 -9
- package/dist/web/settings.html +2 -2
- package/dist/web/settings.txt +9 -9
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +9 -9
- package/package.json +3 -2
- package/dist/web/_next/static/chunks/1024-444e9060299d04ba.js +0 -1
- package/dist/web/_next/static/chunks/9747.7cee8a2d8301f25c.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-9a83381087178f80.js +0 -1
- /package/dist/web/_next/static/{BbWvNQTsh3pH7ZN_RKR60 → JpBxrjYpw2xowWbFoiPjO}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{BbWvNQTsh3pH7ZN_RKR60 → JpBxrjYpw2xowWbFoiPjO}/_ssgManifest.js +0 -0
|
@@ -2588,6 +2588,69 @@ export const SYSTEM_GUIDE = [
|
|
|
2588
2588
|
},
|
|
2589
2589
|
],
|
|
2590
2590
|
},
|
|
2591
|
+
{
|
|
2592
|
+
headingKey: 'prog.title',
|
|
2593
|
+
en: 'Programs the bot may start',
|
|
2594
|
+
bg: 'Програми, които ботът може да пуска',
|
|
2595
|
+
controls: [
|
|
2596
|
+
{
|
|
2597
|
+
key: 'prog.platforms',
|
|
2598
|
+
kind: 'note',
|
|
2599
|
+
en: 'Programs that reach a platform with your access',
|
|
2600
|
+
bg: 'Програми, които достъпват платформа с вашия достъп',
|
|
2601
|
+
doesEn: 'The programs on the list that reach a platform with the operator\'s access (Azure, AWS, GitHub…), each with how the bot may use it and its ✕ to take it off.',
|
|
2602
|
+
doesBg: 'Програмите от списъка, които достъпват платформа с достъпа на оператора (Azure, AWS, GitHub…), всяка с начина, по който ботът може да я ползва, и ✕, за да се махне.',
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
key: 'prog.modeAsk',
|
|
2606
|
+
kind: 'select',
|
|
2607
|
+
en: 'Ask me each time',
|
|
2608
|
+
bg: 'Питай ме всеки път',
|
|
2609
|
+
doesEn: 'Every command of that program waits on a card for the operator, in every run.',
|
|
2610
|
+
doesBg: 'Всяка команда на тази програма чака на карта за оператора, при всяко пускане.',
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
key: 'prog.modeReadOnly',
|
|
2614
|
+
kind: 'select',
|
|
2615
|
+
en: 'Only for reference (read only)',
|
|
2616
|
+
bg: 'Само за справка (само четене)',
|
|
2617
|
+
doesEn: 'Only where the bot can read the program\'s commands (az today): those that only look — list, show, query — run without asking; one that creates, changes, deletes, signs in or out, or shows a secret is refused, and one it cannot read waits on a card. The operator signs in with az login in their own terminal; the bot never sees the password.',
|
|
2618
|
+
doesBg: 'Само където ботът може да разчете командите на програмата (днес az): тези, които само гледат — list, show, query — се изпълняват без питане; команда, която създава, променя, трие, влиза или излиза, или показва тайна, се отказва, а такава, която не може да разчете, чака на карта. Операторът влиза с az login в собствения си терминал; ботът никога не вижда паролата.',
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
key: 'prog.others',
|
|
2622
|
+
kind: 'note',
|
|
2623
|
+
en: 'Other programs',
|
|
2624
|
+
bg: 'Други програми',
|
|
2625
|
+
doesEn: 'The other programs a command may start, each with its ✕ to take it off; the last one cannot be taken off.',
|
|
2626
|
+
doesBg: 'Другите програми, които командата може да пуска, всяка с ✕, за да се махне; последната не може да се махне.',
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
key: 'prog.add',
|
|
2630
|
+
kind: 'field',
|
|
2631
|
+
en: 'Add a program',
|
|
2632
|
+
bg: 'Добави програма',
|
|
2633
|
+
doesEn: 'The name of a program to add, as a terminal takes it, without a folder: az, gh, kubectl. One that can be read only for reference is added so.',
|
|
2634
|
+
doesBg: 'Името на програма за добавяне, както го приема терминалът, без папка: az, gh, kubectl. Програма, която може да е само за справка, се добавя така.',
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
key: 'prog.addButton',
|
|
2638
|
+
kind: 'button',
|
|
2639
|
+
en: 'Add',
|
|
2640
|
+
bg: 'Добави',
|
|
2641
|
+
doesEn: 'Adds the program written beside it to the list.',
|
|
2642
|
+
doesBg: 'Добавя написаната до него програма в списъка.',
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
key: 'prog.restore',
|
|
2646
|
+
kind: 'button',
|
|
2647
|
+
en: 'Put back the defaults',
|
|
2648
|
+
bg: 'Върни подразбиращите се',
|
|
2649
|
+
doesEn: 'Puts back the list the bot comes with, after asking; the programs added are taken off.',
|
|
2650
|
+
doesBg: 'Връща списъка, с който идва ботът, след като попита; добавените програми се махат.',
|
|
2651
|
+
},
|
|
2652
|
+
],
|
|
2653
|
+
},
|
|
2591
2654
|
],
|
|
2592
2655
|
},
|
|
2593
2656
|
{
|
package/dist/web/404.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--JpBxrjYpw2xowWbFoiPjO--><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/532df8667473c4fc.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-23ace264f775d98a.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-d23441ca81b3a063.js" async=""></script><script src="/_next/static/chunks/8197-e2fcb43f38a2b4a7.js" async=""></script><script src="/_next/static/chunks/7921-dd201ce7aa02c12d.js" async=""></script><script src="/_next/static/chunks/6262-d074473db83ee798.js" async=""></script><script src="/_next/static/chunks/8124-c27ce7bd781f4c56.js" async=""></script><script src="/_next/static/chunks/app/layout-5e0e7601702723bb.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><link rel="icon" href="/icon.svg?23b6e9b8199c9069" type="image/svg+xml" sizes="any"/><script>(function(){try{
|
|
2
2
|
var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
|
|
3
3
|
if(!a||typeof a!=='object')a={};
|
|
4
4
|
d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
|
|
@@ -11,4 +11,4 @@ d.dataset.night=a.nightLight?'on':'off';
|
|
|
11
11
|
d.dataset.cursor=a.systemCursor?'system':'own';
|
|
12
12
|
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
13
13
|
if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
|
|
14
|
-
}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a class="brand-link" href="/"><svg class="brand-logo" viewBox="0 0 200 120" aria-hidden="true" focusable="false"><defs><mask id="cop-logo-R56db" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="120"><rect width="200" height="120" fill="#fff"></rect><path d="M50 3L94 60L94 62.6L69.5 89.6L30.5 89.6L6 62.6L6 60Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="#000" stroke="#000" stroke-width="18" stroke-linejoin="round"></path></mask></defs><g mask="url(#cop-logo-R56db)" fill="none" stroke="var(--logo-orbit)" stroke-linecap="round"><ellipse cx="96" cy="64" rx="86" ry="36" transform="rotate(-25 96 64)" stroke-width="6.5"></ellipse><path d="M70 104 C112 124 166 112 186 86 C194 74 192 60 184 52" stroke-width="6"></path><path d="M22 28 C18 42 22 56 34 70" stroke-width="2.4"></path></g><path class="brand-plane" d="M50 3C54.6 3 56.6 8.2 56.6 14.5L56.6 35.5L91.5 55.8C93.2 56.8 94 58.2 94 60L94 62.6L56.6 52.8L55.4 74.5L69.5 84.6L69.5 89.6L52.6 85.6L50 89.8L47.4 85.6L30.5 89.6L30.5 84.6L44.6 74.5L43.4 52.8L6 62.6L6 60C6 58.2 6.8 56.8 8.5 55.8L43.4 35.5L43.4 14.5C43.4 8.2 45.4 3 50 3Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="var(--logo-plane)"></path></svg>copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</span></a><a href="/settings"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><span class="nav-pair"><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></span></nav></header><main id="main"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-5ea108bc2e386c55.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[98078,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"SkipLink\"]\n6:I[68300,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-1c173d00d23b3589.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-bb544c96a7c0e7e3.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"ScrollJump\"]\na:I[60433,[],\"OutletBoundary\"]\nc:I[19884,[],\"AsyncMetadataOutlet\"]\ne:I[60433,[],\"ViewportBoundary\"]\n10:I[60433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/a112074f3d1a8a07.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"BbWvNQTsh3pH7ZN_RKR60\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/a112074f3d1a8a07.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$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\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"14:I[66644,[],\"IconMark\"]\nd:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?23b6e9b8199c9069\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L14\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
14
|
+
}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a class="brand-link" href="/"><svg class="brand-logo" viewBox="0 0 200 120" aria-hidden="true" focusable="false"><defs><mask id="cop-logo-R56db" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="120"><rect width="200" height="120" fill="#fff"></rect><path d="M50 3L94 60L94 62.6L69.5 89.6L30.5 89.6L6 62.6L6 60Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="#000" stroke="#000" stroke-width="18" stroke-linejoin="round"></path></mask></defs><g mask="url(#cop-logo-R56db)" fill="none" stroke="var(--logo-orbit)" stroke-linecap="round"><ellipse cx="96" cy="64" rx="86" ry="36" transform="rotate(-25 96 64)" stroke-width="6.5"></ellipse><path d="M70 104 C112 124 166 112 186 86 C194 74 192 60 184 52" stroke-width="6"></path><path d="M22 28 C18 42 22 56 34 70" stroke-width="2.4"></path></g><path class="brand-plane" d="M50 3C54.6 3 56.6 8.2 56.6 14.5L56.6 35.5L91.5 55.8C93.2 56.8 94 58.2 94 60L94 62.6L56.6 52.8L55.4 74.5L69.5 84.6L69.5 89.6L52.6 85.6L50 89.8L47.4 85.6L30.5 89.6L30.5 84.6L44.6 74.5L43.4 52.8L6 62.6L6 60C6 58.2 6.8 56.8 8.5 55.8L43.4 35.5L43.4 14.5C43.4 8.2 45.4 3 50 3Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="var(--logo-plane)"></path></svg>copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</span></a><a href="/settings"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><span class="nav-pair"><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></span></nav></header><main id="main"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-23ace264f775d98a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[98078,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"SkipLink\"]\n6:I[68300,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-dd201ce7aa02c12d.js\",\"6262\",\"static/chunks/6262-d074473db83ee798.js\",\"8124\",\"static/chunks/8124-c27ce7bd781f4c56.js\",\"7177\",\"static/chunks/app/layout-5e0e7601702723bb.js\"],\"ScrollJump\"]\na:I[60433,[],\"OutletBoundary\"]\nc:I[19884,[],\"AsyncMetadataOutlet\"]\ne:I[60433,[],\"ViewportBoundary\"]\n10:I[60433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/532df8667473c4fc.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"JpBxrjYpw2xowWbFoiPjO\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/532df8667473c4fc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$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\":[[[\"$\",\"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.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"14:I[66644,[],\"IconMark\"]\nd:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?23b6e9b8199c9069\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L14\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1024],{24784:(e,s,t)=>{t.d(s,{Yb:()=>o,u:()=>i});var n=t(73365),a=t(1521),r=t(15549),l=t(8205);let i="::by-hand::";function o(e){var s,t,o;let{id:c,chosen:d,onChange:p,none:u,byHand:m,catalogue:h,disabled:x=!1,style:v}=e,{t:j}=(0,l.kj)(),k=function(e){let[s,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(void 0!==e)return;let s=!0;return r.FH.models().then(e=>{s&&t(e)}).catch(()=>void 0),()=>{s=!1}},[e]),void 0!==e?e:s}(h),w=null!=(s=null==k?void 0:k.options)?s:[],y=e=>e.toLowerCase().replace(/[-‐‑‒–—_]+/g," ").replace(/\s+/g," ").trim(),b=d&&d!==i?w.find(e=>y(e.name)===y(d)):void 0,f=null!=(t=null==b?void 0:b.name)?t:d,N=!!b||d===i&&void 0!==m,g=w.filter(e=>!e.group),C=new Map;for(let e of w)e.group&&C.set(e.group,[...null!=(o=C.get(e.group))?o:[],e]);return(0,n.jsxs)("select",{id:c,value:f,onChange:e=>p(e.target.value),disabled:x,style:{width:"auto",minWidth:280,...v},children:[void 0!==m&&(0,n.jsx)("option",{value:i,children:m}),void 0!==u&&(0,n.jsx)("option",{value:"",children:u}),d&&!N&&(0,n.jsx)("option",{value:d,children:j("model.notInList",{name:d})}),g.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name)),[...C.entries()].map(e=>{let[s,t]=e;return(0,n.jsx)("optgroup",{label:s,children:t.map(e=>(0,n.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name))},s)})]})}},34982:(e,s,t)=>{t.d(s,{a:()=>u});var n=t(73365),a=t(1521),r=t(8205),l=t(33389),i=t(24872),o=t(79717),c=t(65132);let d={same:"retry.same",fresh:"retry.fresh",continue:"retry.continue",restore:"retry.restore",accept:"retry.accept"},p={plan:"pk.waitsPlan",question:"pk.waitsQuestion",retry:"pk.waitsRetry",command:"pk.waitsCommand",model:"pk.waitsModel",password:"pk.waitsPassword"};function u(e){var s;let{parked:t,onAnswer:u}=e,{t:m}=(0,r.kj)(),h=(0,r.W3)(),x=(0,a.useId)(),[v,j]=(0,a.useState)(""),{locked:k,err:w,choose:y,mark:b}=(0,l.p)(),[f,N]=(0,a.useState)(""),g=t.approval,C=async(e,s)=>{await y(e,()=>u(s))&&N("stop"in s?"stopped":"answered")};return t.answer||f?(0,n.jsx)("p",{className:"small pk-answered",role:"status",children:m("stopped"===f?"pk.stopped":"pk.answered")}):(0,n.jsxs)("div",{className:"pk",role:"group","aria-label":m("pk.title"),children:[(0,n.jsxs)("p",{className:"small pk-head",children:[(0,n.jsx)("strong",{children:m("pk.title")})," ",(0,n.jsx)("span",{className:"muted",children:m("pk.since",{at:h(t.at),what:m(p[t.kind])})})]}),"plan"===t.kind&&g.plan&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.D,{plan:g.plan.plan,showApproval:!1}),(0,n.jsx)("label",{htmlFor:"".concat(x,"-note"),className:"small",children:m("pk.note")}),(0,n.jsx)("textarea",{id:"".concat(x,"-note"),className:"prose",rows:2,value:v,onChange:e=>j(e.target.value),disabled:k}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",className:"primary",...b("approve"),onClick:()=>void C("approve",{decision:"approve",...v.trim()?{note:v.trim()}:{}}),children:m("pk.approve")}),(0,n.jsx)("button",{type:"button",...b("revise"),disabled:k||!v.trim(),onClick:()=>void C("revise",{decision:"revise",note:v.trim()}),title:v.trim()?void 0:m("pk.reviseWhy"),children:m("pk.revise")})]})]}),"question"===t.kind&&g.question&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.s,{text:g.question.text}),g.question.why&&(0,n.jsx)("p",{className:"muted small",children:g.question.why}),(0,n.jsx)("div",{className:"cs-copy-row",children:(0,n.jsx)(i.i,{text:[g.question.text,null!=(s=g.question.why)?s:"",...g.question.options.map((e,s)=>"".concat(s+1,". ").concat(e))].filter(Boolean).join("\n"),what:"chat.copyQuestion"})}),g.question.options.length>0&&(0,n.jsx)("div",{className:"row cs-options",children:g.question.options.map((e,s)=>(0,n.jsx)("button",{type:"button",className:0===s?"primary cs-option":"cs-option",...b("option-".concat(s)),onClick:()=>void C("option-".concat(s),{answer:e}),children:e},e))}),(0,n.jsx)("label",{htmlFor:"".concat(x,"-answer"),className:"small",children:m("lead.answer")}),(0,n.jsx)("textarea",{id:"".concat(x,"-answer"),className:"prose",rows:2,value:v,onChange:e=>j(e.target.value),disabled:k}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("button",{type:"button",className:"primary",...b("written"),disabled:k||!v.trim(),onClick:()=>void C("written",{answer:v.trim()}),children:m("lead.send")})})]}),"retry"===t.kind&&g.retry&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"small",children:[m("retry.title",{n:g.retry.n})," — ",g.retry.title]}),g.retry.reason&&(0,n.jsx)("p",{className:"small",children:m("retry.reason",{reason:g.retry.reason})}),"unknown"===g.retry.sideEffects&&(0,n.jsx)("p",{className:"reason small",children:m("retry.unknown")}),(0,n.jsx)("div",{className:"row",children:g.retry.choices.map((e,s)=>(0,n.jsx)("button",{type:"button",className:0===s?"primary":void 0,...b(e),onClick:()=>void C(e,{choice:e}),children:m(d[e])},e))})]}),"command"===t.kind&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("pre",{className:"cs-out",children:g.description}),g.platform&&(0,n.jsx)("p",{className:"reason small",children:m("approval.platform",{platform:g.platform})}),g.readOnly&&(0,n.jsx)("p",{className:"reason small",children:m("approval.readOnly")}),(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("button",{type:"button",className:"primary",...b("run"),onClick:()=>void C("run",{decision:"run"}),children:m("pk.run")}),(0,n.jsx)("button",{type:"button",...b("skip"),onClick:()=>void C("skip",{decision:"skip"}),children:m("pk.skip")})]})]}),("model"===t.kind||"password"===t.kind)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"small",children:m("model"===t.kind?"pk.modelWhy":"pk.passwordWhy")}),(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("button",{type:"button",className:"primary",...b("resume"),onClick:()=>void C("resume",{resume:!0}),children:m("pk.resume")})})]}),(0,n.jsx)("div",{className:"row pk-stop",children:(0,n.jsx)("button",{type:"button",className:"quiet",...b("stop"),onClick:()=>void C("stop",{stop:!0}),children:m("pk.stop")})}),w&&(0,n.jsx)("p",{className:"err",role:"alert",children:w})]})}},41370:(e,s,t)=>{t.d(s,{q:()=>a});var n=t(1521);function a(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:450,[t,a]=(0,n.useState)(1);return(0,n.useEffect)(()=>{if(!e)return void a(1);let t=window.setInterval(()=>a(e=>e%3+1),s);return()=>window.clearInterval(t)},[e,s]),".".repeat(t)}},65132:(e,s,t)=>{t.d(s,{s:()=>i});var n=t(73365),a=t(1521);function r(e,s){let t,a=[],r=/(`[^`\n]+`)|(\*\*[^*\n]+\*\*)|(\*[^*\n]+\*)/g,l=0,i=0;for(;null!==(t=r.exec(e));){t.index>l&&a.push(e.slice(l,t.index));let r=t[0],o="".concat(s,"-i").concat(i+=1);r.startsWith("`")?a.push((0,n.jsx)("code",{children:r.slice(1,-1)},o)):r.startsWith("**")?a.push((0,n.jsx)("strong",{children:r.slice(2,-2)},o)):a.push((0,n.jsx)("em",{children:r.slice(1,-1)},o)),l=t.index+r.length}return l<e.length&&a.push(e.slice(l)),a}function l(e){let s=/^\s*[-*•]\s+(.*)$/.exec(e);if(s)return s[1];let t=/^\s*\d+[.)]\s+(.*)$/.exec(e);return t?t[1]:null}function i(e){let{text:s,className:t}=e,i=[],o=s.replace(/\r\n/g,"\n").split("\n"),c=0,d=0;for(;c<o.length;){let e=o[c];if(e.trim().startsWith("```")){let e=[];for(c+=1;c<o.length&&!o[c].trim().startsWith("```");)e.push(o[c++]);c+=1,e.length>0&&i.push((0,n.jsx)("pre",{children:e.join("\n")},"b".concat(d+=1)));continue}if(null!==l(e)){let e=[];for(;c<o.length&&null!==l(o[c]);)e.push(l(o[c++]));i.push((0,n.jsx)("ul",{children:e.map((e,s)=>(0,n.jsx)("li",{children:r(e,"b".concat(d,"-").concat(s))},s))},"b".concat(d+=1)));continue}if(""===e.trim()){c+=1;continue}let s=[];for(;c<o.length&&""!==o[c].trim()&&null===l(o[c])&&!o[c].trim().startsWith("```");)s.push(o[c++]);let t=d+=1;i.push((0,n.jsx)("p",{children:s.map((e,s)=>(0,n.jsxs)(a.Fragment,{children:[s>0&&(0,n.jsx)("br",{}),r(e,"b".concat(t,"-").concat(s))]},s))},"b".concat(t)))}return(0,n.jsx)("div",{className:"rich ".concat(null!=t?t:""),children:i})}}}]);
|