@akshar5/cohall 0.12.3 → 0.12.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 +7 -0
- package/bin/cohall.js +10 -3
- package/bin/cohall.js.map +3 -3
- package/docs/integrations.md +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.4](https://github.com/AksharP5/cohall/compare/v0.12.3...v0.12.4) (2026-10-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **relay:** route work using target workspace path rules ([#205](https://github.com/AksharP5/cohall/issues/205)) ([1c5b991](https://github.com/AksharP5/cohall/commit/1c5b991558e0354da07f476df872fae9538d0508))
|
|
9
|
+
|
|
3
10
|
## [0.12.3](https://github.com/AksharP5/cohall/compare/v0.12.2...v0.12.3) (2026-10-15)
|
|
4
11
|
|
|
5
12
|
|
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.4", 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);
|
|
@@ -2261,6 +2261,7 @@ import { createHash as createHash3, timingSafeEqual } from "node:crypto";
|
|
|
2261
2261
|
import { access as access6, chmod as chmod8 } from "node:fs/promises";
|
|
2262
2262
|
import { createServer } from "node:http";
|
|
2263
2263
|
import { platform as platform6 } from "node:os";
|
|
2264
|
+
import { posix, win32 } from "node:path";
|
|
2264
2265
|
import { WebSocketServer } from "ws";
|
|
2265
2266
|
var RequestError, relayListenOptions = (configuration, environment = process.env, pid = process.pid) => {
|
|
2266
2267
|
const listenPid = Number(environment.LISTEN_PID);
|
|
@@ -2363,7 +2364,13 @@ Content-Length: 0\r
|
|
|
2363
2364
|
const prompt = `${input.prompt} ${input.context ?? ""}`.toLowerCase();
|
|
2364
2365
|
const needsXcode = /\b(xcode|ios|macos|swiftui|app store)\b/.test(prompt);
|
|
2365
2366
|
const needsBrowser = /\b(browser|chrome|youtube|twitter|logged[- ]?in|signed[- ]?in|x\.com)\b/.test(prompt);
|
|
2366
|
-
|
|
2367
|
+
const paths2 = device.platform === "windows" ? win32 : posix;
|
|
2368
|
+
const workspace = input.workspace;
|
|
2369
|
+
const matchesWorkspace = workspace !== undefined && paths2.isAbsolute(workspace) && device.workspaces.some(({ path }) => {
|
|
2370
|
+
const child = paths2.relative(path, workspace);
|
|
2371
|
+
return child !== ".." && !child.startsWith(`..${paths2.sep}`) && !paths2.isAbsolute(child);
|
|
2372
|
+
});
|
|
2373
|
+
return (device.status === "offline" ? 0 : 100) + (matchesWorkspace ? 80 : 0) + (needsXcode && device.capabilities.some((capability) => capability.id === "xcode") ? 60 : 0) + (needsBrowser && device.capabilities.some((capability) => capability.id === "browser-session") ? 40 : 0) + (sourceDeviceId === device.id ? -5 : 0);
|
|
2367
2374
|
}, resolveDelegation = (input, sourceDeviceId) => Effect16.gen(function* () {
|
|
2368
2375
|
const store = yield* exports_store.Service;
|
|
2369
2376
|
const ancestors = [];
|
|
@@ -9190,4 +9197,4 @@ await main().catch((cause) => {
|
|
|
9190
9197
|
process.exitCode = 1;
|
|
9191
9198
|
});
|
|
9192
9199
|
|
|
9193
|
-
//# debugId=
|
|
9200
|
+
//# debugId=DB1904B0DFF697EC64756E2164756E21
|