oc-pilot 0.169.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/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.169.0";
1
+ export const VERSION = "0.171.0";
2
2
  //# sourceMappingURL=version.js.map
@@ -113,6 +113,15 @@ one or more checks could not run and must never be treated as a pass. Use
113
113
  `review` for explanatory model-backed analysis after the gate, or an individual
114
114
  tool when you specifically need its result schema.
115
115
 
116
+ The full-profile `intent` tool keeps `check` and `sphinx` model-backed and adds
117
+ `set` plus read-only `drift`. `set` stores criteria in
118
+ `.oc-pilot/intent.json`; call it with `confirm: true` and run the MCP server with
119
+ `--allow-write`. Pass criteria as `criteria` or `criteria_text`; `set` does not
120
+ accept a caller-selected file path. Replacing a saved snapshot also requires
121
+ `replace: true`. `drift` compares the saved HEAD and tracked-diff fingerprint;
122
+ untracked files are excluded. A changed snapshot means criteria need review,
123
+ not that any criterion passed or failed. The compact profile is unchanged.
124
+
116
125
  Flight tools: `flight_start` (name), `flight_exec` (command array, optional timeout), `flight_note` (text), `flight_checkpoint` (optional label), `flight_status`, `flight_grep` (text, optional id/bundle/limit/kind), `flight_list` (optional limit), `flight_show` (optional id/bundle/kind/last), `flight_verify` (optional id/all), `flight_end`, `flight_replay` (optional to/path), `flight_bisect` (command array, optional timeout), `flight_diff` (optional from/to/bundle), `flight_prove` (claim and command, optional id/timeout), `flight_compare` (two ids or bundles), `flight_html` (optional id/bundle), `flight_summary` (optional id/bundle), `flight_stats`, `flight_prune` (optional keep/older_than_days/dry_run), `flight_delete` (id, optional dry_run), `flight_restore` (label/commit, optional id/force/dry_run), `flight_export` (optional output/key/bundle), `flight_verify_bundle` (file, optional key). They are write tools except status/show/verify/diff/compare/html/stats/verify_bundle and require `--allow-write`.
117
126
 
118
127
  All tools return:
@@ -457,7 +466,7 @@ server. Add it to `~/.dsh/profiles/web/cordis.patch.yml`:
457
466
  serverName: oc_pilot
458
467
  transport: stdio
459
468
  command: npx
460
- args: ['-y', 'oc-pilot@0.169.0', 'mcp', '--cwd', '/absolute/path/to/project']
469
+ args: ['-y', 'oc-pilot@0.171.0', 'mcp', '--cwd', '/absolute/path/to/project']
461
470
  toolCallTimeoutMs: 300000
462
471
  ```
463
472
 
@@ -553,7 +562,7 @@ The repository also ships a composite action, so the whole gate is:
553
562
  - uses: actions/checkout@v4
554
563
  with:
555
564
  fetch-depth: 0
556
- - uses: MyNameIsNikki/oc-pilot@v0.169.0
565
+ - uses: MyNameIsNikki/oc-pilot@v0.171.0
557
566
  with:
558
567
  command: scan
559
568
  args: --base origin/${{ github.base_ref }} --fail-on-secrets
@@ -650,7 +659,7 @@ The repository ships `.pre-commit-hooks.yaml`, so the standard
650
659
  ```yaml
651
660
  repos:
652
661
  - repo: https://github.com/MyNameIsNikki/oc-pilot
653
- rev: v0.169.0
662
+ rev: v0.171.0
654
663
  hooks:
655
664
  - id: oc-pilot-secrets # oc-pilot scan --staged
656
665
  - id: oc-pilot-review # oc-pilot review --staged --fail-on critical --fail-on-secrets
