ragent-cli 1.11.0 → 1.11.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/index.js CHANGED
@@ -31,7 +31,7 @@ var require_package = __commonJS({
31
31
  "package.json"(exports2, module2) {
32
32
  module2.exports = {
33
33
  name: "ragent-cli",
34
- version: "1.11.0",
34
+ version: "1.11.2",
35
35
  description: "CLI agent for rAgent Live \u2014 browser-first terminal control plane for AI coding agents",
36
36
  main: "dist/index.js",
37
37
  bin: {
@@ -86,7 +86,6 @@ var require_package = __commonJS({
86
86
  },
87
87
  dependencies: {
88
88
  "@azure/web-pubsub-client": "^1.0.2",
89
- "@ragent/transcript-protocol": "*",
90
89
  commander: "^14.0.3",
91
90
  figlet: "^1.9.3",
92
91
  "node-pty": "^1.1.0",
@@ -97,6 +96,7 @@ var require_package = __commonJS({
97
96
  "@changesets/cli": "^2.29.8",
98
97
  "@cyclonedx/cyclonedx-npm": "^4.2.1",
99
98
  "@eslint/js": "^10.0.1",
99
+ "@ragent/transcript-protocol": "*",
100
100
  "@types/figlet": "^1.7.0",
101
101
  "@types/node": "^25.5.0",
102
102
  "@types/ws": "^8.5.13",
@@ -5567,14 +5567,20 @@ async function runAgent(rawOptions) {
5567
5567
  log15.warn("failed to decrypt input \u2014 ignoring");
5568
5568
  }
5569
5569
  }
5570
- } else if (typeof payload.data === "string") {
5570
+ } else if (typeof payload.data === "string" && !conn.sessionKey) {
5571
5571
  inputData = payload.data;
5572
+ } else if (conn.sessionKey) {
5573
+ log15.warn("rejecting plaintext input frame while encrypted channel is active");
5572
5574
  }
5573
5575
  if (inputData !== null) {
5574
5576
  const sid = typeof payload.sessionId === "string" ? payload.sessionId.trim() : "";
5575
5577
  dispatcher.handleInput(inputData, sid);
5576
5578
  }
5577
5579
  } else if (payload.type === "resize" && Number.isInteger(payload.cols) && Number.isInteger(payload.rows)) {
5580
+ if (conn.sessionKey && !dispatcher.verifyMessageHmac(payload)) {
5581
+ log15.warn("rejecting resize frame \u2014 HMAC verification failed");
5582
+ return;
5583
+ }
5578
5584
  const sid = typeof payload.sessionId === "string" ? payload.sessionId.trim() : "";
5579
5585
  dispatcher.handleResize(payload.cols, payload.rows, sid);
5580
5586
  } else if (payload.type === "control" && typeof payload.action === "string") {
package/dist/sbom.json CHANGED
@@ -484,24 +484,6 @@
484
484
  }
485
485
  ]
486
486
  },
487
- {
488
- "type": "library",
489
- "name": "transcript-protocol",
490
- "group": "@ragent",
491
- "version": "0.1.0",
492
- "bom-ref": "ragent-live|@ragent/transcript-protocol@0.1.0",
493
- "purl": "pkg:npm/%40ragent/transcript-protocol@0.1.0",
494
- "properties": [
495
- {
496
- "name": "cdx:npm:package:path",
497
- "value": "node_modules/@ragent/transcript-protocol"
498
- },
499
- {
500
- "name": "cdx:npm:package:private",
501
- "value": "true"
502
- }
503
- ]
504
- },
505
487
  {
506
488
  "type": "library",
507
489
  "name": "wasm-util",
@@ -1184,8 +1166,8 @@
1184
1166
  {
1185
1167
  "type": "library",
1186
1168
  "name": "ragent-cli",
1187
- "version": "1.11.0",
1188
- "bom-ref": "ragent-live|ragent-cli@1.11.0",
1169
+ "version": "1.11.2",
1170
+ "bom-ref": "ragent-live|ragent-cli@1.11.2",
1189
1171
  "author": "Intellimetrics",
1190
1172
  "description": "CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents",
1191
1173
  "licenses": [
@@ -1196,7 +1178,7 @@
1196
1178
  }
1197
1179
  }
1198
1180
  ],
1199
- "purl": "pkg:npm/ragent-cli@1.11.0",
1181
+ "purl": "pkg:npm/ragent-cli@1.11.2",
1200
1182
  "externalReferences": [
1201
1183
  {
1202
1184
  "url": "https://github.com/chadlindell/ragent-live/issues",
@@ -1321,7 +1303,7 @@
1321
1303
  "ragent-live|@emnapi/wasi-threads@1.2.1",
1322
1304
  "ragent-live|@pkgjs/parseargs@0.11.0",
1323
1305
  "ragent-live|@tybys/wasm-util@0.10.1",
1324
- "ragent-live|ragent-cli@1.11.0"
1306
+ "ragent-live|ragent-cli@1.11.2"
1325
1307
  ]
1326
1308
  },
1327
1309
  {
@@ -1379,9 +1361,6 @@
1379
1361
  {
1380
1362
  "ref": "ragent-live|@pkgjs/parseargs@0.11.0"
1381
1363
  },
1382
- {
1383
- "ref": "ragent-live|@ragent/transcript-protocol@0.1.0"
1384
- },
1385
1364
  {
1386
1365
  "ref": "ragent-live|@tybys/wasm-util@0.10.1",
1387
1366
  "dependsOn": [
@@ -1457,10 +1436,9 @@
1457
1436
  ]
1458
1437
  },
1459
1438
  {
1460
- "ref": "ragent-live|ragent-cli@1.11.0",
1439
+ "ref": "ragent-live|ragent-cli@1.11.2",
1461
1440
  "dependsOn": [
1462
1441
  "ragent-live|@azure/web-pubsub-client@1.0.4",
1463
- "ragent-live|@ragent/transcript-protocol@0.1.0",
1464
1442
  "ragent-live|commander@14.0.3",
1465
1443
  "ragent-live|figlet@1.11.0",
1466
1444
  "ragent-live|node-pty@1.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ragent-cli",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -55,7 +55,6 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@azure/web-pubsub-client": "^1.0.2",
58
- "@ragent/transcript-protocol": "*",
59
58
  "commander": "^14.0.3",
60
59
  "figlet": "^1.9.3",
61
60
  "node-pty": "^1.1.0",
@@ -66,6 +65,7 @@
66
65
  "@changesets/cli": "^2.29.8",
67
66
  "@cyclonedx/cyclonedx-npm": "^4.2.1",
68
67
  "@eslint/js": "^10.0.1",
68
+ "@ragent/transcript-protocol": "*",
69
69
  "@types/figlet": "^1.7.0",
70
70
  "@types/node": "^25.5.0",
71
71
  "@types/ws": "^8.5.13",