oc-pilot 0.136.0 → 0.137.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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.137.0
4
+
5
+ - `--output` у flight-команд теперь разрешается относительно `--cwd`, а не текущей директории оболочки; `flight export --cwd <репо> --output bundle.json` пишет файл в целевой репозиторий.
6
+ - 899 тестов; версия 0.137.0.
7
+
8
+ ## 0.136.1
9
+
10
+ - `flight html` пересчитывает хеш-цепочку из событий, поэтому `--bundle` больше не показывает подделанный бандл как «chain valid»; ошибки цепочки выводятся в отчёте.
11
+ - 898 тестов; версия 0.136.1.
12
+
3
13
  ## 0.136.0
4
14
 
5
15
  - `flight compare --bundles <a> <b>` сравнивает два экспортированных bundle без локального журнала; ядро получило `compareFlightShows`, MCP `flight_compare` принимает `bundles`.
package/README.md CHANGED
@@ -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.136.0 mcp --cwd /absolute/path/to/project
1040
+ npx -y oc-pilot@0.137.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.136.0
1215
+ - uses: MyNameIsNikki/oc-pilot@v0.137.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.136.0.tar.gz
1238
+ - run: npm install -g https://github.com/MyNameIsNikki/oc-pilot/archive/refs/tags/v0.137.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
@@ -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.136.0 mcp --cwd "C:\path\to\project"
991
+ npx -y oc-pilot@0.137.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.136.0
1063
+ - uses: MyNameIsNikki/oc-pilot@v0.137.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
@@ -1483,6 +1483,21 @@ test("flight records checkpoints, status, verify and end", () => {
1483
1483
  rmSync(dir, { recursive: true, force: true });
1484
1484
  }
1485
1485
  });
1486
+ test("flight output resolves relative to --cwd", () => {
1487
+ const repo = mkdtempSync(join(tmpdir(), "oc-pilot-cwd-repo-"));
1488
+ const shell = mkdtempSync(join(tmpdir(), "oc-pilot-cwd-shell-"));
1489
+ try {
1490
+ spawnSync("git", ["init"], { cwd: repo, stdio: "ignore" });
1491
+ const result = runCli(["flight", "stats", "--html", "--output", "stats.html", "--cwd", repo], shell);
1492
+ assert.equal(result.status, 0, result.stderr);
1493
+ assert.equal(existsSync(join(repo, "stats.html")), true);
1494
+ assert.equal(existsSync(join(shell, "stats.html")), false);
1495
+ }
1496
+ finally {
1497
+ rmSync(repo, { recursive: true, force: true });
1498
+ rmSync(shell, { recursive: true, force: true });
1499
+ }
1500
+ });
1486
1501
  test("flight keygen writes a 64-hex key", () => {
1487
1502
  const dir = mkdtempSync(join(tmpdir(), "oc-pilot-cli-keygen-"));
1488
1503
  try {