@mrrlin-dev/mcp 0.4.51 → 0.4.52

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.
Files changed (2) hide show
  1. package/dist/bin.cjs +15 -4
  2. package/package.json +3 -3
package/dist/bin.cjs CHANGED
@@ -42437,7 +42437,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
42437
42437
  }
42438
42438
 
42439
42439
  // src/_generated/version.ts
42440
- var PKG_VERSION = "0.4.51";
42440
+ var PKG_VERSION = "0.4.52";
42441
42441
 
42442
42442
  // src/api-base-url-migrate.ts
42443
42443
  var import_node_fs4 = __toESM(require("node:fs"), 1);
@@ -45164,6 +45164,12 @@ function resolveInstallationId(stateDir) {
45164
45164
  // src/telemetry/daily-uploader.ts
45165
45165
  var ROWS_FILE_RE = /^rows-(.+)-(\d{4}-\d{2}-\d{2})\.jsonl$/;
45166
45166
  var GATE_FILE_RE = /^gate-(.+)-(\d{4}-\d{2}-\d{2})\.jsonl$/;
45167
+ var MAX_CAUSE_CHARS = 512;
45168
+ function truncateCause(err) {
45169
+ const message = err instanceof Error ? err.message : String(err);
45170
+ if (message.length <= MAX_CAUSE_CHARS) return message;
45171
+ return `${message.slice(0, MAX_CAUSE_CHARS - 3)}...`;
45172
+ }
45167
45173
  async function uploadPendingDays(stateDir, client, bridgeHealth, gateCtx) {
45168
45174
  const telemetryDir = (0, import_node_path16.join)(stateDir, "telemetry");
45169
45175
  let files;
@@ -45221,6 +45227,7 @@ async function uploadPendingDays(stateDir, client, bridgeHealth, gateCtx) {
45221
45227
  continue;
45222
45228
  }
45223
45229
  let success2 = false;
45230
+ let lastError = null;
45224
45231
  try {
45225
45232
  let raw = "";
45226
45233
  if (cur.rowsPath !== null) {
@@ -45276,7 +45283,8 @@ async function uploadPendingDays(stateDir, client, bridgeHealth, gateCtx) {
45276
45283
  }
45277
45284
  await client.postTelemetry(targetProject, gateResult.artifact);
45278
45285
  success2 = true;
45279
- } catch {
45286
+ } catch (err) {
45287
+ lastError = truncateCause(err);
45280
45288
  success2 = false;
45281
45289
  }
45282
45290
  if (success2) {
@@ -45312,7 +45320,8 @@ async function uploadPendingDays(stateDir, client, bridgeHealth, gateCtx) {
45312
45320
  const nextAttemptAt = now + delayMs2;
45313
45321
  const newFailureState = {
45314
45322
  failureCount: newFailureCount,
45315
- nextAttemptAt
45323
+ nextAttemptAt,
45324
+ lastError
45316
45325
  };
45317
45326
  const tmpFailurePath = `${failurePath}.tmp-${process.pid}-${Math.random().toString(36).slice(2)}`;
45318
45327
  try {
@@ -45322,7 +45331,9 @@ async function uploadPendingDays(stateDir, client, bridgeHealth, gateCtx) {
45322
45331
  console.error(`uploadPendingDays: failed to write failure state for ${cur.projectSlug}/${cur.day}`, writeErr);
45323
45332
  }
45324
45333
  if (!failureState) {
45325
- console.error(`uploadPendingDays: partition ${cur.projectSlug}/${cur.day} entering backoff after first failure`);
45334
+ console.error(
45335
+ `uploadPendingDays: partition ${cur.projectSlug}/${cur.day} entering backoff after first failure: ${lastError ?? "cause unavailable"}`
45336
+ );
45326
45337
  }
45327
45338
  }
45328
45339
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrrlin-dev/mcp",
3
- "version": "0.4.51",
3
+ "version": "0.4.52",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mrrlin-mcp": "dist/bin.cjs"
@@ -21,9 +21,9 @@
21
21
  "@types/ws": "^8.18.1",
22
22
  "esbuild": "^0.24.0",
23
23
  "tsx": "^4.22.3",
24
- "@mrrlin/client": "0.0.0",
25
- "@mrrlin/agent-client": "0.0.0",
26
24
  "@mrrlin/director-e2e": "0.0.0",
25
+ "@mrrlin/agent-client": "0.0.0",
26
+ "@mrrlin/client": "0.0.0",
27
27
  "@mrrlin/schemas": "0.0.0",
28
28
  "@mrrlin/tsconfig": "0.0.0",
29
29
  "@mrrlin/wiki": "0.0.0"