@rallycry/conveyor-agent 10.13.65 → 10.13.67

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 (41) hide show
  1. package/dist/{boot-7OPX55AO.js → boot-UUPTBQ6R.js} +7 -8
  2. package/dist/{chunk-JIGG755T.js → chunk-6Q6LQBWO.js} +0 -1
  3. package/dist/{chunk-ULS4QPRE.js → chunk-6W6UZ4SJ.js} +0 -1
  4. package/dist/{chunk-AXA55U4Z.js → chunk-E2SHIH6Y.js} +3 -4
  5. package/dist/{chunk-QOJTJCYZ.js → chunk-EXQ6AHOY.js} +2 -3
  6. package/dist/{chunk-5OQQSDVT.js → chunk-IA45XHOA.js} +0 -1
  7. package/dist/{chunk-QZN6HVUY.js → chunk-KG4ORL3Y.js} +1 -2
  8. package/dist/{chunk-4VUQ2NPF.js → chunk-KMB3BU4S.js} +0 -1
  9. package/dist/{chunk-NAK6FY5U.js → chunk-LE6ZUDZT.js} +37 -6
  10. package/dist/{chunk-6GS5ADIY.js → chunk-R3FDJQL6.js} +0 -1
  11. package/dist/{chunk-BAQ2OAKB.js → chunk-XPZPR6NS.js} +591 -216
  12. package/dist/cli.js +35 -43
  13. package/dist/{client-LRVVHTNG.js → client-IG6C5F2G.js} +3 -4
  14. package/dist/heartbeat-worker.js +1 -2
  15. package/dist/index.d.ts +95 -13
  16. package/dist/index.js +7 -8
  17. package/dist/{mode-6RL3SVMV.js → mode-ZJSOSLGU.js} +1 -2
  18. package/dist/{oom-watchdog-U7JERHA2.js → oom-watchdog-PAC5OJJG.js} +1 -2
  19. package/dist/{protocol-QLVS5W6O.js → protocol-QBCYO4GI.js} +1 -2
  20. package/dist/server-US2DDQSW.js +9 -0
  21. package/package.json +2 -2
  22. package/dist/boot-7OPX55AO.js.map +0 -1
  23. package/dist/chunk-4VUQ2NPF.js.map +0 -1
  24. package/dist/chunk-5OQQSDVT.js.map +0 -1
  25. package/dist/chunk-6GS5ADIY.js.map +0 -1
  26. package/dist/chunk-AXA55U4Z.js.map +0 -1
  27. package/dist/chunk-BAQ2OAKB.js.map +0 -1
  28. package/dist/chunk-JIGG755T.js.map +0 -1
  29. package/dist/chunk-NAK6FY5U.js.map +0 -1
  30. package/dist/chunk-QOJTJCYZ.js.map +0 -1
  31. package/dist/chunk-QZN6HVUY.js.map +0 -1
  32. package/dist/chunk-ULS4QPRE.js.map +0 -1
  33. package/dist/cli.js.map +0 -1
  34. package/dist/client-LRVVHTNG.js.map +0 -1
  35. package/dist/heartbeat-worker.js.map +0 -1
  36. package/dist/index.js.map +0 -1
  37. package/dist/mode-6RL3SVMV.js.map +0 -1
  38. package/dist/oom-watchdog-U7JERHA2.js.map +0 -1
  39. package/dist/protocol-QLVS5W6O.js.map +0 -1
  40. package/dist/server-ZACB5T5S.js +0 -10
  41. package/dist/server-ZACB5T5S.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TOMBSTONE_MESSAGE,
3
3
  isLegacyEntrypointLaunch
