oc-pilot 0.91.0 → 0.93.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 +16 -0
- package/README.md +9 -6
- package/README.ru.md +8 -5
- package/dist/cli.js +9 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.test.js +49 -0
- package/dist/cli.test.js.map +1 -1
- package/dist/commands/blindfold.js +196 -0
- package/dist/commands/blindfold.js.map +1 -0
- package/dist/commands/butterfly.js +135 -0
- package/dist/commands/butterfly.js.map +1 -0
- package/dist/core/blindfold.js +451 -0
- package/dist/core/blindfold.js.map +1 -0
- package/dist/core/blindfold.test.js +77 -0
- package/dist/core/blindfold.test.js.map +1 -0
- package/dist/core/butterfly-preload.js +189 -0
- package/dist/core/butterfly-preload.js.map +1 -0
- package/dist/core/butterfly.js +135 -0
- package/dist/core/butterfly.js.map +1 -0
- package/dist/core/butterfly.test.js +146 -0
- package/dist/core/butterfly.test.js.map +1 -0
- package/dist/core/command.js +1 -0
- package/dist/core/command.js.map +1 -1
- package/dist/mcp-prompts.test.js +2 -0
- package/dist/mcp-prompts.test.js.map +1 -1
- package/dist/mcp.js +146 -0
- package/dist/mcp.js.map +1 -1
- package/dist/mcp.test.js +17 -0
- package/dist/mcp.test.js.map +1 -1
- package/dist/skills.test.js +3 -0
- package/dist/skills.test.js.map +1 -1
- package/dist/version.js +1 -1
- package/docs/integrations.md +5 -5
- package/package.json +1 -1
- package/skills/agent-self-review/SKILL.md +1 -1
- package/skills/commit-discipline/SKILL.md +1 -1
- package/skills/oc-pilot/SKILL.md +4 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-prompts.test.js","sourceRoot":"","sources":["../src/mcp-prompts.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,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|
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "butterfly",
|
|
1110
|
+
description: "Run the project test command with deterministic local chaos: fetch can return HTTP 500, add latency or broken JSON, and fs can return EIO for code under the scope. Reports injected fault counts, exit code and output tail. The test runner and node_modules are excluded by the stack scope; database driver patching is best-effort. This is a test aid, not an OS sandbox.",
|
|
1111
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
1112
|
+
inputSchema: {
|
|
1113
|
+
type: "object",
|
|
1114
|
+
additionalProperties: false,
|
|
1115
|
+
required: ["command"],
|
|
1116
|
+
properties: {
|
|
1117
|
+
command: { type: "string", description: "Test command to run under chaos" },
|
|
1118
|
+
seed: { type: "integer", minimum: 0, description: "Deterministic fault seed (default 42)" },
|
|
1119
|
+
fail_rate: { type: "number", minimum: 0, maximum: 1, description: "HTTP 500 rate (default 0.1)" },
|
|
1120
|
+
latency_rate: { type: "number", minimum: 0, maximum: 1, description: "Latency injection rate (default 0.05)" },
|
|
1121
|
+
latency_ms: { type: "integer", minimum: 0, description: "Injected latency in ms (default 3000)" },
|
|
1122
|
+
broken_json_rate: { type: "number", minimum: 0, maximum: 1, description: "Broken JSON rate (default 0.02)" },
|
|
1123
|
+
fs_fail_rate: { type: "number", minimum: 0, maximum: 1, description: "Filesystem EIO rate (default 0.05)" },
|
|
1124
|
+
timeout_ms: { type: "integer", minimum: 1000, description: "Test timeout (default 120000)" },
|
|
1125
|
+
scope: { type: "string", description: "Comma-separated path prefixes (default src/)" },
|
|
1126
|
+
...RESULT_PROPERTIES,
|
|
1127
|
+
},
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: "blindfold",
|
|
1132
|
+
description: "Obfuscate identifiers in a file or the added diff lines, then ask the model what the code does and whether it contains a concrete vulnerability. Returns a strict JSON verdict and rejects the code when the model cannot reconstruct the logic, finds a defect or stays below min_confidence. Model-backed, read-only and not a mathematical proof.",
|
|
1133
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1134
|
+
inputSchema: {
|
|
1135
|
+
type: "object",
|
|
1136
|
+
additionalProperties: false,
|
|
1137
|
+
properties: {
|
|
1138
|
+
file: { type: "string", description: "Repository-relative source file; omit to use the added diff lines" },
|
|
1139
|
+
diff: { type: "string", description: "Unified diff text; omit to use the project's git diff" },
|
|
1140
|
+
base: { type: "string" },
|
|
1141
|
+
staged: { type: "boolean" },
|
|
1142
|
+
unstaged: { type: "boolean" },
|
|
1143
|
+
include_untracked: { type: "boolean" },
|
|
1144
|
+
context: { type: "string", description: "Extra context for the model; names stay hidden" },
|
|
1145
|
+
min_confidence: { type: "number", minimum: 0, maximum: 1, description: "Minimum confidence (default 0.6)" },
|
|
1146
|
+
dry_run: { type: "boolean", description: "Return the obfuscated code and mapping without a model call" },
|
|
1147
|
+
...RESULT_PROPERTIES,
|
|
1148
|
+
},
|
|
1149
|
+
},
|
|
1150
|
+
},
|
|
1108
1151
|
{
|
|
1109
1152
|
name: "ready",
|
|
1110
1153
|
description: "Agent readiness score 0-100 for the repository: tests, lockfile, git hooks, Slop Index, a fresh receipt, agent instructions, CI, config and security. Uses git and local files only and never calls a model, so it is free and safe in read-only mode. A score below fail_under returns exit code 1 with the full report, not a tool error.",
|
|
@@ -1227,6 +1270,22 @@ const PROMPTS = [
|
|
|
1227
1270
|
{ name: "context", description: "What the function is supposed to do", required: false },
|
|
1228
1271
|
],
|
|
1229
1272
|
},
|
|
1273
|
+
{
|
|
1274
|
+
name: "release-the-butterfly",
|
|
1275
|
+
title: "Run tests under chaos",
|
|
1276
|
+
description: "Run the test command with injected HTTP 500, latency, broken JSON and filesystem faults, then fix the code paths that fail instead of weakening the chaos.",
|
|
1277
|
+
arguments: [
|
|
1278
|
+
{ name: "context", description: "What the change is supposed to do", required: false },
|
|
1279
|
+
],
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
name: "interrogate-the-blindfold",
|
|
1283
|
+
title: "Interrogate obfuscated code",
|
|
1284
|
+
description: "Strip identifiers from the change, make the model explain the logic without names and reject the code if it cannot prove understanding or finds a vulnerability.",
|
|
1285
|
+
arguments: [
|
|
1286
|
+
{ name: "context", description: "What the change is supposed to do", required: false },
|
|
1287
|
+
],
|
|
1288
|
+
},
|
|
1230
1289
|
{
|
|
1231
1290
|
name: "compile-hologram",
|
|
1232
1291
|
title: "Compile a context hologram",
|
|
@@ -1619,6 +1678,15 @@ function integerArg(input, name) {
|
|
|
1619
1678
|
}
|
|
1620
1679
|
return value;
|
|
1621
1680
|
}
|
|
1681
|
+
function numberArg(input, name) {
|
|
1682
|
+
const value = input[name];
|
|
1683
|
+
if (value === undefined)
|
|
1684
|
+
return undefined;
|
|
1685
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
1686
|
+
throw new ToolInputError(`${name} must be a finite number`);
|
|
1687
|
+
}
|
|
1688
|
+
return value;
|
|
1689
|
+
}
|
|
1622
1690
|
/** Accepts zero and negative values, for thresholds such as a Slop Index delta. */
|
|
1623
1691
|
function signedIntegerArg(input, name) {
|
|
1624
1692
|
const value = input[name];
|
|
@@ -2984,6 +3052,70 @@ async function callHyperChamber(input, cwd) {
|
|
|
2984
3052
|
args.push("--memory-limit", `${String(memory)}MB`);
|
|
2985
3053
|
return toToolResult(await runCli(args, cwd));
|
|
2986
3054
|
}
|
|
3055
|
+
async function callBlindfold(input, cwd) {
|
|
3056
|
+
const args = ["blindfold", "--json"];
|
|
3057
|
+
const file = stringArg(input, "file");
|
|
3058
|
+
if (file)
|
|
3059
|
+
args.push("--file", file);
|
|
3060
|
+
const diff = stringArg(input, "diff");
|
|
3061
|
+
if (diff) {
|
|
3062
|
+
const temp = new TempFiles();
|
|
3063
|
+
try {
|
|
3064
|
+
args.push("--diff", temp.write("blindfold.diff", diff));
|
|
3065
|
+
return toToolResult(await runCli(args, cwd));
|
|
3066
|
+
}
|
|
3067
|
+
finally {
|
|
3068
|
+
temp.cleanup();
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
const base = baseArg(input);
|
|
3072
|
+
if (base)
|
|
3073
|
+
args.push("--base", base);
|
|
3074
|
+
if (booleanArg(input, "staged"))
|
|
3075
|
+
args.push("--staged");
|
|
3076
|
+
if (booleanArg(input, "unstaged"))
|
|
3077
|
+
args.push("--unstaged");
|
|
3078
|
+
if (booleanArg(input, "include_untracked"))
|
|
3079
|
+
args.push("--include-untracked");
|
|
3080
|
+
const context = stringArg(input, "context");
|
|
3081
|
+
if (context)
|
|
3082
|
+
args.push("--context", context);
|
|
3083
|
+
const minConfidence = numberArg(input, "min_confidence");
|
|
3084
|
+
if (minConfidence !== undefined)
|
|
3085
|
+
args.push("--min-confidence", String(minConfidence));
|
|
3086
|
+
if (booleanArg(input, "dry_run"))
|
|
3087
|
+
args.push("--dry-run");
|
|
3088
|
+
return toToolResult(await runCli(args, cwd));
|
|
3089
|
+
}
|
|
3090
|
+
async function callButterfly(input, cwd) {
|
|
3091
|
+
const command = stringArg(input, "command", true);
|
|
3092
|
+
const args = ["butterfly", "--command", command, "--json"];
|
|
3093
|
+
const seed = integerArg(input, "seed");
|
|
3094
|
+
if (seed !== undefined)
|
|
3095
|
+
args.push("--seed", String(seed));
|
|
3096
|
+
const failRate = numberArg(input, "fail_rate");
|
|
3097
|
+
if (failRate !== undefined)
|
|
3098
|
+
args.push("--fail-rate", String(failRate));
|
|
3099
|
+
const latencyRate = numberArg(input, "latency_rate");
|
|
3100
|
+
if (latencyRate !== undefined)
|
|
3101
|
+
args.push("--latency-rate", String(latencyRate));
|
|
3102
|
+
const latencyMs = integerArg(input, "latency_ms");
|
|
3103
|
+
if (latencyMs !== undefined)
|
|
3104
|
+
args.push("--latency-ms", String(latencyMs));
|
|
3105
|
+
const brokenJsonRate = numberArg(input, "broken_json_rate");
|
|
3106
|
+
if (brokenJsonRate !== undefined)
|
|
3107
|
+
args.push("--broken-json-rate", String(brokenJsonRate));
|
|
3108
|
+
const fsFailRate = numberArg(input, "fs_fail_rate");
|
|
3109
|
+
if (fsFailRate !== undefined)
|
|
3110
|
+
args.push("--fs-fail-rate", String(fsFailRate));
|
|
3111
|
+
const timeout = integerArg(input, "timeout_ms");
|
|
3112
|
+
if (timeout !== undefined)
|
|
3113
|
+
args.push("--timeout", `${String(timeout)}ms`);
|
|
3114
|
+
const scope = stringArg(input, "scope");
|
|
3115
|
+
if (scope)
|
|
3116
|
+
args.push("--scope", scope);
|
|
3117
|
+
return toToolResult(await runCli(args, cwd));
|
|
3118
|
+
}
|
|
2987
3119
|
async function callSast(input, cwd) {
|
|
2988
3120
|
const temp = new TempFiles();
|
|
2989
3121
|
try {
|
|
@@ -3233,6 +3365,10 @@ async function dispatchTool(name, input, cwd, readOnly) {
|
|
|
3233
3365
|
return callAlienDna(input, cwd);
|
|
3234
3366
|
case "hyper_chamber":
|
|
3235
3367
|
return callHyperChamber(input, cwd);
|
|
3368
|
+
case "butterfly":
|
|
3369
|
+
return callButterfly(input, cwd);
|
|
3370
|
+
case "blindfold":
|
|
3371
|
+
return callBlindfold(input, cwd);
|
|
3236
3372
|
case "sast":
|
|
3237
3373
|
return callSast(input, cwd);
|
|
3238
3374
|
case "authz":
|
|
@@ -3298,6 +3434,12 @@ function summarizeResult(value) {
|
|
|
3298
3434
|
const fingerprint = identity && typeof identity.fingerprint === "string" ? identity.fingerprint : "no identity";
|
|
3299
3435
|
return `oc-pilot: hivemind ${fingerprint}, ${String(value.peers.length)} peer(s)`;
|
|
3300
3436
|
}
|
|
3437
|
+
if (typeof value.status === "string" && Array.isArray(value.mapping) && typeof value.summary === "string") {
|
|
3438
|
+
return `oc-pilot: blindfold ${value.status}, ${String(value.mapping.length)} hidden identifier(s)`;
|
|
3439
|
+
}
|
|
3440
|
+
if (typeof value.status === "string" && typeof value.totalFaults === "number" && typeof value.exitCode === "number") {
|
|
3441
|
+
return `oc-pilot: butterfly ${value.status}, ${String(value.totalFaults)} fault(s), exit ${String(value.exitCode)}`;
|
|
3442
|
+
}
|
|
3301
3443
|
if (typeof value.status === "string" && typeof value.simulatedDays === "number" && typeof value.iterations === "number") {
|
|
3302
3444
|
return `oc-pilot: hyper-chamber ${value.status}, ${String(value.simulatedDays)} day(s), ${String(value.iterations)} iteration(s)`;
|
|
3303
3445
|
}
|
|
@@ -3547,6 +3689,10 @@ function promptBody(name, args) {
|
|
|
3547
3689
|
return `Call the oc-pilot "alien_dna" tool on the current diff. Read the baseline pattern counts and every trigger. If it reports [ALIEN DNA DETECTED], stop and explain which pattern is new, where it appears and why the codebase has 0% prior usage. Do not rewrite the code to hide the pattern, do not add a fake prior usage, and do not edit the baseline. Ask the user for explicit approval before adopting a new architectural pattern; if approved, report the decision and rerun the gate.${suffix}`;
|
|
3548
3690
|
case "stress-the-chamber":
|
|
3549
3691
|
return `Call the oc-pilot "hyper_chamber" tool with file set to the generated JS/ESM file, days=365, budget_ms=2000 and memory_mb=128. Report the exact status (ok, leak, timeout or error), the simulated days, the iteration count and the heap first-to-last. If it reports [MEMORY LEAK DETECTED], stop, quote the crash day and explain which retained allocation grows; do not commit, do not raise the heap limit and do not hide the leak by clearing a cache just to pass. If it is ok, say that this is a heuristic, not a proof of bounded memory. Never run native code through this tool.${suffix}`;
|
|
3692
|
+
case "release-the-butterfly":
|
|
3693
|
+
return `Call the oc-pilot "butterfly" tool with the project test command, seed=42, fail_rate=0.1, latency_rate=0.05, latency_ms=3000, broken_json_rate=0.02 and fs_fail_rate=0.05. Read the injected fault counts and the exit code. If the tests fail, find the code path that did not handle the injected 500, timeout, broken JSON or EIO and add the missing try/catch, timeout or fallback; do not lower the rates, widen the scope to hide the fault or delete the test. If the tests pass, say that this is one deterministic chaos run, not proof that every path is safe. Never claim the tool patches native or arbitrary database drivers reliably.${suffix}`;
|
|
3694
|
+
case "interrogate-the-blindfold":
|
|
3695
|
+
return `Call the oc-pilot "blindfold" tool on the added diff lines, or pass file when the change is one file. Read the obfuscated code and the verdict. If it reports [BLINDFOLD REJECTED], stop: the model could not reconstruct the logic, found a concrete vulnerability or stayed below min_confidence. Quote the explanation and fix the real code path; do not reveal the original names to the model, do not raise min_confidence to force a pass and do not add comments that explain the logic to the model. If it passes, say that the verdict is a blind review, not a mathematical proof of safety. Use dry_run only to inspect the mapping and never send the mapping to the model.${suffix}`;
|
|
3550
3696
|
case "compile-hologram":
|
|
3551
3697
|
return `Call the oc-pilot "pack_hologram" tool with max_tokens=30000 and the current diff. The result is layered: LOD 0 files are complete, LOD 1 bodies are hidden behind markers, LOD 2 lists export names. Never invent a hidden body: if the implementation matters, call "zoom_symbol" with the file and symbol from the Zoom section and read the returned body before reasoning about it. Treat [Hologram: parse bailout] as a warning that the file is complete. Do not dump the whole repository or raise max_tokens just to avoid zooming; the hologram exists to save context. Report which files were LOD 0/1/2, any redacted secrets and every symbol you zoomed.${suffix}`;
|
|
3552
3698
|
case "check-invariants":
|