@cotal-ai/cli 0.94.5 → 0.95.0

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.
@@ -0,0 +1,28 @@
1
+ import { type Command, type Registry } from "@cotal-ai/core";
2
+ import { type ErrorCode, type Outcome } from "@cotal-ai/workspace";
3
+ /**
4
+ * Anonymous usage telemetry for the CLI: one small event per command, sent as the process exits, and
5
+ * at `regular` one install event per UTC day. docs/telemetry.md lists every field. Nothing here
6
+ * reads an argument value, a path, a name or an error message, and nothing here can change a
7
+ * command's outcome: every failure is swallowed, and the send is bounded by {@link SEND_TIMEOUT_MS}.
8
+ */
9
+ export declare const TELEMETRY_URL = "https://cotal.ai/v1/telemetry";
10
+ export declare const SEND_TIMEOUT_MS = 1500;
11
+ export declare const TELEMETRY_NOTICE = "Cotal collects anonymous usage data at the \"regular\" level (command names, outcomes, version, OS, installed connectors; never arguments, paths, names or content). Change it with \"cotal telemetry minimal\" or \"cotal telemetry off\". Details: https://docs.cotal.ai/telemetry";
12
+ /** The intake: the public one, or `COTAL_TELEMETRY_URL` for a self-hosted intake. */
13
+ export declare function telemetryUrl(env?: NodeJS.ProcessEnv): string;
14
+ /** The names of the flags in `words`, values stripped: `--server=x` and `--server x` both read as
15
+ * `--server`, and a word after `--` is text. An unknown flag counts by name too. */
16
+ export declare function flagNames(cmd: Command, words: readonly string[]): string[];
17
+ /** Record the typed failure the kernel is exiting with, so the event carries its code. */
18
+ export declare function recordTelemetryFailure(outcome: Outcome, code: ErrorCode): void;
19
+ /**
20
+ * Arm the exit hook for `cmd`, once: decide the level, print the one-time notice, and register the
21
+ * send on `exit`, which fires for a normal return, a set exit code, `process.exit()` anywhere and an
22
+ * uncaught failure. Throws the typed refusal of a bad `COTAL_TELEMETRY` or settings file; the kernel
23
+ * reports it as it reports any refusal.
24
+ */
25
+ export declare function armTelemetry(registry: Registry, cmd: Command, words: readonly string[], startedAt: number): void;
26
+ /** Post each body to `url`, blocking the calling thread for at most {@link SEND_TIMEOUT_MS}. */
27
+ export declare function sendTelemetry(url: string, bodies: readonly string[]): void;
28
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,OAAO,EAGb,MAAM,qBAAqB,CAAC;AAI7B;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,kCAAkC,CAAC;AAC7D,eAAO,MAAM,eAAe,OAAO,CAAC;AACpC,eAAO,MAAM,gBAAgB,yRACqP,CAAC;AAEnR,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAEzE;AAWD;qFACqF;AACrF,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAY1E;AAoBD,0FAA0F;AAC1F,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAE9E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CA0BhH;AAqHD,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAI1E"}
@@ -0,0 +1,214 @@
1
+ import { release } from "node:os";
2
+ import { basename } from "node:path";
3
+ import { Worker } from "node:worker_threads";
4
+ import { findSubcommand } from "@cotal-ai/core";
5
+ import { effectiveTelemetry, extensionProvides, loadExtensionsManifest, markTelemetryInstallEvent, markTelemetryNoticeShown, readMeshRegistry, } from "@cotal-ai/workspace";
6
+ import { metadataPositionals } from "./lib/command-path.js";
7
+ import { cliVersion } from "./seed/paths.js";
8
+ /**
9
+ * Anonymous usage telemetry for the CLI: one small event per command, sent as the process exits, and
10
+ * at `regular` one install event per UTC day. docs/telemetry.md lists every field. Nothing here
11
+ * reads an argument value, a path, a name or an error message, and nothing here can change a
12
+ * command's outcome: every failure is swallowed, and the send is bounded by {@link SEND_TIMEOUT_MS}.
13
+ */
14
+ export const TELEMETRY_URL = "https://cotal.ai/v1/telemetry";
15
+ export const SEND_TIMEOUT_MS = 1500;
16
+ export const TELEMETRY_NOTICE = 'Cotal collects anonymous usage data at the "regular" level (command names, outcomes, version, OS, installed connectors; never arguments, paths, names or content). Change it with "cotal telemetry minimal" or "cotal telemetry off". Details: https://docs.cotal.ai/telemetry';
17
+ /** The intake: the public one, or `COTAL_TELEMETRY_URL` for a self-hosted intake. */
18
+ export function telemetryUrl(env = process.env) {
19
+ return env.COTAL_TELEMETRY_URL || TELEMETRY_URL;
20
+ }
21
+ /** Commands that send nothing: `telemetry` itself, internal entries, hidden daemon runners, and the
22
+ * bearer exchange a seat runs on the user's behalf. */
23
+ function silent(cmd) {
24
+ return cmd.name === "telemetry" || cmd.name === "agent-bearer" || cmd.hidden === true || cmd.name.startsWith("__");
25
+ }
26
+ const MAX_FLAGS = 32;
27
+ const FLAG = /^--?[A-Za-z][\w-]*/;
28
+ /** The names of the flags in `words`, values stripped: `--server=x` and `--server x` both read as
29
+ * `--server`, and a word after `--` is text. An unknown flag counts by name too. */
30
+ export function flagNames(cmd, words) {
31
+ const valued = new Set((cmd.flags ?? []).flatMap((flag) => (flag.type === "string" ? [`--${flag.name}`, ...(flag.short ? [`-${flag.short}`] : [])] : [])));
32
+ const names = new Set();
33
+ for (let i = 0; i < words.length; i++) {
34
+ const word = words[i];
35
+ if (word === "--")
36
+ break;
37
+ const name = FLAG.exec(word)?.[0];
38
+ if (!name)
39
+ continue;
40
+ names.add(name);
41
+ if (valued.has(name) && name === word)
42
+ i++;
43
+ }
44
+ return [...names].slice(0, MAX_FLAGS);
45
+ }
46
+ /** The registered subcommand the first positional names, never a user value. */
47
+ function subcommandName(cmd, words) {
48
+ return findSubcommand(cmd, metadataPositionals(cmd, words).positionals[0]?.value)?.name ?? null;
49
+ }
50
+ let pending;
51
+ /** Record the typed failure the kernel is exiting with, so the event carries its code. */
52
+ export function recordTelemetryFailure(outcome, code) {
53
+ if (pending)
54
+ pending.failure = { outcome, code };
55
+ }
56
+ /**
57
+ * Arm the exit hook for `cmd`, once: decide the level, print the one-time notice, and register the
58
+ * send on `exit`, which fires for a normal return, a set exit code, `process.exit()` anywhere and an
59
+ * uncaught failure. Throws the typed refusal of a bad `COTAL_TELEMETRY` or settings file; the kernel
60
+ * reports it as it reports any refusal.
61
+ */
62
+ export function armTelemetry(registry, cmd, words, startedAt) {
63
+ if (pending || silent(cmd))
64
+ return;
65
+ const effective = effectiveTelemetry(process.env);
66
+ if (effective.level === "off" || !effective.settings)
67
+ return;
68
+ let settings = effective.settings;
69
+ if (effective.source === "file" && effective.level === "regular" && !settings.noticeShownAt && process.stderr.isTTY) {
70
+ console.error(TELEMETRY_NOTICE);
71
+ settings = markTelemetryNoticeShown();
72
+ }
73
+ const raw = cmd.rawArgs === true;
74
+ pending = {
75
+ level: effective.level,
76
+ settings,
77
+ command: cmd.name,
78
+ subcommand: raw ? null : subcommandName(cmd, words),
79
+ flags: raw ? [] : flagNames(cmd, words),
80
+ startedAt,
81
+ version: cliVersion(),
82
+ };
83
+ process.once("exit", (code) => {
84
+ try {
85
+ sendTelemetry(telemetryUrl(), eventsAtExit(registry, pending, code, new Date()));
86
+ }
87
+ catch {
88
+ // Telemetry never changes a command's outcome.
89
+ }
90
+ });
91
+ }
92
+ const sameUtcDay = (a, b) => a.slice(0, 10) === b.toISOString().slice(0, 10);
93
+ /** The bodies to send: at `regular`, the day's install event first when none was sent today. */
94
+ function eventsAtExit(registry, p, code, now) {
95
+ const bodies = [];
96
+ if (p.level === "regular" && !(p.settings.lastInstallEventAt && sameUtcDay(p.settings.lastInstallEventAt, now))) {
97
+ try {
98
+ const body = JSON.stringify(installEvent(registry, p, now));
99
+ markTelemetryInstallEvent(now);
100
+ bodies.push(body);
101
+ }
102
+ catch {
103
+ // An unreadable manifest or registry costs the install event, never the command event.
104
+ }
105
+ }
106
+ bodies.push(JSON.stringify(commandEvent(p, code, now)));
107
+ return bodies;
108
+ }
109
+ function base(p) {
110
+ return {
111
+ v: 1,
112
+ installId: p.settings.installId,
113
+ level: p.level,
114
+ version: p.version,
115
+ os: process.platform,
116
+ arch: process.arch,
117
+ node: Number.parseInt(process.versions.node, 10),
118
+ ci: Boolean(process.env.CI),
119
+ };
120
+ }
121
+ /** The outcome and code an exit carries: the typed failure the kernel recorded, else what the exit
122
+ * code alone says (2 is a refusal, 3 and 4 each stand for one code, and any other non-zero code is
123
+ * an error whose code the kernel never saw). */
124
+ function classify(p, exitCode) {
125
+ if (exitCode === 0)
126
+ return { outcome: "ok", errorCode: null };
127
+ if (p.failure)
128
+ return { outcome: p.failure.outcome === "refused" ? "refused" : "error", errorCode: p.failure.code };
129
+ if (exitCode === 2)
130
+ return { outcome: "refused", errorCode: null };
131
+ return { outcome: "error", errorCode: exitCode === 3 ? "OPERATION_UNKNOWN" : exitCode === 4 ? "OPERATION_PARTIAL" : null };
132
+ }
133
+ function commandEvent(p, exitCode, now) {
134
+ const { outcome, errorCode } = classify(p, exitCode);
135
+ const minimal = { ...base(p), event: "command", command: p.command, outcome, exitCode, durationMs: now.getTime() - p.startedAt };
136
+ if (p.level === "minimal")
137
+ return minimal;
138
+ return {
139
+ ...minimal,
140
+ subcommand: p.subcommand,
141
+ flags: p.flags,
142
+ errorCode,
143
+ interactive: process.stdout.isTTY === true,
144
+ shell: process.env.SHELL ? basename(process.env.SHELL) : null,
145
+ terminal: process.env.TERM_PROGRAM || null,
146
+ };
147
+ }
148
+ /** `npm/10.8.2 node/v22…` from `npm_config_user_agent` reads as `npm@10`. */
149
+ function packageManager() {
150
+ const agent = /^([a-z]+)\/(\d+)/.exec(process.env.npm_config_user_agent ?? "");
151
+ return agent ? `${agent[1]}@${agent[2]}` : null;
152
+ }
153
+ /** `installer` under the launcher get.cotal.ai writes (it exports `COTAL_LAUNCHER=1`), `npm` when
154
+ * the binary runs from a `node_modules` tree, else `unknown`. */
155
+ function installMethod() {
156
+ if (process.env.COTAL_LAUNCHER === "1")
157
+ return "installer";
158
+ return (process.argv[1] ?? "").split(/[\\/]/).includes("node_modules") ? "npm" : "unknown";
159
+ }
160
+ function installEvent(registry, p, now) {
161
+ const manifest = loadExtensionsManifest().extensions;
162
+ const connectors = [];
163
+ const extensions = [];
164
+ const runtimes = new Set(registry.all().filter((ext) => ext.kind === "runtime").map((ext) => ext.name));
165
+ for (const ext of manifest) {
166
+ const provides = extensionProvides(ext);
167
+ for (const ref of provides)
168
+ if (ref.kind === "runtime")
169
+ runtimes.add(ref.name);
170
+ const connector = provides.find((ref) => ref.kind === "connector");
171
+ if (connector)
172
+ connectors.push({ kind: connector.name, version: ext.version });
173
+ else if (ext.pkg.startsWith("@cotal-ai/"))
174
+ extensions.push({ name: ext.pkg, version: ext.version });
175
+ }
176
+ const meshes = readMeshRegistry().entries;
177
+ return {
178
+ ...base(p),
179
+ event: "install",
180
+ osRelease: release(),
181
+ packageManager: packageManager(),
182
+ installMethod: installMethod(),
183
+ connectors,
184
+ extensions,
185
+ runtimes: [...runtimes],
186
+ meshes: meshes.length,
187
+ hostedMesh: meshes.some((mesh) => mesh.mode === "user"),
188
+ uptimeDays: Math.max(0, Math.floor((now.getTime() - Date.parse(p.settings.createdAt)) / 86_400_000)),
189
+ };
190
+ }
191
+ // The sender runs on a worker thread, which has its own event loop, while this thread waits on a
192
+ // shared flag: that is what lets the send finish inside an `exit` listener, where the main loop
193
+ // never turns again. Each body is posted in order with no retry under one shared deadline, so the
194
+ // worker is done at the timeout at the latest; the wait ends when the last settles or at that same
195
+ // timeout, and the process then exits as it was going to.
196
+ const SENDER = `
197
+ const { workerData } = require("node:worker_threads");
198
+ const flag = new Int32Array(workerData.flag);
199
+ const signal = AbortSignal.timeout(${SEND_TIMEOUT_MS});
200
+ (async () => {
201
+ for (const body of workerData.bodies) {
202
+ try {
203
+ await fetch(workerData.url, { method: "POST", headers: { "content-type": "application/json" }, body, signal });
204
+ } catch {}
205
+ }
206
+ })().finally(() => { Atomics.store(flag, 0, 1); Atomics.notify(flag, 0); });
207
+ `;
208
+ /** Post each body to `url`, blocking the calling thread for at most {@link SEND_TIMEOUT_MS}. */
209
+ export function sendTelemetry(url, bodies) {
210
+ const flag = new SharedArrayBuffer(4);
211
+ new Worker(SENDER, { eval: true, workerData: { url, bodies, flag }, stdout: true, stderr: true });
212
+ Atomics.wait(new Int32Array(flag), 0, 0, SEND_TIMEOUT_MS);
213
+ }
214
+ //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAA+B,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GAKjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,+BAA+B,CAAC;AAC7D,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AACpC,MAA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ACjG,gGAAgG;AAChG,kGAAkG;AAClG,mGAAmG;AACnG,0DAA0D;AAC1D,MAAM,MAAM,GAAG;;;qCAGsB,eAAe;;;;;;;;CAQnD,CAAC;AAEF,gGAAgG;AAChG,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,MAAyB;IAClE,MAAM,IAAI,GAAG,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAClG,OAAO,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC;AAC5D,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/cli",
3
3
  "description": "Cotal mesh CLI: up, join, watch, console, spawn, mint, channels, history, ext.",
4
- "version": "0.94.5",
4
+ "version": "0.95.0",
5
5
  "homepage": "https://cotal.ai",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@cotal-ai/core": "0.94.5",
23
- "@cotal-ai/workspace": "0.94.5",
22
+ "@cotal-ai/core": "0.95.0",
23
+ "@cotal-ai/workspace": "0.95.0",
24
24
  "@nats-io/jetstream": "^3.4.0",
25
25
  "@nats-io/kv": "^3.4.0",
26
26
  "@nats-io/obj": "^3.4.0",
@@ -41,7 +41,7 @@
41
41
  "@eplightning/nats-server-win32-x64": "^2.14.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@cotal-ai/auth": "0.94.5",
44
+ "@cotal-ai/auth": "0.95.0",
45
45
  "@cotal-ai/smoke-kit": "0.0.0",
46
46
  "@types/react": "^19.0.0",
47
47
  "@types/ws": "^8.18.1"