oc-pilot 0.94.0 → 0.96.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +10 -6
  3. package/README.ru.md +9 -5
  4. package/dist/cli.js +9 -1
  5. package/dist/cli.js.map +1 -1
  6. package/dist/cli.test.js +29 -1
  7. package/dist/cli.test.js.map +1 -1
  8. package/dist/commands/injection.js +77 -0
  9. package/dist/commands/injection.js.map +1 -0
  10. package/dist/commands/preflight.js +4 -0
  11. package/dist/commands/preflight.js.map +1 -1
  12. package/dist/commands/skeptic.js +123 -0
  13. package/dist/commands/skeptic.js.map +1 -0
  14. package/dist/core/command.js +9 -6
  15. package/dist/core/command.js.map +1 -1
  16. package/dist/core/injection-diff.js +54 -0
  17. package/dist/core/injection-diff.js.map +1 -0
  18. package/dist/core/injection-scan.test.js +100 -0
  19. package/dist/core/injection-scan.test.js.map +1 -0
  20. package/dist/core/injection.js +353 -41
  21. package/dist/core/injection.js.map +1 -1
  22. package/dist/core/preflight-run.js +2 -0
  23. package/dist/core/preflight-run.js.map +1 -1
  24. package/dist/core/preflight.js +15 -0
  25. package/dist/core/preflight.js.map +1 -1
  26. package/dist/core/preflight.test.js +31 -5
  27. package/dist/core/preflight.test.js.map +1 -1
  28. package/dist/core/skeptic.js +211 -0
  29. package/dist/core/skeptic.js.map +1 -0
  30. package/dist/core/skeptic.test.js +106 -0
  31. package/dist/core/skeptic.test.js.map +1 -0
  32. package/dist/mcp-prompts.test.js +2 -0
  33. package/dist/mcp-prompts.test.js.map +1 -1
  34. package/dist/mcp.js +120 -0
  35. package/dist/mcp.js.map +1 -1
  36. package/dist/mcp.test.js +9 -0
  37. package/dist/mcp.test.js.map +1 -1
  38. package/dist/skills.test.js +2 -0
  39. package/dist/skills.test.js.map +1 -1
  40. package/dist/version.js +1 -1
  41. package/docs/integrations.md +5 -5
  42. package/package.json +1 -1
  43. package/skills/agent-self-review/SKILL.md +1 -1
  44. package/skills/commit-discipline/SKILL.md +1 -1
  45. package/skills/oc-pilot/SKILL.md +4 -0
  46. package/skills/secure-diff-gate/SKILL.md +2 -2
  47. package/skills/stack-review-packs/SKILL.md +1 -1
  48. package/skills/test-failure-triage/SKILL.md +1 -1
@@ -42,7 +42,9 @@ If the `oc-pilot` MCP server is configured, call its tools directly:
42
42
  - `hyper-chamber` - age one JS/ESM file in node:vm with fake time and forced GC, sample the heap through node:v8 and fail with `[MEMORY LEAK DETECTED]` on sustained growth; the file must export `run`, `tick`, `main` or `default`.
43
43
  - `butterfly` - run the test command under deterministic chaos: fetch 500s, latency and broken JSON, fs EIO under `--scope`; report injected faults and whether the suite survived.
44
44
  - `blindfold` - obfuscate identifiers, send only the stripped code to the model and fail with `[BLINDFOLD REJECTED]` when the logic is unclear, a vulnerability is found or confidence is below `--min-confidence`; `--dry-run` prints the mapping without a model call.
45
+ - `skeptic` - ask the model for a minimal executable test, run it in a shadow worktree on both the diff and clean HEAD, and report `clean`, `bug`, `unfalsifiable` or `error`; a passing test never proves the absence of bugs.
45
46
  - `apoptosis` - scan functions marked `/* @lifespan: 30d */`; report `[Senescent]` when the marker is older than the lifespan and there are no references, and only with `apply --confirm` comment them out in a shadow worktree, run tests and land the diff if green.
47
+ - `injection` - scan README, docs, comments, HTML and source for prompt-injection, role hijacks, exfiltration URLs, hidden unicode and base64 instructions; `--fail-on` controls the gate and `--fix` strips invisible characters.
46
48
  - `contract_drift` - removed or newly required fields and type changes in TypeScript, Zod, Prisma, Pydantic and JSON Schema, plus untouched consumers of a removed field.
47
49
  - `anti_regression` - lines the diff re-adds after a human explicitly deleted them in git history, with the deleting commit cited.
48
50
  - `boundaries` - added imports checked against `.oc-pilot/architecture.json` layer rules, with file, line and rule reason.
@@ -102,7 +104,9 @@ oc-pilot alien-dna --staged
102
104
  oc-pilot hyper-chamber run scripts/task.mjs
103
105
  oc-pilot butterfly --command "npm test"
104
106
  oc-pilot blindfold --file src/checkout.ts
107
+ oc-pilot skeptic --staged
105
108
  oc-pilot apoptosis scan --fail-on-senescent
109
+ oc-pilot injection --fail-on medium
106
110
  oc-pilot contract-drift --staged --fail-on-drift high
107
111
  oc-pilot anti-regression --staged --fail-on-regression
108
112
  oc-pilot boundaries --staged --fail-on-violation
@@ -13,7 +13,7 @@ skill checks all four before the change leaves the machine.
13
13
  ## Setup
14
14
 
15
15
  ```bash
16
- npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.94.0.tar.gz
16
+ npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.96.0.tar.gz
17
17
  oc-pilot init --preset security,devops
18
18
  ```
19
19
 
@@ -53,7 +53,7 @@ example `security,node` or `security,python,devops`.
53
53
  - `DEPENDENCY_CHANGES` — new or changed packages with typosquat matches,
54
54
  unpinned specs, `git+`/URL references, and manifest/lockfile drift.
55
55
  - `PROMPT_INJECTION_RISKS` — added lines that read like instructions to an
56
- AI ("ignore previous instructions", role hijacks, long base64 blobs,
56
+ AI ("ignore previous instructions", role hijacks, long base64 blobs, <!-- oc-pilot:ignore-injection -->
57
57
  invisible Unicode).
58
58
  - `TEST_COVERAGE_HINT` — logic changed without a matching test change.
59
59
 
@@ -12,7 +12,7 @@ router will not catch it". Rules packs are how the second reviewer happens.
12
12
  ## Setup
13
13
 
14
14
  ```bash
15
- npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.94.0.tar.gz
15
+ npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.96.0.tar.gz
16
16
  ```
17
17
 
18
18
  ## Available packs
@@ -13,7 +13,7 @@ before any patch, and a verification step after it.
13
13
  ## Setup
14
14
 
15
15
  ```bash
16
- npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.94.0.tar.gz
16
+ npm i -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.96.0.tar.gz
17
17
  ```
18
18
 
19
19
  ## Workflow