@kyo-so/cli 0.4.1 → 0.6.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 +58 -0
- package/README.ja.md +55 -18
- package/README.md +59 -19
- package/README.zh-CN.md +55 -18
- package/dist/acp/FakeAgentManager.d.ts +13 -1
- package/dist/acp/prompts.d.ts +2 -1
- package/dist/aggregate/aggregateFindings.d.ts +5 -2
- package/dist/bin/kyoso.js +2112 -213
- package/dist/cli/doctor.d.ts +1 -0
- package/dist/config/loadConfig.d.ts +8 -0
- package/dist/config/projectScope.d.ts +15 -0
- package/dist/config/schema.d.ts +9 -0
- package/dist/config/tomlConfigLoader.d.ts +1 -0
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/types.d.ts +21 -1
- package/dist/core/verification.d.ts +24 -0
- package/dist/index.js +1996 -130
- package/dist/judge/prompt.d.ts +7 -2
- package/dist/judge/provider.d.ts +7 -1
- package/examples/claude-only.toml +2 -0
- package/examples/codex-only.toml +2 -0
- package/examples/kyoso.toml +11 -0
- package/package.json +2 -1
- package/examples/claude-only.config.ts +0 -9
- package/examples/codex-only.config.ts +0 -9
- package/examples/kyoso.config.ts +0 -22
package/dist/judge/prompt.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type { KyosoResult, ReviewTool } from "../core/types.js";
|
|
2
|
-
export declare function buildJudgePrompt(tool: ReviewTool, result: Omit<KyosoResult, "summaryMarkdown">, summaryText: string
|
|
1
|
+
import type { CrossModelAnalysis, KyosoResult, NormalizedAgentOpinion, ReviewTool } from "../core/types.js";
|
|
2
|
+
export declare function buildJudgePrompt(tool: ReviewTool, result: Omit<KyosoResult, "summaryMarkdown">, summaryText: string, agentFindings: Array<{
|
|
3
|
+
agent: string;
|
|
4
|
+
role: string;
|
|
5
|
+
findings: NormalizedAgentOpinion["findings"];
|
|
6
|
+
}>): string;
|
|
3
7
|
export declare function parseJudgeOutput(text: string, fallbackSummaryText: string): {
|
|
4
8
|
summaryText: string;
|
|
5
9
|
disagreementComments: Array<{
|
|
6
10
|
topic: string;
|
|
7
11
|
judgeComment: string;
|
|
8
12
|
}>;
|
|
13
|
+
analysis?: Omit<CrossModelAnalysis, "provider">;
|
|
9
14
|
};
|
package/dist/judge/provider.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { KyosoConfig } from "../config/schema.js";
|
|
2
|
-
import type { KyosoResult, JudgeProvider, ReviewTool } from "../core/types.js";
|
|
2
|
+
import type { AgentName, CrossModelAnalysis, KyosoResult, JudgeProvider, NormalizedAgentOpinion, ReviewTool } from "../core/types.js";
|
|
3
3
|
export type JudgeOutput = {
|
|
4
4
|
summaryText: string;
|
|
5
5
|
disagreementComments: Array<{
|
|
6
6
|
topic: string;
|
|
7
7
|
judgeComment: string;
|
|
8
8
|
}>;
|
|
9
|
+
analysis?: Omit<CrossModelAnalysis, "provider">;
|
|
9
10
|
};
|
|
10
11
|
export type ResolvedJudgeProvider = Exclude<JudgeProvider, "auto"> | "deterministic_fallback";
|
|
11
12
|
export type JudgeRunResult = {
|
|
@@ -18,6 +19,11 @@ export type JudgeRunInput = {
|
|
|
18
19
|
tool: ReviewTool;
|
|
19
20
|
result: Omit<KyosoResult, "summaryMarkdown">;
|
|
20
21
|
summaryText: string;
|
|
22
|
+
agentFindings: Array<{
|
|
23
|
+
agent: AgentName;
|
|
24
|
+
role: string;
|
|
25
|
+
findings: NormalizedAgentOpinion["findings"];
|
|
26
|
+
}>;
|
|
21
27
|
config: KyosoConfig["judge"];
|
|
22
28
|
requestedProvider?: JudgeProvider;
|
|
23
29
|
env: NodeJS.ProcessEnv;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[network]
|
|
2
|
+
defaultMode = "model_only"
|
|
3
|
+
|
|
4
|
+
[agents.codex]
|
|
5
|
+
# Omit model to use the user's Codex default from ~/.codex/config.toml.
|
|
6
|
+
# model = "gpt-5.5"
|
|
7
|
+
|
|
8
|
+
[agents.claude]
|
|
9
|
+
# Omit model to use the Claude adapter default.
|
|
10
|
+
# model = "claude-sonnet-5"
|
|
11
|
+
timeoutMs = 240000
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyo-so/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@agentclientprotocol/sdk": "1.1.0",
|
|
51
51
|
"@modelcontextprotocol/server": "2.0.0-beta.2",
|
|
52
|
+
"smol-toml": "1.7.0",
|
|
52
53
|
"typescript": "6.0.3",
|
|
53
54
|
"zod": "4.4.3"
|
|
54
55
|
},
|
package/examples/kyoso.config.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "@kyo-so/cli";
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
network: {
|
|
5
|
-
defaultMode: "model_only",
|
|
6
|
-
allowUnrestricted: true,
|
|
7
|
-
},
|
|
8
|
-
agents: {
|
|
9
|
-
codex: {
|
|
10
|
-
// Omit model to use the user's Codex default from ~/.codex/config.toml.
|
|
11
|
-
// model: "gpt-5.5",
|
|
12
|
-
},
|
|
13
|
-
claude: {
|
|
14
|
-
// Omit model to use the Claude adapter default.
|
|
15
|
-
// model: "claude-sonnet-5",
|
|
16
|
-
timeoutMs: 240_000,
|
|
17
|
-
auth: {
|
|
18
|
-
preferApiKey: false,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
});
|