@rstreamlabs/webtty 1.11.2 → 1.12.2

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/node.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  WebTTY,
3
3
  WebTTYCommand,
4
+ WebTTYCommandOutputLimitError,
4
5
  WebTTYFileSystem,
5
6
  WebTTYFileSystemError,
6
7
  WebTTYRemoteExecutor,
@@ -23,6 +24,7 @@ import {
23
24
  hashWebTTYSessionKeyGrant,
24
25
  openWebTTYCommand,
25
26
  parseWebDAVMultiStatus,
27
+ redactEndpointCredentials,
26
28
  renderWebTTYRecordedTextLog,
27
29
  resolveWebTTYExecutionURL,
28
30
  resolveWebTTYFileSystemURL,
@@ -38,7 +40,7 @@ import {
38
40
  webTTYRecordedEventEncryptedPayload,
39
41
  webTTYServerProofTranscriptBytes,
40
42
  webTTYSigningKeyID
41
- } from "./chunk-2XNLPDKP.mjs";
43
+ } from "./chunk-BSMXY5EO.mjs";
42
44
 
43
45
  // src/local-e2e.ts
44
46
  var localKeyFileVersion = 1;
@@ -441,6 +443,7 @@ var nodeWebSocketFactory = (url, options) => {
441
443
  export {
442
444
  WebTTY,
443
445
  WebTTYCommand,
446
+ WebTTYCommandOutputLimitError,
444
447
  WebTTYFileSystem,
445
448
  WebTTYFileSystemError,
446
449
  WebTTYRemoteExecutor,
@@ -469,6 +472,7 @@ export {
469
472
  parseWebDAVMultiStatus,
470
473
  parseWebTTYKnownServerKey,
471
474
  readWebTTYKnownServerKeysFile,
475
+ redactEndpointCredentials,
472
476
  renderWebTTYRecordedTextLog,
473
477
  resolveWebTTYExecutionURL,
474
478
  resolveWebTTYFileSystemURL,
@@ -6,15 +6,15 @@
6
6
  "type": "module",
7
7
  "dependencies": {
8
8
  "@rstreamlabs/webtty": "file:../..",
9
- "dotenv": "^17.4.2"
9
+ "dotenv": "^18.0.10"
10
10
  },
11
11
  "scripts": {
12
12
  "start": "tsx src/main.ts",
13
13
  "type-check": "tsc --noEmit"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^26",
17
- "tsx": "^4.23.1",
16
+ "@types/node": "^26.6.6",
17
+ "tsx": "^4.23.15",
18
18
  "typescript": "7.0.2"
19
19
  }
20
20
  }
@@ -9,3 +9,18 @@ cp .env.local.example .env.local
9
9
  npm install
10
10
  npm start
11
11
  ```
12
+
13
+ Use Node.js 24 and npm from this directory after building the monorepo. The Node
14
+ entry point supplies `nodeWebSocketFactory`, so it uses the qualified HTTP/1.1
15
+ WebSocket transport with certificate verification. Set `NODE_EXTRA_CA_CERTS`
16
+ before starting the process when the endpoint uses a private CA. The two commands
17
+ print collected output and then three streamed ticks. The remote server must
18
+ permit these commands and satisfy any endpoint/E2E trust policy; the sample does
19
+ not create a server or mint its URL grant.
20
+
21
+ After installation, run `npm run type-check` to check the sample against the
22
+ package types. From the monorepo root after building,
23
+ `node --test packages/webtty/test/remote-command-example.test.cjs` runs this
24
+ entrypoint against a synthetic TLS/WebSocket server without relying on a global
25
+ WebSocket. It verifies both commands and the selected HTTP/1.1 transport; it does
26
+ not execute a shell on a real host.
@@ -6,15 +6,15 @@
6
6
  "type": "module",
7
7
  "dependencies": {
8
8
  "@rstreamlabs/webtty": "file:../..",
9
- "dotenv": "^17.4.2"
9
+ "dotenv": "^18.0.10"
10
10
  },
11
11
  "scripts": {
12
12
  "start": "tsx src/main.ts",
13
13
  "type-check": "tsc --noEmit"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^26",
17
- "tsx": "^4.23.1",
16
+ "@types/node": "^26.6.6",
17
+ "tsx": "^4.23.15",
18
18
  "typescript": "7.0.2"
19
19
  }
20
20
  }
@@ -1,7 +1,8 @@
1
1
  // See LICENSE file in the project root for license information.
2
2
 
3
3
  import dotenv from "dotenv";
4
- import { WebTTYRemoteExecutor } from "@rstreamlabs/webtty";
4
+ import { WebTTYRemoteExecutor } from "@rstreamlabs/webtty/node";
5
+ import { nodeWebSocketFactory } from "@rstreamlabs/webtty/node";
5
6
 
6
7
  dotenv.config({ path: ".env.local" });
7
8
 
@@ -14,6 +15,7 @@ function env(name: string): string {
14
15
  async function main(): Promise<void> {
15
16
  const executor = new WebTTYRemoteExecutor({
16
17
  url: env("RSTREAM_WEBTTY_URL"),
18
+ webSocketFactory: nodeWebSocketFactory,
17
19
  });
18
20
  const result = await executor.runCommand("sh", ["-lc", "uname -a && pwd"], {
19
21
  timeoutMs: 30_000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstreamlabs/webtty",
3
- "version": "1.11.2",
3
+ "version": "1.12.2",
4
4
  "description": "Client-side implementation of the rstream WebTTY protocol.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,20 +41,20 @@
41
41
  "type-check": "tsc --noEmit"
42
42
  },
43
43
  "devDependencies": {
44
- "@turbo/gen": "^2.10.11",
45
- "@types/node": "^26",
46
- "@types/ws": "^8.18.1",
44
+ "@turbo/gen": "^2.11.11",
45
+ "@types/node": "^26.6.6",
46
+ "@types/ws": "^8.18.2",
47
47
  "eslint": "9.39.5",
48
48
  "eslint-config": "*",
49
- "protobufjs-cli": "^2.6.2",
49
+ "protobufjs-cli": "^2.7.1",
50
50
  "tsup": "^8.5.1",
51
51
  "typescript": "6.0.3",
52
52
  "typescript-config": "*"
53
53
  },
54
54
  "dependencies": {
55
- "protobufjs": "^8.7.2",
56
- "ws": "^8.21.3",
57
- "@rstreamlabs/filesystem": "^0.3.0"
55
+ "protobufjs": "^8.8.1",
56
+ "ws": "^8.23.0",
57
+ "@rstreamlabs/filesystem": "^0.3.2"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"