oc-pilot 0.133.0 → 0.134.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.134.0
4
+
5
+ - `flight note <текст>` добавляет заметку в хеш-цепочку активного полёта: она видна в `show`, `summary`, HTML и экспорте.
6
+ - Новый MCP-инструмент `flight_note` (write), документация; 897 тестов; версия 0.134.0.
7
+
3
8
  ## 0.133.0
4
9
 
5
10
  - `flight export --bundle <файл> --key <файл>` переподписывает готовый bundle (например, после ротации ключа) без локального журнала; повреждённый bundle отвергается.
package/README.md CHANGED
@@ -945,7 +945,7 @@ Environment variables: `OC_PILOT_ENGINE`, `OC_PILOT_BASE_URL`, `OC_PILOT_API_KEY
945
945
 
946
946
  Besides tools, the server exposes read-only MCP resources: `oc-pilot://config` (resolved configuration), `oc-pilot://rules` (project rules with secrets redacted), `oc-pilot://prompt/en` and `oc-pilot://prompt/ru` (the built-in system prompts), and `oc-pilot://version`. `oc-pilot://slop` returns the Slop Index as JSON without calling a model. Resource templates cover live data: `oc-pilot://diff/{mode}` (staged/unstaged/head diff, secrets redacted), `oc-pilot://scan/{mode}` (offline secret scan as JSON) and `oc-pilot://file/{+path}` (any project file up to 2 MB with detected secrets redacted). Hosts can list them with `resources/list` and `resources/templates/list`.
947
947
 
