oc-pilot 0.164.0 → 0.166.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/dist/mcp.js +30 -0
- package/dist/mcp.js.map +1 -1
- package/dist/version.js +1 -1
- package/docs/integrations.md +13 -3
- package/docs/reference.md +3 -3
- package/docs/reference.ru.md +2 -2
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.166.0
|
|
4
|
+
|
|
5
|
+
- Add regression coverage proving MCP receipt creation returns the persisted receipt when configured project tests fail, while marking the tool result as an error.
|
|
6
|
+
- Full test suite: 946 passed; version 0.166.0.
|
|
7
|
+
|
|
8
|
+
## 0.165.0
|
|
9
|
+
|
|
10
|
+
- Add full-profile MCP receipt creation with explicit per-call confirmation and server-side write permission; preserve saved receipt evidence on policy failure.
|
|
11
|
+
- Full test suite: 945 passed; version 0.165.0.
|
|
12
|
+
|
|
3
13
|
## 0.164.0
|
|
4
14
|
|
|
5
15
|
- Bind completion receipts to a bounded fingerprint of tracked and untracked worktree content; verification now detects edits made after receipt creation and marks legacy or unbounded snapshots as unchecked.
|
package/dist/mcp.js
CHANGED
|
@@ -1997,6 +1997,20 @@ const TOOLS = [
|
|
|
1997
1997
|
},
|
|
1998
1998
|
},
|
|
1999
1999
|
},
|
|
2000
|
+
{
|
|
2001
|
+
name: "receipt_create",
|
|
2002
|
+
description: "Create a local completion receipt after running offline preflight and the configured or detected project test command. This writes .git/oc-pilot/receipt.json and may execute the project's test script; requires confirm=true and an MCP server started with --allow-write. On a policy failure it still returns the saved receipt as structuredContent with isError=true (inspect tests/preflight; do not assume no receipt was written). If no test command is detected, tests are recorded as not run and evidence is incomplete.",
|
|
2003
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
2004
|
+
inputSchema: {
|
|
2005
|
+
type: "object",
|
|
2006
|
+
additionalProperties: false,
|
|
2007
|
+
required: ["confirm"],
|
|
2008
|
+
properties: {
|
|
2009
|
+
confirm: { type: "boolean", description: "Must be true to write the receipt and run the detected project test command" },
|
|
2010
|
+
...RESULT_PROPERTIES,
|
|
2011
|
+
},
|
|
2012
|
+
},
|
|
2013
|
+
},
|
|
2000
2014
|
{
|
|
2001
2015
|
name: "receipt_verify",
|
|
2002
2016
|
description: "Verify receipt integrity, HEAD freshness and its bounded worktree fingerprint, then report test/preflight evidence separately. worktreeStatus=unchecked means legacy receipts or a snapshot that could not be computed; it is not proof that files are unchanged. ok=true only means the receipt is intact and current; it does not by itself prove the work is complete. Set require_complete=true to return policy exit code 1 unless evidenceStatus=complete; this is not a tool error. Read-only and offline.",
|
|
@@ -5130,6 +5144,17 @@ async function callReceiptVerify(input, cwd) {
|
|
|
5130
5144
|
args.push("--require-complete");
|
|
5131
5145
|
return toToolResult(await runCli(args, cwd));
|
|
5132
5146
|
}
|
|
5147
|
+
async function callReceiptCreate(input, cwd) {
|
|
5148
|
+
if (booleanArg(input, "confirm") !== true) {
|
|
5149
|
+
throw new ToolInputError("receipt_create requires confirm=true; this writes a receipt and may run project tests");
|
|
5150
|
+
}
|
|
5151
|
+
const result = await runCli(["receipt", "--json"], cwd);
|
|
5152
|
+
const toolResult = toToolResult(result);
|
|
5153
|
+
if (result.exitCode !== 0 && toolResult.isError !== true) {
|
|
5154
|
+
return { ...toolResult, isError: true };
|
|
5155
|
+
}
|
|
5156
|
+
return toolResult;
|
|
5157
|
+
}
|
|
5133
5158
|
async function callStats(input, cwd) {
|
|
5134
5159
|
const args = ["stats", "--json"];
|
|
5135
5160
|
if (booleanArg(input, "clear"))
|
|
@@ -5155,6 +5180,9 @@ async function callSlop(input, cwd) {
|
|
|
5155
5180
|
}
|
|
5156
5181
|
async function dispatchTool(name, input, cwd, readOnly) {
|
|
5157
5182
|
if (readOnly) {
|
|
5183
|
+
if (name === "receipt_create") {
|
|
5184
|
+
throw new ToolInputError("receipt_create writes a receipt and may run tests; start the MCP server with --allow-write");
|
|
5185
|
+
}
|
|
5158
5186
|
if (name === "fix" && booleanArg(input, "apply")) {
|
|
5159
5187
|
throw new ToolInputError("fix apply is disabled in read-only mode; start the MCP server with --allow-write");
|
|
5160
5188
|
}
|
|
@@ -5429,6 +5457,8 @@ async function dispatchTool(name, input, cwd, readOnly) {
|
|
|
5429
5457
|
return callReady(input, cwd);
|
|
5430
5458
|
case "receipt_verify":
|
|
5431
5459
|
return callReceiptVerify(input, cwd);
|
|
5460
|
+
case "receipt_create":
|
|
5461
|
+
return callReceiptCreate(input, cwd);
|
|
5432
5462
|
default:
|
|
5433
5463
|
throw new ToolInputError(`Unknown tool: ${name}`);
|
|
5434
5464
|
}
|