terminal-pilot 0.0.22 → 0.0.23

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.
@@ -19,36 +19,6 @@ export { createTerminalPilotRuntime, SESSION_ENV_VAR } from "./runtime.js";
19
19
  export type { TerminalPilotCommandServices, TerminalPilotRuntime } from "./runtime.js";
20
20
  export declare function createTerminalPilotGroup(): import("toolcraft").Group<TerminalPilotCommandServices> & {
21
21
  readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
22
- readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
23
- readonly local: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
24
- readonly global: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
25
- }>, undefined, {
26
- agent: string;
27
- scope: "local" | "global";
28
- skillPath: string;
29
- }> & {
30
- readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"install", import("toolcraft").ObjectSchema<{
31
- readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
32
- readonly local: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
33
- readonly global: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
34
- }>, {
35
- agent: string;
36
- scope: "local" | "global";
37
- skillPath: string;
38
- }, readonly ["cli"], undefined>;
39
- }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
40
- readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
41
- }>, undefined, {
42
- agent: string;
43
- removedSkillPaths: string[];
44
- }> & {
45
- readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"uninstall", import("toolcraft").ObjectSchema<{
46
- readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
47
- }>, {
48
- agent: string;
49
- removedSkillPaths: string[];
50
- }, readonly ["cli"], undefined>;
51
- }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
52
22
  readonly command: import("toolcraft").StringSchema;
53
23
  readonly args: import("toolcraft").OptionalSchema<import("toolcraft").ArraySchema<import("toolcraft").StringSchema>>;
54
24
  readonly session: import("toolcraft").OptionalSchema<import("toolcraft").StringSchema>;
@@ -238,10 +208,7 @@ export declare function createTerminalPilotGroup(): import("toolcraft").Group<Te
238
208
  pid: number;
239
209
  }>;
240
210
  }, readonly ["cli", "mcp", "sdk"], undefined>;
241
- }], readonly ["cli", "mcp", "sdk"], undefined>;
242
- };
243
- export declare const terminalPilotGroup: Readonly<import("toolcraft").Group<TerminalPilotCommandServices> & {
244
- readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
211
+ }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
245
212
  readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
246
213
  readonly local: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
247
214
  readonly global: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
@@ -271,7 +238,10 @@ export declare const terminalPilotGroup: Readonly<import("toolcraft").Group<Term
271
238
  agent: string;
272
239
  removedSkillPaths: string[];
273
240
  }, readonly ["cli"], undefined>;
274
- }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
241
+ }], readonly ["cli", "mcp", "sdk"], undefined>;
242
+ };
243
+ export declare const terminalPilotGroup: Readonly<import("toolcraft").Group<TerminalPilotCommandServices> & {
244
+ readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
275
245
  readonly command: import("toolcraft").StringSchema;
276
246
  readonly args: import("toolcraft").OptionalSchema<import("toolcraft").ArraySchema<import("toolcraft").StringSchema>>;
277
247
  readonly session: import("toolcraft").OptionalSchema<import("toolcraft").StringSchema>;
@@ -461,5 +431,35 @@ export declare const terminalPilotGroup: Readonly<import("toolcraft").Group<Term
461
431
  pid: number;
462
432
  }>;
463
433
  }, readonly ["cli", "mcp", "sdk"], undefined>;
434
+ }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
435
+ readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
436
+ readonly local: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
437
+ readonly global: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
438
+ }>, undefined, {
439
+ agent: string;
440
+ scope: "local" | "global";
441
+ skillPath: string;
442
+ }> & {
443
+ readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"install", import("toolcraft").ObjectSchema<{
444
+ readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
445
+ readonly local: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
446
+ readonly global: import("toolcraft").OptionalSchema<import("toolcraft").BooleanSchema>;
447
+ }>, {
448
+ agent: string;
449
+ scope: "local" | "global";
450
+ skillPath: string;
451
+ }, readonly ["cli"], undefined>;
452
+ }, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft").ObjectSchema<{
453
+ readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
454
+ }>, undefined, {
455
+ agent: string;
456
+ removedSkillPaths: string[];
457
+ }> & {
458
+ readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"uninstall", import("toolcraft").ObjectSchema<{
459
+ readonly agent: import("toolcraft").EnumSchema<[string, ...string[]]>;
460
+ }>, {
461
+ agent: string;
462
+ removedSkillPaths: string[];
463
+ }, readonly ["cli"], undefined>;
464
464
  }], readonly ["cli", "mcp", "sdk"], undefined>;
