@outerlayer/cli 0.34.0-next.20261028010245 → 0.34.0-next.20261028122415
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-6FPE6EYN.js → agent-setup-LZ7PEM6A.js} +6 -6
- package/dist/{bridge-JGIHPGMY.js → bridge-4DFOWIY2.js} +2 -2
- package/dist/{build-AAQ4PVP2.js → build-VVZHFSZK.js} +8 -8
- package/dist/{build-disk-L7JRQA22.js → build-disk-QV4TO7HZ.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-LMLAVVVF.js → builder-6JLFMAGJ.js} +5 -5
- package/dist/{check-C7UKLYZQ.js → check-FWRVWOVY.js} +38 -38
- package/dist/{chunk-WEQMLC7P.js → chunk-265SXBQ5.js} +3 -3
- package/dist/{chunk-AJTGTSNA.js → chunk-2CW2QMSG.js} +1 -1
- package/dist/{chunk-AHWMY3MS.js → chunk-2LCNMAWP.js} +4 -4
- package/dist/{chunk-SWCOWG2C.js → chunk-3EU4MWCE.js} +3 -3
- package/dist/{chunk-L2OARQKP.js → chunk-4N7BQBO4.js} +28 -13
- package/dist/{chunk-6OLXDSQ6.js → chunk-5B6DLEVM.js} +1 -1
- package/dist/{chunk-QNF7LT7W.js → chunk-5VKSPEST.js} +3 -3
- package/dist/{chunk-3X6OSXSB.js → chunk-64LLUVJR.js} +1 -1
- package/dist/{chunk-WSVE5QGL.js → chunk-6CQXOTNL.js} +4 -4
- package/dist/{chunk-GJYGOFF3.js → chunk-72N7GOLM.js} +6 -6
- package/dist/{chunk-4A5OJOCR.js → chunk-7DHESPSV.js} +10 -10
- package/dist/{chunk-VB4QD4WN.js → chunk-7JBG43BX.js} +67 -25
- package/dist/{chunk-EGJY6MBC.js → chunk-7LKOOGSN.js} +2 -2
- package/dist/{chunk-KTVZ7TZY.js → chunk-7XZQTJOD.js} +1 -1
- package/dist/{chunk-A6PJSNP6.js → chunk-A2KLVZBU.js} +31 -29
- package/dist/{chunk-BQ4C47K2.js → chunk-AGNFPJSP.js} +5 -5
- package/dist/{chunk-JXY66VYX.js → chunk-AKQX462F.js} +3 -3
- package/dist/{chunk-5LUN7TTR.js → chunk-AVI3MGQO.js} +2 -2
- package/dist/{chunk-3XOLOV5A.js → chunk-AXKSVN4U.js} +4 -4
- package/dist/{work-proofs-record-LIQGUDWH.js → chunk-BEGMZKMG.js} +176 -497
- package/dist/{chunk-QJ2SNBHL.js → chunk-BUVDDPOM.js} +1 -1
- package/dist/{chunk-32FAPJFD.js → chunk-C2E4PWEN.js} +6 -6
- package/dist/{chunk-57WFXHCB.js → chunk-D7MWJM2G.js} +1 -1
- package/dist/{chunk-G4SOMWXL.js → chunk-DKIZDYUX.js} +1 -1
- package/dist/{chunk-I4YOWQH7.js → chunk-E3GX4WVJ.js} +1 -1
- package/dist/{chunk-F3BGTGQC.js → chunk-EXKOPZQV.js} +1 -1
- package/dist/{chunk-BTDBDTUY.js → chunk-GJHOU5V3.js} +3 -3
- package/dist/{chunk-D6SH7DWA.js → chunk-H5YUWLIY.js} +3 -3
- package/dist/{chunk-PAGB3DCI.js → chunk-IZKUPAXF.js} +1 -1
- package/dist/{chunk-GET5HKLM.js → chunk-JDQBJUXQ.js} +1 -1
- package/dist/{chunk-23XAA7YD.js → chunk-LEJWPGO7.js} +3 -3
- package/dist/{chunk-NBETYM32.js → chunk-N4KQMGEZ.js} +4 -4
- package/dist/{chunk-4J5GRWAY.js → chunk-N6V4ZHI7.js} +2 -2
- package/dist/{chunk-PHIQHIRJ.js → chunk-NPTEYMBW.js} +1 -1
- package/dist/{chunk-3E7QAXUW.js → chunk-OFKM35MX.js} +6 -6
- package/dist/{chunk-LBKCYEJT.js → chunk-ORENXMHA.js} +1 -1
- package/dist/{chunk-6Q7O4MRI.js → chunk-QGTJ5IJN.js} +1 -1
- package/dist/{chunk-5IUC2B6J.js → chunk-QTL7VZVF.js} +2 -2
- package/dist/{chunk-GXMMILQ4.js → chunk-QXAPVAPR.js} +3 -3
- package/dist/{chunk-6LS62EO4.js → chunk-S37IAT3A.js} +3 -3
- package/dist/{chunk-PPQTTJSW.js → chunk-SODV2YMW.js} +5 -5
- package/dist/{chunk-SYMBXSAT.js → chunk-SX3LYSWR.js} +3 -3
- package/dist/{chunk-77D5ENBA.js → chunk-TZXJSNN4.js} +1 -1
- package/dist/{chunk-HFMK2R7O.js → chunk-U3O7MULV.js} +20 -20
- package/dist/{chunk-GMEXR6PY.js → chunk-UDMFRKFJ.js} +6 -6
- package/dist/{chunk-NCKH3KCM.js → chunk-UKEIJKCH.js} +25 -12
- package/dist/{chunk-VKYU4HHW.js → chunk-VJQQVTCS.js} +1 -1
- package/dist/{chunk-UEDRRWZ3.js → chunk-XDCD4GD5.js} +3 -3
- package/dist/{chunk-PBI4CM4M.js → chunk-YGU43DH4.js} +57 -27
- package/dist/{chunk-NOEJGR4X.js → chunk-ZIXLG6EQ.js} +3 -3
- package/dist/{claude-launcher-GGZEWVYJ.js → claude-launcher-XX2MLBDW.js} +1 -1
- package/dist/{cli-IG52447Q.js → cli-K7AWWU6C.js} +112 -112
- package/dist/{command-NSTOWAZ6.js → command-GJKJ5WT4.js} +25 -25
- package/dist/{config-YPUOOZB6.js → config-AB5Y73BU.js} +7 -7
- package/dist/{connect-cmd-RPEEANNE.js → connect-cmd-FOD7PKVW.js} +6 -6
- package/dist/{container-start-OOBTGHWF.js → container-start-XGKAKLUD.js} +32 -32
- package/dist/{context-show-cmd-R5WCECOT.js → context-show-cmd-A226Q6K5.js} +7 -7
- package/dist/{control-plane-launch-55CJGYBK.js → control-plane-launch-RJSAIFEP.js} +5 -5
- package/dist/{demo-record-cmd-SFOWQPL7.js → demo-record-cmd-KM2UPWPL.js} +2 -2
- package/dist/{demo-voice-cmd-ZOBRVHOK.js → demo-voice-cmd-W4NYPCVL.js} +12 -12
- package/dist/{dist-BUSLJNSZ.js → dist-ZW7I72SD.js} +1 -1
- package/dist/{docker-VPJW5LXB.js → docker-OQP6NU7P.js} +5 -5
- package/dist/{doctor-O2EJAPZB.js → doctor-OXMOYIKK.js} +25 -25
- package/dist/{emit-artifact-cmd-HBFYBXJR.js → emit-artifact-cmd-X2YWXLKQ.js} +11 -11
- package/dist/{emit-criteria-cmd-TPUL7M2R.js → emit-criteria-cmd-HYKOTFXG.js} +8 -8
- package/dist/{emit-demo-cmd-5CUT7W3R.js → emit-demo-cmd-DTARV6RI.js} +12 -12
- package/dist/{emit-finding-cmd-IKHGMACP.js → emit-finding-cmd-GSLYQC43.js} +8 -8
- package/dist/{emit-result-cmd-F7CI6SNZ.js → emit-result-cmd-PKJH76NG.js} +10 -10
- package/dist/{emit-step-cmd-DVEKGHK7.js → emit-step-cmd-IW2Y4N67.js} +8 -8
- package/dist/{exec-client-H2JG36OS.js → exec-client-BQIZRROT.js} +3 -3
- package/dist/find-unit-2C6EK5YY.js +19 -0
- package/dist/{findings-cmd-ODKZ462L.js → findings-cmd-CFF2I3TU.js} +8 -8
- package/dist/{fleet-readiness-UHCBNW6A.js → fleet-readiness-ZSG4UDYR.js} +5 -5
- package/dist/{governing-source-SRECHKPR.js → governing-source-TUGE7QJY.js} +10 -10
- package/dist/{guest-init-6FUC4XZX.js → guest-init-DXXSPKHY.js} +4 -4
- package/dist/{hook-fast-WM6YZVBJ.js → hook-fast-5C4MQ5ZS.js} +1 -1
- package/dist/{host-checks-FLIHLR35.js → host-checks-L4GX6F3H.js} +30 -30
- package/dist/{host-key-OSWPVMIA.js → host-key-5P3ZL5XW.js} +3 -3
- package/dist/{image-tag-LF3NEGSL.js → image-tag-3KPTSRB4.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-LPD75DCX.js → init-NSTWRPRM.js} +22 -22
- package/dist/{init-OX677NNB.js → init-WU2S3WRO.js} +22 -22
- package/dist/{init-cmd-ZCLVC5RR.js → init-cmd-H4HYM5V3.js} +11 -11
- package/dist/{init-update-POKSLQDQ.js → init-update-WOYX2AIO.js} +9 -9
- package/dist/{install-cmd-6SQVZEXL.js → install-cmd-6HGNO2HF.js} +5 -5
- package/dist/{logs-QHXZTSKZ.js → logs-E2O53NUI.js} +2 -2
- package/dist/{loop-ELTO36MN.js → loop-GQLSSBQB.js} +37 -37
- package/dist/{machine-7VPFAC6L.js → machine-IRBCGRUO.js} +22 -22
- package/dist/{mcp-serve-cmd-J32K42HM.js → mcp-serve-cmd-OFK3CS2T.js} +4 -4
- package/dist/{paths-4ZGWWNTG.js → paths-VQ3ALYZ3.js} +2 -2
- package/dist/{pending-CRXJKKKI.js → pending-V5FBWIJ4.js} +3 -3
- package/dist/{pidfile-VLZPRIBZ.js → pidfile-AVJFRZZT.js} +3 -3
- package/dist/{record-4ZJPJTWO.js → record-XE7Z3QGF.js} +3 -3
- package/dist/{runner-env-W53VDVOK.js → runner-env-TYGE6BFU.js} +9 -9
- package/dist/{runner-identity-BH42S2MU.js → runner-identity-B2MZQFYN.js} +5 -5
- package/dist/{runner-key-ESAZRV3A.js → runner-key-NPPEGU6H.js} +22 -22
- package/dist/{session-sender-UB45MUKV.js → session-sender-ZS4OIE3M.js} +11 -11
- package/dist/{spec-cmd-H5B55O5L.js → spec-cmd-N45YF6UL.js} +9 -9
- package/dist/{status-L2OYAZHY.js → status-EP6QSFRY.js} +30 -30
- package/dist/{sync-cmd-IWA5ZTI2.js → sync-cmd-VCB4YDCB.js} +10 -10
- package/dist/{update-steps-FWQ5ASZ6.js → update-steps-BJB7NL6L.js} +31 -31
- package/dist/{watch-NOEBVS6U.js → watch-XU2AUR6Z.js} +10 -10
- package/dist/{work-claim-cmd-7P7U3OQ6.js → work-claim-cmd-WEP3OWAU.js} +13 -13
- package/dist/{work-cmd-77GUT7LY.js → work-cmd-DWR27TKQ.js} +8 -8
- package/dist/{work-comment-cmd-VS3BSPGM.js → work-comment-cmd-HSDVPYWM.js} +9 -9
- package/dist/{work-demo-cmd-S3GXBYIA.js → work-demo-cmd-3EQYHRBP.js} +8 -8
- package/dist/{work-logs-cmd-6BXIINCM.js → work-logs-cmd-3YACDH7Y.js} +8 -8
- package/dist/{work-open-pr-cmd-EPOFWJDC.js → work-open-pr-cmd-MHVTTTLD.js} +9 -9
- package/dist/{work-pr-cmd-DYSYOP74.js → work-pr-cmd-XETSFFM2.js} +8 -8
- package/dist/{work-proofs-cmd-DS2VX4E4.js → work-proofs-cmd-RYQ7Y6KO.js} +10 -10
- package/dist/work-proofs-record-IC3RWDDQ.js +509 -0
- package/dist/{work-stop-cmd-HYQTDNUY.js → work-stop-cmd-4BE2B7TY.js} +8 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/scripts/criterion-citations.mjs +44 -4
- package/dist/chunk-6CK2OC4Q.js +0 -152
- package/dist/find-unit-ACTOZVVS.js +0 -19
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, testFileMatcher, criterionInputs, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems } from './chunk-BEGMZKMG.js';
|
|
4
4
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
5
|
-
import { HELPER_PATH, DOCKERD_LOG, HELPER_RECORD } from './chunk-
|
|
5
|
+
import { HELPER_PATH, DOCKERD_LOG, HELPER_RECORD } from './chunk-XDCD4GD5.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { senderPidfile } from './chunk-
|
|
8
|
-
import { installScrubContext } from './chunk-
|
|
9
|
-
import { writeDockerClientConfig } from './chunk-
|
|
7
|
+
import { senderPidfile } from './chunk-AKQX462F.js';
|
|
8
|
+
import { installScrubContext } from './chunk-C2E4PWEN.js';
|
|
9
|
+
import { writeDockerClientConfig } from './chunk-BUVDDPOM.js';
|
|
10
10
|
import { upgradedStarterText } from './chunk-TZMDRHWB.js';
|
|
11
|
-
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, firstLine, hasClaudeCredential, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, runtimeStepInput,
|
|
12
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
13
|
-
import { waitForAgent, vmExecArgs } from './chunk-
|
|
14
|
-
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-
|
|
15
|
-
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-
|
|
16
|
-
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, optionalEgress } from './chunk-
|
|
17
|
-
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-
|
|
18
|
-
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-
|
|
11
|
+
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, firstLine, hasClaudeCredential, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, runtimeStepInput, keepRuntimeStep, createContainerRuntime, containerSenderCommand, hostCommandEnvironment, execArgv, signalInContainer, startHostServices, LEASE_SECONDS, managedBuildSettingsFor, stopContainer, cleanupContainer, outOfMemoryReason, closeHostBuild, dropManagedClaudeKey, dropManagedBuildSettings, startCheckContainer, ranRuntimeStep, provisionRuntimes, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, syncInContainer, copyTranscriptsFromContainer, MANAGED_UNJAILED_REASON, senderAliveScript, managedMachineLimits, withFactoryHosts, helperFirecrackerNote, said, managedClaudeKeyValues, managedBuildSettingValues, stopJailed, deleteBuildDisk, managedClaudeKeyFor, ROOT_DISK_ID_PREFIX, copyTranscripts, containerJudgeEnvironment, senderSignalScript, copyJudgeTree } from './chunk-7JBG43BX.js';
|
|
12
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-AGNFPJSP.js';
|
|
13
|
+
import { waitForAgent, vmExecArgs } from './chunk-NPTEYMBW.js';
|
|
14
|
+
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-DKIZDYUX.js';
|
|
15
|
+
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-SODV2YMW.js';
|
|
16
|
+
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, optionalEgress } from './chunk-QXAPVAPR.js';
|
|
17
|
+
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-7LKOOGSN.js';
|
|
18
|
+
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-2LCNMAWP.js';
|
|
19
19
|
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-D3CT6XQ4.js';
|
|
20
20
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
21
|
-
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-
|
|
21
|
+
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-72N7GOLM.js';
|
|
22
22
|
import { planArtifactUpload } from './chunk-IXPH4EXK.js';
|
|
23
23
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
24
|
-
import { signerFor } from './chunk-
|
|
24
|
+
import { signerFor } from './chunk-VJQQVTCS.js';
|
|
25
25
|
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-OVNF4LLC.js';
|
|
26
|
-
import { scrubText } from './chunk-
|
|
26
|
+
import { scrubText } from './chunk-A2KLVZBU.js';
|
|
27
27
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { parsePolicy } from './chunk-XFJ7YOPD.js';
|
|
30
30
|
import { CheckItemsSchema } from './chunk-DINRXUQA.js';
|
|
31
31
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
32
|
-
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-
|
|
33
|
-
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 } from './chunk-
|
|
32
|
+
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-2CW2QMSG.js';
|
|
33
|
+
import { JOB_MOUNT, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, claudeCredential, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, withMiseVariables, fdName, BUILD_HOME, CLAUDE_CREDENTIAL_VARIABLES, currentClaudeCredential, removedClaudeCredentialValues, managedClaudeCredential, checkEnvironment, EVAL_INPUT_DIR } from './chunk-4N7BQBO4.js';
|
|
34
34
|
import { RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON } from './chunk-MESOOLF4.js';
|
|
35
35
|
import { randomBytes, createHash } from 'crypto';
|
|
36
36
|
import { rmSync, existsSync, statSync, appendFileSync, mkdirSync, chmodSync, writeFileSync, openSync, closeSync, readFileSync, readdirSync, lstatSync, realpathSync, fstatSync, readSync } from 'fs';
|
|
@@ -623,7 +623,12 @@ async function provisionMicroVm(input) {
|
|
|
623
623
|
const failure = await waitForDocker(runtime, state, agentUser, input.now ?? (() => /* @__PURE__ */ new Date()));
|
|
624
624
|
if (failure !== void 0) return bail(failure);
|
|
625
625
|
}
|
|
626
|
-
const request = (argv, workdir) => ({
|
|
626
|
+
const request = (argv, workdir, variables) => ({
|
|
627
|
+
argv,
|
|
628
|
+
user: agentUser,
|
|
629
|
+
cwd: workdir,
|
|
630
|
+
env: execEnvironment(state.imageEnv, withMiseVariables(env, variables))
|
|
631
|
+
});
|
|
627
632
|
const steps = await runBuildSteps({
|
|
628
633
|
repository,
|
|
629
634
|
branch: primary.branch,
|
|
@@ -632,7 +637,7 @@ async function provisionMicroVm(input) {
|
|
|
632
637
|
agentVersion,
|
|
633
638
|
lifecycle: report.apply.lifecycle,
|
|
634
639
|
exec: async (argv, workdir, opts) => {
|
|
635
|
-
const ran = await vm.exec(state.vsockPath, request(argv, workdir));
|
|
640
|
+
const ran = await vm.exec(state.vsockPath, request(argv, workdir, opts?.variables));
|
|
636
641
|
if (opts?.quiet !== true) appendFileSync(logPath, ran.stdout + ran.stderr);
|
|
637
642
|
return ran;
|
|
638
643
|
},
|
|
@@ -668,7 +673,7 @@ async function provisionMicroVm(input) {
|
|
|
668
673
|
});
|
|
669
674
|
if (!steps.ok) return bail(steps.reason, steps.aborted === true);
|
|
670
675
|
state.startCommit = steps.startCommit;
|
|
671
|
-
|
|
676
|
+
keepRuntimeStep(state, steps);
|
|
672
677
|
if (steps.controlPlane !== void 0) environment.controlPlane = steps.controlPlane;
|
|
673
678
|
return { ok: true, workdir: CHECKOUT_DIR, state, environment };
|
|
674
679
|
}
|
|
@@ -714,6 +719,7 @@ function vmExecFor(input, argv) {
|
|
|
714
719
|
hostEnv: input.runtime.hostEnv,
|
|
715
720
|
containerEnv: state.containerEnv ?? {},
|
|
716
721
|
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
722
|
+
miseVariables: state.miseVariables,
|
|
717
723
|
builtIns: state.builtIns === true,
|
|
718
724
|
identity: input.job.commitIdentity,
|
|
719
725
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
@@ -744,6 +750,7 @@ async function startMicroVmCommand(input) {
|
|
|
744
750
|
hostEnv: input.runtime.hostEnv,
|
|
745
751
|
containerEnv: state.containerEnv ?? {},
|
|
746
752
|
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
753
|
+
miseVariables: state.miseVariables,
|
|
747
754
|
builtIns: state.builtIns === true,
|
|
748
755
|
identity: input.job.commitIdentity,
|
|
749
756
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
@@ -787,6 +794,7 @@ async function syncInMicroVm(input) {
|
|
|
787
794
|
hostEnv: runtime.hostEnv,
|
|
788
795
|
containerEnv: state.containerEnv ?? {},
|
|
789
796
|
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
797
|
+
miseVariables: state.miseVariables,
|
|
790
798
|
builtIns: state.builtIns === true,
|
|
791
799
|
identity: job.commitIdentity,
|
|
792
800
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
@@ -1073,7 +1081,7 @@ async function startCheckMicroVm(input) {
|
|
|
1073
1081
|
state,
|
|
1074
1082
|
evalInput: { dir: evalInput.dir, deliver: deliverEvalInput },
|
|
1075
1083
|
exec: async (argv, workdir, opts) => {
|
|
1076
|
-
const ran = await vm.exec(state.vsockPath, { argv, user: agentUser, cwd: workdir, env: execEnvironment(state.imageEnv, env) });
|
|
1084
|
+
const ran = await vm.exec(state.vsockPath, { argv, user: agentUser, cwd: workdir, env: execEnvironment(state.imageEnv, withMiseVariables(env, opts?.variables)) });
|
|
1077
1085
|
if (opts?.logPath !== void 0) appendFileSync(opts.logPath, ran.stdout + ran.stderr);
|
|
1078
1086
|
return ran;
|
|
1079
1087
|
},
|
|
@@ -1774,12 +1782,21 @@ function testFilesIn(root, isTest, limits = { files: MAX_TEST_FILES, bytes: MAX_
|
|
|
1774
1782
|
const rel = prefix === "" ? name : `${prefix}/${name}`;
|
|
1775
1783
|
const stat = lstatSync(path);
|
|
1776
1784
|
if (stat.isDirectory()) walk(path, rel);
|
|
1777
|
-
else if (stat.isFile() && isTest
|
|
1785
|
+
else if (stat.isFile() && isTest(rel) && stat.size <= limits.bytes) files.push({ path: rel, contents: readFileSync(path, "utf8") });
|
|
1778
1786
|
}
|
|
1779
1787
|
};
|
|
1780
1788
|
walk(root, "");
|
|
1781
1789
|
return files;
|
|
1782
1790
|
}
|
|
1791
|
+
function proofsFileIn(root) {
|
|
1792
|
+
const path = join(root, ".outerlayer-proofs.yaml");
|
|
1793
|
+
try {
|
|
1794
|
+
const stat = lstatSync(path);
|
|
1795
|
+
return stat.isFile() && stat.size <= MAX_TEST_FILE_BYTES ? readFileSync(path, "utf8") : void 0;
|
|
1796
|
+
} catch {
|
|
1797
|
+
return void 0;
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1783
1800
|
async function hostPassedNames(config, item, fetchImpl) {
|
|
1784
1801
|
const workItemId = Object(await readWorkItem(config, item, fetchImpl)).workItemId;
|
|
1785
1802
|
if (typeof workItemId !== "string") throw new WorkCommandError("the work item read named no id");
|
|
@@ -1914,11 +1931,11 @@ async function runJudge(input) {
|
|
|
1914
1931
|
if (!fetched.ok) return await fail(check, `the build's tests could not be fetched: ${fetched.reason}`);
|
|
1915
1932
|
const finder = await loadCitationFinder();
|
|
1916
1933
|
const list = criteria ?? [];
|
|
1917
|
-
const testFiles = testFilesIn(branchDir, finder
|
|
1934
|
+
const testFiles = testFilesIn(branchDir, testFileMatcher(finder, proofsFileIn(branchDir)));
|
|
1918
1935
|
const citations = finder.buildCitations({ ids: list.map((criterion) => criterion.id), files: testFiles, repository: repo, sha: head });
|
|
1919
1936
|
const testFileText = new Map(testFiles.map((file) => [file.path, file.contents]));
|
|
1920
1937
|
const inputs = new Map(list.map((criterion) => [criterion.id, criterionInputs({ brief, criterion, citations, testFiles: testFileText })]));
|
|
1921
|
-
const plan = planCriteria({ criteria: list, citations, inputs, previous });
|
|
1938
|
+
const plan = planCriteria({ criteria: list, citations, inputs, previous, noTestFiles: testFiles.length === 0 });
|
|
1922
1939
|
if (plan.toJudge.length < list.length) {
|
|
1923
1940
|
log.line(`${tag} judge: ${plan.toJudge.length} of ${list.length} criteria to judge, ${list.length - plan.toJudge.length} settled without the judge`);
|
|
1924
1941
|
}
|
|
@@ -3329,6 +3346,7 @@ async function runHostChecks(input) {
|
|
|
3329
3346
|
}
|
|
3330
3347
|
}
|
|
3331
3348
|
let abandoned = false;
|
|
3349
|
+
let variables;
|
|
3332
3350
|
const setup = async () => {
|
|
3333
3351
|
const started = job.microvm !== void 0 ? await startCheckMicroVm({
|
|
3334
3352
|
config,
|
|
@@ -3357,6 +3375,7 @@ async function runHostChecks(input) {
|
|
|
3357
3375
|
});
|
|
3358
3376
|
if (!started.ok) return `the check environment could not be made: ${started.reason}`;
|
|
3359
3377
|
const made = "container" in started ? started.container : started.environment;
|
|
3378
|
+
const checkBuildId = made.state.buildId;
|
|
3360
3379
|
const steps = [
|
|
3361
3380
|
{
|
|
3362
3381
|
argv: ["git", "config", "--global", `url.http://127.0.0.1:${RELAY_PORT}/github.com/.insteadOf`, "https://github.com/"],
|
|
@@ -3386,10 +3405,21 @@ async function runHostChecks(input) {
|
|
|
3386
3405
|
const ran = await made.exec(step.argv, step.workdir, { logPath: environmentLog });
|
|
3387
3406
|
if (ran.status !== 0) return `the check environment could not be prepared: ${step.failed(ran.status)}`;
|
|
3388
3407
|
}
|
|
3408
|
+
if (ranRuntimeStep(job.container ?? job.microvm)) {
|
|
3409
|
+
const chosen = await provisionRuntimes({
|
|
3410
|
+
repositories: repositoriesToCheckOut,
|
|
3411
|
+
exec: (argv, workdir, opts) => made.exec(argv, workdir, opts?.quiet === true ? {} : { logPath: environmentLog }),
|
|
3412
|
+
log,
|
|
3413
|
+
tag: `${tag} checks`,
|
|
3414
|
+
refusals: () => runtime.tunnels.get(checkBuildId)?.record().refusals ?? []
|
|
3415
|
+
});
|
|
3416
|
+
if (!chosen.ok) return `the check environment could not be prepared: ${chosen.reason}`;
|
|
3417
|
+
variables = chosen.variables;
|
|
3418
|
+
}
|
|
3389
3419
|
const lifecycleDir = lifecycleWorkdir(repositoriesToCheckOut, (job.container ?? job.microvm)?.governing?.repository);
|
|
3390
3420
|
for (const step of lifecycleSteps((job.container ?? job.microvm)?.lifecycle ?? {})) {
|
|
3391
3421
|
log.line(`${tag} checks lifecycle ${step.name} (${step.source})`);
|
|
3392
|
-
const ran = await made.exec(step.argv, lifecycleDir, { logPath: environmentLog });
|
|
3422
|
+
const ran = await made.exec(step.argv, lifecycleDir, { logPath: environmentLog, variables });
|
|
3393
3423
|
if (ran.status !== 0) return `the check environment could not be prepared: ${lifecycleFailureReason(step, ran.status)}`;
|
|
3394
3424
|
}
|
|
3395
3425
|
return made;
|
|
@@ -3442,7 +3472,7 @@ async function runHostChecks(input) {
|
|
|
3442
3472
|
const checkStartedMs = now().getTime();
|
|
3443
3473
|
const logPath = join(jobDir, "checks", `${check.name}.log`);
|
|
3444
3474
|
await ready.exec(["rm", "-f", CHECK_ITEMS_FILE], CHECKOUT_DIR, { logPath });
|
|
3445
|
-
const running = ready.exec(["/bin/sh", "-c", check.command], CHECKOUT_DIR, { logPath });
|
|
3475
|
+
const running = ready.exec(["/bin/sh", "-c", check.command], CHECKOUT_DIR, { logPath, variables });
|
|
3446
3476
|
running.catch(() => void 0);
|
|
3447
3477
|
const timer = timeoutAfter(limitMinutes * 6e4, deps.sleep);
|
|
3448
3478
|
let outcome;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-GJHOU5V3.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
7
|
import { acquireSpoolLockAt } from './chunk-IXPH4EXK.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-IZKUPAXF.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-A2KLVZBU.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { StepNameSchema, StepBodySchema } from './chunk-DINRXUQA.js';
|
|
@@ -252,7 +252,7 @@ async function runClaudeLauncher(args, deps = {}) {
|
|
|
252
252
|
return 1;
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
255
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-RJSAIFEP.js');
|
|
256
256
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
257
257
|
if (plane.kind === "none") {
|
|
258
258
|
const own2 = ownSkillsDirFor(cwd, home, [], stderr);
|