import { type HostToolSet, type RemoteMCPToolSourceConfig, type RemoteToolSource } from "../../tool/index.js"; import { type AgentServiceMcpServerConfig } from "../service/mcp-server-config.js"; import type { RuntimeLoadSkillToolContext } from "../runtime/load-skill-tool.js"; import type { RuntimeProjectSteeringLookup } from "../runtime/project-skill-catalog.js"; import { type RuntimeSkillDefinition } from "../runtime/skill-metadata.js"; import type { ResolvedSkillSelectorSnapshot } from "../../skill/selector.js"; import type { RuntimeAgentMarkdownDefinition } from "../runtime/agent-definition.js"; import type { RuntimeClientProfile } from "../runtime/client-profile.js"; import type { DefaultHostedChildAgentExecutionConfig, DefaultHostedInvokeAgentContext } from "./default-invoke-agent-tool.js"; import type { HostedChildRunIdentifiers } from "./child-status.js"; import type { HostedProjectSkillIdsContext } from "./project-steering-adapter.js"; import { type NodeVeryfrontCloudAgentServiceContext } from "./cloud-agent-config.js"; /** * Task context carried through a hosted child agent run. Combines the invoke-agent * base context with skill/tool availability fields. */ export type ChildRunContext = DefaultHostedInvokeAgentContext & Pick & { clientProfile?: RuntimeClientProfile | null; }; /** * Resolves the effective MCP server list by intersecting service-level options * with optional per-agent overrides. */ export declare function resolveMcpServers(options: { mcpServers?: readonly AgentServiceMcpServerConfig[]; createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource; }, agentConfig?: Pick): readonly AgentServiceMcpServerConfig[]; /** * Returns the set of host tools visible to the given agent scope, excluding * shared skill infrastructure tools (load_skill_reference, execute_skill_script). */ export declare function getDiscoveredHostTools(scope?: { agentId?: string; }): HostToolSet; /** Fetches the project instructions for the given agent id and lookup context. */ export declare function getProjectInstructions(context: NodeVeryfrontCloudAgentServiceContext, lookup: RuntimeProjectSteeringLookup, agentId?: string): Promise; /** Fetches the resolved skill definitions for the given agent id and lookup context. */ export declare function getSkillsConfig(context: NodeVeryfrontCloudAgentServiceContext, lookup: RuntimeProjectSteeringLookup, agentId?: string): Promise; /** Creates the load_skill tool scoped to the given tool context. */ export declare function createLoadSkillTool(context: NodeVeryfrontCloudAgentServiceContext, toolContext: RuntimeLoadSkillToolContext): import("../../tool/types.js").Tool; }> | import("../../extensions/schema/schema-validator.js").InferShape<{ skillId: import("../../internal-agents/schema.js").Schema; file: import("../../internal-agents/schema.js").Schema; }> | import("../../extensions/schema/schema-validator.js").InferShape<{ inventory: import("../../internal-agents/schema.js").Schema; }>>; }> | import("../../extensions/schema/schema-validator.js").InferShape<{ load: import("../../internal-agents/schema.js").Schema; file: import("../../internal-agents/schema.js").Schema; }>>; }>, import("../index.js").RuntimeLoadSkillToolOutput>; /** Refreshes the project skill ids for the given skill context. */ export declare function refreshProjectSkillIds(context: NodeVeryfrontCloudAgentServiceContext, skillContext: HostedProjectSkillIdsContext): Promise; /** Sets filtered trace attributes on the active span. */ export declare function setFilteredTraceAttributes(context: NodeVeryfrontCloudAgentServiceContext, attributes: Record): void; /** Resolves the effective tool name allowlist for a hosted child agent run. */ export declare function resolveHostedChildToolNames(agentConfig: RuntimeAgentMarkdownDefinition, skillSelectorSnapshot?: Pick, "allowedSkillIds">): string[] | undefined; /** Builds host tools for a configured hosted child run. */ export declare function buildHostedChildGlobalTools(context: NodeVeryfrontCloudAgentServiceContext, input: { childAgentId: string; childConfig?: DefaultHostedChildAgentExecutionConfig; childToolContext: ChildRunContext; }): HostToolSet; /** Builds the child run context for a nested hosted agent invocation. */ export declare function buildHostedChildToolContext(globalToolContext: ChildRunContext, childAgentId: string, childConfig: DefaultHostedChildAgentExecutionConfig | undefined, durableChildRun?: HostedChildRunIdentifiers): ChildRunContext; /** Fetches project steering for a given project / auth / branch combination. */ export declare function fetchProjectSteering(context: NodeVeryfrontCloudAgentServiceContext, input: { projectId: string | null; authToken: string; branchId?: string | null; }, agentId?: string): Promise; /** Resolves the execution config for a hosted child agent invocation. */ export declare function resolveHostedChildAgentExecutionConfig(context: NodeVeryfrontCloudAgentServiceContext, taskContext: ChildRunContext, childAgentId: string, projectId: string): Promise; /** Creates the invoke_agent tool for the given child context. */ export declare function createInvokeAgentTool(context: NodeVeryfrontCloudAgentServiceContext, childContext: ChildRunContext, options?: { requireDurable?: boolean; }): import("../../tool/types.js").Tool; /** Builds the set of delegate agent tools for the given delegate ids. */ export declare function buildHostedDelegateTools(context: NodeVeryfrontCloudAgentServiceContext, input: { delegates: readonly string[]; selfId: string; taskContext: ChildRunContext; }): HostToolSet; /** The shape of a hosted delegation binding (fixed-target vs. generic). */ export type HostedDelegationBinding = { kind: "scoped"; delegateIds: string[]; } | { kind: "generic"; }; /** * Resolves the delegation binding from an agent config. Agents with an explicit * `delegates` list use scoped delegation; all others use generic invoke_agent. */ export declare function resolveHostedDelegationBinding(agentConfig: RuntimeAgentMarkdownDefinition | undefined): HostedDelegationBinding; //# sourceMappingURL=cloud-agent-child-tools.d.ts.map