update
This commit is contained in:
1 parent
f482f25856
commit
d126c4cf21
165 files changed
+123
-541297
No files matched your search
@@ -24,24 +24,12 @@ function connectorAuthSpec(connectorId: ConnectorId, command: string) {
|
||||
shellCommand: `${quoteShell(command)} auth login`,
|
||||
intro: "AgentCompany is opening the Claude Code login flow.",
|
||||
};
|
||||
case "opencode_local":
|
||||
return {
|
||||
title: "OpenCode Login",
|
||||
shellCommand: `${quoteShell(command)} auth login`,
|
||||
intro: "AgentCompany is opening the OpenCode provider login flow.",
|
||||
};
|
||||
case "gemini_local":
|
||||
return {
|
||||
title: "Gemini CLI Login",
|
||||
shellCommand: `${quoteShell(command)}`,
|
||||
intro: "AgentCompany is opening Gemini CLI. If authentication is required, use /auth in the Gemini session.",
|
||||
};
|
||||
case "kimi_local":
|
||||
return {
|
||||
title: "Kimi Code Login",
|
||||
shellCommand: `${quoteShell(command)}`,
|
||||
intro: "AgentCompany is opening Kimi Code. Complete the interactive login flow there if prompted.",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-55
@@ -9,10 +9,6 @@ import {
|
||||
import { execute as codexExecute, sessionCodec as codexSessionCodec, testEnvironment as codexTestEnvironment } from "@agentcompany/adapter-codex-local/server";
|
||||
import { agentConfigurationDoc as geminiDoc, DEFAULT_GEMINI_LOCAL_MODEL, models as geminiModels } from "@agentcompany/adapter-gemini-local";
|
||||
import { execute as geminiExecute, sessionCodec as geminiSessionCodec, testEnvironment as geminiTestEnvironment } from "@agentcompany/adapter-gemini-local/server";
|
||||
import { agentConfigurationDoc as kimiDoc, DEFAULT_KIMI_LOCAL_MODEL, models as kimiModels } from "@agentcompany/adapter-kimi-local";
|
||||
import { execute as kimiExecute, testEnvironment as kimiTestEnvironment } from "@agentcompany/adapter-kimi-local/server";
|
||||
import { agentConfigurationDoc as opencodeDoc } from "@agentcompany/adapter-opencode-local";
|
||||
import { execute as opencodeExecute, listOpenCodeModels, sessionCodec as opencodeSessionCodec, testEnvironment as opencodeTestEnvironment } from "@agentcompany/adapter-opencode-local/server";
|
||||
import type { CapabilityMatrix, ConnectorId, ConnectorRecord } from "@shared/types";
|
||||
|
||||
const RESERVED_ENV_BINDING_KEYS = new Set([
|
||||
@@ -47,7 +43,7 @@ const CONNECTORS: ConnectorDefinition[] = [
|
||||
description: "Local Codex CLI with session resume, structured event parsing, and model selection.",
|
||||
defaultCommand: "codex",
|
||||
defaultModel: DEFAULT_CODEX_LOCAL_MODEL,
|
||||
notes: "Best fit for high-context coding tasks and shell-heavy automation.",
|
||||
notes: "",
|
||||
capabilityMatrix: {
|
||||
sessionResume: true,
|
||||
gracefulCancel: true,
|
||||
@@ -71,7 +67,7 @@ const CONNECTORS: ConnectorDefinition[] = [
|
||||
description: "Local Claude Code CLI with session persistence and structured result parsing.",
|
||||
defaultCommand: "claude",
|
||||
defaultModel: claudeModels[0]?.id ?? null,
|
||||
notes: "Useful for long-running coding sessions and agent-style loops.",
|
||||
notes: "",
|
||||
capabilityMatrix: {
|
||||
sessionResume: true,
|
||||
gracefulCancel: true,
|
||||
@@ -95,7 +91,7 @@ const CONNECTORS: ConnectorDefinition[] = [
|
||||
description: "Local Gemini CLI with resume support and JSON event parsing.",
|
||||
defaultCommand: "gemini",
|
||||
defaultModel: DEFAULT_GEMINI_LOCAL_MODEL,
|
||||
notes: "Good for multi-provider local workflows when Google auth is already in place.",
|
||||
notes: "",
|
||||
capabilityMatrix: {
|
||||
sessionResume: true,
|
||||
gracefulCancel: true,
|
||||
@@ -113,54 +109,6 @@ const CONNECTORS: ConnectorDefinition[] = [
|
||||
},
|
||||
listModels: async () => geminiModels,
|
||||
},
|
||||
{
|
||||
id: "opencode_local",
|
||||
label: "OpenCode",
|
||||
description: "Local OpenCode runtime with provider/model routing and session restore.",
|
||||
defaultCommand: "opencode",
|
||||
defaultModel: null,
|
||||
notes: "Best when model routing belongs to the runtime rather than the app.",
|
||||
capabilityMatrix: {
|
||||
sessionResume: true,
|
||||
gracefulCancel: true,
|
||||
modelDiscovery: true,
|
||||
structuredTranscript: true,
|
||||
costAttribution: true,
|
||||
},
|
||||
configurationDoc: opencodeDoc,
|
||||
module: {
|
||||
type: "opencode_local",
|
||||
execute: opencodeExecute,
|
||||
testEnvironment: opencodeTestEnvironment,
|
||||
sessionCodec: opencodeSessionCodec,
|
||||
models: [],
|
||||
listModels: listOpenCodeModels,
|
||||
},
|
||||
listModels: listOpenCodeModels,
|
||||
},
|
||||
{
|
||||
id: "kimi_local",
|
||||
label: "Kimi Code",
|
||||
description: "Official Kimi Code CLI surfaced through a generic execution contract with explicit capability downgrade.",
|
||||
defaultCommand: "kimi",
|
||||
defaultModel: DEFAULT_KIMI_LOCAL_MODEL,
|
||||
notes: "MVP support is explicit generic mode until richer runtime contract evidence is implemented.",
|
||||
capabilityMatrix: {
|
||||
sessionResume: false,
|
||||
gracefulCancel: false,
|
||||
modelDiscovery: false,
|
||||
structuredTranscript: false,
|
||||
costAttribution: false,
|
||||
},
|
||||
configurationDoc: kimiDoc,
|
||||
module: {
|
||||
type: "kimi_local",
|
||||
execute: kimiExecute,
|
||||
testEnvironment: kimiTestEnvironment,
|
||||
models: kimiModels,
|
||||
},
|
||||
listModels: async () => kimiModels,
|
||||
},
|
||||
];
|
||||
|
||||
export function getConnectorDefinition(id: ConnectorId): ConnectorDefinition {
|
||||
|
||||
@@ -124,12 +124,6 @@ function buildConnectorExecutionConfig(job: RunJob, sanitizedEnv: Record<string,
|
||||
approvalMode: "yolo",
|
||||
sandbox: true,
|
||||
};
|
||||
case "kimi_local":
|
||||
return {
|
||||
...baseConfig,
|
||||
extraArgs: ["--yolo"],
|
||||
};
|
||||
case "opencode_local":
|
||||
default:
|
||||
return baseConfig;
|
||||
}
|
||||
|
||||
@@ -702,7 +702,7 @@ Body: {
|
||||
"title": "Descriptive title",
|
||||
"department": "engineering|product|marketing|sales|hr|finance|legal|operations|customer_support|research|design|executive",
|
||||
"reportsTo": "{managerAgentId — who this person reports to}",
|
||||
"connectorId": "codex_local|claude_local|gemini_local|opencode_local|kimi_local",
|
||||
"connectorId": "codex_local|claude_local|gemini_local",
|
||||
"workspaceId": "{optionalWorkspaceId}",
|
||||
"model": "model-identifier",
|
||||
"capabilities": "Detailed description of what this hire should own and be able to do",
|
||||
|
||||
Reference in new issue
Block a user