@tiny-fish/cli 0.13.1-next.148 → 0.13.1-next.149

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.
@@ -278,12 +278,12 @@ function storedApiKey() {
278
278
  function createConnectTelemetry(mcpUrl, client, apiKey) {
279
279
  const attemptId = randomUUID();
280
280
  const endpoint = new URL("/api/cli/connect-event", mcpUrl).toString();
281
- const telemetryKey = apiKey || process.env["TINYFISH_API_KEY"] || storedApiKey();
282
- const headers = telemetryHeaders(endpoint, telemetryKey);
283
281
  const pending = [];
284
282
  async function deliver(body) {
285
283
  if (telemetryDisabled())
286
284
  return;
285
+ // Per event: `tinyfish auth login` writes the config from a subprocess mid-connect.
286
+ const headers = telemetryHeaders(endpoint, apiKey || process.env["TINYFISH_API_KEY"] || storedApiKey());
287
287
  // One retry: stale keep-alive sockets eat post-install POSTs. 5xx retries;
288
288
  // 4xx never will (schema mismatch, e.g. new stages hitting an old server).
289
289
  for (let attempt = 0; attempt < 2; attempt++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiny-fish/cli",
3
- "version": "0.13.1-next.148",
3
+ "version": "0.13.1-next.149",
4
4
  "description": "TinyFish CLI — run web automations from your terminal",
5
5
  "type": "module",
6
6
  "bin": {