4
- } from "./chunk-6GS5ADIY.js";
4
+ } from "./chunk-R3FDJQL6.js";
5
5
  import {
6
6
  GitPrepJob,
7
7
  defaultGit,
@@ -9,20 +9,20 @@ import {
9
9
  readAgentVersion,
10
10
  redactToken,
11
11
  reportBootMilestone
12
- } from "./chunk-QZN6HVUY.js";
12
+ } from "./chunk-KG4ORL3Y.js";
13
13
  import {
14
14
  workbenchPort
15
- } from "./chunk-4VUQ2NPF.js";
15
+ } from "./chunk-KMB3BU4S.js";
16
16
  import {
17
17
  startWorkbenchServer
18
- } from "./chunk-AXA55U4Z.js";
19
- import "./chunk-NAK6FY5U.js";
18
+ } from "./chunk-E2SHIH6Y.js";
19
+ import "./chunk-LE6ZUDZT.js";
20
20
  import {
21
21
  DEFAULT_WORKBENCH_PORT
22
- } from "./chunk-JIGG755T.js";
22
+ } from "./chunk-6Q6LQBWO.js";
23
23
  import {
24
24
  oomWatchdogOptionsFromEnv
25
- } from "./chunk-ULS4QPRE.js";
25
+ } from "./chunk-6W6UZ4SJ.js";
26
26
 
27
27
  // src/boot/index.ts
28
28
  import { spawn } from "child_process";
@@ -1316,4 +1316,3 @@ export {
1316
1316
  runBoot,
1317
1317
  workbenchBootSteps
1318
1318
  };
1319
- //# sourceMappingURL=boot-7OPX55AO.js.map
@@ -52,4 +52,3 @@ export {
52
52
  DEFAULT_WORKBENCH_PORT,
53
53
  timingSafeTokenEqual
54
54
  };
55
- //# sourceMappingURL=chunk-JIGG755T.js.map
@@ -135,4 +135,3 @@ export {
135
135
  biggestForeignProcessGroup,
136
136
  startOomWatchdog
137
137
  };
138
- //# sourceMappingURL=chunk-ULS4QPRE.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  loadPtySpawn,
3
3
  terminateProcessGroup
4
- } from "./chunk-NAK6FY5U.js";
4
+ } from "./chunk-LE6ZUDZT.js";
5
5
  import {
6
6
  FrameReader,
7
7
  timingSafeTokenEqual,
8
8
  writeFrame
9
- } from "./chunk-JIGG755T.js";
9
+ } from "./chunk-6Q6LQBWO.js";
10
10
  import {
11
11
  startOomWatchdog
12
- } from "./chunk-ULS4QPRE.js";
12
+ } from "./chunk-6W6UZ4SJ.js";
13
13
 
14
14
  // src/workbench/server.ts
15
15
  import { spawn } from "child_process";
@@ -296,4 +296,3 @@ async function runReaddir(socket, req) {
296
296
  export {
297
297
  startWorkbenchServer
298
298
  };
299
- //# sourceMappingURL=chunk-AXA55U4Z.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  workbenchPort,
3
3
  workbenchToken
4
- } from "./chunk-4VUQ2NPF.js";
4
+ } from "./chunk-KMB3BU4S.js";
5
5
  import {
6
6
  DEFAULT_WORKBENCH_PORT,
7
7
  FrameReader,
8
8
  writeFrame
9
- } from "./chunk-JIGG755T.js";
9
+ } from "./chunk-6Q6LQBWO.js";
10
10
 
11
11
  // src/workbench/client.ts
12
12
  import { connect } from "net";
@@ -409,4 +409,3 @@ export {
409
409
  getWorkbenchClient,
410
410
  resetWorkbenchClient
411
411
  };
412
- //# sourceMappingURL=chunk-QOJTJCYZ.js.map
@@ -139,4 +139,3 @@ export {
139
139
  statusFromBuffer,
140
140
  LoopLagMonitor
141
141
  };
142
- //# sourceMappingURL=chunk-5OQQSDVT.js.map
@@ -2,7 +2,7 @@ import {
2
2
  gitCredentialHelper,
3
3
  syncGithubTokenFiles,
4
4
  writeGitCredential
5
- } from "./chunk-NAK6FY5U.js";
5
+ } from "./chunk-LE6ZUDZT.js";
6
6
 
7
7
  // src/runner/session-runner-helpers.ts
8
8
  import { readFileSync } from "fs";
@@ -331,4 +331,3 @@ export {
331
331
  registerBootMilestoneSocketFallback,
332
332
  reportBootMilestone
333
333
  };
334
- //# sourceMappingURL=chunk-QZN6HVUY.js.map
@@ -22,4 +22,3 @@ export {
22
22
  workbenchToken,
23
23
  sharedDir
24
24
  };
