@kyo-so/cli 0.14.0 → 0.15.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.
- package/CHANGELOG.md +61 -0
- package/README.ja.md +31 -7
- package/README.md +44 -7
- package/README.zh-CN.md +31 -7
- package/dist/acp/AcpAgentProcess.d.ts +4 -1
- package/dist/acp/AgentOutputAccumulator.d.ts +29 -0
- package/dist/acp/codexRetryUpdate.d.ts +6 -0
- package/dist/bin/kyoso.js +1754 -694
- package/dist/cli/pluginRuntimeContract.d.ts +4 -4
- package/dist/cli/progress.d.ts +5 -0
- package/dist/config/projectScope.d.ts +1 -1
- package/dist/config/schema.d.ts +6 -0
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/errors.d.ts +5 -0
- package/dist/core/progress.d.ts +83 -0
- package/dist/core/progressDispatcher.d.ts +12 -0
- package/dist/core/reviewBudget.d.ts +8 -0
- package/dist/core/runReview.d.ts +4 -0
- package/dist/core/types.d.ts +35 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1520 -661
- package/dist/judge/provider.d.ts +1 -0
- package/dist/judge/signals.d.ts +4 -0
- package/dist/mcp/progress.d.ts +18 -0
- package/dist/utils/env.d.ts +5 -1
- package/examples/kyoso.toml +7 -0
- package/package.json +2 -2
package/dist/judge/provider.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export type JudgeRunInput = {
|
|
|
40
40
|
requestedProvider?: JudgeProvider;
|
|
41
41
|
env: NodeJS.ProcessEnv;
|
|
42
42
|
timeoutMs?: number;
|
|
43
|
+
signal?: AbortSignal;
|
|
43
44
|
};
|
|
44
45
|
export declare function resolveJudgeProvider(provider: JudgeProvider, env: NodeJS.ProcessEnv): ResolvedJudgeProvider;
|
|
45
46
|
export declare function resolveJudgeCallRoute(mode: KyosoConfig["judge"]["mode"], provider: JudgeProvider, env: NodeJS.ProcessEnv): JudgeCallRoute;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReviewProgressEvent, ReviewProgressSink } from "../core/progress.js";
|
|
2
|
+
type McpProgressNotification = {
|
|
3
|
+
method: "notifications/progress";
|
|
4
|
+
params: {
|
|
5
|
+
progressToken: string | number;
|
|
6
|
+
progress: number;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type McpRequestContextLike = {
|
|
11
|
+
_meta?: {
|
|
12
|
+
progressToken?: string | number;
|
|
13
|
+
};
|
|
14
|
+
notify: (notification: McpProgressNotification) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export declare function createMcpProgressSink(mcpReq: McpRequestContextLike): ReviewProgressSink | undefined;
|
|
17
|
+
export declare function formatMcpProgressMessage(event: ReviewProgressEvent): string;
|
|
18
|
+
export {};
|
package/dist/utils/env.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type CodexProvider } from "../config/schema.js";
|
|
1
|
+
import { type CodexProvider, type KyosoConfig } from "../config/schema.js";
|
|
2
2
|
import type { ModelExecutionIdentity } from "../core/types.js";
|
|
3
3
|
export declare const OPENROUTER_API_KEY_ENV = "OPENROUTER_API_KEY";
|
|
4
4
|
export declare const KYOSO_OPENROUTER_PROVIDER_ID = "kyoso-openrouter";
|
|
5
|
+
type CodexOpenRouterOptions = KyosoConfig["agents"]["codex"]["openRouter"];
|
|
5
6
|
export declare class ChildEnvPreflightError extends Error {
|
|
6
7
|
readonly code: "OPENROUTER_KEY_MISSING" | "AGENT_CONFIG_INVALID";
|
|
7
8
|
constructor(code: "OPENROUTER_KEY_MISSING" | "AGENT_CONFIG_INVALID", message: string);
|
|
@@ -10,6 +11,9 @@ type ChildEnvOptions = {
|
|
|
10
11
|
agent?: "codex" | "claude";
|
|
11
12
|
model?: string;
|
|
12
13
|
provider?: CodexProvider;
|
|
14
|
+
openRouter?: CodexOpenRouterOptions;
|
|
15
|
+
/** @internal test-only */
|
|
16
|
+
openRouterBaseUrlForTest?: string;
|
|
13
17
|
preferApiKey?: boolean;
|
|
14
18
|
onCredentialPlaceholderDiscarded?: (key: string) => void;
|
|
15
19
|
onOpenRouterCredentialWithheld?: (key: string) => void;
|
package/examples/kyoso.toml
CHANGED
|
@@ -14,6 +14,13 @@ defaultMode = "model_only"
|
|
|
14
14
|
# provider = "openrouter"
|
|
15
15
|
# model = "openai/o4-mini"
|
|
16
16
|
#
|
|
17
|
+
# Experimental OpenRouter transport retry policy. Omit every field to preserve
|
|
18
|
+
# the installed Codex runtime defaults; 0 explicitly disables a retry class.
|
|
19
|
+
# [agents.codex.openRouter]
|
|
20
|
+
# streamIdleTimeoutMs = 90000
|
|
21
|
+
# streamMaxRetries = 3
|
|
22
|
+
# requestMaxRetries = 2
|
|
23
|
+
#
|
|
17
24
|
# To reset an inherited user-global OpenRouter selection for this project:
|
|
18
25
|
# provider = "default"
|
|
19
26
|
#
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyo-so/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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": {
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/bun": "1.3.14",
|
|
71
|
-
"prettier": "3.9.
|
|
71
|
+
"prettier": "3.9.6"
|
|
72
72
|
}
|
|
73
73
|
}
|