@dotobokuri/fleet-console 1.42.0 → 1.43.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.
|
@@ -43611,15 +43611,10 @@ function buildClaudeNativeArgs(context) {
|
|
|
43611
43611
|
pluginRoot
|
|
43612
43612
|
]),
|
|
43613
43613
|
...context.mcpServers.length > 0 ? ["--mcp-config", buildClaudeMcpConfig(context.mcpServers)] : [],
|
|
43614
|
-
...buildDisallowedAgentToolArgs(context.disallowedAgentTools),
|
|
43615
43614
|
...buildCustomAgentsArgs(context.customAgents),
|
|
43616
43615
|
"--dangerously-skip-permissions"
|
|
43617
43616
|
];
|
|
43618
43617
|
}
|
|
43619
|
-
function buildDisallowedAgentToolArgs(tools) {
|
|
43620
|
-
if (tools === void 0 || tools.length === 0) return [];
|
|
43621
|
-
return ["--disallowedTools", ...tools];
|
|
43622
|
-
}
|
|
43623
43618
|
function buildCustomAgentsArgs(agents) {
|
|
43624
43619
|
if (agents === void 0 || Object.keys(agents).length === 0) return [];
|
|
43625
43620
|
return ["--agents", JSON.stringify(agents)];
|
|
@@ -43746,12 +43741,6 @@ function requireCodexProfileName(context) {
|
|
|
43746
43741
|
}
|
|
43747
43742
|
|
|
43748
43743
|
// ../../packages/fleet-admiral/src/agent-cli/gateway-agents.ts
|
|
43749
|
-
var GATEWAY_DISABLED_BUILTIN_AGENTS = [
|
|
43750
|
-
"claude",
|
|
43751
|
-
"Explore",
|
|
43752
|
-
"general-purpose",
|
|
43753
|
-
"Plan"
|
|
43754
|
-
];
|
|
43755
43744
|
var GENERAL_PURPOSE_AGENT_PROMPT = [
|
|
43756
43745
|
"You are an agent for Claude Code, Anthropic's official CLI for Claude. Given the user's message, you should use the tools available to complete the task. Complete the task fully\u2014don't gold-plate, but don't leave it half-done.",
|
|
43757
43746
|
"When you complete the task, respond with a concise report covering what was done and any key findings \u2014 the caller will relay this to the user, so it only needs the essentials.",
|
|
@@ -43796,12 +43785,6 @@ function buildGatewayCustomAgents(exposed) {
|
|
|
43796
43785
|
}
|
|
43797
43786
|
return agents;
|
|
43798
43787
|
}
|
|
43799
|
-
function buildGatewayDisallowedAgentTools(agentTypes = GATEWAY_DISABLED_BUILTIN_AGENTS) {
|
|
43800
|
-
return agentTypes.flatMap((agentType) => [
|
|
43801
|
-
`Task(${agentType})`,
|
|
43802
|
-
`Agent(${agentType})`
|
|
43803
|
-
]);
|
|
43804
|
-
}
|
|
43805
43788
|
function toGatewayAgentName(modelId, effort) {
|
|
43806
43789
|
const stripped = modelId.startsWith("claude-gateway--") ? modelId.slice("claude-gateway--".length) : modelId;
|
|
43807
43790
|
const base = stripped.replace(/\[1m\]/g, "-1m").replace(/[^A-Za-z0-9]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
@@ -44907,10 +44890,7 @@ async function injectAgentCliProfile(profile, options) {
|
|
|
44907
44890
|
options.dedicatedMcpSession.releaseSessionToken(tokenLabel);
|
|
44908
44891
|
});
|
|
44909
44892
|
options.onCleanup?.(cleanup);
|
|
44910
|
-
const gatewayAgents = profile.id === "claude-gateway" ? {
|
|
44911
|
-
customAgents: buildGatewayCustomAgents(options.gatewayExposedModels ?? []),
|
|
44912
|
-
disallowedAgentTools: buildGatewayDisallowedAgentTools()
|
|
44913
|
-
} : {};
|
|
44893
|
+
const gatewayAgents = profile.id === "claude-gateway" ? { customAgents: buildGatewayCustomAgents(options.gatewayExposedModels ?? []) } : {};
|
|
44914
44894
|
const context = {
|
|
44915
44895
|
cliId: profile.id,
|
|
44916
44896
|
mcpServers,
|
package/package.json
CHANGED