465
465
  }>;
@@ -3883,9 +3883,14 @@ function resolvePath(rawPath, homeDir, pathMapper) {
3883
3883
  return filename.length === 0 ? mappedDirectory : path3.join(mappedDirectory, filename);
3884
3884
  }
3885
3885
 
3886
+ // ../config-mutations/src/error-codes.ts
3887
+ function hasOwnErrorCode2(error2, code) {
3888
+ return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
3889
+ }
3890
+
3886
3891
  // ../config-mutations/src/fs-utils.ts
3887
3892
  function isNotFound(error2) {
3888
- return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "ENOENT";
3893
+ return hasOwnErrorCode2(error2, "ENOENT");
3889
3894
  }
3890
3895
  async function readFileIfExists(fs3, target) {
3891
3896
  try {
@@ -3942,7 +3947,7 @@ async function backupInvalidDocument(context, targetPath, content) {
3942
3947
  }
3943
3948
  }
3944
3949
  function isAlreadyExists(error2) {
3945
- return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "EEXIST";
3950
+ return hasOwnErrorCode2(error2, "EEXIST");
3946
3951
  }
3947
3952
  async function assertRegularWriteTarget(context, targetPath) {
3948
3953
  const boundary = path4.dirname(path4.resolve(context.homeDir));
@@ -4669,6 +4674,11 @@ async function executeMutation(mutation, context, options) {
4669
4674
  }
4670
4675
  }
4671
4676
 
4677
+ // ../agent-skill-config/src/error-codes.ts
4678
+ function hasOwnErrorCode3(error2, code) {
4679
+ return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
4680
+ }
4681
+
4672
4682
  // ../agent-skill-config/src/templates.ts
4673
4683
  import { readFile, stat } from "node:fs/promises";
4674
4684
  import path5 from "node:path";
@@ -4693,7 +4703,7 @@ async function pathExists2(fs3, targetPath) {
4693
4703
  await fs3.stat(targetPath);
4694
4704
  return true;
4695
4705
  } catch (error2) {
4696
- if (typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "ENOENT") {
4706
+ if (hasOwnErrorCode3(error2, "ENOENT")) {
4697
4707
  return false;
4698
4708
  }
4699
4709
  throw error2;
@@ -5389,6 +5399,11 @@ function parseAnsi2(input) {
5389
5399
  return buildRuns(lines, lineBreakStyles);
5390
5400
  }
5391
5401
 
5402
+ // ../terminal-png/src/error-codes.ts
5403
+ function hasOwnErrorCode4(error2, code) {
5404
+ return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
5405
+ }
5406
+
5392
5407
  // ../terminal-png/src/png-renderer.ts
5393
5408
  import { Resvg } from "@resvg/resvg-js";
5394
5409
 
@@ -5962,7 +5977,7 @@ async function renderTerminalPng(ansiText, options = {}) {
5962
5977
  return png;
5963
5978
  }
5964
5979
  function isAlreadyExistsError(error2) {
5965
- return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === "EEXIST";
5980
+ return error2 instanceof Error && hasOwnErrorCode4(error2, "EEXIST");
5966
5981
  }
5967
5982
 
5968
5983
  // src/commands/screenshot.ts
@@ -6142,8 +6157,6 @@ var waitForExit2 = defineCommand({
6142
6157
 
6143
6158
  // src/commands/index.ts
6144
6159
  var children = [
6145
- install,
6146
- uninstall,
6147
6160
  createSession,
6148
6161
  fill,
6149
6162
  type,
@@ -6157,7 +6170,9 @@ var children = [
6157
6170
  resize,
6158
6171
  closeSession,
6159
6172
  getSession,
6160
- listSessions
6173
+ listSessions,
6174
+ install,
6175
+ uninstall
6161
6176
  ];
6162
6177
  function createTerminalPilotGroup() {
6163
6178
  return defineGroup({