948
- Tools: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`, `scan`, `commit`, `stats`, `slop`, `mutate`, `fuzz`, `bankruptcy`, `query_ast`, `sandbox`, `hivemind_status`, `flaky`, `impact`, `deps`, `coverage`, `reviewers`, `test_guard`, `env_sync`, `mock_leak`, `ecosystem_verify`, `pack`, `pack_hologram`, `zoom_symbol`, `contract_drift`, `anti_regression`, `boundaries`, `test_plan`, `compliance_verify`, `brag`, `battle`, `cleanup`, `arch_diff`, `roast`, `cinema`, `bounty`, `autopsy`, `echo`, `sast`, `authz`, `preflight`, `honeypot`, `alien_dna`, `hyper_chamber`, `butterfly`, `blindfold`, `antibody`, `polygraph`, `passport`, `oracle`, `vaccine`, `mitosis`, `intent`, `scalpel`, `mayday`, `clairvoyant`, `hemorrhage`, `cuckoo`, `chronos`, `flight_start`, `flight_exec`, `flight_checkpoint`, `flight_status`, `flight_list`, `flight_show`, `flight_verify`, `flight_end`, `flight_replay`, `flight_bisect`, `flight_diff`, `flight_compare`, `flight_html`, `flight_summary`, `flight_stats`, `flight_prune`, `flight_restore`, `flight_export`, `flight_verify_bundle`, `beacon`, `quarantine`, `mirage`, `warden`, `tribunal`, `skeptic`, `apoptosis`, `scan_injection`, `ready`, `receipt_verify`. `scan` accepts `all: true` to sweep the whole repository instead of the diff. `slop` runs the offline Slop Index and accepts `since`, `since_days`, `limit`, `exclude` and `no_blame`. `mutate` runs mutation testing on the changed code, accepts `command`, `max_mutants` and `min_score`, and returns the score plus every surviving mutant; a score below `min_score` is a normal result with exit code 1. `flaky` runs the test command several times and compares per-test results, accepting `runs`, `command`, `fail_on_flaky`, `shuffle` and `seed`; it never edits source files itself but does run the project's tests. `impact` lists the declarations the diff changed or removed and every untouched file that still mentions them, accepting the same source flags; the search is textual, so comments and strings can match. `deps` audits declared, imported and locked dependencies, explains a chain with `why`, adds OSV vulnerabilities and licenses with `audit`, and can rewrite `package.json` with `fix` or emit a CycloneDX SBOM; `fix` and `sbom` write files. `coverage` compares changed lines with a local lcov, Istanbul, Cobertura or Go coverage report and returns uncovered lines, missing files and a gate on `fail_under` or `max_uncovered`. `reviewers` ranks the authors who touched the changed files, lists CODEOWNERS owners and accepts `limit`, `depth` and `exclude`; it uses git history only. `test_guard` runs the offline anti-cheating check on the diff: skipped, focused or deleted tests, removed or commented assertions, raised timeouts, strict matchers replaced by existence checks, `@ts-ignore` and empty catch blocks; with `fail_on_weakening` a finding returns exit code 1. `env_sync` compares the environment variables added by the diff (`process.env`, `import.meta.env`, `Deno.env`, `Bun.env`) with the local `.env` files and `.env.example`/`.sample`/`.template`: missing definitions fail with `fail_on_missing`, and defined but undocumented variables warn. `mock_leak` scans added production code for forgotten stubs and hardcode: local paths, test tokens, `if (true)`/`if (false)`, mock/fake/stub identifiers, mock comments and localhost URLs; `fail_on_leak` returns exit code 1 at the chosen severity. `ecosystem_verify` checks that named imports from the changed files exist in the installed package entry or its `.d.ts`, and flags packages that are neither installed nor declared; with `online` it also checks the age and weekly downloads of newly added npm packages, and `fail_on_issue` returns exit code 1 at the chosen severity. `pack` builds a compact context bundle for a task: project rules, changed-file signatures, related references and an optional test log, capped by `budget` characters; it never edits files. `contract_drift` compares changed TypeScript interfaces, Zod objects, Prisma models, Pydantic models and JSON Schema with the previous version, flags removed or newly required fields and type changes, and reports untouched consumers that still use a removed field; `fail_on_drift` returns exit code 1 at the chosen severity. `anti_regression` compares the lines added by the diff with lines a human explicitly deleted in git history, cites the deleting commit and flags re-added code or imports; `fail_on_regression` returns exit code 1. `boundaries` checks added imports against `.oc-pilot/architecture.json` layer rules, reports the file, line, import and rule reason, and `fail_on_violation` returns exit code 1 when a layer boundary is crossed. `test_plan` selects the test files affected by the diff from a static import graph: changed tests, direct and transitive importers, naming matches and symbol references, with uncovered changed files reported and an optional `fail_on_uncovered` gate. `compliance_verify` checks a signed audit manifest for the current commit: SHA-256, commit, previous-manifest hash chain and optional Ed25519 signature; a missing, edited or broken manifest is a normal result with exit code 1. `brag` builds a self-contained HTML or SVG session report from stats, git history, the last review and the receipt; it uses inline assets only, never calls a model or the network, and `no_paths` hides file locations. `test_gen` asks the model for tests that cover the changed code; with `apply` it writes test files, runs the suite and reverts failing tests unless `keep_failing`, while `coverage` narrows generation to uncovered changed lines and `from_slop` picks untested files. `cleanup` builds an offline cleanup plan from dependency issues, the Slop Index, environment variables and weakened tests; `apply` performs only safe dependency fixes and needs `--allow-write`. `arch_diff` renders a Mermaid diagram of the internal imports the diff added and removed: green edges are new dependencies, red dashed edges are removed ones, and `fail_on_removed` returns exit code 1 when a dependency disappears. `roast` turns the diff into a technically grounded comedy roast in a chosen persona (linus, ramsay, corporate or default), cites file:line for every joke and ends with one real fix; it is model-backed and never edits files. `cinema` builds a terminal timelapse of the session from commits, runs, API calls, the last review and the receipt: a self-contained HTML player or an asciinema v2 cast, with no network, external assets or model call; `no_paths` hides subjects and finding locations. `bounty` scores every file from SAST findings, duplicated blocks, dead exports, aged TODOs and churn without tests, then renders an ASCII WANTED poster with the worst file and its reasons; deterministic and offline. `autopsy` performs a post-mortem on a commit: diff stats, SAST on added lines, weakened tests, mock leaks, ranked suspects and a before/after timeline; `fail_on_risk` returns exit 1 for a dangerous verdict. `echo` builds self-contained SVG badges from local stats, git history and the receipt (commits, agent runs, API calls, cache hits, findings and test status); `submit` sends only the nickname, window and aggregate numbers to an explicit `endpoint`, never paths, diffs or secrets, and there is no network by default. `sast` runs the deterministic static analysis over the change or over explicit `paths` and accepts `fail_on_issue`, `ignore` and `no_suppressions`; a finding at or above the gate is a normal result with exit code 1. `authz` checks route authorization over the change or explicit `paths` and accepts `fail_on_issue`, `ignore`, `public` and `no_suppressions`; a route finding at or above the gate is also a normal result with exit code 1. `preflight` returns one offline verdict over the planned change and accepts the same source flags (`diff`, `base`, `staged`, `unstaged`, `include_untracked`), plus `since`, `max_delta`, `fail_on_issue`, `no_secret_scan`, `no_sast`, `no_authz`, `no_deps`, `no_tests` and `no_slop`; a failed check is a normal result with `status: "fail"` and exit code 1, so the agent sees the failing check instead of a tool error. `ready` returns the offline agent readiness score 0-100 and accepts `fail_under`; a score below the threshold is also a normal result with exit code 1. `receipt_verify` recomputes the SHA-256 hash of the receipt, compares the recorded commit with HEAD and reports `ok`, `hashOk` and `stale`; a missing, edited or stale receipt is a normal result with `ok: false` and exit code 1, so an agent can see why the proof failed. The `fix` tool accepts `from_sast` and `from_authz` to repair security findings and rescan; the result then carries `sast` or `authz` with `{before, after, remaining}`. The server is read-only by default; start it with `--allow-write` to permit `fix` with `apply: true`, `commit` with `apply: true`, `test_fix` with a command, `stats` with `clear: true` and `mutate`, which rewrites source files temporarily. `test_gen` with `apply: true` also needs `--allow-write`. The `fix` result carries the unified `patch`, its `files` and `patchStats` (`additions`, `deletions`, `hunks`, `bytes`); patches over 200 000 characters are cut and marked with `patchTruncated` and `patchBytes`, so a host can show or apply the change without parsing the diff again.
948
+ Tools: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`, `scan`, `commit`, `stats`, `slop`, `mutate`, `fuzz`, `bankruptcy`, `query_ast`, `sandbox`, `hivemind_status`, `flaky`, `impact`, `deps`, `coverage`, `reviewers`, `test_guard`, `env_sync`, `mock_leak`, `ecosystem_verify`, `pack`, `pack_hologram`, `zoom_symbol`, `contract_drift`, `anti_regression`, `boundaries`, `test_plan`, `compliance_verify`, `brag`, `battle`, `cleanup`, `arch_diff`, `roast`, `cinema`, `bounty`, `autopsy`, `echo`, `sast`, `authz`, `preflight`, `honeypot`, `alien_dna`, `hyper_chamber`, `butterfly`, `blindfold`, `antibody`, `polygraph`, `passport`, `oracle`, `vaccine`, `mitosis`, `intent`, `scalpel`, `mayday`, `clairvoyant`, `hemorrhage`, `cuckoo`, `chronos`, `flight_start`, `flight_exec`, `flight_note`, `flight_checkpoint`, `flight_status`, `flight_list`, `flight_show`, `flight_verify`, `flight_end`, `flight_replay`, `flight_bisect`, `flight_diff`, `flight_compare`, `flight_html`, `flight_summary`, `flight_stats`, `flight_prune`, `flight_restore`, `flight_export`, `flight_verify_bundle`, `beacon`, `quarantine`, `mirage`, `warden`, `tribunal`, `skeptic`, `apoptosis`, `scan_injection`, `ready`, `receipt_verify`. `scan` accepts `all: true` to sweep the whole repository instead of the diff. `slop` runs the offline Slop Index and accepts `since`, `since_days`, `limit`, `exclude` and `no_blame`. `mutate` runs mutation testing on the changed code, accepts `command`, `max_mutants` and `min_score`, and returns the score plus every surviving mutant; a score below `min_score` is a normal result with exit code 1. `flaky` runs the test command several times and compares per-test results, accepting `runs`, `command`, `fail_on_flaky`, `shuffle` and `seed`; it never edits source files itself but does run the project's tests. `impact` lists the declarations the diff changed or removed and every untouched file that still mentions them, accepting the same source flags; the search is textual, so comments and strings can match. `deps` audits declared, imported and locked dependencies, explains a chain with `why`, adds OSV vulnerabilities and licenses with `audit`, and can rewrite `package.json` with `fix` or emit a CycloneDX SBOM; `fix` and `sbom` write files. `coverage` compares changed lines with a local lcov, Istanbul, Cobertura or Go coverage report and returns uncovered lines, missing files and a gate on `fail_under` or `max_uncovered`. `reviewers` ranks the authors who touched the changed files, lists CODEOWNERS owners and accepts `limit`, `depth` and `exclude`; it uses git history only. `test_guard` runs the offline anti-cheating check on the diff: skipped, focused or deleted tests, removed or commented assertions, raised timeouts, strict matchers replaced by existence checks, `@ts-ignore` and empty catch blocks; with `fail_on_weakening` a finding returns exit code 1. `env_sync` compares the environment variables added by the diff (`process.env`, `import.meta.env`, `Deno.env`, `Bun.env`) with the local `.env` files and `.env.example`/`.sample`/`.template`: missing definitions fail with `fail_on_missing`, and defined but undocumented variables warn. `mock_leak` scans added production code for forgotten stubs and hardcode: local paths, test tokens, `if (true)`/`if (false)`, mock/fake/stub identifiers, mock comments and localhost URLs; `fail_on_leak` returns exit code 1 at the chosen severity. `ecosystem_verify` checks that named imports from the changed files exist in the installed package entry or its `.d.ts`, and flags packages that are neither installed nor declared; with `online` it also checks the age and weekly downloads of newly added npm packages, and `fail_on_issue` returns exit code 1 at the chosen severity. `pack` builds a compact context bundle for a task: project rules, changed-file signatures, related references and an optional test log, capped by `budget` characters; it never edits files. `contract_drift` compares changed TypeScript interfaces, Zod objects, Prisma models, Pydantic models and JSON Schema with the previous version, flags removed or newly required fields and type changes, and reports untouched consumers that still use a removed field; `fail_on_drift` returns exit code 1 at the chosen severity. `anti_regression` compares the lines added by the diff with lines a human explicitly deleted in git history, cites the deleting commit and flags re-added code or imports; `fail_on_regression` returns exit code 1. `boundaries` checks added imports against `.oc-pilot/architecture.json` layer rules, reports the file, line, import and rule reason, and `fail_on_violation` returns exit code 1 when a layer boundary is crossed. `test_plan` selects the test files affected by the diff from a static import graph: changed tests, direct and transitive importers, naming matches and symbol references, with uncovered changed files reported and an optional `fail_on_uncovered` gate. `compliance_verify` checks a signed audit manifest for the current commit: SHA-256, commit, previous-manifest hash chain and optional Ed25519 signature; a missing, edited or broken manifest is a normal result with exit code 1. `brag` builds a self-contained HTML or SVG session report from stats, git history, the last review and the receipt; it uses inline assets only, never calls a model or the network, and `no_paths` hides file locations. `test_gen` asks the model for tests that cover the changed code; with `apply` it writes test files, runs the suite and reverts failing tests unless `keep_failing`, while `coverage` narrows generation to uncovered changed lines and `from_slop` picks untested files. `cleanup` builds an offline cleanup plan from dependency issues, the Slop Index, environment variables and weakened tests; `apply` performs only safe dependency fixes and needs `--allow-write`. `arch_diff` renders a Mermaid diagram of the internal imports the diff added and removed: green edges are new dependencies, red dashed edges are removed ones, and `fail_on_removed` returns exit code 1 when a dependency disappears. `roast` turns the diff into a technically grounded comedy roast in a chosen persona (linus, ramsay, corporate or default), cites file:line for every joke and ends with one real fix; it is model-backed and never edits files. `cinema` builds a terminal timelapse of the session from commits, runs, API calls, the last review and the receipt: a self-contained HTML player or an asciinema v2 cast, with no network, external assets or model call; `no_paths` hides subjects and finding locations. `bounty` scores every file from SAST findings, duplicated blocks, dead exports, aged TODOs and churn without tests, then renders an ASCII WANTED poster with the worst file and its reasons; deterministic and offline. `autopsy` performs a post-mortem on a commit: diff stats, SAST on added lines, weakened tests, mock leaks, ranked suspects and a before/after timeline; `fail_on_risk` returns exit 1 for a dangerous verdict. `echo` builds self-contained SVG badges from local stats, git history and the receipt (commits, agent runs, API calls, cache hits, findings and test status); `submit` sends only the nickname, window and aggregate numbers to an explicit `endpoint`, never paths, diffs or secrets, and there is no network by default. `sast` runs the deterministic static analysis over the change or over explicit `paths` and accepts `fail_on_issue`, `ignore` and `no_suppressions`; a finding at or above the gate is a normal result with exit code 1. `authz` checks route authorization over the change or explicit `paths` and accepts `fail_on_issue`, `ignore`, `public` and `no_suppressions`; a route finding at or above the gate is also a normal result with exit code 1. `preflight` returns one offline verdict over the planned change and accepts the same source flags (`diff`, `base`, `staged`, `unstaged`, `include_untracked`), plus `since`, `max_delta`, `fail_on_issue`, `no_secret_scan`, `no_sast`, `no_authz`, `no_deps`, `no_tests` and `no_slop`; a failed check is a normal result with `status: "fail"` and exit code 1, so the agent sees the failing check instead of a tool error. `ready` returns the offline agent readiness score 0-100 and accepts `fail_under`; a score below the threshold is also a normal result with exit code 1. `receipt_verify` recomputes the SHA-256 hash of the receipt, compares the recorded commit with HEAD and reports `ok`, `hashOk` and `stale`; a missing, edited or stale receipt is a normal result with `ok: false` and exit code 1, so an agent can see why the proof failed. The `fix` tool accepts `from_sast` and `from_authz` to repair security findings and rescan; the result then carries `sast` or `authz` with `{before, after, remaining}`. The server is read-only by default; start it with `--allow-write` to permit `fix` with `apply: true`, `commit` with `apply: true`, `test_fix` with a command, `stats` with `clear: true` and `mutate`, which rewrites source files temporarily. `test_gen` with `apply: true` also needs `--allow-write`. The `fix` result carries the unified `patch`, its `files` and `patchStats` (`additions`, `deletions`, `hunks`, `bytes`); patches over 200 000 characters are cut and marked with `patchTruncated` and `patchBytes`, so a host can show or apply the change without parsing the diff again.
949
949
 
