*/
export function getSkillSyntheticToolCallId(eventId: string | undefined, data: ICopilotSkillInvokedData): string {
return `synth-skill-${eventId}`;
}
const seed = data.path ?? data.name;
}
/**
Frontier kind: Code frontier
unlabeled · c_3a28981b46d9
4 tests · 18353 LOC · 67 files · introduces 0 tests · 32 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/htmlContent.test|title=htmlContent escapeMarkdownLinkLabel does not escape characters that are safe in link text|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/htmlContent.test|title=htmlContent escapeMarkdownLinkLabel escapes only `\` and `]`|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/htmlContent.test|title=htmlContent escapeMarkdownLinkLabel passes plain text through unchanged|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/commandLineHelpers.test|title=stripRedundantCdPrefix matches backslash extracted dir against backslash native wd on Windows|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/common/commandLineHelpers.test|title=stripRedundantCdPrefix matches mixed path separators (forward-slash extracted vs native fsPath wd)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 32 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
*/
export function getSkillSyntheticToolCallId(eventId: string | undefined, data: ICopilotSkillInvokedData): string {
return `synth-skill-${eventId}`;
}
const seed = data.path ?? data.name;
}
/**
*/
export function synthesizeSkillToolCall(
eventId: string | undefined,
): ISynthesizedSkillToolCall {
const toolCallId = getSkillSyntheticToolCallId(eventId, data);
const displayName = localize('toolName.skill', "Read Skill");
// Use the skill name as the link text rather than the basename: every skill
// file is named SKILL.md, so `Reading skill [plan]` reads better than the
// always-identical `Reading skill [SKILL.md]`. The client may further upgrade
// this link to a rich pill based on the `SKILL.md` basename. Skill names and
// paths come from the SDK / agent host and are escaped to prevent markdown
// injection from a malicious skill author.
// Escape only the characters that would break out of markdown link text
// syntax (`\` and `]`); a full markdown escape would leave visible
// backslashes in renderers (like the skill pill) that extract link text
// without re-parsing markdown.
const escapedName = escapeMarkdownLinkLabel(data.name);
const skillLink = data.path ? `[${escapedName}](${URI.file(data.path)})` : undefined;
const invocationMessage: StringOrMarkdown = skillLink
? md(localize('toolInvoke.skill', "Reading skill {0}", skillLink))
: localize('toolInvoke.skillName', "Reading skill {0}", data.name);
? md(localize('toolComplete.skill', "Read skill {0}", skillLink))
: localize('toolComplete.skillName', "Read skill {0}", data.name);
toolCallId,
toolName: CopilotToolName.Skill,
displayName,
invocationMessage,
pastTenseMessage,
};
}
export function getToolInputString(toolName: string, parameters: Record<string, unknown> | undefined, rawArguments: string | undefined): string | undefined {