copilot-operator 0.1.63 → 0.1.66
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 +53 -3
- package/dist/src/api/operator.service.js +479 -57
- package/dist/src/exec/dangerous.js +12 -0
- package/dist/src/exec/runner.js +75 -2
- package/dist/src/exec/stepEnv.js +13 -2
- package/dist/src/orchestrator/taskRunner.js +12 -1
- package/dist/src/plan/kerrigan.js +63 -10
- package/dist/src/plan/systemGuide.js +202 -2
- package/dist/src/queue/queue.js +71 -4
- package/dist/src/queue/queueBranch.js +66 -0
- package/dist/src/session/compose.js +15 -0
- package/dist/src/session/store.js +4 -0
- package/dist/src/vcs/newBranch.js +241 -0
- package/dist/src/vcs/remoteAuth.js +119 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1024-444e9060299d04ba.js +1 -0
- package/dist/web/_next/static/chunks/1077.b88b069535f7008e.js +1 -0
- package/dist/web/_next/static/chunks/1548.9e01803e48173ea9.js +1 -0
- package/dist/web/_next/static/chunks/2163.018cd5f719ae4b3d.js +1 -0
- package/dist/web/_next/static/chunks/6262-d074473db83ee798.js +1 -0
- package/dist/web/_next/static/chunks/714.281f68f85df26013.js +1 -0
- package/dist/web/_next/static/chunks/7220.3bd10a3e4e053e0c.js +1 -0
- package/dist/web/_next/static/chunks/7921-1c173d00d23b3589.js +1 -0
- package/dist/web/_next/static/chunks/8124-bb544c96a7c0e7e3.js +1 -0
- package/dist/web/_next/static/chunks/8584.c7cd52c2e7075bcb.js +1 -0
- package/dist/web/_next/static/chunks/9067.feaf894390db1a88.js +1 -0
- package/dist/web/_next/static/chunks/9747.7cee8a2d8301f25c.js +1 -0
- package/dist/web/_next/static/chunks/app/{layout-9201c637ca24b2c9.js → layout-5e0e7601702723bb.js} +1 -1
- package/dist/web/_next/static/chunks/app/page-95379244849623fc.js +1 -0
- package/dist/web/_next/static/chunks/app/queue/page-fb49cb2d3dc6d14c.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-38c956574db7c7a6.js → webpack-5ea108bc2e386c55.js} +1 -1
- package/dist/web/_next/static/css/a112074f3d1a8a07.css +1 -0
- 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 +4 -2
- package/dist/web/_next/static/chunks/1077.155f883ebfb223ae.js +0 -1
- package/dist/web/_next/static/chunks/1548.52fe19b2bb6dbe66.js +0 -1
- package/dist/web/_next/static/chunks/2163.51278cbd88674f1a.js +0 -1
- package/dist/web/_next/static/chunks/714.a3555e6b7e5f4339.js +0 -1
- package/dist/web/_next/static/chunks/7220.a7dcaec140695190.js +0 -1
- package/dist/web/_next/static/chunks/7921-b7eba39a21993047.js +0 -1
- package/dist/web/_next/static/chunks/8124-5458b17433987fab.js +0 -1
- package/dist/web/_next/static/chunks/8584.baf85c4394dc04eb.js +0 -1
- package/dist/web/_next/static/chunks/9067.2d7665cd257d7b47.js +0 -1
- package/dist/web/_next/static/chunks/9747.66a374501673612f.js +0 -1
- package/dist/web/_next/static/chunks/app/page-03f129240e06a07c.js +0 -1
- package/dist/web/_next/static/chunks/app/queue/page-f86936d39121ade8.js +0 -1
- package/dist/web/_next/static/css/2f2419505403ce07.css +0 -1
- /package/dist/web/_next/static/{kxZRE1oIu_arurqhfP4mS → BbWvNQTsh3pH7ZN_RKR60}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{kxZRE1oIu_arurqhfP4mS → BbWvNQTsh3pH7ZN_RKR60}/_ssgManifest.js +0 -0
|
@@ -150,6 +150,18 @@ export const DANGEROUS_TECHNIQUES = [
|
|
|
150
150
|
pattern: /\bInvoke-Item\b|\|\s*ii(?![\w.\-:\\\/])|(?:^|[;&({\n]|\$[\w:.{}\[\]]+\s*=)\s*[.&]?\s*ii(?:\s+[^\s;|&)}]|\()|\b(?:pwsh|powershell)(?:\.exe)?\b(?:(?:(?![\s'"]-f)[^|;\n])*?[\s'"]-(?:c|co|com|comm|comma|comman|command)\b['"]?(?:\s*,\s*|\s+)|(?:\s+-(?!f)\w+(?::\S+)?(?:\s+(?![-'"])[\w.]+)?)*\s+)["']?ii(?![\w.\-:\\\/])|\b(Start-Process|saps|start)\s+(?:-\w+\s+)*(?:-FilePath\s+)?["']?(?:[^\s"']+\.(hta|vbs|vbe|js|jse|wsf|wsh|lnk|url|scr|cpl|msc|reg|inf|msi|msp|chm|pif)\b|https?:\/\/|ms-\w+:|file:\/\/)/i,
|
|
151
151
|
why: 'a file opened through its registered handler, or a URL opened in the browser, runs whatever Windows has registered for it under this runner. Start the program itself, by name, with the file as its argument.',
|
|
152
152
|
},
|
|
153
|
+
{
|
|
154
|
+
name: 'credential-capture',
|
|
155
|
+
/*
|
|
156
|
+
* Git asks the operator for a password through its own window (2026-10-26, `stepEnv.ts`), and the answer goes from
|
|
157
|
+
* the window straight to git. A step that ran the window itself, or a credential helper, or set git's or ssh's own
|
|
158
|
+
* password and ssh programs, could put up the same window with its own question and catch the answer in its output
|
|
159
|
+
* — which goes to the chat. Git asks for what it needs by itself: `git push`, `git fetch`, `git pull` and
|
|
160
|
+
* `git clone` are not touched by this.
|
|
161
|
+
*/
|
|
162
|
+
pattern: /\b(?:git|ssh)-askpass\b|\b(?:GIT_ASKPASS|SSH_ASKPASS(?:_REQUIRE)?|GIT_SSH_COMMAND|GIT_SSH|GCM_[A-Z_]+)\b|\bcore\.(?:askpass|sshCommand)\b|\bcredential\.(?:helper|[\w.-]*\.helper)\b|\bgit-credential(?:-[\w-]+)?\b|\bgit(?:\.exe)?(?:\s+-[-\w.=]+(?:\s+[^\s-][^\s]*)?)*\s+credential(?:-[\w-]+)?\b/i,
|
|
163
|
+
why: 'the password Git asks for goes from its own window straight to git; a step that runs that window, a credential helper or git\'s password settings itself could catch what the operator types. Run git itself — push, fetch, pull, clone — and Git asks for what it needs in its own window.',
|
|
164
|
+
},
|
|
153
165
|
{
|
|
154
166
|
name: 'obfuscated-name',
|
|
155
167
|
/*
|
package/dist/src/exec/runner.js
CHANGED
|
@@ -27,6 +27,10 @@ import { StringDecoder } from 'node:string_decoder';
|
|
|
27
27
|
import { effectiveShell, invocationFor, missingShellProblem, resolveShell } from './shells.js';
|
|
28
28
|
import { stopTree } from './processes.js';
|
|
29
29
|
import { stepEnvironment } from './stepEnv.js';
|
|
30
|
+
import { closePasswordWindows, passwordWindowOpen } from '../vcs/remoteAuth.js';
|
|
31
|
+
/** How long a step is quiet before Git's password window is looked for, and how often then. */
|
|
32
|
+
const PASSWORD_QUIET_MS = 3_000;
|
|
33
|
+
const PASSWORD_PROBE_MS = 2_000;
|
|
30
34
|
const DEFAULT_HARD_TIMEOUT_MS = 4 * 60 * 60 * 1000;
|
|
31
35
|
const DEFAULT_IDLE_TIMEOUT_MS = 15 * 60 * 1000;
|
|
32
36
|
/** How often a running step says how it is doing, unless the caller asks for another pace. */
|
|
@@ -202,7 +206,7 @@ opts = {}) {
|
|
|
202
206
|
cwd: req.cwd,
|
|
203
207
|
// Named, not inherited: a step must not see the bot's own token or whatever else the
|
|
204
208
|
// operator's shell holds. See `stepEnv.ts`.
|
|
205
|
-
env: stepEnvironment(req.env ?? process.env, req.passEnv),
|
|
209
|
+
env: stepEnvironment(req.env ?? process.env, req.passEnv, req.askpass),
|
|
206
210
|
// True for `cmd`, whose command line `invocationFor` has already written in full: quoted again
|
|
207
211
|
// here, every double quote in a step would reach `cmd` as `\"`, which it does not understand.
|
|
208
212
|
windowsVerbatimArguments,
|
|
@@ -222,6 +226,9 @@ opts = {}) {
|
|
|
222
226
|
clearInterval(heartbeat);
|
|
223
227
|
clearTimeout(hardTimer);
|
|
224
228
|
clearInterval(idleTimer);
|
|
229
|
+
clearInterval(passwordTimer);
|
|
230
|
+
if (passwordOpen)
|
|
231
|
+
opts.onPasswordWindow?.(false);
|
|
225
232
|
opts.signal?.removeEventListener('abort', onAbort);
|
|
226
233
|
log.end(`\n# outcome=${outcome} exit=${exitCode} durationMs=${Date.now() - startedAt}\n`);
|
|
227
234
|
resolve({
|
|
@@ -356,11 +363,77 @@ opts = {}) {
|
|
|
356
363
|
const hardTimer = setTimeout(() => {
|
|
357
364
|
stop('hard-timeout', -1, `hard timeout after ${Math.round(hardTimeoutMs / 1000)}s`);
|
|
358
365
|
}, hardTimeoutMs);
|
|
366
|
+
/*
|
|
367
|
+
* While Git's password window is open the step is waiting for the operator, not hung (2026-10-26): its idle clock is
|
|
368
|
+
* held, and the caller is told when the window opens and when it closes, so the chat can say where to look. Looked
|
|
369
|
+
* for when the step has been quiet a while, and always before a quiet step is stopped as hung. The time the window
|
|
370
|
+
* was open never counts: the clock starts again when it closes. A window nobody answers for as long as the idle
|
|
371
|
+
* limit — a run with nobody there — ends the step, and is closed.
|
|
372
|
+
*/
|
|
373
|
+
let passwordOpen = false;
|
|
374
|
+
let passwordSince = 0;
|
|
375
|
+
let probing = false;
|
|
376
|
+
const probe = opts.passwordProbe ?? passwordWindowOpen;
|
|
377
|
+
/** Whether the step is to be held: the window open now, or closed just now. */
|
|
378
|
+
const lookForPassword = async () => {
|
|
379
|
+
const open = await probe(startedAt);
|
|
380
|
+
if (settled)
|
|
381
|
+
return true;
|
|
382
|
+
if (open) {
|
|
383
|
+
if (!passwordOpen) {
|
|
384
|
+
passwordOpen = true;
|
|
385
|
+
passwordSince = Date.now();
|
|
386
|
+
opts.onPasswordWindow?.(true);
|
|
387
|
+
}
|
|
388
|
+
if (Date.now() - passwordSince >= idleTimeoutMs)
|
|
389
|
+
return false;
|
|
390
|
+
lastOutputAt = Date.now();
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
if (passwordOpen) {
|
|
394
|
+
passwordOpen = false;
|
|
395
|
+
lastOutputAt = Date.now();
|
|
396
|
+
opts.onPasswordWindow?.(false);
|
|
397
|
+
return true;
|
|
398
|
+
}
|
|
399
|
+
return false;
|
|
400
|
+
};
|
|
359
401
|
const idleTimer = setInterval(() => {
|
|
360
402
|
if (Date.now() - lastOutputAt < idleTimeoutMs)
|
|
361
403
|
return;
|
|
362
|
-
|
|
404
|
+
const hung = () => {
|
|
405
|
+
if (!passwordOpen)
|
|
406
|
+
return stop('idle-timeout', -1, `no output for ${Math.round(idleTimeoutMs / 1000)}s, treating as hung`);
|
|
407
|
+
// Nobody answered Git's password window: the step ends, and the window, left behind by its process tree, is closed.
|
|
408
|
+
stop('idle-timeout', -1, `Git's password window was not answered for ${Math.round(idleTimeoutMs / 1000)}s`);
|
|
409
|
+
if (req.askpass)
|
|
410
|
+
void closePasswordWindows(req.askpass, new Date(startedAt - 1000));
|
|
411
|
+
};
|
|
412
|
+
if (!req.askpass)
|
|
413
|
+
return hung();
|
|
414
|
+
if (probing)
|
|
415
|
+
return;
|
|
416
|
+
probing = true;
|
|
417
|
+
void lookForPassword()
|
|
418
|
+
.then((held) => {
|
|
419
|
+
if (!held && !settled)
|
|
420
|
+
hung();
|
|
421
|
+
})
|
|
422
|
+
.catch(() => hung())
|
|
423
|
+
.finally(() => {
|
|
424
|
+
probing = false;
|
|
425
|
+
});
|
|
363
426
|
}, Math.min(idleTimeoutMs, 30_000));
|
|
427
|
+
const passwordTimer = setInterval(() => {
|
|
428
|
+
if (!req.askpass || probing || settled || Date.now() - lastOutputAt < PASSWORD_QUIET_MS)
|
|
429
|
+
return;
|
|
430
|
+
probing = true;
|
|
431
|
+
void lookForPassword()
|
|
432
|
+
.catch(() => undefined)
|
|
433
|
+
.finally(() => {
|
|
434
|
+
probing = false;
|
|
435
|
+
});
|
|
436
|
+
}, PASSWORD_PROBE_MS);
|
|
364
437
|
const heartbeat = setInterval(() => {
|
|
365
438
|
opts.onHeartbeat?.({
|
|
366
439
|
id: req.id,
|
package/dist/src/exec/stepEnv.js
CHANGED
|
@@ -59,7 +59,15 @@ const FORCED = {
|
|
|
59
59
|
};
|
|
60
60
|
/** Names a step must never be given, even if the operator lists them: the bot's own keys. */
|
|
61
61
|
const NEVER = /^(NEXT_PUBLIC_COP_|COP_)/i;
|
|
62
|
-
|
|
62
|
+
/**
|
|
63
|
+
* `askpass`: Git for Windows' own password window (operator, 2026-10-26: "if the chat works with git and a password is
|
|
64
|
+
* needed, the bot stops, a window opens for the operator to type it, and the work goes on; every time one is asked").
|
|
65
|
+
* Set, not passed: ssh and git ask through it — and Git Credential Manager through its own window — so a `git push` or
|
|
66
|
+
* `git fetch` a step runs asks the operator there, and the answer goes from the window straight to git, never through
|
|
67
|
+
* the step's output. No terminal prompt: a step has none. See `remoteAuth.ts`; a step that names any of this itself
|
|
68
|
+
* is refused (`dangerous.ts`, credential-capture).
|
|
69
|
+
*/
|
|
70
|
+
export function stepEnvironment(from = process.env, extra = [], askpass) {
|
|
63
71
|
const wanted = new Set([...PASSED, ...extra].map((n) => n.toLowerCase()));
|
|
64
72
|
const out = {};
|
|
65
73
|
for (const [k, v] of Object.entries(from)) {
|
|
@@ -68,5 +76,8 @@ export function stepEnvironment(from = process.env, extra = []) {
|
|
|
68
76
|
if (wanted.has(k.toLowerCase()) || PASSED_BY_SHAPE.test(k))
|
|
69
77
|
out[k] = v;
|
|
70
78
|
}
|
|
71
|
-
|
|
79
|
+
const asking = askpass
|
|
80
|
+
? { GIT_ASKPASS: askpass, SSH_ASKPASS: askpass, SSH_ASKPASS_REQUIRE: 'force', GIT_TERMINAL_PROMPT: '0', GCM_INTERACTIVE: 'auto', DISPLAY: from.DISPLAY || 'needs-to-be-defined' }
|
|
81
|
+
: {};
|
|
82
|
+
return { ...out, ...FORCED, ...asking };
|
|
72
83
|
}
|
|
@@ -20,6 +20,10 @@ import { parseReply, formatErrorMessage, findLikelyDamage, damageGuidance } from
|
|
|
20
20
|
import { resolveDeviations, describeDeviations, mergeDisputes, describeDisputes } from '../protocol/replySchema.js';
|
|
21
21
|
import { buildCoveringMessage, assertSendable } from '../protocol/reporter.js';
|
|
22
22
|
import { runStep } from '../exec/runner.js';
|
|
23
|
+
import { askpassProgram } from '../vcs/remoteAuth.js';
|
|
24
|
+
/** Git's own password window on this machine, looked for once (2026-10-26); null where Git has none. */
|
|
25
|
+
let askpassFound = null;
|
|
26
|
+
const askpassOnce = () => (askpassFound ??= askpassProgram().catch(() => null));
|
|
23
27
|
import { availableShells, detectShells, effectiveShell, preferredShell, refusalForChat, resolveShell, shellNote } from '../exec/shells.js';
|
|
24
28
|
import { runChecks, failureMessage, failureRedactions, failureReport, environmentProblemIn, COMMIT_CLEAN_CHECK, CONTENT_CLEAN_CHECK, RUNNER_CHECK_KINDS } from '../exec/checks.js';
|
|
25
29
|
import { activeChecks, suspendDisputed, settleAfterReview, onlyDerivedFailing, isDerivedCheck, withAttemptIds } from './derivedChecks.js';
|
|
@@ -1600,7 +1604,8 @@ export async function runTask(transport, session, task, deps) {
|
|
|
1600
1604
|
* the way a read-only task is wherever the task has a branch of its own.
|
|
1601
1605
|
*/
|
|
1602
1606
|
const planMode = session.planMode ?? cfg.execution.planMode ?? 'off';
|
|
1603
|
-
|
|
1607
|
+
// A continued task does not plan again, unless its plan was sent back while the queue had it set aside (2026-10-26).
|
|
1608
|
+
let planning = planMode !== 'off' && (!task.continuing || task.continuing.replan === true);
|
|
1604
1609
|
await actingNow(planning ? 'plan' : 'worker');
|
|
1605
1610
|
const planEnforced = planning && onOwnBranch;
|
|
1606
1611
|
let planVersion = 0;
|
|
@@ -3002,9 +3007,15 @@ export async function runTask(transport, session, task, deps) {
|
|
|
3002
3007
|
idleTimeoutMs: idle * 1000,
|
|
3003
3008
|
logPath: log.path('steps', `${iterations}-${step.id}.log`),
|
|
3004
3009
|
passEnv: cfg.execution.passEnv,
|
|
3010
|
+
// A git of the step that needs a password asks for it in Git's own window, which the bot never reads.
|
|
3011
|
+
...((await askpassOnce()) ? { askpass: (await askpassOnce()) } : {}),
|
|
3005
3012
|
}, {
|
|
3006
3013
|
signal,
|
|
3007
3014
|
tracker,
|
|
3015
|
+
// The step waits for the operator: said, so the chat shows where to look (2026-10-26).
|
|
3016
|
+
onPasswordWindow: (open) => sink.event('password-window', { id: step.id, open }, open
|
|
3017
|
+
? `step ${step.id} waits: Git asks for a password in its own window — type it there; the bot never reads it`
|
|
3018
|
+
: `step ${step.id}: Git's password window closed`, open ? 'warn' : 'info'),
|
|
3008
3019
|
onHeartbeat: ({ elapsedMs, idleMs, lastLine }) => sink.event('step-heartbeat', { id: step.id, elapsedMs, idleMs, lastLine }, `step ${step.id} still running: ${Math.round(elapsedMs / 1000)}s elapsed, ${Math.round(idleMs / 1000)}s since output${lastLine ? ` — ${lastLine.slice(0, 60)}` : ''}`),
|
|
3009
3020
|
});
|
|
3010
3021
|
results.push(result);
|
|
@@ -117,11 +117,38 @@ function skillsPart(lang, skills) {
|
|
|
117
117
|
...skills.map((k) => `- \`/${k.name}\`${k.project ? ` (${k.project})` : bg ? ' (всички проекти)' : ' (every project)'}${k.description ? ` — ${k.description}` : ''}`),
|
|
118
118
|
].join('\n');
|
|
119
119
|
}
|
|
120
|
+
/** The skill chosen for the tasks she helps write, and its instructions as the bot sends them; none chosen, nothing. */
|
|
121
|
+
function chosenSkillPart(lang, k) {
|
|
122
|
+
if (!k)
|
|
123
|
+
return '';
|
|
124
|
+
const bg = WRITTEN(lang) === 'bg';
|
|
125
|
+
const Q = (key) => quoted(lang, key);
|
|
126
|
+
// Fenced with more backticks than any run in the instructions, so they are shown as they are, whatever they hold.
|
|
127
|
+
const longest = Math.max(0, ...(k.text.match(/`+/g) ?? []).map((x) => x.length));
|
|
128
|
+
const fence = '`'.repeat(Math.max(3, longest + 1));
|
|
129
|
+
const where = k.project ? ` (${k.project})` : bg ? ' (всички проекти)' : ' (every project)';
|
|
130
|
+
const what = k.description.trim() ? ` — ${k.description.trim()}` : '';
|
|
131
|
+
return [
|
|
132
|
+
'',
|
|
133
|
+
'',
|
|
134
|
+
bg ? `## Избраният skill: \`/${k.name}\`` : `## The skill chosen: \`/${k.name}\``,
|
|
135
|
+
'',
|
|
136
|
+
bg
|
|
137
|
+
? `Човекът е избрал skill-а \`/${k.name}\`${where}${what} за задачите, които пише с теб. Пиши всяка задача от този вид така, че да върви с него: кажи да го избере в ${Q('chat.skill')} под полето на чата или да започне съобщението с \`/${k.name}\`. Ботът изпраща инструкциите му със съобщението, така че в съобщението остава само особеното за задачата и нищо, което им противоречи. Инструкциите му, както ботът ги изпраща:`
|
|
138
|
+
: `The person chose the skill \`/${k.name}\`${where}${what} for the tasks they write with you. Write each task of its kind to go with it: say to choose it in ${Q('chat.skill')} under the chat's box, or to start the message with \`/${k.name}\`. The bot sends its instructions with the message, so the message holds only what is particular to the task, and nothing that goes against them. Its instructions, as the bot sends them:`,
|
|
139
|
+
'',
|
|
140
|
+
`${fence}text`,
|
|
141
|
+
k.text.trim(),
|
|
142
|
+
fence,
|
|
143
|
+
].join('\n');
|
|
144
|
+
}
|
|
120
145
|
export function kerriganPersona(lang, facts) {
|
|
121
146
|
return WRITTEN(lang) === 'bg' ? bgText(facts) : enText(lang, facts);
|
|
122
147
|
}
|
|
123
|
-
export function kerriganFileName(lang) {
|
|
124
|
-
|
|
148
|
+
export function kerriganFileName(lang, skill) {
|
|
149
|
+
// With a skill chosen, its name in the file's, so the two are told apart in a folder (2026-10-26).
|
|
150
|
+
const named = skill && /^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$/.test(skill) ? `.${skill}` : '';
|
|
151
|
+
return `kerrigan-copilot-operator${named}.${/^[a-z]{2,3}(-[A-Za-z0-9]+)?$/.test(lang) ? lang : 'en'}.md`;
|
|
125
152
|
}
|
|
126
153
|
function enText(lang, f) {
|
|
127
154
|
const Q = (key) => quoted(lang, key);
|
|
@@ -137,19 +164,22 @@ You are **Kerrigan**. You help the person talking to you get their work done wit
|
|
|
137
164
|
- The person writes a task in the chat, about the **project folder** open there. The program sends it to **Microsoft 365 Copilot** (a work account) in an Edge window it opens and keeps open between messages; when the work on a message has ended, a card in that window says so, with an OK. Copilot cannot touch the machine itself: it answers with **PowerShell commands**, in a fixed JSON form.
|
|
138
165
|
- copilot-operator **runs those commands on the machine, in the project folder**, and sends back what they printed. Round after round, until Copilot says the task is **done** (with a summary of what it did), or **blocked** (with what it tried and what it needs), or a limit is reached.
|
|
139
166
|
- Copilot learns the project only through those commands: it lists files, reads them, runs the build and the tests. It is not sent the files themselves, and it knows nothing about the project that the task does not say and the commands cannot find.
|
|
140
|
-
- The person chooses how commands run in Settings, under ${Q('exec.startMode')} (not in the chat): ${Q('exec.startModeAsk')} (they press ${Q('chat.askRun')}, ${Q('chat.askRunAll')} or ${Q('chat.askSkip')} on a card that says who asks) or ${Q('exec.startModeAuto')}. A list of forbidden commands applies either way; pushing to a remote is refused; nothing needs administrator rights.
|
|
167
|
+
- The person chooses how commands run in Settings, under ${Q('exec.startMode')} (not in the chat): ${Q('exec.startModeAsk')} (they press ${Q('chat.askRun')}, ${Q('chat.askRunAll')} or ${Q('chat.askSkip')} on a card that says who asks) or ${Q('exec.startModeAuto')}. A list of forbidden commands applies either way; pushing to a remote is refused; nothing needs administrator rights. A command that reaches a platform with the person's own access — Azure, AWS, GitHub, Jira, publishing a package and the like — waits on a card even in a run without asking, unless ${Q('exec.questions')} in Settings is set to agree with what the bot proposes; so do the questions the chat or the lead asks, with their answers to click. Once one answer on a card is pressed, the card's other answers and its text box turn off and the one pressed stays marked until the card goes; only when the answer did not reach the program do they come back on, with the reason on the card.
|
|
141
168
|
- The model: ${Q('chat.model')} under the chat's box. When it is to be chosen by hand (the default), a card asks the person to choose the model in the Copilot window and press ${Q('approval.manualReady')}.
|
|
142
169
|
- ${Q('chat.planMode')} (a choice under the chat's box): Copilot first looks at the project with read-only commands and proposes a plan — what is there, how it means to do it, the stages, the files, how it will show it works — and nothing is changed until the person approves the plan (${Q('pm.approve')}), asks for another (${Q('pm.revise')}), or stops.
|
|
143
170
|
- ${Q('chat.review')} (under the chat's box, on unless unticked): when Copilot says the work is done, a conversation of its own reviews it — reads the changes, runs the checks — and sends back what it finds, up to ${n(rounds)} round(s) of fixing. When the model is chosen by hand, the card for the review's model says it is the review's: a different, stronger model than the one that did the work catches more mistakes.
|
|
144
171
|
- While it works: a message written in the chat is added to what it is doing (${Q('chat.sendNote')}), and Copilot gets it with its next report; ${Q('chat.pause')} holds the work at its next message or command — a reply being written and a command running are let finish — and becomes ${Q('chat.resume')}; ${Q('chat.stop')} stops it, and so does closing the Copilot window with its X. ${Q('chat.newChat')} is off while a task runs.
|
|
145
172
|
- Each message is one task. The next message goes into the **same Copilot conversation**, so it can build on what was done ("now add tests for that"). ${Q('chat.newChat')} starts a conversation with nothing of the earlier one. Before each message the folder is photographed, and with ${Q('chat.rewind')} the folder is put back exactly as it was then.
|
|
173
|
+
- The conversations are in the list at the top of the chat; ${Q('chat.rename')} (✎ beside it) gives the open one a name of the person's own. Every part of a conversation — a message, a reply, a command with what it printed, an ending, a plan, a question of the lead and its answer, the lead's list of subtasks — has a **Copy** button, so the person can paste any of it to you.
|
|
174
|
+
- Git: the chat works on the branch the folder is on, and may commit, stage, switch or make branches, stash, merge and pull when asked; it may not push, reset, rebase, clean or clone. ${Q('nb.button')} (under the chat's box, beside the skills) fetches the latest of the remote's main and makes a new local branch from it for the next task — one that does not track main, so its work is never pushed there by mistake. When something is not committed, it asks whether to take it along or to put it aside on a branch of its own; nothing is ever deleted. Whenever git needs a password — for that button, or for a command of the chat such as \`git fetch\` or \`git pull\` — **Git opens its own window for it, every time**: the person types it there, it goes straight to Git, the bot never reads it and keeps nothing, and the work waits for it (the chat and the browser tab say "Waiting for your password"). The window may be behind the browser.
|
|
175
|
+
- ${Q('nav.queue')} (in the bar on top): tasks written beforehand that run one after another while nobody watches, each in a new chat on its own model. Each has a name, ${Q('q.lead')} or a review on a model of its own, ${Q('q.skill')}, where it works (${Q('q.branchMain')} gives it a branch of its own made from main), and ${Q('q.dependsOn')}: when a task fails, the ones that depend on it are skipped and the others still run. ${Q('q.run')} starts it, ${Q('q.stop')} stops it. A task added while a message sent from the chat is working starts after it — the button then reads ${Q('q.addAfter')}. Every task needs a model named, in the task or in Settings, since nobody is there to choose one by hand. With ${Q('q.plan')}, each task's plan — the lead's, with two chats — is approved before anything changes. A task that waits for the person — its plan, a question, a command, a subtask cut off, a model, a password Git asks for — longer than ${Q('q.parkAfter')} allows (two minutes by default) is set aside, marked ${Q('q.parked')}, and the next task starts; the tasks that depend on it wait for it. What it waits for is kept, even if the program is closed: its card is on the queue's page and under its message in its chat, and once answered it carries on from where it stopped, in its own conversation and on its own branch. So a queue can be left running: the person comes back, answers what waits, and runs the queue again.
|
|
146
176
|
- ${Q('chat.lead')} (under the chat's box, for a new conversation; not ticked at first): not ticked, the chat works as it always has — one conversation that does the work; ticked, the message goes to a **lead** that directs a **worker** — see "Two chats" below. The person chooses for each conversation; to change it, they start a ${Q('chat.newChat')}.
|
|
147
177
|
- Limits from the settings: at most ${n(f.maxIterations)} messages to Copilot and ${n(f.maxRunMinutes)} minutes per task (the time paused not counted), carried on by itself up to ${n(f.autoContinue)} time(s) when a limit is reached. One message in the chat can be at most ${n(MAX_INSTRUCTION_CHARS)} characters.
|
|
148
|
-
- ${Q('nav.defaults')} (the link at the top): the projects — each with its folder, its branch and its level 2, which is where the notes below come from —, ${Q('login.button')}, the
|
|
178
|
+
- ${Q('nav.defaults')} (the link at the top): the projects — each with its folder, its branch and its level 2, which is where the notes below come from —, ${Q('login.button')}, the models of the worker, the lead and the review, the skills, the model menu's locators, and how a task runs, including retrying an interrupted subtask. Every field there has an ⓘ that says what it is for. A project can be marked ${Q('proj.readOnly')}: the bot then reads it and runs what only reads it, but changes nothing in it — whatever a command changes there is put back and the chat is told; on the chat's own folder every message can then only read and report. The base prompt (level 1), the text that tells Copilot how to work, is shown there to read; it changes only when the program is updated. ${Q('nav.system')} is the report on the machine.
|
|
149
179
|
|
|
150
180
|
## Two chats: a lead and a worker
|
|
151
181
|
|
|
152
|
-
It is a choice, not the new way: without it the chat works as it always has, one conversation doing the work, which is enough for most messages. With ${Q('chat.lead')} ticked for a new conversation, the message goes to a **lead** instead of straight to the one who works. The lead is a Copilot conversation that runs nothing itself. It restates the assignment to check it understands it, has a **worker** — a second conversation in the same Copilot window — survey the project, and makes a plan (approved by the person first when ${Q('chat.planMode')} is ticked). Then it gives the worker one subtask at a time — read files, run the tests, reproduce, debug, change code — and judges every report against its evidence, until the result is ready in the form the assignment asked for. It asks the person only what nobody else can decide, on a card in the conversation (${Q('lead.send')}), and the work waits for the answer. It may give at most ${n(f.maxSubtasks ?? 20)} subtasks for one message. Use it for a complex task that should go as far as it can without a person. It works only as well as the assignment says what is wanted, so help them write it in full:
|
|
182
|
+
It is a choice, not the new way: without it the chat works as it always has, one conversation doing the work, which is enough for most messages. With ${Q('chat.lead')} ticked for a new conversation, the message goes to a **lead** instead of straight to the one who works. The lead is a Copilot conversation that runs nothing itself. It restates the assignment to check it understands it, has a **worker** — a second conversation in the same Copilot window — survey the project, and makes a plan (approved by the person first when ${Q('chat.planMode')} is ticked). Then it gives the worker one subtask at a time — read files, run the tests, reproduce, debug, change code — and judges every report against its evidence, until the result is ready in the form the assignment asked for. It asks the person only what nobody else can decide, on a card in the conversation (${Q('lead.send')}), and the work waits for the answer. It may give at most ${n(f.maxSubtasks ?? 20)} subtasks for one message. A subtask cut off for a technical reason — the chat broke off, a command could not be started — is tried again under the same number, as Settings say under "Retrying an interrupted subtask": by default a card asks, with ${Q('retry.same')}, ${Q('retry.fresh')} and ${Q('retry.accept')}; one that may have changed files half way is never tried again without asking, and work that was not done goes back to the lead. After ${Q('chat.stop')} nothing restarts by itself: under the subtask that did not finish, ${Q('retry.same')} carries the message on from it, with the plan and the subtasks done kept. Use it for a complex task that should go as far as it can without a person. It works only as well as the assignment says what is wanted, so help them write it in full:
|
|
153
183
|
|
|
154
184
|
- **Goal** — what is to be achieved, and why.
|
|
155
185
|
- **The result, and its exact form** — every field, in order, and what each holds. For example, a defect report: title, description, system info, preconditions (if any), expected result, actual result, steps to reproduce, acceptance criteria, test scenario, short description, severity, project.
|
|
@@ -165,7 +195,7 @@ ${projectsPart(lang, f.projects ?? [])}
|
|
|
165
195
|
|
|
166
196
|
## The skills
|
|
167
197
|
|
|
168
|
-
${skillsPart(lang, f.skills ?? [])}
|
|
198
|
+
${skillsPart(lang, f.skills ?? [])}${chosenSkillPart(lang, f.chosenSkill)}
|
|
169
199
|
|
|
170
200
|
## How you help
|
|
171
201
|
|
|
@@ -184,12 +214,22 @@ ${skillsPart(lang, f.skills ?? [])}
|
|
|
184
214
|
7. When the person does not understand something in the program — a button, a card, why a task stopped — explain it from what is written here, name the control by its label, and lead them one step at a time until the task is done. If they are stuck, ask what they see on the screen.
|
|
185
215
|
8. When a task ended **blocked** or **at a limit**, help write the next message: what Copilot said it tried and needs, what the person can now tell it, or a smaller step. When it went wrong, the person can go back to before that message and send a better one.
|
|
186
216
|
9. When the same kind of task keeps coming back — a new automated test, a new entity, a database migration — suggest a skill for it in Settings, under "Skills", and help write it: a short name with hyphens (\`new-test\`), one line on what it is for, its project or every project, and instructions that say where the files go, the conventions, the steps, how to check the result and what to leave alone. A task of that kind then starts with \`/its-name\` (or the skill is chosen in ${Q('chat.skill')} under the chat's box), and the message only needs what is particular to it.
|
|
217
|
+
10. When the person has several tasks for later, or thinks of the next one while one works, suggest the queue (${Q('nav.queue')}): one task per item, each written as a message of the chat would be, with a name, its model, its skill, and what it depends on; ${Q('q.branchMain')} when each should start from the team's latest code. Tasks that do not need each other should not depend on each other, so one failing does not take the rest with it. Suggest ${Q('q.plan')} for work that should be seen before it is done; tell them a task that waits for them is set aside and the queue goes on, and that they answer it later on its card (${Q('pk.approve')}, ${Q('pk.revise')}, ${Q('pk.run')}, ${Q('pk.resume')}).
|
|
218
|
+
11. Before a new piece of work, suggest ${Q('nb.button')}, so it starts from the remote's latest main on a branch of its own; when they have uncommitted changes, explain the two choices — take them along, or put them aside on a branch of their own.
|
|
219
|
+
12. If git asks for a password, tell them to look for Git's own window — it may be behind the browser — and type it there; never in the chat, in a task or to you. Cancel in that window ends the command, and the chat is told.
|
|
220
|
+
13. When they want you to see something from the program, ask them to press **Copy** on that part of the conversation and paste it here; when they want to give you a skill, ${Q('kerrigan.button')} with a skill chosen beside it carries it to you whole.
|
|
187
221
|
|
|
188
222
|
## The chat's screen, and what everything on it is called
|
|
189
223
|
${screenGuide(lang, '/')}
|
|
190
224
|
|
|
191
225
|
## Settings, and what is on them
|
|
192
226
|
${screenGuide(lang, '/settings')}
|
|
227
|
+
|
|
228
|
+
## The queue, and what is on it
|
|
229
|
+
${screenGuide(lang, '/queue')}
|
|
230
|
+
|
|
231
|
+
## System, and what is on it
|
|
232
|
+
${screenGuide(lang, '/system')}
|
|
193
233
|
`;
|
|
194
234
|
}
|
|
195
235
|
function bgText(f) {
|
|
@@ -206,19 +246,22 @@ function bgText(f) {
|
|
|
206
246
|
- Човекът пише задание в чата, за **папката на проекта**, отворена там. Програмата го изпраща на **Microsoft 365 Copilot** (служебен акаунт) в прозорец на Edge, който отваря и държи отворен между съобщенията; когато работата по съобщение свърши, карта в този прозорец го казва, с бутон „ОК“. Copilot не може сам да пипа машината: отговаря с **команди на PowerShell**, в определен вид JSON.
|
|
207
247
|
- copilot-operator **изпълнява тези команди на машината, в папката на проекта**, и връща какво са изписали. Кръг след кръг, докато Copilot каже, че заданието е **готово** (с обобщение на направеното), или **блокирано** (с какво е опитал и какво му трябва), или се стигне ограничение.
|
|
208
248
|
- Copilot опознава проекта само чрез тези команди: изброява файлове, чете ги, пуска компилацията и тестовете. Самите файлове не му се изпращат и той не знае за проекта нищо, което заданието не казва и командите не могат да намерят.
|
|
209
|
-
- Човекът избира как се изпълняват командите в Настройки, при ${Q('exec.startMode')} (не в чата): ${Q('exec.startModeAsk')} (натиска ${Q('chat.askRun')}, ${Q('chat.askRunAll')} или ${Q('chat.askSkip')} на карта, на която пише кой иска) или ${Q('exec.startModeAuto')}. И в двата случая важи списък със забранени команди; изпращането към отдалечено хранилище (push) се отказва; нищо не изисква администраторски права.
|
|
249
|
+
- Човекът избира как се изпълняват командите в Настройки, при ${Q('exec.startMode')} (не в чата): ${Q('exec.startModeAsk')} (натиска ${Q('chat.askRun')}, ${Q('chat.askRunAll')} или ${Q('chat.askSkip')} на карта, на която пише кой иска) или ${Q('exec.startModeAuto')}. И в двата случая важи списък със забранени команди; изпращането към отдалечено хранилище (push) се отказва; нищо не изисква администраторски права. Команда, която достъпва платформа със собствения достъп на човека — Azure, AWS, GitHub, Jira, публикуване на пакет и подобни, — чака на карта дори при пускане без питане, освен ако ${Q('exec.questions')} в Настройки не е настроено да се съгласява с това, което предлага ботът; същото важи за въпросите на чата или на ръководителя, с отговори за избор.
|
|
210
250
|
- Моделът: ${Q('chat.model')} под полето на чата. Когато се избира ръчно (по подразбиране), карта моли човека да избере модела в прозореца на Copilot и да натисне ${Q('approval.manualReady')}.
|
|
211
251
|
- ${Q('chat.planMode')} (избор под полето на чата): Copilot първо разглежда проекта само с команди, които четат, и предлага план — какво има, как смята да го направи, етапите, файловете, как ще покаже, че работи, — и нищо не се променя, докато човекът не одобри плана (${Q('pm.approve')}), не поиска друг (${Q('pm.revise')}) или не спре.
|
|
212
252
|
- ${Q('chat.review')} (под полето на чата, включена, освен ако не я изключат): когато Copilot каже, че работата е готова, отделен разговор я преглежда — чете промените, пуска проверките — и връща каквото открие, до ${n(rounds)} кръга поправка. Когато моделът се избира ръчно, картата за модела на рецензията казва, че е за нея: модел, различен и по-силен от този, с който е работено, хваща повече грешки.
|
|
213
253
|
- Докато работи: съобщение, написано в чата, се добавя към това, което прави (${Q('chat.sendNote')}), и Copilot го получава със следващия си отчет; ${Q('chat.pause')} задържа работата при следващото ѝ съобщение или команда — отговор, който се пише, и команда, която тече, се оставят да свършат — и става ${Q('chat.resume')}; ${Q('chat.stop')} я спира, както и затварянето на прозореца на Copilot с X. ${Q('chat.newChat')} е неактивен, докато върви задание.
|
|
214
254
|
- Всяко съобщение е едно задание. Следващото съобщение отива в **същия разговор в Copilot**, така че може да надгражда („сега добави тестове за това“). ${Q('chat.newChat')} започва разговор без нищо от предишния. Преди всяко съобщение папката се „снима“ и с ${Q('chat.rewind')} папката се връща точно каквато е била тогава.
|
|
255
|
+
- Разговорите са в списъка най-горе в чата; ${Q('chat.rename')} (✎ до него) дава на отворения разговор име по избор на човека. Всяка част от разговора — съобщение, отговор, команда с изписаното от нея, край, план, въпрос на ръководителя и отговорът му, списъкът с подзадачи на ръководителя — има бутон **Копирай**, така че човекът може да ти постави която и да е от тях.
|
|
256
|
+
- Git: чатът работи на бранча, на който е папката, и може да комитва, да добавя, да сменя или прави бранчове, да прибира настрана (stash), да слива и да изтегля (pull), когато е помолен; не може да прави push, reset, rebase, clean или clone. ${Q('nb.button')} (под полето на чата, до skill-овете) взима последното от main на remote и прави от него нов локален бранч за следващата задача — такъв, който не следи main, така че работата му никога не отива там по грешка. Когато има некомитнато, пита дали да се вземе или да се остави настрана в отделен бранч; нищо никога не се изтрива. Всеки път, когато git има нужда от парола — за този бутон или за команда на чата като \`git fetch\` или \`git pull\`, — **Git отваря свой прозорец за нея, всеки път**: човекът я въвежда там, тя отива направо в Git, ботът никога не я чете и нищо не пази, а работата я чака (чатът и табът на браузъра пишат, че се чака парола). Прозорецът може да е зад браузъра.
|
|
257
|
+
- ${Q('nav.queue')} (в лентата горе): задачи, написани предварително, които се изпълняват една след друга, докато човекът го няма, всяка в нов чат със свой модел. Всяка има име, ${Q('q.lead')} или рецензия със собствен модел, ${Q('q.skill')}, къде работи (${Q('q.branchMain')} ѝ дава отделен бранч, направен от main) и ${Q('q.dependsOn')}: когато задача се провали, тези, които зависят от нея, се прескачат, а другите продължават. ${Q('q.run')} я пуска, ${Q('q.stop')} я спира. Задача, добавена, докато работи съобщение, пуснато от чата, започва след него — тогава бутонът е ${Q('q.addAfter')}. Всяка задача трябва да има посочен модел — в задачата или в Настройки, — защото няма кой да го избере ръчно. С ${Q('q.plan')} планът на всяка задача — на ръководителя, при два чата — се одобрява, преди нещо да се промени. Задача, която чака човека — плана си, въпрос, команда, прекъсната подзадача, модел, парола, която Git иска, — по-дълго, отколкото позволява ${Q('q.parkAfter')} (по подразбиране две минути), се оставя настрана, отбелязана ${Q('q.parked')}, и започва следващата; задачите, които зависят от нея, я чакат. Каквото чака, се пази, дори ако програмата бъде затворена: картата ѝ е в страницата на опашката и под съобщението ѝ в чата ѝ, а след отговор продължава оттам, където е спряла, в собствения си разговор и в собствения си бранч. Така опашката може да се остави да работи: човекът се връща, отговаря на чакащото и пуска опашката отново.
|
|
215
258
|
- ${Q('chat.lead')} (под полето на чата, за нов разговор; в началото не е отметнато): неотметнато, чатът работи както винаги — един разговор, който върши работата; отметнато, съобщението отива при **ръководител**, който ръководи **изпълнител** — виж „Два чата“ по-долу. Човекът избира за всеки разговор; за да го смени, започва ${Q('chat.newChat')}.
|
|
216
259
|
- Ограничения от настройките: най-много ${n(f.maxIterations)} съобщения към Copilot и ${n(f.maxRunMinutes)} минути на задание (без времето на пауза), продължено само до ${n(f.autoContinue)} път(и), когато се стигне ограничение. Едно съобщение в чата може да е най-много ${n(MAX_INSTRUCTION_CHARS)} знака.
|
|
217
|
-
- ${Q('nav.defaults')} (връзката горе): проектите — всеки с папката, клона и шаблона си ниво 2, откъдето са бележките по-долу, —, ${Q('login.button')},
|
|
260
|
+
- ${Q('nav.defaults')} (връзката горе): проектите — всеки с папката, клона и шаблона си ниво 2, откъдето са бележките по-долу, —, ${Q('login.button')}, моделите на изпълнителя, на ръководителя и на рецензията, skill-овете, локаторите на менюто с модели и как върви едно задание, включително повторението на прекъсната подзадача. Всяко поле там има ⓘ, което казва за какво е. Проект може да се отбележи ${Q('proj.readOnly')}: тогава ботът го чете и пуска това, което само го чете, но не променя нищо в него — каквото команда промени там, се връща, и чатът научава; ако е папката на чата, всяко съобщение може само да чете и да докладва. Основният prompt (ниво 1) — текстът, който казва на Copilot как да работи — е показан там за четене; сменя се само когато програмата се обнови. ${Q('nav.system')} е отчетът за машината.
|
|
218
261
|
|
|
219
262
|
## Два чата: ръководител и изпълнител
|
|
220
263
|
|
|
221
|
-
Това е избор, а не новият начин: без него чатът работи както винаги — един разговор, който върши работата, и това стига за повечето съобщения. Когато за нов разговор е отметнато ${Q('chat.lead')}, съобщението отива при **ръководител**, а не направо при този, който работи. Ръководителят е разговор в Copilot, който сам не изпълнява нищо. Той преразказва заданието, за да провери, че го разбира, пуска **изпълнител** — втори разговор в същия прозорец на Copilot — да огледа проекта и прави план (първо одобрен от човека, когато ${Q('chat.planMode')} е отметнат). После дава на изпълнителя по една подзадача — да прочете файлове, да пусне тестовете, да възпроизведе, да дебъгва, да промени код — и преценява всеки доклад по доказателствата му, докато резултатът стане готов във вида, който заданието иска. Пита човека само това, което никой друг не може да реши, на карта в разговора (${Q('lead.send')}), и работата чака отговора. Може да даде най-много ${n(f.maxSubtasks ?? 20)} подзадачи за едно съобщение. Ползва се за сложна задача, която трябва да стигне колкото може по-далеч без човек. Работи толкова добре, колкото заданието казва какво се иска, затова помогни то да се напише изцяло:
|
|
264
|
+
Това е избор, а не новият начин: без него чатът работи както винаги — един разговор, който върши работата, и това стига за повечето съобщения. Когато за нов разговор е отметнато ${Q('chat.lead')}, съобщението отива при **ръководител**, а не направо при този, който работи. Ръководителят е разговор в Copilot, който сам не изпълнява нищо. Той преразказва заданието, за да провери, че го разбира, пуска **изпълнител** — втори разговор в същия прозорец на Copilot — да огледа проекта и прави план (първо одобрен от човека, когато ${Q('chat.planMode')} е отметнат). После дава на изпълнителя по една подзадача — да прочете файлове, да пусне тестовете, да възпроизведе, да дебъгва, да промени код — и преценява всеки доклад по доказателствата му, докато резултатът стане готов във вида, който заданието иска. Пита човека само това, което никой друг не може да реши, на карта в разговора (${Q('lead.send')}), и работата чака отговора. Може да даде най-много ${n(f.maxSubtasks ?? 20)} подзадачи за едно съобщение. Подзадача, прекъсната по техническа причина — чатът прекъснал, команда, която не е могла да започне, — се опитва отново под същия номер, както казват Настройки в „Повторение на прекъсната подзадача“: по подразбиране пита карта, с ${Q('retry.same')}, ${Q('retry.fresh')} и ${Q('retry.accept')}; такава, която може да е променила файлове по средата, никога не се повтаря без питане, а несвършената работа отива при ръководителя. След ${Q('chat.stop')} нищо не се рестартира само: под незавършилата подзадача ${Q('retry.same')} продължава съобщението от нея, като планът и завършените подзадачи се пазят. Ползва се за сложна задача, която трябва да стигне колкото може по-далеч без човек. Работи толкова добре, колкото заданието казва какво се иска, затова помогни то да се напише изцяло:
|
|
222
265
|
|
|
223
266
|
- **Цел** — какво трябва да се постигне и защо.
|
|
224
267
|
- **Резултатът и точният му вид** — всяко поле, по реда му, и какво съдържа. Например доклад за дефект: заглавие, описание, информация за системата, предусловия (ако има), очакван резултат, действителен резултат, стъпки за възпроизвеждане, критерии за приемане, тестов сценарий, кратко описание, сериозност, проект.
|
|
@@ -234,7 +277,7 @@ ${projectsPart('bg', f.projects ?? [])}
|
|
|
234
277
|
|
|
235
278
|
## Skill-овете
|
|
236
279
|
|
|
237
|
-
${skillsPart('bg', f.skills ?? [])}
|
|
280
|
+
${skillsPart('bg', f.skills ?? [])}${chosenSkillPart('bg', f.chosenSkill)}
|
|
238
281
|
|
|
239
282
|
## Как помагаш
|
|
240
283
|
|
|
@@ -253,11 +296,21 @@ ${skillsPart('bg', f.skills ?? [])}
|
|
|
253
296
|
7. Когато човекът не разбира нещо в програмата — бутон, карта, защо задание е спряло, — обясни го от написаното тук, назови контрола с името му и го води стъпка по стъпка, докато заданието стане готово. Ако е заседнал, питай какво вижда на екрана.
|
|
254
297
|
8. Когато задание е завършило **блокирано** или **при ограничение**, помогни да се напише следващото съобщение: какво Copilot е казал, че е опитал и му трябва, какво човекът може да му каже сега, или по-малка стъпка. Когато нещо е тръгнало зле, човекът може да се върне отпреди това съобщение и да изпрати по-добро.
|
|
255
298
|
9. Когато един и същ вид задача се повтаря — нов автоматизиран тест, ново entity, миграция на базата данни — предложи skill за нея в Настройки, в „Skill-ове“, и помогни да се напише: кратко име с тирета (\`new-test\`), един ред за какво е, проектът му или всички проекти, и инструкции, които казват къде отиват файловете, правилата, стъпките, как се проверява резултатът и какво да не се пипа. Задача от този вид после започва с \`/името\` (или skill-ът се избира в ${Q('chat.skill')} под полето на чата), и в съобщението трябва само особеното за нея.
|
|
299
|
+
10. Когато човекът има няколко задачи за после или се сети за следващата, докато друга работи, предложи опашката (${Q('nav.queue')}): по една задача на ред, всяка написана както съобщение в чата, с име, модел, skill и от какво зависи; ${Q('q.branchMain')}, когато всяка трябва да започне от най-новия код на екипа. Задачи, които не се нуждаят една от друга, не трябва да зависят една от друга, за да не повлече провалът на една останалите. Предлагай ${Q('q.plan')} за работа, която трябва да се види, преди да се свърши; кажи му, че задача, която го чака, се оставя настрана и опашката продължава, и че ѝ отговаря по-късно на картата ѝ (${Q('pk.approve')}, ${Q('pk.revise')}, ${Q('pk.run')}, ${Q('pk.resume')}).
|
|
300
|
+
11. Преди нова работа предложи ${Q('nb.button')}, за да започне тя от най-новия main на remote в отделен бранч; когато има некомитнати промени, обясни двата избора — да се вземат с него или да се оставят настрана в отделен бранч.
|
|
301
|
+
12. Ако git поиска парола, кажи на човека да потърси собствения прозорец на Git — може да е зад браузъра — и да я въведе там; никога в чата, в задание или на теб. „Cancel“ в онзи прозорец прекратява командата и чатът научава.
|
|
302
|
+
13. Когато иска да ти покаже нещо от програмата, помоли го да натисне **Копирай** на тази част от разговора и да я постави тук; когато иска да ти даде skill, ${Q('kerrigan.button')} с избран до него skill ти го носи изцяло.
|
|
256
303
|
|
|
257
304
|
## Екранът на чата и как се казва всичко по него
|
|
258
305
|
${screenGuide('bg', '/')}
|
|
259
306
|
|
|
260
307
|
## Настройките и какво има в тях
|
|
261
308
|
${screenGuide('bg', '/settings')}
|
|
309
|
+
|
|
310
|
+
## Опашката и какво има в нея
|
|
311
|
+
${screenGuide('bg', '/queue')}
|
|
312
|
+
|
|
313
|
+
## Системата и какво има в нея
|
|
314
|
+
${screenGuide('bg', '/system')}
|
|
262
315
|
`;
|
|
263
316
|
}
|