@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.
- package/dist/{boot-7OPX55AO.js → boot-UUPTBQ6R.js} +7 -8
- package/dist/{chunk-JIGG755T.js → chunk-6Q6LQBWO.js} +0 -1
- package/dist/{chunk-ULS4QPRE.js → chunk-6W6UZ4SJ.js} +0 -1
- package/dist/{chunk-AXA55U4Z.js → chunk-E2SHIH6Y.js} +3 -4
- package/dist/{chunk-QOJTJCYZ.js → chunk-EXQ6AHOY.js} +2 -3
- package/dist/{chunk-5OQQSDVT.js → chunk-IA45XHOA.js} +0 -1
- package/dist/{chunk-QZN6HVUY.js → chunk-KG4ORL3Y.js} +1 -2
- package/dist/{chunk-4VUQ2NPF.js → chunk-KMB3BU4S.js} +0 -1
- package/dist/{chunk-NAK6FY5U.js → chunk-LE6ZUDZT.js} +37 -6
- package/dist/{chunk-6GS5ADIY.js → chunk-R3FDJQL6.js} +0 -1
- package/dist/{chunk-BAQ2OAKB.js → chunk-XPZPR6NS.js} +591 -216
- package/dist/cli.js +35 -43
- package/dist/{client-LRVVHTNG.js → client-IG6C5F2G.js} +3 -4
- package/dist/heartbeat-worker.js +1 -2
- package/dist/index.d.ts +95 -13
- package/dist/index.js +7 -8
- package/dist/{mode-6RL3SVMV.js → mode-ZJSOSLGU.js} +1 -2
- package/dist/{oom-watchdog-U7JERHA2.js → oom-watchdog-PAC5OJJG.js} +1 -2
- package/dist/{protocol-QLVS5W6O.js → protocol-QBCYO4GI.js} +1 -2
- package/dist/server-US2DDQSW.js +9 -0
- package/package.json +2 -2
- package/dist/boot-7OPX55AO.js.map +0 -1
- package/dist/chunk-4VUQ2NPF.js.map +0 -1
- package/dist/chunk-5OQQSDVT.js.map +0 -1
- package/dist/chunk-6GS5ADIY.js.map +0 -1
- package/dist/chunk-AXA55U4Z.js.map +0 -1
- package/dist/chunk-BAQ2OAKB.js.map +0 -1
- package/dist/chunk-JIGG755T.js.map +0 -1
- package/dist/chunk-NAK6FY5U.js.map +0 -1
- package/dist/chunk-QOJTJCYZ.js.map +0 -1
- package/dist/chunk-QZN6HVUY.js.map +0 -1
- package/dist/chunk-ULS4QPRE.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/client-LRVVHTNG.js.map +0 -1
- package/dist/heartbeat-worker.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mode-6RL3SVMV.js.map +0 -1
- package/dist/oom-watchdog-U7JERHA2.js.map +0 -1
- package/dist/protocol-QLVS5W6O.js.map +0 -1
- package/dist/server-ZACB5T5S.js +0 -10
- 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-
|
|
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-
|
|
12
|
+
} from "./chunk-KG4ORL3Y.js";
|
|
13
13
|
import {
|
|
14
14
|
workbenchPort
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KMB3BU4S.js";
|
|
16
16
|
import {
|
|
17
17
|
startWorkbenchServer
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-E2SHIH6Y.js";
|
|
19
|
+
import "./chunk-LE6ZUDZT.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_WORKBENCH_PORT
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6Q6LQBWO.js";
|
|
23
23
|
import {
|
|
24
24
|
oomWatchdogOptionsFromEnv
|
|
25
|
-
} from "./chunk-
|
|
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
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPtySpawn,
|
|
3
3
|
terminateProcessGroup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LE6ZUDZT.js";
|
|
5
5
|
import {
|
|
6
6
|
FrameReader,
|
|
7
7
|
timingSafeTokenEqual,
|
|
8
8
|
writeFrame
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6Q6LQBWO.js";
|
|
10
10
|
import {
|
|
11
11
|
startOomWatchdog
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
4
|
+
} from "./chunk-KMB3BU4S.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_WORKBENCH_PORT,
|
|
7
7
|
FrameReader,
|
|
8
8
|
writeFrame
|
|
9
|
-
} from "./chunk-
|
|
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
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
gitCredentialHelper,
|
|
3
3
|
syncGithubTokenFiles,
|
|
4
4
|
writeGitCredential
|
|
5
|
-
} from "./chunk-
|
|
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
|
|
@@ -74,7 +74,15 @@ ${tail}`);
|
|
|
74
74
|
|
|
75
75
|
// src/boot/git-credential.ts
|
|
76
76
|
import { createHash } from "crypto";
|
|
77
|
-
import {
|
|
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-
|
|
415
|
+
const { workbenchEnabled } = await import("./mode-ZJSOSLGU.js");
|
|
385
416
|
if (!workbenchEnabled()) return loadPtySpawn();
|
|
386
|
-
const { getWorkbenchClient } = await import("./client-
|
|
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
|