@akshar5/cohall 0.5.2 → 0.5.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.4](https://github.com/AksharP5/cohall/compare/v0.5.3...v0.5.4) (2026-08-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **provider:** keep tasks alive after oversized events ([#58](https://github.com/AksharP5/cohall/issues/58)) ([ac401a2](https://github.com/AksharP5/cohall/commit/ac401a2c471d3addd1bbbbd0ff97a452990f7e02))
9
+
10
+ ## [0.5.3](https://github.com/AksharP5/cohall/compare/v0.5.2...v0.5.3) (2026-08-10)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **device:** trust distro-packaged npm ([#56](https://github.com/AksharP5/cohall/issues/56)) ([60de35d](https://github.com/AksharP5/cohall/commit/60de35dff54847b221f46cd89744cd0acef732a9))
16
+
3
17
  ## [0.5.2](https://github.com/AksharP5/cohall/compare/v0.5.1...v0.5.2) (2026-08-10)
4
18
 
5
19
 
package/bin/cohall.js CHANGED
@@ -17,7 +17,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
17
17
 
18
18
  // packages/protocol/src/index.ts
19
19
  import { Schema } from "effect";
20
- var version = "0.5.2", maxSocketPayloadBytes, bounded = (maxLength) => Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(maxLength)), optionalText = (maxLength) => Schema.String.check(Schema.isMaxLength(maxLength)), boundedArray = (schema, maxLength) => Schema.Array(schema).check(Schema.isMaxLength(maxLength)), count, uuid = (name) => Schema.String.check(Schema.isUUID(4)).pipe(Schema.brand(name)), isoTimestamp = (name) => Schema.String.check(Schema.isPattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?Z$/, {
20
+ var version = "0.5.4", maxSocketPayloadBytes, bounded = (maxLength) => Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(maxLength)), optionalText = (maxLength) => Schema.String.check(Schema.isMaxLength(maxLength)), boundedArray = (schema, maxLength) => Schema.Array(schema).check(Schema.isMaxLength(maxLength)), count, uuid = (name) => Schema.String.check(Schema.isUUID(4)).pipe(Schema.brand(name)), isoTimestamp = (name) => Schema.String.check(Schema.isPattern(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?Z$/, {
21
21
  expected: "an ISO-8601 UTC timestamp"
22
22
  })).pipe(Schema.brand(name)), DeviceId, ThreadId, MessageId, TaskId, AuthSessionId, OperationId, Timestamp, Platform, Provider, DeviceStatus, TaskStatus, OperationStatus, TaskTraceEventKind, MessageRole, ConnectionRole, AuthSession, CreatePairingInput, PairingCredential, ExchangePairingInput, SessionCredential, PairingResult, Capability, Workspace, Device, minimumDeviceOperationVersion = "0.5.0", parsedVersion = (value) => {
23
23
  const match = /^v?(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.exec(value);
@@ -2469,9 +2469,16 @@ var forEachJsonEvent = async (stdout, onEvent) => {
2469
2469
  const limit = 1024 * 1024;
2470
2470
  let chunks = [];
2471
2471
  let size = 0;
2472
+ let oversized = false;
2472
2473
  const append = (chunk) => {
2474
+ if (oversized) {
2475
+ return;
2476
+ }
2473
2477
  if (size + chunk.byteLength > limit) {
2474
- throw new Error("Provider event exceeded 1024 KiB");
2478
+ chunks = [];
2479
+ size = 0;
2480
+ oversized = true;
2481
+ return;
2475
2482
  }
2476
2483
  if (chunk.byteLength > 0) {
2477
2484
  chunks.push(chunk);
@@ -2479,6 +2486,10 @@ var forEachJsonEvent = async (stdout, onEvent) => {
2479
2486
  }
2480
2487
  };
2481
2488
  const emit = () => {
2489
+ if (oversized) {
2490
+ oversized = false;
2491
+ return;
2492
+ }
2482
2493
  const line = Buffer.concat(chunks, size).toString("utf8");
2483
2494
  chunks = [];
2484
2495
  size = 0;
@@ -2501,7 +2512,7 @@ var forEachJsonEvent = async (stdout, onEvent) => {
2501
2512
  }
2502
2513
  append(bytes.subarray(start));
2503
2514
  }
2504
- if (size > 0) {
2515
+ if (size > 0 || oversized) {
2505
2516
  emit();
2506
2517
  }
2507
2518
  };
@@ -3484,7 +3495,15 @@ var containsPath = (root, path) => {
3484
3495
  const child = relative(root, path);
3485
3496
  return child === "" || !child.startsWith("..") && !isAbsolute2(child);
3486
3497
  };
3487
- var linuxSystemExecutableRoots = ["/bin", "/sbin", "/usr/bin", "/usr/sbin", "/nix/store"];
3498
+ var linuxSystemExecutableRoots = [
3499
+ "/bin",
3500
+ "/sbin",
3501
+ "/usr/bin",
3502
+ "/usr/sbin",
3503
+ "/usr/lib/node_modules",
3504
+ "/usr/share/nodejs",
3505
+ "/nix/store"
3506
+ ];
3488
3507
  var macosHomebrewRoots = ["/opt/homebrew", "/usr/local"];
3489
3508
  var macosAdminGroup = 80;
3490
3509
  var isTrustedSystemExecutablePath = (platform3, canonical) => platform3 === "linux" && linuxSystemExecutableRoots.some((root) => containsPath(root, canonical));
@@ -5614,4 +5633,4 @@ await main().catch((cause) => {
5614
5633
  process.exitCode = 1;
5615
5634
  });
5616
5635
 
5617
- //# debugId=450AEED33D42A83A64756E2164756E21
5636
+ //# debugId=DFC9F9EACAF45ECA64756E2164756E21