950
950
  `invariants` checks the diff against `.oc-pilot/invariants.md`
951
951
 
@@ -988,7 +988,7 @@ Tools: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`
988
988
 
989
989
  `chronos` reads a file's chronicle: commits, churn, fix/revert/incident/security markers, antibodies and vaccines, then scores it as a hotspot. `[HOTSPOT]` means the file has a history of fixes, rollbacks or incidents; inspect it before changing it and add a vaccine for the next fix. A low score is not proof that the file is safe.
990
990
 
991
- `flight` records an agent session as a hash-chained black box: `flight start --name "fix auth"` writes `.git/oc-pilot/flights/<id>/events.jsonl`, `flight exec -- <command>` records each command and its output tail, and `flight checkpoint --label after-fix` creates a dangling git commit of the full worktree without moving HEAD. `flight status`, `list` and `show` inspect the journal; `flight show [<id>]` defaults to the active or latest session and reads `--bundle <file>` without the journal; `flight verify [<id>]` recomputes the chain, defaulting to the active or latest session, and prints `[FLIGHT TAMPERED]` on any edit; `flight verify --all` audits every session; `flight end` closes the session. The log is local, NDJSON and zero-dependency. `flight replay --to <label|commit>` materializes a checkpoint as a detached worktree, `flight bisect -- <command>` runs a command at each checkpoint and stops at the first failure, `flight diff` compares checkpoints, and `flight export` writes a redacted bundle with a sha256 digest. `flight compare <id-a> <id-b>` compares two sessions by event count, duration, command sets, exit codes and final tree. `flight html` renders a self-contained, redacted HTML timeline with checkpoints and command output, and `--bundle <file>` renders one from an exported bundle without the journal. `flight summary [--id <id>]` renders a Markdown session summary with checkpoints and commands; `--bundle <file>` builds it from an exported bundle. `flight stats` aggregates sessions, commands, failures, checkpoints and duration across the journal. `flight prune` removes old ended sessions while keeping the active flight and the newest N sessions. `flight export --key <file>` signs the bundle digest with HMAC-SHA256, `--bundle <file>` re-signs an existing bundle, and `flight verify-bundle <file> --key <file>` checks the digest, chain and signature. `flight compare --html` renders a side-by-side visual comparison report. `flight stats --html` renders a self-contained dashboard of the journal. `flight keygen --output flight.key` generates a random HMAC key for signing exports. `flight restore <label|commit>` restores the worktree from a checkpoint without moving HEAD; `--dry-run` lists the files that would change. `flight list --limit <n>` shows only the newest sessions.
991
+ `flight` records an agent session as a hash-chained black box: `flight start --name "fix auth"` writes `.git/oc-pilot/flights/<id>/events.jsonl`, `flight exec -- <command>` records each command and its output tail, and `flight checkpoint --label after-fix` creates a dangling git commit of the full worktree without moving HEAD. `flight status`, `list` and `show` inspect the journal; `flight show [<id>]` defaults to the active or latest session and reads `--bundle <file>` without the journal; `flight verify [<id>]` recomputes the chain, defaulting to the active or latest session, and prints `[FLIGHT TAMPERED]` on any edit; `flight verify --all` audits every session; `flight end` closes the session. The log is local, NDJSON and zero-dependency. `flight replay --to <label|commit>` materializes a checkpoint as a detached worktree, `flight bisect -- <command>` runs a command at each checkpoint and stops at the first failure, `flight diff` compares checkpoints, and `flight export` writes a redacted bundle with a sha256 digest. `flight compare <id-a> <id-b>` compares two sessions by event count, duration, command sets, exit codes and final tree. `flight html` renders a self-contained, redacted HTML timeline with checkpoints and command output, and `--bundle <file>` renders one from an exported bundle without the journal. `flight summary [--id <id>]` renders a Markdown session summary with checkpoints and commands; `--bundle <file>` builds it from an exported bundle. `flight stats` aggregates sessions, commands, failures, checkpoints and duration across the journal. `flight prune` removes old ended sessions while keeping the active flight and the newest N sessions. `flight export --key <file>` signs the bundle digest with HMAC-SHA256, `--bundle <file>` re-signs an existing bundle, and `flight verify-bundle <file> --key <file>` checks the digest, chain and signature. `flight compare --html` renders a side-by-side visual comparison report. `flight stats --html` renders a self-contained dashboard of the journal. `flight keygen --output flight.key` generates a random HMAC key for signing exports. `flight restore <label|commit>` restores the worktree from a checkpoint without moving HEAD; `--dry-run` lists the files that would change. `flight list --limit <n>` shows only the newest sessions. `flight note "<text>"` appends a hash-chained note to the active flight, shown in show, summary, HTML and exports.
992
992
 
993
993
  `beacon` records a verification claim for a commit: `beacon stamp --check tests=pass --check preflight=pass --key beacon.key` stores the commit, tree, tool version, agent, model, commands, checks and a digest in `.oc-pilot/beacon.json`, then signs it with HMAC or `ssh-keygen`. `beacon verify` detects `[BEACON TAMPERED]` and `[UNATTRIBUTED]`; `beacon render --markdown` produces a PR comment. An unsigned beacon is valid but unattributed, so pass `--require-signature` in CI.
994
994
 
@@ -1037,7 +1037,7 @@ Start the server manually with an explicit project directory:
1037
1037
  ```bash
