@outerlayer/cli 0.40.0-next.20261116030824 → 0.40.0-next.20261116035218
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-KUOWKHAG.js → agent-setup-YTNSQJRL.js} +19 -19
- package/dist/{agent-subcommand-BIZMU7EZ.js → agent-subcommand-UKKTMST3.js} +4 -4
- package/dist/{bridge-6IBWOFEJ.js → bridge-NSKQ7OMW.js} +7 -7
- package/dist/{build-3BX3EJC3.js → build-QAJJNEHA.js} +13 -13
- package/dist/{build-disk-KN7OJLKB.js → build-disk-QJXWKNIT.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-DOJUSWGH.js → builder-BY3ICSMA.js} +10 -10
- package/dist/caller-QGY2IGAL.js +23 -0
- package/dist/{check-APZ57YHI.js → check-UPWM6AJX.js} +55 -55
- package/dist/{chunk-SYFVCV2V.js → chunk-2HGS4N64.js} +2 -2
- package/dist/{chunk-YDB72T5Z.js → chunk-2RXPL7QY.js} +9 -9
- package/dist/{chunk-RNCCRUT5.js → chunk-2ZF62BAK.js} +1 -1
- package/dist/{chunk-2PRLSABK.js → chunk-3JCZM2IZ.js} +3 -3
- package/dist/{chunk-E5PWV6H2.js → chunk-3Q3BM2MK.js} +6 -6
- package/dist/{chunk-LFYNOKS5.js → chunk-3S6X6OJ5.js} +7 -7
- package/dist/{chunk-HFVTLCI7.js → chunk-4IYZRQ77.js} +5 -5
- package/dist/{chunk-IIYDYHS5.js → chunk-4JBEGQFS.js} +3 -3
- package/dist/{chunk-IRFN2ZHJ.js → chunk-4KCWAP5L.js} +1 -1
- package/dist/{chunk-ZBD2YOGH.js → chunk-4QXABXJR.js} +1 -1
- package/dist/{chunk-PIXDSHVH.js → chunk-5RKCQYXR.js} +4 -4
- package/dist/{chunk-RIITHK4F.js → chunk-5U6AUT4A.js} +1 -1
- package/dist/{chunk-BMMSIGV4.js → chunk-66DSYZNV.js} +1 -1
- package/dist/{chunk-PT3DOY6P.js → chunk-6TJD5B4O.js} +1 -1
- package/dist/{chunk-6FHMWJHK.js → chunk-754IBIFB.js} +1 -1
- package/dist/{chunk-ZCOIE7ZJ.js → chunk-A32NRZ74.js} +2 -2
- package/dist/{chunk-LPQJ5LXP.js → chunk-A43LWCIT.js} +1124 -282
- package/dist/{chunk-PSKNTGC3.js → chunk-A5DPSY2H.js} +3 -3
- package/dist/{chunk-EGYZGB2P.js → chunk-ASYPP2M6.js} +3 -3
- package/dist/{chunk-MGN525G6.js → chunk-BP2FEQPW.js} +1 -1
- package/dist/{chunk-IIMASDNH.js → chunk-BXFR2IQJ.js} +3 -3
- package/dist/{chunk-EVMSDUK7.js → chunk-C2AA5SKC.js} +5 -5
- package/dist/{chunk-WMXJ3XBP.js → chunk-CA6WQIZX.js} +2 -2
- package/dist/{chunk-LCZGMJXD.js → chunk-DJCZ26UT.js} +3 -3
- package/dist/{chunk-R3RALX7H.js → chunk-DWUDIRL2.js} +5 -5
- package/dist/{chunk-RGG4J24Z.js → chunk-EJBO6QDQ.js} +10 -10
- package/dist/{chunk-IKGAVS5X.js → chunk-EM6PU2AC.js} +3 -1
- package/dist/{chunk-L7GUBTCP.js → chunk-EOE7QIQD.js} +3 -3
- package/dist/{chunk-VXU5IAEQ.js → chunk-EOFA37VL.js} +4 -4
- package/dist/{chunk-SF2TBJBP.js → chunk-F3J4UKBF.js} +1 -1
- package/dist/{chunk-XOJRFV3U.js → chunk-FWKYG2DQ.js} +3 -3
- package/dist/{chunk-E54LIYIR.js → chunk-GN6TT6WD.js} +40 -39
- package/dist/{chunk-ZDXEZPRM.js → chunk-GWEDQ6WA.js} +6 -6
- package/dist/{chunk-YN6EKURT.js → chunk-HATKUSIR.js} +4 -4
- package/dist/{chunk-T5MBLAIO.js → chunk-HELCGKC3.js} +1 -1
- package/dist/{chunk-SEKJKOOB.js → chunk-HNQIZ3Z7.js} +3 -3
- package/dist/{chunk-PLVHIQJN.js → chunk-HS45JMDJ.js} +76 -14
- package/dist/{chunk-YYSW7OKI.js → chunk-HV3ERHDD.js} +4 -4
- package/dist/{chunk-BFZDVD7T.js → chunk-HW62ZXKA.js} +5 -5
- package/dist/{chunk-Y6FI3HCQ.js → chunk-IISG755E.js} +1 -1
- package/dist/{chunk-2YKSBXWU.js → chunk-IOPPIKGX.js} +4 -4
- package/dist/{chunk-4SAXGCD2.js → chunk-IS6JMEQQ.js} +5 -5
- package/dist/{chunk-XDBHRWPQ.js → chunk-JGUGZA3I.js} +2 -2
- package/dist/{chunk-7PZDPISM.js → chunk-JIMISJV2.js} +62 -2
- package/dist/{chunk-WKPOKOUQ.js → chunk-JTTFL5SB.js} +9 -9
- package/dist/{chunk-N7PG5JAD.js → chunk-KDASHEYT.js} +1 -1
- package/dist/{chunk-7GJGSADZ.js → chunk-KEQ6ZVKI.js} +1 -1
- package/dist/{chunk-M53UNEO6.js → chunk-LA66NWUO.js} +1 -1
- package/dist/{chunk-GODZ6QAN.js → chunk-LEYPTQSX.js} +3 -3
- package/dist/{chunk-QFAH525L.js → chunk-LZQN5PXB.js} +2 -2
- package/dist/{chunk-RRRW2M4B.js → chunk-MCXT33TK.js} +6 -6
- package/dist/{chunk-XOKGCNSG.js → chunk-MFRDSVMG.js} +1 -1
- package/dist/{chunk-IZHE3WOW.js → chunk-MP2Z5ALN.js} +2 -2
- package/dist/{chunk-TQ3PXYPJ.js → chunk-MUAHDK6Y.js} +8 -8
- package/dist/{chunk-ISRMDI2H.js → chunk-NFXQXWIL.js} +5 -5
- package/dist/{chunk-DGCF5LVP.js → chunk-NOAJUMDK.js} +16 -16
- package/dist/{chunk-PG4UW6QW.js → chunk-NYXPJ2EM.js} +1 -1
- package/dist/{chunk-HG7RVRAY.js → chunk-O32OL4Z7.js} +73 -38
- package/dist/{chunk-5SKYWQ64.js → chunk-OH34EJKB.js} +1 -1
- package/dist/{chunk-BFKSIA3V.js → chunk-OHZC2YUD.js} +2 -2
- package/dist/{chunk-TCPWJBH5.js → chunk-P2DC7QO7.js} +8 -8
- package/dist/{chunk-OC3BSNNE.js → chunk-Q2P2PCQE.js} +2 -2
- package/dist/{chunk-TQPFWWND.js → chunk-Q7AP5O5B.js} +3 -3
- package/dist/{chunk-NDDXBJMX.js → chunk-QGAX44JA.js} +1 -1
- package/dist/{chunk-BAPRSDUR.js → chunk-QLNWEME3.js} +7 -7
- package/dist/{chunk-UTSBE4MP.js → chunk-RAKJRPPQ.js} +1 -1
- package/dist/{chunk-55GT5FLR.js → chunk-RLKCG6MX.js} +1 -1
- package/dist/{chunk-TZZU6IAM.js → chunk-RP4A25IW.js} +1 -1
- package/dist/{chunk-53CDP7AH.js → chunk-SAS6ZL4X.js} +4 -4
- package/dist/{chunk-BD254PYH.js → chunk-UEB6ENFZ.js} +1 -1
- package/dist/{chunk-5XQAADM3.js → chunk-VTFCX6IZ.js} +7 -7
- package/dist/{chunk-DYV2OC4S.js → chunk-VZPW4RPS.js} +1 -1
- package/dist/{chunk-SDLWJF6H.js → chunk-WSU5ADF2.js} +7 -7
- package/dist/{chunk-7PFRNOSF.js → chunk-X5TL4MVO.js} +3 -1
- package/dist/{chunk-2Q5OMKDK.js → chunk-XDQQ5SQE.js} +4 -4
- package/dist/{chunk-OUL5E5UC.js → chunk-XQ2FPOXF.js} +4 -4
- package/dist/{chunk-IQWBUZ75.js → chunk-ZKEPPOR6.js} +3 -3
- package/dist/{claude-launcher-ZSCQOG3G.js → claude-launcher-U6QXR47X.js} +27 -10
- package/dist/{cli-EUICZJBA.js → cli-CEQO7L2A.js} +165 -165
- package/dist/{command-PBWQFU4B.js → command-VM4LKQMJ.js} +51 -51
- package/dist/{config-TGFG7IID.js → config-RM7KS3VB.js} +12 -12
- package/dist/{connect-cmd-UYJV435V.js → connect-cmd-5Q2Z2LIF.js} +11 -11
- package/dist/{container-start-6INDSNAE.js → container-start-JT36A3OE.js} +48 -48
- package/dist/{context-cleanup-VYUESYGU.js → context-cleanup-6LEQ2KKF.js} +4 -4
- package/dist/{context-show-cmd-XIPY7JXC.js → context-show-cmd-5BHU6JZQ.js} +12 -12
- package/dist/{control-plane-launch-HQPMYL7O.js → control-plane-launch-OIFEGFA6.js} +15 -15
- package/dist/{demo-record-cmd-UBYX2VAE.js → demo-record-cmd-MRZ5Z6GU.js} +8 -8
- package/dist/{demo-voice-cmd-ABTYSDTU.js → demo-voice-cmd-Y4DFOQQY.js} +20 -20
- package/dist/{docker-E35HTSGN.js → docker-YVMDE3NI.js} +10 -10
- package/dist/{doctor-KQ7J5GPF.js → doctor-ZESKTMJR.js} +50 -50
- package/dist/{emit-artifact-cmd-R5BOINKV.js → emit-artifact-cmd-VS73NUKN.js} +19 -19
- package/dist/{emit-cmd-CBCODUWX.js → emit-cmd-JDTZX5DQ.js} +7 -7
- package/dist/{emit-criteria-cmd-VWCPZ3TV.js → emit-criteria-cmd-4CDD2RUG.js} +14 -14
- package/dist/{emit-demo-cmd-QPF3MGY3.js → emit-demo-cmd-DUHHIUCF.js} +20 -20
- package/dist/{emit-finding-cmd-O2HNKNSU.js → emit-finding-cmd-6QHIKSTT.js} +14 -14
- package/dist/{emit-result-cmd-CFS2YAS5.js → emit-result-cmd-65SDT52A.js} +18 -18
- package/dist/{emit-step-cmd-Q43ESQ5J.js → emit-step-cmd-AUPTW6SU.js} +14 -14
- package/dist/{exec-client-QDEZML3U.js → exec-client-Z2ORBB7W.js} +8 -8
- package/dist/find-unit-5LWPI53X.js +24 -0
- package/dist/{findings-cmd-ZWNSAECA.js → findings-cmd-XIUMQTSY.js} +14 -14
- package/dist/{fleet-readiness-VSPHFYWE.js → fleet-readiness-I6IPCWYO.js} +14 -14
- package/dist/{governing-source-MIRABOUE.js → governing-source-JH7PYU5I.js} +20 -20
- package/dist/{guest-init-QYJVWDCD.js → guest-init-J5M336SR.js} +9 -9
- package/dist/{hook-fast-E2JV656K.js → hook-fast-7ZBDTVKP.js} +4 -4
- package/dist/{hook-install-ZZV5WVDH.js → hook-install-RXYTPBDL.js} +4 -4
- package/dist/{hook-wrap-fast-GVS5HF5C.js → hook-wrap-fast-Y5KKK67C.js} +3 -3
- package/dist/host-checks-YFNJUO46.js +82 -0
- package/dist/{host-key-4RD4MTJ2.js → host-key-F46AUWGU.js} +8 -8
- package/dist/{image-tag-SNXCNAGF.js → image-tag-HCLSC7NI.js} +8 -8
- package/dist/index.js +6 -6
- package/dist/{init-BIQTMVLH.js → init-GPZVWNC4.js} +46 -46
- package/dist/init-Y6SAA4UN.js +82 -0
- package/dist/{init-agent-E3PLU6R4.js → init-agent-KTITQSB3.js} +46 -46
- package/dist/init-cmd-ACOGV7H7.js +53 -0
- package/dist/{init-update-GHLRW7BP.js → init-update-4Y3XAWG2.js} +23 -23
- package/dist/install-cmd-LKVRFYRO.js +26 -0
- package/dist/launch-agent-7XNKDSV4.js +26 -0
- package/dist/{layout-QU4DUYQQ.js → layout-ANEVGSIG.js} +4 -4
- package/dist/{logs-N7TOXQWL.js → logs-FRYVEZNO.js} +7 -7
- package/dist/loop-BMUIHTJ4.js +92 -0
- package/dist/machine-YTKXLOBK.js +82 -0
- package/dist/{machine-skills-DLDDT4BE.js → machine-skills-ZDIGEJXS.js} +4 -4
- package/dist/{mcp-install-cmd-TFKCJSAH.js → mcp-install-cmd-ZESEU7X4.js} +4 -4
- package/dist/{mcp-serve-cmd-YWBSSEYK.js → mcp-serve-cmd-UWTWBJKJ.js} +9 -9
- package/dist/{paths-GUVGFCBQ.js → paths-I4QL5IY5.js} +7 -7
- package/dist/pending-7PMAF3IX.js +18 -0
- package/dist/{pidfile-AOQMDBSW.js → pidfile-BVALR6BG.js} +8 -8
- package/dist/{record-2RQWFYJ4.js → record-NMCBSQOG.js} +8 -8
- package/dist/{relay-VZEEKIKG.js → relay-UMN5CGTS.js} +5 -5
- package/dist/{relay-protocol-DF7PZPX2.js → relay-protocol-Z3WU3UEO.js} +5 -5
- package/dist/{run-cmd-W2XIBU2G.js → run-cmd-W2QHZXC7.js} +14 -14
- package/dist/{runner-agents-O7G6HTWI.js → runner-agents-LMOOIFHS.js} +4 -4
- package/dist/runner-env-6UYXCBB6.js +24 -0
- package/dist/{runner-identity-MU7HDFGF.js → runner-identity-AOUW4J6F.js} +10 -10
- package/dist/{runner-key-PAF6N4RJ.js → runner-key-OMFGRSVU.js} +46 -46
- package/dist/{session-sender-NDP6HVSG.js → session-sender-VOPQM2VU.js} +19 -19
- package/dist/{setup-cmd-PQTTUAXH.js → setup-cmd-YM2OSU5H.js} +12 -12
- package/dist/{setup-wiring-65IDNFAW.js → setup-wiring-FFVQTX2C.js} +55 -55
- package/dist/{shell-function-RBJR373S.js → shell-function-7N3ILFLG.js} +2 -2
- package/dist/{spec-cmd-LEU2PGWP.js → spec-cmd-YALZTLRU.js} +15 -15
- package/dist/{starter-pack-3HB74L6Q.js → starter-pack-5B3PQLKF.js} +5 -5
- package/dist/state-GXT2YMJ6.js +18 -0
- package/dist/{status-6IF7APSQ.js → status-HFJLKIIK.js} +46 -46
- package/dist/{statusline-fast-WUXKRABL.js → statusline-fast-ZWMTN36K.js} +3 -3
- package/dist/{sync-cmd-Q3FERZNI.js → sync-cmd-KZHUVTLQ.js} +18 -18
- package/dist/update-steps-62PSEKFT.js +83 -0
- package/dist/{watch-2Z2HFUIL.js → watch-APCEAC7T.js} +18 -18
- package/dist/{work-claim-cmd-Q4EXZDXE.js → work-claim-cmd-SLWQIUT2.js} +20 -20
- package/dist/{work-cmd-JNSI6X5D.js → work-cmd-VBWUUTMK.js} +14 -14
- package/dist/{work-comment-cmd-4AD66BWL.js → work-comment-cmd-XIT4UIZJ.js} +17 -17
- package/dist/{work-demo-cmd-BBNNMB4P.js → work-demo-cmd-YVSS46A2.js} +14 -14
- package/dist/{work-logs-cmd-EU2Z2P2F.js → work-logs-cmd-2J4Z5HU2.js} +14 -14
- package/dist/{work-mock-cmd-5W52S7J5.js → work-mock-cmd-OR4RXGD3.js} +14 -14
- package/dist/{work-needs-attention-cmd-6X3DMFB3.js → work-needs-attention-cmd-AUCX5CDX.js} +14 -14
- package/dist/{work-no-change-cmd-JS5GWIV5.js → work-no-change-cmd-LAX7IXTD.js} +14 -14
- package/dist/{work-open-pr-cmd-3KHOY5KT.js → work-open-pr-cmd-GDRGKMJA.js} +15 -15
- package/dist/{work-pr-cmd-LJDDDQS4.js → work-pr-cmd-QAJ2UGKM.js} +14 -14
- package/dist/{work-proofs-cmd-WZHU6KBF.js → work-proofs-cmd-T5YCQZJW.js} +16 -16
- package/dist/{work-proofs-record-FMFNCZZV.js → work-proofs-record-GNVISJ6H.js} +24 -24
- package/dist/{work-stop-cmd-WTKUFCEF.js → work-stop-cmd-Y5ORIVGV.js} +14 -14
- package/package.json +2 -2
- package/dist/caller-YHE7IHC7.js +0 -23
- package/dist/find-unit-HKCVRS7L.js +0 -24
- package/dist/host-checks-34OYY7KX.js +0 -82
- package/dist/init-RNXF64MR.js +0 -82
- package/dist/init-cmd-DAZPTELN.js +0 -53
- package/dist/install-cmd-PEFKMYGU.js +0 -26
- package/dist/launch-agent-P5KMBBB5.js +0 -26
- package/dist/loop-PE7QDWJA.js +0 -92
- package/dist/machine-G3I6CXMA.js +0 -82
- package/dist/pending-PXRZ7SIJ.js +0 -18
- package/dist/runner-env-TJE5WGPK.js +0 -24
- package/dist/state-YHPOHZ4I.js +0 -18
- package/dist/update-steps-GERKPJ5C.js +0 -83
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
-
import { execStartArgv } from './chunk-
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
6
|
-
import { runnerDir } from './chunk-
|
|
4
|
+
import { execStartArgv } from './chunk-6TJD5B4O.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-MCXT33TK.js';
|
|
6
|
+
import { runnerDir } from './chunk-VZPW4RPS.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-EM6PU2AC.js';
|
|
5
|
+
import { autoConnect } from './chunk-LZQN5PXB.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-KDASHEYT.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-VZPW4RPS.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -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-O32OL4Z7.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-5U6AUT4A.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-YVMDE3NI.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,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-MUAHDK6Y.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-EM6PU2AC.js';
|
|
6
|
+
import { autoConnect } from './chunk-LZQN5PXB.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-DV44KCM6.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-KDASHEYT.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-JIMISJV2.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity } from './chunk-Y55ARAPE.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-MCUI6RHU.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-MCXT33TK.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-FWKYG2DQ.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-MUAHDK6Y.js';
|
|
4
|
+
import { spoolDir } from './chunk-3Q3BM2MK.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-A43LWCIT.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { CaptureDaemon } from './chunk-Y55ARAPE.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-X5TL4MVO.js';
|
|
4
|
+
import { POLICY_PATH, POLICY_CONTENT } from './chunk-Q7AP5O5B.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-JGUGZA3I.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-RP4A25IW.js';
|
|
9
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-A43LWCIT.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-O32OL4Z7.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-MCXT33TK.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-QLNWEME3.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-5RKCQYXR.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-Q2P2PCQE.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-QGAX44JA.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-EOFA37VL.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-FWKYG2DQ.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-OHZC2YUD.js';
|
|
12
|
+
import { defaultAgents } from './chunk-A43LWCIT.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-A43LWCIT.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -36,6 +36,7 @@ function endedEventNames(env, agents) {
|
|
|
36
36
|
function detectActiveSession(opts) {
|
|
37
37
|
const agents = opts.agents ?? defaultAgents();
|
|
38
38
|
if (!agents.some((agent) => agent.adapter.lifecycle?.detectInSession(opts.env) === true)) return void 0;
|
|
39
|
+
const named = agents.flatMap((agent) => agent.adapter.lifecycle?.detectInSession(opts.env) === true ? [agent.adapter.lifecycle.sessionIdFromEnv?.(opts.env)] : []).find((id) => id !== void 0);
|
|
39
40
|
const endNames = endedEventNames(opts.env, agents);
|
|
40
41
|
const read = opts.readTailImpl ?? readTail;
|
|
41
42
|
const tail = read(join(opts.home, ".outerlayer", "spool", "events.jsonl"), SESSION_DETECT_TAIL_BYTES);
|
|
@@ -58,6 +59,7 @@ function detectActiveSession(opts) {
|
|
|
58
59
|
for (const record of records) {
|
|
59
60
|
if (typeof record.sessionId !== "string" || record.sessionId === "") continue;
|
|
60
61
|
if (ended.has(record.sessionId)) continue;
|
|
62
|
+
if (named !== void 0 && record.sessionId !== named) continue;
|
|
61
63
|
if (typeof record.cwd !== "string" || !opts.cwds.includes(record.cwd)) continue;
|
|
62
64
|
if (typeof record.t !== "string") continue;
|
|
63
65
|
const tMs = Date.parse(record.t);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-O32OL4Z7.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-MCXT33TK.js';
|
|
5
|
+
import { runnerDir } from './chunk-VZPW4RPS.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -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-FWKYG2DQ.js';
|
|
4
|
+
import { strippedVariables } from './chunk-OHZC2YUD.js';
|
|
5
|
+
import { defaultAgents } from './chunk-A43LWCIT.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-JIMISJV2.js';
|
|
7
7
|
import { MIN_SCRUBBED_LITERAL } from './chunk-Y55ARAPE.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
5
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-OHZC2YUD.js';
|
|
4
|
+
import { defaultAgents } from './chunk-A43LWCIT.js';
|
|
5
|
+
import { PROVIDERS } from './chunk-JIMISJV2.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
import { spawn, spawnSync } from 'child_process';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-RAKJRPPQ.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-3S6X6OJ5.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-BXFR2IQJ.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
8
|
+
import { writeFleetState } from './chunk-IISG755E.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-MFRDSVMG.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-EJBO6QDQ.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-6TJD5B4O.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-O32OL4Z7.js';
|
|
13
13
|
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
14
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
14
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-NYXPJ2EM.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-MCXT33TK.js';
|
|
16
|
+
import { RepoFilter } from './chunk-MUAHDK6Y.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-5U6AUT4A.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-MP2Z5ALN.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-WSU5ADF2.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-BP2FEQPW.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
32
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
34
|
-
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-
|
|
35
|
-
import { defaultAgents, resolvePackRoot } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-2RXPL7QY.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-QLNWEME3.js';
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-5RKCQYXR.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-Q2P2PCQE.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-P2DC7QO7.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-QGAX44JA.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-VZPW4RPS.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-EOFA37VL.js';
|
|
32
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-FWKYG2DQ.js';
|
|
33
|
+
import { cleanAttachmentName } from './chunk-3Q3BM2MK.js';
|
|
34
|
+
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-OHZC2YUD.js';
|
|
35
|
+
import { defaultAgents, resolvePackRoot } from './chunk-A43LWCIT.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
37
37
|
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
38
38
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
@@ -3199,7 +3199,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3199
3199
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3200
3200
|
);
|
|
3201
3201
|
async function tryClaimAndStart(state, item, queue) {
|
|
3202
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3202
|
+
const { postJson: postJson2 } = await import('./work-cmd-VBWUUTMK.js');
|
|
3203
3203
|
const log = logOf(state);
|
|
3204
3204
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3205
3205
|
const claim = await retrySend(
|
|
@@ -3476,7 +3476,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3476
3476
|
...fleet === void 0 ? {} : { appId: fleet.appId, organizationId: fleet.organizationId, size: fleet.size },
|
|
3477
3477
|
...primary === void 0 ? {} : { repository: primary.repository, repositories },
|
|
3478
3478
|
...jobAgentId === void 0 ? {} : { agent: jobAgentId },
|
|
3479
|
-
startedAt: startedAt.toISOString()
|
|
3479
|
+
startedAt: startedAt.toISOString(),
|
|
3480
|
+
timeLimitMinutes: state.config.timeLimitMinutes
|
|
3480
3481
|
};
|
|
3481
3482
|
writeJobFile(jobFilePath, job);
|
|
3482
3483
|
const active = {
|
|
@@ -3492,7 +3493,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3492
3493
|
const claimLine = `claimed ${queue} ${itemTag(job)} ${item.trackerKey} (claim ${shortClaim(claimId)}) \u2192 ${relativeToRunner(runnerRoot, dirPath)}`;
|
|
3493
3494
|
log.line(claimLine);
|
|
3494
3495
|
attemptLogsOf(state).note(item.number, claimLine, itemScope(job));
|
|
3495
|
-
const hookLimits = () => hookLimitsFor(state.config, startedAt.getTime(), state.deps.now);
|
|
3496
|
+
const hookLimits = () => hookLimitsFor(withJobTimeLimit(state.config, job), startedAt.getTime(), state.deps.now);
|
|
3496
3497
|
const tag = itemTag(job);
|
|
3497
3498
|
const noteOnce = attemptNote(log, tag);
|
|
3498
3499
|
const containerMode = isBuiltinContainer(state.config.hooks.provision);
|
|
@@ -3580,7 +3581,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3580
3581
|
let cgroup;
|
|
3581
3582
|
if (containerMode) {
|
|
3582
3583
|
const provisioned = await provisionContainer({
|
|
3583
|
-
config: claimCalls(state.config, active.job),
|
|
3584
|
+
config: claimCalls(withJobTimeLimit(state.config, active.job), active.job),
|
|
3584
3585
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
3585
3586
|
runtime: runtimeOf(state),
|
|
3586
3587
|
queue,
|
|
@@ -3601,7 +3602,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3601
3602
|
writeJobFile(jobFilePath, active.job);
|
|
3602
3603
|
},
|
|
3603
3604
|
aborted: () => active.ending,
|
|
3604
|
-
deadlineMs:
|
|
3605
|
+
deadlineMs: hookLimits().endBy,
|
|
3605
3606
|
fetchImpl: state.deps.fetchImpl,
|
|
3606
3607
|
now: state.deps.now,
|
|
3607
3608
|
leaseExpiryMs: () => leaseExpiresAtMs(active.job),
|
|
@@ -3627,7 +3628,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3627
3628
|
}
|
|
3628
3629
|
} else if (sandboxMode) {
|
|
3629
3630
|
const provisioned = await provisionSandbox({
|
|
3630
|
-
config: claimCalls(state.config, active.job),
|
|
3631
|
+
config: claimCalls(withJobTimeLimit(state.config, active.job), active.job),
|
|
3631
3632
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
3632
3633
|
runtime: runtimeOf(state),
|
|
3633
3634
|
queue,
|
|
@@ -3679,7 +3680,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3679
3680
|
}
|
|
3680
3681
|
} else if (vmMode) {
|
|
3681
3682
|
const provisioned = await provisionMicroVm({
|
|
3682
|
-
config: claimCalls(state.config, active.job),
|
|
3683
|
+
config: claimCalls(withJobTimeLimit(state.config, active.job), active.job),
|
|
3683
3684
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
3684
3685
|
runtime: runtimeOf(state),
|
|
3685
3686
|
queue,
|
|
@@ -3700,7 +3701,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3700
3701
|
writeJobFile(jobFilePath, active.job);
|
|
3701
3702
|
},
|
|
3702
3703
|
aborted: () => active.ending,
|
|
3703
|
-
deadlineMs:
|
|
3704
|
+
deadlineMs: hookLimits().endBy,
|
|
3704
3705
|
fetchImpl: state.deps.fetchImpl,
|
|
3705
3706
|
now: state.deps.now,
|
|
3706
3707
|
leaseTimeLeftMs: leaseTimeLeftFor(state, active),
|
|
@@ -4323,7 +4324,7 @@ async function probeBuild(state, active) {
|
|
|
4323
4324
|
return;
|
|
4324
4325
|
}
|
|
4325
4326
|
} catch (err) {
|
|
4326
|
-
if (err instanceof SandboxGoneError) {
|
|
4327
|
+
if (err instanceof SandboxGoneError || err instanceof SandboxContainerStoppedError) {
|
|
4327
4328
|
log.error(`${tag} ${err.message} \xB7 ending job as interrupted`);
|
|
4328
4329
|
void endJob(state, active, "interrupted", { stage: "command", reason: err.message });
|
|
4329
4330
|
} else {
|
|
@@ -4392,9 +4393,9 @@ async function watchTick(state, active, nowMs, logMtimeMs) {
|
|
|
4392
4393
|
await endJob(state, active, "failed", { stage: started ? "command" : "provision", reason: unreachable });
|
|
4393
4394
|
return;
|
|
4394
4395
|
}
|
|
4395
|
-
const limitMinutes = active.job.run === void 0 ? state.config
|
|
4396
|
+
const limitMinutes = active.job.run === void 0 ? jobTimeLimitMinutes(active.job, state.config) : active.job.run.timeLimitSeconds / 60;
|
|
4396
4397
|
if (isTimedOut(new Date(active.job.startedAt).getTime(), nowMs, limitMinutes)) {
|
|
4397
|
-
log.line(`${tag} past the ${active.job.run === void 0 ? `${
|
|
4398
|
+
log.line(`${tag} past the ${active.job.run === void 0 ? `${limitMinutes}m` : `${active.job.run.timeLimitSeconds}s`} time limit \xB7 ending job as timed_out`);
|
|
4398
4399
|
await endJob(state, active, "timed_out");
|
|
4399
4400
|
return;
|
|
4400
4401
|
}
|
|
@@ -4824,7 +4825,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4824
4825
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4825
4826
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4826
4827
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4827
|
-
return (await import('./check-
|
|
4828
|
+
return (await import('./check-UPWM6AJX.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4828
4829
|
},
|
|
4829
4830
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4830
4831
|
log
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-JGUGZA3I.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-KDASHEYT.js';
|
|
6
|
+
import { versionAtLeast } from './chunk-F3J4UKBF.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-HELCGKC3.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-RP4A25IW.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-A43LWCIT.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import { RELAY_ID, RELAY_USER } from './chunk-
|
|
5
|
-
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-
|
|
6
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-EOFA37VL.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-FWKYG2DQ.js';
|
|
5
|
+
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-OHZC2YUD.js';
|
|
6
|
+
import { defaultAgents } from './chunk-A43LWCIT.js';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|
|
9
9
|
|
|
@@ -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-A43LWCIT.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-VSBG7MMU.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -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-EM6PU2AC.js';
|
|
4
|
+
import { autoConnect } from './chunk-LZQN5PXB.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-KDASHEYT.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
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 { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { LEGACY_AGENT } from './chunk-JIMISJV2.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -108,17 +108,78 @@ var CLAUDE_CODE_HOOKS = {
|
|
|
108
108
|
statusLine
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
// ../agents/src/
|
|
111
|
+
// ../agents/src/codex/hooks.ts
|
|
112
112
|
var REGISTERED2 = [
|
|
113
|
+
["SessionStart", "session-start"],
|
|
114
|
+
["PostToolUse", "tool-used"],
|
|
115
|
+
["Stop", "turn-ended"]
|
|
116
|
+
];
|
|
117
|
+
var KIND_BY_NAME2 = new Map(REGISTERED2);
|
|
118
|
+
var TOOL_KINDS2 = { Bash: "shell", apply_patch: "edit", Edit: "edit", Write: "edit" };
|
|
119
|
+
function toolKind2(name) {
|
|
120
|
+
if (name === void 0) return void 0;
|
|
121
|
+
if (name.startsWith("mcp__")) return "mcp";
|
|
122
|
+
return TOOL_KINDS2[name] ?? "other";
|
|
123
|
+
}
|
|
124
|
+
var text2 = (value) => typeof value === "string" ? value : void 0;
|
|
125
|
+
function parsePayload2(stdin) {
|
|
126
|
+
try {
|
|
127
|
+
const parsed = stdin === "" ? {} : JSON.parse(stdin);
|
|
128
|
+
return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : {};
|
|
129
|
+
} catch {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function decode2(name, stdin) {
|
|
134
|
+
const payload = parsePayload2(stdin);
|
|
135
|
+
const nativeName = String(name ?? payload.hook_event_name ?? "unknown");
|
|
136
|
+
const kind = KIND_BY_NAME2.get(nativeName);
|
|
137
|
+
const sessionId = text2(payload.session_id);
|
|
138
|
+
const cwd = text2(payload.cwd);
|
|
139
|
+
const transcript = text2(payload.transcript_path);
|
|
140
|
+
const toolName = text2(payload.tool_name);
|
|
141
|
+
const toolUseId = text2(payload.tool_use_id);
|
|
142
|
+
const tool = toolKind2(toolName);
|
|
143
|
+
return {
|
|
144
|
+
nativeName,
|
|
145
|
+
...kind === void 0 ? {} : { kind },
|
|
146
|
+
...kind !== void 0 && sessionId !== void 0 ? {
|
|
147
|
+
event: {
|
|
148
|
+
kind,
|
|
149
|
+
sessionId,
|
|
150
|
+
cwd: cwd ?? "",
|
|
151
|
+
session: { agent: "codex", id: sessionId, locator: transcript === void 0 ? { kind: "export", id: sessionId } : { kind: "file", path: transcript } },
|
|
152
|
+
...kind === "tool-used" && tool !== void 0 ? { tool } : {}
|
|
153
|
+
}
|
|
154
|
+
} : {},
|
|
155
|
+
spool: {
|
|
156
|
+
sessionId: payload.session_id ?? null,
|
|
157
|
+
transcriptPath: payload.transcript_path ?? null,
|
|
158
|
+
cwd: payload.cwd ?? null,
|
|
159
|
+
payloadEvent: payload.hook_event_name ?? null
|
|
160
|
+
},
|
|
161
|
+
fromSubagent: false,
|
|
162
|
+
...toolName === void 0 && toolUseId === void 0 ? {} : { tool: { ...toolUseId === void 0 ? {} : { useId: toolUseId }, ...toolName === void 0 ? {} : { name: toolName } } }
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
var CODEX_CODEC = {
|
|
166
|
+
events: REGISTERED2.map(([name]) => name),
|
|
167
|
+
decode: decode2,
|
|
168
|
+
// Codex takes no context from these hooks, so there is nothing to print.
|
|
169
|
+
reply: () => ""
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
// ../agents/src/opencode/hooks.ts
|
|
173
|
+
var REGISTERED3 = [
|
|
113
174
|
["session.execution.started", "session-start"],
|
|
114
175
|
["session.tool.success", "tool-used"],
|
|
115
176
|
["session.usage.updated", "usage"],
|
|
116
177
|
["session.execution.succeeded", "turn-ended"]
|
|
117
178
|
];
|
|
118
|
-
var
|
|
179
|
+
var KIND_BY_NAME3 = new Map(REGISTERED3);
|
|
119
180
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
120
|
-
var
|
|
121
|
-
function
|
|
181
|
+
var text3 = (value) => typeof value === "string" ? value : void 0;
|
|
182
|
+
function parsePayload3(stdin) {
|
|
122
183
|
try {
|
|
123
184
|
const parsed = stdin === "" ? {} : JSON.parse(stdin);
|
|
124
185
|
return isObject(parsed) ? parsed : {};
|
|
@@ -126,12 +187,12 @@ function parsePayload2(stdin) {
|
|
|
126
187
|
return {};
|
|
127
188
|
}
|
|
128
189
|
}
|
|
129
|
-
function
|
|
130
|
-
const payload =
|
|
190
|
+
function decode3(name, stdin) {
|
|
191
|
+
const payload = parsePayload3(stdin);
|
|
131
192
|
const nativeName = String(name ?? payload.type ?? "unknown");
|
|
132
|
-
const kind =
|
|
133
|
-
const sessionId =
|
|
134
|
-
const cwd =
|
|
193
|
+
const kind = KIND_BY_NAME3.get(nativeName);
|
|
194
|
+
const sessionId = text3(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text3(payload.sessionID);
|
|
195
|
+
const cwd = text3(isObject(payload.location) ? payload.location.directory : void 0);
|
|
135
196
|
return {
|
|
136
197
|
nativeName,
|
|
137
198
|
...kind === void 0 ? {} : { kind },
|
|
@@ -141,8 +202,8 @@ function decode2(name, stdin) {
|
|
|
141
202
|
};
|
|
142
203
|
}
|
|
143
204
|
var OPENCODE_CODEC = {
|
|
144
|
-
events:
|
|
145
|
-
decode:
|
|
205
|
+
events: REGISTERED3.map(([name]) => name),
|
|
206
|
+
decode: decode3,
|
|
146
207
|
// OpenCode takes no context from a hook, so there is nothing to print.
|
|
147
208
|
reply: () => ""
|
|
148
209
|
};
|
|
@@ -150,7 +211,8 @@ var OPENCODE_CODEC = {
|
|
|
150
211
|
// ../agents/src/native/hook-codecs.ts
|
|
151
212
|
var HOOK_CODECS = {
|
|
152
213
|
"claude-code": CLAUDE_CODE_HOOKS,
|
|
153
|
-
opencode: OPENCODE_CODEC
|
|
214
|
+
opencode: OPENCODE_CODEC,
|
|
215
|
+
codex: CODEX_CODEC
|
|
154
216
|
};
|
|
155
217
|
|
|
156
218
|
// ../agents/src/lifecycle.ts
|
|
@@ -158,4 +220,4 @@ function hookCodec(agentId) {
|
|
|
158
220
|
return HOOK_CODECS[agentId ?? LEGACY_AGENT];
|
|
159
221
|
}
|
|
160
222
|
|
|
161
|
-
export { CLAUDE_CODE_HOOKS, OPENCODE_CODEC, hookCodec };
|
|
223
|
+
export { CLAUDE_CODE_HOOKS, CODEX_CODEC, OPENCODE_CODEC, hookCodec };
|