terminal-pilot 0.0.32 → 0.0.34

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.
Files changed (61) hide show
  1. package/dist/cli.js +610 -163
  2. package/dist/cli.js.map +4 -4
  3. package/dist/commands/close-session.js +10 -0
  4. package/dist/commands/close-session.js.map +3 -3
  5. package/dist/commands/create-session.js +10 -0
  6. package/dist/commands/create-session.js.map +3 -3
  7. package/dist/commands/fill.js +10 -0
  8. package/dist/commands/fill.js.map +3 -3
  9. package/dist/commands/get-session.js +10 -0
  10. package/dist/commands/get-session.js.map +3 -3
  11. package/dist/commands/index.js +22 -17
  12. package/dist/commands/index.js.map +4 -4
  13. package/dist/commands/install.js +22 -17
  14. package/dist/commands/install.js.map +4 -4
  15. package/dist/commands/installer.js +22 -17
  16. package/dist/commands/installer.js.map +4 -4
  17. package/dist/commands/list-sessions.js +10 -0
  18. package/dist/commands/list-sessions.js.map +3 -3
  19. package/dist/commands/press-key.js +10 -0
  20. package/dist/commands/press-key.js.map +3 -3
  21. package/dist/commands/read-history.js +10 -0
  22. package/dist/commands/read-history.js.map +3 -3
  23. package/dist/commands/read-screen.js +10 -0
  24. package/dist/commands/read-screen.js.map +3 -3
  25. package/dist/commands/resize.js +10 -0
  26. package/dist/commands/resize.js.map +3 -3
  27. package/dist/commands/runtime.js +10 -0
  28. package/dist/commands/runtime.js.map +3 -3
  29. package/dist/commands/screenshot.js +10 -0
  30. package/dist/commands/screenshot.js.map +3 -3
  31. package/dist/commands/send-signal.js +10 -0
  32. package/dist/commands/send-signal.js.map +3 -3
  33. package/dist/commands/type.js +10 -0
  34. package/dist/commands/type.js.map +3 -3
  35. package/dist/commands/uninstall.js +13 -4
  36. package/dist/commands/uninstall.js.map +4 -4
  37. package/dist/commands/wait-for-exit.js +10 -0
  38. package/dist/commands/wait-for-exit.js.map +3 -3
  39. package/dist/commands/wait-for.js +10 -0
  40. package/dist/commands/wait-for.js.map +3 -3
  41. package/dist/testing/cli-repl.js +610 -163
  42. package/dist/testing/cli-repl.js.map +4 -4
  43. package/dist/testing/qa-cli.js +610 -163
  44. package/dist/testing/qa-cli.js.map +4 -4
  45. package/node_modules/toolcraft-design/dist/components/help-formatter-plain.js +1 -1
  46. package/node_modules/toolcraft-design/dist/components/help-formatter.js +1 -1
  47. package/node_modules/toolcraft-design/dist/components/inspector-card.d.ts +21 -0
  48. package/node_modules/toolcraft-design/dist/components/inspector-card.js +42 -0
  49. package/node_modules/toolcraft-design/dist/components/resource-browser.d.ts +21 -0
  50. package/node_modules/toolcraft-design/dist/components/resource-browser.js +98 -0
  51. package/node_modules/toolcraft-design/dist/explorer/index.d.ts +2 -0
  52. package/node_modules/toolcraft-design/dist/explorer/index.js +1 -0
  53. package/node_modules/toolcraft-design/dist/explorer/two-pane.d.ts +102 -0
  54. package/node_modules/toolcraft-design/dist/explorer/two-pane.js +510 -0
  55. package/node_modules/toolcraft-design/dist/index.d.ts +6 -2
  56. package/node_modules/toolcraft-design/dist/index.js +3 -1
  57. package/node_modules/toolcraft-design/dist/prompts/interactive/glyphs.d.ts +3 -3
  58. package/node_modules/toolcraft-design/dist/prompts/interactive/glyphs.js +3 -3
  59. package/node_modules/toolcraft-design/dist/prompts/interactive/keys.js +3 -0
  60. package/node_modules/toolcraft-design/dist/prompts/interactive/multiselect.js +8 -4
  61. package/package.json +4 -3
@@ -1440,9 +1440,9 @@ var GLYPHS = {
1440
1440
  barEnd: glyph("\u2514", "-"),
1441
1441
  radioActive: glyph("\u25CF", ">"),
1442
1442
  radioInactive: glyph("\u25CB", " "),
1443
- checkboxActive: glyph("\u25FB", "[ ]"),
1444
- checkboxSelected: glyph("\u25FC", "[+]"),
1445
- checkboxInactive: glyph("\u25FB", "[ ]"),
1443
+ checkboxActive: "[ ]",
1444
+ checkboxSelected: "[x]",
1445
+ checkboxInactive: "[ ]",
1446
1446
  passwordMask: glyph("\u2022", "*"),
1447
1447
  ellipsis: "..."
1448
1448
  };
@@ -3511,6 +3511,16 @@ var S = {
3511
3511
  Json
3512
3512
  };
3513
3513
 
3514
+ // ../toolcraft/src/runtime-logging.ts
3515
+ var LOG_LEVELS = Object.freeze([
3516
+ "silent",
3517
+ "error",
3518
+ "warn",
3519
+ "info",
3520
+ "debug",
3521
+ "trace"
3522
+ ]);
3523
+
3514
3524
  // ../toolcraft/src/package-metadata.ts
3515
3525
  import { existsSync, readFileSync as readFileSync3, statSync as statSync3 } from "node:fs";
3516
3526
  import path8 from "node:path";
@@ -3731,7 +3741,6 @@ function defineCommand(config2) {
3731
3741
  import os2 from "node:os";
3732
3742
  import path9 from "node:path";
3733
3743
  import * as nodeFs from "node:fs/promises";
3734
- import { readFile as readFile2 } from "node:fs/promises";
3735
3744
 
3736
3745
  // src/errors.ts
3737
3746
  function hasOwnErrorCode3(error2, code) {
@@ -3781,19 +3790,15 @@ async function loadTerminalPilotTemplate() {
3781
3790
  if (terminalPilotTemplateCache !== void 0) {
3782
3791
  return terminalPilotTemplateCache;
3783
3792
  }
3784
- const candidates = [
3785
- new URL("./templates/terminal-pilot.md", import.meta.url),
3786
- new URL("../templates/terminal-pilot.md", import.meta.url),
3787
- new URL("../../../agent-skill-config/src/templates/terminal-pilot.md", import.meta.url)
3788
- ];
3789
- for (const candidate of candidates) {
3790
- try {
3791
- terminalPilotTemplateCache = await readFile2(candidate, "utf8");
3792
- return terminalPilotTemplateCache;
3793
- } catch (error2) {
3794
- if (!isNotFoundError(error2)) {
3795
- throw error2;
3796
- }
3793
+ try {
3794
+ terminalPilotTemplateCache = await nodeFs.readFile(
3795
+ new URL("../templates/terminal-pilot.md", import.meta.url),
3796
+ "utf8"
3797
+ );
3798
+ return terminalPilotTemplateCache;
3799
+ } catch (error2) {
3800
+ if (!isNotFoundError(error2)) {
3801
+ throw error2;
3797
3802
  }
3798
3803
  }
3799
3804
  throw new UserError("terminal-pilot skill template is missing.");