@outerlayer/cli 0.38.0-next.20261105155912 → 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/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-CZM3LZ7Y.js → check-QF7RGLUL.js} +55 -55
- 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-RVIZRXBK.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-OCDG3ZWH.js → chunk-72DXH6AP.js} +9 -9
- package/dist/{chunk-K7KQCOSM.js → chunk-75D54355.js} +9 -9
- package/dist/{chunk-WHPMCF7R.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-GLJX2CZY.js → chunk-AUQPAVRV.js} +350 -300
- 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-5YWOGS66.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-EOVVSXRH.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-XQSTN7NG.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-TOH7FJH3.js → chunk-TTYZDLGW.js} +42 -31
- 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-YMSYVF7O.js → cli-NKKF5PF5.js} +162 -149
- package/dist/{command-ZOWMTOWA.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-RZSGWDZG.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-NILQ2RUT.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-7OHFUQBV.js → init-2JDKKCKC.js} +46 -46
- package/dist/init-CGYS6IGX.js +79 -0
- package/dist/{init-agent-B5ADPZIB.js → init-agent-ESCPFY6L.js} +47 -47
- package/dist/{init-cmd-ZT2PXGPD.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-VCWF2EN7.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-HHM6TH6J.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-7TLC4DKU.js → work-claim-cmd-H6M5ANKL.js} +20 -20
- 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-UQU6SSFD.js → work-proofs-cmd-YUH3XYQE.js} +16 -16
- package/dist/{work-proofs-record-MKCYQLS2.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-PPTMNHRA.js +0 -79
- package/dist/host-key-QUBI74MS.js +0 -18
- package/dist/init-5ERGXSUD.js +0 -79
- package/dist/loop-HTKTSGBA.js +0 -90
- package/dist/machine-RBYGRRSM.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-WD25IX2R.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-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-NYWLOOIL.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-P22JMQJB.js';
|
|
10
10
|
import { RUNNER_PROTOCOL } from './chunk-OVHBDADU.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, 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-
|
|
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-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';
|
|
@@ -2287,7 +2287,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2287
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(" ")
|
|
2288
2288
|
);
|
|
2289
2289
|
async function tryClaimAndStart(state, item, queue) {
|
|
2290
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2290
|
+
const { postJson: postJson2 } = await import('./work-cmd-DJNV646Q.js');
|
|
2291
2291
|
const log = logOf(state);
|
|
2292
2292
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2293
2293
|
const claim = await retrySend(
|
|
@@ -2467,10 +2467,11 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2467
2467
|
workItemId: item.id,
|
|
2468
2468
|
queue,
|
|
2469
2469
|
builtin,
|
|
2470
|
+
job,
|
|
2470
2471
|
requireScrubNote: state.config.managed === true,
|
|
2471
2472
|
restore: async ({ dir, meta }) => {
|
|
2472
|
-
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta);
|
|
2473
|
-
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);
|
|
2474
2475
|
},
|
|
2475
2476
|
log: (line) => log.line(`${tag} ${line}`)
|
|
2476
2477
|
}, state.deps.agents);
|
|
@@ -2491,6 +2492,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2491
2492
|
mkdirSync(dirPath, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
2492
2493
|
const runnerRoot = runnerDir(state.config.configPath);
|
|
2493
2494
|
const jobFilePath = join(dirPath, "job.json");
|
|
2495
|
+
const jobAgentId = jobAgent({ command: state.config.commands[queue] }, state.deps.agents)?.descriptor.id;
|
|
2494
2496
|
let job = {
|
|
2495
2497
|
stateFormat: state.deps.jobStateFormat ?? JOB_STATE_FORMAT,
|
|
2496
2498
|
item: item.number,
|
|
@@ -2505,6 +2507,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2505
2507
|
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2506
2508
|
...fleet === void 0 ? {} : { appId: fleet.appId, organizationId: fleet.organizationId, size: fleet.size },
|
|
2507
2509
|
...primary === void 0 ? {} : { repository: primary.repository, repositories },
|
|
2510
|
+
...jobAgentId === void 0 ? {} : { agent: jobAgentId },
|
|
2508
2511
|
startedAt: startedAt.toISOString()
|
|
2509
2512
|
};
|
|
2510
2513
|
writeJobFile(jobFilePath, job);
|
|
@@ -2545,6 +2548,12 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2545
2548
|
return;
|
|
2546
2549
|
}
|
|
2547
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
|
+
}
|
|
2548
2557
|
if (state.config.managed === true) {
|
|
2549
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 });
|
|
2550
2559
|
if (active.ending) return;
|
|
@@ -2622,7 +2631,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2622
2631
|
fetchImpl: state.deps.fetchImpl,
|
|
2623
2632
|
now: state.deps.now,
|
|
2624
2633
|
leaseExpiryMs: () => leaseExpiresAtMs(active.job),
|
|
2625
|
-
requireBuildSkill
|
|
2634
|
+
requireBuildSkill,
|
|
2635
|
+
job: active.job
|
|
2626
2636
|
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}`, aborted: false }));
|
|
2627
2637
|
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2628
2638
|
if (active.ending) return;
|
|
@@ -2668,7 +2678,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2668
2678
|
fetchImpl: state.deps.fetchImpl,
|
|
2669
2679
|
now: state.deps.now,
|
|
2670
2680
|
leaseTimeLeftMs: leaseTimeLeftFor(state, active),
|
|
2671
|
-
requireBuildSkill
|
|
2681
|
+
requireBuildSkill,
|
|
2682
|
+
job: active.job
|
|
2672
2683
|
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}`, aborted: false }));
|
|
2673
2684
|
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2674
2685
|
if (active.ending) return;
|
|
@@ -2830,7 +2841,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2830
2841
|
workdir,
|
|
2831
2842
|
repository: primary?.repository,
|
|
2832
2843
|
lookup: (repository) => resolveGoverningSource({ config: claimCalls(state.config, active.job), repository, fetchImpl: state.deps.fetchImpl }).catch(() => void 0)
|
|
2833
|
-
}, state.deps.agents);
|
|
2844
|
+
}, state.deps.agents, active.job);
|
|
2834
2845
|
if (skillDecision.kind === "refuse") {
|
|
2835
2846
|
log.error(`${tag} ${skillDecision.reason} \xB7 ending job as failed`);
|
|
2836
2847
|
await endJob(state, active, "failed", { stage: "provision", reason: skillDecision.reason });
|
|
@@ -2859,7 +2870,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2859
2870
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2860
2871
|
return;
|
|
2861
2872
|
}
|
|
2862
|
-
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);
|
|
2863
2874
|
job = active.job;
|
|
2864
2875
|
let running;
|
|
2865
2876
|
try {
|
|
@@ -3652,7 +3663,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3652
3663
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3653
3664
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3654
3665
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3655
|
-
return (await import('./check-
|
|
3666
|
+
return (await import('./check-QF7RGLUL.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3656
3667
|
},
|
|
3657
3668
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3658
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-
|
|
3
|
+
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-A5FIUS53.js';
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, resolve, relative, dirname, sep, basename } from 'path';
|
|
6
6
|
import { createRequire as createRequire$1 } from 'module';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-XJPTMZJG.js';
|
|
5
5
|
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH } from './chunk-2JIGPSVF.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-HUMQ4NLZ.js';
|
|
4
|
+
import { autoConnect } from './chunk-LWHHAZ75.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-SZKBH2BO.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-HUMQ4NLZ.js';
|
|
5
|
+
import { autoConnect } from './chunk-LWHHAZ75.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-VVZIFOAN.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-SZKBH2BO.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
5
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-XJPTMZJG.js';
|
|
5
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|