terminal-pilot 0.0.22 → 0.0.24

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.
@@ -67,6 +67,23 @@ var codexAgent = {
67
67
  }
68
68
  };
69
69
 
70
+ // ../agent-defs/src/agents/cursor.ts
71
+ var cursorAgent = {
72
+ id: "cursor",
73
+ name: "cursor",
74
+ aliases: ["cursor-agent"],
75
+ label: "Cursor",
76
+ summary: "Cursor's CLI coding agent.",
77
+ binaryName: "cursor-agent",
78
+ configPath: "~/.cursor/cli-config.json",
79
+ branding: {
80
+ colors: {
81
+ dark: "#FFFFFF",
82
+ light: "#000000"
83
+ }
84
+ }
85
+ };
86
+
70
87
  // ../agent-defs/src/agents/gemini-cli.ts
71
88
  var geminiCliAgent = {
72
89
  id: "gemini-cli",
@@ -181,6 +198,7 @@ var allAgents = Object.freeze([
181
198
  freezeAgent(claudeCodeAgent),
182
199
  freezeAgent(claudeDesktopAgent),
183
200
  freezeAgent(codexAgent),
201
+ freezeAgent(cursorAgent),
184
202
  freezeAgent(geminiCliAgent),
185
203
  freezeAgent(openCodeAgent),
186
204
  freezeAgent(kimiAgent),
@@ -214,6 +232,10 @@ var agentSkillConfigs = {
214
232
  globalSkillDir: "~/.codex/skills",
215
233
  localSkillDir: ".codex/skills"
216
234
  },
235
+ cursor: {
236
+ globalSkillDir: "~/.cursor/skills-cursor",
237
+ localSkillDir: ".cursor/skills"
238
+ },
217
239
  "gemini-cli": {
218
240
  globalSkillDir: "~/.gemini/skills",
219
241
  localSkillDir: ".gemini/skills"
@@ -1758,9 +1780,14 @@ function resolvePath(rawPath, homeDir, pathMapper) {
1758
1780
  return filename.length === 0 ? mappedDirectory : path2.join(mappedDirectory, filename);
1759
1781
  }
1760
1782
 
1783
+ // ../config-mutations/src/error-codes.ts
1784
+ function hasOwnErrorCode(error2, code) {
1785
+ return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
1786
+ }
1787
+
1761
1788
  // ../config-mutations/src/fs-utils.ts
1762
1789
  function isNotFound(error2) {
1763
- return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "ENOENT";
1790
+ return hasOwnErrorCode(error2, "ENOENT");
1764
1791
  }
1765
1792
  async function readFileIfExists(fs3, target) {
1766
1793
  try {
@@ -1817,7 +1844,7 @@ async function backupInvalidDocument(context, targetPath, content) {
1817
1844
  }
1818
1845
  }
1819
1846
  function isAlreadyExists(error2) {
1820
- return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "EEXIST";
1847
+ return hasOwnErrorCode(error2, "EEXIST");
1821
1848
  }
1822
1849
  async function assertRegularWriteTarget(context, targetPath) {
1823
1850
  const boundary = path3.dirname(path3.resolve(context.homeDir));
@@ -2544,6 +2571,11 @@ async function executeMutation(mutation, context, options) {
2544
2571
  }
2545
2572
  }
2546
2573
 
2574
+ // ../agent-skill-config/src/error-codes.ts
2575
+ function hasOwnErrorCode2(error2, code) {
2576
+ return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
2577
+ }
2578
+
2547
2579
  // ../agent-skill-config/src/templates.ts
2548
2580
  import { readFile, stat } from "node:fs/promises";
2549
2581
  import path4 from "node:path";
@@ -2568,7 +2600,7 @@ async function pathExists2(fs3, targetPath) {
2568
2600
  await fs3.stat(targetPath);
2569
2601
  return true;
2570
2602
  } catch (error2) {
2571
- if (typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "ENOENT") {
2603
+ if (hasOwnErrorCode2(error2, "ENOENT")) {
2572
2604
  return false;
2573
2605
  }
2574
2606
  throw error2;
@@ -3056,7 +3088,7 @@ import * as nodeFs from "node:fs/promises";
3056
3088
  import { readFile as readFile2 } from "node:fs/promises";
3057
3089
 
3058
3090
  // src/errors.ts
3059
- function hasOwnErrorCode(error2, code) {
3091
+ function hasOwnErrorCode3(error2, code) {
3060
3092
  return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
3061
3093
  }
3062
3094
 
@@ -3066,7 +3098,7 @@ var DEFAULT_INSTALL_SCOPE = "local";
3066
3098
  var TERMINAL_PILOT_SKILL_NAME = "terminal-pilot";
3067
3099
  var installableAgents = supportedAgents;
3068
3100
  function isNotFoundError(error2) {
3069
- return hasOwnErrorCode(error2, "ENOENT");
3101
+ return hasOwnErrorCode3(error2, "ENOENT");
3070
3102
  }
3071
3103
  function resolveInstallerServices(installer) {
3072
3104
  return {