terminal-pilot 0.0.26 → 0.0.28
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 +849 -145
- package/dist/cli.js.map +4 -4
- package/dist/commands/close-session.js +14 -0
- package/dist/commands/close-session.js.map +2 -2
- package/dist/commands/create-session.js +14 -0
- package/dist/commands/create-session.js.map +2 -2
- package/dist/commands/fill.js +14 -0
- package/dist/commands/fill.js.map +2 -2
- package/dist/commands/get-session.js +14 -0
- package/dist/commands/get-session.js.map +2 -2
- package/dist/commands/index.js +114 -59
- package/dist/commands/index.js.map +4 -4
- package/dist/commands/install.js +98 -43
- package/dist/commands/install.js.map +4 -4
- package/dist/commands/installer.js +78 -37
- package/dist/commands/installer.js.map +4 -4
- package/dist/commands/list-sessions.js +14 -0
- package/dist/commands/list-sessions.js.map +2 -2
- package/dist/commands/press-key.js +14 -0
- package/dist/commands/press-key.js.map +2 -2
- package/dist/commands/read-history.js +14 -0
- package/dist/commands/read-history.js.map +2 -2
- package/dist/commands/read-screen.js +14 -0
- package/dist/commands/read-screen.js.map +2 -2
- package/dist/commands/resize.js +14 -0
- package/dist/commands/resize.js.map +2 -2
- package/dist/commands/runtime.js.map +1 -1
- package/dist/commands/screenshot.js +14 -0
- package/dist/commands/screenshot.js.map +2 -2
- package/dist/commands/send-signal.js +14 -0
- package/dist/commands/send-signal.js.map +2 -2
- package/dist/commands/type.js +14 -0
- package/dist/commands/type.js.map +2 -2
- package/dist/commands/uninstall.js +92 -37
- package/dist/commands/uninstall.js.map +4 -4
- package/dist/commands/wait-for-exit.js +14 -0
- package/dist/commands/wait-for-exit.js.map +2 -2
- package/dist/commands/wait-for.js +14 -0
- package/dist/commands/wait-for.js.map +2 -2
- package/dist/testing/cli-repl.js +854 -150
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +854 -150
- package/dist/testing/qa-cli.js.map +4 -4
- package/package.json +3 -2
package/dist/commands/fill.js
CHANGED
|
@@ -249,6 +249,12 @@ function cloneRequires(requires) {
|
|
|
249
249
|
check: requires.check
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
+
function cloneCommandExamples(examples) {
|
|
253
|
+
return (examples ?? []).map((example) => ({
|
|
254
|
+
title: example.title,
|
|
255
|
+
params: { ...example.params }
|
|
256
|
+
}));
|
|
257
|
+
}
|
|
252
258
|
function parseStackPath(candidate) {
|
|
253
259
|
if (candidate.startsWith("file://")) {
|
|
254
260
|
try {
|
|
@@ -342,9 +348,11 @@ function createBaseCommand(config) {
|
|
|
342
348
|
kind: "command",
|
|
343
349
|
name: config.name,
|
|
344
350
|
description: config.description,
|
|
351
|
+
examples: cloneCommandExamples(config.examples),
|
|
345
352
|
aliases: [...config.aliases ?? []],
|
|
346
353
|
positional: [...config.positional ?? []],
|
|
347
354
|
params: config.params,
|
|
355
|
+
result: config.result,
|
|
348
356
|
secrets: cloneSecrets(config.secrets),
|
|
349
357
|
scope: resolveCommandScope(config.scope, void 0),
|
|
350
358
|
confirm: config.confirm ?? false,
|
|
@@ -356,6 +364,8 @@ function createBaseCommand(config) {
|
|
|
356
364
|
Object.defineProperty(command, commandConfigSymbol, {
|
|
357
365
|
value: {
|
|
358
366
|
scope: cloneScope(config.scope),
|
|
367
|
+
examples: cloneCommandExamples(config.examples),
|
|
368
|
+
result: config.result,
|
|
359
369
|
humanInLoop: config.humanInLoop,
|
|
360
370
|
secrets: cloneSecrets(config.secrets),
|
|
361
371
|
requires: cloneRequires(config.requires),
|
|
@@ -373,9 +383,11 @@ function materializeCommand(command, inherited) {
|
|
|
373
383
|
kind: "command",
|
|
374
384
|
name: command.name,
|
|
375
385
|
description: command.description,
|
|
386
|
+
examples: cloneCommandExamples(internal.examples),
|
|
376
387
|
aliases: [...command.aliases],
|
|
377
388
|
positional: [...command.positional],
|
|
378
389
|
params: command.params,
|
|
390
|
+
result: internal.result,
|
|
379
391
|
secrets: mergeSecrets(inherited.secrets, internal.secrets),
|
|
380
392
|
scope: resolveCommandScope(internal.scope, inherited.scope),
|
|
381
393
|
confirm: command.confirm,
|
|
@@ -387,6 +399,8 @@ function materializeCommand(command, inherited) {
|
|
|
387
399
|
Object.defineProperty(materialized, commandConfigSymbol, {
|
|
388
400
|
value: {
|
|
389
401
|
scope: cloneScope(internal.scope),
|
|
402
|
+
examples: cloneCommandExamples(internal.examples),
|
|
403
|
+
result: internal.result,
|
|
390
404
|
humanInLoop: internal.humanInLoop,
|
|
391
405
|
secrets: cloneSecrets(internal.secrets),
|
|
392
406
|
requires: cloneRequires(internal.requires),
|