oc-pilot 0.170.0 → 0.171.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 +5 -0
- package/dist/mcp.js +18 -4
- package/dist/mcp.js.map +1 -1
- package/dist/version.js +1 -1
- package/docs/integrations.md +12 -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,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.171.0
|
|
4
|
+
|
|
5
|
+
- Expose Intent Compiler set and drift through the existing full-profile MCP intent tool, with explicit confirmation and write-permission gates.
|
|
6
|
+
- Full test suite: 953 passed, 1 platform-specific skip; version 0.171.0.
|
|
7
|
+
|
|
3
8
|
## 0.170.0
|
|
4
9
|
|
|
5
10
|
- Add persisted Intent Compiler criteria with stable IDs and explicit drift review against the saved HEAD and tracked diff; preserve model-backed checks as the only satisfaction verdict.
|
package/dist/mcp.js
CHANGED
|
@@ -1342,21 +1342,23 @@ const TOOLS = [
|
|
|
1342
1342
|
},
|
|
1343
1343
|
{
|
|
1344
1344
|
name: "intent",
|
|
1345
|
-
description: "
|
|
1346
|
-
annotations: { readOnlyHint:
|
|
1345
|
+
description: "Manage the Intent Compiler. check evaluates acceptance criteria against a diff with a model; sphinx clarifies a request; drift compares a saved intent snapshot with current HEAD and tracked diff without claiming criteria are met; set saves criteria locally and writes .oc-pilot/intent.json. set requires confirm=true and server --allow-write. set accepts criteria or criteria_text only, not file paths.",
|
|
1346
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
1347
1347
|
inputSchema: {
|
|
1348
1348
|
type: "object",
|
|
1349
1349
|
additionalProperties: false,
|
|
1350
1350
|
required: ["action"],
|
|
1351
1351
|
properties: {
|
|
1352
|
-
action: { type: "string", enum: ["check", "sphinx"] },
|
|
1352
|
+
action: { type: "string", enum: ["check", "sphinx", "set", "drift"] },
|
|
1353
1353
|
criteria: { type: "array", description: "Acceptance criteria as strings", items: { type: "string" } },
|
|
1354
1354
|
criteria_text: { type: "string", description: "Criteria as Markdown checklist or plain lines" },
|
|
1355
|
-
criteria_file: { type: "string", description: "Repository-relative criteria file" },
|
|
1355
|
+
criteria_file: { type: "string", description: "Repository-relative criteria file for check only; set accepts criteria or criteria_text" },
|
|
1356
1356
|
request: { type: "string", description: "Feature request for sphinx" },
|
|
1357
1357
|
request_file: { type: "string", description: "Repository-relative request file" },
|
|
1358
1358
|
context: { type: "string", description: "Extra context for the model" },
|
|
1359
1359
|
strict: { type: "boolean", description: "Fail on partial and unverifiable criteria" },
|
|
1360
|
+
confirm: { type: "boolean", description: "Required true for set because it writes the local intent snapshot" },
|
|
1361
|
+
replace: { type: "boolean", description: "For set only: replace an existing snapshot; requires confirm=true" },
|
|
1360
1362
|
diff: { type: "string", description: "Unified diff text; omit to use the project's git diff" },
|
|
1361
1363
|
base: { type: "string" },
|
|
1362
1364
|
staged: { type: "boolean" },
|
|
@@ -4416,6 +4418,13 @@ async function callIntent(input, cwd) {
|
|
|
4416
4418
|
const temp = new TempFiles();
|
|
4417
4419
|
try {
|
|
4418
4420
|
const action = stringArg(input, "action", true);
|
|
4421
|
+
const confirm = booleanArg(input, "confirm");
|
|
4422
|
+
if (action === "set" && confirm !== true) {
|
|
4423
|
+
throw new ToolInputError("intent set writes .oc-pilot/intent.json; call again with confirm=true after reviewing the criteria");
|
|
4424
|
+
}
|
|
4425
|
+
if (action === "set" && (stringArg(input, "criteria_file") || stringArg(input, "request_file"))) {
|
|
4426
|
+
throw new ToolInputError("intent set accepts criteria or criteria_text, not file paths");
|
|
4427
|
+
}
|
|
4419
4428
|
const args = ["intent", action, "--json"];
|
|
4420
4429
|
if (Array.isArray(input.criteria)) {
|
|
4421
4430
|
const lines = input.criteria.filter((item) => typeof item === "string");
|
|
@@ -4427,6 +4436,8 @@ async function callIntent(input, cwd) {
|
|
|
4427
4436
|
const criteriaText = stringArg(input, "criteria_text");
|
|
4428
4437
|
if (criteriaText)
|
|
4429
4438
|
args.push("--criteria-text", criteriaText);
|
|
4439
|
+
if (action === "set" && booleanArg(input, "replace"))
|
|
4440
|
+
args.push("--replace");
|
|
4430
4441
|
const request = stringArg(input, "request");
|
|
4431
4442
|
if (request)
|
|
4432
4443
|
args.push("--request", request);
|
|
@@ -5180,6 +5191,9 @@ async function callSlop(input, cwd) {
|
|
|
5180
5191
|
}
|
|
5181
5192
|
async function dispatchTool(name, input, cwd, readOnly) {
|
|
5182
5193
|
if (readOnly) {
|
|
5194
|
+
if (name === "intent" && stringArg(input, "action") === "set") {
|
|
5195
|
+
throw new ToolInputError("intent set writes .oc-pilot/intent.json; start the MCP server with --allow-write");
|
|
5196
|
+
}
|
|
5183
5197
|
if (name === "receipt_create") {
|
|
5184
5198
|
throw new ToolInputError("receipt_create writes a receipt and may run tests; start the MCP server with --allow-write");
|
|
5185
5199
|
}
|