cotal-ai 0.164.11 → 0.164.12

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/dist/cotal.js CHANGED
@@ -162,6 +162,12 @@ export function selectExecutionProgram(root) {
162
162
  return { root: selected, entry: join(selected, "dist", "cotal-program.js"), retained: true };
163
163
  }
164
164
  const executionStarted = Symbol.for("cotal.execution.started");
165
+ /** Whether Node was started on this file. Both sides go through the native canonical path, because
166
+ * Node keeps a Windows extended-length (`\\?\`) or short-name spelling in `argv[1]` and not in the
167
+ * module URL. */
168
+ function startedHere() {
169
+ return !!process.argv[1] && realpathSync.native(process.argv[1]) === realpathSync.native(fileURLToPath(import.meta.url));
170
+ }
165
171
  /** Explicit CLI delegation for a wrapper that imports the bootstrap rather than launching it. */
166
172
  export function startExecutionProgram() {
167
173
  if (Reflect.get(globalThis, executionStarted))
@@ -176,15 +182,16 @@ export function startExecutionProgram() {
176
182
  process.exitCode = 1;
177
183
  }
178
184
  if (selected) {
185
+ const direct = startedHere();
179
186
  if (!import.meta.url.endsWith(".ts"))
180
187
  Object.defineProperty(globalThis, Symbol.for("cotal.execution.identity"), {
181
- value: Object.freeze({ logicalEntry: fileURLToPath(import.meta.url), launchEntry: process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url) ? resolve(process.argv[1]) : fileURLToPath(import.meta.url), loadedEntry: join(selected.root, "dist", "cotal.js") }),
188
+ value: Object.freeze({ logicalEntry: fileURLToPath(import.meta.url), launchEntry: direct ? resolve(process.argv[1]) : fileURLToPath(import.meta.url), loadedEntry: join(selected.root, "dist", "cotal.js") }),
182
189
  configurable: false, writable: false,
183
190
  });
184
- if (selected.retained || !process.argv[1] || realpathSync(process.argv[1]) !== fileURLToPath(import.meta.url))
191
+ if (selected.retained || !direct)
185
192
  process.argv[1] = join(selected.root, "dist", "cotal.js");
186
193
  void import(pathToFileURL(selected.entry).href);
187
194
  }
188
195
  }
189
- if (process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url))
196
+ if (startedHere())
190
197
  startExecutionProgram();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotal-ai",
3
- "version": "0.164.11",
3
+ "version": "0.164.12",
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": [
@@ -33,28 +33,28 @@
33
33
  "node": ">=22.10"
34
34
  },
35
35
  "dependencies": {
36
- "@cotal-ai/auth": "0.164.11",
37
- "@cotal-ai/cli": "0.164.11",
38
- "@cotal-ai/connector-core": "0.164.11",
39
- "@cotal-ai/core": "0.164.11",
40
- "@cotal-ai/delivery": "0.164.11",
41
- "@cotal-ai/manager": "0.164.11",
42
- "@cotal-ai/registry": "0.164.11",
43
- "@cotal-ai/runtime": "0.164.11",
44
- "@cotal-ai/seat": "0.164.11",
45
- "@cotal-ai/workspace": "0.164.11",
36
+ "@cotal-ai/auth": "0.164.12",
37
+ "@cotal-ai/cli": "0.164.12",
38
+ "@cotal-ai/connector-core": "0.164.12",
39
+ "@cotal-ai/core": "0.164.12",
40
+ "@cotal-ai/delivery": "0.164.12",
41
+ "@cotal-ai/manager": "0.164.12",
42
+ "@cotal-ai/registry": "0.164.12",
43
+ "@cotal-ai/runtime": "0.164.12",
44
+ "@cotal-ai/seat": "0.164.12",
45
+ "@cotal-ai/workspace": "0.164.12",
46
46
  "jose": "^6.2.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@cotal-ai/connector-claude-code": "0.164.11",
50
- "@cotal-ai/connector-codex": "0.164.11",
51
- "@cotal-ai/connector-hermes": "0.164.11",
52
- "@cotal-ai/connector-jcode": "0.164.11",
53
- "@cotal-ai/connector-opencode": "0.164.11",
54
- "@cotal-ai/linear": "0.164.11",
55
- "@cotal-ai/pi": "0.164.11",
49
+ "@cotal-ai/connector-claude-code": "0.164.12",
50
+ "@cotal-ai/connector-codex": "0.164.12",
51
+ "@cotal-ai/connector-hermes": "0.164.12",
52
+ "@cotal-ai/connector-jcode": "0.164.12",
53
+ "@cotal-ai/connector-opencode": "0.164.12",
54
+ "@cotal-ai/linear": "0.164.12",
55
+ "@cotal-ai/pi": "0.164.12",
56
56
  "@cotal-ai/smoke-kit": "0.0.0",
57
- "@cotal-ai/web": "0.164.11",
57
+ "@cotal-ai/web": "0.164.12",
58
58
  "@nats-io/jetstream": "^3.4.0",
59
59
  "@nats-io/transport-node": "^3.4.0",
60
60
  "typescript": "^5.9.3"
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "v": 1,
3
3
  "files": {
4
- "docs-bundle.bin": "8232e4d298503afe48f06a87e8eddaf80ac1301012afe3491d6b786c1edae110",
5
- "docs-index.bin": "298f21437af69081bf8d2eb6acfae09bca0558b1886df69c34bf9277ba42a193"
4
+ "docs-bundle.bin": "38105406da940ded06f4eb82b82584599f6f3400a3828458bd3aeadccb0bd86c",
5
+ "docs-index.bin": "783ce501856a81604238b07174237d06d0180e6ac2da58d2ff08feaddc7e7945"
6
6
  },
7
7
  "placements": {
8
8
  "claude": [