cotal-ai 0.164.16 → 0.164.17

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.
@@ -5,12 +5,14 @@ import { userInfo } from "node:os";
5
5
  import { dirname, join, posix, win32 } from "node:path";
6
6
  import { CommandFailure } from "@cotal-ai/workspace";
7
7
  import { pinnedPath } from "./install.js";
8
- const run = (command, args) => new Promise((resolve, reject) => {
9
- execFile(command, args, { timeout: 10_000, maxBuffer: 64 * 1024, windowsHide: true, encoding: "utf8" }, (error, stdout) => {
10
- if (error)
11
- reject(new CommandFailure("refused", "DEPENDENCY_UNAVAILABLE", "the account's application PATH could not be read; no service was changed", { remedy: "check that your login shell starts successfully, then choose Check again" }));
12
- else
8
+ const run = (command, args, remedy, timeoutRemedy = remedy) => new Promise((resolve, reject) => {
9
+ execFile(command, args, { timeout: 30_000, maxBuffer: 64 * 1024, windowsHide: true, encoding: "utf8" }, (error, stdout) => {
10
+ if (!error)
13
11
  resolve(stdout);
12
+ else if (error.killed)
13
+ reject(new CommandFailure("refused", "DEPENDENCY_UNAVAILABLE", "reading the account's application PATH timed out after 30 seconds; no service was changed", { remedy: timeoutRemedy }));
14
+ else
15
+ reject(new CommandFailure("refused", "DEPENDENCY_UNAVAILABLE", "the account's application PATH could not be read; no service was changed", { remedy }));
14
16
  });
15
17
  });
16
18
  /** Keep only absolute POSIX entries for the desktop service and name any relative entries left out, in order and without duplicates. */
@@ -32,7 +34,7 @@ export async function windowsApplicationPath() {
32
34
  if (!root || !win32.isAbsolute(root))
33
35
  throw new CommandFailure("refused", "UNSUPPORTED", "the Windows system directory is unavailable; no application PATH was guessed");
34
36
  const script = "[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); $ErrorActionPreference = 'Stop'; $p = @([Environment]::GetEnvironmentVariable('Path','Machine'), [Environment]::GetEnvironmentVariable('Path','User')) | Where-Object { $_ }; [Console]::Write([Environment]::ExpandEnvironmentVariables(($p -join ';')))";
35
- const value = await run(join(root, "System32", "WindowsPowerShell", "v1.0", "powershell.exe"), ["-NoLogo", "-NoProfile", "-NonInteractive", "-Command", script]);
37
+ const value = await run(join(root, "System32", "WindowsPowerShell", "v1.0", "powershell.exe"), ["-NoLogo", "-NoProfile", "-NonInteractive", "-Command", script], "choose Try again, or run cotal daemon install in a terminal for diagnostics", "wait a moment and choose Try again");
36
38
  return pinnedPath(`${value};${dirname(process.execPath)}`, win32);
37
39
  }
38
40
  /** Discover the desktop application PATH and any relative entries left out of it. No renderer-supplied executable, argument, shell or environment is accepted. */
@@ -45,7 +47,7 @@ export async function discoverDesktopApplicationPath() {
45
47
  if (!shell || !posix.isAbsolute(shell))
46
48
  throw new CommandFailure("refused", "UNSUPPORTED", "the account has no absolute login shell; no application PATH was guessed");
47
49
  const marker = `cotal_path_${randomUUID().replaceAll("-", "")}`;
48
- const output = await run(shell, ["-ilc", `printf '\\n${marker}%s${marker}\\n' "$PATH"`]);
50
+ const output = await run(shell, ["-ilc", `printf '\\n${marker}%s${marker}\\n' "$PATH"`], "check that your login shell starts successfully, then choose Check again");
49
51
  const parts = output.split(marker);
50
52
  if (parts.length !== 3)
51
53
  throw new CommandFailure("refused", "DEPENDENCY_UNAVAILABLE", "the login shell returned no bounded application PATH; no service was changed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.164.16",
3
+ "version": "0.164.17",
4
4
  "description": "Cotal — lateral agent coordination over NATS. Run `npx cotal-ai` for the CLI.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -37,28 +37,28 @@
37
37
  "node": ">=22.10"
38
38
  },
39
39
  "dependencies": {
40
- "@cotal-ai/auth": "0.164.16",
41
- "@cotal-ai/cli": "0.164.16",
42
- "@cotal-ai/connector-core": "0.164.16",
43
- "@cotal-ai/core": "0.164.16",
44
- "@cotal-ai/delivery": "0.164.16",
45
- "@cotal-ai/manager": "0.164.16",
46
- "@cotal-ai/registry": "0.164.16",
47
- "@cotal-ai/runtime": "0.164.16",
48
- "@cotal-ai/seat": "0.164.16",
49
- "@cotal-ai/workspace": "0.164.16",
40
+ "@cotal-ai/auth": "0.164.17",
41
+ "@cotal-ai/cli": "0.164.17",
42
+ "@cotal-ai/connector-core": "0.164.17",
43
+ "@cotal-ai/core": "0.164.17",
44
+ "@cotal-ai/delivery": "0.164.17",
45
+ "@cotal-ai/manager": "0.164.17",
46
+ "@cotal-ai/registry": "0.164.17",
47
+ "@cotal-ai/runtime": "0.164.17",
48
+ "@cotal-ai/seat": "0.164.17",
49
+ "@cotal-ai/workspace": "0.164.17",
50
50
  "jose": "^6.2.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@cotal-ai/connector-claude-code": "0.164.16",
54
- "@cotal-ai/connector-codex": "0.164.16",
55
- "@cotal-ai/connector-hermes": "0.164.16",
56
- "@cotal-ai/connector-jcode": "0.164.16",
57
- "@cotal-ai/connector-opencode": "0.164.16",
58
- "@cotal-ai/linear": "0.164.16",
59
- "@cotal-ai/pi": "0.164.16",
53
+ "@cotal-ai/connector-claude-code": "0.164.17",
54
+ "@cotal-ai/connector-codex": "0.164.17",
55
+ "@cotal-ai/connector-hermes": "0.164.17",
56
+ "@cotal-ai/connector-jcode": "0.164.17",
57
+ "@cotal-ai/connector-opencode": "0.164.17",
58
+ "@cotal-ai/linear": "0.164.17",
59
+ "@cotal-ai/pi": "0.164.17",
60
60
  "@cotal-ai/smoke-kit": "0.0.0",
61
- "@cotal-ai/web": "0.164.16",
61
+ "@cotal-ai/web": "0.164.17",
62
62
  "@nats-io/jetstream": "^3.4.0",
63
63
  "@nats-io/transport-node": "^3.4.0",
64
64
  "typescript": "^5.9.3"
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "v": 1,
3
3
  "files": {
4
- "docs-bundle.bin": "54a621f0775cbd5a324d7f93da2fc84bf2f3239397a91c7d45951e28061e9768",
5
- "docs-index.bin": "f71657a7505c8d0b31ff9604c1ba65cb64ea7bef9baedb3c61e3b7635484f46a"
4
+ "docs-bundle.bin": "72ea33472fdce512e2491d49cb46a3aa87e3024f6180e9ea2ab082362e989579",
5
+ "docs-index.bin": "7580cd1aa7a20923bb78928136547c533d5783418675d060fccaa6cb1dda124b"
6
6
  },
7
7
  "placements": {
8
8
  "claude": [