@tui-sandbox/library 11.6.3 → 11.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-sandbox/library",
3
- "version": "11.6.3",
3
+ "version": "11.6.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mikavilpas/tui-sandbox"
@@ -12,14 +12,14 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@catppuccin/palette": "1.7.1",
15
- "@trpc/client": "11.4.4",
16
- "@trpc/server": "11.4.4",
15
+ "@trpc/client": "11.5.0",
16
+ "@trpc/server": "11.5.0",
17
17
  "@xterm/addon-fit": "0.10.0",
18
18
  "@xterm/addon-unicode11": "0.8.0",
19
19
  "@xterm/xterm": "5.5.0",
20
20
  "concurrently": "9.2.0",
21
21
  "cors": "2.8.5",
22
- "cypress": "14.5.4",
22
+ "cypress": "15.0.0",
23
23
  "dree": "5.1.5",
24
24
  "express": "5.1.0",
25
25
  "neovim": "5.3.0",
@@ -27,23 +27,24 @@
27
27
  "prettier": "3.6.2",
28
28
  "type-fest": "4.41.0",
29
29
  "winston": "3.17.0",
30
- "zod": "4.0.15"
30
+ "zod": "4.0.17"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/command-exists": "1.2.3",
34
34
  "@types/cors": "2.8.19",
35
35
  "@types/express": "5.0.3",
36
- "@types/node": "24.2.0",
36
+ "@types/node": "24.3.0",
37
37
  "nodemon": "3.1.10",
38
- "tsx": "4.20.3",
39
- "vite": "7.1.0",
38
+ "tsx": "4.20.4",
39
+ "vite": "7.1.3",
40
40
  "vitest": "3.2.4"
41
41
  },
42
42
  "peerDependencies": {
43
- "cypress": "^13 || ^14",
43
+ "cypress": "^13 || ^14 || ^15",
44
44
  "prettier": ">= 3.3.3",
45
45
  "type-fest": ">= 4.27.0",
46
46
  "typescript": ">= 5.6.3",
47
+ "wait-on": "8.0.4",
47
48
  "zod": ">=4.0.0-0 <5"
48
49
  },
49
50
  "engines": {
@@ -88,6 +88,17 @@ export type BrowserTerminalSettings = {
88
88
  terminal: Terminal
89
89
  api: TuiTerminalApi
90
90
  recipes: {
91
+ /** Make the terminal respond to "DA1—Primary Device Attributes" requests.
92
+ *
93
+ * In this DA exchange, the host asks for the terminal's architectural class and basic attributes.
94
+ * https://vt100.net/docs/vt510-rm/DA1.html
95
+ *
96
+ * Terminal Response
97
+ *
98
+ * The terminal responds by sending its architectural class and basic
99
+ * attributes to the host. This response depends on the terminal's current
100
+ * operating VT level.
101
+ */
91
102
  supportDA1: () => void
92
103
  }
93
104
  }) => void
@@ -23,10 +23,7 @@ export default class TerminalTestApplication implements AsyncDisposable {
23
23
  public state: ResettableState | undefined
24
24
  public readonly events: EventEmitter
25
25
 
26
- public constructor(
27
- private readonly testEnvironmentPath: string,
28
- public readonly application: DisposableSingleApplication = new DisposableSingleApplication()
29
- ) {
26
+ public constructor(public readonly application: DisposableSingleApplication = new DisposableSingleApplication()) {
30
27
  this.events = new EventEmitter()
31
28
  }
32
29
 
@@ -34,11 +34,10 @@ export async function start(
34
34
 
35
35
  export async function initializeStdout(
36
36
  options: { client: TabId },
37
- signal: AbortSignal | undefined,
38
- testEnvironmentPath: string
37
+ signal: AbortSignal | undefined
39
38
  ): Promise<AsyncGenerator<string, void, unknown>> {
40
39
  const tabId = options.client.tabId
41
- const app = terminals.get(tabId) ?? new TerminalTestApplication(testEnvironmentPath)
40
+ const app = terminals.get(tabId) ?? new TerminalTestApplication()
42
41
  if (terminals.get(tabId) === undefined) {
43
42
  terminals.set(tabId, app)
44
43
  resources.get().use(app)
@@ -23,7 +23,7 @@ export type StartTerminalInput = z.infer<typeof startTerminalInputSchema>
23
23
  export function createTerminalRouter(config: DirectoriesConfig) {
24
24
  const terminalRouter = trpc.router({
25
25
  onStdout: trpc.procedure.input(z.object({ client: tabIdSchema })).subscription(options => {
26
- return terminal.initializeStdout(options.input, options.signal, config.testEnvironmentPath)
26
+ return terminal.initializeStdout(options.input, options.signal)
27
27
  }),
28
28
 
29
29
  start: trpc.procedure.input(startTerminalInputSchema).mutation(options => {