terminal-pilot 0.0.9 → 0.0.10
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 -13
- package/dist/cli.js.map +4 -4
- package/dist/testing/cli-repl.js +20 -13
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +20 -13
- package/dist/testing/qa-cli.js.map +4 -4
- package/package.json +2 -2
package/dist/testing/cli-repl.js
CHANGED
|
@@ -713,12 +713,19 @@ function renderTable(options) {
|
|
|
713
713
|
import chalk7 from "chalk";
|
|
714
714
|
var AGENT_PREFIX = `${chalk7.green.bold("\u2713")} agent: `;
|
|
715
715
|
|
|
716
|
+
// ../design-system/src/dashboard/buffer.ts
|
|
717
|
+
import chalk8 from "chalk";
|
|
718
|
+
|
|
719
|
+
// ../design-system/src/dashboard/terminal.ts
|
|
720
|
+
import readline from "node:readline";
|
|
721
|
+
import { PassThrough } from "node:stream";
|
|
722
|
+
|
|
716
723
|
// ../design-system/src/prompts/index.ts
|
|
717
|
-
import
|
|
724
|
+
import chalk15 from "chalk";
|
|
718
725
|
import * as clack from "@clack/prompts";
|
|
719
726
|
|
|
720
727
|
// ../design-system/src/prompts/primitives/cancel.ts
|
|
721
|
-
import
|
|
728
|
+
import chalk9 from "chalk";
|
|
722
729
|
|
|
723
730
|
// ../../node_modules/@clack/core/dist/index.mjs
|
|
724
731
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
@@ -748,16 +755,16 @@ function cancel(msg = "") {
|
|
|
748
755
|
if (resolveOutputFormat() !== "terminal") {
|
|
749
756
|
return;
|
|
750
757
|
}
|
|
751
|
-
process.stdout.write(`${
|
|
758
|
+
process.stdout.write(`${chalk9.gray("\u2514")} ${chalk9.red(msg)}
|
|
752
759
|
|
|
753
760
|
`);
|
|
754
761
|
}
|
|
755
762
|
|
|
756
763
|
// ../design-system/src/prompts/primitives/intro.ts
|
|
757
|
-
import
|
|
764
|
+
import chalk10 from "chalk";
|
|
758
765
|
|
|
759
766
|
// ../design-system/src/prompts/primitives/note.ts
|
|
760
|
-
import
|
|
767
|
+
import chalk11 from "chalk";
|
|
761
768
|
function getVisibleWidth(value) {
|
|
762
769
|
return stripAnsi2(value).length;
|
|
763
770
|
}
|
|
@@ -768,15 +775,15 @@ function renderTerminalNote(message2, title) {
|
|
|
768
775
|
visibleTitle.length,
|
|
769
776
|
...contentLines.map((line) => getVisibleWidth(line))
|
|
770
777
|
) + 2;
|
|
771
|
-
const titleLine = `${
|
|
778
|
+
const titleLine = `${chalk11.green("\u25C7")} ${chalk11.reset(title ?? "")} ${chalk11.gray(
|
|
772
779
|
`${"\u2500".repeat(Math.max(contentWidth - visibleTitle.length - 1, 1))}\u256E`
|
|
773
780
|
)}`;
|
|
774
781
|
const content = contentLines.map((line) => {
|
|
775
782
|
const padding = " ".repeat(contentWidth - getVisibleWidth(line));
|
|
776
|
-
return `${
|
|
783
|
+
return `${chalk11.gray("\u2502")} ${line}${padding}${chalk11.gray("\u2502")}`;
|
|
777
784
|
});
|
|
778
|
-
const bottom =
|
|
779
|
-
return [
|
|
785
|
+
const bottom = chalk11.gray(`\u251C${"\u2500".repeat(contentWidth + 2)}\u256F`);
|
|
786
|
+
return [chalk11.gray("\u2502"), titleLine, ...content, bottom].join("\n");
|
|
780
787
|
}
|
|
781
788
|
function note(message2, title) {
|
|
782
789
|
const format = resolveOutputFormat();
|
|
@@ -807,13 +814,13 @@ function note(message2, title) {
|
|
|
807
814
|
}
|
|
808
815
|
|
|
809
816
|
// ../design-system/src/prompts/primitives/outro.ts
|
|
810
|
-
import
|
|
817
|
+
import chalk12 from "chalk";
|
|
811
818
|
|
|
812
819
|
// ../design-system/src/prompts/primitives/spinner.ts
|
|
813
|
-
import
|
|
820
|
+
import chalk14 from "chalk";
|
|
814
821
|
|
|
815
822
|
// ../design-system/src/static/spinner.ts
|
|
816
|
-
import
|
|
823
|
+
import chalk13 from "chalk";
|
|
817
824
|
|
|
818
825
|
// ../design-system/src/prompts/index.ts
|
|
819
826
|
async function select2(opts) {
|
|
@@ -827,7 +834,7 @@ async function confirm2(opts) {
|
|
|
827
834
|
}
|
|
828
835
|
|
|
829
836
|
// ../design-system/src/static/menu.ts
|
|
830
|
-
import
|
|
837
|
+
import chalk16 from "chalk";
|
|
831
838
|
|
|
832
839
|
// ../cmdkit/src/index.ts
|
|
833
840
|
import { fileURLToPath } from "node:url";
|