@outerlayer/cli 0.38.0-next.20261105132355 → 0.38.0-next.20261105195352
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/README.md +5 -0
- package/dist/{agent-setup-RXMEQ7PA.js → agent-setup-THQTFPYB.js} +19 -19
- package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-H5LKM3HG.js} +4 -4
- package/dist/{bridge-F4BNXRM2.js → bridge-RN5JYY7N.js} +7 -7
- package/dist/{build-ZH5MAZNM.js → build-DJDZXY7M.js} +13 -13
- package/dist/{build-disk-GPCMOIZV.js → build-disk-PN7QBYVR.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-ZMVXHOEJ.js → builder-NJXSBAX3.js} +10 -10
- package/dist/caller-T65G6G3Z.js +23 -0
- package/dist/{check-HXGQQAJS.js → check-QF7RGLUL.js} +56 -56
- package/dist/{chunk-IG7SBYJY.js → chunk-2VUBHRPG.js} +1 -1
- package/dist/{chunk-Y2HVISUN.js → chunk-365EXSFH.js} +1 -1
- package/dist/{chunk-EVFZUFCO.js → chunk-3CN77FDB.js} +4 -4
- package/dist/{chunk-KFJIOCZS.js → chunk-3FKWVYWC.js} +3 -3
- package/dist/{chunk-PMBG7IYE.js → chunk-3YCKLA4N.js} +10 -10
- package/dist/{chunk-64D2YZK5.js → chunk-44332APJ.js} +1 -1
- package/dist/{chunk-J7MMYBBV.js → chunk-5BU252QJ.js} +5 -5
- package/dist/{chunk-3J7F3VGZ.js → chunk-6S4THFJO.js} +2 -2
- package/dist/{chunk-DP6ZOSCR.js → chunk-6UXPXENL.js} +24 -10
- package/dist/{chunk-Y5ZKDLNX.js → chunk-6VCNDRNW.js} +15 -15
- package/dist/{chunk-L25GQH45.js → chunk-6Z5H7JV3.js} +1 -1
- package/dist/{chunk-GYUHWK2N.js → chunk-72DXH6AP.js} +9 -9
- package/dist/{chunk-K7KQCOSM.js → chunk-75D54355.js} +9 -9
- package/dist/{chunk-LFHJZDES.js → chunk-7DHQVVEC.js} +16 -16
- package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
- package/dist/{chunk-RM3K57Q7.js → chunk-A5FIUS53.js} +39 -16
- package/dist/{chunk-45UZPTDQ.js → chunk-AGDRXJSZ.js} +1 -1
- package/dist/{chunk-GTJ2WSYI.js → chunk-AUQPAVRV.js} +376 -307
- package/dist/{chunk-XN4A275V.js → chunk-BHATB3L2.js} +23 -13
- package/dist/{chunk-MPGTKJOM.js → chunk-BM25MMUE.js} +3 -3
- package/dist/{chunk-3PR7BPMG.js → chunk-BP3B5R7Y.js} +4 -4
- package/dist/{chunk-K7BI4TLM.js → chunk-DDBCRY3Y.js} +20 -7
- package/dist/{chunk-VV2VLQWG.js → chunk-DSR3VW72.js} +2 -2
- package/dist/{chunk-AWRRWWA7.js → chunk-EJOZNQBE.js} +7 -7
- package/dist/{chunk-MY6T3N3A.js → chunk-EUA3SKPV.js} +1 -1
- package/dist/{chunk-ZEEQB7VM.js → chunk-FIXRXONQ.js} +5 -5
- package/dist/{chunk-2C3XLYO5.js → chunk-G74ZB2V4.js} +1 -1
- package/dist/{chunk-EKRLMOWS.js → chunk-GEC2G3SJ.js} +6 -6
- package/dist/{chunk-JCEJARDB.js → chunk-GUYDCCUH.js} +1 -1
- package/dist/{chunk-2RKPEUGK.js → chunk-HBGVQT33.js} +1 -1
- package/dist/{chunk-GZETHU2Z.js → chunk-HLBN3FLS.js} +3 -3
- package/dist/{chunk-IJN3GP4M.js → chunk-HUMQ4NLZ.js} +1 -1
- package/dist/{chunk-HI5RBFL3.js → chunk-HV44EL6A.js} +14 -9
- package/dist/{chunk-VG524OUD.js → chunk-ID3HBQYZ.js} +5 -5
- package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
- package/dist/{chunk-SKV6FO37.js → chunk-KEY5IDTC.js} +4 -4
- package/dist/{chunk-KXCTWOPU.js → chunk-KZG3R5YD.js} +3 -3
- package/dist/{chunk-M4WTELYI.js → chunk-LQJAZ4VK.js} +3 -3
- package/dist/{chunk-DOKFFSOZ.js → chunk-LWHHAZ75.js} +2 -2
- package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
- package/dist/{chunk-35RIDLSD.js → chunk-NAGY6ISM.js} +2 -2
- package/dist/{chunk-QDM23DTW.js → chunk-NFKERPLC.js} +10 -10
- package/dist/{chunk-HOCVTWV2.js → chunk-NIUSFUUS.js} +1 -1
- package/dist/{chunk-GEW4TNCL.js → chunk-NYWLOOIL.js} +7 -7
- package/dist/{chunk-GMRIR2MF.js → chunk-O4CWZFC4.js} +7 -7
- package/dist/{chunk-LMT72G74.js → chunk-OD2F225Q.js} +1 -1
- package/dist/{chunk-MB7IX6DO.js → chunk-ORSNYGXN.js} +1 -1
- package/dist/{chunk-TE6GQJRW.js → chunk-OVHBDADU.js} +1 -1
- package/dist/{chunk-IYG543BV.js → chunk-P22JMQJB.js} +3 -3
- package/dist/{chunk-J56SR6X4.js → chunk-P26TVBYV.js} +1 -1
- package/dist/{chunk-HU3POMM4.js → chunk-P64TL3GV.js} +6 -6
- package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
- package/dist/{chunk-OVRLLZPJ.js → chunk-PWCP3YVA.js} +1 -1
- package/dist/{chunk-D5JJQRW7.js → chunk-QNPJ4VZ2.js} +9 -9
- package/dist/{chunk-SUMRSD2Q.js → chunk-QNQS4PET.js} +1 -1
- package/dist/{chunk-6XYKZH3K.js → chunk-R2QIQZ4V.js} +5 -5
- package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
- package/dist/{chunk-5M3KXOPY.js → chunk-S24KG7NY.js} +2 -2
- package/dist/{chunk-W7LJQ2GU.js → chunk-SCH5S3VW.js} +4 -4
- package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
- package/dist/{chunk-VUSYGNNN.js → chunk-SZKBH2BO.js} +1 -1
- package/dist/{chunk-YU6XPJ5I.js → chunk-SZN3CSEP.js} +3 -3
- package/dist/{chunk-7476RWW6.js → chunk-TTYZDLGW.js} +99 -37
- package/dist/{chunk-XUXDUOJI.js → chunk-UAVBSFHI.js} +5 -5
- package/dist/{chunk-SSSPZ3TB.js → chunk-UEFLAGRW.js} +1 -1
- package/dist/{chunk-KXKVMSHC.js → chunk-UFDJDVZD.js} +1 -1
- package/dist/{chunk-3B5H5MGB.js → chunk-V52EY5UK.js} +1 -1
- package/dist/{chunk-HVUS5WRU.js → chunk-WH4OWQ6T.js} +3 -3
- package/dist/{chunk-BMYIPXBG.js → chunk-WPLNTUS6.js} +3 -3
- package/dist/{chunk-FRQPX2QR.js → chunk-XGQ7ZHNH.js} +3 -3
- package/dist/{chunk-IYUJFAQD.js → chunk-XJPTMZJG.js} +917 -34
- package/dist/{chunk-2FDWTE6F.js → chunk-ZFZ62TU4.js} +5 -5
- package/dist/{chunk-U63SE2NJ.js → chunk-ZOLDM52Z.js} +1 -1
- package/dist/{chunk-H6H5GCM6.js → chunk-ZRYBGZI7.js} +19 -8
- package/dist/{chunk-CUAV3727.js → chunk-ZZZIOKUN.js} +3 -3
- package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-LIV7LKKT.js} +8 -8
- package/dist/{cli-RU4HLUZP.js → cli-NKKF5PF5.js} +162 -149
- package/dist/{command-HRXMLFOT.js → command-ZQDMVPD4.js} +50 -50
- package/dist/{config-J4NNZ2XO.js → config-6LQKXZNE.js} +12 -12
- package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-KHOYYXIY.js} +11 -11
- package/dist/{container-start-JNTWQOMK.js → container-start-FGSVYG2T.js} +54 -49
- package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-WYI3QQBI.js} +4 -4
- package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-MUSMZ3ZM.js} +12 -12
- package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-UGMPLX2S.js} +15 -15
- package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-GO4ZIP4J.js} +8 -8
- package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-YOIL75H3.js} +20 -20
- package/dist/{docker-CAMJXBAJ.js → docker-IWTHGXFC.js} +10 -10
- package/dist/{doctor-2Z224QH4.js → doctor-UUCRZ7JO.js} +55 -55
- package/dist/{emit-artifact-cmd-CGY656UZ.js → emit-artifact-cmd-IG5O5KUV.js} +19 -19
- package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-KGBGKB56.js} +7 -7
- package/dist/{emit-criteria-cmd-3HYUUSDK.js → emit-criteria-cmd-HV3RXCV5.js} +14 -14
- package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-ZKHGJUW7.js} +20 -20
- package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-PBTELK66.js} +14 -14
- package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-JJUNDXEH.js} +18 -18
- package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-5VZQBGLU.js} +14 -14
- package/dist/{exec-client-IPPD3NF4.js → exec-client-PH7FI3Q3.js} +8 -8
- package/dist/find-unit-527IGJNL.js +24 -0
- package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-PVP6D4ZV.js} +14 -14
- package/dist/{fleet-readiness-F46LOKJ6.js → fleet-readiness-YZZ6YDXZ.js} +14 -14
- package/dist/{governing-source-4XYZYZCD.js → governing-source-UUDIJISJ.js} +20 -20
- package/dist/{guest-init-CFJM25V5.js → guest-init-KXBNS3NA.js} +9 -9
- package/dist/{hook-fast-RNST4WJH.js → hook-fast-CRC7M2YT.js} +4 -4
- package/dist/{hook-install-G3FUCXBE.js → hook-install-3UNSUQVP.js} +4 -4
- package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
- package/dist/host-checks-ISCYYAYB.js +79 -0
- package/dist/host-key-535Z4MV6.js +18 -0
- package/dist/{image-tag-5Z2NKCHC.js → image-tag-S5LR2FDL.js} +8 -8
- package/dist/index.js +7 -7
- package/dist/{init-NCBQ2DOK.js → init-2JDKKCKC.js} +46 -46
- package/dist/init-CGYS6IGX.js +79 -0
- package/dist/{init-agent-CNHQT7YK.js → init-agent-ESCPFY6L.js} +47 -47
- package/dist/{init-cmd-I3BH7SXO.js → init-cmd-RXB7ZCFD.js} +28 -28
- package/dist/{init-update-WYM5WSM7.js → init-update-YIQRJG5U.js} +23 -23
- package/dist/{install-cmd-3NOHEA6E.js → install-cmd-OG4IHLHP.js} +10 -10
- package/dist/{layout-RPYMSWCY.js → layout-ZDD5JMAD.js} +4 -4
- package/dist/{logs-XKEW5EOB.js → logs-LLFBENNJ.js} +7 -7
- package/dist/loop-36JR7RB2.js +90 -0
- package/dist/machine-DGMGTVD7.js +79 -0
- package/dist/{machine-skills-RP2Y5F32.js → machine-skills-G253FBPY.js} +4 -4
- package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-WLU64HPE.js} +4 -4
- package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-YJX7HUHL.js} +9 -9
- package/dist/{paths-6AMRSXZK.js → paths-5OXE4APD.js} +7 -7
- package/dist/pending-YC4KF2AW.js +18 -0
- package/dist/{pidfile-3BILBCEO.js → pidfile-ID52SG3L.js} +8 -8
- package/dist/{record-MV6WJGZT.js → record-XIM2Z2JO.js} +8 -8
- package/dist/{relay-CO5I2WOV.js → relay-T22SKZ3G.js} +5 -5
- package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-64ZEAKJ4.js} +5 -5
- package/dist/runner-agents-AGFDPTJN.js +14 -0
- package/dist/runner-env-W7LASDJX.js +24 -0
- package/dist/{runner-identity-IVP2GW33.js → runner-identity-T7HDG3QU.js} +10 -10
- package/dist/{runner-key-E3ORW6RS.js → runner-key-RXTJDYTI.js} +46 -46
- package/dist/{session-sender-PWYFVWN6.js → session-sender-B6CSWAHX.js} +19 -19
- package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
- package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-HIQYYRBQ.js} +15 -15
- package/dist/{starter-pack-W6S3L76K.js → starter-pack-AK7Z6XLF.js} +5 -5
- package/dist/state-ZQN2O2PB.js +18 -0
- package/dist/{status-3RD4MERA.js → status-YD7P337P.js} +46 -46
- package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
- package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-BRP4QE2W.js} +18 -18
- package/dist/update-steps-SBBEBOIJ.js +80 -0
- package/dist/{watch-IA6UDVSF.js → watch-B3NVFDVP.js} +18 -18
- package/dist/{work-claim-cmd-VBRJO6FU.js → work-claim-cmd-H6M5ANKL.js} +21 -21
- package/dist/{work-cmd-2LXE27RX.js → work-cmd-DJNV646Q.js} +14 -14
- package/dist/{work-comment-cmd-ER53OPLH.js → work-comment-cmd-6QZQPRJ7.js} +17 -17
- package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-6MZIVYHK.js} +14 -14
- package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-IS4GV5VC.js} +14 -14
- package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-KZSKJKEQ.js} +15 -15
- package/dist/{work-pr-cmd-FCNFYWUR.js → work-pr-cmd-ARVEEUF3.js} +14 -14
- package/dist/{work-proofs-cmd-6DV35Y2W.js → work-proofs-cmd-YUH3XYQE.js} +16 -16
- package/dist/{work-proofs-record-7YI27TFT.js → work-proofs-record-BDYS2VU2.js} +24 -24
- package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-U67OPSCS.js} +14 -14
- package/package.json +2 -2
- package/dist/caller-J7FR4VBJ.js +0 -23
- package/dist/find-unit-N3OJBFS5.js +0 -24
- package/dist/host-checks-TXG6OTBM.js +0 -79
- package/dist/host-key-QUBI74MS.js +0 -18
- package/dist/init-YENLMMJU.js +0 -79
- package/dist/loop-TIX5JGHS.js +0 -90
- package/dist/machine-62FUJBEK.js +0 -79
- package/dist/pending-C4XQUKWA.js +0 -18
- package/dist/runner-agents-FQ4FODZN.js +0 -14
- package/dist/runner-env-72OTIZV2.js +0 -24
- package/dist/state-C3FRODOO.js +0 -18
- package/dist/update-steps-4AI2DSYF.js +0 -80
|
@@ -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-AUQPAVRV.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-HBGVQT33.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-IWTHGXFC.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 = "";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-XJPTMZJG.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -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 { credentialAgent, credentialNames, credentialForms } from './chunk-
|
|
8
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-KEY5IDTC.js';
|
|
4
|
+
import { parseSize } from './chunk-3YCKLA4N.js';
|
|
5
|
+
import { runnerDir } from './chunk-G74ZB2V4.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-6UXPXENL.js';
|
|
7
|
+
import { credentialAgent, credentialNames, credentialForms } from './chunk-A5FIUS53.js';
|
|
8
|
+
import { defaultAgents } from './chunk-XJPTMZJG.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -108,9 +108,49 @@ var CLAUDE_CODE_HOOKS = {
|
|
|
108
108
|
statusLine
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
+
// ../agents/src/opencode/hooks.ts
|
|
112
|
+
var REGISTERED2 = [
|
|
113
|
+
["session.execution.started", "session-start"],
|
|
114
|
+
["session.tool.success", "tool-used"],
|
|
115
|
+
["session.usage.updated", "usage"],
|
|
116
|
+
["session.execution.succeeded", "turn-ended"]
|
|
117
|
+
];
|
|
118
|
+
var KIND_BY_NAME2 = new Map(REGISTERED2);
|
|
119
|
+
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
120
|
+
var text2 = (value) => typeof value === "string" ? value : void 0;
|
|
121
|
+
function parsePayload2(stdin) {
|
|
122
|
+
try {
|
|
123
|
+
const parsed = stdin === "" ? {} : JSON.parse(stdin);
|
|
124
|
+
return isObject(parsed) ? parsed : {};
|
|
125
|
+
} catch {
|
|
126
|
+
return {};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function decode2(name, stdin) {
|
|
130
|
+
const payload = parsePayload2(stdin);
|
|
131
|
+
const nativeName = String(name ?? payload.type ?? "unknown");
|
|
132
|
+
const kind = KIND_BY_NAME2.get(nativeName);
|
|
133
|
+
const sessionId = text2(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text2(payload.sessionID);
|
|
134
|
+
const cwd = text2(isObject(payload.location) ? payload.location.directory : void 0);
|
|
135
|
+
return {
|
|
136
|
+
nativeName,
|
|
137
|
+
...kind === void 0 ? {} : { kind },
|
|
138
|
+
...kind !== void 0 && sessionId !== void 0 ? { event: { kind, sessionId, cwd: cwd ?? "", session: { agent: "opencode", id: sessionId, locator: { kind: "export", id: sessionId } } } } : {},
|
|
139
|
+
spool: { sessionId: sessionId ?? null, transcriptPath: null, cwd: cwd ?? null, payloadEvent: payload.type ?? null },
|
|
140
|
+
fromSubagent: false
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
var OPENCODE_CODEC = {
|
|
144
|
+
events: REGISTERED2.map(([name]) => name),
|
|
145
|
+
decode: decode2,
|
|
146
|
+
// OpenCode takes no context from a hook, so there is nothing to print.
|
|
147
|
+
reply: () => ""
|
|
148
|
+
};
|
|
149
|
+
|
|
111
150
|
// ../agents/src/native/hook-codecs.ts
|
|
112
151
|
var HOOK_CODECS = {
|
|
113
|
-
"claude-code": CLAUDE_CODE_HOOKS
|
|
152
|
+
"claude-code": CLAUDE_CODE_HOOKS,
|
|
153
|
+
opencode: OPENCODE_CODEC
|
|
114
154
|
};
|
|
115
155
|
|
|
116
156
|
// ../agents/src/lifecycle.ts
|
|
@@ -118,4 +158,4 @@ function hookCodec(agentId) {
|
|
|
118
158
|
return HOOK_CODECS[agentId ?? LEGACY_AGENT];
|
|
119
159
|
}
|
|
120
160
|
|
|
121
|
-
export { CLAUDE_CODE_HOOKS, hookCodec };
|
|
161
|
+
export { CLAUDE_CODE_HOOKS, OPENCODE_CODEC, hookCodec };
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
5
5
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
6
|
-
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-
|
|
6
|
+
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-XJPTMZJG.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-6VCNDRNW.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-GUYDCCUH.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
9
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-3YCKLA4N.js';
|
|
7
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-UFDJDVZD.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-G74ZB2V4.js';
|
|
9
|
+
import { withGitConfig, tokenHeader } from './chunk-UAVBSFHI.js';
|
|
10
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-A5FIUS53.js';
|
|
11
11
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -196,7 +196,7 @@ function recipeKey(checkoutDir, location, universalImage) {
|
|
|
196
196
|
return sha256(...files.sort().flatMap((rel) => hashFile(checkoutDir, rel)));
|
|
197
197
|
}
|
|
198
198
|
function toolsKey(parts) {
|
|
199
|
-
const base = [parts.buildId, "\0", parts.
|
|
199
|
+
const base = [parts.buildId, "\0", ...parts.agentPins.flatMap(({ id, version }) => [id, "\0", version, "\0"]), parts.nodeImage, "\0", parts.ghVersion, "\0", parts.tiniVersion];
|
|
200
200
|
return sha256(
|
|
201
201
|
...base,
|
|
202
202
|
...parts.guestHelperSha256 === void 0 ? [] : ["\0guest-helper\0", parts.guestHelperSha256],
|
|
@@ -343,7 +343,7 @@ async function prepareImageBuild(opts) {
|
|
|
343
343
|
releaseShared = () => releasePidFile(sharedLock, self);
|
|
344
344
|
}
|
|
345
345
|
const rKey = recipeKey(checkout.dir, location, UNIVERSAL_IMAGE);
|
|
346
|
-
const tKey = toolsKey({ buildId: opts.cli.buildId,
|
|
346
|
+
const tKey = toolsKey({ buildId: opts.cli.buildId, agentPins: imageAgentPins(void 0, agentVersion), nodeImage, ghVersion: GH_VERSION, tiniVersion: TINI_VERSION, guestHelperSha256: opts.guestHelper?.sha256, mediaPins: MEDIA_PINS });
|
|
347
347
|
const recordDir = join(records, `${rKey.slice(0, KEY_PREFIX)}-${tKey.slice(0, KEY_PREFIX)}`);
|
|
348
348
|
return {
|
|
349
349
|
repository,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-G74ZB2V4.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
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-ZRYBGZI7.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-HUMQ4NLZ.js';
|
|
6
|
+
import { autoConnect } from './chunk-LWHHAZ75.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-VVZIFOAN.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-SZKBH2BO.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity } from './chunk-QAFR65VC.js';
|
|
15
15
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-2JIGPSVF.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { hookCodec } from './chunk-
|
|
4
|
+
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
5
5
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
6
6
|
import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
|
|
7
7
|
import { spawn } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-
|
|
4
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-XJPTMZJG.js';
|
|
4
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
6
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-UAVBSFHI.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-6UXPXENL.js';
|
|
5
|
+
import { defaultAgents } from './chunk-XJPTMZJG.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -21,8 +21,11 @@ function versionAtLeast(text, minimum = MINIMUM_CLAUDE_VERSION) {
|
|
|
21
21
|
const difference = have.map((part, i) => part - need[i]).find((delta) => delta !== 0);
|
|
22
22
|
return (difference ?? 0) >= 0;
|
|
23
23
|
}
|
|
24
|
-
var SHIM_SCRIPT =
|
|
25
|
-
|
|
24
|
+
var SHIM_SCRIPT = shimScriptFor(LEGACY.legacy.subcommand);
|
|
25
|
+
function shimScriptFor(subcommand) {
|
|
26
|
+
return `#!/bin/sh
|
|
27
|
+
exec outerlayer ${subcommand} "$@"
|
|
26
28
|
`;
|
|
29
|
+
}
|
|
27
30
|
|
|
28
|
-
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, versionAtLeast };
|
|
31
|
+
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, shimScriptFor, versionAtLeast };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-ZOLDM52Z.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
7
|
-
import { LEGACY_AGENT } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-P26TVBYV.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-XJPTMZJG.js';
|
|
7
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
10
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -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-2VUBHRPG.js';
|
|
4
|
+
import { writePendingUpdate } from './chunk-QNQS4PET.js';
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-6Z5H7JV3.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-
|
|
10
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
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, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-NYWLOOIL.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-P22JMQJB.js';
|
|
10
|
+
import { RUNNER_PROTOCOL } from './chunk-OVHBDADU.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-72DXH6AP.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-NIUSFUUS.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, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-AUQPAVRV.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-P64TL3GV.js';
|
|
15
|
+
import { RepoFilter } from './chunk-ZRYBGZI7.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-HBGVQT33.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-DSR3VW72.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-GUYDCCUH.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 { jobCommandEnv, runnerAgents } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-NFKERPLC.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-O4CWZFC4.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-KEY5IDTC.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-6S4THFJO.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-3YCKLA4N.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-ZOLDM52Z.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-G74ZB2V4.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-UAVBSFHI.js';
|
|
30
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-6UXPXENL.js';
|
|
31
|
+
import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-A5FIUS53.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';
|
|
@@ -86,6 +86,19 @@ function heldImages(configPath) {
|
|
|
86
86
|
}
|
|
87
87
|
return [...held].sort().slice(0, MAX_IMAGES);
|
|
88
88
|
}
|
|
89
|
+
var MAX_DISKS = 500;
|
|
90
|
+
var WORK_ITEM_UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
91
|
+
function heldItemDisks(configPath) {
|
|
92
|
+
const held = /* @__PURE__ */ new Set();
|
|
93
|
+
for (const scope of storeScopes(configPath)) {
|
|
94
|
+
if (scope === void 0) continue;
|
|
95
|
+
for (const kept of listItemDisks(configPath, scope)) {
|
|
96
|
+
const id = kept.record.workItemId.toLowerCase();
|
|
97
|
+
if (WORK_ITEM_UUID.test(id)) held.add(id);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return [...held].sort().slice(0, MAX_DISKS);
|
|
101
|
+
}
|
|
89
102
|
|
|
90
103
|
// src/runner/fleet/loop.ts
|
|
91
104
|
var FLEET_CALL_TIMEOUT_MS = 2e4;
|
|
@@ -175,13 +188,14 @@ function parseAnswer(data) {
|
|
|
175
188
|
...typeof data.runnerVersion === "string" ? { runnerVersion: data.runnerVersion } : {}
|
|
176
189
|
};
|
|
177
190
|
}
|
|
178
|
-
async function callFleetRoute(ports, memory, room, images) {
|
|
191
|
+
async function callFleetRoute(ports, memory, room, images, disks) {
|
|
179
192
|
const config = ports.config();
|
|
180
193
|
const hostKey = await ensureHostKey(config.configPath);
|
|
181
194
|
const body = {
|
|
182
195
|
total: room.total,
|
|
183
196
|
free: room.free,
|
|
184
197
|
images,
|
|
198
|
+
disks,
|
|
185
199
|
cliVersion: ports.cliVersion,
|
|
186
200
|
runnerProtocol: RUNNER_PROTOCOL,
|
|
187
201
|
// The first accepted call binds the machine to this host's key; the calls after it are signed and need not repeat it.
|
|
@@ -226,9 +240,10 @@ async function runFleetTick(ports, memory) {
|
|
|
226
240
|
const held = await ports.held();
|
|
227
241
|
memory.held = held;
|
|
228
242
|
const images = ports.images();
|
|
243
|
+
const disks = ports.disks();
|
|
229
244
|
for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
|
|
230
245
|
const room = fleetRoom(ports.facts(), ports.jobs(), held, ports.draining());
|
|
231
|
-
const answer = await callFleetRoute(ports, memory, room, images);
|
|
246
|
+
const answer = await callFleetRoute(ports, memory, room, images, disks);
|
|
232
247
|
if (answer === void 0) return;
|
|
233
248
|
memory.last = {
|
|
234
249
|
calledAt: ports.now().toISOString(),
|
|
@@ -265,7 +280,7 @@ async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
|
265
280
|
if (memory.lastAnsweredMs !== void 0 && ports.now().getTime() - memory.lastAnsweredMs < minGapMs) return;
|
|
266
281
|
if (memory.keyDoubted || fleetConfigProblem(ports.config()) !== void 0) return;
|
|
267
282
|
const room = fleetRoom(ports.facts(), ports.jobs(), memory.held, ports.draining());
|
|
268
|
-
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, ports.images());
|
|
283
|
+
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, ports.images(), ports.disks());
|
|
269
284
|
if (answer === void 0) return;
|
|
270
285
|
memory.last = {
|
|
271
286
|
calledAt: ports.now().toISOString(),
|
|
@@ -921,6 +936,37 @@ function settleUpdate(args) {
|
|
|
921
936
|
args.log.error(`could not keep the update to ${marker.to}: ${messageOf(err)}`);
|
|
922
937
|
}
|
|
923
938
|
}
|
|
939
|
+
|
|
940
|
+
// src/runner/housekeeping/item-states.ts
|
|
941
|
+
var MAX_ITEM_STATE_IDS = 1e3;
|
|
942
|
+
var ITEM_STATES_TIMEOUT_MS = 2e4;
|
|
943
|
+
var FLEET_PATH = "/v1/fleet/item-states";
|
|
944
|
+
var RUNNER_PATH = "/v1/runner/item-states";
|
|
945
|
+
async function askItemStates(config, fetchImpl, ids, options = {}) {
|
|
946
|
+
try {
|
|
947
|
+
const hostKey = await ensureHostKey(config.configPath);
|
|
948
|
+
const fleet = config.fleet === true;
|
|
949
|
+
const { data } = await postJson(
|
|
950
|
+
config.url,
|
|
951
|
+
fleet ? FLEET_PATH : RUNNER_PATH,
|
|
952
|
+
config.apiKey,
|
|
953
|
+
fleet ? "" : config.appId ?? "",
|
|
954
|
+
{ workItemIds: ids.slice(0, MAX_ITEM_STATE_IDS) },
|
|
955
|
+
fetchImpl,
|
|
956
|
+
options.timeoutMs ?? ITEM_STATES_TIMEOUT_MS,
|
|
957
|
+
hostKey.signer
|
|
958
|
+
);
|
|
959
|
+
const states = data.states;
|
|
960
|
+
if (typeof states !== "object" || states === null || Array.isArray(states)) return void 0;
|
|
961
|
+
const known = {};
|
|
962
|
+
for (const [id, state] of Object.entries(states)) {
|
|
963
|
+
if (state === "open" || state === "closed") known[id] = state;
|
|
964
|
+
}
|
|
965
|
+
return known;
|
|
966
|
+
} catch {
|
|
967
|
+
return void 0;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
924
970
|
var HOOKS_DIR_NAME = "git-hooks";
|
|
925
971
|
var CO_AUTHOR_FILE = "co-author";
|
|
926
972
|
var HOOKS = [
|
|
@@ -2018,6 +2064,7 @@ function fleetPortsOf(state) {
|
|
|
2018
2064
|
jobs: () => [...state.jobs.values()].map((active) => active.job.size === void 0 ? {} : { size: active.job.size }),
|
|
2019
2065
|
facts: () => fleetFactsOf(state),
|
|
2020
2066
|
images: () => heldImages(state.config.configPath),
|
|
2067
|
+
disks: () => heldItemDisks(state.config.configPath),
|
|
2021
2068
|
applyStops: (stops) => applyStops(state, stops),
|
|
2022
2069
|
considerVersion: (named) => considerNamedVersion(state, named),
|
|
2023
2070
|
revoked: () => endRevokedBuilds(state),
|
|
@@ -2150,6 +2197,7 @@ async function housekeepingPass(state) {
|
|
|
2150
2197
|
workspaceMax: config.workspaceMax,
|
|
2151
2198
|
workspaceOrgMax: config.workspaceOrgMax,
|
|
2152
2199
|
workspaceKeepDays: config.workspaceKeepDays,
|
|
2200
|
+
itemStates: (ids) => askItemStates(state.config, state.deps.fetchImpl, ids),
|
|
2153
2201
|
removeHostBuilder: !hostBuilder,
|
|
2154
2202
|
docker,
|
|
2155
2203
|
now: state.deps.now ?? (() => /* @__PURE__ */ new Date()),
|
|
@@ -2239,7 +2287,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2239
2287
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2240
2288
|
);
|
|
2241
2289
|
async function tryClaimAndStart(state, item, queue) {
|
|
2242
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2290
|
+
const { postJson: postJson2 } = await import('./work-cmd-DJNV646Q.js');
|
|
2243
2291
|
const log = logOf(state);
|
|
2244
2292
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2245
2293
|
const claim = await retrySend(
|
|
@@ -2377,7 +2425,7 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
|
|
|
2377
2425
|
log.line(`${tag}: ${entry.repository} is left out of this build because its GitHub App installation is suspended`);
|
|
2378
2426
|
}
|
|
2379
2427
|
try {
|
|
2380
|
-
await startJob(state, item, queue, claimId, itemKey, branch, identity, repositories, fleet, data.freshDisk === true);
|
|
2428
|
+
await startJob(state, item, queue, claimId, itemKey, branch, identity, repositories, fleet, data.freshDisk === true, data.diskHeldElsewhere === true);
|
|
2381
2429
|
} catch (err) {
|
|
2382
2430
|
const stranded = [...state.jobs.values()].find((active) => active.job.claimId === claimId);
|
|
2383
2431
|
if (stranded === void 0) throw err;
|
|
@@ -2419,10 +2467,11 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2419
2467
|
workItemId: item.id,
|
|
2420
2468
|
queue,
|
|
2421
2469
|
builtin,
|
|
2470
|
+
job,
|
|
2422
2471
|
requireScrubNote: state.config.managed === true,
|
|
2423
2472
|
restore: async ({ dir, meta }) => {
|
|
2424
|
-
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta);
|
|
2425
|
-
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta);
|
|
2473
|
+
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta, job);
|
|
2474
|
+
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta, job);
|
|
2426
2475
|
},
|
|
2427
2476
|
log: (line) => log.line(`${tag} ${line}`)
|
|
2428
2477
|
}, state.deps.agents);
|
|
@@ -2434,7 +2483,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2434
2483
|
return void 0;
|
|
2435
2484
|
}
|
|
2436
2485
|
}
|
|
2437
|
-
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet, freshDisk) {
|
|
2486
|
+
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet, freshDisk, diskHeldElsewhere) {
|
|
2438
2487
|
const log = logOf(state);
|
|
2439
2488
|
const startedAt = nowOf(state);
|
|
2440
2489
|
const repositories = repositoriesOf({ repositories: claimed, repository: item.specRepository, branch });
|
|
@@ -2443,6 +2492,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2443
2492
|
mkdirSync(dirPath, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
2444
2493
|
const runnerRoot = runnerDir(state.config.configPath);
|
|
2445
2494
|
const jobFilePath = join(dirPath, "job.json");
|
|
2495
|
+
const jobAgentId = jobAgent({ command: state.config.commands[queue] }, state.deps.agents)?.descriptor.id;
|
|
2446
2496
|
let job = {
|
|
2447
2497
|
stateFormat: state.deps.jobStateFormat ?? JOB_STATE_FORMAT,
|
|
2448
2498
|
item: item.number,
|
|
@@ -2454,8 +2504,10 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2454
2504
|
// The work item the kept session belongs to. A fleet claim names it too, from the same listing.
|
|
2455
2505
|
workItemId: item.id,
|
|
2456
2506
|
...freshDisk ? { freshDisk: true } : {},
|
|
2507
|
+
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2457
2508
|
...fleet === void 0 ? {} : { appId: fleet.appId, organizationId: fleet.organizationId, size: fleet.size },
|
|
2458
2509
|
...primary === void 0 ? {} : { repository: primary.repository, repositories },
|
|
2510
|
+
...jobAgentId === void 0 ? {} : { agent: jobAgentId },
|
|
2459
2511
|
startedAt: startedAt.toISOString()
|
|
2460
2512
|
};
|
|
2461
2513
|
writeJobFile(jobFilePath, job);
|
|
@@ -2496,6 +2548,12 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2496
2548
|
return;
|
|
2497
2549
|
}
|
|
2498
2550
|
if (active.ending) return;
|
|
2551
|
+
const credentialProblem = state.config.managed === true ? void 0 : jobCredentialProblem(jobAgent(active.job, state.deps.agents), process.env, state.deps.agents);
|
|
2552
|
+
if (credentialProblem !== void 0) {
|
|
2553
|
+
log.error(`${tag} ${credentialProblem} \xB7 ending job as failed`);
|
|
2554
|
+
await endJob(state, active, "failed", { stage: "provision", reason: credentialProblem });
|
|
2555
|
+
return;
|
|
2556
|
+
}
|
|
2499
2557
|
if (state.config.managed === true) {
|
|
2500
2558
|
const fetched = await fetchManagedClaudeKey(claimCalls(state.config, active.job), claimItem(state.config, active.job), { fetchImpl: state.deps.fetchImpl, now: state.deps.now, sleep: state.deps.sleep });
|
|
2501
2559
|
if (active.ending) return;
|
|
@@ -2554,6 +2612,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2554
2612
|
queue,
|
|
2555
2613
|
workItemId: item.id,
|
|
2556
2614
|
...freshDisk ? { fresh: true } : {},
|
|
2615
|
+
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2557
2616
|
item,
|
|
2558
2617
|
itemKey,
|
|
2559
2618
|
tokens,
|
|
@@ -2572,7 +2631,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2572
2631
|
fetchImpl: state.deps.fetchImpl,
|
|
2573
2632
|
now: state.deps.now,
|
|
2574
2633
|
leaseExpiryMs: () => leaseExpiresAtMs(active.job),
|
|
2575
|
-
requireBuildSkill
|
|
2634
|
+
requireBuildSkill,
|
|
2635
|
+
job: active.job
|
|
2576
2636
|
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}`, aborted: false }));
|
|
2577
2637
|
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2578
2638
|
if (active.ending) return;
|
|
@@ -2599,6 +2659,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2599
2659
|
queue,
|
|
2600
2660
|
workItemId: item.id,
|
|
2601
2661
|
...freshDisk ? { fresh: true } : {},
|
|
2662
|
+
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2602
2663
|
item,
|
|
2603
2664
|
itemKey,
|
|
2604
2665
|
tokens,
|
|
@@ -2617,7 +2678,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2617
2678
|
fetchImpl: state.deps.fetchImpl,
|
|
2618
2679
|
now: state.deps.now,
|
|
2619
2680
|
leaseTimeLeftMs: leaseTimeLeftFor(state, active),
|
|
2620
|
-
requireBuildSkill
|
|
2681
|
+
requireBuildSkill,
|
|
2682
|
+
job: active.job
|
|
2621
2683
|
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}`, aborted: false }));
|
|
2622
2684
|
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2623
2685
|
if (active.ending) return;
|
|
@@ -2779,7 +2841,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2779
2841
|
workdir,
|
|
2780
2842
|
repository: primary?.repository,
|
|
2781
2843
|
lookup: (repository) => resolveGoverningSource({ config: claimCalls(state.config, active.job), repository, fetchImpl: state.deps.fetchImpl }).catch(() => void 0)
|
|
2782
|
-
}, state.deps.agents);
|
|
2844
|
+
}, state.deps.agents, active.job);
|
|
2783
2845
|
if (skillDecision.kind === "refuse") {
|
|
2784
2846
|
log.error(`${tag} ${skillDecision.reason} \xB7 ending job as failed`);
|
|
2785
2847
|
await endJob(state, active, "failed", { stage: "provision", reason: skillDecision.reason });
|
|
@@ -2808,7 +2870,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2808
2870
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2809
2871
|
return;
|
|
2810
2872
|
}
|
|
2811
|
-
const commandEnv = jobCommandEnv(await prepareSession(state, active, item, queue, tag), state.deps.agents);
|
|
2873
|
+
const commandEnv = jobCommandEnv(await prepareSession(state, active, item, queue, tag), state.deps.agents, active.job);
|
|
2812
2874
|
job = active.job;
|
|
2813
2875
|
let running;
|
|
2814
2876
|
try {
|
|
@@ -3601,7 +3663,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3601
3663
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3602
3664
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3603
3665
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3604
|
-
return (await import('./check-
|
|
3666
|
+
return (await import('./check-QF7RGLUL.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3605
3667
|
},
|
|
3606
3668
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3607
3669
|
log
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
4
|
-
import { strippedVariables } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
6
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-6UXPXENL.js';
|
|
4
|
+
import { strippedVariables } from './chunk-A5FIUS53.js';
|
|
5
|
+
import { defaultAgents } from './chunk-XJPTMZJG.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { MIN_SCRUBBED_LITERAL } from './chunk-QAFR65VC.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
@@ -537,7 +537,7 @@ function buildEnvironment(input) {
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
const destinations = destinationEnvironment(input.config.build?.destinations, containerLocalAddress);
|
|
540
|
-
const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents) : {};
|
|
540
|
+
const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents, void 0, input.job) : {};
|
|
541
541
|
const hooksPath = input.identity?.hooksPath;
|
|
542
542
|
const hooks = {};
|
|
543
543
|
if (hooksPath !== void 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-XJPTMZJG.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|