@akshar5/cohall 0.12.1 → 0.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/CHANGELOG.md +8 -0
- package/bin/cohall.js +11 -2
- package/bin/cohall.js.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.2](https://github.com/AksharP5/cohall/compare/v0.12.1...v0.12.2) (2026-10-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **providers:** show why a Codex turn failed ([#198](https://github.com/AksharP5/cohall/issues/198)) ([14b4df2](https://github.com/AksharP5/cohall/commit/14b4df241d3e091dba5924bbfff5d896739caf01))
|
|
9
|
+
* **relay:** reject updates from closing connections ([#199](https://github.com/AksharP5/cohall/issues/199)) ([110645c](https://github.com/AksharP5/cohall/commit/110645cbad2e271fa6764f868ef6abe0885442c2))
|
|
10
|
+
|
|
3
11
|
## [0.12.1](https://github.com/AksharP5/cohall/compare/v0.12.0...v0.12.1) (2026-10-13)
|
|
4
12
|
|
|
5
13
|
|
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 { Effect, Schema } from "effect";
|
|
20
|
-
var version = "0.12.
|
|
20
|
+
var version = "0.12.2", maxSocketPayloadBytes, maxAttachmentBytes, maxTaskAttachments = 2, maxProgressNoteBytes = 1024, 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)), BotId, Bot, DeviceId, ThreadId, MessageId, TaskId, TaskRequestId, TaskRunId, ClarificationId, AuthSessionId, OperationId, Timestamp, TaskDeadline, taskDeadlineError = "Task deadline exceeded", taskDeadlinePassed = (task, time = Date.now()) => task.expiresAt !== undefined && Date.parse(task.expiresAt) <= time, Platform, Provider, DeviceStatus, TaskStatus, OperationStatus, TaskTraceEventKind, MessageRole, ConnectionRole, AuthSession, CreatePairingInput, PairingCredential, ExchangePairingInput, SessionCredential, PairingResult, Capability, Workspace, Device, DeviceOverview, maxDevicePageDevices = 16, maxDevicePageResponseBytes, DevicePage, minimumDeviceOperationVersion = "0.5.0", parsedVersion = (value) => {
|
|
23
23
|
const match = /^v?(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.exec(value);
|
|
@@ -540,6 +540,9 @@ class Hub {
|
|
|
540
540
|
return true;
|
|
541
541
|
}
|
|
542
542
|
isAuthorized(socket) {
|
|
543
|
+
if (socket.readyState !== WebSocket3.OPEN) {
|
|
544
|
+
return false;
|
|
545
|
+
}
|
|
543
546
|
const principal = this.#principals.get(socket);
|
|
544
547
|
if (principal === undefined) {
|
|
545
548
|
return false;
|
|
@@ -3662,6 +3665,12 @@ var parseCodex = async (stdout, existingSession) => {
|
|
|
3662
3665
|
let sessionId = existingSession;
|
|
3663
3666
|
let discardedEvent = false;
|
|
3664
3667
|
await forEachJsonEvent(stdout, (event) => {
|
|
3668
|
+
if (text(event.type) === "turn.failed") {
|
|
3669
|
+
throw new ProviderRunError({
|
|
3670
|
+
provider: "codex",
|
|
3671
|
+
message: (text(record(event.error)?.message) || "Codex turn failed").slice(0, 16384)
|
|
3672
|
+
});
|
|
3673
|
+
}
|
|
3665
3674
|
if (text(event.type) === "thread.started") {
|
|
3666
3675
|
sessionId = text(event.thread_id) ?? sessionId;
|
|
3667
3676
|
}
|
|
@@ -9166,4 +9175,4 @@ await main().catch((cause) => {
|
|
|
9166
9175
|
process.exitCode = 1;
|
|
9167
9176
|
});
|
|
9168
9177
|
|
|
9169
|
-
//# debugId=
|
|
9178
|
+
//# debugId=4B3B01B78A1B929E64756E2164756E21
|