package/docs/reference.md CHANGED
@@ -979,7 +979,7 @@ Tools: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`
979
979
 
980
980
  `mitosis` makes a large diff reviewable: `mitosis plan --strategy dir|file|type` partitions the change into an ordered commit sequence, and `mitosis apply --confirm` replays it in a shadow worktree, commits each group, optionally runs the test command after every commit, and exposes the result as a branch plus patch files in `.oc-pilot/mitosis`. Config changes come first, then source, tests and docs. If a commit fails tests, the branch stops there for inspection; a skipped test run is reported as skipped, not as a pass.
981
981
 
982
- `intent` checks the change against the acceptance criteria: `intent check --criteria docs/acceptance.md` returns `met`, `partial`, `unmet` or `unverifiable` per criterion with evidence from the diff, and exits 1 on `unmet`. `intent sphinx --request "..."` runs before code: it lists missing questions, hidden assumptions and testable criteria, and prints `[REQUIREMENTS AMBIGUOUS]` when the request leaves decisions open. Both modes are model-backed; `met` means the diff supports the criterion, not that the feature is correct in production.
982
+ `intent set --criteria docs/acceptance.md` saves up to 30 acceptance criteria and the current committed HEAD plus tracked diff fingerprint in `.oc-pilot/intent.json`; untracked files are excluded, and replacing the snapshot requires `--replace`. `intent drift` compares that snapshot with the current HEAD and tracked diff and flags all criteria for re-review if either changed. It does not decide whether any criterion is satisfied; use `intent check --criteria docs/acceptance.md` for a model-backed, evidence-bearing assessment (`met`, `partial`, `unmet` or `unverifiable`). `intent sphinx --request "..."` runs before code to surface questions, assumptions and testable criteria. A `met` result means the diff supports the criterion, not that the feature is correct in production.
983
983
 
984
984
  `scalpel` fixes a failure with the smallest change: give it a failing log (`--log`) or a command that reproduces the failure, and it asks the model for a minimal patch, applies the current diff plus the patch in a shadow worktree, runs the tests, and reports the blast radius — the symbols and references the patch touches. `[SCALPEL FIXED]` means the tests pass in the shadow; `--apply` writes the proven patch to the worktree. A rejected patch is never applied.
985
985
 
@@ -1042,7 +1042,7 @@ Start the server manually with an explicit project directory:
1042
1042
  ```bash
1043
1043
  oc-pilot-mcp --cwd /absolute/path/to/project
1044
1044
  # pinned for reproducibility:
1045
- npx -y oc-pilot@0.169.0 mcp --cwd /absolute/path/to/project
1045
+ npx -y oc-pilot@0.171.0 mcp --cwd /absolute/path/to/project
1046
1046
  ```
1047
1047
 
1048
1048
  The `diff` and `log` tool arguments are text, not file paths. `paths` and `files` are project-relative and cannot escape the project directory. `context` is literal text, not an `@file` reference. `base` must be a git ref. `lang`, `fail_on`, `repo_context`, and `no_secret_scan` are available where the corresponding CLI command supports them.
@@ -1217,7 +1217,7 @@ jobs:
1217
1217
  - uses: actions/checkout@v4
1218
1218
  with:
1219
1219
  fetch-depth: 0
1220
- - uses: MyNameIsNikki/oc-pilot@v0.169.0
1220
+ - uses: MyNameIsNikki/oc-pilot@v0.171.0
1221
1221
  with:
1222
1222
  command: scan
1223
1223
  args: --base origin/${{ github.base_ref }} --fail-on-secrets
@@ -1240,7 +1240,7 @@ jobs:
1240
1240
  - uses: actions/setup-node@v4
1241
1241
  with:
1242
1242
  node-version: 22
1243
- - run: npm install -g oc-pilot@0.169.0
1243
+ - run: npm install -g oc-pilot@0.171.0
1244
1244
  - run: oc-pilot scan --base origin/${{ github.base_ref }}
1245
1245
  - run: oc-pilot review --base origin/${{ github.base_ref }} --fail-on warning --fail-on-secrets --github
1246
1246
  env:
@@ -942,7 +942,7 @@ ZCode импортирует серверы из Claude Code, Codex, OpenCode и
942
942
 
943
943
  `mitosis` делает большой diff обозримым: `mitosis plan --strategy dir|file|type` разбивает изменение на упорядоченную последовательность коммитов, а `mitosis apply --confirm` проигрывает её в shadow worktree, коммитит каждую группу, по желанию запускает тестовую команду после каждого коммита и оставляет результат веткой и патчами в `.oc-pilot/mitosis`. Сначала идут конфиги, затем исходники, тесты и документация. Если коммит падает на тестах, ветка останавливается на нём для разбора; пропущенный прогон тестов считается skipped, а не pass.
944
944
 
945
- `intent` проверяет изменение против критериев приёмки: `intent check --criteria docs/acceptance.md` возвращает `met`, `partial`, `unmet` или `unverifiable` по каждому критерию с доказательством из diff и выходит с кодом 1 при `unmet`. `intent sphinx --request "..."` работает до кода: показывает недостающие вопросы, скрытые допущения и тестируемые критерии, а при открытых решениях печатает `[REQUIREMENTS AMBIGUOUS]`. Оба режима используют модель; `met` означает, что diff поддерживает критерий, а не что фича правильна в продакшене.
945
+ `intent set --criteria docs/acceptance.md` сохраняет до 30 критериев, текущий commit HEAD и fingerprint отслеживаемого diff в `.oc-pilot/intent.json`; неотслеживаемые файлы исключены, для замены нужен `--replace`. `intent drift` сравнивает сохранённый snapshot с текущими HEAD и отслеживаемым diff и помечает критерии для повторной проверки, если что-либо изменилось. Эта команда не решает, выполнен ли критерий; для оценки с доказательствами используйте модельную `intent check --criteria docs/acceptance.md` (`met`, `partial`, `unmet`, `unverifiable`). `intent sphinx --request "..."` выявляет вопросы, допущения и тестируемые критерии до начала работы. `met` означает, что diff поддерживает критерий, а не что фича правильна в продакшене.
946
946
 
947
947
  `scalpel` чинит падение минимальным изменением: передайте лог (`--log`) или команду, которая воспроизводит сбой, и он просит модель написать минимальный патч, применяет текущий diff и патч в shadow worktree, запускает тесты и показывает blast radius — символы и ссылки, которые задевает патч. `[SCALPEL FIXED]` означает, что тесты в shadow проходят; `--apply` записывает доказанный патч в рабочее дерево. Отклонённый патч никогда не применяется.
948
948
 
@@ -993,7 +993,7 @@ ZCode импортирует серверы из Claude Code, Codex, OpenCode и
993
993
  ```bash
