copilot-operator 0.1.48 → 0.1.50
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 +41 -0
- package/dist/src/api/operator.service.js +20 -0
- package/dist/src/plan/systemGuide.js +82 -10
- package/dist/src/session/workspaceGit.js +212 -0
- package/dist/src/transport/chatSession.js +28 -4
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/534-56c68930a1a3c10f.js +1 -0
- package/dist/web/_next/static/chunks/549-c32dd718a1809d4d.js +1 -0
- package/dist/web/_next/static/chunks/867-0e5d0d5472bf185f.js +1 -0
- package/dist/web/_next/static/chunks/app/history/page-95bab4c1b1ff9339.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-a1314921eeba8ad5.js +1 -0
- package/dist/web/_next/static/chunks/app/page-4d8f0851fe672925.js +1 -0
- package/dist/web/_next/static/chunks/app/sessions/view/{page-835d3533fdc63082.js → page-adb64f8ba3d8c06e.js} +1 -1
- package/dist/web/_next/static/css/{ddb518572ea43e30.css → 4335e4ce269ba1ea.css} +1 -1
- package/dist/web/appearance.html +2 -2
- package/dist/web/appearance.txt +10 -10
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +10 -10
- package/dist/web/history.html +2 -2
- package/dist/web/history.txt +10 -10
- package/dist/web/import.html +2 -2
- package/dist/web/import.txt +10 -10
- package/dist/web/index.html +2 -2
- package/dist/web/index.txt +10 -10
- package/dist/web/level1.html +2 -2
- package/dist/web/level1.txt +10 -10
- package/dist/web/presets.html +2 -2
- package/dist/web/presets.txt +10 -10
- package/dist/web/sessions/view.html +2 -2
- package/dist/web/sessions/view.txt +10 -10
- package/dist/web/sessions.html +2 -2
- package/dist/web/sessions.txt +10 -10
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +10 -10
- package/package.json +3 -2
- package/dist/web/_next/static/chunks/549-a4473e9519a97026.js +0 -1
- package/dist/web/_next/static/chunks/867-b159f25612da5cbc.js +0 -1
- package/dist/web/_next/static/chunks/897-5a34109533c3da50.js +0 -1
- package/dist/web/_next/static/chunks/app/history/page-0bb537407fed5944.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-485ce9395cb17998.js +0 -1
- package/dist/web/_next/static/chunks/app/page-3caf0b02046754a1.js +0 -1
- /package/dist/web/_next/static/{nLLy7-v8M5YRGIMtuTvMJ → z74_FBfnnXW5IJCHTgTH2}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{nLLy7-v8M5YRGIMtuTvMJ → z74_FBfnnXW5IJCHTgTH2}/_ssgManifest.js +0 -0
|
@@ -548,6 +548,25 @@ let OperatorController = class OperatorController {
|
|
|
548
548
|
throw new BadRequestException('path is required');
|
|
549
549
|
return this.ops.workspaceFile(path).catch(fail);
|
|
550
550
|
}
|
|
551
|
+
/** The open folder's git: the changes, staged and not, and the branch's commits. Read-only. */
|
|
552
|
+
workspaceGit() {
|
|
553
|
+
return this.ops.workspaceGit().catch(fail);
|
|
554
|
+
}
|
|
555
|
+
workspaceCommit(sha) {
|
|
556
|
+
if (!sha)
|
|
557
|
+
throw new BadRequestException('sha is required');
|
|
558
|
+
return this.ops.workspaceCommit(sha).catch(fail);
|
|
559
|
+
}
|
|
560
|
+
/** A file of those lists, its two versions: `area` staged, changes or commit (with `commit`). */
|
|
561
|
+
workspaceGitFile(area, path, commit) {
|
|
562
|
+
if (!path)
|
|
563
|
+
throw new BadRequestException('path is required');
|
|
564
|
+
if (area !== 'staged' && area !== 'changes' && area !== 'commit')
|
|
565
|
+
throw new BadRequestException('area must be staged, changes or commit');
|
|
566
|
+
if (area === 'commit' && !commit)
|
|
567
|
+
throw new BadRequestException('commit is required');
|
|
568
|
+
return this.ops.workspaceGitFile(area, path, commit).catch(fail);
|
|
569
|
+
}
|
|
551
570
|
/** The chat's conversations, newest first. */
|
|
552
571
|
chatThreads() {
|
|
553
572
|
return this.ops.chatThreads().catch(fail);
|
|
@@ -1274,6 +1293,28 @@ __decorate([
|
|
|
1274
1293
|
__metadata("design:paramtypes", [String]),
|
|
1275
1294
|
__metadata("design:returntype", Promise)
|
|
1276
1295
|
], OperatorController.prototype, "workspaceFile", null);
|
|
1296
|
+
__decorate([
|
|
1297
|
+
Get('workspace/git'),
|
|
1298
|
+
__metadata("design:type", Function),
|
|
1299
|
+
__metadata("design:paramtypes", []),
|
|
1300
|
+
__metadata("design:returntype", Promise)
|
|
1301
|
+
], OperatorController.prototype, "workspaceGit", null);
|
|
1302
|
+
__decorate([
|
|
1303
|
+
Get('workspace/git/commit'),
|
|
1304
|
+
__param(0, Query('sha')),
|
|
1305
|
+
__metadata("design:type", Function),
|
|
1306
|
+
__metadata("design:paramtypes", [String]),
|
|
1307
|
+
__metadata("design:returntype", Promise)
|
|
1308
|
+
], OperatorController.prototype, "workspaceCommit", null);
|
|
1309
|
+
__decorate([
|
|
1310
|
+
Get('workspace/git/file'),
|
|
1311
|
+
__param(0, Query('area')),
|
|
1312
|
+
__param(1, Query('path')),
|
|
1313
|
+
__param(2, Query('commit')),
|
|
1314
|
+
__metadata("design:type", Function),
|
|
1315
|
+
__metadata("design:paramtypes", [String, String, String]),
|
|
1316
|
+
__metadata("design:returntype", Promise)
|
|
1317
|
+
], OperatorController.prototype, "workspaceGitFile", null);
|
|
1277
1318
|
__decorate([
|
|
1278
1319
|
Get('chat/threads'),
|
|
1279
1320
|
__metadata("design:type", Function),
|
|
@@ -28,6 +28,7 @@ import { buildPlanExport, buildDomainExport, buildBotExport, buildBundleExport,
|
|
|
28
28
|
import { suggestRunName } from '../session/runName.js';
|
|
29
29
|
import { buildStory } from '../session/story.js';
|
|
30
30
|
import { buildTaskExchange } from '../session/taskExchange.js';
|
|
31
|
+
import { workspaceCommit, workspaceGit, workspaceGitVersions } from '../session/workspaceGit.js';
|
|
31
32
|
import { chatCode } from '../transport/chatSession.js';
|
|
32
33
|
import { checkPlan } from '../plan/schema.js';
|
|
33
34
|
import { planBrief } from '../plan/brief.js';
|
|
@@ -2294,6 +2295,25 @@ let OperatorService = class OperatorService {
|
|
|
2294
2295
|
throw new Error(ws.problem ?? 'No project folder is open.');
|
|
2295
2296
|
return await workspaceFile(ws.dir, path);
|
|
2296
2297
|
}
|
|
2298
|
+
/** The open folder's git, as an IDE's Source Control view shows it (see `workspaceGit.ts`). Read-only. */
|
|
2299
|
+
async workspaceGit() {
|
|
2300
|
+
const ws = await this.workspace();
|
|
2301
|
+
if (!ws.ok)
|
|
2302
|
+
throw new Error(ws.problem ?? 'No project folder is open.');
|
|
2303
|
+
return await workspaceGit(ws.dir);
|
|
2304
|
+
}
|
|
2305
|
+
async workspaceCommit(sha) {
|
|
2306
|
+
const ws = await this.workspace();
|
|
2307
|
+
if (!ws.ok)
|
|
2308
|
+
throw new Error(ws.problem ?? 'No project folder is open.');
|
|
2309
|
+
return await workspaceCommit(ws.dir, sha);
|
|
2310
|
+
}
|
|
2311
|
+
async workspaceGitFile(area, path, commit) {
|
|
2312
|
+
const ws = await this.workspace();
|
|
2313
|
+
if (!ws.ok)
|
|
2314
|
+
throw new Error(ws.problem ?? 'No project folder is open.');
|
|
2315
|
+
return await workspaceGitVersions(ws.dir, area, path, commit);
|
|
2316
|
+
}
|
|
2297
2317
|
/** The chat's conversations, newest first. */
|
|
2298
2318
|
async chatThreads() {
|
|
2299
2319
|
await this.init();
|
|
@@ -423,18 +423,18 @@ export const SYSTEM_GUIDE = [
|
|
|
423
423
|
{
|
|
424
424
|
key: 'approval.manualReady',
|
|
425
425
|
kind: 'button',
|
|
426
|
-
en: 'Ready —
|
|
427
|
-
bg: 'Готово —
|
|
428
|
-
doesEn: '
|
|
429
|
-
doesBg: '
|
|
426
|
+
en: 'Ready — continue',
|
|
427
|
+
bg: 'Готово — продължи',
|
|
428
|
+
doesEn: 'The one way on of the card shown when the model is chosen by hand (the default, or "Set the model by hand" in the chat): after you chose it in the Copilot window, the run goes on, on that model; the conversation is not asked again.',
|
|
429
|
+
doesBg: 'Единственият бутон за продължаване на картата при ръчен избор на модела (по подразбиране или „Ръчно задаване на модел“ в чата): след като го изберете в прозореца на Copilot, изпълнението продължава на този модел; разговорът не се пита пак.',
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
key: 'approval.modelAsItIs',
|
|
433
433
|
kind: 'button',
|
|
434
434
|
en: 'Continue on the model it is on',
|
|
435
435
|
bg: 'Продължи на текущия модел',
|
|
436
|
-
doesEn: '
|
|
437
|
-
doesBg: '
|
|
436
|
+
doesEn: 'On the card shown when the bot could not choose the model: the run goes on with whatever model the chat is on, and the record says so.',
|
|
437
|
+
doesBg: 'На картата, когато ботът не успее да избере модела: изпълнението продължава с модела, на който е чатът, и записът го казва.',
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
key: 'approval.modelStop',
|
|
@@ -932,6 +932,22 @@ export const SYSTEM_GUIDE = [
|
|
|
932
932
|
doesEn: 'Reads the sessions again at once (they are read every few seconds anyway).',
|
|
933
933
|
doesBg: 'Прочита сесиите веднага (те се четат на всеки няколко секунди и без това).',
|
|
934
934
|
},
|
|
935
|
+
{
|
|
936
|
+
key: 'git.refresh',
|
|
937
|
+
kind: 'button',
|
|
938
|
+
en: 'Read the folder\'s git again',
|
|
939
|
+
bg: 'Прочети отново git на папката',
|
|
940
|
+
doesEn: 'The ↻ of the Git view (the activity bar\'s "Git"): reads the open folder\'s git again at once. The view shows, as an IDE\'s Source Control does, the branch, the staged changes and the changes, each file with its letter (M modified, A added, D deleted, R renamed, U untracked, ! in conflict) and its lines, and the branch\'s commits; a file opens its two versions side by side in the editor, a commit opens to its files. Read-only: it stages and commits nothing.',
|
|
941
|
+
doesBg: '↻ на изгледа Git („Git“ в лентата вляво): прочита веднага git на отворената папка. Изгледът показва, както Source Control в IDE, клона, подготвените промени и промените — всеки файл с буквата си (M променен, A добавен, D изтрит, R преименуван, U непроследен, ! в конфликт) и редовете си — и комитите на клона; файл отваря двете си версии една до друга в редактора, комит се разгъва до файловете си. Само чете: не подготвя и не комитва нищо.',
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
key: 'wb.byTask',
|
|
945
|
+
kind: 'link',
|
|
946
|
+
en: 'by “{title}”',
|
|
947
|
+
bg: 'от „{title}“',
|
|
948
|
+
doesEn: 'Under a commit of the Git view that a task made: opens that task.',
|
|
949
|
+
doesBg: 'Под комит в изгледа Git, направен от задача: отваря задачата.',
|
|
950
|
+
},
|
|
935
951
|
{
|
|
936
952
|
key: 'wb.newSession',
|
|
937
953
|
kind: 'link',
|
|
@@ -1289,6 +1305,30 @@ export const SYSTEM_GUIDE = [
|
|
|
1289
1305
|
doesEn: 'The ↻ beside the model: reads the models Copilot\'s own picker offers now (the browser opens for a moment; not while a conversation works).',
|
|
1290
1306
|
doesBg: '↻ до модела: прочита моделите, които изборът в Copilot предлага сега (браузърът се отваря за момент; не и докато разговор работи).',
|
|
1291
1307
|
},
|
|
1308
|
+
{
|
|
1309
|
+
key: 'copy.copy',
|
|
1310
|
+
kind: 'button',
|
|
1311
|
+
en: 'Copy',
|
|
1312
|
+
bg: 'Копирай',
|
|
1313
|
+
doesEn: 'Under your message, under what the chat said, beside how it ended and beside a command: copies that text (a command with what it printed); it says "Copied" for a moment.',
|
|
1314
|
+
doesBg: 'Под твое съобщение, под казаното от чата, до края и до команда: копира този текст (команда — заедно с изписаното от нея); за момент пише „Копирано“.',
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
key: 'chat.foldOpen',
|
|
1318
|
+
kind: 'button',
|
|
1319
|
+
en: 'Show the whole message',
|
|
1320
|
+
bg: 'Покажи цялото съобщение',
|
|
1321
|
+
doesEn: 'The ▾ under a long message of yours, shown folded to its first three lines, fading out: opens it whole.',
|
|
1322
|
+
doesBg: 'Стрелката ▾ под твое дълго съобщение, свито до първите три реда, които избледняват: разгъва го цялото.',
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
key: 'chat.foldClose',
|
|
1326
|
+
kind: 'button',
|
|
1327
|
+
en: 'Fold the message to its first lines',
|
|
1328
|
+
bg: 'Свий съобщението до първите редове',
|
|
1329
|
+
doesEn: 'The ▴ under an opened long message: folds it back to three lines.',
|
|
1330
|
+
doesBg: 'Стрелката ▴ под разгънато дълго съобщение: свива го обратно до три реда.',
|
|
1331
|
+
},
|
|
1292
1332
|
{
|
|
1293
1333
|
key: 'chat.exchange',
|
|
1294
1334
|
kind: 'link',
|
|
@@ -1539,16 +1579,48 @@ export const SYSTEM_GUIDE = [
|
|
|
1539
1579
|
kind: 'tab',
|
|
1540
1580
|
en: 'Terminal',
|
|
1541
1581
|
bg: 'Терминал',
|
|
1542
|
-
doesEn: 'The commands the chosen task ran and what each printed, following the newest while it runs.',
|
|
1543
|
-
doesBg: 'Командите, които избраната задача е изпълнила, и какво е изписала всяка, като следва най-новата, докато върви.',
|
|
1582
|
+
doesEn: 'The commands the chosen task ran and what each printed, following the newest while it runs. After "New chat" it is empty until the new chat runs, until a task is opened in the editor.',
|
|
1583
|
+
doesBg: 'Командите, които избраната задача е изпълнила, и какво е изписала всяка, като следва най-новата, докато върви. След „Нов чат“ е празен, докато новият чат не тръгне, освен ако не отвориш задача в редактора.',
|
|
1544
1584
|
},
|
|
1545
1585
|
{
|
|
1546
1586
|
key: 'wb.problems',
|
|
1547
1587
|
kind: 'tab',
|
|
1548
1588
|
en: 'Problems',
|
|
1549
1589
|
bg: 'Проблеми',
|
|
1550
|
-
doesEn: 'What did not pass in the chosen session — checks, review findings, why a task stopped — each opening its task.',
|
|
1551
|
-
doesBg: 'Какво не е минало в избраната сесия — проверки, находки от прегледа, защо е спряла задача — всяко отваря задачата
|
|
1590
|
+
doesEn: 'What did not pass in the chosen session — checks, review findings, why a task stopped — each opening its task; the count is of the ones not marked seen. Empty on a new chat.',
|
|
1591
|
+
doesBg: 'Какво не е минало в избраната сесия — проверки, находки от прегледа, защо е спряла задача — всяко отваря задачата си; броят е на тези, които не са отбелязани като видени. Празно при нов чат.',
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
key: 'wb.problemSeen',
|
|
1595
|
+
kind: 'button',
|
|
1596
|
+
en: 'Seen',
|
|
1597
|
+
bg: 'Видях',
|
|
1598
|
+
doesEn: 'Beside a problem: takes it off the list and the count, in this browser. It is still on its task, and shows again if a later run of that task has it again.',
|
|
1599
|
+
doesBg: 'До проблем: маха го от списъка и от броя, в този браузър. Остава записан към задачата си и се показва пак, ако следващо пускане на задачата има същия проблем.',
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
key: 'wb.problemsAllSeen',
|
|
1603
|
+
kind: 'button',
|
|
1604
|
+
en: 'Seen all',
|
|
1605
|
+
bg: 'Видях всички',
|
|
1606
|
+
doesEn: 'Under the problems: marks every one shown as seen.',
|
|
1607
|
+
doesBg: 'Под проблемите: отбелязва всички показани като видени.',
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
key: 'wb.problemsShowSeen',
|
|
1611
|
+
kind: 'button',
|
|
1612
|
+
en: 'Show the {n} seen',
|
|
1613
|
+
bg: 'Покажи видените ({n})',
|
|
1614
|
+
doesEn: 'Under the problems: shows the ones marked seen too, faded.',
|
|
1615
|
+
doesBg: 'Под проблемите: показва и видените, избледнени.',
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
key: 'wb.problemsHideSeen',
|
|
1619
|
+
kind: 'button',
|
|
1620
|
+
en: 'Hide the seen',
|
|
1621
|
+
bg: 'Скрий видените',
|
|
1622
|
+
doesEn: 'Hides the ones marked seen again.',
|
|
1623
|
+
doesBg: 'Скрива отново видените.',
|
|
1552
1624
|
},
|
|
1553
1625
|
{
|
|
1554
1626
|
key: 'wb.output',
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The open project folder's git, as an IDE's Source Control view shows it (operator's request, 2026-10-19: "see
|
|
3
|
+
* which files changed and how — the diff; let the Commits button show Git as VS Code does"):
|
|
4
|
+
*
|
|
5
|
+
* - the changes: what is staged (the index against HEAD) and what is not (the working tree against the index), the
|
|
6
|
+
* files git does not track yet among them, each with its letter and its lines added and removed;
|
|
7
|
+
* - the history of the branch, newest first, and for a commit the files it changed;
|
|
8
|
+
* - for any of those files, its two versions, for the side-by-side view.
|
|
9
|
+
*
|
|
10
|
+
* Read-only, every command of it: nothing here stages, commits, checks out or writes a file. A file's two versions
|
|
11
|
+
* are given only for a file the list itself names, so the view cannot be pointed at anything else in the repository
|
|
12
|
+
* or outside it.
|
|
13
|
+
*/
|
|
14
|
+
import { readFile, stat } from 'node:fs/promises';
|
|
15
|
+
import { isAbsolute, join, relative, resolve, sep } from 'node:path';
|
|
16
|
+
import { fileAt, git, gitBytes, looksLikeRepo } from '../vcs/git.js';
|
|
17
|
+
/** git's empty tree: what a repository with no commit yet is compared with. */
|
|
18
|
+
const EMPTY_TREE = '4b825dc642cb6eb9a060e54bf8d69288fbee4904';
|
|
19
|
+
const MAX_FILE = 2 * 1024 * 1024;
|
|
20
|
+
const MAX_COMMITS = 200;
|
|
21
|
+
const SHA = /^[0-9a-f]{7,40}$/i;
|
|
22
|
+
async function hasHead(dir) {
|
|
23
|
+
return (await git(dir, ['rev-parse', '--verify', '--quiet', 'HEAD'])).ok;
|
|
24
|
+
}
|
|
25
|
+
/** `--name-status -z` read into files, renames and copies with both their paths. */
|
|
26
|
+
function nameStatus(out) {
|
|
27
|
+
const tokens = out.split('\0');
|
|
28
|
+
const files = [];
|
|
29
|
+
for (let i = 0; i < tokens.length;) {
|
|
30
|
+
const status = tokens[i] ?? '';
|
|
31
|
+
if (!status)
|
|
32
|
+
break;
|
|
33
|
+
const letter = status[0];
|
|
34
|
+
if (letter === 'R' || letter === 'C') {
|
|
35
|
+
files.push({ status: letter, oldPath: tokens[i + 1] ?? '', path: tokens[i + 2] ?? '', added: 0, removed: 0 });
|
|
36
|
+
i += 3;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
files.push({ status: letter, path: tokens[i + 1] ?? '', added: 0, removed: 0 });
|
|
40
|
+
i += 2;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return files;
|
|
44
|
+
}
|
|
45
|
+
/** `--numstat -z` counted into the files it names. */
|
|
46
|
+
function addCounts(files, out) {
|
|
47
|
+
const parts = out.split('\0');
|
|
48
|
+
for (let i = 0; i < parts.length;) {
|
|
49
|
+
const head = parts[i] ?? '';
|
|
50
|
+
if (!head)
|
|
51
|
+
break;
|
|
52
|
+
const [added = '0', removed = '0', path = ''] = head.split('\t');
|
|
53
|
+
// A rename is "added<TAB>removed<TAB>" followed by the old path and the new one.
|
|
54
|
+
const newPath = path === '' ? (parts[i + 2] ?? '') : path;
|
|
55
|
+
i += path === '' ? 3 : 1;
|
|
56
|
+
const file = files.find((f) => f.path === newPath);
|
|
57
|
+
if (file) {
|
|
58
|
+
file.added = added === '-' ? -1 : Number(added) || 0;
|
|
59
|
+
file.removed = removed === '-' ? -1 : Number(removed) || 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async function diffFiles(dir, args) {
|
|
64
|
+
const names = await gitBytes(dir, ['diff', '--name-status', '-M', '-z', ...args]);
|
|
65
|
+
if (!names.ok)
|
|
66
|
+
return [];
|
|
67
|
+
const files = nameStatus(names.stdout.toString('utf8'));
|
|
68
|
+
const counts = await gitBytes(dir, ['diff', '--numstat', '-M', '-z', ...args]);
|
|
69
|
+
if (counts.ok)
|
|
70
|
+
addCounts(files, counts.stdout.toString('utf8'));
|
|
71
|
+
return files;
|
|
72
|
+
}
|
|
73
|
+
/** A file git does not track yet: all of it added, counted in lines when it is text. */
|
|
74
|
+
async function untracked(dir, path) {
|
|
75
|
+
const full = join(dir, path);
|
|
76
|
+
const info = await stat(full).catch(() => null);
|
|
77
|
+
let added = 0;
|
|
78
|
+
if (info?.isFile() && info.size <= MAX_FILE) {
|
|
79
|
+
const bytes = await readFile(full).catch(() => Buffer.alloc(0));
|
|
80
|
+
if (bytes.subarray(0, 8000).includes(0))
|
|
81
|
+
added = -1;
|
|
82
|
+
else {
|
|
83
|
+
const text = bytes.toString('utf8');
|
|
84
|
+
added = text === '' ? 0 : text.split('\n').length - (text.endsWith('\n') ? 1 : 0);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return { status: 'U', path, added, removed: added < 0 ? -1 : 0 };
|
|
88
|
+
}
|
|
89
|
+
/** The folder's git as the Source Control view shows it. */
|
|
90
|
+
export async function workspaceGit(dir) {
|
|
91
|
+
const none = { dir, isRepo: false, staged: [], changes: [], commits: [], moreCommits: false };
|
|
92
|
+
if (!dir || !looksLikeRepo(dir))
|
|
93
|
+
return none;
|
|
94
|
+
const head = await hasHead(dir);
|
|
95
|
+
const branch = (await git(dir, ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout || undefined;
|
|
96
|
+
const sha = head ? (await git(dir, ['rev-parse', 'HEAD'])).stdout : undefined;
|
|
97
|
+
const staged = await diffFiles(dir, ['--cached', head ? 'HEAD' : EMPTY_TREE]);
|
|
98
|
+
const unstaged = await diffFiles(dir, []);
|
|
99
|
+
// In conflict: git's `U` in `--name-status`, said as the IDE says it.
|
|
100
|
+
for (const f of [...staged, ...unstaged])
|
|
101
|
+
if (f.status === 'U')
|
|
102
|
+
f.status = '!';
|
|
103
|
+
const others = await gitBytes(dir, ['ls-files', '--others', '--exclude-standard', '-z']);
|
|
104
|
+
const fresh = others.ok ? others.stdout.toString('utf8').split('\0').filter(Boolean).sort().slice(0, 2000) : [];
|
|
105
|
+
const changes = [...unstaged, ...(await Promise.all(fresh.map((p) => untracked(dir, p))))];
|
|
106
|
+
let upstream;
|
|
107
|
+
const up = await git(dir, ['rev-parse', '--abbrev-ref', '--symbolic-full-name', '@{upstream}']);
|
|
108
|
+
if (up.ok && up.stdout) {
|
|
109
|
+
const counts = await git(dir, ['rev-list', '--left-right', '--count', `${up.stdout}...HEAD`]);
|
|
110
|
+
const [behind = '0', ahead = '0'] = counts.stdout.split(/\s+/);
|
|
111
|
+
upstream = { name: up.stdout, ahead: Number(ahead) || 0, behind: Number(behind) || 0 };
|
|
112
|
+
}
|
|
113
|
+
const commits = [];
|
|
114
|
+
if (head) {
|
|
115
|
+
const log = await gitBytes(dir, ['log', `-n${MAX_COMMITS + 1}`, '--format=%H%x1f%h%x1f%an%x1f%aI%x1f%s%x1e']);
|
|
116
|
+
if (log.ok) {
|
|
117
|
+
for (const record of log.stdout.toString('utf8').split('\x1e')) {
|
|
118
|
+
const [full = '', short = '', author = '', at = '', subject = ''] = record.trim().split('\x1f');
|
|
119
|
+
if (full)
|
|
120
|
+
commits.push({ sha: full, short, author, at, subject });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
dir,
|
|
126
|
+
isRepo: true,
|
|
127
|
+
...(branch ? { branch } : {}),
|
|
128
|
+
...(sha ? { head: sha } : {}),
|
|
129
|
+
...(upstream ? { upstream } : {}),
|
|
130
|
+
staged,
|
|
131
|
+
changes,
|
|
132
|
+
commits: commits.slice(0, MAX_COMMITS),
|
|
133
|
+
moreCommits: commits.length > MAX_COMMITS,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/** One commit: who, when, what it says, and the files it changed (a first commit against nothing). */
|
|
137
|
+
export async function workspaceCommit(dir, sha) {
|
|
138
|
+
if (!SHA.test(sha))
|
|
139
|
+
throw new Error('That is not a commit.');
|
|
140
|
+
if (!looksLikeRepo(dir))
|
|
141
|
+
throw new Error('The project folder is not a git repository.');
|
|
142
|
+
const info = await gitBytes(dir, ['show', '-s', '--format=%H%x1f%h%x1f%an%x1f%aI%x1f%s%x1f%b', sha]);
|
|
143
|
+
if (!info.ok)
|
|
144
|
+
throw new Error(`There is no commit ${sha} in the project folder.`);
|
|
145
|
+
const [full = '', short = '', author = '', at = '', subject = '', body = ''] = info.stdout.toString('utf8').split('\x1f');
|
|
146
|
+
const parent = await git(dir, ['rev-parse', '--verify', '--quiet', `${full}^`]);
|
|
147
|
+
const files = await diffFiles(dir, [parent.ok ? `${full}^` : EMPTY_TREE, full]);
|
|
148
|
+
return { sha: full, short, author, at, subject, body: body.trim(), files };
|
|
149
|
+
}
|
|
150
|
+
/** A path the view was given, as git writes it, or why it is not one. */
|
|
151
|
+
function cleanPath(dir, path) {
|
|
152
|
+
const clean = path.replace(/\\/g, '/').replace(/^\/+/, '');
|
|
153
|
+
const rel = relative(resolve(dir), resolve(dir, clean));
|
|
154
|
+
if (!clean || isAbsolute(clean) || rel.startsWith('..') || rel.split(sep).includes('.git'))
|
|
155
|
+
throw new Error('That path is not inside the project folder.');
|
|
156
|
+
return clean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The two versions of one file the view lists: for a staged change, HEAD and the index; for a change not staged, the
|
|
160
|
+
* index and the working tree (a file git does not track: nothing, and the file on disk); for a commit's file, its
|
|
161
|
+
* parent's version and the commit's.
|
|
162
|
+
*/
|
|
163
|
+
export async function workspaceGitVersions(dir, area, path, commit) {
|
|
164
|
+
const want = cleanPath(dir, path);
|
|
165
|
+
let file;
|
|
166
|
+
let before = { bytes: null, tooLarge: false };
|
|
167
|
+
let after = { bytes: null, tooLarge: false };
|
|
168
|
+
if (area === 'commit') {
|
|
169
|
+
const c = await workspaceCommit(dir, commit ?? '');
|
|
170
|
+
file = c.files.find((f) => f.path === want);
|
|
171
|
+
if (!file)
|
|
172
|
+
throw new Error('That file is not one this commit changed.');
|
|
173
|
+
const parent = await git(dir, ['rev-parse', '--verify', '--quiet', `${c.sha}^`]);
|
|
174
|
+
if (file.status !== 'A' && parent.ok)
|
|
175
|
+
before = await fileAt(dir, `${c.sha}^`, file.oldPath ?? file.path, MAX_FILE);
|
|
176
|
+
if (file.status !== 'D')
|
|
177
|
+
after = await fileAt(dir, c.sha, file.path, MAX_FILE);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
const state = await workspaceGit(dir);
|
|
181
|
+
file = (area === 'staged' ? state.staged : state.changes).find((f) => f.path === want);
|
|
182
|
+
if (!file)
|
|
183
|
+
throw new Error(area === 'staged' ? 'That file has no staged change.' : 'That file has no change in the working tree.');
|
|
184
|
+
if (area === 'staged') {
|
|
185
|
+
if (file.status !== 'A' && state.head)
|
|
186
|
+
before = await fileAt(dir, 'HEAD', file.oldPath ?? file.path, MAX_FILE);
|
|
187
|
+
if (file.status !== 'D')
|
|
188
|
+
after = await fileAt(dir, '', file.path, MAX_FILE);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
// Against the index, which is HEAD's version where nothing is staged; a file git does not track has neither.
|
|
192
|
+
if (file.status !== 'U')
|
|
193
|
+
before = await fileAt(dir, '', file.oldPath ?? file.path, MAX_FILE);
|
|
194
|
+
if (file.status !== 'D') {
|
|
195
|
+
const info = await stat(join(dir, file.path)).catch(() => null);
|
|
196
|
+
if (info?.isFile())
|
|
197
|
+
after = info.size > MAX_FILE ? { bytes: null, tooLarge: true } : { bytes: await readFile(join(dir, file.path)), tooLarge: false };
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
const binary = [before.bytes, after.bytes].some((b) => !!b && b.subarray(0, 8000).includes(0));
|
|
202
|
+
const text = (b) => (b === null || binary ? null : b.toString('utf8').replace(/^/, ''));
|
|
203
|
+
return {
|
|
204
|
+
path: file.path,
|
|
205
|
+
...(file.oldPath ? { oldPath: file.oldPath } : {}),
|
|
206
|
+
status: file.status,
|
|
207
|
+
before: text(before.bytes),
|
|
208
|
+
after: text(after.bytes),
|
|
209
|
+
binary,
|
|
210
|
+
tooLarge: before.tooLarge || after.tooLarge,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
@@ -31,6 +31,25 @@ export function chatCode(sessionId) {
|
|
|
31
31
|
const tail = /-([a-z0-9]{3,8})$/i.exec(sessionId)?.[1];
|
|
32
32
|
return (tail ?? sessionId.replace(/[^a-z0-9]/gi, '').slice(-6)).toLowerCase();
|
|
33
33
|
}
|
|
34
|
+
/** Cyrillic letters in Latin ones: the Bulgarian streamlined system, with the Russian and Ukrainian letters it lacks. */
|
|
35
|
+
const CYRILLIC = {
|
|
36
|
+
а: 'a', б: 'b', в: 'v', г: 'g', д: 'd', е: 'e', ж: 'zh', з: 'z', и: 'i', й: 'y', к: 'k', л: 'l', м: 'm', н: 'n',
|
|
37
|
+
о: 'o', п: 'p', р: 'r', с: 's', т: 't', у: 'u', ф: 'f', х: 'h', ц: 'ts', ч: 'ch', ш: 'sh', щ: 'sht', ъ: 'a', ь: 'y',
|
|
38
|
+
ю: 'yu', я: 'ya', ё: 'yo', ы: 'y', э: 'e', є: 'ye', і: 'i', ї: 'yi', ґ: 'g',
|
|
39
|
+
};
|
|
40
|
+
/** A text in Latin letters: Cyrillic transliterated, accents taken off; what is left of other scripts is kept. */
|
|
41
|
+
export function latin(text) {
|
|
42
|
+
let out = '';
|
|
43
|
+
for (const ch of text) {
|
|
44
|
+
const lower = ch.toLowerCase();
|
|
45
|
+
const mapped = CYRILLIC[lower];
|
|
46
|
+
if (mapped === undefined)
|
|
47
|
+
out += ch;
|
|
48
|
+
else
|
|
49
|
+
out += ch === lower ? mapped : mapped.charAt(0).toUpperCase() + mapped.slice(1);
|
|
50
|
+
}
|
|
51
|
+
return out.normalize('NFKD').replace(/[\u0300-\u036f]/g, '');
|
|
52
|
+
}
|
|
34
53
|
/**
|
|
35
54
|
* Builds the chat name. Shape:
|
|
36
55
|
*
|
|
@@ -50,11 +69,16 @@ export function buildChatName(runId, label) {
|
|
|
50
69
|
return `op/${runId}`.slice(0, MAX_CHAT_NAME);
|
|
51
70
|
}
|
|
52
71
|
const room = MAX_CHAT_NAME - prefix.length;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
72
|
+
/*
|
|
73
|
+
* In Latin letters, Cyrillic transliterated ("Създай калкулатор" gives "Sazday-kalkulator"). Copilot's rename dialog
|
|
74
|
+
* refused a Bulgarian name of 50 letters, and then the same cut to 50 bytes, and took only a short Latin one: two
|
|
75
|
+
* refusals before every first message of a new chat (operator, 2026-10-19: "why two attempts — should it not be
|
|
76
|
+
* one?"). An ASCII name is the same length by any count, so the first name offered is the one it takes; the shorter
|
|
77
|
+
* forms of `chatNameForms` stay for a refusal nobody expects.
|
|
78
|
+
*/
|
|
79
|
+
const clean = latin(label)
|
|
56
80
|
.replace(/\s+/g, '-')
|
|
57
|
-
.replace(/[
|
|
81
|
+
.replace(/[^A-Za-z0-9._-]/g, '')
|
|
58
82
|
.replace(/-{2,}/g, '-')
|
|
59
83
|
.replace(/^-|-$/g, '')
|
|
60
84
|
.slice(0, room);
|
package/dist/web/404.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--z74_FBfnnXW5IJCHTgTH2--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/4335e4ce269ba1ea.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/197-f7c33a0114fc3db3.js" async=""></script><script src="/_next/static/chunks/867-0e5d0d5472bf185f.js" async=""></script><script src="/_next/static/chunks/549-c32dd718a1809d4d.js" async=""></script><script src="/_next/static/chunks/499-751e0be9d4f86e2d.js" async=""></script><script src="/_next/static/chunks/app/layout-a1314921eeba8ad5.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."/><script>
|
|
2
2
|
(function () {
|
|
3
3
|
try {
|
|
4
4
|
var d = document.documentElement;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
|
|
14
14
|
} catch (e) {}
|
|
15
15
|
})();
|
|
16
|
-
</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M3 4h18v16H3zM9 4v16M3 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Workbench</span></a><a href="/sessions"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a href="/appearance"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></svg><span>Appearance</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><select aria-label="Language" style="width:auto"><option value="en" selected="">English</option><option value="bg">Български</option></select></nav></header><main id="main"><div 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-0f31b926d9a9c5a4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8078,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"AppearanceProvider\"]\n3:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"LanguageProvider\"]\n4:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"DialogHost\"]\n5:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"SkipLink\"]\n6:I[966,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"ScrollJump\"]\na:I[1701,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"StartDialogHost\"]\nb:I[433,[],\"OutletBoundary\"]\nd:I[9884,[],\"AsyncMetadataOutlet\"]\nf:I[433,[],\"ViewportBoundary\"]\n11:I[433,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14"])</script><script>self.__next_f.push([1,":I[3536,[],\"\"]\n:HL[\"/_next/static/css/ddb518572ea43e30.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"nLLy7-v8M5YRGIMtuTvMJ\",\"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/ddb518572ea43e30.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n(function () {\\n try {\\n var d = document.documentElement;\\n var raw = localStorage.getItem('cop.appearance');\\n var a = raw ? JSON.parse(raw) : {};\\n if (!a || typeof a !== 'object') a = {};\\n d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';\\n d.dataset.textsize = [\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize) \u003e= 0 ? a.textSize : 'normal';\\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\\n } catch (e) {}\\n})();\\n\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}],[\"$\",\"$La\",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,[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"e:{\"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,"13:\"$e:metadata\"\n"])</script></body></html>
|
|
16
|
+
</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M3 4h18v16H3zM9 4v16M3 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Workbench</span></a><a href="/sessions"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a href="/appearance"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></svg><span>Appearance</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><select aria-label="Language" style="width:auto"><option value="en" selected="">English</option><option value="bg">Български</option></select></nav></header><main id="main"><div 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-0f31b926d9a9c5a4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8078,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"AppearanceProvider\"]\n3:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"LanguageProvider\"]\n4:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"DialogHost\"]\n5:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"SkipLink\"]\n6:I[966,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"ScrollJump\"]\na:I[1701,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-0e5d0d5472bf185f.js\",\"549\",\"static/chunks/549-c32dd718a1809d4d.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-a1314921eeba8ad5.js\"],\"StartDialogHost\"]\nb:I[433,[],\"OutletBoundary\"]\nd:I[9884,[],\"AsyncMetadataOutlet\"]\nf:I[433,[],\"ViewportBoundary\"]\n11:I[433,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14"])</script><script>self.__next_f.push([1,":I[3536,[],\"\"]\n:HL[\"/_next/static/css/4335e4ce269ba1ea.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"z74_FBfnnXW5IJCHTgTH2\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/4335e4ce269ba1ea.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n(function () {\\n try {\\n var d = document.documentElement;\\n var raw = localStorage.getItem('cop.appearance');\\n var a = raw ? JSON.parse(raw) : {};\\n if (!a || typeof a !== 'object') a = {};\\n d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';\\n d.dataset.textsize = [\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize) \u003e= 0 ? a.textSize : 'normal';\\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\\n } catch (e) {}\\n})();\\n\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}],[\"$\",\"$La\",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,[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"e:{\"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,"13:\"$e:metadata\"\n"])</script></body></html>
|