1038
1038
  oc-pilot-mcp --cwd /absolute/path/to/project
1039
1039
  # pinned for reproducibility:
1040
- npx -y oc-pilot@0.133.0 mcp --cwd /absolute/path/to/project
1040
+ npx -y oc-pilot@0.134.0 mcp --cwd /absolute/path/to/project
1041
1041
  ```
1042
1042
 
1043
1043
  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.
@@ -1212,7 +1212,7 @@ jobs:
1212
1212
  - uses: actions/checkout@v4
1213
1213
  with:
1214
1214
  fetch-depth: 0
1215
- - uses: MyNameIsNikki/oc-pilot@v0.133.0
1215
+ - uses: MyNameIsNikki/oc-pilot@v0.134.0
1216
1216
  with:
1217
1217
  command: scan
1218
1218
  args: --base origin/${{ github.base_ref }} --fail-on-secrets
@@ -1235,7 +1235,7 @@ jobs:
1235
1235
  - uses: actions/setup-node@v4
1236
1236
  with:
1237
1237
  node-version: 22
1238
- - run: npm install -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.133.0.tar.gz
1238
+ - run: npm install -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.134.0.tar.gz
1239
1239
  - run: oc-pilot scan --base origin/${{ github.base_ref }}
1240
1240
  - run: oc-pilot review --base origin/${{ github.base_ref }} --fail-on warning --fail-on-secrets --github
1241
1241
  env:
package/README.ru.md CHANGED
@@ -908,7 +908,7 @@ oc-pilot setup --client cursor --global
908
908
 
909
909
  ZCode импортирует серверы из Claude Code, Codex, OpenCode и `.agents`, либо пишет нативный конфиг через `oc-pilot setup --client zcode`.
910
910
 
911
- Инструменты: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`, `scan`, `commit`, `stats`, `slop`, `mutate`, `fuzz`, `bankruptcy`, `query_ast`, `sandbox`, `hivemind_status`, `flaky`, `impact`, `deps`, `coverage`, `reviewers`, `test_guard`, `env_sync`, `mock_leak`, `ecosystem_verify`, `pack`, `pack_hologram`, `zoom_symbol`, `contract_drift`, `anti_regression`, `boundaries`, `test_plan`, `compliance_verify`, `brag`, `battle`, `cleanup`, `arch_diff`, `roast`, `cinema`, `bounty`, `autopsy`, `echo`, `sast`, `authz`, `preflight`, `honeypot`, `alien_dna`, `hyper_chamber`, `butterfly`, `blindfold`, `antibody`, `polygraph`, `passport`, `oracle`, `vaccine`, `mitosis`, `intent`, `scalpel`, `mayday`, `clairvoyant`, `hemorrhage`, `cuckoo`, `chronos`, `flight_start`, `flight_exec`, `flight_checkpoint`, `flight_status`, `flight_list`, `flight_show`, `flight_verify`, `flight_end`, `flight_replay`, `flight_bisect`, `flight_diff`, `flight_compare`, `flight_html`, `flight_summary`, `flight_stats`, `flight_prune`, `flight_restore`, `flight_export`, `flight_verify_bundle`, `beacon`, `quarantine`, `mirage`, `warden`, `tribunal`, `skeptic`, `apoptosis`, `scan_injection`, `ready`, `receipt_verify`. У `scan` есть `all: true` — проверка всего репозитория, а не diff. `slop` запускает офлайн Slop Index и принимает `since`, `since_days`, `limit`, `exclude` и `no_blame`. `mutate` прогоняет мутационное тестирование по изменённому коду, принимает `command`, `max_mutants` и `min_score` и возвращает оценку и всех выживших мутантов; оценка ниже `min_score` — обычный результат с кодом 1. `flaky` несколько раз запускает тестовую команду и сравнивает результаты отдельных тестов, принимая `runs`, `command`, `fail_on_flaky`, `shuffle` и `seed`; сам он файлы не меняет, но запускает тесты проекта. `impact` показывает, какие объявления diff изменил или удалил и в каких нетронутых файлах эти имена ещё встречаются; принимает те же флаги источника, а поиск текстовый, поэтому совпадения в комментариях и строках возможны. `deps` проверяет объявленные, импортируемые и залоченные зависимости, `why` объясняет цепочку, `audit` добавляет уязвимости OSV и лицензии, `fix` правит `package.json`, а `sbom` пишет CycloneDX; `fix` и `sbom` пишут файлы и требуют `--allow-write`. `coverage` сверяет изменённые строки с локальным отчётом lcov, Istanbul, Cobertura или Go и возвращает непокрытые строки, файлы без данных и гейт по `fail_under` или `max_uncovered`. `reviewers` ранжирует авторов, которые трогали изменённые файлы, показывает владельцев из CODEOWNERS и принимает `limit`, `depth` и `exclude`; используется только история git. `test_guard` запускает офлайн-проверку на ослабление тестов: пропущенные, сфокусированные или удалённые тесты, удалённые и закомментированные проверки, поднятые таймауты, строгие матчеры, заменённые проверкой существования, `@ts-ignore` и пустые catch; с `fail_on_weakening` находка даёт код 1. `env_sync` сверяет переменные окружения, добавленные diff (`process.env`, `import.meta.env`, `Deno.env`, `Bun.env`), с локальными `.env` и `.env.example`/`.sample`/`.template`: отсутствие определения даёт fail с `fail_on_missing`, а определённые, но не задокументированные переменные — warn. `mock_leak` ищет забытые заглушки и хардкод в добавленном прод-коде: локальные пути, тестовые токены, `if (true)`/`if (false)`, имена mock/fake/stub, комментарии про заглушки и localhost-адреса; `fail_on_leak` даёт код 1 на выбранном уровне. `ecosystem_verify` проверяет, что именованные импорты из изменённых файлов существуют в установленном пакете или его `.d.ts`, и ищет пакеты, которых нет ни в `node_modules`, ни в `package.json`; с `online` дополнительно смотрит возраст и недельные загрузки новых npm-пакетов, а `fail_on_issue` даёт код 1 на выбранном уровне. `pack` собирает компактный контекст задачи: правила проекта, подписи изменённых файлов, связанные ссылки и необязательный лог тестов, с ограничением `budget` в символах; файлы не меняет. `contract_drift` сравнивает изменённые TypeScript-интерфейсы, Zod-объекты, Prisma-модели, Pydantic-модели и JSON Schema с предыдущей версией, находит удалённые поля, ставшие обязательными поля и смену типов и показывает нетронутые файлы, где удалённое поле ещё используется; `fail_on_drift` даёт код 1 на выбранной строгости. `anti_regression` сравнивает строки, добавленные diff, со строками, которые человек явно удалил в истории git, указывает коммит-удаление и ловит повторно добавленный код или импорты; `fail_on_regression` даёт код 1. `boundaries` проверяет добавленные импорты по правилам слоёв из `.oc-pilot/architecture.json`, показывает файл, строку, импорт и причину правила, а `fail_on_violation` даёт код 1 при пересечении границы слоя. `test_plan` выбирает тестовые файлы, затронутые diff, по статическому графу импортов: изменённые тесты, прямые и транзитивные импортёры, совпадения по имени и ссылки на символы; непокрытые изменённые файлы попадают в отчёт, а `fail_on_uncovered` даёт код 1. `compliance_verify` проверяет подписанный аудит-манифест текущего коммита: SHA-256, коммит, цепочку хешей предыдущих манифестов и необязательную подпись Ed25519; отсутствующий, изменённый или разорванный манифест — обычный результат с кодом 1. `test_gen` просит модель написать тесты на изменённый код; с `apply` он пишет файлы, прогоняет тесты и откатывает падения, если не указан `keep_failing`; `coverage` сужает генерацию до непокрытых изменённых строк, а `from_slop` выбирает файлы без тестов. `brag` собирает самодостаточный HTML/SVG-отчёт о сессии из статистики, истории git, последнего ревью и квитанции; только встроенные ресурсы, без модели и сети, `no_paths` скрывает пути. `battle` запускает экспериментальный цикл Coder/Hacker: кодер предлагает патч, хакер делает ревью и прогоняет SAST, авторизацию и проверку ослабления тестов, а цикл останавливается только когда high-находок нет и тесты проходят; `apply` требует `--allow-write`. `cleanup` собирает офлайн-план уборки из проблем зависимостей, Slop Index, переменных окружения и ослабленных тестов; `apply` выполняет только безопасные исправления зависимостей и требует `--allow-write`. `arch_diff` рисует Mermaid-схему внутренних импортов, которые diff добавил или удалил: зелёные стрелки — новые зависимости, красные пунктирные — удалённые, а `fail_on_removed` даёт код 1, когда зависимость исчезла. `roast` превращает diff в технически обоснованную прожарку в выбранной роли (linus, ramsay, corporate или default), ссылается на file:line для каждой шутки и заканчивает одним реальным фиксом; вызывает модель и не меняет файлы. `cinema` собирает терминальный таймлапс сессии из коммитов, запусков, вызовов API, последнего ревью и квитанции: самодостаточный HTML-плеер или asciinema v2 cast, без сети, внешних ресурсов и вызова модели; `no_paths` скрывает темы коммитов и места находок. `bounty` оценивает каждый файл по находкам SAST, дубликатам, мёртвым экспортам, старым TODO и churn без тестов и рисует ASCII-плакат WANTED с худшим файлом и причинами; детерминированно и офлайн. `autopsy` разбирает коммит как детектив: статистика diff, SAST по добавленным строкам, ослабленные тесты, утечки заглушек, рейтинг подозреваемых и хронология до/после; `fail_on_risk` даёт код 1 при опасном вердикте. `echo` собирает самодостаточные SVG-бейджи из локальной статистики, истории git и квитанции (коммиты, запуски агента, вызовы API, попадания в кеш, находки и статус тестов); `submit` отправляет на явный `endpoint` только ник, окно и агрегаты, без путей, diff и секретов, а по умолчанию сети нет. `sast` запускает детерминированный статический анализ по изменению или по явным `paths` и принимает `fail_on_issue`, `ignore` и `no_suppressions`; находка на уровне порога или выше — обычный результат с кодом 1. `authz` проверяет авторизацию маршрутов по изменению или явным `paths` и принимает `fail_on_issue`, `ignore`, `public` и `no_suppressions`; находка маршрута на уровне порога или выше — тоже обычный результат с кодом 1. `preflight` возвращает один офлайн-вердикт по планируемому изменению и принимает те же флаги источника (`diff`, `base`, `staged`, `unstaged`, `include_untracked`), плюс `since`, `max_delta`, `fail_on_issue`, `no_secret_scan`, `no_sast`, `no_authz`, `no_deps`, `no_tests` и `no_slop`; проваленная проверка — обычный результат со `status: "fail"` и кодом 1, а не ошибка инструмента, чтобы агент видел, какая именно проверка упала. `ready` возвращает офлайн-оценку готовности 0–100 и принимает `fail_under`; оценка ниже порога — тоже обычный результат с кодом 1. `receipt_verify` пересчитывает SHA-256 квитанции, сверяет записанный коммит с HEAD и возвращает `ok`, `hashOk` и `stale`; отсутствующая, изменённая или устаревшая квитанция — обычный результат с `ok: false` и кодом 1, чтобы агент видел, почему доказательство не прошло. Инструмент `fix` принимает `from_sast` и `from_authz`, чтобы чинить находки безопасности и пересканировать; результат тогда содержит `sast` или `authz` с `{before, after, remaining}`. Сервер по умолчанию read-only: `--allow-write` разрешает `fix` с `apply: true`, `commit` с `apply: true`, `test_fix` с командой, `stats` с `clear: true` и `mutate`, который временно перезаписывает исходники. Результат `fix` содержит unified-патч, список `files` и `patchStats` (`additions`, `deletions`, `hunks`, `bytes`); патчи длиннее 200 000 символов обрезаются с флагами `patchTruncated` и `patchBytes`, чтобы хост мог показать или применить изменение, не разбирая diff заново.
911
+ Инструменты: `review`, `invariants`, `test_fix`, `fix`, `test_gen`, `docgen`, `custom`, `scan`, `commit`, `stats`, `slop`, `mutate`, `fuzz`, `bankruptcy`, `query_ast`, `sandbox`, `hivemind_status`, `flaky`, `impact`, `deps`, `coverage`, `reviewers`, `test_guard`, `env_sync`, `mock_leak`, `ecosystem_verify`, `pack`, `pack_hologram`, `zoom_symbol`, `contract_drift`, `anti_regression`, `boundaries`, `test_plan`, `compliance_verify`, `brag`, `battle`, `cleanup`, `arch_diff`, `roast`, `cinema`, `bounty`, `autopsy`, `echo`, `sast`, `authz`, `preflight`, `honeypot`, `alien_dna`, `hyper_chamber`, `butterfly`, `blindfold`, `antibody`, `polygraph`, `passport`, `oracle`, `vaccine`, `mitosis`, `intent`, `scalpel`, `mayday`, `clairvoyant`, `hemorrhage`, `cuckoo`, `chronos`, `flight_start`, `flight_exec`, `flight_note`, `flight_checkpoint`, `flight_status`, `flight_list`, `flight_show`, `flight_verify`, `flight_end`, `flight_replay`, `flight_bisect`, `flight_diff`, `flight_compare`, `flight_html`, `flight_summary`, `flight_stats`, `flight_prune`, `flight_restore`, `flight_export`, `flight_verify_bundle`, `beacon`, `quarantine`, `mirage`, `warden`, `tribunal`, `skeptic`, `apoptosis`, `scan_injection`, `ready`, `receipt_verify`. У `scan` есть `all: true` — проверка всего репозитория, а не diff. `slop` запускает офлайн Slop Index и принимает `since`, `since_days`, `limit`, `exclude` и `no_blame`. `mutate` прогоняет мутационное тестирование по изменённому коду, принимает `command`, `max_mutants` и `min_score` и возвращает оценку и всех выживших мутантов; оценка ниже `min_score` — обычный результат с кодом 1. `flaky` несколько раз запускает тестовую команду и сравнивает результаты отдельных тестов, принимая `runs`, `command`, `fail_on_flaky`, `shuffle` и `seed`; сам он файлы не меняет, но запускает тесты проекта. `impact` показывает, какие объявления diff изменил или удалил и в каких нетронутых файлах эти имена ещё встречаются; принимает те же флаги источника, а поиск текстовый, поэтому совпадения в комментариях и строках возможны. `deps` проверяет объявленные, импортируемые и залоченные зависимости, `why` объясняет цепочку, `audit` добавляет уязвимости OSV и лицензии, `fix` правит `package.json`, а `sbom` пишет CycloneDX; `fix` и `sbom` пишут файлы и требуют `--allow-write`. `coverage` сверяет изменённые строки с локальным отчётом lcov, Istanbul, Cobertura или Go и возвращает непокрытые строки, файлы без данных и гейт по `fail_under` или `max_uncovered`. `reviewers` ранжирует авторов, которые трогали изменённые файлы, показывает владельцев из CODEOWNERS и принимает `limit`, `depth` и `exclude`; используется только история git. `test_guard` запускает офлайн-проверку на ослабление тестов: пропущенные, сфокусированные или удалённые тесты, удалённые и закомментированные проверки, поднятые таймауты, строгие матчеры, заменённые проверкой существования, `@ts-ignore` и пустые catch; с `fail_on_weakening` находка даёт код 1. `env_sync` сверяет переменные окружения, добавленные diff (`process.env`, `import.meta.env`, `Deno.env`, `Bun.env`), с локальными `.env` и `.env.example`/`.sample`/`.template`: отсутствие определения даёт fail с `fail_on_missing`, а определённые, но не задокументированные переменные — warn. `mock_leak` ищет забытые заглушки и хардкод в добавленном прод-коде: локальные пути, тестовые токены, `if (true)`/`if (false)`, имена mock/fake/stub, комментарии про заглушки и localhost-адреса; `fail_on_leak` даёт код 1 на выбранном уровне. `ecosystem_verify` проверяет, что именованные импорты из изменённых файлов существуют в установленном пакете или его `.d.ts`, и ищет пакеты, которых нет ни в `node_modules`, ни в `package.json`; с `online` дополнительно смотрит возраст и недельные загрузки новых npm-пакетов, а `fail_on_issue` даёт код 1 на выбранном уровне. `pack` собирает компактный контекст задачи: правила проекта, подписи изменённых файлов, связанные ссылки и необязательный лог тестов, с ограничением `budget` в символах; файлы не меняет. `contract_drift` сравнивает изменённые TypeScript-интерфейсы, Zod-объекты, Prisma-модели, Pydantic-модели и JSON Schema с предыдущей версией, находит удалённые поля, ставшие обязательными поля и смену типов и показывает нетронутые файлы, где удалённое поле ещё используется; `fail_on_drift` даёт код 1 на выбранной строгости. `anti_regression` сравнивает строки, добавленные diff, со строками, которые человек явно удалил в истории git, указывает коммит-удаление и ловит повторно добавленный код или импорты; `fail_on_regression` даёт код 1. `boundaries` проверяет добавленные импорты по правилам слоёв из `.oc-pilot/architecture.json`, показывает файл, строку, импорт и причину правила, а `fail_on_violation` даёт код 1 при пересечении границы слоя. `test_plan` выбирает тестовые файлы, затронутые diff, по статическому графу импортов: изменённые тесты, прямые и транзитивные импортёры, совпадения по имени и ссылки на символы; непокрытые изменённые файлы попадают в отчёт, а `fail_on_uncovered` даёт код 1. `compliance_verify` проверяет подписанный аудит-манифест текущего коммита: SHA-256, коммит, цепочку хешей предыдущих манифестов и необязательную подпись Ed25519; отсутствующий, изменённый или разорванный манифест — обычный результат с кодом 1. `test_gen` просит модель написать тесты на изменённый код; с `apply` он пишет файлы, прогоняет тесты и откатывает падения, если не указан `keep_failing`; `coverage` сужает генерацию до непокрытых изменённых строк, а `from_slop` выбирает файлы без тестов. `brag` собирает самодостаточный HTML/SVG-отчёт о сессии из статистики, истории git, последнего ревью и квитанции; только встроенные ресурсы, без модели и сети, `no_paths` скрывает пути. `battle` запускает экспериментальный цикл Coder/Hacker: кодер предлагает патч, хакер делает ревью и прогоняет SAST, авторизацию и проверку ослабления тестов, а цикл останавливается только когда high-находок нет и тесты проходят; `apply` требует `--allow-write`. `cleanup` собирает офлайн-план уборки из проблем зависимостей, Slop Index, переменных окружения и ослабленных тестов; `apply` выполняет только безопасные исправления зависимостей и требует `--allow-write`. `arch_diff` рисует Mermaid-схему внутренних импортов, которые diff добавил или удалил: зелёные стрелки — новые зависимости, красные пунктирные — удалённые, а `fail_on_removed` даёт код 1, когда зависимость исчезла. `roast` превращает diff в технически обоснованную прожарку в выбранной роли (linus, ramsay, corporate или default), ссылается на file:line для каждой шутки и заканчивает одним реальным фиксом; вызывает модель и не меняет файлы. `cinema` собирает терминальный таймлапс сессии из коммитов, запусков, вызовов API, последнего ревью и квитанции: самодостаточный HTML-плеер или asciinema v2 cast, без сети, внешних ресурсов и вызова модели; `no_paths` скрывает темы коммитов и места находок. `bounty` оценивает каждый файл по находкам SAST, дубликатам, мёртвым экспортам, старым TODO и churn без тестов и рисует ASCII-плакат WANTED с худшим файлом и причинами; детерминированно и офлайн. `autopsy` разбирает коммит как детектив: статистика diff, SAST по добавленным строкам, ослабленные тесты, утечки заглушек, рейтинг подозреваемых и хронология до/после; `fail_on_risk` даёт код 1 при опасном вердикте. `echo` собирает самодостаточные SVG-бейджи из локальной статистики, истории git и квитанции (коммиты, запуски агента, вызовы API, попадания в кеш, находки и статус тестов); `submit` отправляет на явный `endpoint` только ник, окно и агрегаты, без путей, diff и секретов, а по умолчанию сети нет. `sast` запускает детерминированный статический анализ по изменению или по явным `paths` и принимает `fail_on_issue`, `ignore` и `no_suppressions`; находка на уровне порога или выше — обычный результат с кодом 1. `authz` проверяет авторизацию маршрутов по изменению или явным `paths` и принимает `fail_on_issue`, `ignore`, `public` и `no_suppressions`; находка маршрута на уровне порога или выше — тоже обычный результат с кодом 1. `preflight` возвращает один офлайн-вердикт по планируемому изменению и принимает те же флаги источника (`diff`, `base`, `staged`, `unstaged`, `include_untracked`), плюс `since`, `max_delta`, `fail_on_issue`, `no_secret_scan`, `no_sast`, `no_authz`, `no_deps`, `no_tests` и `no_slop`; проваленная проверка — обычный результат со `status: "fail"` и кодом 1, а не ошибка инструмента, чтобы агент видел, какая именно проверка упала. `ready` возвращает офлайн-оценку готовности 0–100 и принимает `fail_under`; оценка ниже порога — тоже обычный результат с кодом 1. `receipt_verify` пересчитывает SHA-256 квитанции, сверяет записанный коммит с HEAD и возвращает `ok`, `hashOk` и `stale`; отсутствующая, изменённая или устаревшая квитанция — обычный результат с `ok: false` и кодом 1, чтобы агент видел, почему доказательство не прошло. Инструмент `fix` принимает `from_sast` и `from_authz`, чтобы чинить находки безопасности и пересканировать; результат тогда содержит `sast` или `authz` с `{before, after, remaining}`. Сервер по умолчанию read-only: `--allow-write` разрешает `fix` с `apply: true`, `commit` с `apply: true`, `test_fix` с командой, `stats` с `clear: true` и `mutate`, который временно перезаписывает исходники. Результат `fix` содержит unified-патч, список `files` и `patchStats` (`additions`, `deletions`, `hunks`, `bytes`); патчи длиннее 200 000 символов обрезаются с флагами `patchTruncated` и `patchBytes`, чтобы хост мог показать или применить изменение, не разбирая diff заново.
912
912
 
