@kyo-so/cli 0.7.0 → 0.8.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.
@@ -29,10 +29,19 @@ Do not use this skill for every coding task. It is intended for deliberate revie
29
29
  - selected files
30
30
  - unified diff if available
31
31
  - constraints
32
- 4. Call the appropriate Kyoso MCP tool:
33
- - `plan_review`
34
- - `security_review`
35
- - `diff_review`
32
+ 4. Run the review through the first available path:
33
+ - Prefer the corresponding Kyoso MCP tool when it is available:
34
+ - `plan_review`
35
+ - `security_review`
36
+ - `diff_review`
37
+ - If the MCP tools are unavailable, use the CLI fallback with JSON output:
38
+ - `plan_review` -> `npx -y @kyo-so/cli plan --goal <text> [--plan <path-or-text>] [--file <path>] --json`
39
+ - `security_review` -> `npx -y @kyo-so/cli security --goal <text> [--diff <path>] [--file <path>] --json`
40
+ - `diff_review` -> `npx -y @kyo-so/cli diff --base <ref> --head <ref> --json`
41
+ - `bunx @kyo-so/cli` may be used instead of `npx -y @kyo-so/cli`.
42
+ - The CLI also accepts `--repo-summary`, repeatable `--constraint`, and repeatable `--file` flags. For a large review, adjust an agent timeout with `--set agents.<agent>.timeoutMs=<ms>`.
43
+ - Run the CLI without a config trust flag first. Inspect `audit.warnings` in the JSON result; if it contains `untrusted config was not executed`, or the command fails with an untrusted-config message, ask the user whether to rerun with `--trust-config` to use it or `--ignore-config` to skip it. Never add `--trust-config` without confirmation.
44
+ - Keep `--json` enabled and interpret the returned `decision` exactly like the MCP result.
36
45
  5. Treat `decision: block` as a stop signal. Present the result to the user before implementing.
37
46
  6. Treat `decision: approve_with_changes` as requiring changes to the plan or implementation.
38
47
  7. Do not claim Kyoso modified files. Kyoso only reviews.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.0] - 2026-07-10
11
+
12
+ ### Added
13
+
14
+ - Repeatable `--set <config-key>=<value>` option on the `plan`, `security`,
15
+ and `diff` commands for overriding config values such as
16
+ `agents.<agent>.model`, `agents.<agent>.effort`, and `timeoutMs` from the
17
+ command line. Overrides are restricted to the shared project-scope
18
+ allowlist, applied after config files (including with `--ignore-config`),
19
+ and schema-validated.
20
+ - CLI fallback in the bundled `kyoso-review` skill: when the Kyoso MCP
21
+ server is not registered, the skill falls back to
22
+ `npx`/`bunx @kyo-so/cli plan|security|diff --json`. The fallback runs
23
+ without config trust flags first and requires user confirmation before
24
+ `--trust-config` or `--ignore-config`. Documented in all README languages.
25
+
26
+ ## [0.7.1] - 2026-07-09
27
+
28
+ ### Changed
29
+
30
+ - Update `@agentclientprotocol/sdk` from 1.1.0 to 1.2.0: ACP schema 1.19.0,
31
+ linear-time `ndJsonStream` receive path, and unified JSON-RPC message
32
+ validation across transports.
33
+
10
34
  ## [0.7.0] - 2026-07-09
11
35
 
12
36
  ### Added