994
994
  oc-pilot-mcp --cwd "C:\path\to\project"
995
995
  # версия зафиксирована для воспроизводимости:
996
- npx -y oc-pilot@0.169.0 mcp --cwd "C:\path\to\project"
996
+ npx -y oc-pilot@0.171.0 mcp --cwd "C:\path\to\project"
997
997
  ```
998
998
 
999
999
  Пример для Claude Code (`.mcp.json`):
@@ -1065,7 +1065,7 @@ jobs:
1065
1065
  - uses: actions/checkout@v4
1066
1066
  with:
1067
1067
  fetch-depth: 0
1068
- - uses: MyNameIsNikki/oc-pilot@v0.169.0
1068
+ - uses: MyNameIsNikki/oc-pilot@v0.171.0
1069
1069
  with:
1070
1070
  command: scan
1071
1071
  args: --base origin/${{ github.base_ref }} --fail-on-secrets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-pilot",
3
- "version": "0.169.0",
3
+ "version": "0.171.0",
4
4
  "description": "Local AI code review, tested fixes, test-failure analysis and secret scanning for agent CLIs",
5
5
  "type": "module",
6
6
  "repository": {
@@ -12,7 +12,7 @@ diff reviewed by a second model, blocking findings fixed, exit code checked.
12
12
  ## Setup
13
13
 
14
14
  ```bash
15
- npm i -g oc-pilot@0.169.0
15
+ npm i -g oc-pilot@0.171.0
16
16
  oc-pilot --version # requires 0.11+
17
17
  ```
18
18
 
@@ -12,7 +12,7 @@ derived from the actual diff, in the repository's own style.
12
12
  ## Setup
13
13
 
14
14
  ```bash
15
- npm i -g oc-pilot@0.169.0
15
+ npm i -g oc-pilot@0.171.0
16
16
  ```
17
17
 
18
18
  ## Workflow
@@ -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 oc-pilot@0.169.0
16
+ npm i -g oc-pilot@0.171.0
17
17
  oc-pilot init --preset security,devops
18
18
  ```
19
19
 
@@ -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 oc-pilot@0.169.0
15
+ npm i -g oc-pilot@0.171.0
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 oc-pilot@0.169.0
16
+ npm i -g oc-pilot@0.171.0
17
17
  ```
18
18
 
19
19
  ## Workflow