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.
- package/dist/cli.js +274 -108
- package/dist/cli.js.map +4 -4
- package/dist/commands/index.d.ts +35 -35
- package/dist/commands/index.js +44 -7
- package/dist/commands/index.js.map +4 -4
- package/dist/commands/install.js +37 -5
- package/dist/commands/install.js.map +4 -4
- package/dist/commands/installer.js +24 -2
- package/dist/commands/installer.js.map +4 -4
- package/dist/commands/screenshot.js +8 -3
- package/dist/commands/screenshot.js.map +4 -4
- package/dist/commands/uninstall.js +22 -0
- package/dist/commands/uninstall.js.map +3 -3
- package/dist/testing/cli-repl.js +274 -108
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +274 -108
- package/dist/testing/qa-cli.js.map +4 -4
- package/node_modules/@poe-code/agent-skill-config/dist/apply.js +2 -4
- package/node_modules/@poe-code/agent-skill-config/dist/bridge-active-skills.js +8 -9
- package/node_modules/@poe-code/agent-skill-config/dist/configs.js +4 -0
- package/node_modules/@poe-code/agent-skill-config/dist/error-codes.d.ts +1 -0
- package/node_modules/@poe-code/agent-skill-config/dist/error-codes.js +5 -0
- package/node_modules/@poe-code/agent-skill-config/dist/git-exclude.js +4 -6
- package/node_modules/@poe-code/agent-skill-config/dist/templates.js +2 -4
- package/package.json +1 -1
package/dist/commands/index.d.ts
CHANGED
|
@@ -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
|
-
}
|
|
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
|
-
},
|
|
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
|
}>;
|
package/dist/commands/index.js
CHANGED
|
@@ -2188,6 +2188,23 @@ var codexAgent = {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
};
|
|
2190
2190
|
|
|
2191
|
+
// ../agent-defs/src/agents/cursor.ts
|
|
2192
|
+
var cursorAgent = {
|
|
2193
|
+
id: "cursor",
|
|
2194
|
+
name: "cursor",
|
|
2195
|
+
aliases: ["cursor-agent"],
|
|
2196
|
+
label: "Cursor",
|
|
2197
|
+
summary: "Cursor's CLI coding agent.",
|
|
2198
|
+
binaryName: "cursor-agent",
|
|
2199
|
+
configPath: "~/.cursor/cli-config.json",
|
|
2200
|
+
branding: {
|
|
2201
|
+
colors: {
|
|
2202
|
+
dark: "#FFFFFF",
|
|
2203
|
+
light: "#000000"
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2191
2208
|
// ../agent-defs/src/agents/gemini-cli.ts
|
|
2192
2209
|
var geminiCliAgent = {
|
|
2193
2210
|
id: "gemini-cli",
|
|
@@ -2302,6 +2319,7 @@ var allAgents = Object.freeze([
|
|
|
2302
2319
|
freezeAgent(claudeCodeAgent),
|
|
2303
2320
|
freezeAgent(claudeDesktopAgent),
|
|
2304
2321
|
freezeAgent(codexAgent),
|
|
2322
|
+
freezeAgent(cursorAgent),
|
|
2305
2323
|
freezeAgent(geminiCliAgent),
|
|
2306
2324
|
freezeAgent(openCodeAgent),
|
|
2307
2325
|
freezeAgent(kimiAgent),
|
|
@@ -2335,6 +2353,10 @@ var agentSkillConfigs = {
|
|
|
2335
2353
|
globalSkillDir: "~/.codex/skills",
|
|
2336
2354
|
localSkillDir: ".codex/skills"
|
|
2337
2355
|
},
|
|
2356
|
+
cursor: {
|
|
2357
|
+
globalSkillDir: "~/.cursor/skills-cursor",
|
|
2358
|
+
localSkillDir: ".cursor/skills"
|
|
2359
|
+
},
|
|
2338
2360
|
"gemini-cli": {
|
|
2339
2361
|
globalSkillDir: "~/.gemini/skills",
|
|
2340
2362
|
localSkillDir: ".gemini/skills"
|
|
@@ -3883,9 +3905,14 @@ function resolvePath(rawPath, homeDir, pathMapper) {
|
|
|
3883
3905
|
return filename.length === 0 ? mappedDirectory : path3.join(mappedDirectory, filename);
|
|
3884
3906
|
}
|
|
3885
3907
|
|
|
3908
|
+
// ../config-mutations/src/error-codes.ts
|
|
3909
|
+
function hasOwnErrorCode2(error2, code) {
|
|
3910
|
+
return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3886
3913
|
// ../config-mutations/src/fs-utils.ts
|
|
3887
3914
|
function isNotFound(error2) {
|
|
3888
|
-
return
|
|
3915
|
+
return hasOwnErrorCode2(error2, "ENOENT");
|
|
3889
3916
|
}
|
|
3890
3917
|
async function readFileIfExists(fs3, target) {
|
|
3891
3918
|
try {
|
|
@@ -3942,7 +3969,7 @@ async function backupInvalidDocument(context, targetPath, content) {
|
|
|
3942
3969
|
}
|
|
3943
3970
|
}
|
|
3944
3971
|
function isAlreadyExists(error2) {
|
|
3945
|
-
return
|
|
3972
|
+
return hasOwnErrorCode2(error2, "EEXIST");
|
|
3946
3973
|
}
|
|
3947
3974
|
async function assertRegularWriteTarget(context, targetPath) {
|
|
3948
3975
|
const boundary = path4.dirname(path4.resolve(context.homeDir));
|
|
@@ -4669,6 +4696,11 @@ async function executeMutation(mutation, context, options) {
|
|
|
4669
4696
|
}
|
|
4670
4697
|
}
|
|
4671
4698
|
|
|
4699
|
+
// ../agent-skill-config/src/error-codes.ts
|
|
4700
|
+
function hasOwnErrorCode3(error2, code) {
|
|
4701
|
+
return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4672
4704
|
// ../agent-skill-config/src/templates.ts
|
|
4673
4705
|
import { readFile, stat } from "node:fs/promises";
|
|
4674
4706
|
import path5 from "node:path";
|
|
@@ -4693,7 +4725,7 @@ async function pathExists2(fs3, targetPath) {
|
|
|
4693
4725
|
await fs3.stat(targetPath);
|
|
4694
4726
|
return true;
|
|
4695
4727
|
} catch (error2) {
|
|
4696
|
-
if (
|
|
4728
|
+
if (hasOwnErrorCode3(error2, "ENOENT")) {
|
|
4697
4729
|
return false;
|
|
4698
4730
|
}
|
|
4699
4731
|
throw error2;
|
|
@@ -5389,6 +5421,11 @@ function parseAnsi2(input) {
|
|
|
5389
5421
|
return buildRuns(lines, lineBreakStyles);
|
|
5390
5422
|
}
|
|
5391
5423
|
|
|
5424
|
+
// ../terminal-png/src/error-codes.ts
|
|
5425
|
+
function hasOwnErrorCode4(error2, code) {
|
|
5426
|
+
return typeof error2 === "object" && error2 !== null && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5392
5429
|
// ../terminal-png/src/png-renderer.ts
|
|
5393
5430
|
import { Resvg } from "@resvg/resvg-js";
|
|
5394
5431
|
|
|
@@ -5962,7 +5999,7 @@ async function renderTerminalPng(ansiText, options = {}) {
|
|
|
5962
5999
|
return png;
|
|
5963
6000
|
}
|
|
5964
6001
|
function isAlreadyExistsError(error2) {
|
|
5965
|
-
return error2 instanceof Error &&
|
|
6002
|
+
return error2 instanceof Error && hasOwnErrorCode4(error2, "EEXIST");
|
|
5966
6003
|
}
|
|
5967
6004
|
|
|
5968
6005
|
// src/commands/screenshot.ts
|
|
@@ -6142,8 +6179,6 @@ var waitForExit2 = defineCommand({
|
|
|
6142
6179
|
|
|
6143
6180
|
// src/commands/index.ts
|
|
6144
6181
|
var children = [
|
|
6145
|
-
install,
|
|
6146
|
-
uninstall,
|
|
6147
6182
|
createSession,
|
|
6148
6183
|
fill,
|
|
6149
6184
|
type,
|
|
@@ -6157,7 +6192,9 @@ var children = [
|
|
|
6157
6192
|
resize,
|
|
6158
6193
|
closeSession,
|
|
6159
6194
|
getSession,
|
|
6160
|
-
listSessions
|
|
6195
|
+
listSessions,
|
|
6196
|
+
install,
|
|
6197
|
+
uninstall
|
|
6161
6198
|
];
|
|
6162
6199
|
function createTerminalPilotGroup() {
|
|
6163
6200
|
return defineGroup({
|