@outerlayer/cli 0.39.0-next.20261113194704 → 0.39.0-next.20261113230129
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/{agent-setup-CHJGSPSC.js → agent-setup-KC57OFPM.js} +3 -2
- package/dist/{agent-subcommand-QGERM7TO.js → agent-subcommand-P5SXLE3P.js} +1 -1
- package/dist/{build-EQE4CHVF.js → build-TKD6VQ4G.js} +2 -1
- package/dist/build-info.json +1 -1
- package/dist/{check-BWF5K2OC.js → check-QAHFZVHA.js} +13 -12
- package/dist/{chunk-J4TS2MOT.js → chunk-3YREPCE6.js} +3 -3
- package/dist/{chunk-MFGRF642.js → chunk-3ZJ3DDRR.js} +1 -1
- package/dist/{chunk-TS6PIXRR.js → chunk-5CSTIY46.js} +14 -12
- package/dist/{chunk-JBPKYZWF.js → chunk-673XPZTO.js} +2 -2
- package/dist/chunk-A2WPWZJA.js +37 -0
- package/dist/{chunk-RCHTT5M2.js → chunk-BOGLVGYB.js} +2 -2
- package/dist/{chunk-I7ESQVNN.js → chunk-DMW67NYW.js} +24 -4
- package/dist/{chunk-EMASZK23.js → chunk-EVMFG65E.js} +4 -4
- package/dist/{chunk-6ULNXGTT.js → chunk-GOMVXG4D.js} +1 -1
- package/dist/{chunk-OAUTKZSD.js → chunk-HLBZS2HU.js} +1 -1
- package/dist/{chunk-EUPBGQUR.js → chunk-LL35DTES.js} +1 -1
- package/dist/{chunk-FW7OFMIU.js → chunk-LZCYMGSA.js} +2 -0
- package/dist/{chunk-P6F2BC7B.js → chunk-PQ2JUD5D.js} +1 -1
- package/dist/{chunk-S3DRE3UM.js → chunk-PSAULO23.js} +5 -5
- package/dist/{chunk-J3B67XP3.js → chunk-PWR4JST6.js} +2 -2
- package/dist/{chunk-NSTZ7R4U.js → chunk-PZITUESA.js} +1 -1
- package/dist/{chunk-LQP4UIIO.js → chunk-QWFZIRCY.js} +1 -1
- package/dist/{chunk-V77NAYEL.js → chunk-QXCXT6R2.js} +2 -2
- package/dist/{chunk-WTUALZAS.js → chunk-R6CY7HPA.js} +1 -1
- package/dist/{chunk-ZWUKC64J.js → chunk-YGJHFHRV.js} +3 -3
- package/dist/{claude-launcher-7TSAEDJG.js → claude-launcher-LOLGX6JK.js} +1 -1
- package/dist/{cli-2GZ4UN5F.js → cli-R3EBH3C5.js} +75 -75
- package/dist/{command-5ENNHKF2.js → command-KXPNDK5C.js} +10 -9
- package/dist/{container-start-T4ENCE7G.js → container-start-JDT76CH7.js} +11 -10
- package/dist/{control-plane-launch-K53NVM3C.js → control-plane-launch-7U45HQKQ.js} +2 -1
- package/dist/{demo-voice-cmd-Z5MR5SIZ.js → demo-voice-cmd-HDG3Q6JC.js} +4 -4
- package/dist/{doctor-JCK6JEYY.js → doctor-5D73AUDT.js} +11 -10
- package/dist/{emit-artifact-cmd-LEZATFVN.js → emit-artifact-cmd-SQM6EY77.js} +3 -3
- package/dist/{emit-demo-cmd-EIKFPCW6.js → emit-demo-cmd-D2S5YJ5K.js} +4 -4
- package/dist/{emit-result-cmd-6BAGWAS7.js → emit-result-cmd-MVWAXXXU.js} +2 -2
- package/dist/{governing-source-PEIIZBAC.js → governing-source-KGK6GNSB.js} +4 -3
- package/dist/{hook-fast-ZN2IEIU2.js → hook-fast-G2YCUNJB.js} +1 -1
- package/dist/{host-checks-R47GDWYP.js → host-checks-L45C5IR6.js} +9 -8
- package/dist/index.js +4 -4
- package/dist/{init-5J5UCUC6.js → init-PCJQPFO2.js} +9 -8
- package/dist/{init-PZZL4ETW.js → init-WUOD3S47.js} +9 -8
- package/dist/{init-agent-2HXBZE4H.js → init-agent-GGGRBCRM.js} +9 -8
- package/dist/{init-cmd-JQWXNDZT.js → init-cmd-ETGRLHZF.js} +3 -3
- package/dist/{init-update-EK3SQ4PL.js → init-update-YBF4NNRR.js} +3 -2
- package/dist/{loop-5MMYBOCW.js → loop-G3ABFPEF.js} +13 -12
- package/dist/{machine-RRK34JWK.js → machine-PNNPGUTC.js} +9 -8
- package/dist/{run-cmd-GXTN7IBI.js → run-cmd-ZQJP3W64.js} +1 -1
- package/dist/{runner-key-BBPHO34U.js → runner-key-PGE662EJ.js} +9 -8
- package/dist/{session-sender-BRJCG6ZK.js → session-sender-2EZ7FSED.js} +3 -3
- package/dist/{spec-cmd-QDU5ILZN.js → spec-cmd-RUNKCRTR.js} +1 -1
- package/dist/{status-IX5JMCCP.js → status-CGTVZCL6.js} +9 -8
- package/dist/{sync-cmd-NURKDBOP.js → sync-cmd-36EZ2T32.js} +2 -2
- package/dist/{update-steps-6BTZMJR4.js → update-steps-PVZD75SM.js} +10 -9
- package/dist/{watch-KYP3S6BI.js → watch-KIGZEMWE.js} +2 -2
- package/dist/{work-claim-cmd-K3AC2GZC.js → work-claim-cmd-B4DBKWYX.js} +3 -3
- package/dist/{work-cmd-V6HA2AL5.js → work-cmd-SYKHHGPX.js} +1 -1
- package/dist/{work-comment-cmd-PITBWWAA.js → work-comment-cmd-JWBY4DNM.js} +3 -3
- package/dist/{work-demo-cmd-7BGBF4UN.js → work-demo-cmd-2ER4R5KB.js} +1 -1
- package/dist/{work-logs-cmd-AN7D3EYZ.js → work-logs-cmd-ADZZLFGR.js} +1 -1
- package/dist/{work-mock-cmd-QQTWQYFW.js → work-mock-cmd-JJ4AAAAG.js} +1 -1
- package/dist/{work-needs-attention-cmd-Q6GRWBCL.js → work-needs-attention-cmd-GCKSIXXC.js} +1 -1
- package/dist/{work-no-change-cmd-23VQUYWO.js → work-no-change-cmd-2AWAZSAN.js} +1 -1
- package/dist/{work-open-pr-cmd-XRE76N42.js → work-open-pr-cmd-FVA3ES7K.js} +1 -1
- package/dist/{work-proofs-cmd-E5Q56CLG.js → work-proofs-cmd-5YFFB7R7.js} +2 -2
- package/dist/{work-proofs-record-PWISWJ3C.js → work-proofs-record-7L2MVCO5.js} +7 -7
- package/dist/{work-stop-cmd-JLDUEEVI.js → work-stop-cmd-V6BXCJ6G.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-QWFZIRCY.js';
|
|
4
4
|
import './chunk-VY6ZI6D4.js';
|
|
5
5
|
import './chunk-JBNHEMOD.js';
|
|
6
6
|
import './chunk-PUWASVZT.js';
|
|
@@ -10,9 +10,10 @@ import './chunk-YXT3MVNP.js';
|
|
|
10
10
|
import './chunk-ND6JA3K5.js';
|
|
11
11
|
import './chunk-A2LHHKTT.js';
|
|
12
12
|
import './chunk-2AM6Z5BP.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-LZCYMGSA.js';
|
|
14
14
|
import './chunk-5JV7GPX4.js';
|
|
15
15
|
import './chunk-X52QSY5J.js';
|
|
16
|
+
import './chunk-A2WPWZJA.js';
|
|
16
17
|
import './chunk-VPNDUGQ3.js';
|
|
17
18
|
import './chunk-HWVMRETT.js';
|
|
18
19
|
import './chunk-5SQI5K2Y.js';
|
|
@@ -19,7 +19,7 @@ function resolveSubcommand(word, agents = defaultAgents()) {
|
|
|
19
19
|
async function runSubcommand(argv, agents = defaultAgents()) {
|
|
20
20
|
const agentId = resolveSubcommand(argv[0], agents);
|
|
21
21
|
if (agentId === void 0) return void 0;
|
|
22
|
-
const { runAgentLauncher } = await import('./claude-launcher-
|
|
22
|
+
const { runAgentLauncher } = await import('./claude-launcher-LOLGX6JK.js');
|
|
23
23
|
return runAgentLauncher(agentId, argv.slice(1), { agents });
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, readRepositoryRecipe, universalBase, writeRecord } from './chunk-
|
|
3
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, readRepositoryRecipe, universalBase, writeRecord } from './chunk-DMW67NYW.js';
|
|
4
4
|
import './chunk-AHNHV6XY.js';
|
|
5
5
|
import './chunk-3EJGM5IH.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
7
|
import './chunk-FJGYU2EK.js';
|
|
8
8
|
import './chunk-4FA5VSES.js';
|
|
9
9
|
export { RecipeError } from './chunk-LOAWSJCG.js';
|
|
10
|
+
import './chunk-A2WPWZJA.js';
|
|
10
11
|
import './chunk-5SQI5K2Y.js';
|
|
11
12
|
import './chunk-ZETBXFEA.js';
|
|
12
13
|
import './chunk-UKM7MOUE.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-13T23:08:54.111Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-5CSTIY46.js';
|
|
4
4
|
import './chunk-3JVYMD4G.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QXCXT6R2.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
7
|
import './chunk-2OAQK7A2.js';
|
|
8
8
|
import './chunk-WXJNUKRS.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-R6CY7HPA.js';
|
|
10
10
|
import './chunk-NEOEON2T.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-673XPZTO.js';
|
|
12
12
|
import './chunk-LSWS52DO.js';
|
|
13
13
|
import { findServiceUnit } from './chunk-UETULTNN.js';
|
|
14
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem, createGatewaySandboxClient, gatewayRefusalReason } from './chunk-
|
|
14
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem, createGatewaySandboxClient, gatewayRefusalReason } from './chunk-PSAULO23.js';
|
|
15
15
|
import './chunk-IEPKZPTP.js';
|
|
16
16
|
import './chunk-UHCPBQ55.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
@@ -21,8 +21,8 @@ import './chunk-LIHYCAXQ.js';
|
|
|
21
21
|
import './chunk-RFWX5IAJ.js';
|
|
22
22
|
import './chunk-WASMQJFL.js';
|
|
23
23
|
import './chunk-BILJTMNX.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
24
|
+
import './chunk-PWR4JST6.js';
|
|
25
|
+
import './chunk-HLBZS2HU.js';
|
|
26
26
|
import './chunk-PTHYDTWN.js';
|
|
27
27
|
import './chunk-C2PZOLN7.js';
|
|
28
28
|
import './chunk-ZVB57WI6.js';
|
|
@@ -30,16 +30,16 @@ import './chunk-ABPJ4DTO.js';
|
|
|
30
30
|
import './chunk-TQMI335S.js';
|
|
31
31
|
import './chunk-WVTIKTAV.js';
|
|
32
32
|
import './chunk-NN33FYXG.js';
|
|
33
|
-
import './chunk-
|
|
33
|
+
import './chunk-DMW67NYW.js';
|
|
34
34
|
import './chunk-AHNHV6XY.js';
|
|
35
35
|
import './chunk-3EJGM5IH.js';
|
|
36
36
|
import './chunk-JBJTC3UU.js';
|
|
37
37
|
import './chunk-OGFGZQA3.js';
|
|
38
38
|
import './chunk-HAS7Z5X7.js';
|
|
39
39
|
import './chunk-N6XYRWPO.js';
|
|
40
|
-
import { describeCallFailure } from './chunk-
|
|
40
|
+
import { describeCallFailure } from './chunk-YGJHFHRV.js';
|
|
41
41
|
import './chunk-FJGYU2EK.js';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-GOMVXG4D.js';
|
|
43
43
|
import './chunk-4M7N6DKZ.js';
|
|
44
44
|
import './chunk-HZPWVFJX.js';
|
|
45
45
|
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-2I6SZBRS.js';
|
|
@@ -54,9 +54,10 @@ import './chunk-YXT3MVNP.js';
|
|
|
54
54
|
import './chunk-ND6JA3K5.js';
|
|
55
55
|
import './chunk-A2LHHKTT.js';
|
|
56
56
|
import './chunk-2AM6Z5BP.js';
|
|
57
|
-
import './chunk-
|
|
57
|
+
import './chunk-LZCYMGSA.js';
|
|
58
58
|
import './chunk-5JV7GPX4.js';
|
|
59
59
|
import './chunk-X52QSY5J.js';
|
|
60
|
+
import './chunk-A2WPWZJA.js';
|
|
60
61
|
import './chunk-QCLROM67.js';
|
|
61
62
|
import './chunk-VPNDUGQ3.js';
|
|
62
63
|
import './chunk-HWVMRETT.js';
|
|
@@ -64,7 +65,7 @@ import './chunk-5SQI5K2Y.js';
|
|
|
64
65
|
import './chunk-ZETBXFEA.js';
|
|
65
66
|
import { SANDBOX_VARIABLES, SandboxError, describeSandboxError } from './chunk-UKM7MOUE.js';
|
|
66
67
|
import { parseRunnerEnv } from './chunk-6XUFQCIH.js';
|
|
67
|
-
import './chunk-
|
|
68
|
+
import './chunk-PZITUESA.js';
|
|
68
69
|
import './chunk-545P7JY7.js';
|
|
69
70
|
import './chunk-SF2TBJBP.js';
|
|
70
71
|
import './chunk-BJ3KTMDH.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-RFWX5IAJ.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-GOMVXG4D.js';
|
|
5
5
|
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-XG2QFPPQ.js';
|
|
6
6
|
import { withInjectedPrograms } from './chunk-5N7PMJBI.js';
|
|
7
7
|
import { isLinkedRepository } from './chunk-NAN54JQN.js';
|
|
@@ -9,7 +9,7 @@ import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-X52QSY5J.js';
|
|
11
11
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-VPNDUGQ3.js';
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-PZITUESA.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
|
|
@@ -1081,7 +1081,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1081
1081
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1082
1082
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1083
1083
|
} else if (hasRunnerBlock(configPath)) {
|
|
1084
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1084
|
+
const { runnerHostChecks } = await import('./doctor-5D73AUDT.js');
|
|
1085
1085
|
const gateway = (() => {
|
|
1086
1086
|
try {
|
|
1087
1087
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-PSAULO23.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-LIHYCAXQ.js';
|
|
5
5
|
import { runnerDir } from './chunk-ZETBXFEA.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-QXCXT6R2.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { writeFleetState } from './chunk-2OAQK7A2.js';
|
|
7
7
|
import { writePendingUpdate } from './chunk-WXJNUKRS.js';
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { renderUpdateSteps } from './chunk-R6CY7HPA.js';
|
|
9
9
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-NEOEON2T.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-673XPZTO.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-LSWS52DO.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, 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, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, 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, 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, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, 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-PSAULO23.js';
|
|
13
13
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-IEPKZPTP.js';
|
|
14
14
|
import { RUNNER_PROTOCOL } from './chunk-UHCPBQ55.js';
|
|
15
15
|
import { RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
16
|
+
import { RepoFilter } from './chunk-HLBZS2HU.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
18
18
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ABPJ4DTO.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
20
|
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-WVTIKTAV.js';
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-DMW67NYW.js';
|
|
22
22
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-3EJGM5IH.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-YGJHFHRV.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-GOMVXG4D.js';
|
|
26
26
|
import { keyRunnerFactory, 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-2I6SZBRS.js';
|
|
27
27
|
import { allocatedBytes, freeBytes, formatBytes } from './chunk-S572SDVO.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-4FA5VSES.js';
|
|
@@ -30,7 +30,7 @@ import { loadHostKey, ensureHostKey, signerFor } from './chunk-5SQI5K2Y.js';
|
|
|
30
30
|
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-ZETBXFEA.js';
|
|
31
31
|
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-UKM7MOUE.js';
|
|
32
32
|
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-6XUFQCIH.js';
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
33
|
+
import { cleanAttachmentName } from './chunk-PZITUESA.js';
|
|
34
34
|
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-WVEZO2QF.js';
|
|
35
35
|
import { defaultAgents, resolvePackRoot } from './chunk-QJPR3ZHI.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -3105,7 +3105,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3105
3105
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3106
3106
|
);
|
|
3107
3107
|
async function tryClaimAndStart(state, item, queue) {
|
|
3108
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3108
|
+
const { postJson: postJson2 } = await import('./work-cmd-SYKHHGPX.js');
|
|
3109
3109
|
const log = logOf(state);
|
|
3110
3110
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3111
3111
|
const claim = await retrySend(
|
|
@@ -3839,6 +3839,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3839
3839
|
};
|
|
3840
3840
|
job = active.job;
|
|
3841
3841
|
let running;
|
|
3842
|
+
active.commandStarting = true;
|
|
3842
3843
|
try {
|
|
3843
3844
|
if (job.sandbox !== void 0) {
|
|
3844
3845
|
job.sandbox.tracking = "sandbox";
|
|
@@ -3886,6 +3887,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3886
3887
|
writeJobFile(jobFilePath, job);
|
|
3887
3888
|
const commandStartedMs = nowOf(state).getTime();
|
|
3888
3889
|
active.commandStartedMs = commandStartedMs;
|
|
3890
|
+
active.commandStarting = false;
|
|
3889
3891
|
log.line(
|
|
3890
3892
|
running !== void 0 ? `${tag} command started \xB7 pid ${running.pid}` : job.sandbox !== void 0 ? `${tag} command started \xB7 in sandbox ${job.sandbox.sandboxId}` : job.container !== void 0 ? `${tag} command started \xB7 in container ${job.container.container}` : `${tag} command started \xB7 in microVM build ${job.microvm.buildId}`
|
|
3891
3893
|
);
|
|
@@ -4168,7 +4170,7 @@ async function probeBuild(state, active) {
|
|
|
4168
4170
|
const container = active.job.container;
|
|
4169
4171
|
const own = active.job.sandbox;
|
|
4170
4172
|
const tracked = own !== void 0 && isSandboxTracked(active.job) ? own : container !== void 0 && isContainerTracked(active.job) ? container : isMicroVmTracked(active.job) ? active.job.microvm : void 0;
|
|
4171
|
-
if (tracked === void 0 || active.ending || active.probing) return;
|
|
4173
|
+
if (tracked === void 0 || active.ending || active.probing || active.commandStarting) return;
|
|
4172
4174
|
active.probing = true;
|
|
4173
4175
|
const log = logOf(state);
|
|
4174
4176
|
const tag = `${itemTag(active.job)}`;
|
|
@@ -4714,7 +4716,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4714
4716
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4715
4717
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4716
4718
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4717
|
-
return (await import('./check-
|
|
4719
|
+
return (await import('./check-QAHFZVHA.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4718
4720
|
},
|
|
4719
4721
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4720
4722
|
log
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-PSAULO23.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-GOMVXG4D.js';
|
|
6
6
|
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-2I6SZBRS.js';
|
|
7
7
|
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-S572SDVO.js';
|
|
8
8
|
import { ensureHostKey } from './chunk-5SQI5K2Y.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { rmSync, lstatSync, readdirSync } from 'fs';
|
|
4
|
+
import { join } from 'path';
|
|
5
|
+
|
|
6
|
+
createRequire(import.meta.url);
|
|
7
|
+
function removeLeftoverGitLocks(gitDir) {
|
|
8
|
+
const topLevel = ["index.lock", "shallow.lock", "HEAD.lock", "config.lock", "packed-refs.lock"];
|
|
9
|
+
const locks = [...topLevel.map((name) => join(gitDir, name)).filter(isFile), ...refLocks(join(gitDir, "refs"))];
|
|
10
|
+
for (const path of locks) rmSync(path, { force: true });
|
|
11
|
+
return locks;
|
|
12
|
+
}
|
|
13
|
+
function isFile(path) {
|
|
14
|
+
try {
|
|
15
|
+
return lstatSync(path).isFile();
|
|
16
|
+
} catch {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function refLocks(dir) {
|
|
21
|
+
let entries;
|
|
22
|
+
try {
|
|
23
|
+
if (!lstatSync(dir).isDirectory()) return [];
|
|
24
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
25
|
+
} catch {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
const locks = [];
|
|
29
|
+
for (const entry of entries) {
|
|
30
|
+
const path = join(dir, entry.name);
|
|
31
|
+
if (entry.isDirectory()) locks.push(...refLocks(path));
|
|
32
|
+
else if (entry.isFile() && entry.name.endsWith(".lock")) locks.push(path);
|
|
33
|
+
}
|
|
34
|
+
return locks;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { removeLeftoverGitLocks };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-
|
|
3
|
+
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-GOMVXG4D.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-4M7N6DKZ.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { defaultFetch } from './chunk-VPNDUGQ3.js';
|
|
8
|
-
import { logHookError } from './chunk-
|
|
8
|
+
import { logHookError } from './chunk-PZITUESA.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -6,12 +6,13 @@ import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
|
6
6
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
7
|
import { runnerLabelValue } from './chunk-4FA5VSES.js';
|
|
8
8
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-LOAWSJCG.js';
|
|
9
|
+
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
9
10
|
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-ZETBXFEA.js';
|
|
10
11
|
import { withGitConfig, tokenHeader } from './chunk-UKM7MOUE.js';
|
|
11
12
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-WVEZO2QF.js';
|
|
12
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
13
14
|
import { tmpdir } from 'os';
|
|
14
|
-
import { join } from 'path';
|
|
15
|
+
import { join, dirname } from 'path';
|
|
15
16
|
import { execFile } from 'child_process';
|
|
16
17
|
import { createHash } from 'crypto';
|
|
17
18
|
|
|
@@ -51,6 +52,7 @@ function defaultBranchOf(lsRemote) {
|
|
|
51
52
|
async function fetchDefaultBranch(opts) {
|
|
52
53
|
const created = !existsSync(opts.dir);
|
|
53
54
|
mkdirSync(opts.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
55
|
+
if (opts.owned === true) removeLeftoverGitLocks(join(opts.dir, ".git"));
|
|
54
56
|
const credential = opts.token === void 0 ? void 0 : tokenSettings(opts.remote, opts.token);
|
|
55
57
|
const over = (args) => withNewTokenRetry(credential, () => git(opts.dir, args, void 0, credential));
|
|
56
58
|
try {
|
|
@@ -106,6 +108,7 @@ async function fetchCommit(input) {
|
|
|
106
108
|
const credential = input.token === void 0 ? void 0 : tokenSettings(input.remote, input.token);
|
|
107
109
|
try {
|
|
108
110
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
111
|
+
if (input.owned === true) removeLeftoverGitLocks(join(input.dir, ".git"));
|
|
109
112
|
await git(input.dir, ["init", "--quiet"]);
|
|
110
113
|
await withNewTokenRetry(credential, () => git(input.dir, ["fetch", "--quiet", "--depth", "1", "--no-tags", input.remote, input.commit], CLONE_TIMEOUT_MS, credential));
|
|
111
114
|
await git(input.dir, ["checkout", "--quiet", "--detach", "--force", "FETCH_HEAD"]);
|
|
@@ -263,7 +266,7 @@ function splitRepository(repository) {
|
|
|
263
266
|
return { full, owner: parts[0], name: parts[1] };
|
|
264
267
|
}
|
|
265
268
|
async function fetchPinnedCommit(opts) {
|
|
266
|
-
const fetched = await fetchCommit({ remote: opts.remote, dir: opts.dir, commit: opts.commit, token: opts.token, clean: true });
|
|
269
|
+
const fetched = await fetchCommit({ remote: opts.remote, dir: opts.dir, commit: opts.commit, token: opts.token, clean: true, owned: opts.owned });
|
|
267
270
|
if (!fetched.ok) throw new RecipeError("repository_unreadable", `cannot read ${opts.repository}: ${fetched.reason}`);
|
|
268
271
|
return { dir: opts.dir, defaultBranch: opts.ref, commit: opts.commit };
|
|
269
272
|
}
|
|
@@ -324,7 +327,7 @@ async function prepareImageBuild(opts) {
|
|
|
324
327
|
};
|
|
325
328
|
try {
|
|
326
329
|
const remote = opts.remote ?? `https://github.com/${owner}/${name}.git`;
|
|
327
|
-
const checkout = opts.pinned === void 0 ? await fetchDefaultBranch({ remote, dir: cacheDir, token: opts.readToken, repository }) : await fetchPinnedCommit({ remote, dir: cacheDir, token: opts.readToken, repository, ...opts.pinned });
|
|
330
|
+
const checkout = opts.pinned === void 0 ? await fetchDefaultBranch({ remote, dir: cacheDir, token: opts.readToken, repository, owned: true }) : await fetchPinnedCommit({ remote, dir: cacheDir, token: opts.readToken, repository, ...opts.pinned, owned: true });
|
|
328
331
|
const location = opts.universal === true ? { kind: "default" } : locateRecipe(checkout.dir);
|
|
329
332
|
const recipe = readRecipe(checkout.dir, location);
|
|
330
333
|
assertBuildable(checkout.dir, location, recipe);
|
|
@@ -371,13 +374,30 @@ async function prepareImageBuild(opts) {
|
|
|
371
374
|
throw err;
|
|
372
375
|
}
|
|
373
376
|
}
|
|
377
|
+
function tryBuildLock(lockPath) {
|
|
378
|
+
const self = { pid: process.pid, start: startTimeOf(process.pid) ?? "" };
|
|
379
|
+
try {
|
|
380
|
+
mkdirSync(dirname(lockPath), { recursive: true, mode: RUNNER_DIR_MODE });
|
|
381
|
+
claimPidFile(lockPath, self);
|
|
382
|
+
} catch {
|
|
383
|
+
return void 0;
|
|
384
|
+
}
|
|
385
|
+
return () => releasePidFile(lockPath, self);
|
|
386
|
+
}
|
|
374
387
|
var recipeReads = /* @__PURE__ */ new Map();
|
|
375
388
|
async function readRepositoryRecipe(opts) {
|
|
376
389
|
const { full: repository, owner, name } = splitRepository(opts.repository);
|
|
377
390
|
const cacheDir = repoCacheDir(opts.configPath, owner, name, opts.organizationId);
|
|
378
391
|
const read = async () => {
|
|
379
392
|
const remote = opts.remote ?? `https://github.com/${owner}/${name}.git`;
|
|
380
|
-
const
|
|
393
|
+
const release = tryBuildLock(join(imagesDir(opts.configPath, opts.organizationId), owner, name, LOCK_NAME));
|
|
394
|
+
let checkout;
|
|
395
|
+
try {
|
|
396
|
+
const owned = release !== void 0;
|
|
397
|
+
checkout = opts.pinned === void 0 ? await fetchDefaultBranch({ remote, dir: cacheDir, token: opts.readToken, repository, owned }) : await fetchPinnedCommit({ remote, dir: cacheDir, token: opts.readToken, repository, ...opts.pinned, owned });
|
|
398
|
+
} finally {
|
|
399
|
+
release?.();
|
|
400
|
+
}
|
|
381
401
|
const location = locateRecipe(checkout.dir);
|
|
382
402
|
const recipe = readRecipe(checkout.dir, location);
|
|
383
403
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-IEPKZPTP.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-GOMVXG4D.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { defaultFetch } from './chunk-VPNDUGQ3.js';
|
|
@@ -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-L45C5IR6.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-L45C5IR6.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-7L2MVCO5.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
563
563
|
return await linkSession(opts);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
if (opts.logFailures) {
|
|
566
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-G2YCUNJB.js');
|
|
567
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
568
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
569
569
|
}
|
|
@@ -8,7 +8,7 @@ import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage
|
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
9
|
import { signerFor, signRunnerRequest } from './chunk-5SQI5K2Y.js';
|
|
10
10
|
import { SCRUB_ENV_VARIABLE } from './chunk-UKM7MOUE.js';
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-PZITUESA.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-RNCCRUT5.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-HLBZS2HU.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-4M7N6DKZ.js';
|
|
6
6
|
import { autoConnect } from './chunk-HZPWVFJX.js';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { RemovedTargetError, removedTargetError } from './chunk-5JV7GPX4.js';
|
|
4
4
|
import { removeRetiredSkills } from './chunk-X52QSY5J.js';
|
|
5
|
+
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
5
6
|
import { defaultFetch, resolveGatewayCredentials } from './chunk-VPNDUGQ3.js';
|
|
6
7
|
import { withTokenHeader } from './chunk-UKM7MOUE.js';
|
|
7
8
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
@@ -114,6 +115,7 @@ async function fetchControlPlaneCommit(input) {
|
|
|
114
115
|
const refusalWaits = token === void 0 ? [] : policy.refusedToken?.waitsMs ?? [];
|
|
115
116
|
let refusals = 0;
|
|
116
117
|
for (let fetches = 1; ; fetches++) {
|
|
118
|
+
if (policy.ownedCache === true) removeLeftoverGitLocks(cacheRepoDir);
|
|
117
119
|
const result = git(["fetch", "--depth", "1", remoteUrl, `+${sha}:${localRef}`], {
|
|
118
120
|
cwd: cacheRepoDir,
|
|
119
121
|
timeoutMs: policy.timeoutMs,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-LL35DTES.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { detectActiveSession } from './chunk-4M7N6DKZ.js';
|
|
7
7
|
import { autoConnect } from './chunk-HZPWVFJX.js';
|
|
@@ -8,20 +8,20 @@ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, i
|
|
|
8
8
|
import { upgradedStarterText } from './chunk-RFWX5IAJ.js';
|
|
9
9
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-WASMQJFL.js';
|
|
10
10
|
import { writeDockerClientConfig } from './chunk-BILJTMNX.js';
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
11
|
+
import { senderPidfile } from './chunk-PWR4JST6.js';
|
|
12
|
+
import { installScrubContext } from './chunk-HLBZS2HU.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
14
14
|
import { runnerImageVersion } from './chunk-ABPJ4DTO.js';
|
|
15
15
|
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-WVTIKTAV.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-DMW67NYW.js';
|
|
18
18
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-AHNHV6XY.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
21
|
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-HAS7Z5X7.js';
|
|
22
22
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-N6XYRWPO.js';
|
|
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-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
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-YGJHFHRV.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-GOMVXG4D.js';
|
|
25
25
|
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, 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-2I6SZBRS.js';
|
|
26
26
|
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-S572SDVO.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-4FA5VSES.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-HLBZS2HU.js';
|
|
4
|
+
import { spoolDir } from './chunk-PZITUESA.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
6
|
import { sessionFolderIn, legacyAgent } from './chunk-QJPR3ZHI.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -882,7 +882,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
882
882
|
cleanupEarlierCopies(dirs);
|
|
883
883
|
}
|
|
884
884
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
885
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
885
|
+
const { governanceOf } = await import('./control-plane-launch-7U45HQKQ.js');
|
|
886
886
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
887
887
|
recordMissingContext(dirs, sessionId, home);
|
|
888
888
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -6,7 +6,7 @@ import { installStarterPack } from './chunk-PUWASVZT.js';
|
|
|
6
6
|
import { listWithAnd } from './chunk-NAN54JQN.js';
|
|
7
7
|
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-YXT3MVNP.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-LZCYMGSA.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { linkedAgentsPath } from './chunk-F4W3VWMT.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-PSAULO23.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-LIHYCAXQ.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-3EJGM5IH.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-GOMVXG4D.js';
|
|
8
8
|
import { keyRunnerFactory } from './chunk-2I6SZBRS.js';
|
|
9
9
|
import { signerFor } from './chunk-5SQI5K2Y.js';
|
|
10
10
|
import { pidFilePath } from './chunk-ZETBXFEA.js';
|
|
@@ -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-PSAULO23.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ABPJ4DTO.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-GOMVXG4D.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-LZCYMGSA.js';
|
|
6
6
|
import { buildRefusalReason } from './chunk-5JV7GPX4.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-QCLROM67.js';
|
|
8
8
|
import { signingFetchFor } from './chunk-VPNDUGQ3.js';
|
|
@@ -337,7 +337,7 @@ function tokenRefusedReason(err, repository) {
|
|
|
337
337
|
}
|
|
338
338
|
var DESIGNATION_LOOKUP = { timeoutMs: 1e4, attempts: 2 };
|
|
339
339
|
function buildFetch(reuseCached) {
|
|
340
|
-
return { timeoutMs: 3e4, attempts: 2, reuseCached, refusedToken: newTokenRetry };
|
|
340
|
+
return { timeoutMs: 3e4, attempts: 2, reuseCached, refusedToken: newTokenRetry, ownedCache: true };
|
|
341
341
|
}
|
|
342
342
|
function credentialName(tokenRepository) {
|
|
343
343
|
return tokenRepository === void 0 ? "the host's git login" : "the token the gateway issued";
|