oc-pilot 0.157.0 → 0.159.0
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 +10 -0
- package/README.md +7 -4
- package/README.ru.md +6 -3
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/cli.test.js +30 -0
- package/dist/cli.test.js.map +1 -1
- package/dist/commands/demo.js +91 -0
- package/dist/commands/demo.js.map +1 -0
- package/dist/commands/flight.js +17 -2
- package/dist/commands/flight.js.map +1 -1
- package/dist/core/flight.js +89 -0
- package/dist/core/flight.js.map +1 -1
- package/dist/core/flight.test.js +30 -1
- package/dist/core/flight.test.js.map +1 -1
- package/dist/mcp.js +38 -1
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.test.js +5 -0
- package/dist/mcp.test.js.map +1 -1
- package/dist/version.js +1 -1
- package/docs/growth.md +128 -0
- package/docs/integrations.md +4 -4
- 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
package/dist/mcp.js
CHANGED
|
@@ -1647,6 +1647,23 @@ const TOOLS = [
|
|
|
1647
1647
|
},
|
|
1648
1648
|
},
|
|
1649
1649
|
},
|
|
1650
|
+
{
|
|
1651
|
+
name: "flight_prove",
|
|
1652
|
+
description: "Prove a claim by running a check at the flight base commit, every checkpoint and the current tree. Needs --allow-write.",
|
|
1653
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
1654
|
+
inputSchema: {
|
|
1655
|
+
type: "object",
|
|
1656
|
+
additionalProperties: false,
|
|
1657
|
+
required: ["claim", "command"],
|
|
1658
|
+
properties: {
|
|
1659
|
+
claim: { type: "string", description: "What must be true, e.g. expired token returns 401" },
|
|
1660
|
+
id: { type: "string", description: "Flight session id; defaults to the latest flight" },
|
|
1661
|
+
command: { type: "array", description: "Command argv, e.g. [\"npm\",\"test\"]", items: { type: "string" } },
|
|
1662
|
+
timeout: { type: "integer", minimum: 100, maximum: 600000 },
|
|
1663
|
+
...RESULT_PROPERTIES,
|
|
1664
|
+
},
|
|
1665
|
+
},
|
|
1666
|
+
},
|
|
1650
1667
|
{
|
|
1651
1668
|
name: "flight_diff",
|
|
1652
1669
|
description: "Compare the flight base commit or two checkpoints and return git diff stat and patch.",
|
|
@@ -4623,6 +4640,19 @@ async function callFlightBisect(input, cwd) {
|
|
|
4623
4640
|
args.push("--", ...command);
|
|
4624
4641
|
return toToolResult(await runCli(args, cwd));
|
|
4625
4642
|
}
|
|
4643
|
+
async function callFlightProve(input, cwd) {
|
|
4644
|
+
const claim = stringArg(input, "claim", true);
|
|
4645
|
+
const command = stringArrayArg(input, "command", true);
|
|
4646
|
+
const args = ["flight", "prove", "--claim", claim, "--json"];
|
|
4647
|
+
const id = stringArg(input, "id");
|
|
4648
|
+
if (id)
|
|
4649
|
+
args.push("--id", id);
|
|
4650
|
+
const timeout = integerArg(input, "timeout");
|
|
4651
|
+
if (timeout !== undefined)
|
|
4652
|
+
args.push("--timeout", String(timeout));
|
|
4653
|
+
args.push("--", ...command);
|
|
4654
|
+
return toToolResult(await runCli(args, cwd));
|
|
4655
|
+
}
|
|
4626
4656
|
async function callFlightDiff(input, cwd) {
|
|
4627
4657
|
const args = ["flight", "diff", "--json"];
|
|
4628
4658
|
const id = stringArg(input, "id");
|
|
@@ -5117,7 +5147,7 @@ async function dispatchTool(name, input, cwd, readOnly) {
|
|
|
5117
5147
|
throw new ToolInputError("scan_injection fix writes files and is disabled in read-only mode; start the MCP server with --allow-write");
|
|
5118
5148
|
}
|
|
5119
5149
|
if (name.startsWith("flight_") &&
|
|
5120
|
-
["flight_start", "flight_exec", "flight_note", "flight_checkpoint", "flight_end", "flight_replay", "flight_bisect", "flight_delete", "flight_prune", "flight_restore", "flight_export"].includes(name)) {
|
|
5150
|
+
["flight_start", "flight_exec", "flight_note", "flight_checkpoint", "flight_end", "flight_replay", "flight_bisect", "flight_prove", "flight_delete", "flight_prune", "flight_restore", "flight_export"].includes(name)) {
|
|
5121
5151
|
throw new ToolInputError("flight write actions are disabled in read-only mode; start the MCP server with --allow-write");
|
|
5122
5152
|
}
|
|
5123
5153
|
}
|
|
@@ -5272,6 +5302,8 @@ async function dispatchTool(name, input, cwd, readOnly) {
|
|
|
5272
5302
|
return callFlightReplay(input, cwd);
|
|
5273
5303
|
case "flight_bisect":
|
|
5274
5304
|
return callFlightBisect(input, cwd);
|
|
5305
|
+
case "flight_prove":
|
|
5306
|
+
return callFlightProve(input, cwd);
|
|
5275
5307
|
case "flight_diff":
|
|
5276
5308
|
return callFlightDiff(input, cwd);
|
|
5277
5309
|
case "flight_compare":
|
|
@@ -5425,6 +5457,11 @@ function summarizeResult(value) {
|
|
|
5425
5457
|
if (typeof value.id === "string" && typeof value.label === "string" && typeof value.commit === "string" && typeof value.path === "string") {
|
|
5426
5458
|
return `oc-pilot: flight replay ${value.id} ${value.label}`;
|
|
5427
5459
|
}
|
|
5460
|
+
if (typeof value.claim === "string" &&
|
|
5461
|
+
typeof value.verdict === "string" &&
|
|
5462
|
+
Array.isArray(value.steps)) {
|
|
5463
|
+
return `oc-pilot: flight prove ${value.verdict}`;
|
|
5464
|
+
}
|
|
5428
5465
|
if (typeof value.id === "string" && Array.isArray(value.command) && Array.isArray(value.steps)) {
|
|
5429
5466
|
const first = value.firstBad && typeof value.firstBad === "object"
|
|
5430
5467
|
? value.firstBad.label
|