@outerlayer/cli 0.35.0-next.20261030105600 → 0.35.0-next.20261030155846
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-G445QZEM.js → agent-setup-346QMQY6.js} +5 -5
- package/dist/{build-MXJK46WR.js → build-HHBTSTE4.js} +6 -6
- package/dist/{build-disk-7VCUIOYV.js → build-disk-R6OH6JL5.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-R4IJR7FU.js → builder-DL6NSVAU.js} +4 -4
- package/dist/{caller-D5IPBPRD.js → caller-Q44OIVRR.js} +7 -7
- package/dist/{check-QDYMMOSL.js → check-W4LSRCMV.js} +35 -34
- package/dist/{chunk-PPZ47OB6.js → chunk-3L7OHRDV.js} +1 -1
- package/dist/{chunk-XU5BNWX7.js → chunk-4DJZSNVT.js} +1 -1
- package/dist/{chunk-WXUG6UAF.js → chunk-4PW2DKHE.js} +315 -27
- package/dist/{chunk-VNHBDHX7.js → chunk-7J7HRYZ3.js} +1 -1
- package/dist/{chunk-7KMTCVXQ.js → chunk-7KAWBQ7V.js} +8 -4
- package/dist/{chunk-PILW3YP4.js → chunk-7TTYUY2V.js} +1 -1
- package/dist/{chunk-ZI7JENTB.js → chunk-7Y5VW4JG.js} +1 -1
- package/dist/{chunk-RO2XIOEN.js → chunk-ABGJ67PH.js} +10 -6
- package/dist/{chunk-7R655ODT.js → chunk-AF6DQJ5W.js} +1 -1
- package/dist/{chunk-SQGD4LYW.js → chunk-ALEUIS35.js} +1 -1
- package/dist/{chunk-DFGQM24P.js → chunk-AZJCSBRV.js} +87 -28
- package/dist/{chunk-QV3QP37Q.js → chunk-BNFFQC3M.js} +7 -7
- package/dist/{chunk-CANPD2V3.js → chunk-CPIYKBQ2.js} +4 -4
- package/dist/{chunk-PBAGWT2M.js → chunk-DH6BDQM4.js} +257 -95
- package/dist/{chunk-LNFQ5NOF.js → chunk-DOYLWBJJ.js} +3 -3
- package/dist/{chunk-ZH22PFZM.js → chunk-EK2FNOCD.js} +2 -2
- package/dist/{chunk-SHPCVBT3.js → chunk-EZRAR5YG.js} +1 -1
- package/dist/{chunk-PAGH2XKJ.js → chunk-FKLGX72N.js} +6 -6
- package/dist/{chunk-EDBLOBUB.js → chunk-FW3ZQKPY.js} +4 -4
- package/dist/{chunk-VAP56OP7.js → chunk-G2HRULTO.js} +2 -2
- package/dist/{chunk-LBYP6CPV.js → chunk-GGI3J7WS.js} +103 -22
- package/dist/{chunk-TYRKGKMX.js → chunk-HTQBIXE7.js} +2 -2
- package/dist/{chunk-CPWSPEP5.js → chunk-K3Z4Y6VU.js} +3 -3
- package/dist/{chunk-QI3AZT5E.js → chunk-K5EOLRGJ.js} +3 -3
- package/dist/{chunk-LW2A24IA.js → chunk-LGV5N5DG.js} +1 -1
- package/dist/{chunk-GC4U7WQV.js → chunk-LXAYOMSX.js} +6 -6
- package/dist/{chunk-EBFU4YCI.js → chunk-MCMDEEXB.js} +3 -3
- package/dist/{receive-files-T2BIUBQL.js → chunk-NN33FYXG.js} +0 -1
- package/dist/{chunk-Z7JFM5LP.js → chunk-ODX2XCL3.js} +3 -3
- package/dist/{chunk-SOBWIJDO.js → chunk-OS73XDJ7.js} +5 -5
- package/dist/{chunk-3JMDMXJO.js → chunk-P24VR4H3.js} +2 -2
- package/dist/{chunk-6IIP4KMY.js → chunk-P4PVRDVY.js} +3 -3
- package/dist/{chunk-L5GF2A43.js → chunk-P5CXB7ZT.js} +3 -3
- package/dist/{chunk-2F43WNKI.js → chunk-RIHB3HA2.js} +3 -3
- package/dist/{chunk-FTBBADQG.js → chunk-RKDOKIIK.js} +2 -2
- package/dist/{chunk-B5HTR43X.js → chunk-RLFVKOEI.js} +3 -3
- package/dist/{chunk-TMIJHMEN.js → chunk-RS2RFWIK.js} +1 -1
- package/dist/{chunk-FQVTJ4B3.js → chunk-SEY2HTZO.js} +7 -7
- package/dist/{chunk-HXCUMPPY.js → chunk-SUVWQPOG.js} +3 -3
- package/dist/{chunk-POZ65DAI.js → chunk-USR45QSV.js} +1 -1
- package/dist/{chunk-3AYPAQNQ.js → chunk-UVQ5C3UP.js} +1 -1
- package/dist/{chunk-NQ7R5AW5.js → chunk-VQCUADLI.js} +3 -3
- package/dist/{chunk-LKUDG3CH.js → chunk-VRNAM7WM.js} +10 -10
- package/dist/{chunk-AUVJMR3P.js → chunk-WAZJPDR2.js} +1 -1
- package/dist/{chunk-YQHUCOUL.js → chunk-WT7J2627.js} +4 -1
- package/dist/{chunk-EK7MQ56V.js → chunk-WYGAQVBU.js} +1 -1
- package/dist/{chunk-BITJMQJ2.js → chunk-WYJUQGCB.js} +3 -3
- package/dist/{chunk-GBMTKV5B.js → chunk-YQHEJ5SV.js} +1 -1
- package/dist/{claude-launcher-VA3OAA5V.js → claude-launcher-HREPADCN.js} +97 -9
- package/dist/{cli-IEJWJDVU.js → cli-KQUVZRRG.js} +114 -113
- package/dist/{command-HSI2RX4D.js → command-OHJUJ2WX.js} +24 -23
- package/dist/{config-ZHLG4LA4.js → config-EYFLM4WT.js} +6 -6
- package/dist/{connect-cmd-NDWWTEHW.js → connect-cmd-REJ5FEC6.js} +5 -5
- package/dist/{container-start-Z7C67PBJ.js → container-start-KG3ZLJWU.js} +27 -26
- package/dist/{context-show-cmd-HLEHQJTV.js → context-show-cmd-XT3QP5OR.js} +6 -6
- package/dist/{control-plane-launch-X2QXGPFW.js → control-plane-launch-PCGH76P5.js} +4 -4
- package/dist/{demo-voice-cmd-NZR2MAUZ.js → demo-voice-cmd-2QE7SQRC.js} +11 -11
- package/dist/{dist-RR6YVPSF.js → dist-BARPQSHD.js} +1 -1
- package/dist/{docker-GVIT4XAC.js → docker-3UKTW4GR.js} +4 -4
- package/dist/{doctor-33W5WXME.js → doctor-5HY3JA5Y.js} +24 -23
- package/dist/{emit-artifact-cmd-72V5FRE3.js → emit-artifact-cmd-26PJDTFU.js} +10 -10
- package/dist/{emit-criteria-cmd-HIE6JLCO.js → emit-criteria-cmd-6YTFXO3L.js} +7 -7
- package/dist/{emit-demo-cmd-JL4MAXVC.js → emit-demo-cmd-OQ7UDDRG.js} +11 -11
- package/dist/{emit-finding-cmd-3HZBWWP7.js → emit-finding-cmd-NO3FSRHT.js} +7 -7
- package/dist/{emit-result-cmd-YIPXXWII.js → emit-result-cmd-7MSUTXG6.js} +9 -9
- package/dist/{emit-step-cmd-QQYPX7EF.js → emit-step-cmd-7PFO7XVA.js} +7 -7
- package/dist/{find-unit-L6IH3X2U.js → find-unit-3MED6CPQ.js} +8 -8
- package/dist/{findings-cmd-CPNMM5CJ.js → findings-cmd-SWAPQUFT.js} +7 -7
- package/dist/{fleet-readiness-ZQOFJZ5B.js → fleet-readiness-5RMWZH4V.js} +4 -4
- package/dist/{governing-source-AXTXU5ZB.js → governing-source-INXQEK24.js} +9 -9
- package/dist/{hook-fast-OPHM3MRK.js → hook-fast-2KVZZRJN.js} +1 -1
- package/dist/{host-checks-PDTWZ637.js → host-checks-RCWXCCW2.js} +25 -24
- package/dist/{pending-2VIIFAP4.js → host-key-O4DFMOSV.js} +2 -2
- package/dist/{image-tag-JWATDMIZ.js → image-tag-WBD57QBN.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{init-Y5A6PZDX.js → init-52F2M54W.js} +20 -19
- package/dist/{init-EUQHMZQX.js → init-U5XUDKE7.js} +20 -19
- package/dist/{init-cmd-HLBC4DOD.js → init-cmd-WYLANAD5.js} +10 -10
- package/dist/{init-update-GFXITSTA.js → init-update-Z2T5J3Z2.js} +9 -9
- package/dist/{install-cmd-ZEFBJH24.js → install-cmd-JKPXIOEY.js} +4 -4
- package/dist/{logs-3YRC7HRA.js → logs-FEITSC2V.js} +1 -1
- package/dist/{loop-GR24EEVA.js → loop-WJBFH6XU.js} +34 -33
- package/dist/{machine-B333YLJH.js → machine-KUUTBDAT.js} +20 -19
- package/dist/{mcp-serve-cmd-PKXIHUOX.js → mcp-serve-cmd-ZINYSLY6.js} +3 -3
- package/dist/{paths-7PC3K7C3.js → paths-XEYE7OZ2.js} +1 -1
- package/dist/{host-key-Q5DEAP3Q.js → pending-D2NNV54J.js} +2 -2
- package/dist/{pidfile-KQ2EJABZ.js → pidfile-FLFVRKVW.js} +2 -2
- package/dist/receive-files-5MBUXAE5.js +6 -0
- package/dist/{record-IHEF6C33.js → record-JMZOXD4R.js} +2 -2
- package/dist/{runner-env-KGX7NFHP.js → runner-env-2NVOHTRC.js} +8 -8
- package/dist/{runner-identity-UOKEHVQQ.js → runner-identity-T6YPTHOH.js} +4 -4
- package/dist/{runner-key-QR6OQ7YJ.js → runner-key-WPQGF2L7.js} +20 -19
- package/dist/{session-sender-5DTNDRJY.js → session-sender-ADHV7WZ6.js} +10 -10
- package/dist/{spec-cmd-PUZD5BBF.js → spec-cmd-OUEKA6X3.js} +8 -8
- package/dist/{state-FJPSFOID.js → state-UWIM42JH.js} +2 -2
- package/dist/{status-5KWZOEOI.js → status-2JRATV66.js} +25 -24
- package/dist/{sync-cmd-45QEXKDM.js → sync-cmd-IEPWMYWY.js} +9 -9
- package/dist/{update-steps-EP5LFXAG.js → update-steps-3SRL32IV.js} +26 -25
- package/dist/{watch-L5MUTCM2.js → watch-3K3IB443.js} +9 -9
- package/dist/{work-claim-cmd-GJ2LSVOI.js → work-claim-cmd-5ACB2ZWP.js} +13 -13
- package/dist/{work-cmd-DGRY7K5A.js → work-cmd-B6HZW26B.js} +7 -7
- package/dist/{work-comment-cmd-CLHJKFBW.js → work-comment-cmd-MBGBBR7V.js} +8 -8
- package/dist/{work-demo-cmd-6BM56RVQ.js → work-demo-cmd-RLOS55MP.js} +7 -7
- package/dist/{work-logs-cmd-GXCMJFFO.js → work-logs-cmd-VUICWCEO.js} +7 -7
- package/dist/{work-open-pr-cmd-IGUKSZGC.js → work-open-pr-cmd-CYXICEJE.js} +8 -8
- package/dist/{work-pr-cmd-BQBQORGW.js → work-pr-cmd-3HSFJO65.js} +7 -7
- package/dist/{work-proofs-cmd-PVNHUJPC.js → work-proofs-cmd-NJ4YYQ2V.js} +8 -8
- package/dist/{work-proofs-record-BYRHHFK2.js → work-proofs-record-NN7XB2QC.js} +14 -14
- package/dist/{work-stop-cmd-EEETWUSK.js → work-stop-cmd-QXZSZLEY.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +18 -16
- package/skill-pack/maintained/outerlayer-amend/references/check-items.md +34 -0
- package/skill-pack/maintained/outerlayer-amend/references/earlier-run.md +18 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-TV5ITSVY.js';
|
|
4
4
|
import { universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-7SO2VHTQ.js';
|
|
5
|
-
import { ensureHostKey } from './chunk-
|
|
6
|
-
import { compareVersions } from './chunk-
|
|
7
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
5
|
+
import { ensureHostKey } from './chunk-4DJZSNVT.js';
|
|
6
|
+
import { compareVersions } from './chunk-DH6BDQM4.js';
|
|
7
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-WT7J2627.js';
|
|
8
8
|
import { CLAUDE_PORT, BUILD_HOME, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-GANAOCHR.js';
|
|
9
9
|
import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
10
10
|
import { createHash } from 'crypto';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-DOYLWBJJ.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-WT7J2627.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-WT7J2627.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
5
|
+
import { workPageUrl } from './chunk-HTQBIXE7.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { sanitizeTerminal } from './chunk-XSX42Q2H.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-4DJZSNVT.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
12
12
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
|
|
@@ -473,7 +473,7 @@ async function runWorkLinkSession(opts) {
|
|
|
473
473
|
return await linkSession(opts);
|
|
474
474
|
} catch (err) {
|
|
475
475
|
if (opts.logFailures) {
|
|
476
|
-
const { logHookError } = await import('./hook-fast-
|
|
476
|
+
const { logHookError } = await import('./hook-fast-2KVZZRJN.js');
|
|
477
477
|
const reason = err instanceof Error ? err.message : String(err);
|
|
478
478
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
479
479
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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-CPIYKBQ2.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-7SO2VHTQ.js';
|
|
7
7
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
8
|
-
import { autoConnect } from './chunk-
|
|
8
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
12
12
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
13
13
|
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-N2XW4NYY.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-ODX2XCL3.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-WT7J2627.js';
|
|
5
5
|
import { claudeEnvPath, withoutCredentialLines, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
@@ -5,32 +5,32 @@ import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk
|
|
|
5
5
|
import { HELPER_PATH, DOCKERD_LOG, HELPER_RECORD } from './chunk-H2GESWLW.js';
|
|
6
6
|
import { writeDockerClientConfig } from './chunk-MKSZHT6S.js';
|
|
7
7
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
8
|
-
import { senderPidfile } from './chunk-
|
|
9
|
-
import { installScrubContext } from './chunk-
|
|
8
|
+
import { senderPidfile } from './chunk-SUVWQPOG.js';
|
|
9
|
+
import { installScrubContext } from './chunk-ABGJ67PH.js';
|
|
10
10
|
import { upgradedStarterText } from './chunk-Q7ZHL6FY.js';
|
|
11
|
-
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, firstLine, provisionWithFreshFallback, itemTag, hasClaudeCredential, AssetError, obtainImage, taggedLog, planSavedState, clockOf, savedStateBase, savedStatesDir, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, agentUidOf, userIdChangedReason, runBuildSteps, setupInputFor, runtimeStepInput, settleFailedSteps, keepRuntimeStep, keepMissingSetupScripts, createContainerRuntime, containerSenderCommand, hostCommandEnvironment, execArgv, signalInContainer, startHostServices, LEASE_SECONDS, itemScope, managedBuildSettingsFor, stopContainer, cleanupContainer, recordProofsInContainer, PROOFS_LOG, outOfMemoryReason, closeHostBuild, dropManagedClaudeKey, dropManagedBuildSettings, startCheckContainer, ranRuntimeStep, provisionRuntimes, lifecycleSteps, lifecycleFailureReason, runSetupScripts, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, syncInContainer, copyTranscriptsFromContainer, senderAliveScript, discardUnusableState, MANAGED_UNJAILED_REASON, uidFromProbe, saveAndPrune, managedMachineLimits, withFactoryHosts, helperFirecrackerNote, said, managedClaudeKeyValuesFor, managedBuildSettingValuesFor, managedClaudeKeyValues, managedBuildSettingValues, stopJailed, deleteBuildDisk, RECORD_PROOFS_ARGV, managedClaudeKeyFor, ROOT_DISK_ID_PREFIX, copyTranscripts, writeRecord, containerJudgeEnvironment, deleteRecord, senderSignalScript, copyJudgeTree } from './chunk-
|
|
12
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
11
|
+
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, firstLine, provisionWithFreshFallback, itemTag, hasClaudeCredential, AssetError, obtainImage, taggedLog, planSavedState, clockOf, savedStateBase, savedStatesDir, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, agentUidOf, userIdChangedReason, runBuildSteps, setupInputFor, runtimeStepInput, settleFailedSteps, keepRuntimeStep, keepMissingSetupScripts, restoreSession, packKeptSession, createContainerRuntime, containerSenderCommand, hostCommandEnvironment, execArgv, signalInContainer, startHostServices, LEASE_SECONDS, itemScope, managedBuildSettingsFor, stopContainer, cleanupContainer, recordProofsInContainer, PROOFS_LOG, outOfMemoryReason, closeHostBuild, dropManagedClaudeKey, dropManagedBuildSettings, startCheckContainer, ranRuntimeStep, provisionRuntimes, lifecycleSteps, lifecycleFailureReason, runSetupScripts, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, syncInContainer, copyTranscriptsFromContainer, senderAliveScript, discardUnusableState, MANAGED_UNJAILED_REASON, uidFromProbe, saveAndPrune, managedMachineLimits, withFactoryHosts, helperFirecrackerNote, said, managedClaudeKeyValuesFor, managedBuildSettingValuesFor, managedClaudeKeyValues, managedBuildSettingValues, readResumeRecords, copyOutSession, keepSession, keptSessionDir, stopJailed, deleteBuildDisk, RECORD_PROOFS_ARGV, managedClaudeKeyFor, ROOT_DISK_ID_PREFIX, copyTranscripts, writeRecord, ensureContainerRunning, sessionGuestOfContainer, containerJudgeEnvironment, deleteRecord, senderSignalScript, copyJudgeTree } from './chunk-4PW2DKHE.js';
|
|
12
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-VQCUADLI.js';
|
|
13
13
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
14
14
|
import { waitForAgent, vmExecArgs } from './chunk-4PH4DVV4.js';
|
|
15
15
|
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-UZGQT6OF.js';
|
|
16
|
-
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-
|
|
17
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
18
|
-
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, optionalEgress } from './chunk-
|
|
19
|
-
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-
|
|
20
|
-
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, parseSize, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-
|
|
16
|
+
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-OS73XDJ7.js';
|
|
17
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-P24VR4H3.js';
|
|
18
|
+
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, optionalEgress } from './chunk-RKDOKIIK.js';
|
|
19
|
+
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-EK2FNOCD.js';
|
|
20
|
+
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, parseSize, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-DOYLWBJJ.js';
|
|
21
21
|
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-7SO2VHTQ.js';
|
|
22
|
-
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-
|
|
22
|
+
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-FKLGX72N.js';
|
|
23
23
|
import { planArtifactUpload } from './chunk-XSX42Q2H.js';
|
|
24
24
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
25
|
-
import { signerFor } from './chunk-
|
|
25
|
+
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
26
26
|
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-MGF4254K.js';
|
|
27
|
-
import { scrubText } from './chunk-
|
|
27
|
+
import { scrubText } from './chunk-DH6BDQM4.js';
|
|
28
28
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
29
29
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
30
30
|
import { parsePolicy } from './chunk-2PMJ7TQR.js';
|
|
31
31
|
import { CheckItemsSchema } from './chunk-N2XW4NYY.js';
|
|
32
32
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
33
|
-
import { RUNNER_FILE_MODE, runnerDir, buildDir, orgStoreIn, vsockPath, jobConsolePath, orgHomeDir } from './chunk-
|
|
33
|
+
import { RUNNER_FILE_MODE, runnerDir, buildDir, orgStoreIn, vsockPath, jobConsolePath, orgHomeDir } from './chunk-WT7J2627.js';
|
|
34
34
|
import { JOB_MOUNT, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, claudeCredential, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, fdName, BUILD_HOME, CLAUDE_CREDENTIAL_VARIABLES, currentClaudeCredential, removedClaudeCredentialValues, managedClaudeCredential, checkEnvironment, EVAL_INPUT_DIR, withMiseVariables } from './chunk-GANAOCHR.js';
|
|
35
35
|
import { RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON } from './chunk-MESOOLF4.js';
|
|
36
36
|
import { randomBytes, createHash } from 'crypto';
|
|
@@ -832,7 +832,7 @@ function agentVersionOf(toolsJson) {
|
|
|
832
832
|
}
|
|
833
833
|
function vmExecFor(input, argv) {
|
|
834
834
|
const state = input.job.microvm;
|
|
835
|
-
const
|
|
835
|
+
const built = buildEnvironment({
|
|
836
836
|
config: claimCalls(input.config, input.job),
|
|
837
837
|
item: input.job.item,
|
|
838
838
|
itemKey: input.job.itemKey,
|
|
@@ -848,6 +848,7 @@ function vmExecFor(input, argv) {
|
|
|
848
848
|
identity: input.job.commitIdentity,
|
|
849
849
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
850
850
|
});
|
|
851
|
+
const env = withExtraEnv(built, input.extraEnv);
|
|
851
852
|
const options = {
|
|
852
853
|
socket: state.vsockPath,
|
|
853
854
|
user: state.agentUser ?? ADDED_USER,
|
|
@@ -858,13 +859,16 @@ function vmExecFor(input, argv) {
|
|
|
858
859
|
};
|
|
859
860
|
return { options, env: { ...childEnvironment(input.runtime.hostEnv), ...env.passed } };
|
|
860
861
|
}
|
|
862
|
+
function withExtraEnv(env, extra) {
|
|
863
|
+
return { ...env, literals: { ...env.literals, ...extra } };
|
|
864
|
+
}
|
|
861
865
|
function microVmCommandLine(input) {
|
|
862
866
|
const { options, env } = vmExecFor(input, ["/bin/sh", "-c", commandWithShim(input.job, input.cmdline)]);
|
|
863
867
|
return { line: [process.execPath, input.cli, "vm-exec", ...vmExecArgs(options)].map(shellQuote).join(" "), options, env };
|
|
864
868
|
}
|
|
865
869
|
async function startMicroVmCommand(input) {
|
|
866
870
|
const state = input.job.microvm;
|
|
867
|
-
const env = buildEnvironment({
|
|
871
|
+
const env = withExtraEnv(buildEnvironment({
|
|
868
872
|
config: claimCalls(input.config, input.job),
|
|
869
873
|
item: input.job.item,
|
|
870
874
|
itemKey: input.job.itemKey,
|
|
@@ -879,7 +883,7 @@ async function startMicroVmCommand(input) {
|
|
|
879
883
|
builtIns: state.builtIns === true,
|
|
880
884
|
identity: input.job.commitIdentity,
|
|
881
885
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
882
|
-
});
|
|
886
|
+
}), input.extraEnv);
|
|
883
887
|
const started = await input.runtime.vm.exec(state.vsockPath, {
|
|
884
888
|
argv: ["/bin/sh", "-c", commandWithShim(input.job, input.cmdline)],
|
|
885
889
|
user: state.agentUser ?? ADDED_USER,
|
|
@@ -1341,6 +1345,17 @@ async function stopOrphanedMicroVms(input) {
|
|
|
1341
1345
|
}
|
|
1342
1346
|
return stopped;
|
|
1343
1347
|
}
|
|
1348
|
+
function sessionGuestOfMicroVm(runtime, state, as) {
|
|
1349
|
+
const request = (argv) => ({ argv, user: as === "root" ? "root" : state.agentUser ?? ADDED_USER, cwd: "/", env: { PATH: ROOT_PATH } });
|
|
1350
|
+
return {
|
|
1351
|
+
run: (argv) => runtime.vm.exec(state.vsockPath, request(argv)),
|
|
1352
|
+
stream: (argv, io) => runtime.vm.execStream(state.vsockPath, request(argv), io)
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
async function restoreSessionIntoMicroVm(runtime, state, keptDir, meta) {
|
|
1356
|
+
const restored = await restoreSession({ guest: sessionGuestOfMicroVm(runtime, state, "agent"), tar: packKeptSession(keptDir, meta) });
|
|
1357
|
+
if (!restored.ok) throw new Error(restored.reason);
|
|
1358
|
+
}
|
|
1344
1359
|
|
|
1345
1360
|
// src/runner/verdict.ts
|
|
1346
1361
|
var VERDICT_SETTLE_MS = 5 * 6e4;
|
|
@@ -1831,6 +1846,61 @@ async function provisionProcess(input) {
|
|
|
1831
1846
|
function cleanupProcess(runtime, state) {
|
|
1832
1847
|
return closeHostBuild(runtime, state);
|
|
1833
1848
|
}
|
|
1849
|
+
var SESSION_TAR = "session.tar";
|
|
1850
|
+
async function guestOf(job, runtime) {
|
|
1851
|
+
if (job.microvm !== void 0) {
|
|
1852
|
+
if (!vmAlive(runtime, job.microvm)) return { reason: "the build's microVM is gone" };
|
|
1853
|
+
return { guest: sessionGuestOfMicroVm(runtime, job.microvm, "root") };
|
|
1854
|
+
}
|
|
1855
|
+
if (job.container !== void 0) {
|
|
1856
|
+
const why = await ensureContainerRunning(runtime, job.container);
|
|
1857
|
+
return why === void 0 ? { guest: sessionGuestOfContainer(runtime, job.container) } : { reason: why };
|
|
1858
|
+
}
|
|
1859
|
+
return { reason: "the build is not a container or microVM build" };
|
|
1860
|
+
}
|
|
1861
|
+
async function keepEndedSession(input) {
|
|
1862
|
+
const { job, log, tag } = input;
|
|
1863
|
+
if (job.sessionId === void 0 || job.workItemId === void 0 || job.sessionKept === true) return false;
|
|
1864
|
+
if (job.microvm === void 0 && job.container === void 0) return false;
|
|
1865
|
+
const found = await guestOf(job, input.runtime);
|
|
1866
|
+
if ("reason" in found) {
|
|
1867
|
+
log.error(`${tag} the session was not kept: ${found.reason} \xB7 continuing`);
|
|
1868
|
+
return false;
|
|
1869
|
+
}
|
|
1870
|
+
let changed = false;
|
|
1871
|
+
const records = await readResumeRecords(found.guest);
|
|
1872
|
+
if (records.unread !== void 0) log.error(`${tag} the launcher's records could not be read, so a fallback to a fresh session is not reported: ${records.unread} \xB7 continuing`);
|
|
1873
|
+
if (records.launchedAt !== void 0) {
|
|
1874
|
+
job.sessionLaunchedAt = records.launchedAt;
|
|
1875
|
+
changed = true;
|
|
1876
|
+
}
|
|
1877
|
+
if (records.failed && job.resume?.resumed === true) {
|
|
1878
|
+
job.resume = { resumed: false, reason: "session_not_loaded" };
|
|
1879
|
+
changed = true;
|
|
1880
|
+
log.line(`${tag} agent job started fresh because the saved session could not be loaded`);
|
|
1881
|
+
}
|
|
1882
|
+
const tarPath = join(input.jobDirPath, SESSION_TAR);
|
|
1883
|
+
try {
|
|
1884
|
+
const copied = await copyOutSession({ guest: found.guest, sessionId: job.sessionId, tarPath });
|
|
1885
|
+
if (!copied.ok) {
|
|
1886
|
+
log.error(`${tag} the session was not kept: ${copied.reason} \xB7 continuing`);
|
|
1887
|
+
return changed;
|
|
1888
|
+
}
|
|
1889
|
+
await keepSession({
|
|
1890
|
+
dir: keptSessionDir(input.configPath, job.organizationId, job.workItemId),
|
|
1891
|
+
meta: { sessionId: job.sessionId, claimId: job.claimId, queue: job.queue, keptAt: input.now().toISOString() },
|
|
1892
|
+
tar: createReadStream(tarPath)
|
|
1893
|
+
});
|
|
1894
|
+
log.line(`${tag} session ${job.sessionId.slice(0, 8)} kept for the next agent job (${formatBytes(statSync(tarPath).size)})`);
|
|
1895
|
+
job.sessionKept = true;
|
|
1896
|
+
return true;
|
|
1897
|
+
} catch (err) {
|
|
1898
|
+
log.error(`${tag} the session was not kept: ${describeCallFailure(err)} \xB7 continuing`);
|
|
1899
|
+
return changed;
|
|
1900
|
+
} finally {
|
|
1901
|
+
rmSync(tarPath, { force: true });
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1834
1904
|
|
|
1835
1905
|
// src/runner/judge-verdict.ts
|
|
1836
1906
|
function firstLine2(text2) {
|
|
@@ -2646,12 +2716,12 @@ async function renewLease(config, item, fetchImpl) {
|
|
|
2646
2716
|
}
|
|
2647
2717
|
var ALREADY_RELEASED = "already released";
|
|
2648
2718
|
async function releaseLease(config, item, outcome, detail, fetchImpl) {
|
|
2649
|
-
const send = async (environment2, sent2, log2) => postJson(
|
|
2719
|
+
const send = async (environment2, sent2, log2, resume2) => postJson(
|
|
2650
2720
|
config.url,
|
|
2651
2721
|
`/v1/work-items/${item}/claim/release`,
|
|
2652
2722
|
config.apiKey,
|
|
2653
2723
|
config.appId,
|
|
2654
|
-
{ host: config.host, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, log: log2 },
|
|
2724
|
+
{ host: config.host, outcome: sent2, stage: detail.stage, exitCode: detail.exitCode, reason: detail.reason, environment: environment2, resume: resume2, log: log2 },
|
|
2655
2725
|
fetchImpl,
|
|
2656
2726
|
void 0,
|
|
2657
2727
|
await signerFor(config.configPath)
|
|
@@ -2659,16 +2729,19 @@ async function releaseLease(config, item, outcome, detail, fetchImpl) {
|
|
|
2659
2729
|
let environment = detail.environment;
|
|
2660
2730
|
let sent = outcome;
|
|
2661
2731
|
let log = detail.log;
|
|
2732
|
+
let resume = detail.resume;
|
|
2662
2733
|
let data;
|
|
2663
2734
|
for (; ; ) {
|
|
2664
2735
|
try {
|
|
2665
|
-
({ data } = await send(environment, sent, log));
|
|
2736
|
+
({ data } = await send(environment, sent, log, resume));
|
|
2666
2737
|
break;
|
|
2667
2738
|
} catch (err) {
|
|
2668
2739
|
if (!(err instanceof WorkCommandError) || err.status !== 400 || err.code !== "invalid_request_body") throw err;
|
|
2669
2740
|
const namesOutcome = /\boutcome\b/.test(err.message);
|
|
2670
2741
|
if (sent === "incomplete" && namesOutcome) {
|
|
2671
2742
|
sent = "ok";
|
|
2743
|
+
} else if (resume !== void 0 && /\bresume\b/.test(err.message)) {
|
|
2744
|
+
resume = void 0;
|
|
2672
2745
|
} else if (log !== void 0 && /\blog\b/.test(err.message)) {
|
|
2673
2746
|
log = void 0;
|
|
2674
2747
|
} else if (environment?.routes !== void 0) {
|
|
@@ -2866,6 +2939,14 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
2866
2939
|
if (job.pid !== void 0 && isGroupAlive(job.pid)) {
|
|
2867
2940
|
await stopProcessGroup(job.pid);
|
|
2868
2941
|
}
|
|
2942
|
+
const sessionRuntime = (build ?? vmBuild)?.runtime;
|
|
2943
|
+
if (sessionRuntime !== void 0) {
|
|
2944
|
+
if (!valuesNotHeld) {
|
|
2945
|
+
if (await keepEndedSession({ job, jobDirPath, runtime: sessionRuntime, configPath: config.configPath, log, tag, now })) writeJobFile(jobFilePath, job);
|
|
2946
|
+
} else if (job.sessionId !== void 0 && job.workItemId !== void 0 && job.sessionKept !== true) {
|
|
2947
|
+
log.error(`${tag} the session was not kept: ${VALUES_NOT_HELD} \xB7 continuing`);
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2869
2950
|
if (outcome !== void 0 && job.endStage === void 0) {
|
|
2870
2951
|
const staleTeardownStage = inTeardown(job);
|
|
2871
2952
|
job.endStage = ending?.stage ?? (staleTeardownStage ? job.exitCode !== void 0 ? "command" : void 0 : job.stage);
|
|
@@ -3186,7 +3267,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
3186
3267
|
const sentAtMs = now().getTime();
|
|
3187
3268
|
const runnerLog = valuesNotHeld ? `The runner sends no log for this attempt: ${VALUES_NOT_HELD}.
|
|
3188
3269
|
` : releaseLogFor(jobDirPath, job, config);
|
|
3189
|
-
const detail = outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, log: runnerLog };
|
|
3270
|
+
const detail = outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, log: runnerLog };
|
|
3190
3271
|
const release = await retrySend(() => releaseLease(claimCalls(config, job), claimItem(config, job), outcome, detail, deps.fetchImpl), {
|
|
3191
3272
|
now: deps.now,
|
|
3192
3273
|
sleep: deps.sleep
|
|
@@ -3257,7 +3338,7 @@ async function retryFailedReleases(jobsDirPath, config, deps) {
|
|
|
3257
3338
|
continue;
|
|
3258
3339
|
}
|
|
3259
3340
|
const runnerLog = readScrubbedReleaseLog(dirPath) ?? releaseLogFor(dirPath, job, config);
|
|
3260
|
-
const detail = job.outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, log: runnerLog };
|
|
3341
|
+
const detail = job.outcome === void 0 ? { log: runnerLog } : { stage: job.endStage, exitCode: job.endExitCode, reason: job.reason, environment: job.environment, resume: job.resume, log: runnerLog };
|
|
3261
3342
|
const release = await retrySend(() => releaseLease(claimCalls(config, job), claimItem(config, job), job.outcome, detail, deps.fetchImpl), {
|
|
3262
3343
|
now: deps.now,
|
|
3263
3344
|
sleep: deps.sleep
|
|
@@ -3821,4 +3902,4 @@ async function runHostChecks(input) {
|
|
|
3821
3902
|
}
|
|
3822
3903
|
}
|
|
3823
3904
|
|
|
3824
|
-
export { ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, RENEW_INTERVAL_SECONDS, appendCommandLog, checksIn, commandItems, commandLogOffset, deliverCommitHooks, describeHookEnd, finishJob, foldSample, hookLimitsFor, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isReadable, isTimedOut, isTracked, isUnfinished, jobEnv, judgeProbe, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, makeRecorder, microVmCommandLine, microVmOomKills, needsRenew, outcomeFromExitCode, probeCommand, probeMicroVmCommand, provisionMicroVm, provisionProcess, readCpuUsec, readDefinitions, readProvisionOut, recoverLostJobs, releaseLease, renewLease, restartSender, retryFailedReleases, runCommand, runHook, runHostChecks, sampleGuest, scrubReason, serveLease, setStage, startMicroVmCommand, startSender, stopOrphanedMicroVms, stripTerminalControls, testProofIn, timeoutAfter, unfinishedJobs, vmAlive, workdirProblem, writeGuestGhConfig };
|
|
3905
|
+
export { ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, RENEW_INTERVAL_SECONDS, appendCommandLog, checksIn, commandItems, commandLogOffset, deliverCommitHooks, describeHookEnd, finishJob, foldSample, hookLimitsFor, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isReadable, isTimedOut, isTracked, isUnfinished, jobEnv, judgeProbe, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, makeRecorder, microVmCommandLine, microVmOomKills, needsRenew, outcomeFromExitCode, probeCommand, probeMicroVmCommand, provisionMicroVm, provisionProcess, readCpuUsec, readDefinitions, readProvisionOut, recoverLostJobs, releaseLease, renewLease, restartSender, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, sampleGuest, scrubReason, serveLease, setStage, startMicroVmCommand, startSender, stopOrphanedMicroVms, stripTerminalControls, testProofIn, timeoutAfter, unfinishedJobs, vmAlive, workdirProblem, writeGuestGhConfig };
|
|
@@ -3,10 +3,10 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { DEFAULT_DASHBOARD } from './chunk-6YK3SXCW.js';
|
|
4
4
|
import { sanitizeTerminal } from './chunk-XSX42Q2H.js';
|
|
5
5
|
import { isAgentsMdLayout } from './chunk-TMFKZBOW.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { remoteLookupFailed } from './chunk-
|
|
9
|
+
import { remoteLookupFailed } from './chunk-DH6BDQM4.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { execFileSync } from 'child_process';
|
|
12
12
|
import { lstatSync } from 'fs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-4PW2DKHE.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-ODX2XCL3.js';
|
|
5
|
+
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-WT7J2627.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-YC5KTX7D.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-FKLGX72N.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-XSX42Q2H.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-RCWXCCW2.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-RCWXCCW2.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-NN7XB2QC.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { acquireSpoolLockAt } from './chunk-XSX42Q2H.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { StepNameSchema, StepBodySchema } from './chunk-N2XW4NYY.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-RKDOKIIK.js';
|
|
4
|
+
import { parseSize } from './chunk-DOYLWBJJ.js';
|
|
5
|
+
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-GANAOCHR.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
8
8
|
import { dirname, join } from 'path';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
6
|
-
import { signerFor } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-FKLGX72N.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-WYGAQVBU.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-YQHEJ5SV.js';
|
|
6
|
+
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
8
8
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
9
9
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-WT7J2627.js';
|
|
11
11
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
12
12
|
import { relative, join, dirname } from 'path';
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-RKDOKIIK.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-WT7J2627.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-DH6BDQM4.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-HTQBIXE7.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-7J7HRYZ3.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-AF6DQJ5W.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-WT7J2627.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-EK2FNOCD.js';
|
|
4
|
+
import { parseSize } from './chunk-DOYLWBJJ.js';
|
|
5
5
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GANAOCHR.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-GGI3J7WS.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-3UKTW4GR.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
5
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
6
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK, volumeBytes } from './chunk-
|
|
7
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-4PW2DKHE.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ODX2XCL3.js';
|
|
5
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-RKDOKIIK.js';
|
|
6
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK, volumeBytes } from './chunk-EK2FNOCD.js';
|
|
7
|
+
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-DOYLWBJJ.js';
|
|
8
8
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
9
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
10
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
+
import { getJson, WorkCommandError } from './chunk-FKLGX72N.js';
|
|
10
|
+
import { ensureHostKey } from './chunk-4DJZSNVT.js';
|
|
11
11
|
import { BUILD_SLICE_MEMORY_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, claudeCredentialVariablesSet, claudeCredential, claudeEnvPath, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
12
12
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
13
13
|
import { join, dirname } from 'path';
|