25
- //# sourceMappingURL=chunk-4VUQ2NPF.js.map
@@ -74,7 +74,15 @@ ${tail}`);
74
74
 
75
75
  // src/boot/git-credential.ts
76
76
  import { createHash } from "crypto";
77
- import { chmodSync, existsSync, mkdirSync, renameSync, writeFileSync } from "fs";
77
+ import {
78
+ chmodSync,
79
+ existsSync,
80
+ mkdirSync,
81
+ readFileSync,
82
+ renameSync,
83
+ statSync,
84
+ writeFileSync
85
+ } from "fs";
78
86
  import { homedir } from "os";
79
87
  import { dirname, join } from "path";
80
88
  function credentialDir(cwd) {
@@ -244,19 +252,42 @@ function writeGhHostsConfig(token) {
244
252
  ensureGhConfigVersion();
245
253
  return true;
246
254
  }
255
+ function syncError(err) {
256
+ return err instanceof Error ? err.message : String(err);
257
+ }
247
258
  function syncGithubTokenFiles(token) {
248
259
  const result = { tokenFile: false, ghHosts: false };
249
260
  if (!token) return result;
250
261
  try {
251
262
  result.tokenFile = writeGithubTokenFile(token);
252
- } catch {
263
+ } catch (err) {
264
+ result.errors = { ...result.errors, tokenFile: syncError(err) };
253
265
  }
254
266
  try {
255
267
  result.ghHosts = writeGhHostsConfig(token);
256
- } catch {
268
+ } catch (err) {
269
+ result.errors = { ...result.errors, ghHosts: syncError(err) };
257
270
  }
258
271
  return result;
259
272
  }
273
+ function describeTokenFile(path = githubTokenFilePath()) {
274
+ try {
275
+ const raw = readFileSync(path, "utf8");
276
+ const value = raw.trim();
277
+ if (!value) return `${path}: empty (${raw.length}B on disk)`;
278
+ const mtime = statSync(path).mtime.toISOString();
279
+ return `${path}: ${value.length}B, ${classifyTokenShape(value)}, mtime ${mtime}`;
280
+ } catch (err) {
281
+ return `${path}: unreadable (${syncError(err)})`;
282
+ }
283
+ }
284
+ function classifyTokenShape(value) {
285
+ if (value.split(".").length === 3) return "JWT (three dot-separated segments)";
286
+ for (const prefix of ["ghs_", "ghu_", "gho_", "ghp_", "github_pat_", "ya29."]) {
287
+ if (value.startsWith(prefix)) return `prefix ${prefix}`;
288
+ }
289
+ return "unrecognized prefix";
290
+ }
260
291
 
261
292
  // src/utils/sleep.ts
262
293
  function sleep(ms) {
@@ -381,9 +412,9 @@ async function loadPtySpawn() {
381
412
  return spawn2;
382
413
  }
383
414
  async function resolvePtySpawn() {
384
- const { workbenchEnabled } = await import("./mode-6RL3SVMV.js");
415
+ const { workbenchEnabled } = await import("./mode-ZJSOSLGU.js");
385
416
  if (!workbenchEnabled()) return loadPtySpawn();
386
- const { getWorkbenchClient } = await import("./client-LRVVHTNG.js");
417
+ const { getWorkbenchClient } = await import("./client-IG6C5F2G.js");
387
418
  return (file, args, options) => getWorkbenchClient().spawnPty(file, args, options);
388
419
  }
389
420
  function sessionTempBase() {
@@ -571,6 +602,7 @@ export {
571
602
  githubTokenFilePath,
572
603
  ghHostsExternallyOwned,
573
604
  syncGithubTokenFiles,
605
+ describeTokenFile,
574
606
  resolveClaudeBinary,
575
607
  buildSpawnArgs,
576
608
  spawnOptionsFingerprint,
@@ -601,4 +633,3 @@ export {
601
633
  runAuthTokenCommand,
602
634
  runStartCommand
603
635
  };
604
- //# sourceMappingURL=chunk-NAK6FY5U.js.map
@@ -8,4 +8,3 @@ export {
8
8
  TOMBSTONE_MESSAGE,
9
9
  isLegacyEntrypointLaunch
10
10
  };
11
- //# sourceMappingURL=chunk-6GS5ADIY.js.map