testingterm 0.0.4 → 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.
- package/dist/chunks/{chunk-XCWXGUFI.js → chunk-Q7U4D2YJ.js} +1 -1
- package/dist/chunks/{help-LZQLUFX7.js → help-LRGKDAA6.js} +2 -1
- package/dist/chunks/{run-6BMSCVGT.js → run-X6BLV7F7.js} +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/index.js +1 -1
- package/dist/terminal.d.ts +1 -1
- package/package.json +5 -5
|
@@ -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
|
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-
|
|
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-
|
|
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
package/dist/terminal.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
39
|
-
"@zenbu-labs/testingterm-darwin-x64": "0.0.
|
|
40
|
-
"@zenbu-labs/testingterm-linux-x64": "0.0.
|
|
41
|
-
"@zenbu-labs/testingterm-linux-arm64": "0.0.
|
|
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
|
}
|