@outerlayer/cli 0.40.0-next.20261116135746 → 0.40.0-next.20261116163636
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/build-info.json +1 -1
- package/dist/{caller-EPKVV4XS.js → caller-FFGBVIU7.js} +2 -2
- package/dist/{check-7ZXMFO5K.js → check-XDVWBT5T.js} +10 -10
- package/dist/{chunk-TT6C65II.js → chunk-2MNKGEEU.js} +1 -1
- package/dist/{chunk-VCPR7TRU.js → chunk-C4KTCBOR.js} +1 -1
- package/dist/{chunk-DWZWXWZP.js → chunk-DW4N7KNX.js} +3 -3
- package/dist/{chunk-FKIZCJOQ.js → chunk-EHGWEJJP.js} +3 -3
- package/dist/{chunk-ZSGCCX5U.js → chunk-EJNRRK26.js} +1 -1
- package/dist/{chunk-QXKFQDV2.js → chunk-FR3CCEE2.js} +1 -1
- package/dist/{chunk-UEK65YH6.js → chunk-GDARDBX4.js} +1 -1
- package/dist/{chunk-UBSNF6VG.js → chunk-JFHPOJ7T.js} +1 -1
- package/dist/{chunk-EY5PK33O.js → chunk-JWIH23KZ.js} +4 -8
- package/dist/{chunk-K5CV7Y7U.js → chunk-KCSVX7ML.js} +3 -3
- package/dist/{chunk-7FE6NARL.js → chunk-MGNDNMTO.js} +3 -3
- package/dist/{chunk-MI2XJJTC.js → chunk-NKABIKPX.js} +8 -8
- package/dist/{chunk-3C2NLRL3.js → chunk-NLBGDF55.js} +2 -2
- package/dist/{chunk-7V6MCI6A.js → chunk-RG2Z7XIR.js} +1 -1
- package/dist/{chunk-3BA7WFT5.js → chunk-U77FUTNH.js} +1 -1
- package/dist/{chunk-4UDSLKAQ.js → chunk-UZPRXITI.js} +10 -11
- package/dist/{cli-OAJGSXFK.js → cli-6HHEJHUB.js} +59 -55
- package/dist/{command-TVXXAAXE.js → command-BHQCP5E3.js} +8 -8
- package/dist/{config-XZL5SJFQ.js → config-T34TYP32.js} +1 -1
- package/dist/{container-start-VHUXUJY4.js → container-start-RAOTI3SI.js} +7 -7
- package/dist/{doctor-VA2UFJFP.js → doctor-6BDO7QKS.js} +7 -7
- package/dist/{find-unit-WQBMZAYJ.js → find-unit-EZ2XURDB.js} +3 -3
- package/dist/{host-checks-C2GDXJPJ.js → host-checks-I2LZOUET.js} +5 -5
- package/dist/index.js +1 -1
- package/dist/{init-4ERBO6N5.js → init-L5MJ2P3L.js} +5 -5
- package/dist/{init-SCINBONF.js → init-SRI7RIGW.js} +5 -5
- package/dist/{init-agent-6UGX75WR.js → init-agent-BLT7QWKX.js} +5 -5
- package/dist/{init-cmd-MXQZ4PRU.js → init-cmd-TALNXEW7.js} +2 -2
- package/dist/{install-cmd-BMXDDBPN.js → install-cmd-DKLCUHBU.js} +2 -2
- package/dist/{launch-agent-DPDGHYIW.js → launch-agent-WUIHZ74D.js} +3 -3
- package/dist/{loop-DE37FAAT.js → loop-4A2CJDP2.js} +9 -9
- package/dist/{machine-4JUM7RCO.js → machine-Z3FN3EPB.js} +5 -5
- package/dist/{runner-env-PS42B5IJ.js → runner-env-WVEXFFFD.js} +3 -3
- package/dist/{runner-key-ZTHDMU44.js → runner-key-LBLXRBG7.js} +5 -5
- package/dist/{setup-wiring-Z7WTN6R6.js → setup-wiring-6XQZN6IM.js} +7 -7
- package/dist/{status-CA5UYVDR.js → status-XWUFP5R4.js} +5 -5
- package/dist/{update-steps-E4R6PAT3.js → update-steps-ENYN7X5S.js} +6 -6
- package/dist/{work-claim-cmd-TE65ALQ3.js → work-claim-cmd-EQGS4H4Q.js} +1 -1
- package/dist/{work-proofs-cmd-OFJ442KJ.js → work-proofs-cmd-WKIVE2CA.js} +1 -1
- package/dist/{work-proofs-record-7JY3GSP2.js → work-proofs-record-AHT6YSZA.js} +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-16T16:44:47.425Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-RG2Z7XIR.js';
|
|
4
|
+
import './chunk-JWIH23KZ.js';
|
|
5
5
|
import './chunk-65VG7TV5.js';
|
|
6
6
|
import './chunk-QZBZQVZK.js';
|
|
7
7
|
import './chunk-47NQTKLX.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-NKABIKPX.js';
|
|
4
4
|
import './chunk-7MVTX74D.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-DW4N7KNX.js';
|
|
7
|
+
import './chunk-EJNRRK26.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-5XAV7LGB.js';
|
|
10
10
|
import './chunk-H32FCHB5.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-KCSVX7ML.js';
|
|
12
12
|
import './chunk-ETXP6DPT.js';
|
|
13
|
-
import { findServiceUnit } from './chunk-
|
|
14
|
-
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
13
|
+
import { findServiceUnit } from './chunk-C4KTCBOR.js';
|
|
14
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-UZPRXITI.js';
|
|
15
15
|
import './chunk-JXZ3LIHN.js';
|
|
16
16
|
import './chunk-J74SL6JI.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-2PGI6RDE.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-FR3CCEE2.js';
|
|
20
|
+
import './chunk-U77FUTNH.js';
|
|
21
21
|
import './chunk-UU3A53VB.js';
|
|
22
22
|
import './chunk-T3YVHCKG.js';
|
|
23
23
|
import './chunk-XEV7LRU3.js';
|
|
@@ -28,7 +28,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
28
28
|
import './chunk-B4XB5QFD.js';
|
|
29
29
|
import './chunk-ZX6NQ4TE.js';
|
|
30
30
|
import './chunk-TQMI335S.js';
|
|
31
|
-
import './chunk-
|
|
31
|
+
import './chunk-RG2Z7XIR.js';
|
|
32
32
|
import './chunk-NN33FYXG.js';
|
|
33
33
|
import './chunk-L7MCKDRU.js';
|
|
34
34
|
import './chunk-Z7OGU6UD.js';
|
|
@@ -42,7 +42,7 @@ import './chunk-FJGYU2EK.js';
|
|
|
42
42
|
import './chunk-XJTA4GJE.js';
|
|
43
43
|
import './chunk-A7M4QXVX.js';
|
|
44
44
|
import './chunk-PZAI36UE.js';
|
|
45
|
-
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-
|
|
45
|
+
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-JWIH23KZ.js';
|
|
46
46
|
import './chunk-65VG7TV5.js';
|
|
47
47
|
import './chunk-QZBZQVZK.js';
|
|
48
48
|
import './chunk-47NQTKLX.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-C5TJZMYS.js';
|
|
4
4
|
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-ETXP6DPT.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-JWIH23KZ.js';
|
|
7
7
|
import { runnerDir, RUNNER_DIR_MODE } from './chunk-QZ3QG4FE.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-U77FUTNH.js';
|
|
4
4
|
import { inspectService, realInspectProbes } from './chunk-5XEO7FJW.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-UZPRXITI.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-U77FUTNH.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-LAMPJU6V.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
7
|
import { isSignatureRefusal, postJson } from './chunk-XJTA4GJE.js';
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
8
|
+
import { keyRunnerFactory } from './chunk-JWIH23KZ.js';
|
|
9
9
|
import { signerFor } from './chunk-OTB63HQF.js';
|
|
10
10
|
import { pidFilePath } from './chunk-QZ3QG4FE.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-I2LZOUET.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-I2LZOUET.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-AHT6YSZA.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-UZPRXITI.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ZX6NQ4TE.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-U77FUTNH.js';
|
|
4
4
|
import { RUNNER_FILE_MODE } from './chunk-QZ3QG4FE.js';
|
|
5
5
|
import { parseRunnerEnv, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
6
6
|
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-MHXUQI67.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
4
|
import { execStartArgv } from './chunk-ETXP6DPT.js';
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-U77FUTNH.js';
|
|
6
6
|
import { runnerDir } from './chunk-QZ3QG4FE.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-MGNDNMTO.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-4KCWAP5L.js';
|
|
5
5
|
import { runConnect, hasUncommittedPolicy, commitCommandsFor } from './chunk-RZRR2IUL.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -303,7 +303,6 @@ var RUNNER_KEYS = [
|
|
|
303
303
|
"autoUpdate",
|
|
304
304
|
"wait",
|
|
305
305
|
"deliverComments",
|
|
306
|
-
"managed",
|
|
307
306
|
"fleet",
|
|
308
307
|
"update"
|
|
309
308
|
];
|
|
@@ -402,6 +401,9 @@ function loadRunnerConfig(configPath) {
|
|
|
402
401
|
if (!runner) {
|
|
403
402
|
fail(configPath, "runner", "block is missing");
|
|
404
403
|
}
|
|
404
|
+
if (Object.hasOwn(runner, "managed")) {
|
|
405
|
+
fail(configPath, "runner.managed", "is not a key this block accepts; remove it, because runner.fleet: true makes a runner managed");
|
|
406
|
+
}
|
|
405
407
|
for (const key of Object.keys(runner)) {
|
|
406
408
|
if (RUNNER_KEYS.includes(key)) continue;
|
|
407
409
|
const near = nearestKey(key, RUNNER_KEYS);
|
|
@@ -426,12 +428,6 @@ function loadRunnerConfig(configPath) {
|
|
|
426
428
|
if (runner.deliverComments !== void 0 && typeof runner.deliverComments !== "boolean") {
|
|
427
429
|
fail(configPath, "runner.deliverComments", "must be true or false");
|
|
428
430
|
}
|
|
429
|
-
if (runner.managed !== void 0 && typeof runner.managed !== "boolean") {
|
|
430
|
-
fail(configPath, "runner.managed", "must be true or false");
|
|
431
|
-
}
|
|
432
|
-
if (fleet && runner.managed === false) {
|
|
433
|
-
fail(configPath, "runner.managed", "is false, and runner.fleet turns managed mode on; remove runner.managed");
|
|
434
|
-
}
|
|
435
431
|
if (runner.name !== void 0 && runner.host !== void 0 && runner.name !== runner.host) {
|
|
436
432
|
fail(configPath, "runner.name", `is "${runner.name}" and runner.host is "${runner.host}"; set runner.name only, since runner.host is its earlier name`);
|
|
437
433
|
}
|
|
@@ -507,7 +503,7 @@ function loadRunnerConfig(configPath) {
|
|
|
507
503
|
wait: runner.wait ?? true,
|
|
508
504
|
deliverComments: runner.deliverComments ?? true,
|
|
509
505
|
// A fleet runner is a managed runner: its builds run under the jailer with the managed checks.
|
|
510
|
-
...fleet ? { managed: true } :
|
|
506
|
+
...fleet ? { managed: true } : {}
|
|
511
507
|
};
|
|
512
508
|
}
|
|
513
509
|
function checkBuiltinHooks(configPath, hooks) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-UZPRXITI.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-U77FUTNH.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-XJTA4GJE.js';
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-JWIH23KZ.js';
|
|
7
7
|
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-65VG7TV5.js';
|
|
8
8
|
import { ensureHostKey } from './chunk-OTB63HQF.js';
|
|
9
9
|
import { sandboxSettingsFrom } from './chunk-YDZV2E5U.js';
|
|
@@ -1094,7 +1094,7 @@ function doctorExitCode(checks) {
|
|
|
1094
1094
|
// src/doctor-report.ts
|
|
1095
1095
|
async function gatherDoctorChecks(options = {}) {
|
|
1096
1096
|
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-NUB2IQLK.js');
|
|
1097
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1097
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-T34TYP32.js');
|
|
1098
1098
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1099
1099
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1100
1100
|
const hooks = (() => {
|
|
@@ -1122,7 +1122,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1122
1122
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1123
1123
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1124
1124
|
} else if (hasRunnerBlock(configPath)) {
|
|
1125
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1125
|
+
const { runnerHostChecks } = await import('./doctor-6BDO7QKS.js');
|
|
1126
1126
|
const gateway = (() => {
|
|
1127
1127
|
try {
|
|
1128
1128
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1150
1150
|
const service = await (async () => {
|
|
1151
1151
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1152
1152
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1153
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1153
|
+
const { inspectRunnerService } = await import('./find-unit-EZ2XURDB.js');
|
|
1154
1154
|
return inspectRunnerService(configPath);
|
|
1155
1155
|
})();
|
|
1156
1156
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7MVTX74D.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-DW4N7KNX.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-EJNRRK26.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
8
|
import { writeFleetState } from './chunk-5XAV7LGB.js';
|
|
9
9
|
import { writePendingUpdate } from './chunk-H32FCHB5.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-KCSVX7ML.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-ETXP6DPT.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-UZPRXITI.js';
|
|
13
13
|
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
14
14
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-J74SL6JI.js';
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-U77FUTNH.js';
|
|
16
16
|
import { RepoFilter } from './chunk-S2FSJ7H2.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
18
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ZX6NQ4TE.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-RG2Z7XIR.js';
|
|
21
21
|
import { fetchCommit, readBranchHead, diffBetween } from './chunk-L7MCKDRU.js';
|
|
22
22
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-LAMPJU6V.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
24
|
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-Q7AUTP6Z.js';
|
|
25
25
|
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-XJTA4GJE.js';
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-JWIH23KZ.js';
|
|
27
27
|
import { allocatedBytes, freeBytes, formatBytes } from './chunk-65VG7TV5.js';
|
|
28
28
|
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-QZBZQVZK.js';
|
|
29
29
|
import { loadHostKey, ensureHostKey, signerFor } from './chunk-OTB63HQF.js';
|
|
@@ -4827,7 +4827,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4827
4827
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4828
4828
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4829
4829
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4830
|
-
return (await import('./check-
|
|
4830
|
+
return (await import('./check-XDVWBT5T.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4831
4831
|
},
|
|
4832
4832
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4833
4833
|
log
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-UZPRXITI.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-U77FUTNH.js';
|
|
5
5
|
import { runnerDir } from './chunk-QZ3QG4FE.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-JWIH23KZ.js';
|
|
4
4
|
import { orgHomeDir } from './chunk-QZ3QG4FE.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-JWIH23KZ.js';
|
|
4
4
|
import { parseSize } from './chunk-QZBZQVZK.js';
|
|
5
5
|
import { runnerDir } from './chunk-QZ3QG4FE.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
@@ -4,7 +4,7 @@ import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-J74SL6JI.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
6
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-FR3CCEE2.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-UU3A53VB.js';
|
|
9
9
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-T3YVHCKG.js';
|
|
10
10
|
import { writeDockerClientConfig } from './chunk-XEV7LRU3.js';
|
|
@@ -12,7 +12,7 @@ import { senderPidfile } from './chunk-JR347MV3.js';
|
|
|
12
12
|
import { installScrubContext } from './chunk-S2FSJ7H2.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
14
|
import { runnerImageVersion } from './chunk-ZX6NQ4TE.js';
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-RG2Z7XIR.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
17
|
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-L7MCKDRU.js';
|
|
18
18
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-Z7OGU6UD.js';
|
|
@@ -22,7 +22,7 @@ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-HHMFCT5K
|
|
|
22
22
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-4BPYPPWG.js';
|
|
23
23
|
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-Q7AUTP6Z.js';
|
|
24
24
|
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-XJTA4GJE.js';
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-JWIH23KZ.js';
|
|
26
26
|
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-65VG7TV5.js';
|
|
27
27
|
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-QZBZQVZK.js';
|
|
28
28
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-47NQTKLX.js';
|
|
@@ -392,9 +392,6 @@ function managedClaudeKeyFor(jobDir) {
|
|
|
392
392
|
function dropManagedClaudeKey(jobDir) {
|
|
393
393
|
held.delete(jobDir);
|
|
394
394
|
}
|
|
395
|
-
function managedClaudeKeyValues() {
|
|
396
|
-
return [...everHeld];
|
|
397
|
-
}
|
|
398
395
|
function managedClaudeKeyValuesFor(jobDir) {
|
|
399
396
|
const key = everHeldBy.get(jobDir);
|
|
400
397
|
return key === void 0 ? [] : [key];
|
|
@@ -472,9 +469,6 @@ function proxiedEnvironment(jobDir) {
|
|
|
472
469
|
for (const variable of held2.get(jobDir)?.proxied ?? []) env[variable.name] = STAND_IN;
|
|
473
470
|
return env;
|
|
474
471
|
}
|
|
475
|
-
function managedBuildSettingValues() {
|
|
476
|
-
return [...new Set([...held2.values()].flatMap((settings) => [...settings.variables, ...settings.proxied ?? []].map(({ value }) => value)))];
|
|
477
|
-
}
|
|
478
472
|
function managedBuildSettingValuesFor(jobDir) {
|
|
479
473
|
const settings = held2.get(jobDir);
|
|
480
474
|
return [...new Set([...settings?.variables ?? [], ...settings?.proxied ?? []].map(({ value }) => value))];
|
|
@@ -4406,6 +4400,7 @@ var SANDBOX_DIR = "/var/lib/ol-runner";
|
|
|
4406
4400
|
var OLD_SANDBOX_DIR = "/tmp/ol";
|
|
4407
4401
|
var CLI_DIR = `${SANDBOX_DIR}/dist`;
|
|
4408
4402
|
var SKILL_PACK_DIR = `${SANDBOX_DIR}/skill-pack`;
|
|
4403
|
+
var PACKAGE_FILE = `${SANDBOX_DIR}/package.json`;
|
|
4409
4404
|
var SECRET_FILE = `${SANDBOX_DIR}/join-secret`;
|
|
4410
4405
|
var CONTAINER_SECRET_FILE = "/run/outerlayer-relay/join-secret";
|
|
4411
4406
|
var JOIN_WS_PORT = 7077;
|
|
@@ -4581,6 +4576,7 @@ function sandboxRunArgs(args, opts = {}) {
|
|
|
4581
4576
|
"--mount",
|
|
4582
4577
|
`type=bind,src=${CLI_DIR},dst=/opt/outerlayer/cli/dist,readonly`,
|
|
4583
4578
|
...opts.skillPack === true ? ["--mount", `type=bind,src=${SKILL_PACK_DIR},dst=/opt/outerlayer/cli/skill-pack,readonly`] : [],
|
|
4579
|
+
...opts.packageFile === true ? ["--mount", `type=bind,src=${PACKAGE_FILE},dst=/opt/outerlayer/cli/package.json,readonly`] : [],
|
|
4584
4580
|
"--mount",
|
|
4585
4581
|
`type=bind,src=${SECRET_FILE},dst=${CONTAINER_SECRET_FILE},readonly`,
|
|
4586
4582
|
...opts.joined === true ? ["--mount", `type=bind,src=${JOIN_DIR},dst=${CONTAINER_JOIN_DIR}`] : [],
|
|
@@ -5011,6 +5007,8 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5011
5007
|
runtime.sandbox.joinSecrets.set(buildId, joinSecret);
|
|
5012
5008
|
const packDir = join(runtime.cliBuild().distDir, "..", "skill-pack");
|
|
5013
5009
|
const skillPack = existsSync(packDir) ? packDir : void 0;
|
|
5010
|
+
const packagePath = join(runtime.cliBuild().distDir, "..", "package.json");
|
|
5011
|
+
const packageFile = existsSync(packagePath) ? packagePath : void 0;
|
|
5014
5012
|
try {
|
|
5015
5013
|
const made = await sandboxClient.command(sandbox, `sudo mkdir -p ${CLI_DIR} && sudo chown -R "$(id -u):$(id -g)" ${SANDBOX_DIR}`);
|
|
5016
5014
|
if (made.exitCode !== 0) return bail(`making ${SANDBOX_DIR} in the sandbox failed (exit ${made.exitCode ?? "none"})${said(made.stderr)}`);
|
|
@@ -5020,6 +5018,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5020
5018
|
const placed = await sandboxClient.command(sandbox, `mkdir -p ${SKILL_PACK_DIR} && tar xzf ${SANDBOX_DIR}/skill-pack.tgz -C ${SKILL_PACK_DIR} && rm -f ${SANDBOX_DIR}/skill-pack.tgz`);
|
|
5021
5019
|
if (placed.exitCode !== 0) return bail(`putting the skill pack in the sandbox failed (exit ${placed.exitCode ?? "none"})${said(placed.stderr)}`);
|
|
5022
5020
|
}
|
|
5021
|
+
if (packageFile !== void 0) await sandboxClient.upload(sandbox, PACKAGE_FILE, readFileSync(packageFile));
|
|
5023
5022
|
await sandboxClient.upload(sandbox, SECRET_FILE, joinSecret);
|
|
5024
5023
|
const unpacked = await sandboxClient.command(sandbox, `tar xzf ${SANDBOX_DIR}/dist.tgz -C ${CLI_DIR} && rm -f ${SANDBOX_DIR}/dist.tgz && sudo chown 60100:60100 ${SECRET_FILE} && sudo chmod 400 ${SECRET_FILE}`);
|
|
5025
5024
|
if (unpacked.exitCode !== 0) return bail(`putting the CLI in the sandbox failed (exit ${unpacked.exitCode ?? "none"})${said(unpacked.stderr)}`);
|
|
@@ -5071,7 +5070,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5071
5070
|
if ("none" in network) log.line(`${tag} ${noHelperLine(network.none)}`);
|
|
5072
5071
|
else containerState.network = network.helper;
|
|
5073
5072
|
const runArgs = containerRunArgs({ ...runInput, home: containerState.home, network: containerState.network }, runtime.agents);
|
|
5074
|
-
const started = await host.run(sandboxRunArgs(runArgs, { skillPack: skillPack !== void 0, dockerGroup, joined: containerState.network !== void 0 }), { logPath });
|
|
5073
|
+
const started = await host.run(sandboxRunArgs(runArgs, { skillPack: skillPack !== void 0, packageFile: packageFile !== void 0, dockerGroup, joined: containerState.network !== void 0 }), { logPath });
|
|
5075
5074
|
if (started.status !== 0) return dockerFailed("starting the build's container", started);
|
|
5076
5075
|
joinRelay(runtime, sandbox, { buildId, container }, services.streams, joinSecret, (line2) => log.line(`${tag} ${line2}`));
|
|
5077
5076
|
if (input.aborted()) return bail("", true);
|
|
@@ -9690,7 +9689,7 @@ function mergeScrubConfig(a, b) {
|
|
|
9690
9689
|
function releaseScrub(config, home, jobDir, agents = defaultAgents()) {
|
|
9691
9690
|
const merged = mergeScrubConfig(config.scrub, readCloudConfig(home).scrub);
|
|
9692
9691
|
const secrets = [...headerVariables(config.build?.destinations), ...strippedVariables(agents)].map((name) => process.env[name] ?? "");
|
|
9693
|
-
const managed = config.fleet === true
|
|
9692
|
+
const managed = config.fleet === true && jobDir !== void 0 ? [...managedClaudeKeyValuesFor(jobDir), ...managedBuildSettingValuesFor(jobDir)] : [];
|
|
9694
9693
|
const held3 = [...runnerAgents(agents).map((agent) => currentAgentCredential(process.env, agent.descriptor.id, agents)?.value), ...removedAgentCredentialValues(), ...managed].filter((value) => value !== void 0);
|
|
9695
9694
|
return { literals: [...scrubList(merged?.literals), ...secrets, ...held3], patterns: scrubList(merged?.patterns) };
|
|
9696
9695
|
}
|