testingterm 0.0.5 → 0.0.6

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.
@@ -526,7 +526,7 @@ var Terminal = class _Terminal {
526
526
  return reply.path;
527
527
  }
528
528
  // fixme: placeholder copy
529
- /** Switch to another theme while the program runs: a name like "Dracula", or colors like `{ base: "Nord", background: "#000000" }`. */
529
+ /** Switch to another theme while the program runs: a name like "Dracula", or colors like `{ base: "Nord", background: "#000000" }`. Programs subscribed to color scheme reports (mode 2031) are told when it flips between dark and light. */
530
530
  async setTheme(theme) {
531
531
  await this.act("theme", { theme: syncTheme(theme)?.theme ?? theme }, `theme ${typeof theme === "string" ? theme : JSON.stringify(theme)}`);
532
532
  }
@@ -232,7 +232,8 @@ https://ui.perfetto.dev.
232
232
  Applies a theme right away: dark, light, or any Ghostty or Rex theme by name
233
233
  (case and spaces don't matter). "ghostty" and "rex" use the theme your
234
234
  Ghostty config or Rex settings pick (add :light or :dark to choose a side).
235
- Pass colors to override parts of a theme.
235
+ Pass colors to override parts of a theme. Programs that asked for color
236
+ scheme reports (mode 2031) are told when the switch flips dark and light.
236
237
 
237
238
  Examples:
238
239
  testingterm theme Dracula
@@ -2,7 +2,7 @@ import {
2
2
  defaultWorkers,
3
3
  evalFile,
4
4
  runFiles
5
- } from "./chunk-XCWXGUFI.js";
5
+ } from "./chunk-Q7U4D2YJ.js";
6
6
  import "./chunk-INTJPVJZ.js";
7
7
  import "./chunk-FQASQ43D.js";
8
8
  import {
package/dist/cli/main.js CHANGED
@@ -6,7 +6,7 @@ module.enableCompileCache?.();
6
6
  var argv = process.argv.slice(2);
7
7
  var command = argv[0];
8
8
  async function main() {
9
- const { commandHelp, rootHelp } = await import("../chunks/help-LZQLUFX7.js");
9
+ const { commandHelp, rootHelp } = await import("../chunks/help-LRGKDAA6.js");
10
10
  if (!command || command === "help" || command === "--help" || command === "-h") {
11
11
  const topic = command === "help" ? argv[1] : void 0;
12
12
  process.stdout.write(topic && commandHelp(topic) || rootHelp());
@@ -36,7 +36,7 @@ async function main() {
36
36
  const args = new Args(rest);
37
37
  switch (command) {
38
38
  case "run":
39
- return await (await import("../chunks/run-6BMSCVGT.js")).runCommand(args);
39
+ return await (await import("../chunks/run-X6BLV7F7.js")).runCommand(args);
40
40
  case "setup":
41
41
  return await (await import("../chunks/setup-WIZULKES.js")).setupCommand(args);
42
42
  case "upgrade":
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  Terminal,
5
5
  normalizeLaunch,
6
6
  test
7
- } from "./chunks/chunk-XCWXGUFI.js";
7
+ } from "./chunks/chunk-Q7U4D2YJ.js";
8
8
  import {
9
9
  CAPABILITY_PRESETS
10
10
  } from "./chunks/chunk-INTJPVJZ.js";
@@ -117,7 +117,7 @@ export declare class Terminal {
117
117
  }): Promise<string>;
118
118
  /** Stop the profile and return its path. Open it at https://ui.perfetto.dev. */
119
119
  stopProfile(): Promise<string>;
120
- /** Switch to another theme while the program runs: a name like "Dracula", or colors like `{ base: "Nord", background: "#000000" }`. */
120
+ /** Switch to another theme while the program runs: a name like "Dracula", or colors like `{ base: "Nord", background: "#000000" }`. Programs subscribed to color scheme reports (mode 2031) are told when it flips between dark and light. */
121
121
  setTheme(theme: Theme): Promise<void>;
122
122
  /** Change the grid size; the program gets SIGWINCH. */
123
123
  resize(cols: number, rows: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testingterm",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Test terminal apps: drive a real terminal, read its state, and capture screenshots, videos and profiles",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "zod": "^4.6.7"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@zenbu-labs/testingterm-darwin-arm64": "0.0.5",
39
- "@zenbu-labs/testingterm-darwin-x64": "0.0.5",
40
- "@zenbu-labs/testingterm-linux-x64": "0.0.5",
41
- "@zenbu-labs/testingterm-linux-arm64": "0.0.5"
38
+ "@zenbu-labs/testingterm-darwin-arm64": "0.0.6",
39
+ "@zenbu-labs/testingterm-darwin-x64": "0.0.6",
40
+ "@zenbu-labs/testingterm-linux-x64": "0.0.6",
41
+ "@zenbu-labs/testingterm-linux-arm64": "0.0.6"
42
42
  }
43
43
  }