oc-pilot 0.114.11 → 0.115.1
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/CHANGELOG.md +13 -0
- package/README.md +7 -4
- package/README.ru.md +6 -3
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.test.js +45 -0
- package/dist/cli.test.js.map +1 -1
- package/dist/commands/flight.js +182 -0
- package/dist/commands/flight.js.map +1 -0
- package/dist/core/flight.js +625 -0
- package/dist/core/flight.js.map +1 -0
- package/dist/core/flight.test.js +232 -0
- package/dist/core/flight.test.js.map +1 -0
- package/dist/mcp.js +313 -0
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.test.js +23 -0
- package/dist/mcp.test.js.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/docs/integrations.md +5 -3
- package/package.json +1 -1
- package/skills/agent-self-review/SKILL.md +1 -1
- package/skills/commit-discipline/SKILL.md +1 -1
- package/skills/secure-diff-gate/SKILL.md +1 -1
- package/skills/stack-review-packs/SKILL.md +1 -1
- package/skills/test-failure-triage/SKILL.md +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { PilotError } from "../core/errors.js";
|
|
2
|
+
import { bisectFlight, createCheckpoint, diffFlight, endFlight, execInFlight, exportFlight, flightStatus, listFlights, renderFlightBisect, renderFlightCheckpoint, renderFlightDiff, renderFlightEnd, renderFlightExec, renderFlightExport, renderFlightList, renderFlightReplay, renderFlightShow, renderFlightStart, renderFlightStatus, renderFlightVerify, replayFlight, showFlight, startFlight, } from "../core/flight.js";
|
|
3
|
+
import { writeOutput } from "../core/io.js";
|
|
4
|
+
import { log } from "../core/log.js";
|
|
5
|
+
import { COMMON_HELP, parseCommandArgs, resolveContext, withCommon, } from "../core/options.js";
|
|
6
|
+
import { asBoolean, asString } from "../core/parse.js";
|
|
7
|
+
const OPTIONS = withCommon({
|
|
8
|
+
name: { type: "string" },
|
|
9
|
+
label: { type: "string" },
|
|
10
|
+
timeout: { type: "string" },
|
|
11
|
+
id: { type: "string" },
|
|
12
|
+
to: { type: "string" },
|
|
13
|
+
from: { type: "string" },
|
|
14
|
+
path: { type: "string" },
|
|
15
|
+
});
|
|
16
|
+
const HELP = `Использование:
|
|
17
|
+
oc-pilot flight start [--name <имя>]
|
|
18
|
+
oc-pilot flight exec [--timeout <мс>] -- <команда...>
|
|
19
|
+
oc-pilot flight checkpoint [--label <метка>]
|
|
20
|
+
oc-pilot flight status
|
|
21
|
+
oc-pilot flight list
|
|
22
|
+
oc-pilot flight show <id>
|
|
23
|
+
oc-pilot flight replay [--to <метка|commit>] [--id <id>] [--path <путь>]
|
|
24
|
+
oc-pilot flight bisect [--id <id>] [--timeout <мс>] -- <команда...>
|
|
25
|
+
oc-pilot flight diff [--from <метка|commit>] [--to <метка|commit>] [--id <id>]
|
|
26
|
+
oc-pilot flight export [--id <id>] [--output <файл>]
|
|
27
|
+
oc-pilot flight end
|
|
28
|
+
oc-pilot flight verify <id>
|
|
29
|
+
|
|
30
|
+
Чёрный ящик агентской сессии: журнал событий с хеш-цепочкой и
|
|
31
|
+
чекпоинтами рабочего дерева. Журнал лежит в .git/oc-pilot/flights/<id>.
|
|
32
|
+
|
|
33
|
+
Опции:
|
|
34
|
+
--name <имя> имя полёта для start
|
|
35
|
+
--label <метка> метка чекпоинта
|
|
36
|
+
--timeout <мс> таймаут команды для exec/bisect (по умолчанию 600000)
|
|
37
|
+
--id <id> идентификатор полёта
|
|
38
|
+
--to <ref> чекпоинт для replay/diff: метка или commit
|
|
39
|
+
--from <ref> начальный чекпоинт для diff
|
|
40
|
+
--path <путь> каталог для replay-worktree
|
|
41
|
+
${COMMON_HELP}
|
|
42
|
+
Коды возврата:
|
|
43
|
+
0 успех
|
|
44
|
+
1 ошибка, команда exec/bisect завершилась с ненулевым кодом
|
|
45
|
+
2 полёт не запущен или журнал повреждён
|
|
46
|
+
|
|
47
|
+
Примеры:
|
|
48
|
+
oc-pilot flight start --name "fix auth"
|
|
49
|
+
oc-pilot flight exec -- npm test
|
|
50
|
+
oc-pilot flight checkpoint --label "tests green"
|
|
51
|
+
oc-pilot flight replay --to "tests green"
|
|
52
|
+
oc-pilot flight bisect -- node --test
|
|
53
|
+
oc-pilot flight diff --from base --to "tests green"
|
|
54
|
+
oc-pilot flight export --output flight.json
|
|
55
|
+
oc-pilot flight verify 20261114T120000-ab12cd`;
|
|
56
|
+
function requireId(values, positionals) {
|
|
57
|
+
const id = asString(values, "id") ?? positionals[1];
|
|
58
|
+
if (!id) {
|
|
59
|
+
throw new PilotError("Не указан идентификатор полёта.", {
|
|
60
|
+
hint: "Посмотрите список: oc-pilot flight list.",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return id;
|
|
64
|
+
}
|
|
65
|
+
function timeoutOf(values) {
|
|
66
|
+
const raw = asString(values, "timeout");
|
|
67
|
+
if (raw === undefined)
|
|
68
|
+
return 600_000;
|
|
69
|
+
const value = Number(raw);
|
|
70
|
+
if (!Number.isInteger(value) || value <= 0) {
|
|
71
|
+
throw new PilotError(`Некорректный таймаут: ${raw}`, {
|
|
72
|
+
hint: "Укажите положительное целое число миллисекунд.",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
export function runFlight(argv) {
|
|
78
|
+
let args = [...argv];
|
|
79
|
+
let explicitCommand;
|
|
80
|
+
if (args[0] === "exec" || args[0] === "bisect") {
|
|
81
|
+
const separator = args.indexOf("--");
|
|
82
|
+
if (separator >= 0) {
|
|
83
|
+
explicitCommand = args.slice(separator + 1);
|
|
84
|
+
args = args.slice(0, separator);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const { values, positionals } = parseCommandArgs(args, OPTIONS);
|
|
88
|
+
const action = positionals[0] ?? "status";
|
|
89
|
+
if (asBoolean(values, "help") || action === "help") {
|
|
90
|
+
writeOutput(HELP);
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
const ctx = resolveContext(values);
|
|
94
|
+
const json = ctx.flags.json === true;
|
|
95
|
+
if (action === "start") {
|
|
96
|
+
const name = asString(values, "name") ?? "flight";
|
|
97
|
+
const session = startFlight(ctx.cwd, name);
|
|
98
|
+
writeOutput(json ? JSON.stringify({ active: true, session }, null, 2) : renderFlightStart(session), ctx.flags.output);
|
|
99
|
+
log.success(`Полёт ${session.meta.id} начат.`);
|
|
100
|
+
return 0;
|
|
101
|
+
}
|
|
102
|
+
if (action === "exec") {
|
|
103
|
+
const command = explicitCommand ?? positionals.slice(1);
|
|
104
|
+
const result = execInFlight(ctx.cwd, command, {
|
|
105
|
+
timeoutMs: timeoutOf(values),
|
|
106
|
+
quiet: json,
|
|
107
|
+
});
|
|
108
|
+
writeOutput(json ? JSON.stringify(result, null, 2) : renderFlightExec(result), ctx.flags.output);
|
|
109
|
+
if (result.timedOut)
|
|
110
|
+
return 124;
|
|
111
|
+
return result.exitCode ?? 1;
|
|
112
|
+
}
|
|
113
|
+
if (action === "checkpoint") {
|
|
114
|
+
const label = asString(values, "label") ?? new Date().toISOString();
|
|
115
|
+
const checkpoint = createCheckpoint(ctx.cwd, label);
|
|
116
|
+
writeOutput(json ? JSON.stringify(checkpoint, null, 2) : renderFlightCheckpoint(checkpoint), ctx.flags.output);
|
|
117
|
+
log.success(`Чекпоинт ${checkpoint.label} записан.`);
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
if (action === "status") {
|
|
121
|
+
const status = flightStatus(ctx.cwd);
|
|
122
|
+
writeOutput(json ? JSON.stringify(status, null, 2) : renderFlightStatus(status), ctx.flags.output);
|
|
123
|
+
return status.active ? 0 : 2;
|
|
124
|
+
}
|
|
125
|
+
if (action === "list") {
|
|
126
|
+
const flights = listFlights(ctx.cwd);
|
|
127
|
+
writeOutput(json ? JSON.stringify({ flights }, null, 2) : renderFlightList(flights), ctx.flags.output);
|
|
128
|
+
return 0;
|
|
129
|
+
}
|
|
130
|
+
if (action === "show") {
|
|
131
|
+
const show = showFlight(ctx.cwd, requireId(values, positionals));
|
|
132
|
+
writeOutput(json ? JSON.stringify(show, null, 2) : renderFlightShow(show), ctx.flags.output);
|
|
133
|
+
return show.verification.valid ? 0 : 2;
|
|
134
|
+
}
|
|
135
|
+
if (action === "verify") {
|
|
136
|
+
const show = showFlight(ctx.cwd, requireId(values, positionals));
|
|
137
|
+
writeOutput(json
|
|
138
|
+
? JSON.stringify({ id: show.meta.id, ...show.verification }, null, 2)
|
|
139
|
+
: renderFlightVerify(show.verification), ctx.flags.output);
|
|
140
|
+
return show.verification.valid ? 0 : 2;
|
|
141
|
+
}
|
|
142
|
+
if (action === "replay") {
|
|
143
|
+
const result = replayFlight(ctx.cwd, asString(values, "id"), asString(values, "to"), asString(values, "path"));
|
|
144
|
+
writeOutput(json ? JSON.stringify(result, null, 2) : renderFlightReplay(result), ctx.flags.output);
|
|
145
|
+
log.success(`Replay: ${result.path}`);
|
|
146
|
+
return 0;
|
|
147
|
+
}
|
|
148
|
+
if (action === "bisect") {
|
|
149
|
+
const command = explicitCommand ?? positionals.slice(1);
|
|
150
|
+
if (command.length === 0) {
|
|
151
|
+
throw new PilotError("Не указана команда для bisect.", {
|
|
152
|
+
hint: "Используйте: oc-pilot flight bisect -- <команда...>.",
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const result = bisectFlight(ctx.cwd, asString(values, "id"), command, timeoutOf(values));
|
|
156
|
+
writeOutput(json ? JSON.stringify(result, null, 2) : renderFlightBisect(result), ctx.flags.output);
|
|
157
|
+
return result.firstBad ? 1 : 0;
|
|
158
|
+
}
|
|
159
|
+
if (action === "diff") {
|
|
160
|
+
const result = diffFlight(ctx.cwd, asString(values, "id"), asString(values, "from"), asString(values, "to"));
|
|
161
|
+
writeOutput(json ? JSON.stringify(result, null, 2) : renderFlightDiff(result), ctx.flags.output);
|
|
162
|
+
return 0;
|
|
163
|
+
}
|
|
164
|
+
if (action === "export") {
|
|
165
|
+
const result = exportFlight(ctx.cwd, asString(values, "id"));
|
|
166
|
+
writeOutput(json ? JSON.stringify(result, null, 2) : renderFlightExport(result), ctx.flags.output);
|
|
167
|
+
log.success(`Экспорт ${result.meta.id}: ${result.digest}.`);
|
|
168
|
+
return 0;
|
|
169
|
+
}
|
|
170
|
+
if (action === "end") {
|
|
171
|
+
const result = endFlight(ctx.cwd);
|
|
172
|
+
writeOutput(json
|
|
173
|
+
? JSON.stringify({ meta: result.meta, summary: result.summary }, null, 2)
|
|
174
|
+
: renderFlightEnd(result.summary), ctx.flags.output);
|
|
175
|
+
log.success("Полёт завершён.");
|
|
176
|
+
return 0;
|
|
177
|
+
}
|
|
178
|
+
writeOutput(HELP);
|
|
179
|
+
log.warn(`Неизвестное действие flight: ${action}.`);
|
|
180
|
+
return 1;
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=flight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flight.js","sourceRoot":"","sources":["../../src/commands/flight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GAEX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,S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