913
913
  `invariants` проверяет diff против `.oc-pilot/invariants.md`
914
914
 
@@ -951,7 +951,7 @@ ZCode импортирует серверы из Claude Code, Codex, OpenCode и
951
951
 
952
952
  `chronos` читает хронику файла: коммиты, churn, маркеры fix/revert/incident/security, антитела и вакцины, а затем считает hotspot score. `[HOTSPOT]` означает, что у файла есть история исправлений, откатов или инцидентов; проверьте его перед изменением и добавьте вакцину для следующего фикса. Низкий score не доказывает, что файл безопасен.
953
953
 
954
- `flight` записывает агентскую сессию как чёрный ящик с хеш-цепочкой: `flight start --name "fix auth"` создаёт `.git/oc-pilot/flights/<id>/events.jsonl`, `flight exec -- <команда>` сохраняет команду и хвост вывода, а `flight checkpoint --label after-fix` делает висячий git-коммит всего worktree, не двигая HEAD. `flight status`, `list` и `show` показывают журнал; `flight show [<id>]` по умолчанию берёт активную или последнюю сессию и читает `--bundle <файл>` без журнала; `flight verify [<id>]` пересчитывает цепочку (по умолчанию активная или последняя сессия) и печатает `[FLIGHT TAMPERED]` при любом изменении, `flight verify --all` проверяет все сессии; `flight end` закрывает сессию. Журнал локальный, NDJSON и без зависимостей. `flight replay --to <метка|commit>` разворачивает чекпоинт в отдельный worktree, `flight bisect -- <команда>` прогоняет команду по чекпоинтам и останавливается на первом сбое, `flight diff` сравнивает чекпоинты, а `flight export` пишет redacted-бандл с sha256-дайджестом. `flight compare <id-a> <id-b>` сравнивает две сессии по числу событий, длительности, набору команд, exit code и итоговому дереву. `flight html` собирает self-contained HTML-таймлайн с чекпоинтами и выводом команд, а `--bundle <файл>` рендерит его из экспортированного бандла без журнала. `flight summary [--id <id>]` собирает Markdown-сводку полёта с чекпоинтами и командами; `--bundle <файл>` строит её из экспортированного бандла. `flight stats` суммирует сессии, команды, ошибки, чекпоинты и длительность по журналу. `flight prune` удаляет старые завершённые сессии, сохраняя активный полёт и N последних. `flight export --key <файл>` подписывает дайджест бандла через HMAC-SHA256, `--bundle <файл>` переподписывает готовый бандл, а `flight verify-bundle <файл> --key <файл>` проверяет дайджест, цепочку и подпись. `flight compare --html` рисует визуальный отчёт сравнения. `flight stats --html` собирает self-contained дашборд журнала. `flight keygen --output flight.key` генерирует случайный HMAC-ключ для подписи экспортов. `flight restore <метка|commit>` восстанавливает worktree из чекпоинта, не двигая HEAD; `--dry-run` показывает файлы, которые изменятся. `flight list --limit <n>` показывает только последние полёты.
954
+ `flight` записывает агентскую сессию как чёрный ящик с хеш-цепочкой: `flight start --name "fix auth"` создаёт `.git/oc-pilot/flights/<id>/events.jsonl`, `flight exec -- <команда>` сохраняет команду и хвост вывода, а `flight checkpoint --label after-fix` делает висячий git-коммит всего worktree, не двигая HEAD. `flight status`, `list` и `show` показывают журнал; `flight show [<id>]` по умолчанию берёт активную или последнюю сессию и читает `--bundle <файл>` без журнала; `flight verify [<id>]` пересчитывает цепочку (по умолчанию активная или последняя сессия) и печатает `[FLIGHT TAMPERED]` при любом изменении, `flight verify --all` проверяет все сессии; `flight end` закрывает сессию. Журнал локальный, NDJSON и без зависимостей. `flight replay --to <метка|commit>` разворачивает чекпоинт в отдельный worktree, `flight bisect -- <команда>` прогоняет команду по чекпоинтам и останавливается на первом сбое, `flight diff` сравнивает чекпоинты, а `flight export` пишет redacted-бандл с sha256-дайджестом. `flight compare <id-a> <id-b>` сравнивает две сессии по числу событий, длительности, набору команд, exit code и итоговому дереву. `flight html` собирает self-contained HTML-таймлайн с чекпоинтами и выводом команд, а `--bundle <файл>` рендерит его из экспортированного бандла без журнала. `flight summary [--id <id>]` собирает Markdown-сводку полёта с чекпоинтами и командами; `--bundle <файл>` строит её из экспортированного бандла. `flight stats` суммирует сессии, команды, ошибки, чекпоинты и длительность по журналу. `flight prune` удаляет старые завершённые сессии, сохраняя активный полёт и N последних. `flight export --key <файл>` подписывает дайджест бандла через HMAC-SHA256, `--bundle <файл>` переподписывает готовый бандл, а `flight verify-bundle <файл> --key <файл>` проверяет дайджест, цепочку и подпись. `flight compare --html` рисует визуальный отчёт сравнения. `flight stats --html` собирает self-contained дашборд журнала. `flight keygen --output flight.key` генерирует случайный HMAC-ключ для подписи экспортов. `flight restore <метка|commit>` восстанавливает worktree из чекпоинта, не двигая HEAD; `--dry-run` показывает файлы, которые изменятся. `flight list --limit <n>` показывает только последние полёты. `flight note "<текст>"` добавляет заметку в хеш-цепочку активного полёта; она видна в show, summary, HTML и экспорте.
955
955
 