package/README.ja.md CHANGED
@@ -136,7 +136,7 @@ Nix dev shell は Node.js 24 と nixpkgs が提供する Bun version を固定
136
136
  ```bash
137
137
  kyoso plan --goal "Review this OAuth callback plan" --plan plan.md
138
138
  kyoso security --goal "Review this auth diff" --diff changes.patch
139
- kyoso diff --base main --head HEAD
139
+ kyoso diff --base main --head HEAD --set agents.claude.effort=high
140
140
  kyoso doctor
141
141
  kyoso init
142
142
  kyoso setup codex
@@ -203,6 +203,8 @@ MCP stdout は protocol messages 専用です。logs は stderr または local
203
203
 
204
204
  同梱の `kyoso-review` skill は意図的に狭い用途にしています。Kyoso、multi-agent review、plan review、security review、CISA Secure by Design review、diff review を明示的に依頼したときだけ trigger されるべきです。
205
205
 
206
+ skill は、利用可能な場合は Kyoso MCP tools を優先します。MCP server が未登録の場合は、記載された CLI fallback に従い、`npx -y @kyo-so/cli` または `bunx @kyo-so/cli` から JSON output を取得します。
207
+
206
208
  `npx @kyo-so/cli setup codex --write` と `bunx @kyo-so/cli setup codex --write` は、既定で `.agents/skills/kyoso-review/` にコピーします。`--global` を追加すると `~/.agents/skills/kyoso-review/` にコピーします。
207
209
 
208
210
  `npx @kyo-so/cli setup claude-code --write` と `bunx @kyo-so/cli setup claude-code --write` は、既定で `.claude/skills/kyoso-review/` にコピーします。`--global` を追加すると `~/.claude/skills/kyoso-review/` にコピーします。
@@ -281,7 +283,15 @@ Kyoso は次の順に config を load します。
281
283
  - built-in defaults
282
284
  - user global TOML: `$XDG_CONFIG_HOME/kyoso/config.toml`、または `~/.config/kyoso/config.toml`
283
285
  - project TOML: `<cwd>/kyoso.toml`
284
- - `--network` などの CLI flags
286
+ - `--network` などの CLI flags と `--set agents.claude.effort=high` などの反復可能な overrides
287
+
288
+ `plan`、`security`、`diff` は、反復可能な `--set <key>=<value>` overrides を受け付けます。CLI で指定した値は config files より優先され、`--ignore-config` との併用も可能です。
289
+
290
+ - Agent keys: `agents.<codex|claude>.<enabled|model|effort|role|timeoutMs>`
291
+ - Verification keys: `verification.<enabled|maxFindings|timeoutMs>`
292
+ - Judge keys: `judge.<mode|provider|timeoutMs>`
293
+
294
+ 未知の key は拒否されます。boolean / numeric config keys は schema の型へ変換し、string keys は文字列のまま保持した後、config 全体を再検証します。
285
295
 
286
296
  Project `kyoso.toml` は declarative で、trust approval は不要です。tools toggles、agent `enabled` / `model` / `effort` / `role` / `timeoutMs`、workspace byte limits と additive `workspace.deny`、verification settings、advisory judge settings、tightening-only security/network settings を設定できます。
287
297
 
package/README.md CHANGED
@@ -137,7 +137,7 @@ Known distribution risk: `@modelcontextprotocol/server` has no stable release ye
137
137
  ```bash
138
138
  kyoso plan --goal "Review this OAuth callback plan" --plan plan.md
139
139
  kyoso security --goal "Review this auth diff" --diff changes.patch
140
- kyoso diff --base main --head HEAD
140
+ kyoso diff --base main --head HEAD --set agents.claude.effort=high
141
141
  kyoso doctor
142
142
  kyoso init
143
143
  kyoso setup codex
@@ -204,6 +204,8 @@ MCP stdout is reserved for protocol messages. Logs go to stderr or local audit t
204
204
 
205
205
  The bundled `kyoso-review` skill is intentionally narrow. It should trigger only when you explicitly ask for Kyoso, multi-agent review, plan review, security review, CISA Secure by Design review, or diff review.
206
206
 
207
+ The skill prefers the Kyoso MCP tools when available. If the MCP server is not registered, it follows its documented CLI fallback and requests JSON output from `npx -y @kyo-so/cli` or `bunx @kyo-so/cli`.
208
+
207
209
  `npx @kyo-so/cli setup codex --write` and `bunx @kyo-so/cli setup codex --write` copy it to `.agents/skills/kyoso-review/` by default. Add `--global` to copy it to `~/.agents/skills/kyoso-review/`.
208
210
 
209
211
  `npx @kyo-so/cli setup claude-code --write` and `bunx @kyo-so/cli setup claude-code --write` copy it to `.claude/skills/kyoso-review/` by default. Add `--global` to copy it to `~/.claude/skills/kyoso-review/`.
@@ -282,7 +284,15 @@ Kyoso loads config in this order:
282
284
  - built-in defaults
283
285
  - user global TOML: `$XDG_CONFIG_HOME/kyoso/config.toml`, or `~/.config/kyoso/config.toml`
284
286
  - project TOML: `<cwd>/kyoso.toml`
