@akshar5/cohall 0.12.7 → 0.12.9
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 +14 -0
- package/README.md +6 -0
- package/bin/{chunk-akct7v1q.js → chunk-0d3g10k2.js} +5 -5
- package/bin/{chunk-b3ba95j4.js → chunk-1bmb5y87.js} +33 -6
- package/bin/{chunk-b3ba95j4.js.map → chunk-1bmb5y87.js.map} +3 -3
- package/bin/{chunk-61m7z93m.js → chunk-8kfggcj5.js} +1 -1
- package/bin/{chunk-39by7csf.js → chunk-c78ed3xe.js} +4 -4
- package/bin/{chunk-90k4bw6t.js → chunk-fgj3e2gh.js} +35 -10
- package/bin/chunk-fgj3e2gh.js.map +14 -0
- package/bin/{chunk-89ga9j8t.js → chunk-hdh0nnc8.js} +1 -1
- package/bin/{chunk-27xa296w.js → chunk-jr6pyy7x.js} +1 -1
- package/bin/{chunk-7ss2d5n4.js → chunk-kte3y9sj.js} +2 -2
- package/bin/{chunk-d2sykjmx.js → chunk-nhc7emaz.js} +13 -5
- package/bin/chunk-nhc7emaz.js.map +10 -0
- package/bin/{chunk-7dgeftrk.js → chunk-ym98h2bp.js} +2 -2
- package/bin/{chunk-7dgeftrk.js.map → chunk-ym98h2bp.js.map} +1 -1
- package/bin/{chunk-zxrjgp9k.js → chunk-zwxzxnsj.js} +1 -1
- package/bin/cohall.js +7 -7
- package/docs/grok-bot.md +9 -0
- package/docs/install.md +6 -0
- package/docs/muse.md +13 -9
- package/package.json +1 -1
- package/bin/chunk-90k4bw6t.js.map +0 -14
- package/bin/chunk-d2sykjmx.js.map +0 -10
- /package/bin/{chunk-akct7v1q.js.map → chunk-0d3g10k2.js.map} +0 -0
- /package/bin/{chunk-61m7z93m.js.map → chunk-8kfggcj5.js.map} +0 -0
- /package/bin/{chunk-39by7csf.js.map → chunk-c78ed3xe.js.map} +0 -0
- /package/bin/{chunk-89ga9j8t.js.map → chunk-hdh0nnc8.js.map} +0 -0
- /package/bin/{chunk-27xa296w.js.map → chunk-jr6pyy7x.js.map} +0 -0
- /package/bin/{chunk-7ss2d5n4.js.map → chunk-kte3y9sj.js.map} +0 -0
- /package/bin/{chunk-zxrjgp9k.js.map → chunk-zwxzxnsj.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.9](https://github.com/AksharP5/cohall/compare/v0.12.8...v0.12.9) (2026-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **device:** recover Grok Bot tasks after VM resume ([#244](https://github.com/AksharP5/cohall/issues/244)) ([5f6e749](https://github.com/AksharP5/cohall/commit/5f6e74999150e52b2ef0d69b6f74066bf5c29588))
|
|
9
|
+
|
|
10
|
+
## [0.12.8](https://github.com/AksharP5/cohall/compare/v0.12.7...v0.12.8) (2026-11-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **auth:** keep active devices paired automatically ([#242](https://github.com/AksharP5/cohall/issues/242)) ([9811828](https://github.com/AksharP5/cohall/commit/98118285728a05cb6bac8bca5e97ec99631f20ce))
|
|
16
|
+
|
|
3
17
|
## [0.12.7](https://github.com/AksharP5/cohall/compare/v0.12.6...v0.12.7) (2026-10-25)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -143,6 +143,12 @@ worker again to enable source attribution and that routing preference. Forgettin
|
|
|
143
143
|
a device revokes both associated credentials. Client-only pairings have no worker
|
|
144
144
|
identity.
|
|
145
145
|
|
|
146
|
+
Credentials expire after 90 days of inactivity. Successful client authentication
|
|
147
|
+
and valid worker heartbeats renew their respective credentials automatically,
|
|
148
|
+
without changing device identities or completion inboxes. Unused credentials
|
|
149
|
+
still expire, and expired or revoked credentials cannot renew themselves.
|
|
150
|
+
Upgrade the relay to enable renewal for existing credentials before they expire.
|
|
151
|
+
|
|
146
152
|
### 3. Keep the device available
|
|
147
153
|
|
|
148
154
|
```bash
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
trustedExecutable,
|
|
10
10
|
upgrade,
|
|
11
11
|
writeBotReply
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-1bmb5y87.js";
|
|
13
13
|
import {
|
|
14
14
|
acknowledgedTaskResult,
|
|
15
15
|
createDelegation,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
taskResult,
|
|
20
20
|
threadContext,
|
|
21
21
|
waitForTask
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-8kfggcj5.js";
|
|
23
23
|
import {
|
|
24
24
|
RelayDecodeError,
|
|
25
25
|
RelayRequestError,
|
|
26
26
|
exchangePairing,
|
|
27
27
|
exports_src,
|
|
28
28
|
readInputAttachments
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-zwxzxnsj.js";
|
|
30
30
|
import {
|
|
31
31
|
readBoundedFile
|
|
32
32
|
} from "./chunk-p493vm5f.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
__require,
|
|
72
72
|
version
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ym98h2bp.js";
|
|
74
74
|
|
|
75
75
|
// apps/device/src/cli.ts
|
|
76
76
|
import { Effect as Effect4, Schema as Schema3 } from "effect";
|
|
@@ -1816,7 +1816,7 @@ var runCli = async (command, raw) => {
|
|
|
1816
1816
|
print(allDeviceHealth(await Effect4.runPromise(relay2.devices()), version));
|
|
1817
1817
|
return;
|
|
1818
1818
|
}
|
|
1819
|
-
const { checkMcp, readMcpHostDiagnostics } = await import("./chunk-
|
|
1819
|
+
const { checkMcp, readMcpHostDiagnostics } = await import("./chunk-kte3y9sj.js");
|
|
1820
1820
|
const configuration2 = await readStoredConfiguration();
|
|
1821
1821
|
const relayUrl = normalizeRelayUrl(process.env.COHALL_RELAY_URL ?? configuration2?.relayUrl ?? "http://127.0.0.1:8787");
|
|
1822
1822
|
const storedCredentials = credentialsForRelay(configuration2, relayUrl);
|
|
@@ -841,6 +841,14 @@ var Acceptance = Schema3.Union([
|
|
|
841
841
|
var SendResult = Schema3.Struct({ accepted: Schema3.Literal(true) });
|
|
842
842
|
|
|
843
843
|
class GatewayError extends Error {
|
|
844
|
+
status;
|
|
845
|
+
constructor(message, status) {
|
|
846
|
+
super(message);
|
|
847
|
+
this.status = status;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
class GatewayNetworkError extends GatewayError {
|
|
844
852
|
}
|
|
845
853
|
var decode = (schema, value, label) => {
|
|
846
854
|
const result = Schema3.decodeUnknownResult(schema)(value);
|
|
@@ -889,8 +897,10 @@ var rpc = async (connection, method, args, schema, signal) => {
|
|
|
889
897
|
signal: combined
|
|
890
898
|
});
|
|
891
899
|
if (!response.ok) {
|
|
892
|
-
await response.body?.cancel()
|
|
893
|
-
|
|
900
|
+
await response.body?.cancel().catch(() => {
|
|
901
|
+
return;
|
|
902
|
+
});
|
|
903
|
+
throw new GatewayError(`Grok Bot ${method} failed (HTTP ${response.status})`, response.status);
|
|
894
904
|
}
|
|
895
905
|
if (response.body === null)
|
|
896
906
|
throw new GatewayError("Grok Bot returned an empty response");
|
|
@@ -925,7 +935,7 @@ var rpc = async (connection, method, args, schema, signal) => {
|
|
|
925
935
|
throw new Error("Stopped waiting for Grok Bot; its run may still be active");
|
|
926
936
|
if (cause instanceof GatewayError)
|
|
927
937
|
throw cause;
|
|
928
|
-
throw new
|
|
938
|
+
throw new GatewayNetworkError(`Grok Bot ${method} failed; check gateway availability and compatibility`);
|
|
929
939
|
} finally {
|
|
930
940
|
clearTimeout(deadline);
|
|
931
941
|
}
|
|
@@ -1031,7 +1041,24 @@ var runGrokBot = async (path, task, signal, supportsClarification = false) => {
|
|
|
1031
1041
|
if (path === undefined)
|
|
1032
1042
|
throw new Error("Configure this device's Grok Bot gateway discovery file first");
|
|
1033
1043
|
const connection = await readConnection(path);
|
|
1034
|
-
|
|
1044
|
+
const preflightDeadline = Math.min(deadline, Date.now() + 30000);
|
|
1045
|
+
const preflight = () => Effect2.runPromise(Effect2.tryPromise({
|
|
1046
|
+
try: (lookupSignal) => {
|
|
1047
|
+
requireTime(preflightDeadline);
|
|
1048
|
+
return lookup(lookupSignal);
|
|
1049
|
+
},
|
|
1050
|
+
catch: (cause) => cause
|
|
1051
|
+
}).pipe(Effect2.retry({
|
|
1052
|
+
schedule: Schedule.exponential("1 second"),
|
|
1053
|
+
while: (cause) => cause instanceof GatewayNetworkError || cause instanceof GatewayError && (cause.status === 502 || cause.status === 503 || cause.status === 504)
|
|
1054
|
+
}), Effect2.timeoutOrElse({
|
|
1055
|
+
duration: Math.max(0, preflightDeadline - Date.now()),
|
|
1056
|
+
orElse: () => Effect2.fail(new GatewayError("Timed out checking Grok Bot gateway task acceptance"))
|
|
1057
|
+
})), { signal }).catch((cause) => {
|
|
1058
|
+
requireTime(deadline);
|
|
1059
|
+
throw cause;
|
|
1060
|
+
});
|
|
1061
|
+
let acceptance = await preflight();
|
|
1035
1062
|
if (acceptance.outcome === "unknown-durability")
|
|
1036
1063
|
throw new Error("Grok Bot cannot confirm whether this task was accepted; check its conversation before retrying");
|
|
1037
1064
|
if (acceptance.outcome === "not-found") {
|
|
@@ -1044,7 +1071,7 @@ var runGrokBot = async (path, task, signal, supportsClarification = false) => {
|
|
|
1044
1071
|
throw new Error("The selected Grok Bot no longer exists on this device");
|
|
1045
1072
|
}
|
|
1046
1073
|
requireTime(deadline);
|
|
1047
|
-
acceptance = await
|
|
1074
|
+
acceptance = await preflight();
|
|
1048
1075
|
if (acceptance.outcome === "not-found") {
|
|
1049
1076
|
requireTime(deadline);
|
|
1050
1077
|
if (!await claimBotDispatch(task.id, task.runId)) {
|
|
@@ -1864,4 +1891,4 @@ var upgrade = async (options) => {
|
|
|
1864
1891
|
|
|
1865
1892
|
export { ProviderRunError, findExecutable, availableProviders, run, writeBotReply, cleanupBotReply, discoverGrokBots, runGrokBot, normalizeUpgradeTarget, deviceVersionWarning, resolvePackageInstallation, pnpmServiceDirectories, trustedExecutable, serviceCandidates, upgrade };
|
|
1866
1893
|
|
|
1867
|
-
//# debugId=
|
|
1894
|
+
//# debugId=3C7937DE2ED36FF764756E2164756E21
|