@akshar5/cohall 0.11.0 → 0.11.1
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 +13 -12
- package/bin/cohall.js.map +4 -4
- package/docs/install.md +7 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/AksharP5/cohall/compare/v0.11.0...v0.11.1) (2026-10-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **setup:** unblock client repair and reject missing relays early ([#171](https://github.com/AksharP5/cohall/issues/171)) ([dbf2d0d](https://github.com/AksharP5/cohall/commit/dbf2d0d1c94297335325fe3657835cccf7f4bc3c))
|
|
9
|
+
|
|
3
10
|
## [0.11.0](https://github.com/AksharP5/cohall/compare/v0.10.2...v0.11.0) (2026-10-04)
|
|
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.11.
|
|
20
|
+
var version = "0.11.1", 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, 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);
|
|
@@ -5376,7 +5376,7 @@ var guidedSetupInput = async (options, prompter) => {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
const deviceName = options.clientOnly ? undefined : options.deviceName ?? await prompter.answer("Device name", existing?.deviceName ?? hostname2());
|
|
5378
5378
|
const providers = options.providers ?? (options.clientOnly ? existing?.providers?.join(",") ?? "auto" : await prompter.answer("Providers", existing?.providers?.join(",") ?? "auto"));
|
|
5379
|
-
const token = options.
|
|
5379
|
+
const token = options.readToken === undefined ? hasRequiredCredentials ? undefined : await prompter.secret("Pairing token") : await options.readToken();
|
|
5380
5380
|
if (!hasRequiredCredentials && (token === undefined || token.length === 0)) {
|
|
5381
5381
|
throw new Error("A pairing token is required");
|
|
5382
5382
|
}
|
|
@@ -7428,10 +7428,11 @@ var runCli = async (command, raw) => {
|
|
|
7428
7428
|
"workspace"
|
|
7429
7429
|
]);
|
|
7430
7430
|
noPositionals(arguments_, command);
|
|
7431
|
-
|
|
7431
|
+
const clientOnly = arguments_.options.has("client-only");
|
|
7432
|
+
if (clientOnly && arguments_.options.has("service")) {
|
|
7432
7433
|
throw new Error("A client-only setup cannot install a device service");
|
|
7433
7434
|
}
|
|
7434
|
-
const
|
|
7435
|
+
const tokenFile = option(arguments_, "token-file");
|
|
7435
7436
|
const interactive = process.stdin.isTTY === true && process.stderr.isTTY === true;
|
|
7436
7437
|
const relayUrl = option(arguments_, "relay");
|
|
7437
7438
|
const deviceName = option(arguments_, "name");
|
|
@@ -7445,11 +7446,11 @@ var runCli = async (command, raw) => {
|
|
|
7445
7446
|
};
|
|
7446
7447
|
try {
|
|
7447
7448
|
const input = await guidedSetupInput({
|
|
7448
|
-
clientOnly
|
|
7449
|
+
clientOnly,
|
|
7449
7450
|
workspaces: values(arguments_, "workspace"),
|
|
7450
7451
|
cwd: process.cwd(),
|
|
7451
7452
|
...relayUrl === undefined ? {} : { relayUrl },
|
|
7452
|
-
...
|
|
7453
|
+
...tokenFile === undefined ? {} : { readToken: () => pairingToken(arguments_) },
|
|
7453
7454
|
...deviceName === undefined ? {} : { deviceName },
|
|
7454
7455
|
...providerInput === undefined ? {} : { providers: providerInput }
|
|
7455
7456
|
}, prompter);
|
|
@@ -7459,19 +7460,19 @@ var runCli = async (command, raw) => {
|
|
|
7459
7460
|
configuration: await makeStoredConfiguration({
|
|
7460
7461
|
relayUrl: input.relayUrl,
|
|
7461
7462
|
...input.deviceName === undefined ? {} : { deviceName: input.deviceName },
|
|
7462
|
-
workspaces: input.workspaces,
|
|
7463
|
+
...clientOnly ? {} : { workspaces: input.workspaces },
|
|
7463
7464
|
providers
|
|
7464
7465
|
}),
|
|
7465
7466
|
roles: [
|
|
7466
7467
|
...existing?.clientToken === undefined ? [] : ["client"],
|
|
7467
|
-
...
|
|
7468
|
+
...clientOnly || existing?.deviceToken === undefined ? [] : ["device"]
|
|
7468
7469
|
]
|
|
7469
7470
|
} : await joinRelay({
|
|
7470
7471
|
relayUrl: input.relayUrl,
|
|
7471
7472
|
token: input.token ?? "",
|
|
7472
|
-
clientOnly
|
|
7473
|
+
clientOnly,
|
|
7473
7474
|
...input.deviceName === undefined ? {} : { deviceName: input.deviceName },
|
|
7474
|
-
workspaces: input.workspaces,
|
|
7475
|
+
...clientOnly ? {} : { workspaces: input.workspaces },
|
|
7475
7476
|
providers
|
|
7476
7477
|
});
|
|
7477
7478
|
if (input.reusedConfiguration) {
|
|
@@ -7489,7 +7490,7 @@ var runCli = async (command, raw) => {
|
|
|
7489
7490
|
workspaces: result.configuration.workspaces,
|
|
7490
7491
|
skills: installedSkills,
|
|
7491
7492
|
...service === undefined ? {} : { service },
|
|
7492
|
-
next: service === undefined && !
|
|
7493
|
+
next: service === undefined && !clientOnly ? "Run `cohall service install` for background availability, or `cohall device` now. Then run `cohall doctor` and the delegation check in `cohall onboard`." : "Run `cohall doctor`, then the delegation check in `cohall onboard`."
|
|
7493
7494
|
});
|
|
7494
7495
|
} finally {
|
|
7495
7496
|
prompter.close();
|
|
@@ -8935,4 +8936,4 @@ await main().catch((cause) => {
|
|
|
8935
8936
|
process.exitCode = 1;
|
|
8936
8937
|
});
|
|
8937
8938
|
|
|
8938
|
-
//# debugId=
|
|
8939
|
+
//# debugId=DE88F22C811E1F1F64756E2164756E21
|