@kyo-so/cli 0.12.0 → 0.13.1

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.
@@ -1,2 +1,4 @@
1
1
  import type { JudgeProviderOutput, JudgeRunInput } from "./provider.js";
2
+ export declare const DEFAULT_ANTHROPIC_JUDGE_MODEL = "claude-haiku-4-5";
3
+ export declare function resolveAnthropicJudgeModel(env: NodeJS.ProcessEnv): string;
2
4
  export declare function runAnthropicJudge(input: JudgeRunInput, timeoutMs: number): Promise<JudgeProviderOutput>;
@@ -1,2 +1,4 @@
1
1
  import type { JudgeProviderOutput, JudgeRunInput } from "./provider.js";
2
+ export declare const DEFAULT_OPENAI_JUDGE_MODEL = "gpt-5.4-mini";
3
+ export declare function resolveOpenAiJudgeModel(env: NodeJS.ProcessEnv): string;
2
4
  export declare function runOpenAiJudge(input: JudgeRunInput, timeoutMs: number): Promise<JudgeProviderOutput>;
@@ -1,5 +1,5 @@
1
1
  import type { KyosoConfig } from "../config/schema.js";
2
- import type { AgentName, CrossModelAnalysis, KyosoResult, JudgeProvider, ModelTokenUsage, NormalizedAgentOpinion, ReviewTool } from "../core/types.js";
2
+ import type { AgentName, CrossModelAnalysis, KyosoResult, JudgeProvider, ModelExecutionIdentity, ModelTokenUsage, NormalizedAgentOpinion, ReviewTool } from "../core/types.js";
3
3
  export type JudgeOutput = {
4
4
  summaryText: string;
5
5
  disagreementComments: Array<{
@@ -9,16 +9,23 @@ export type JudgeOutput = {
9
9
  analysis?: Omit<CrossModelAnalysis, "provider">;
10
10
  };
11
11
  export type ResolvedJudgeProvider = Exclude<JudgeProvider, "auto"> | "deterministic_fallback";
12
+ export type JudgeCallRoute = {
13
+ provider: ResolvedJudgeProvider;
14
+ llmAvailable: boolean;
15
+ };
12
16
  export type JudgeRunResult = {
13
17
  provider: ResolvedJudgeProvider;
14
18
  status: "completed" | "deterministic_fallback" | "failed_fallback";
15
19
  output: JudgeOutput;
16
20
  usage?: ModelTokenUsage;
21
+ executionIdentity?: ModelExecutionIdentity;
17
22
  error?: string;
18
23
  };
19
24
  export type JudgeProviderOutput = {
20
25
  output: JudgeOutput;
21
26
  usage?: ModelTokenUsage;
27
+ requestedModel: string;
28
+ reportedModel?: string;
22
29
  };
23
30
  export type JudgeRunInput = {
24
31
  tool: ReviewTool;
@@ -35,4 +42,5 @@ export type JudgeRunInput = {
35
42
  timeoutMs?: number;
36
43
  };
37
44
  export declare function resolveJudgeProvider(provider: JudgeProvider, env: NodeJS.ProcessEnv): ResolvedJudgeProvider;
45
+ export declare function resolveJudgeCallRoute(mode: KyosoConfig["judge"]["mode"], provider: JudgeProvider, env: NodeJS.ProcessEnv): JudgeCallRoute;
38
46
  export declare function runJudge(input: JudgeRunInput): Promise<JudgeRunResult>;
@@ -1,11 +1,12 @@
1
1
  import { type CodexProvider } from "../config/schema.js";
2
+ import type { ModelExecutionIdentity } from "../core/types.js";
2
3
  export declare const OPENROUTER_API_KEY_ENV = "OPENROUTER_API_KEY";
3
4
  export declare const KYOSO_OPENROUTER_PROVIDER_ID = "kyoso-openrouter";
4
5
  export declare class ChildEnvPreflightError extends Error {
5
6
  readonly code: "OPENROUTER_KEY_MISSING" | "AGENT_CONFIG_INVALID";
6
7
  constructor(code: "OPENROUTER_KEY_MISSING" | "AGENT_CONFIG_INVALID", message: string);
7
8
  }
8
- export declare function buildChildEnv(parentEnv: NodeJS.ProcessEnv, whitelist: string[], explicit: Record<string, string>, options?: {
9
+ type ChildEnvOptions = {
9
10
  agent?: "codex" | "claude";
10
11
  model?: string;
11
12
  provider?: CodexProvider;
@@ -13,6 +14,15 @@ export declare function buildChildEnv(parentEnv: NodeJS.ProcessEnv, whitelist: s
13
14
  onCredentialPlaceholderDiscarded?: (key: string) => void;
14
15
  onOpenRouterCredentialWithheld?: (key: string) => void;
15
16
  onOpenRouterProvidersDiscarded?: (count: number) => void;
16
- }): NodeJS.ProcessEnv;
17
+ };
18
+ export type ChildLaunchContext = {
19
+ env: NodeJS.ProcessEnv;
20
+ executionIdentity: ModelExecutionIdentity;
21
+ };
22
+ export declare function buildChildEnv(parentEnv: NodeJS.ProcessEnv, whitelist: string[], explicit: Record<string, string>, options?: ChildEnvOptions): NodeJS.ProcessEnv;
23
+ export declare function buildChildLaunchContext(parentEnv: NodeJS.ProcessEnv, whitelist: string[], explicit: Record<string, string>, options: ChildEnvOptions & {
24
+ agent: "codex" | "claude";
25
+ }): ChildLaunchContext;
17
26
  export declare function hasUsableEnvValue(env: Record<string, string | undefined>, key: string): boolean;
18
27
  export declare function isUnexpandedEnvPlaceholder(value: string | undefined): boolean;
28
+ export {};
@@ -6,7 +6,7 @@ args = ["-y", "@kyo-so/cli", "mcp"]
6
6
  # "OPENROUTER_API_KEY" after "CODEX_ACCESS_TOKEN" in this list.
7
7
  env_vars = ["OPENAI_API_KEY", "CODEX_API_KEY", "CODEX_HOME", "CODEX_ACCESS_TOKEN", "ANTHROPIC_API_KEY", "CLAUDE_CODE_OAUTH_TOKEN"]
8
8
  startup_timeout_sec = 20
9
- tool_timeout_sec = 360
9
+ tool_timeout_sec = 2160
10
10
  enabled = true
11
11
 
12
12
  # Bun alternative:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyo-so/cli",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "Kyo-so: MCP-native, ACP-powered multi-agent review gates for AI coding workflows.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "repository": {
@@ -25,10 +25,12 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "bin": {
28
- "kyoso": "dist/bin/kyoso.js"
28
+ "kyoso": "dist/bin/kyoso.js",
29
+ "kyoso-budget-report": "scripts/review-budget-report.mjs"
29
30
  },
30
31
  "files": [
31
32
  "dist",
33
+ "scripts/review-budget-report.mjs",
32
34
  ".agents/skills/kyoso-review",
33
35
  "examples",
34
36
  "README.md",
@@ -51,12 +53,13 @@
51
53
  "plugin:promote": "node scripts/plugin-promote.mjs",
52
54
  "skill:runtime:verify": "node scripts/verify-skill-runtime.mjs",
53
55
  "audit:runtime:verify": "node scripts/verify-audit-runtime.mjs",
56
+ "audit:budget-report": "node scripts/review-budget-report.mjs",
54
57
  "pack:verify": "node scripts/verify-pack.mjs",
55
58
  "prepack": "bun run build"
56
59
  },
57
60
  "dependencies": {
58
61
  "@agentclientprotocol/sdk": "1.2.1",
59
- "@modelcontextprotocol/server": "2.0.0-beta.3",
62
+ "@modelcontextprotocol/server": "2.0.0-beta.4",
60
63
  "smol-toml": "1.7.0",
61
64
  "typescript": "6.0.3",
62
65
  "zod": "4.4.3"