956
956
  `beacon` записывает заявление о проверке коммита: `beacon stamp --check tests=pass --check preflight=pass --key beacon.key` сохраняет коммит, tree, версию инструмента, агента, модель, команды, проверки и digest в `.oc-pilot/beacon.json`, а затем подписывает его HMAC или `ssh-keygen`. `beacon verify` ловит `[BEACON TAMPERED]` и `[UNATTRIBUTED]`; `beacon render --markdown` печатает комментарий для PR. Неподписанный beacon валиден, но не атрибутирован, поэтому в CI используйте `--require-signature`.
957
957
 
@@ -988,7 +988,7 @@ ZCode импортирует серверы из Claude Code, Codex, OpenCode и
988
988
  ```bash
989
989
  oc-pilot-mcp --cwd "C:\path\to\project"
990
990
  # версия зафиксирована для воспроизводимости:
991
- npx -y oc-pilot@0.133.0 mcp --cwd "C:\path\to\project"
991
+ npx -y oc-pilot@0.134.0 mcp --cwd "C:\path\to\project"
992
992
  ```
993
993
 
994
994
  Пример для Claude Code (`.mcp.json`):
@@ -1060,7 +1060,7 @@ jobs:
1060
1060
  - uses: actions/checkout@v4
1061
1061
  with:
