import { type BaseParams, NodeData } from './base'; import type { ContextItemData } from './types'; /** * Identity of one Agent Skill, as a turn carries it. * * Every field is supplied verbatim by the backend descriptor. Nothing here is * ever parsed to infer type, provider, capability or scope — `selectionId`, * `providerId` and `handle` are opaque strings that only ever get compared and * echoed back. */ export interface AgentSkillReference { /** * Server-issued selection id, copied verbatim from the catalog descriptor's * own `selectionId` field. * * The only identity the backend resolves an attachment by. A client must * never compute it: the server issues it as a SHA-256 over facts a client * does not own, and re-implementing that formula here would couple every * client to the server-side detail the opaque id exists to hide. So the value * is only ever read off a descriptor, stored, and sent back unchanged. */ selectionId: string; /** Identity of the provider that owns the skill package. */ providerId: string; /** Provider-local handle of the skill package. */ handle: string; /** Content revision the attachment was pinned to. */ revision: string; /** Display name shown on the attachment tag. */ displayName: string; } export interface CreateAgentSkillContextParams extends BaseParams, AgentSkillReference { } /** * The node id of an Agent Skill attachment: its `selectionId`, unchanged. * * Identity here is the server's, not a key composed locally. The backend reads * an attachment's identity out of this id, so anything composed on the client * is an id it cannot resolve — which is why this returns the selection id * rather than deriving one. The result is still never parsed: no reader may * take it apart to recover a provider, a handle, or anything else. * * Re-pinning a moved revision still updates an existing tag instead of adding a * second one, because a selection id names the package rather than the content * revision it currently serves. */ export declare function agentSkillNodeId(reference: Pick): string; /** * Context item for an Agent Skill attached to a turn with "/". * * Deliberately a distinct type from {@link SkillNodeData}: that one means a * Reference Library item, and attaching one can auto-approve the tools the * item declares. An Agent Skill grants no tool permission whatsoever — it * carries identity only, and the backend loads the body server-side. The two * must never be collapsed into one type, or the Reference Library's * allowed-tools behaviour would silently follow Agent Skills. */ export declare class AgentSkillNodeData extends NodeData { selectionId: string; providerId: string; handle: string; revision: string; displayName: string; constructor(params: CreateAgentSkillContextParams); /** The reference a request carries. Never a skill body — the backend preloads that. */ get reference(): AgentSkillReference; formatForLLM(codeElementIds?: string[]): ContextItemData; } //# sourceMappingURL=agentSkill.d.ts.map