terminal-pilot 0.0.13 → 0.0.14
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 +20 -125
- package/dist/cli.js.map +4 -4
- package/dist/commands/close-session.d.ts +4 -4
- package/dist/commands/close-session.js +6 -6
- package/dist/commands/close-session.js.map +3 -3
- package/dist/commands/create-session.d.ts +16 -16
- package/dist/commands/create-session.js +6 -6
- package/dist/commands/create-session.js.map +3 -3
- package/dist/commands/fill.d.ts +6 -6
- package/dist/commands/fill.js +6 -6
- package/dist/commands/fill.js.map +3 -3
- package/dist/commands/get-session.d.ts +4 -4
- package/dist/commands/get-session.js +6 -6
- package/dist/commands/get-session.js.map +3 -3
- package/dist/commands/index.d.ts +107 -107
- package/dist/commands/index.js +7 -7
- package/dist/commands/index.js.map +3 -3
- package/dist/commands/install.d.ts +8 -8
- package/dist/commands/install.js +6 -6
- package/dist/commands/install.js.map +3 -3
- package/dist/commands/installer.js +1 -1
- package/dist/commands/installer.js.map +2 -2
- package/dist/commands/list-sessions.d.ts +2 -2
- package/dist/commands/list-sessions.js +6 -6
- package/dist/commands/list-sessions.js.map +3 -3
- package/dist/commands/press-key.d.ts +6 -6
- package/dist/commands/press-key.js +6 -6
- package/dist/commands/press-key.js.map +3 -3
- package/dist/commands/read-history.d.ts +6 -6
- package/dist/commands/read-history.js +6 -6
- package/dist/commands/read-history.js.map +3 -3
- package/dist/commands/read-screen.d.ts +4 -4
- package/dist/commands/read-screen.js +6 -6
- package/dist/commands/read-screen.js.map +3 -3
- package/dist/commands/resize.d.ts +8 -8
- package/dist/commands/resize.js +6 -6
- package/dist/commands/resize.js.map +3 -3
- package/dist/commands/runtime.d.ts +1 -1
- package/dist/commands/runtime.js +1 -1
- package/dist/commands/runtime.js.map +2 -2
- package/dist/commands/screenshot.d.ts +10 -10
- package/dist/commands/screenshot.js +6 -6
- package/dist/commands/screenshot.js.map +3 -3
- package/dist/commands/send-signal.d.ts +6 -6
- package/dist/commands/send-signal.js +6 -6
- package/dist/commands/send-signal.js.map +3 -3
- package/dist/commands/type.d.ts +6 -6
- package/dist/commands/type.js +6 -6
- package/dist/commands/type.js.map +3 -3
- package/dist/commands/uninstall.d.ts +4 -4
- package/dist/commands/uninstall.js +6 -6
- package/dist/commands/uninstall.js.map +3 -3
- package/dist/commands/wait-for-exit.d.ts +6 -6
- package/dist/commands/wait-for-exit.js +6 -6
- package/dist/commands/wait-for-exit.js.map +3 -3
- package/dist/commands/wait-for.d.ts +10 -10
- package/dist/commands/wait-for.js +6 -6
- package/dist/commands/wait-for.js.map +3 -3
- package/dist/testing/cli-repl.js +20 -126
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +20 -126
- package/dist/testing/qa-cli.js.map +4 -4
- package/package.json +3 -3
package/dist/commands/index.d.ts
CHANGED
|
@@ -17,125 +17,125 @@ export { waitFor } from "./wait-for.js";
|
|
|
17
17
|
export { waitForExit } from "./wait-for-exit.js";
|
|
18
18
|
export { createTerminalPilotRuntime, SESSION_ENV_VAR } from "./runtime.js";
|
|
19
19
|
export type { TerminalPilotCommandServices, TerminalPilotRuntime } from "./runtime.js";
|
|
20
|
-
export declare const terminalPilotGroup: import("
|
|
21
|
-
readonly
|
|
22
|
-
readonly agent: import("
|
|
23
|
-
readonly local: import("
|
|
24
|
-
readonly global: import("
|
|
20
|
+
export declare const terminalPilotGroup: import("toolcraft").Group<TerminalPilotCommandServices> & {
|
|
21
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<TerminalPilotCommandServices, "terminal-pilot", readonly [import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
22
|
+
readonly agent: import("toolcraft-schema").EnumSchema<[string, ...string[]]>;
|
|
23
|
+
readonly local: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
24
|
+
readonly global: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
25
25
|
}>, undefined, {
|
|
26
26
|
agent: string;
|
|
27
27
|
scope: "local" | "global";
|
|
28
28
|
skillPath: string;
|
|
29
29
|
}> & {
|
|
30
|
-
readonly
|
|
31
|
-
readonly agent: import("
|
|
32
|
-
readonly local: import("
|
|
33
|
-
readonly global: import("
|
|
30
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"install", import("toolcraft-schema").ObjectSchema<{
|
|
31
|
+
readonly agent: import("toolcraft-schema").EnumSchema<[string, ...string[]]>;
|
|
32
|
+
readonly local: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
33
|
+
readonly global: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
34
34
|
}>, {
|
|
35
35
|
agent: string;
|
|
36
36
|
scope: "local" | "global";
|
|
37
37
|
skillPath: string;
|
|
38
38
|
}, readonly ["cli"]>;
|
|
39
|
-
}, import("
|
|
40
|
-
readonly agent: import("
|
|
39
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
40
|
+
readonly agent: import("toolcraft-schema").EnumSchema<[string, ...string[]]>;
|
|
41
41
|
}>, undefined, {
|
|
42
42
|
agent: string;
|
|
43
43
|
removedSkillPaths: string[];
|
|
44
44
|
}> & {
|
|
45
|
-
readonly
|
|
46
|
-
readonly agent: import("
|
|
45
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"uninstall", import("toolcraft-schema").ObjectSchema<{
|
|
46
|
+
readonly agent: import("toolcraft-schema").EnumSchema<[string, ...string[]]>;
|
|
47
47
|
}>, {
|
|
48
48
|
agent: string;
|
|
49
49
|
removedSkillPaths: string[];
|
|
50
50
|
}, readonly ["cli"]>;
|
|
51
|
-
}, import("
|
|
52
|
-
readonly command: import("
|
|
53
|
-
readonly args: import("
|
|
54
|
-
readonly session: import("
|
|
55
|
-
readonly cwd: import("
|
|
56
|
-
readonly cols: import("
|
|
57
|
-
readonly rows: import("
|
|
58
|
-
readonly observe: import("
|
|
51
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
52
|
+
readonly command: import("toolcraft-schema").StringSchema;
|
|
53
|
+
readonly args: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").ArraySchema<import("toolcraft-schema").StringSchema>>;
|
|
54
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
55
|
+
readonly cwd: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
56
|
+
readonly cols: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
57
|
+
readonly rows: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
58
|
+
readonly observe: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
59
59
|
}>, undefined, {
|
|
60
60
|
session: string;
|
|
61
61
|
pid: number;
|
|
62
62
|
}> & {
|
|
63
|
-
readonly
|
|
64
|
-
readonly command: import("
|
|
65
|
-
readonly args: import("
|
|
66
|
-
readonly session: import("
|
|
67
|
-
readonly cwd: import("
|
|
68
|
-
readonly cols: import("
|
|
69
|
-
readonly rows: import("
|
|
70
|
-
readonly observe: import("
|
|
63
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"create-session", import("toolcraft-schema").ObjectSchema<{
|
|
64
|
+
readonly command: import("toolcraft-schema").StringSchema;
|
|
65
|
+
readonly args: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").ArraySchema<import("toolcraft-schema").StringSchema>>;
|
|
66
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
67
|
+
readonly cwd: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
68
|
+
readonly cols: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
69
|
+
readonly rows: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
70
|
+
readonly observe: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
71
71
|
}>, {
|
|
72
72
|
session: string;
|
|
73
73
|
pid: number;
|
|
74
74
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
75
|
-
}, import("
|
|
76
|
-
readonly text: import("
|
|
77
|
-
readonly session: import("
|
|
75
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
76
|
+
readonly text: import("toolcraft-schema").StringSchema;
|
|
77
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
78
78
|
}>, undefined, undefined> & {
|
|
79
|
-
readonly
|
|
80
|
-
readonly text: import("
|
|
81
|
-
readonly session: import("
|
|
79
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"fill", import("toolcraft-schema").ObjectSchema<{
|
|
80
|
+
readonly text: import("toolcraft-schema").StringSchema;
|
|
81
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
82
82
|
}>, undefined, readonly ["cli", "mcp", "sdk"]>;
|
|
83
|
-
}, import("
|
|
84
|
-
readonly text: import("
|
|
85
|
-
readonly session: import("
|
|
83
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
84
|
+
readonly text: import("toolcraft-schema").StringSchema;
|
|
85
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
86
86
|
}>, undefined, undefined> & {
|
|
87
|
-
readonly
|
|
88
|
-
readonly text: import("
|
|
89
|
-
readonly session: import("
|
|
87
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"type", import("toolcraft-schema").ObjectSchema<{
|
|
88
|
+
readonly text: import("toolcraft-schema").StringSchema;
|
|
89
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
90
90
|
}>, undefined, readonly ["cli", "mcp", "sdk"]>;
|
|
91
|
-
}, import("
|
|
92
|
-
readonly key: import("
|
|
93
|
-
readonly session: import("
|
|
91
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
92
|
+
readonly key: import("toolcraft-schema").StringSchema;
|
|
93
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
94
94
|
}>, undefined, undefined> & {
|
|
95
|
-
readonly
|
|
96
|
-
readonly key: import("
|
|
97
|
-
readonly session: import("
|
|
95
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"press-key", import("toolcraft-schema").ObjectSchema<{
|
|
96
|
+
readonly key: import("toolcraft-schema").StringSchema;
|
|
97
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
98
98
|
}>, undefined, readonly ["cli", "mcp", "sdk"]>;
|
|
99
|
-
}, import("
|
|
100
|
-
readonly signal: import("
|
|
101
|
-
readonly session: import("
|
|
99
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
100
|
+
readonly signal: import("toolcraft-schema").StringSchema;
|
|
101
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
102
102
|
}>, undefined, undefined> & {
|
|
103
|
-
readonly
|
|
104
|
-
readonly signal: import("
|
|
105
|
-
readonly session: import("
|
|
103
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"send-signal", import("toolcraft-schema").ObjectSchema<{
|
|
104
|
+
readonly signal: import("toolcraft-schema").StringSchema;
|
|
105
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
106
106
|
}>, undefined, readonly ["cli", "mcp", "sdk"]>;
|
|
107
|
-
}, import("
|
|
108
|
-
readonly pattern: import("
|
|
109
|
-
readonly session: import("
|
|
110
|
-
readonly timeout: import("
|
|
111
|
-
readonly literal: import("
|
|
107
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
108
|
+
readonly pattern: import("toolcraft-schema").StringSchema;
|
|
109
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
110
|
+
readonly timeout: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
111
|
+
readonly literal: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
112
112
|
}>, undefined, {
|
|
113
113
|
matched: true;
|
|
114
114
|
line: string;
|
|
115
115
|
}> & {
|
|
116
|
-
readonly
|
|
117
|
-
readonly pattern: import("
|
|
118
|
-
readonly session: import("
|
|
119
|
-
readonly timeout: import("
|
|
120
|
-
readonly literal: import("
|
|
116
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"wait-for", import("toolcraft-schema").ObjectSchema<{
|
|
117
|
+
readonly pattern: import("toolcraft-schema").StringSchema;
|
|
118
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
119
|
+
readonly timeout: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
120
|
+
readonly literal: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
121
121
|
}>, {
|
|
122
122
|
matched: true;
|
|
123
123
|
line: string;
|
|
124
124
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
125
|
-
}, import("
|
|
126
|
-
readonly session: import("
|
|
127
|
-
readonly timeout: import("
|
|
125
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
126
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
127
|
+
readonly timeout: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
128
128
|
}>, undefined, {
|
|
129
129
|
exitCode: number;
|
|
130
130
|
}> & {
|
|
131
|
-
readonly
|
|
132
|
-
readonly session: import("
|
|
133
|
-
readonly timeout: import("
|
|
131
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"wait-for-exit", import("toolcraft-schema").ObjectSchema<{
|
|
132
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
133
|
+
readonly timeout: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
134
134
|
}>, {
|
|
135
135
|
exitCode: number;
|
|
136
136
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
137
|
-
}, import("
|
|
138
|
-
readonly session: import("
|
|
137
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
138
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
139
139
|
}>, undefined, {
|
|
140
140
|
lines: string[];
|
|
141
141
|
cursor: {
|
|
@@ -148,8 +148,8 @@ export declare const terminalPilotGroup: import("@poe-code/cmdkit").Group<Termin
|
|
|
148
148
|
};
|
|
149
149
|
exitCode: number | null;
|
|
150
150
|
}> & {
|
|
151
|
-
readonly
|
|
152
|
-
readonly session: import("
|
|
151
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"read-screen", import("toolcraft-schema").ObjectSchema<{
|
|
152
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
153
153
|
}>, {
|
|
154
154
|
lines: string[];
|
|
155
155
|
cursor: {
|
|
@@ -162,76 +162,76 @@ export declare const terminalPilotGroup: import("@poe-code/cmdkit").Group<Termin
|
|
|
162
162
|
};
|
|
163
163
|
exitCode: number | null;
|
|
164
164
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
165
|
-
}, import("
|
|
166
|
-
readonly session: import("
|
|
167
|
-
readonly output: import("
|
|
168
|
-
readonly window: import("
|
|
169
|
-
readonly padding: import("
|
|
165
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
166
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
167
|
+
readonly output: import("toolcraft-schema").StringSchema;
|
|
168
|
+
readonly window: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
169
|
+
readonly padding: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
170
170
|
}>, undefined, undefined> & {
|
|
171
|
-
readonly
|
|
172
|
-
readonly session: import("
|
|
173
|
-
readonly output: import("
|
|
174
|
-
readonly window: import("
|
|
175
|
-
readonly padding: import("
|
|
171
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"screenshot", import("toolcraft-schema").ObjectSchema<{
|
|
172
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
173
|
+
readonly output: import("toolcraft-schema").StringSchema;
|
|
174
|
+
readonly window: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
175
|
+
readonly padding: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
176
176
|
}>, undefined, readonly ["cli"]>;
|
|
177
|
-
}, import("
|
|
178
|
-
readonly session: import("
|
|
179
|
-
readonly last: import("
|
|
177
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
178
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
179
|
+
readonly last: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
180
180
|
}>, undefined, {
|
|
181
181
|
lines: string[];
|
|
182
182
|
exitCode: number | null;
|
|
183
183
|
}> & {
|
|
184
|
-
readonly
|
|
185
|
-
readonly session: import("
|
|
186
|
-
readonly last: import("
|
|
184
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"read-history", import("toolcraft-schema").ObjectSchema<{
|
|
185
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
186
|
+
readonly last: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").NumberSchema>;
|
|
187
187
|
}>, {
|
|
188
188
|
lines: string[];
|
|
189
189
|
exitCode: number | null;
|
|
190
190
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
191
|
-
}, import("
|
|
192
|
-
readonly cols: import("
|
|
193
|
-
readonly rows: import("
|
|
194
|
-
readonly session: import("
|
|
191
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
192
|
+
readonly cols: import("toolcraft-schema").NumberSchema;
|
|
193
|
+
readonly rows: import("toolcraft-schema").NumberSchema;
|
|
194
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
195
195
|
}>, undefined, undefined> & {
|
|
196
|
-
readonly
|
|
197
|
-
readonly cols: import("
|
|
198
|
-
readonly rows: import("
|
|
199
|
-
readonly session: import("
|
|
196
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"resize", import("toolcraft-schema").ObjectSchema<{
|
|
197
|
+
readonly cols: import("toolcraft-schema").NumberSchema;
|
|
198
|
+
readonly rows: import("toolcraft-schema").NumberSchema;
|
|
199
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
200
200
|
}>, undefined, readonly ["cli", "mcp", "sdk"]>;
|
|
201
|
-
}, import("
|
|
202
|
-
readonly session: import("
|
|
201
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
202
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
203
203
|
}>, undefined, {
|
|
204
204
|
exitCode: number;
|
|
205
205
|
}> & {
|
|
206
|
-
readonly
|
|
207
|
-
readonly session: import("
|
|
206
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"close-session", import("toolcraft-schema").ObjectSchema<{
|
|
207
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
208
208
|
}>, {
|
|
209
209
|
exitCode: number;
|
|
210
210
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
211
|
-
}, import("
|
|
212
|
-
readonly session: import("
|
|
211
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{
|
|
212
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
213
213
|
}>, undefined, {
|
|
214
214
|
session: string;
|
|
215
215
|
pid: number;
|
|
216
216
|
command: string;
|
|
217
217
|
exitCode: number | null;
|
|
218
218
|
}> & {
|
|
219
|
-
readonly
|
|
220
|
-
readonly session: import("
|
|
219
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"get-session", import("toolcraft-schema").ObjectSchema<{
|
|
220
|
+
readonly session: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
221
221
|
}>, {
|
|
222
222
|
session: string;
|
|
223
223
|
pid: number;
|
|
224
224
|
command: string;
|
|
225
225
|
exitCode: number | null;
|
|
226
226
|
}, readonly ["cli", "mcp", "sdk"]>;
|
|
227
|
-
}, import("
|
|
227
|
+
}, import("toolcraft").Command<TerminalPilotCommandServices, import("toolcraft-schema").ObjectSchema<{}>, undefined, {
|
|
228
228
|
sessions: Array<{
|
|
229
229
|
session: string;
|
|
230
230
|
command: string;
|
|
231
231
|
pid: number;
|
|
232
232
|
}>;
|
|
233
233
|
}> & {
|
|
234
|
-
readonly
|
|
234
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"list-sessions", import("toolcraft-schema").ObjectSchema<{}>, {
|
|
235
235
|
sessions: Array<{
|
|
236
236
|
session: string;
|
|
237
237
|
command: string;
|
package/dist/commands/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// ../
|
|
1
|
+
// ../toolcraft/src/index.ts
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
|
|
4
|
-
// ../
|
|
4
|
+
// ../toolcraft-schema/src/index.ts
|
|
5
5
|
function assertValidEnumValues(values) {
|
|
6
6
|
if (values.length === 0) {
|
|
7
7
|
throw new Error("Enum schema requires at least one value");
|
|
@@ -60,10 +60,10 @@ var S = {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// ../
|
|
64
|
-
var commandConfigSymbol = /* @__PURE__ */ Symbol("
|
|
65
|
-
var groupConfigSymbol = /* @__PURE__ */ Symbol("
|
|
66
|
-
var commandSourcePathSymbol = /* @__PURE__ */ Symbol("
|
|
63
|
+
// ../toolcraft/src/index.ts
|
|
64
|
+
var commandConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.command.config");
|
|
65
|
+
var groupConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.group.config");
|
|
66
|
+
var commandSourcePathSymbol = /* @__PURE__ */ Symbol("toolcraft.command.sourcePath");
|
|
67
67
|
var UserError = class extends Error {
|
|
68
68
|
constructor(message) {
|
|
69
69
|
super(message);
|
|
@@ -141,7 +141,7 @@ function inferCommandSourcePath() {
|
|
|
141
141
|
if (candidate === void 0) {
|
|
142
142
|
continue;
|
|
143
143
|
}
|
|
144
|
-
if (candidate.includes("/packages/
|
|
144
|
+
if (candidate.includes("/packages/toolcraft/src/index.ts") || candidate.includes("/packages/toolcraft/dist/index.js") || candidate.includes("/node_modules/toolcraft/dist/index.js")) {
|
|
145
145
|
continue;
|
|
146
146
|
}
|
|
147
147
|
return candidate;
|