karajan-code 4.13.0 → 4.15.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/README.md +2 -1
- package/docs/README.es.md +2 -1
- package/package.json +3 -3
- package/packages/ai-trash/src/cli.js +3 -1
- package/packages/hu-board/public/utils/formatters.js +1 -1
- package/packages/hu-board/src/cleanup-zombies.js +0 -1
- package/packages/hu-board/src/command-runner.js +0 -1
- package/packages/hu-board/src/config-yaml.js +1 -2
- package/packages/hu-board/src/ephemeral-cleaner.js +0 -2
- package/packages/hu-board/src/plan-mutations.js +0 -1
- package/packages/hu-board/src/preflight.js +1 -1
- package/packages/hu-board/src/routes/api.js +0 -15
- package/packages/hu-board/src/server.js +0 -1
- package/packages/hu-board/src/sync.js +1 -1
- package/packages/hu-board/src/token-store.js +0 -1
- package/packages/hu-board/src/zombie-reaper.js +0 -1
- package/src/agents/agy-agent.js +62 -0
- package/src/agents/claude-agent.js +3 -2
- package/src/agents/codex-agent.js +3 -1
- package/src/agents/index.js +4 -0
- package/src/agents/kimi-agent.js +45 -0
- package/src/checks/ai-surface.js +5 -2
- package/src/checks/binaries.js +29 -1
- package/src/cli/advanced-commands.js +1 -1
- package/src/cli/register-pipeline.js +26 -4
- package/src/commands/check.js +9 -1
- package/src/commands/harden.js +1 -1
- package/src/commands/tournament.js +85 -0
- package/src/config/overrides.js +8 -1
- package/src/harden/config-engine.js +27 -0
- package/src/harden/config-templates.js +8 -3
- package/src/harden/workflow-engine.js +11 -1
- package/src/harden/workflow-templates.js +41 -22
- package/src/prompts/diff-clip.js +27 -0
- package/src/prompts/reviewer.js +8 -2
- package/src/prompts/split-signal.js +82 -0
- package/src/review/one-shot-review.js +44 -10
- package/src/review/reviewer-fallback.js +125 -0
- package/src/roles/reviewer-role.js +9 -8
- package/src/tournament/crown.js +88 -0
- package/src/tournament/judge.js +151 -0
- package/src/tournament/run.js +142 -0
- package/src/tournament/scoreboard.js +124 -0
- package/src/utils/agent-detect.js +31 -2
- package/src/utils/os-detect.js +5 -0
- package/src/utils/role-env.js +2 -1
|
@@ -9,9 +9,38 @@ const KNOWN_AGENTS = [
|
|
|
9
9
|
{ name: "aider", install: getInstallCommand("aider") },
|
|
10
10
|
{ name: "opencode", install: getInstallCommand("opencode") },
|
|
11
11
|
{ name: "qwen", install: getInstallCommand("qwen") },
|
|
12
|
-
{ name: "copilot", install: getInstallCommand("copilot") }
|
|
12
|
+
{ name: "copilot", install: getInstallCommand("copilot") },
|
|
13
|
+
// KJC-TSK-0729: promoted from the observation census once its adapter
|
|
14
|
+
// landed — detecting is not supporting; supporting is.
|
|
15
|
+
{ name: "kimi", install: getInstallCommand("kimi") },
|
|
16
|
+
{ name: "agy", install: getInstallCommand("agy") }
|
|
13
17
|
];
|
|
14
18
|
|
|
19
|
+
/**
|
|
20
|
+
* KJC-TSK-0728 — observation census (from the Orca landscape): agent CLIs kj
|
|
21
|
+
* can SEE but does not drive. Detecting is not supporting — these never feed
|
|
22
|
+
* pipeline pickers; they feed the AI-surface inventory and one doctor line.
|
|
23
|
+
* `bin` differs from `name` when the vendor ships an umbrella binary.
|
|
24
|
+
*/
|
|
25
|
+
const OBSERVED_AGENTS = [
|
|
26
|
+
{ name: "grok", bin: "grok" },
|
|
27
|
+
{ name: "cursor-agent", bin: "cursor-agent" },
|
|
28
|
+
{ name: "pi", bin: "pi" },
|
|
29
|
+
{ name: "kilocode", bin: "kilocode" },
|
|
30
|
+
{ name: "vibe", bin: "vibe" },
|
|
31
|
+
{ name: "rovodev", bin: "acli" },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
/** Probe the observation census in parallel; callers filter on `available`. */
|
|
35
|
+
export async function detectObservedAgents() {
|
|
36
|
+
return Promise.all(
|
|
37
|
+
OBSERVED_AGENTS.map(async (agent) => {
|
|
38
|
+
const check = await checkBinary(agent.bin);
|
|
39
|
+
return { name: agent.name, bin: agent.bin, available: check.ok, version: check.ok ? check.version : null };
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
15
44
|
export async function checkBinary(name, versionArg = "--version") {
|
|
16
45
|
const resolved = resolveBin(name);
|
|
17
46
|
// KJC-BUG-0113: a zombie CLI that hangs on --version (seen with the
|
|
@@ -61,4 +90,4 @@ export function isHostAgent(provider) {
|
|
|
61
90
|
return host !== null && host === provider;
|
|
62
91
|
}
|
|
63
92
|
|
|
64
|
-
export { KNOWN_AGENTS };
|
|
93
|
+
export { KNOWN_AGENTS, OBSERVED_AGENTS };
|
package/src/utils/os-detect.js
CHANGED
|
@@ -56,6 +56,11 @@ const INSTALL_COMMANDS = {
|
|
|
56
56
|
linux: "npm install -g @qwen-code/qwen-code",
|
|
57
57
|
windows: "npm install -g @qwen-code/qwen-code"
|
|
58
58
|
},
|
|
59
|
+
agy: {
|
|
60
|
+
macos: "curl -fsSL https://antigravity.google/cli/install.sh | bash",
|
|
61
|
+
linux: "curl -fsSL https://antigravity.google/cli/install.sh | bash",
|
|
62
|
+
windows: "irm https://antigravity.google/cli/install.ps1 | iex"
|
|
63
|
+
},
|
|
59
64
|
copilot: {
|
|
60
65
|
macos: "npm install -g @github/copilot",
|
|
61
66
|
linux: "npm install -g @github/copilot",
|
package/src/utils/role-env.js
CHANGED
|
@@ -32,8 +32,9 @@ const PREFIXES = [
|
|
|
32
32
|
|
|
33
33
|
// Vars only ONE agent authenticates with — granting them globally would
|
|
34
34
|
// defeat the point (the coder does not need your GitHub token; copilot does).
|
|
35
|
-
const AGENT_EXTRAS = {
|
|
35
|
+
export const AGENT_EXTRAS = {
|
|
36
36
|
copilot: ["GITHUB_", "GH_"],
|
|
37
|
+
kimi: ["KIMI_", "MOONSHOT_"],
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
const matches = (pattern, key) =>
|