@outerlayer/cli 0.36.0-next.20261101022001 → 0.36.0-next.20261101121137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-XZGB4JPQ.js → build-IENNKWWC.js} +3 -3
- package/dist/{build-disk-YLQT3UHL.js → build-disk-M33Q6L22.js} +3 -3
- package/dist/build-info.json +1 -1
- package/dist/{builder-TS3QFXN4.js → builder-YNMSYR75.js} +2 -2
- package/dist/{caller-VHISEQAD.js → caller-2GU5V52U.js} +5 -5
- package/dist/{check-LUQM6DGK.js → check-G4TVQKN3.js} +21 -21
- package/dist/{chunk-7EPIOSLO.js → chunk-2ANBJ7DB.js} +1 -1
- package/dist/{chunk-XTVVKNRP.js → chunk-2QW2PLWT.js} +2 -2
- package/dist/{chunk-NRTRPGCW.js → chunk-3DMCCCVM.js} +1 -1
- package/dist/{chunk-5UBNSGK3.js → chunk-3ONYQMGD.js} +2 -2
- package/dist/{chunk-ZJ4Y2BOI.js → chunk-3YX7FHYP.js} +5 -5
- package/dist/{chunk-GU25RNKD.js → chunk-46YRS7QS.js} +2 -2
- package/dist/{chunk-LHFG5YUG.js → chunk-4W7CPTKY.js} +2 -2
- package/dist/{chunk-CVQ4YBBE.js → chunk-5DYL6FJA.js} +2 -2
- package/dist/{chunk-NIZ7FXUX.js → chunk-6CYNPWZT.js} +75 -22
- package/dist/{chunk-IP7F4CQH.js → chunk-6GA5BJTH.js} +2 -2
- package/dist/{chunk-3GFZSLSP.js → chunk-6KHQGLNT.js} +2 -2
- package/dist/{chunk-LXYWSGEW.js → chunk-A67A5SWG.js} +1 -1
- package/dist/{chunk-XZ7NIGVA.js → chunk-A7D5BMII.js} +2 -2
- package/dist/{chunk-PDQWXH3F.js → chunk-CIEX2ZKQ.js} +3 -3
- package/dist/{chunk-JPROSTGX.js → chunk-CONA2WNE.js} +1 -1
- package/dist/{chunk-6O33JZ3X.js → chunk-DZDTSDHQ.js} +1 -1
- package/dist/{chunk-IVH7WDOO.js → chunk-GQ7VVBUA.js} +4 -4
- package/dist/{chunk-SK7ZXQIV.js → chunk-H3TI7BQX.js} +64 -6
- package/dist/{chunk-RUK7QHSH.js → chunk-HGGR7Y3V.js} +1 -1
- package/dist/{chunk-6IJZL7X2.js → chunk-IM2DECLP.js} +2 -2
- package/dist/{chunk-453B2ZHX.js → chunk-K66FIV2S.js} +2 -2
- package/dist/{chunk-4NMAJYYE.js → chunk-MDFOS4OM.js} +1 -1
- package/dist/{chunk-GQVOK4ZO.js → chunk-RGU6LHPI.js} +14 -14
- package/dist/{chunk-MXWPLGO6.js → chunk-SQ6HDN7A.js} +33 -7
- package/dist/{chunk-AHEIZCCA.js → chunk-SRENPED2.js} +7 -7
- package/dist/{chunk-H3S5LJI2.js → chunk-UFRRRF64.js} +2 -2
- package/dist/{chunk-IGHAPIKZ.js → chunk-UIKUH2UQ.js} +1 -1
- package/dist/{chunk-IVY3PD7P.js → chunk-VI6Z4EJZ.js} +2 -2
- package/dist/{chunk-T3SRWWPX.js → chunk-VIJWXQMT.js} +3 -3
- package/dist/{chunk-HDTFRHY6.js → chunk-YCUUZGFF.js} +5 -5
- package/dist/{cli-I7ZLMEL6.js → cli-CMO2CMXG.js} +88 -88
- package/dist/{command-TDJDBIXU.js → command-GKVKI74I.js} +17 -17
- package/dist/{config-FF3E73ZE.js → config-4HXUXX3M.js} +4 -4
- package/dist/{connect-cmd-IRJ3MBPY.js → connect-cmd-GLB2X7YA.js} +2 -2
- package/dist/{container-start-DNGL4XJ3.js → container-start-OMF3ZUIB.js} +18 -18
- package/dist/{context-show-cmd-YQEQ5B34.js → context-show-cmd-MKQAAR7R.js} +3 -3
- package/dist/{demo-voice-cmd-QFVATHAQ.js → demo-voice-cmd-SMR3QVZA.js} +7 -7
- package/dist/{dist-2SPMAD7Z.js → dist-Y3WSK7OZ.js} +1 -1
- package/dist/{docker-6QIZVYF3.js → docker-AFJABU7U.js} +2 -2
- package/dist/{doctor-LXVJQKME.js → doctor-FEBZ3DZB.js} +18 -18
- package/dist/{emit-artifact-cmd-3YHOU4TI.js → emit-artifact-cmd-DGFH4MUK.js} +6 -6
- package/dist/{emit-criteria-cmd-NN52H53B.js → emit-criteria-cmd-B23VYUF6.js} +4 -4
- package/dist/{emit-demo-cmd-ZYMLB5R5.js → emit-demo-cmd-ELRNY5FA.js} +7 -7
- package/dist/{emit-finding-cmd-J5UZGNP4.js → emit-finding-cmd-DNFJEYQS.js} +4 -4
- package/dist/{emit-result-cmd-IWMACBFI.js → emit-result-cmd-OR5WTW4P.js} +5 -5
- package/dist/{emit-step-cmd-SRWFWEU7.js → emit-step-cmd-AAEBYW3L.js} +4 -4
- package/dist/{find-unit-EX5ETHGL.js → find-unit-4XKMNIE7.js} +6 -6
- package/dist/{findings-cmd-BWTLCXDR.js → findings-cmd-LTM62M3K.js} +4 -4
- package/dist/{governing-source-3LUGSBRW.js → governing-source-75MBT2IE.js} +5 -5
- package/dist/{host-checks-7NCEW7FR.js → host-checks-PUI32LIA.js} +16 -16
- package/dist/index.js +1 -1
- package/dist/{init-AQJEIH57.js → init-O5H4TWA7.js} +16 -16
- package/dist/{init-U4AM3APJ.js → init-Y672J4BW.js} +16 -16
- package/dist/{init-cmd-SP4YMVKT.js → init-cmd-HWAXEEOD.js} +5 -5
- package/dist/{init-update-4IQPGOA6.js → init-update-3W2TOJQV.js} +2 -2
- package/dist/{loop-NKJRLAGI.js → loop-QJGPNIT4.js} +20 -20
- package/dist/{machine-VV4LYWZQ.js → machine-YKQSW22W.js} +16 -16
- package/dist/{runner-env-LWKAYARL.js → runner-env-FK3SUT3Q.js} +6 -6
- package/dist/{runner-identity-WUAQLGRY.js → runner-identity-WYAGV6UQ.js} +2 -2
- package/dist/{runner-key-4JXOPPUJ.js → runner-key-HUOW7X7B.js} +16 -16
- package/dist/{session-sender-EINASB3R.js → session-sender-32UAV25N.js} +6 -6
- package/dist/{spec-cmd-6LT5JJKG.js → spec-cmd-TPRHZ3EV.js} +5 -5
- package/dist/{status-OADVUMST.js → status-HDJ2V5UD.js} +16 -16
- package/dist/{sync-cmd-Z6PU33GC.js → sync-cmd-AHXCXMVP.js} +5 -5
- package/dist/{update-steps-GRF3BQ5M.js → update-steps-F37GQWLJ.js} +17 -17
- package/dist/{watch-XNBXSIEI.js → watch-4EDI4CTS.js} +5 -5
- package/dist/{work-claim-cmd-2OO73LEV.js → work-claim-cmd-GFRZBX2V.js} +8 -8
- package/dist/{work-cmd-YOWM4KZU.js → work-cmd-FLKJQWGQ.js} +4 -4
- package/dist/{work-comment-cmd-7AKCM2JN.js → work-comment-cmd-3HUIIEQD.js} +5 -5
- package/dist/{work-demo-cmd-DHJDR7BB.js → work-demo-cmd-FDPDTXG6.js} +4 -4
- package/dist/{work-logs-cmd-62PZKGUU.js → work-logs-cmd-PSB44DT5.js} +4 -4
- package/dist/{work-open-pr-cmd-DMDHGKEJ.js → work-open-pr-cmd-QJW5PNT2.js} +5 -5
- package/dist/{work-pr-cmd-QGAOPNLV.js → work-pr-cmd-HMGBUHGL.js} +4 -4
- package/dist/{work-proofs-cmd-UQPQF7CK.js → work-proofs-cmd-CVDZARET.js} +5 -5
- package/dist/{work-proofs-record-SRL7DRXV.js → work-proofs-record-RCD7XSUK.js} +10 -10
- package/dist/{work-stop-cmd-NYPQKSHC.js → work-stop-cmd-YO7SBPNF.js} +4 -4
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +6 -4
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +18 -12
- package/skill-pack/maintained/outerlayer-evidence/references/demo.md +38 -6
|
@@ -1,14 +1,14 @@
|
|
|
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, universalBase, writeRecord } from './chunk-
|
|
3
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-HGGR7Y3V.js';
|
|
4
4
|
import './chunk-KB5B6ZT5.js';
|
|
5
5
|
import './chunk-WAZJPDR2.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-DZDTSDHQ.js';
|
|
8
8
|
export { RecipeError } from './chunk-CIUD3436.js';
|
|
9
9
|
import './chunk-OUPQTA7N.js';
|
|
10
10
|
import './chunk-4DJZSNVT.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-SQ6HDN7A.js';
|
|
12
12
|
import './chunk-VUG4IZ7H.js';
|
|
13
13
|
import './chunk-WT7J2627.js';
|
|
14
14
|
import './chunk-GANAOCHR.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-UIKUH2UQ.js';
|
|
4
|
+
import './chunk-DZDTSDHQ.js';
|
|
5
5
|
import './chunk-CIUD3436.js';
|
|
6
6
|
import './chunk-OUPQTA7N.js';
|
|
7
7
|
import './chunk-4DJZSNVT.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-SQ6HDN7A.js';
|
|
9
9
|
import './chunk-VUG4IZ7H.js';
|
|
10
10
|
import './chunk-WT7J2627.js';
|
|
11
11
|
import './chunk-GANAOCHR.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-01T12:14:01.913Z+4689807","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-
|
|
3
|
+
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-DZDTSDHQ.js';
|
|
4
4
|
import './chunk-CIUD3436.js';
|
|
5
5
|
import './chunk-OUPQTA7N.js';
|
|
6
6
|
import './chunk-4DJZSNVT.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-SQ6HDN7A.js';
|
|
8
8
|
import './chunk-VUG4IZ7H.js';
|
|
9
9
|
import './chunk-WT7J2627.js';
|
|
10
10
|
import './chunk-GANAOCHR.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-A67A5SWG.js';
|
|
4
|
+
import './chunk-UFRRRF64.js';
|
|
5
|
+
import './chunk-UIKUH2UQ.js';
|
|
6
|
+
import './chunk-DZDTSDHQ.js';
|
|
7
7
|
import './chunk-CIUD3436.js';
|
|
8
8
|
import './chunk-OUPQTA7N.js';
|
|
9
9
|
import './chunk-4DJZSNVT.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-SQ6HDN7A.js';
|
|
11
11
|
import './chunk-VUG4IZ7H.js';
|
|
12
12
|
import './chunk-352DHUTP.js';
|
|
13
13
|
import './chunk-WT7J2627.js';
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-RGU6LHPI.js';
|
|
4
4
|
import './chunk-7Y5VW4JG.js';
|
|
5
5
|
import './chunk-3JVYMD4G.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-GQ7VVBUA.js';
|
|
8
|
+
import './chunk-5DYL6FJA.js';
|
|
9
9
|
import './chunk-3LCXSD26.js';
|
|
10
10
|
import './chunk-LGV5N5DG.js';
|
|
11
11
|
import './chunk-EZRAR5YG.js';
|
|
12
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
12
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-YCUUZGFF.js';
|
|
13
13
|
import './chunk-AF6DQJ5W.js';
|
|
14
|
-
import { findServiceUnit } from './chunk-
|
|
15
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-
|
|
14
|
+
import { findServiceUnit } from './chunk-MDFOS4OM.js';
|
|
15
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-6CYNPWZT.js';
|
|
16
16
|
import './chunk-GDIVOYDA.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
18
|
import './chunk-2PGI6RDE.js';
|
|
19
19
|
import './chunk-U553JKMO.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
20
|
+
import './chunk-3ONYQMGD.js';
|
|
21
|
+
import './chunk-2QW2PLWT.js';
|
|
22
|
+
import './chunk-6KHQGLNT.js';
|
|
23
23
|
import './chunk-AAGU5FJF.js';
|
|
24
24
|
import './chunk-ZVB57WI6.js';
|
|
25
25
|
import './chunk-ALEUIS35.js';
|
|
26
26
|
import './chunk-TQMI335S.js';
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
27
|
+
import './chunk-3DMCCCVM.js';
|
|
28
|
+
import './chunk-6GA5BJTH.js';
|
|
29
29
|
import './chunk-NN33FYXG.js';
|
|
30
|
-
import './chunk-
|
|
30
|
+
import './chunk-HGGR7Y3V.js';
|
|
31
31
|
import './chunk-KB5B6ZT5.js';
|
|
32
32
|
import './chunk-WAZJPDR2.js';
|
|
33
33
|
import './chunk-OGFGZQA3.js';
|
|
34
34
|
import './chunk-46OBCATR.js';
|
|
35
|
-
import './chunk-
|
|
35
|
+
import './chunk-2ANBJ7DB.js';
|
|
36
36
|
import './chunk-55PYF6S2.js';
|
|
37
37
|
import './chunk-JBJTC3UU.js';
|
|
38
38
|
import './chunk-UZGQT6OF.js';
|
|
39
39
|
import './chunk-MKSZHT6S.js';
|
|
40
|
-
import './chunk-
|
|
41
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-
|
|
40
|
+
import './chunk-A67A5SWG.js';
|
|
41
|
+
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-UFRRRF64.js';
|
|
42
|
+
import './chunk-UIKUH2UQ.js';
|
|
43
|
+
import './chunk-DZDTSDHQ.js';
|
|
44
44
|
import './chunk-CIUD3436.js';
|
|
45
45
|
import './chunk-OUPQTA7N.js';
|
|
46
46
|
import './chunk-OHQMGLJP.js';
|
|
47
47
|
import './chunk-3SQZ5LIK.js';
|
|
48
|
-
import './chunk-
|
|
48
|
+
import './chunk-VIJWXQMT.js';
|
|
49
49
|
import './chunk-IP7BIBXJ.js';
|
|
50
|
-
import './chunk-
|
|
51
|
-
import './chunk-
|
|
50
|
+
import './chunk-4W7CPTKY.js';
|
|
51
|
+
import './chunk-CONA2WNE.js';
|
|
52
52
|
import './chunk-5H57X7YC.js';
|
|
53
53
|
import './chunk-A2LHHKTT.js';
|
|
54
54
|
import './chunk-2AM6Z5BP.js';
|
|
@@ -68,7 +68,7 @@ import './chunk-FGF52V4V.js';
|
|
|
68
68
|
import './chunk-HCVLP7XA.js';
|
|
69
69
|
import './chunk-BJ3KTMDH.js';
|
|
70
70
|
import './chunk-7O7LJWQO.js';
|
|
71
|
-
import './chunk-
|
|
71
|
+
import './chunk-SQ6HDN7A.js';
|
|
72
72
|
import './chunk-OLM2TIOW.js';
|
|
73
73
|
import './chunk-CDDED64E.js';
|
|
74
74
|
import './chunk-RA3O54FC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-VIJWXQMT.js';
|
|
4
4
|
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-PN6TNCQI.js';
|
|
5
5
|
import { buildRefusalReason } from './chunk-F3ZMVUAS.js';
|
|
6
6
|
import { signingFetchFor } from './chunk-YQHEJ5SV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-6KHQGLNT.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-3PQTOKML.js';
|
|
@@ -12,7 +12,7 @@ import { readLatestProvenanceForSession, readContextProvenance } from './chunk-5
|
|
|
12
12
|
import { hookExecSpoolPath } from './chunk-FUJUFLDC.js';
|
|
13
13
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
14
14
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, sessionIdFromPath, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep, SOURCE_ADAPTERS } from './chunk-
|
|
15
|
+
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, sessionIdFromPath, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep, SOURCE_ADAPTERS } from './chunk-SQ6HDN7A.js';
|
|
16
16
|
import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-5WYT3PPE.js';
|
|
17
17
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
18
18
|
import { removeJournalHooks } from './chunk-CJPTUU2E.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-6GA5BJTH.js';
|
|
4
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';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-2QW2PLWT.js';
|
|
4
4
|
import { spoolDir } from './chunk-GDMAN42R.js';
|
|
5
|
-
import { CaptureDaemon } from './chunk-
|
|
5
|
+
import { CaptureDaemon } from './chunk-SQ6HDN7A.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -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-GDIVOYDA.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-VIJWXQMT.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
7
7
|
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-SQ6HDN7A.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-PUI32LIA.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-PUI32LIA.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-RCD7XSUK.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, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-4W7CPTKY.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
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-SQ6HDN7A.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-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-CONA2WNE.js';
|
|
4
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-SQ6HDN7A.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
|
|
@@ -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-6CYNPWZT.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -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-AFJABU7U.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 = "";
|
|
@@ -4,35 +4,35 @@ import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMat
|
|
|
4
4
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { upgradedStarterText } from './chunk-U553JKMO.js';
|
|
7
|
-
import { senderPidfile } from './chunk-
|
|
8
|
-
import { installScrubContext } from './chunk-
|
|
7
|
+
import { senderPidfile } from './chunk-3ONYQMGD.js';
|
|
8
|
+
import { installScrubContext } from './chunk-2QW2PLWT.js';
|
|
9
9
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
10
10
|
import { runnerImageVersion } from './chunk-ALEUIS35.js';
|
|
11
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
11
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-3DMCCCVM.js';
|
|
12
12
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
13
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, cloneRepository, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
13
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, cloneRepository, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-HGGR7Y3V.js';
|
|
14
14
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-KB5B6ZT5.js';
|
|
15
15
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
16
16
|
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-46OBCATR.js';
|
|
17
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
17
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-2ANBJ7DB.js';
|
|
18
18
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-55PYF6S2.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-UZGQT6OF.js';
|
|
21
21
|
import { writeDockerClientConfig } from './chunk-MKSZHT6S.js';
|
|
22
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
23
|
-
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
24
|
-
import { formatBytes, volumeBytes, allocatedBytes,
|
|
25
|
-
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, runnerLabelValue, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, parseSize, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
22
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-A67A5SWG.js';
|
|
23
|
+
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-UFRRRF64.js';
|
|
24
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-UIKUH2UQ.js';
|
|
25
|
+
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, runnerLabelValue, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, parseSize, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-DZDTSDHQ.js';
|
|
26
26
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-CIUD3436.js';
|
|
27
27
|
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, CLAUDE_CODE_VERSION } from './chunk-OUPQTA7N.js';
|
|
28
|
-
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-
|
|
28
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-VIJWXQMT.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-3PQTOKML.js';
|
|
30
30
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
31
|
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
32
32
|
import { sharedSkillNames, skillConflictMessage } from './chunk-FGF52V4V.js';
|
|
33
33
|
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-HCVLP7XA.js';
|
|
34
34
|
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-7O7LJWQO.js';
|
|
35
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, parseTranscript, scrubDeep } from './chunk-
|
|
35
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, parseTranscript, scrubDeep } from './chunk-SQ6HDN7A.js';
|
|
36
36
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
37
37
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
38
38
|
import { parsePolicy, orderSessions, extractFacts, sessionsToTimeline } from './chunk-JFMSFHER.js';
|
|
@@ -2246,6 +2246,9 @@ function ranRuntimeStep(state) {
|
|
|
2246
2246
|
|
|
2247
2247
|
// src/runner/setup-scripts.ts
|
|
2248
2248
|
var SETUP_SCRIPT = ".outerlayer/setup.sh";
|
|
2249
|
+
function withoutBuildVariablesHint(steps) {
|
|
2250
|
+
return `${steps} on a managed runner run without the factory's build variables and before the build's gh login is written, so a command that needs a variable or calls gh fails`;
|
|
2251
|
+
}
|
|
2249
2252
|
var RUN_SCRIPT = 'if [ -x "$1" ]; then exec "$1"; else exec /bin/sh "$1"; fi';
|
|
2250
2253
|
function tailOf(result) {
|
|
2251
2254
|
const lines = `${result.stdout}
|
|
@@ -2276,7 +2279,10 @@ async function runSetupScripts(input) {
|
|
|
2276
2279
|
log.line(`${tag} setup ${entry.repository}: running ${SETUP_SCRIPT}`);
|
|
2277
2280
|
const started = Date.now();
|
|
2278
2281
|
const result = await exec(["sh", "-c", RUN_SCRIPT, "setup", SETUP_SCRIPT], path, { timeoutMs: input.timeoutMs });
|
|
2279
|
-
if (result.status !== 0 || result.timedOut === true)
|
|
2282
|
+
if (result.status !== 0 || result.timedOut === true) {
|
|
2283
|
+
if (input.withoutBuildVariables === true && result.timedOut !== true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("setup scripts")}`);
|
|
2284
|
+
return { ok: false, reason: failureReason(entry, input, result) };
|
|
2285
|
+
}
|
|
2280
2286
|
log.line(`${tag} setup ${entry.repository}: ${SETUP_SCRIPT} passed in ${formatDuration(Date.now() - started)}`);
|
|
2281
2287
|
ran.push(entry.repository);
|
|
2282
2288
|
}
|
|
@@ -2337,7 +2343,7 @@ function lookup(records, key, nowMs) {
|
|
|
2337
2343
|
}
|
|
2338
2344
|
function savingRefusedBecause(input) {
|
|
2339
2345
|
if (!input.universalImage) return "its image comes from a devcontainer file";
|
|
2340
|
-
if (input.
|
|
2346
|
+
if (input.fleet) return "this runner is a fleet machine";
|
|
2341
2347
|
if (input.savedStateMax === "off") return "runner.housekeeping.savedStateMax is off";
|
|
2342
2348
|
return void 0;
|
|
2343
2349
|
}
|
|
@@ -2512,7 +2518,11 @@ async function runBuildSteps(input) {
|
|
|
2512
2518
|
let miseVariables;
|
|
2513
2519
|
if (input.runtimes !== void 0) {
|
|
2514
2520
|
const chosen = await provisionRuntimes({ repositories: ordered, exec, log, tag, refusals: input.runtimes.refusals, aborted: input.aborted });
|
|
2515
|
-
if (!chosen.ok)
|
|
2521
|
+
if (!chosen.ok) {
|
|
2522
|
+
if (chosen.aborted === true) return aborted();
|
|
2523
|
+
if (input.setup?.withoutBuildVariables === true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("runtime installs")}`);
|
|
2524
|
+
return { ok: false, reason: chosen.reason };
|
|
2525
|
+
}
|
|
2516
2526
|
unpinnedRuntimes = chosen.unpinned;
|
|
2517
2527
|
miseVariables = chosen.variables;
|
|
2518
2528
|
}
|
|
@@ -2522,14 +2532,26 @@ async function runBuildSteps(input) {
|
|
|
2522
2532
|
if (input.aborted()) return aborted();
|
|
2523
2533
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
2524
2534
|
const ran = await commandExec(step.argv, lifecycleDir);
|
|
2525
|
-
if (ran.status !== 0)
|
|
2535
|
+
if (ran.status !== 0) {
|
|
2536
|
+
if (input.setup?.withoutBuildVariables === true && !input.aborted()) log.line(`${tag} ${withoutBuildVariablesHint("lifecycle commands")}`);
|
|
2537
|
+
return { ok: false, reason: lifecycleFailureReason(step, ran.status) };
|
|
2538
|
+
}
|
|
2526
2539
|
}
|
|
2527
2540
|
if (input.aborted()) return aborted();
|
|
2528
2541
|
let missingSetupScripts;
|
|
2529
2542
|
let savedState = false;
|
|
2530
2543
|
if (input.setup !== void 0) {
|
|
2531
2544
|
const { setup } = input;
|
|
2532
|
-
const ran = await runSetupScripts({
|
|
2545
|
+
const ran = await runSetupScripts({
|
|
2546
|
+
repositories: ordered,
|
|
2547
|
+
exec: commandExec,
|
|
2548
|
+
log,
|
|
2549
|
+
tag,
|
|
2550
|
+
timeoutMs: setup.timeoutMs,
|
|
2551
|
+
limitMinutes: setup.limitMinutes,
|
|
2552
|
+
aborted: input.aborted,
|
|
2553
|
+
...setup.withoutBuildVariables === true ? { withoutBuildVariables: true } : {}
|
|
2554
|
+
});
|
|
2533
2555
|
if (!ran.ok) return ran.aborted === true ? aborted() : { ok: false, reason: ran.reason };
|
|
2534
2556
|
missingSetupScripts = ran.missing;
|
|
2535
2557
|
if (setup.saveState !== void 0 && setup.restored !== true && ran.ran.length > 0) {
|
|
@@ -2544,6 +2566,10 @@ async function runBuildSteps(input) {
|
|
|
2544
2566
|
}
|
|
2545
2567
|
if (input.aborted()) return aborted();
|
|
2546
2568
|
}
|
|
2569
|
+
if (input.afterSave !== void 0) {
|
|
2570
|
+
const after = await input.afterSave();
|
|
2571
|
+
if (!after.ok) return { ok: false, reason: after.reason };
|
|
2572
|
+
}
|
|
2547
2573
|
const staged = await input.stageContext();
|
|
2548
2574
|
if (staged.kind === "refused") return { ok: false, reason: staged.reason };
|
|
2549
2575
|
let controlPlane;
|
|
@@ -2678,7 +2704,7 @@ function savedStateMaxOf(config) {
|
|
|
2678
2704
|
}
|
|
2679
2705
|
async function planSavedState(input) {
|
|
2680
2706
|
const { config, runtime, log } = input;
|
|
2681
|
-
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0,
|
|
2707
|
+
const refused2 = savingRefusedBecause({ universalImage: input.base !== void 0, fleet: config.fleet === true, savedStateMax: savedStateMaxOf(config) });
|
|
2682
2708
|
if (refused2 !== void 0 || input.base === void 0) {
|
|
2683
2709
|
const why = refused2 ?? "its image comes from a devcontainer file";
|
|
2684
2710
|
log(`this build saves no state: ${why}`);
|
|
@@ -2709,7 +2735,7 @@ async function planSavedState(input) {
|
|
|
2709
2735
|
factory: keyRunnerFactory(config),
|
|
2710
2736
|
repositories,
|
|
2711
2737
|
imageDigest: input.base.digest,
|
|
2712
|
-
diskBytes:
|
|
2738
|
+
diskBytes: input.diskBytes
|
|
2713
2739
|
});
|
|
2714
2740
|
const found = lookup(readRecords(savedStatesDir(root)), key, input.now.getTime());
|
|
2715
2741
|
if (found.kind !== "none" && found.record.kind === "tar") {
|
|
@@ -2771,6 +2797,7 @@ function setupInputFor(input) {
|
|
|
2771
2797
|
limitMinutes: minutes,
|
|
2772
2798
|
restored: input.plan.restore !== void 0,
|
|
2773
2799
|
keyCommits: input.plan.keyCommits,
|
|
2800
|
+
...input.withoutBuildVariables === true ? { withoutBuildVariables: true } : {},
|
|
2774
2801
|
// A plan has a key exactly when the build may save a state. A build that starts from one is not asked to save.
|
|
2775
2802
|
...input.plan.key === void 0 ? {} : { saveState: input.saveState }
|
|
2776
2803
|
};
|
|
@@ -3528,6 +3555,7 @@ async function provisionMicroVm(input) {
|
|
|
3528
3555
|
}
|
|
3529
3556
|
async function provisionMicroVmOnce(input, allowRestore) {
|
|
3530
3557
|
const { config, runtime, item, itemKey, jobDir, log, tokens } = input;
|
|
3558
|
+
const managed = config.managed === true;
|
|
3531
3559
|
const { vm } = runtime;
|
|
3532
3560
|
const tag = itemTag({ item: item.number, organizationId: input.organizationId, claimId: input.claimId });
|
|
3533
3561
|
const logPath = join(jobDir, "provision.log");
|
|
@@ -3598,6 +3626,7 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3598
3626
|
tokens,
|
|
3599
3627
|
now: clockOf(input.now)(),
|
|
3600
3628
|
allowRestore,
|
|
3629
|
+
diskBytes: limits2.diskBytes,
|
|
3601
3630
|
log: tagged
|
|
3602
3631
|
});
|
|
3603
3632
|
const savedStatesPath = savedStatesDir(runnerDirPath);
|
|
@@ -3800,17 +3829,38 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3800
3829
|
return bail(`the build's read token for ${entry.repository} could not be had: ${refusalCode(err)}`);
|
|
3801
3830
|
}
|
|
3802
3831
|
}
|
|
3803
|
-
|
|
3832
|
+
let ghHeld = managed;
|
|
3833
|
+
let heldToken;
|
|
3834
|
+
const pushGhConfig = (token, onFailure) => {
|
|
3804
3835
|
pushes = pushes.then(async () => {
|
|
3805
3836
|
if (!vmAlive(runtime, state)) return;
|
|
3806
3837
|
await writeGuestGhConfig(runtime, state, token);
|
|
3807
|
-
}, void 0).catch(
|
|
3838
|
+
}, void 0).catch(onFailure);
|
|
3839
|
+
return pushes;
|
|
3840
|
+
};
|
|
3841
|
+
tokens.onRead((token) => {
|
|
3842
|
+
if (ghHeld) {
|
|
3843
|
+
heldToken = token;
|
|
3844
|
+
return;
|
|
3845
|
+
}
|
|
3846
|
+
void pushGhConfig(token, reportWrite);
|
|
3808
3847
|
});
|
|
3809
3848
|
await pushes;
|
|
3810
3849
|
firstWriteSettled = true;
|
|
3811
3850
|
if (firstWriteFailure !== void 0) return bail(`the build's gh configuration could not be written: ${describeCallFailure(firstWriteFailure)}`);
|
|
3812
3851
|
tokens.markUsed("read");
|
|
3813
3852
|
environment.credentials = tokens.used();
|
|
3853
|
+
const releaseGhConfig = async () => {
|
|
3854
|
+
ghHeld = false;
|
|
3855
|
+
if (heldToken === void 0) return { ok: true };
|
|
3856
|
+
let failure3;
|
|
3857
|
+
await pushGhConfig(heldToken, (err) => {
|
|
3858
|
+
failure3 = err;
|
|
3859
|
+
reportWrite(err);
|
|
3860
|
+
});
|
|
3861
|
+
heldToken = void 0;
|
|
3862
|
+
return failure3 === void 0 ? { ok: true } : { ok: false, reason: `the build's gh configuration could not be written: ${describeCallFailure(failure3)}` };
|
|
3863
|
+
};
|
|
3814
3864
|
const uidOf = async (user) => {
|
|
3815
3865
|
const probe = await asRoot(runtime, state, ["id", "-u", user]);
|
|
3816
3866
|
return uidFromProbe(probe);
|
|
@@ -3865,11 +3915,12 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3865
3915
|
removeVolume: async () => void 0,
|
|
3866
3916
|
log: tagged
|
|
3867
3917
|
});
|
|
3918
|
+
const stepEnv = managed ? buildEnvironment({ ...envInput, factoryVariables: [] }) : env;
|
|
3868
3919
|
const request = (argv, workdir, variables) => ({
|
|
3869
3920
|
argv,
|
|
3870
3921
|
user: agentUser,
|
|
3871
3922
|
cwd: workdir,
|
|
3872
|
-
env: execEnvironment(state.imageEnv, withMiseVariables(
|
|
3923
|
+
env: execEnvironment(state.imageEnv, withMiseVariables(stepEnv, variables))
|
|
3873
3924
|
});
|
|
3874
3925
|
const steps = await runBuildSteps({
|
|
3875
3926
|
repository,
|
|
@@ -3909,7 +3960,8 @@ async function provisionMicroVmOnce(input, allowRestore) {
|
|
|
3909
3960
|
...input.requireBuildSkill === true ? { requireBuildSkill: true } : {},
|
|
3910
3961
|
// A build on the universal image, or on an image built from it, chooses and installs its runtimes.
|
|
3911
3962
|
...runtimeStepInput(report, services),
|
|
3912
|
-
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState })
|
|
3963
|
+
setup: setupInputFor({ setupMinutes: config.build?.setupMinutes, plan, saveState, withoutBuildVariables: managed }),
|
|
3964
|
+
afterSave: releaseGhConfig
|
|
3913
3965
|
});
|
|
3914
3966
|
if (!steps.ok) return settleFailedSteps(steps, { giveUp: giveUpState, bail });
|
|
3915
3967
|
state.startCommit = steps.startCommit;
|
|
@@ -9930,6 +9982,7 @@ async function provisionContainerOnce(input, allowRestore) {
|
|
|
9930
9982
|
tokens,
|
|
9931
9983
|
now: clockOf(input.now)(),
|
|
9932
9984
|
allowRestore,
|
|
9985
|
+
diskBytes: parseSize(config.build?.disk ?? DEFAULT_BUILD_DISK) ?? 0,
|
|
9933
9986
|
log: tagged
|
|
9934
9987
|
});
|
|
9935
9988
|
const savedStatesPath = savedStatesDir(runnerDir(config.configPath));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-UFRRRF64.js';
|
|
4
|
+
import { parseSize } from './chunk-DZDTSDHQ.js';
|
|
5
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';
|
|
@@ -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-4W7CPTKY.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { acquireSpoolLockAt } from './chunk-3PQTOKML.js';
|
|
8
8
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-SQ6HDN7A.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-VUG4IZ7H.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-UFRRRF64.js';
|
|
4
4
|
import { orgHomeDir } from './chunk-WT7J2627.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-VIJWXQMT.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
7
7
|
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
8
|
import { logHookError } from './chunk-GDMAN42R.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-SQ6HDN7A.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
@@ -1,13 +1,13 @@
|
|
|
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-2QW2PLWT.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-4W7CPTKY.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
8
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-3PQTOKML.js';
|
|
9
9
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-SQ6HDN7A.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
13
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-VUG4IZ7H.js';
|
|
@@ -6,7 +6,7 @@ import { isAgentsMdLayout } from './chunk-LRCGXRQI.js';
|
|
|
6
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-SQ6HDN7A.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { execFileSync } from 'child_process';
|
|
12
12
|
import { lstatSync } from 'fs';
|