terminal-pilot 0.0.32 → 0.0.33

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.
@@ -5529,7 +5529,6 @@ import path8 from "node:path";
5529
5529
  import os2 from "node:os";
5530
5530
  import path9 from "node:path";
5531
5531
  import * as nodeFs from "node:fs/promises";
5532
- import { readFile as readFile2 } from "node:fs/promises";
5533
5532
  var DEFAULT_INSTALL_AGENT = "claude-code";
5534
5533
  var DEFAULT_INSTALL_SCOPE = "local";
5535
5534
  var TERMINAL_PILOT_SKILL_NAME = "terminal-pilot";
@@ -5572,19 +5571,15 @@ async function loadTerminalPilotTemplate() {
5572
5571
  if (terminalPilotTemplateCache !== void 0) {
5573
5572
  return terminalPilotTemplateCache;
5574
5573
  }
5575
- const candidates = [
5576
- new URL("./templates/terminal-pilot.md", import.meta.url),
5577
- new URL("../templates/terminal-pilot.md", import.meta.url),
5578
- new URL("../../../agent-skill-config/src/templates/terminal-pilot.md", import.meta.url)
5579
- ];
5580
- for (const candidate of candidates) {
5581
- try {
5582
- terminalPilotTemplateCache = await readFile2(candidate, "utf8");
5583
- return terminalPilotTemplateCache;
5584
- } catch (error2) {
5585
- if (!isNotFoundError(error2)) {
5586
- throw error2;
5587
- }
5574
+ try {
5575
+ terminalPilotTemplateCache = await nodeFs.readFile(
5576
+ new URL("../templates/terminal-pilot.md", import.meta.url),
5577
+ "utf8"
5578
+ );
5579
+ return terminalPilotTemplateCache;
5580
+ } catch (error2) {
5581
+ if (!isNotFoundError(error2)) {
5582
+ throw error2;
5588
5583
  }
5589
5584
  }
5590
5585
  throw new UserError("terminal-pilot skill template is missing.");