@tuidom/headless-backend 0.2.3 → 0.3.0

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.
@@ -41,6 +41,11 @@ export declare class HeadlessCaptureBackend implements ITerminalBackend {
41
41
  * screenshots.
42
42
  */
43
43
  probeKeyboardProtocol(_onResult: (supported: boolean) => void): void;
44
+ /**
45
+ * There is no terminal to ask: answers `undefined` ("unknown terminal") right away,
46
+ * so version-dependent behavior stays at its deterministic default.
47
+ */
48
+ probeTerminalVersion(onResult: (nameAndVersion: string | undefined) => void): void;
44
49
  renderFrame(grid: Grid, cursorPosition: Point | null): void;
45
50
  getSize(): Size;
46
51
  setup(): void;
@@ -55,6 +55,13 @@ export class HeadlessCaptureBackend {
55
55
  probeKeyboardProtocol(_onResult) {
56
56
  // intentionally never resolved — see doc comment
57
57
  }
58
+ /**
59
+ * There is no terminal to ask: answers `undefined` ("unknown terminal") right away,
60
+ * so version-dependent behavior stays at its deterministic default.
61
+ */
62
+ probeTerminalVersion(onResult) {
63
+ onResult(undefined);
64
+ }
58
65
  renderFrame(grid, cursorPosition) {
59
66
  this.lastFrame = snapshotGrid(grid, cursorPosition);
60
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuidom/headless-backend",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Experimental terminal UI DOM — headless capture backend (in-memory frames for screenshots/e2e). API is unstable.",
6
6
  "license": "MIT",
@@ -28,6 +28,6 @@
28
28
  "./*": "./dist/*.js"
29
29
  },
30
30
  "dependencies": {
31
- "@tuidom/core": "0.2.3"
31
+ "@tuidom/core": "0.3.0"
32
32
  }
33
33
  }