1062
1062
  fetch-depth: 0
1063
- - uses: MyNameIsNikki/oc-pilot@v0.133.0
1063
+ - uses: MyNameIsNikki/oc-pilot@v0.134.0
1064
1064
  with:
1065
1065
  command: scan
1066
1066
  args: --base origin/${{ github.base_ref }} --fail-on-secrets
package/dist/cli.test.js CHANGED
@@ -1354,6 +1354,11 @@ test("flight records checkpoints, status, verify and end", () => {
1354
1354
  const started = JSON.parse(start.stdout);
1355
1355
  assert.equal(started.active, true);
1356
1356
  assert.match(started.session.meta.id, /^[A-Za-z0-9._-]+$/);
1357
+ const note = runCli(["flight", "note", "почему так", "--json"], dir);
1358
+ assert.equal(note.status, 0, note.stderr);
1359
+ const noted = JSON.parse(note.stdout);
1360
+ assert.equal(noted.note, "почему так");
1361
+ assert.ok(noted.seq >= 2);
1357
1362
  writeFileSync(join(dir, "b.txt"), "two\n", "utf8");
1358
1363
  const checkpoint = runCli(["flight", "checkpoint", "--label", "after-b", "--json"], dir);
1359
1364
  assert.equal(checkpoint.status, 0, checkpoint.stderr);