@outerlayer/cli 0.36.0-next.20261103103134 → 0.36.0-next.20261103181718
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-DZZZH3SE.js → agent-setup-WV4Y2HGG.js} +18 -18
- package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-RQCLWP3A.js} +3 -3
- package/dist/{bridge-GZSZQGLI.js → bridge-NFSJ4IBQ.js} +6 -6
- package/dist/{build-UKZ5RPRR.js → build-RGO3EWJD.js} +12 -12
- package/dist/{build-disk-3HOXULLP.js → build-disk-NYYBJGBH.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-QEK4GIRY.js → builder-HT3CV5ZZ.js} +9 -9
- package/dist/caller-D4ZZWA6I.js +23 -0
- package/dist/{check-D6NMQ6LP.js → check-4T4FDFLZ.js} +56 -54
- package/dist/{chunk-LDKF6B2R.js → chunk-22JLORO6.js} +3 -3
- package/dist/{chunk-K26KMWU4.js → chunk-2P532NZM.js} +7 -7
- package/dist/{chunk-NMMGRG5V.js → chunk-2VWYPY62.js} +4 -4
- package/dist/{chunk-B5VKRKLJ.js → chunk-3JYR5R57.js} +1 -1
- package/dist/{chunk-PDRWRFB2.js → chunk-4S564XTG.js} +3 -3
- package/dist/{chunk-SYKEQT63.js → chunk-5HMIMWRD.js} +17 -5
- package/dist/{chunk-L3SHPR2M.js → chunk-63KUYXOH.js} +1 -1
- package/dist/{chunk-VST3BWL4.js → chunk-63T2OTPO.js} +11 -10
- package/dist/{chunk-42X6CTBI.js → chunk-6BGE2CZB.js} +3 -3
- package/dist/{chunk-JMM3L5RG.js → chunk-7A2OPME2.js} +4 -4
- package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
- package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
- package/dist/{chunk-P4Q6M6PI.js → chunk-7WZNTLNB.js} +1 -1
- package/dist/{chunk-LV4IDDD3.js → chunk-AWPGPPXP.js} +5 -5
- package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
- package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
- package/dist/{chunk-CDTBXABP.js → chunk-C6LAXUC7.js} +2 -2
- package/dist/{chunk-IEDO26G4.js → chunk-CFHM562L.js} +10 -3
- package/dist/{chunk-MPVTZLOM.js → chunk-CLFP2ZTG.js} +3 -3
- package/dist/{chunk-ZE2JJQPC.js → chunk-CMZTCXCA.js} +1 -1
- package/dist/{chunk-NH4EZRBM.js → chunk-CTBQN5KQ.js} +6 -6
- package/dist/{chunk-KHJPRTOW.js → chunk-DIL7U77P.js} +1 -1
- package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
- package/dist/{chunk-R63T46P7.js → chunk-EZI2BLP6.js} +3 -3
- package/dist/{chunk-6J3QWXTA.js → chunk-F2UM3NDF.js} +4 -4
- package/dist/{chunk-6UI4ELNA.js → chunk-GTJLKBN7.js} +7 -7
- package/dist/{chunk-HO4DPX5N.js → chunk-H4H3KK25.js} +1 -1
- package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
- package/dist/{chunk-7UYXSF62.js → chunk-HBYFB3LK.js} +6 -7
- package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
- package/dist/{chunk-EUWTGCK5.js → chunk-IKAGRGLY.js} +1 -1
- package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
- package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
- package/dist/{chunk-GWJUEJR4.js → chunk-IRJ6EGQT.js} +7 -7
- package/dist/{chunk-WAGHPZP2.js → chunk-J3SICPA2.js} +1 -1
- package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
- package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
- package/dist/{chunk-XW2KXLZB.js → chunk-K52TGQLV.js} +18 -18
- package/dist/{chunk-52Z7AOZ2.js → chunk-KYDKOYZD.js} +44 -27
- package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
- package/dist/{chunk-HR4PJLOO.js → chunk-NFYXRAEV.js} +1 -1
- package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
- package/dist/{chunk-U7MLC45I.js → chunk-ORBQ4QR7.js} +5 -5
- package/dist/{chunk-VMPVQE4D.js → chunk-PL2AGLJF.js} +2 -2
- package/dist/{chunk-J4NJWTNO.js → chunk-POTMAJPJ.js} +5 -5
- package/dist/{chunk-LXXP5HRJ.js → chunk-PTHBJDWK.js} +3 -3
- package/dist/{chunk-OGG5ELXF.js → chunk-QLZXFKGO.js} +4 -4
- package/dist/{chunk-FLQL6ZIG.js → chunk-QN4ABLRK.js} +1 -1
- package/dist/{chunk-OPEZVPF7.js → chunk-R4LXONKC.js} +3 -3
- package/dist/{chunk-EHS3HEB6.js → chunk-RGSQHTO4.js} +3 -3
- package/dist/{chunk-KVO4MJWS.js → chunk-RY5QFTXJ.js} +6 -6
- package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
- package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
- package/dist/{chunk-PYK6GCCU.js → chunk-SIVZITLG.js} +5 -5
- package/dist/{chunk-BEJJJZXF.js → chunk-SR6SXYM4.js} +3 -3
- package/dist/{chunk-4MN4BBKZ.js → chunk-SWUPSLNV.js} +7 -7
- package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
- package/dist/{chunk-IEVARJ6G.js → chunk-UD6I7QJJ.js} +2 -2
- package/dist/{chunk-B5UBTIIP.js → chunk-UT4SX57J.js} +4 -4
- package/dist/{chunk-LISVY7JZ.js → chunk-UVKPDGLM.js} +7 -7
- package/dist/{chunk-YCBVYTFI.js → chunk-V227E7UX.js} +1 -1
- package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
- package/dist/{chunk-2W5C47AE.js → chunk-WGLYAMVK.js} +1 -1
- package/dist/{chunk-K373UCEV.js → chunk-WSZZKMXF.js} +1 -1
- package/dist/{chunk-TWGSXBZM.js → chunk-WTKCAALP.js} +3 -3
- package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
- package/dist/{chunk-ZZ4WIQRF.js → chunk-WZ5YJJMP.js} +12 -9
- package/dist/{chunk-UZSMDU4U.js → chunk-X2B7ILTH.js} +2 -2
- package/dist/{chunk-S7YU25AF.js → chunk-XKM7KCUJ.js} +31 -31
- package/dist/{chunk-XAMTNTOH.js → chunk-YVRJDMDL.js} +9 -9
- package/dist/{chunk-NDCN3R5C.js → chunk-ZKJGZQ63.js} +3 -3
- package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-KQHWKYRL.js} +6 -6
- package/dist/{cli-TZW5XJRE.js → cli-BM7CAJFW.js} +159 -143
- package/dist/{command-5VOKN4HI.js → command-ZIVI5DQK.js} +48 -48
- package/dist/{config-23EBIGW4.js → config-W4OY2JNP.js} +11 -11
- package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-2O2GGNAY.js} +10 -10
- package/dist/{container-start-NJGGT4E3.js → container-start-CRUUG57V.js} +46 -46
- package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
- package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-LAK6CYZT.js} +11 -11
- package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-N7FFBGPD.js} +13 -13
- package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-335YZIXU.js} +7 -7
- package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-LVODULO2.js} +18 -18
- package/dist/{docker-2VHMWLNK.js → docker-WDMFRVOX.js} +9 -9
- package/dist/{doctor-ZAB6SDWF.js → doctor-3HKOYZTJ.js} +48 -48
- package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-MLIPSYXP.js} +17 -17
- package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
- package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-JYG5LJEQ.js} +13 -13
- package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-LKB4OHJD.js} +18 -18
- package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-YNLZSJEC.js} +13 -13
- package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-EYEFXWVS.js} +16 -16
- package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-YF5CGZ2H.js} +13 -13
- package/dist/{exec-client-NXTXAVHI.js → exec-client-T7XWSBJ3.js} +7 -7
- package/dist/find-unit-X5LYKUQX.js +24 -0
- package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-KBV2GQXJ.js} +13 -13
- package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-JG3YAKT7.js} +12 -12
- package/dist/{governing-source-CZSYE7QE.js → governing-source-VCD5NPMW.js} +18 -18
- package/dist/{guest-init-FLSL5RI7.js → guest-init-SG5RDE4K.js} +8 -8
- package/dist/{hook-fast-HYRZAY5K.js → hook-fast-QLCXXFMZ.js} +2 -2
- package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
- package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
- package/dist/host-checks-LQTHW3DN.js +79 -0
- package/dist/{host-key-CPAEQSNU.js → host-key-UEHE5JSK.js} +7 -7
- package/dist/{image-tag-MAMFM4SO.js → image-tag-77FWBIYC.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/{init-G7D7ABKV.js → init-O33TLGUI.js} +44 -44
- package/dist/init-UFQQUI4Z.js +79 -0
- package/dist/{init-cmd-5GHIMFSS.js → init-cmd-GCHZK7YQ.js} +26 -26
- package/dist/{init-update-TQH2Q7IZ.js → init-update-ZSTDH75N.js} +21 -21
- package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-BRURSBEH.js} +9 -9
- package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
- package/dist/{logs-BM644OOJ.js → logs-TRW3A55Z.js} +6 -6
- package/dist/loop-QHQTM25C.js +90 -0
- package/dist/machine-VFZAHR6N.js +79 -0
- package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
- package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
- package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-JVLROUUU.js} +8 -8
- package/dist/{paths-VIBBLJ2W.js → paths-AOUMCMP3.js} +6 -6
- package/dist/pending-JOEXUNDC.js +18 -0
- package/dist/{pidfile-PAX5XHQJ.js → pidfile-5LPBPEGE.js} +7 -7
- package/dist/{record-QPXOUL6F.js → record-4RLFKQMG.js} +7 -7
- package/dist/{relay-KASDMV3R.js → relay-IYJ7JJLG.js} +4 -4
- package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-MPZHNZYJ.js} +4 -4
- package/dist/{runner-agents-WUMCXVS2.js → runner-agents-MWBL6LA7.js} +3 -3
- package/dist/{runner-env-R2C5LYCX.js → runner-env-YTX4BAXF.js} +13 -13
- package/dist/{runner-identity-UDPLWT7I.js → runner-identity-4LMITADJ.js} +9 -9
- package/dist/{runner-key-JGIDJTHH.js → runner-key-QTQRIW4N.js} +44 -44
- package/dist/{session-sender-4QKSVX5Z.js → session-sender-YAM3GNFD.js} +17 -17
- package/dist/{spec-cmd-QAOTQPI6.js → spec-cmd-VE4XIZ6Z.js} +14 -14
- package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
- package/dist/{state-OTWJW4O7.js → state-GBESQ6UB.js} +7 -7
- package/dist/{status-OKZHXEYB.js → status-SNQVVDRU.js} +44 -44
- package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
- package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-BXV3EVTU.js} +16 -16
- package/dist/update-steps-ZR4RQB7J.js +80 -0
- package/dist/{watch-4V7FZI5R.js → watch-FKHHEV3X.js} +16 -16
- package/dist/{work-claim-cmd-E2D4YHCS.js → work-claim-cmd-IVG4A3IZ.js} +19 -19
- package/dist/{work-cmd-VD362634.js → work-cmd-HSMQMQDL.js} +13 -13
- package/dist/{work-comment-cmd-EUI5IOQI.js → work-comment-cmd-OHGGZASQ.js} +15 -15
- package/dist/{work-demo-cmd-MGL3U6ZF.js → work-demo-cmd-TMMHK72J.js} +13 -13
- package/dist/{work-logs-cmd-QAJG75DG.js → work-logs-cmd-GQCUPUKG.js} +13 -13
- package/dist/{work-open-pr-cmd-SXVSMG44.js → work-open-pr-cmd-XVXOXNIL.js} +14 -14
- package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-E75ZUOAD.js} +13 -13
- package/dist/{work-proofs-cmd-AAHTMSCF.js → work-proofs-cmd-LDMQ37OH.js} +15 -15
- package/dist/{work-proofs-record-LLUEXW7I.js → work-proofs-record-VJG27HMI.js} +22 -22
- package/dist/{work-stop-cmd-RZLGWQJ5.js → work-stop-cmd-JSFV7AL2.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/dist/caller-WSMJJSFL.js +0 -23
- package/dist/find-unit-RYYTX2O5.js +0 -24
- package/dist/host-checks-KLMATCMD.js +0 -79
- package/dist/init-BB2LERCZ.js +0 -79
- package/dist/loop-7MAMONQJ.js +0 -90
- package/dist/machine-HDHSI7WF.js +0 -79
- package/dist/pending-RXJKH4AC.js +0 -18
- package/dist/update-steps-W56ITCKQ.js +0 -80
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
6
|
-
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-F2UM3NDF.js';
|
|
4
|
+
import { parseSize } from './chunk-GTJLKBN7.js';
|
|
5
|
+
import { runnerDir } from './chunk-63KUYXOH.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-HBYFB3LK.js';
|
|
7
|
+
import { credentialAgent, credentialNames, credentialForms } from './chunk-CFHM562L.js';
|
|
8
|
+
import { defaultAgents } from './chunk-E6ESLX5E.js';
|
|
9
9
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
10
10
|
import { dirname, join } from 'path';
|
|
11
11
|
import { spawnSync } from 'child_process';
|
|
@@ -23,7 +23,8 @@ function credentialPath(path) {
|
|
|
23
23
|
return path.replace(/%/g, "%%");
|
|
24
24
|
}
|
|
25
25
|
function runnerUnit(unit, agents = defaultAgents()) {
|
|
26
|
-
const credentialLines =
|
|
26
|
+
const credentialLines = [credentialAgent(agents)].flatMap((agent) => {
|
|
27
|
+
if (agent === void 0) return [];
|
|
27
28
|
const { envFile, credentialId } = credentialNames(agent.descriptor);
|
|
28
29
|
return unit.credential === "load" ? `LoadCredential=${credentialId}:${credentialPath(`${unit.configDir}/${envFile}`)}` : `EnvironmentFile=-${escapeUnitPath(`${unit.configDir}/${envFile}`)}`;
|
|
29
30
|
});
|
|
@@ -203,7 +204,8 @@ function credentialFileIn(configDir, agents) {
|
|
|
203
204
|
return agent === void 0 ? void 0 : credentialFileOf(configDir, agent);
|
|
204
205
|
}
|
|
205
206
|
function prepareCredentialFile(configDir, lines, agents) {
|
|
206
|
-
|
|
207
|
+
const agent = credentialAgent(agents);
|
|
208
|
+
return agent === void 0 || prepareAgentCredentialFile(configDir, lines, agent);
|
|
207
209
|
}
|
|
208
210
|
function prepareAgentCredentialFile(configDir, lines, agent) {
|
|
209
211
|
const file = credentialFileOf(configDir, agent);
|
|
@@ -228,7 +230,8 @@ function prepareAgentCredentialFile(configDir, lines, agent) {
|
|
|
228
230
|
}
|
|
229
231
|
}
|
|
230
232
|
function finishCredentialMove(configDir, lines, agents, reload) {
|
|
231
|
-
|
|
233
|
+
const agent = credentialAgent(agents);
|
|
234
|
+
if (agent !== void 0) finishAgentCredentialMove(configDir, lines, agent, reload);
|
|
232
235
|
}
|
|
233
236
|
function finishAgentCredentialMove(configDir, lines, agent, reload) {
|
|
234
237
|
const file = credentialFileOf(configDir, agent);
|
|
@@ -1,7 +1,7 @@
|
|
|
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-4S564XTG.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-NFYXRAEV.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { writeFleetState } from './chunk-
|
|
4
|
-
import { writePendingUpdate } from './chunk-
|
|
5
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { writeFleetState } from './chunk-WSZZKMXF.js';
|
|
4
|
+
import { writePendingUpdate } from './chunk-3JYR5R57.js';
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-WGLYAMVK.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
9
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-IRJ6EGQT.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-ZKJGZQ63.js';
|
|
10
10
|
import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-YVRJDMDL.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-7WZNTLNB.js';
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-KYDKOYZD.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-WZ5YJJMP.js';
|
|
15
|
+
import { RepoFilter } from './chunk-2P532NZM.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-IKAGRGLY.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-PL2AGLJF.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-H4H3KK25.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
31
|
-
import { runnerAgents } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-UVKPDGLM.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-RY5QFTXJ.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-F2UM3NDF.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-UD6I7QJJ.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-GTJLKBN7.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-DIL7U77P.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-63KUYXOH.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-22JLORO6.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-HBYFB3LK.js';
|
|
31
|
+
import { jobCommandEnv, runnerAgents } from './chunk-CFHM562L.js';
|
|
32
32
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
33
33
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
34
34
|
import { join, dirname } from 'path';
|
|
@@ -2205,7 +2205,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2205
2205
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2206
2206
|
);
|
|
2207
2207
|
async function tryClaimAndStart(state, item, queue) {
|
|
2208
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2208
|
+
const { postJson: postJson2 } = await import('./work-cmd-HSMQMQDL.js');
|
|
2209
2209
|
const log = logOf(state);
|
|
2210
2210
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2211
2211
|
const claim = await retrySend(
|
|
@@ -2774,7 +2774,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2774
2774
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
const
|
|
2777
|
+
const commandEnv = jobCommandEnv(await prepareSession(state, active, item, queue, tag), state.deps.agents);
|
|
2778
2778
|
job = active.job;
|
|
2779
2779
|
let running;
|
|
2780
2780
|
try {
|
|
@@ -2785,14 +2785,14 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2785
2785
|
job.microvm.commandDir = MICROVM_COMMAND_DIR;
|
|
2786
2786
|
job.microvm.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2787
2787
|
writeJobFile(jobFilePath, job);
|
|
2788
|
-
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config, extraEnv:
|
|
2788
|
+
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config, extraEnv: commandEnv });
|
|
2789
2789
|
} else {
|
|
2790
|
-
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js"), extraEnv:
|
|
2790
|
+
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js"), extraEnv: commandEnv });
|
|
2791
2791
|
running = runCommand(composed.line, { ...composed.env, OUTERLAYER_JOB_DIR: dirPath }, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2792
2792
|
}
|
|
2793
2793
|
} else if (job.container !== void 0) {
|
|
2794
2794
|
const runtime = runtimeOf(state);
|
|
2795
|
-
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config, extraEnv:
|
|
2795
|
+
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config, extraEnv: commandEnv });
|
|
2796
2796
|
job.container.tracking = "container";
|
|
2797
2797
|
job.container.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2798
2798
|
writeJobFile(jobFilePath, job);
|
|
@@ -2803,8 +2803,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2803
2803
|
}
|
|
2804
2804
|
} else {
|
|
2805
2805
|
const build = job.build;
|
|
2806
|
-
const
|
|
2807
|
-
running = build.exec === void 0 ? runCommand(cmdline,
|
|
2806
|
+
const commandEnv2 = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce);
|
|
2807
|
+
running = build.exec === void 0 ? runCommand(cmdline, commandEnv2, workdir, join(dirPath, "command.log"), state.deps.spawnFn) : runCommand(execCommandLine(build.exec, workdir, cmdline), commandEnv2, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2808
2808
|
}
|
|
2809
2809
|
} catch (err) {
|
|
2810
2810
|
log.error(`${tag} command could not start: ${describeCallFailure(err)} \xB7 ending job as failed`);
|
|
@@ -3558,7 +3558,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3558
3558
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3559
3559
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3560
3560
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3561
|
-
return (await import('./check-
|
|
3561
|
+
return (await import('./check-4T4FDFLZ.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3562
3562
|
},
|
|
3563
3563
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3564
3564
|
log
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
10
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
11
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-KYDKOYZD.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WZ5YJJMP.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-RY5QFTXJ.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-F2UM3NDF.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-UD6I7QJJ.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-DIL7U77P.js';
|
|
9
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-HBYFB3LK.js';
|
|
10
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-CFHM562L.js';
|
|
11
|
+
import { defaultAgents } from './chunk-E6ESLX5E.js';
|
|
12
12
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
13
13
|
import { join, dirname } from 'path';
|
|
14
14
|
import { totalmem } from 'os';
|
|
@@ -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-KYDKOYZD.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-IKAGRGLY.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-WDMFRVOX.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,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { withInjectedPrograms } from './chunk-
|
|
4
|
-
import { sharedSkillNames } from './chunk-
|
|
3
|
+
import { withInjectedPrograms } from './chunk-T3MVV6LG.js';
|
|
4
|
+
import { sharedSkillNames } from './chunk-BQUI64BU.js';
|
|
5
5
|
import { GOVERNANCE_VARIABLE, versionAtLeast, CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { setupMachineSkills } from './chunk-
|
|
8
|
-
import { defaultAgents, agentById, legacyAgent } from './chunk-
|
|
9
|
-
import './chunk-
|
|
7
|
+
import { setupMachineSkills } from './chunk-RYSGOWHG.js';
|
|
8
|
+
import { defaultAgents, agentById, legacyAgent } from './chunk-E6ESLX5E.js';
|
|
9
|
+
import './chunk-WWTZLRPH.js';
|
|
10
10
|
import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
11
11
|
import './chunk-CDDED64E.js';
|
|
12
12
|
import './chunk-RA3O54FC.js';
|
|
@@ -325,7 +325,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
325
325
|
return 1;
|
|
326
326
|
}
|
|
327
327
|
} else {
|
|
328
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
328
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-N7FFBGPD.js');
|
|
329
329
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
330
330
|
if (plane.kind === "none") {
|
|
331
331
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|