@oh-my-pi/pi-coding-agent 11.2.0 → 11.2.2

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
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [11.2.1] - 2026-02-05
6
+
7
+ ### Fixed
8
+
9
+ - Fixed CLI invocation with flags only (e.g. `pi --model=codex`) to route to the default command instead of erroring
10
+
5
11
  ## [11.2.0] - 2026-02-05
6
12
  ### Added
7
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-coding-agent",
3
- "version": "11.2.0",
3
+ "version": "11.2.2",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "ompConfig": {
@@ -90,12 +90,12 @@
90
90
  "@oclif/core": "^4.5.6",
91
91
  "@oclif/plugin-autocomplete": "^3.2.23",
92
92
  "@mozilla/readability": "0.6.0",
93
- "@oh-my-pi/omp-stats": "11.2.0",
94
- "@oh-my-pi/pi-agent-core": "11.2.0",
95
- "@oh-my-pi/pi-ai": "11.2.0",
96
- "@oh-my-pi/pi-natives": "11.2.0",
97
- "@oh-my-pi/pi-tui": "11.2.0",
98
- "@oh-my-pi/pi-utils": "11.2.0",
93
+ "@oh-my-pi/omp-stats": "11.2.2",
94
+ "@oh-my-pi/pi-agent-core": "11.2.2",
95
+ "@oh-my-pi/pi-ai": "11.2.2",
96
+ "@oh-my-pi/pi-natives": "11.2.2",
97
+ "@oh-my-pi/pi-tui": "11.2.2",
98
+ "@oh-my-pi/pi-utils": "11.2.2",
99
99
  "@sinclair/typebox": "^0.34.48",
100
100
  "ajv": "^8.17.1",
101
101
  "chalk": "^5.6.2",
package/src/cli.ts CHANGED
@@ -10,7 +10,7 @@ import { APP_NAME } from "./config";
10
10
 
11
11
  process.title = APP_NAME;
12
12
  const argv = process.argv.slice(2);
13
- const runArgv = argv.length === 0 ? ["index"] : argv;
13
+ const runArgv = argv.length === 0 || argv[0]?.startsWith("-") ? ["index", ...argv] : argv;
14
14
  run(runArgv, import.meta.url).catch((error: unknown) => {
15
15
  const message = error instanceof Error ? (error.stack ?? error.message) : String(error);
16
16
  process.stderr.write(`${message}\n`);
package/src/config.ts CHANGED
@@ -3,7 +3,7 @@ import * as os from "node:os";
3
3
  import * as path from "node:path";
4
4
  import { $env, isEnoent, logger } from "@oh-my-pi/pi-utils";
5
5
  import type { TSchema } from "@sinclair/typebox";
6
- import { Value } from "@sinclair/typebox/value/index.mjs";
6
+ import { Value } from "@sinclair/typebox/value";
7
7
  import { Ajv, type ErrorObject, type ValidateFunction } from "ajv";
8
8
  import { JSONC, YAML } from "bun";
9
9
  // Embed package.json at build time for config