@dotobokuri/fleet-console 1.42.0 → 1.44.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,29 +43741,20 @@ 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
|
-
"You are
|
|
43757
|
-
|
|
43745
|
+
"You are a Fleet execution agent. Do the assigned work directly; do not re-delegate the whole assignment.",
|
|
43746
|
+
'Treat host objective/scope/constraints/references as binding contracts. Do not silently re-plan, expand scope, or substitute a "cleaner" design \u2014 finish as instructed, then optionally suggest alternatives. On ambiguity or conflict, stop and report the blocker instead of guessing.',
|
|
43758
43747
|
"",
|
|
43759
|
-
"
|
|
43760
|
-
"-
|
|
43761
|
-
"-
|
|
43762
|
-
"-
|
|
43763
|
-
"-
|
|
43748
|
+
"Pick ONE mode from the task and stay in it:",
|
|
43749
|
+
"- recon: read-only facts; least-invasive evidence path; cite path:line; depth=medium unless the host asks for thorough",
|
|
43750
|
+
"- decide: read-only; one simplest viable recommendation; no implementation checklist",
|
|
43751
|
+
"- implement: edit within scope; verify what you changed; report compliance and any deviations",
|
|
43752
|
+
"- verify: hunt real defects with evidence+impact; PASS/FAIL; fix only if asked",
|
|
43764
43753
|
"",
|
|
43765
|
-
"
|
|
43766
|
-
"
|
|
43767
|
-
"
|
|
43768
|
-
"
|
|
43769
|
-
"- NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one.",
|
|
43770
|
-
"- NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested.",
|
|
43771
|
-
"- You are already the dedicated agent for this task. Do the work directly \u2014 do not re-delegate your entire assignment to another single subagent."
|
|
43754
|
+
"Search only as needed for the chosen mode. Prefer known paths over broad sweeps. Do not default to exhaustive multi-strategy hunting.",
|
|
43755
|
+
"NEVER create files unless they are absolutely necessary. ALWAYS prefer editing an existing file to creating a new one.",
|
|
43756
|
+
"NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested.",
|
|
43757
|
+
"Final reply: concise essentials only \u2014 mode, what changed or found, key evidence (path:line when relevant), and blockers/deviations."
|
|
43772
43758
|
].join("\n");
|
|
43773
43759
|
function buildGatewayCustomAgents(exposed) {
|
|
43774
43760
|
const agents = {};
|
|
@@ -43796,12 +43782,6 @@ function buildGatewayCustomAgents(exposed) {
|
|
|
43796
43782
|
}
|
|
43797
43783
|
return agents;
|
|
43798
43784
|
}
|
|
43799
|
-
function buildGatewayDisallowedAgentTools(agentTypes = GATEWAY_DISABLED_BUILTIN_AGENTS) {
|
|
43800
|
-
return agentTypes.flatMap((agentType) => [
|
|
43801
|
-
`Task(${agentType})`,
|
|
43802
|
-
`Agent(${agentType})`
|
|
43803
|
-
]);
|
|
43804
|
-
}
|
|
43805
43785
|
function toGatewayAgentName(modelId, effort) {
|
|
43806
43786
|
const stripped = modelId.startsWith("claude-gateway--") ? modelId.slice("claude-gateway--".length) : modelId;
|
|
43807
43787
|
const base = stripped.replace(/\[1m\]/g, "-1m").replace(/[^A-Za-z0-9]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
@@ -44907,10 +44887,7 @@ async function injectAgentCliProfile(profile, options) {
|
|
|
44907
44887
|
options.dedicatedMcpSession.releaseSessionToken(tokenLabel);
|
|
44908
44888
|
});
|
|
44909
44889
|
options.onCleanup?.(cleanup);
|
|
44910
|
-
const gatewayAgents = profile.id === "claude-gateway" ? {
|
|
44911
|
-
customAgents: buildGatewayCustomAgents(options.gatewayExposedModels ?? []),
|
|
44912
|
-
disallowedAgentTools: buildGatewayDisallowedAgentTools()
|
|
44913
|
-
} : {};
|
|
44890
|
+
const gatewayAgents = profile.id === "claude-gateway" ? { customAgents: buildGatewayCustomAgents(options.gatewayExposedModels ?? []) } : {};
|
|
44914
44891
|
const context = {
|
|
44915
44892
|
cliId: profile.id,
|
|
44916
44893
|
mcpServers,
|
package/package.json
CHANGED