285
- - CLI flags such as `--network`
287
+ - CLI flags such as `--network` and repeatable overrides such as `--set agents.claude.effort=high`
288
+
289
+ `plan`, `security`, and `diff` accept repeatable `--set <key>=<value>` overrides. Values set on the CLI take precedence over config files, including when `--ignore-config` is used.
290
+
291
+ - Agent keys: `agents.<codex|claude>.<enabled|model|effort|role|timeoutMs>`
292
+ - Verification keys: `verification.<enabled|maxFindings|timeoutMs>`
293
+ - Judge keys: `judge.<mode|provider|timeoutMs>`
294
+
295
+ Unknown keys are rejected. Boolean and numeric config keys are converted to their schema types; string keys remain strings. The complete config is then validated.
286
296
 
287
297
  Project `kyoso.toml` is declarative and does not require trust approval. It can set safe project-scoped keys such as tool toggles, agent `enabled` / `model` / `effort` / `role` / `timeoutMs`, workspace byte limits and additive `workspace.deny`, verification settings, advisory judge settings, and tightening-only security/network settings.
288
298
 
package/README.zh-CN.md CHANGED
@@ -136,7 +136,7 @@ Nix dev shell 会 pin Node.js 24 和 nixpkgs 提供的 Bun version。确认 `.en
136
136
  ```bash
137
137
  kyoso plan --goal "Review this OAuth callback plan" --plan plan.md
138
138
  kyoso security --goal "Review this auth diff" --diff changes.patch
139
- kyoso diff --base main --head HEAD
139
+ kyoso diff --base main --head HEAD --set agents.claude.effort=high
140
140
  kyoso doctor
141
141
  kyoso init
142
142
  kyoso setup codex
@@ -203,6 +203,8 @@ MCP stdout 专用于 protocol messages。Logs 会写到 stderr 或 local audit t
203
203
 
204
204
  内置的 `kyoso-review` skill 有意保持范围很窄。只有当你明确请求 Kyoso、multi-agent review、plan review、security review、CISA Secure by Design review 或 diff review 时,才应触发它。
205
205
 
206
+ 当 Kyoso MCP tools 可用时,skill 会优先使用它们。如果尚未注册 MCP server,skill 会按照文档中的 CLI fallback,通过 `npx -y @kyo-so/cli` 或 `bunx @kyo-so/cli` 获取 JSON output。
207
+
206
208
  `npx @kyo-so/cli setup codex --write` 和 `bunx @kyo-so/cli setup codex --write` 默认将其复制到 `.agents/skills/kyoso-review/`。添加 `--global` 会复制到 `~/.agents/skills/kyoso-review/`。
207
209
 
208
210
  `npx @kyo-so/cli setup claude-code --write` 和 `bunx @kyo-so/cli setup claude-code --write` 默认将其复制到 `.claude/skills/kyoso-review/`。添加 `--global` 会复制到 `~/.claude/skills/kyoso-review/`。
@@ -281,7 +283,15 @@ Kyoso 按以下顺序 load config:
281
283
  - built-in defaults
282
284
  - user global TOML: `$XDG_CONFIG_HOME/kyoso/config.toml`,或 `~/.config/kyoso/config.toml`
283
285
  - project TOML: `<cwd>/kyoso.toml`
284
- - `--network` 等 CLI flags
286
+ - `--network` 等 CLI flags,以及 `--set agents.claude.effort=high` 等可重复的 overrides
287
+
288
+ `plan`、`security` 和 `diff` 接受可重复的 `--set <key>=<value>` overrides。CLI 指定的值优先于 config files,也可以与 `--ignore-config` 一起使用。
289
+
290
+ - Agent keys: `agents.<codex|claude>.<enabled|model|effort|role|timeoutMs>`
291
+ - Verification keys: `verification.<enabled|maxFindings|timeoutMs>`
292
+ - Judge keys: `judge.<mode|provider|timeoutMs>`
293
+
294
+ 未知 key 会被拒绝。Boolean / numeric config keys 会转换为 schema 类型,string keys 保持字符串,然后重新验证完整 config。
285
295
 
286
296
  Project `kyoso.toml` 是 declarative config,不需要 trust approval。它可以设置 tools toggles、agent `enabled` / `model` / `effort` / `role` / `timeoutMs`、workspace byte limits 和 additive `workspace.deny`、verification settings、advisory judge settings,以及 tightening-only security/network settings。
287
297