@outerlayer/cli 0.38.0-next.20261105155912 → 0.38.0-next.20261106003041
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-CBEPGNFY.js +40 -0
- package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-UNSXJUHA.js} +6 -6
- package/dist/{artifact-link-cmd-72FQTBGO.js → artifact-link-cmd-QP6VO7AJ.js} +2 -2
- package/dist/{bridge-F4BNXRM2.js → bridge-JI4IO7JN.js} +9 -9
- package/dist/build-2L3L2OJO.js +24 -0
- package/dist/build-disk-CKBEEF4N.js +21 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-PKDA7X2H.js +20 -0
- package/dist/caller-XETCC46J.js +23 -0
- package/dist/{check-CZM3LZ7Y.js → check-FG32SYJF.js} +59 -59
- package/dist/{chunk-K7BI4TLM.js → chunk-256R6O56.js} +20 -7
- package/dist/{chunk-HU3POMM4.js → chunk-2MQQASWB.js} +6 -6
- package/dist/{chunk-H6H5GCM6.js → chunk-3DVCPRKE.js} +22 -11
- package/dist/{chunk-PMBG7IYE.js → chunk-3FAJMXBA.js} +11 -11
- package/dist/{chunk-QDM23DTW.js → chunk-3XWZKL2P.js} +10 -10
- package/dist/{chunk-3PR7BPMG.js → chunk-45TFVWNT.js} +6 -6
- package/dist/{chunk-6XYKZH3K.js → chunk-4MSEUIMK.js} +14 -8
- package/dist/{chunk-QAFR65VC.js → chunk-5R5FEPLH.js} +1 -1
- package/dist/{chunk-2C3XLYO5.js → chunk-5VAXNAOD.js} +1 -1
- package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
- package/dist/{chunk-YU6XPJ5I.js → chunk-ABN4UBR5.js} +3 -3
- package/dist/{chunk-XN4A275V.js → chunk-AJC5Q2NY.js} +23 -13
- package/dist/{chunk-HVUS5WRU.js → chunk-AMG5ICDO.js} +4 -4
- package/dist/{chunk-IYUJFAQD.js → chunk-AVEF3T6Y.js} +919 -36
- package/dist/{chunk-EKRLMOWS.js → chunk-BL6CCU26.js} +7 -7
- package/dist/{chunk-3B5H5MGB.js → chunk-BO3NOGKE.js} +3 -3
- package/dist/{chunk-BMYIPXBG.js → chunk-CCMKLF7K.js} +6 -6
- package/dist/{chunk-DP6ZOSCR.js → chunk-CGXYPLK3.js} +24 -10
- package/dist/{chunk-K7KQCOSM.js → chunk-DK5YFDYI.js} +9 -9
- package/dist/{chunk-IJN3GP4M.js → chunk-DL5N6V3D.js} +1 -1
- package/dist/{chunk-VG524OUD.js → chunk-DVFGCVTV.js} +5 -5
- package/dist/{chunk-EVFZUFCO.js → chunk-DXBYNJRM.js} +6 -6
- package/dist/{chunk-45UZPTDQ.js → chunk-EERD7VI3.js} +1 -1
- package/dist/{chunk-U63SE2NJ.js → chunk-EFAOERZH.js} +1 -1
- package/dist/{chunk-64D2YZK5.js → chunk-EHJYXABQ.js} +1 -1
- package/dist/{chunk-2FDWTE6F.js → chunk-ERQLHUWU.js} +5 -5
- package/dist/{chunk-MPGTKJOM.js → chunk-EXIZ3G6I.js} +6 -6
- package/dist/{chunk-KXKVMSHC.js → chunk-FER7JJ3S.js} +1 -1
- package/dist/{chunk-OVRLLZPJ.js → chunk-FGVVBYCT.js} +1 -1
- package/dist/{chunk-J56SR6X4.js → chunk-FOUG2R4Q.js} +1 -1
- package/dist/{chunk-35RIDLSD.js → chunk-GMRVWRHD.js} +2 -2
- package/dist/{chunk-LMT72G74.js → chunk-HG2ZG6ZU.js} +1 -1
- package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
- package/dist/{chunk-VVZIFOAN.js → chunk-IXB2IIEW.js} +1 -1
- package/dist/{chunk-GMRIR2MF.js → chunk-JTDMSQMI.js} +9 -9
- package/dist/{chunk-TOH7FJH3.js → chunk-K6JOU4CT.js} +42 -31
- package/dist/{chunk-RVIZRXBK.js → chunk-KLQLQQGG.js} +3 -3
- package/dist/{chunk-L25GQH45.js → chunk-L4ACBB5R.js} +1 -1
- package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
- package/dist/{chunk-IG7SBYJY.js → chunk-MDKLSY43.js} +1 -1
- package/dist/{chunk-3J7F3VGZ.js → chunk-MPE4NOKD.js} +2 -2
- package/dist/{chunk-ZBPUHNUZ.js → chunk-NEEMG462.js} +1 -1
- package/dist/{chunk-CUAV3727.js → chunk-O4Z2YVC3.js} +5 -5
- package/dist/{chunk-SSSPZ3TB.js → chunk-OFWNBTLU.js} +1 -1
- package/dist/{chunk-5YWOGS66.js → chunk-OGQW7A4G.js} +16 -12
- package/dist/{chunk-MY6T3N3A.js → chunk-ONOINHY4.js} +1 -1
- package/dist/{chunk-XUXDUOJI.js → chunk-OUHM6U6Z.js} +6 -6
- package/dist/{chunk-JCEJARDB.js → chunk-PARDL7HH.js} +1 -1
- package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
- package/dist/{chunk-EOVVSXRH.js → chunk-PMJ6IEUM.js} +7 -7
- package/dist/{chunk-OCDG3ZWH.js → chunk-QONY6C2B.js} +9 -9
- package/dist/{chunk-FRQPX2QR.js → chunk-QWDGHEQL.js} +3 -3
- package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
- package/dist/{chunk-J7MMYBBV.js → chunk-RSRNZB4T.js} +7 -7
- package/dist/{chunk-MB7IX6DO.js → chunk-RUJR3SDB.js} +1 -1
- package/dist/{chunk-RM3K57Q7.js → chunk-RZ6WJTUP.js} +39 -16
- package/dist/{chunk-XQSTN7NG.js → chunk-S7CE7QCF.js} +3 -3
- package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
- package/dist/{chunk-WHPMCF7R.js → chunk-SMFWLPXC.js} +18 -18
- package/dist/{chunk-Y2HVISUN.js → chunk-T524XQKI.js} +1 -1
- package/dist/{chunk-2RKPEUGK.js → chunk-TAEDH2SU.js} +1 -1
- package/dist/{chunk-W7LJQ2GU.js → chunk-U5EE7PGC.js} +4 -4
- package/dist/{chunk-SUMRSD2Q.js → chunk-U7L4GBGS.js} +1 -1
- package/dist/{chunk-SKV6FO37.js → chunk-VNT2IRLM.js} +4 -4
- package/dist/{chunk-M4WTELYI.js → chunk-VWNQRD4I.js} +4 -4
- package/dist/{chunk-D5JJQRW7.js → chunk-WF2NXBOM.js} +9 -9
- package/dist/{chunk-5M3KXOPY.js → chunk-X2DX3A7H.js} +2 -2
- package/dist/{chunk-VUSYGNNN.js → chunk-XDRZ3BNA.js} +1 -1
- package/dist/{chunk-DOKFFSOZ.js → chunk-XE2PXGZT.js} +3 -3
- package/dist/{chunk-Y5ZKDLNX.js → chunk-YKWOVYVN.js} +15 -15
- package/dist/{chunk-HI5RBFL3.js → chunk-YWWW47OY.js} +14 -9
- package/dist/{chunk-2JIGPSVF.js → chunk-YXXJBHHF.js} +20 -4
- package/dist/{chunk-KXCTWOPU.js → chunk-YZRDJOOR.js} +3 -3
- package/dist/{chunk-GLJX2CZY.js → chunk-Z4R36YDJ.js} +353 -303
- package/dist/{chunk-GZETHU2Z.js → chunk-ZCEM4GJ5.js} +3 -3
- package/dist/{chunk-VV2VLQWG.js → chunk-ZLJXMXZP.js} +2 -2
- package/dist/{chunk-ZEEQB7VM.js → chunk-ZO3RUMUR.js} +5 -5
- package/dist/{chunk-HOCVTWV2.js → chunk-ZTJTAKVW.js} +1 -1
- package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-FHQTSQOM.js} +10 -10
- package/dist/{cli-YMSYVF7O.js → cli-GNC4MFMP.js} +173 -159
- package/dist/{command-ZOWMTOWA.js → command-47EYM2FJ.js} +54 -54
- package/dist/{config-J4NNZ2XO.js → config-EA6WVKAS.js} +14 -14
- package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-4JO2LBUT.js} +15 -15
- package/dist/{container-start-RZSGWDZG.js → container-start-XR7KANS6.js} +58 -53
- package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-6CTKLEUT.js} +6 -6
- package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-Z7NQAKNE.js} +16 -16
- package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-4PLBJKBS.js} +17 -17
- package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-3B2ME2ZI.js} +10 -10
- package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-LIXAA3OS.js} +24 -24
- package/dist/{dist-U6EGOQD5.js → dist-3TV6G4YF.js} +2 -2
- package/dist/docker-FPEQS6HK.js +20 -0
- package/dist/{doctor-NILQ2RUT.js → doctor-AFH6UUX6.js} +59 -59
- package/dist/emit-artifact-cmd-5XIEUWFX.js +44 -0
- package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-IKYF27IK.js} +9 -9
- package/dist/emit-criteria-cmd-YS5ZSLCN.js +35 -0
- package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-IDC2JC46.js} +24 -24
- package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-C4NRTIZO.js} +18 -18
- package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-GC2I7JQU.js} +22 -22
- package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-TTH4FYFW.js} +18 -18
- package/dist/{exec-client-IPPD3NF4.js → exec-client-DT5EWVQL.js} +10 -10
- package/dist/find-unit-337Y4QAC.js +24 -0
- package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-MSV52ODM.js} +18 -18
- package/dist/fleet-readiness-O76CSI7M.js +31 -0
- package/dist/governing-source-QEFYVBQF.js +41 -0
- package/dist/guest-init-X7M5AIOI.js +20 -0
- package/dist/{hook-fast-RNST4WJH.js → hook-fast-T6FOTZHA.js} +4 -4
- package/dist/{hook-install-G3FUCXBE.js → hook-install-OUSUHQ6C.js} +6 -6
- package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
- package/dist/host-checks-OXB5J3KR.js +79 -0
- package/dist/host-key-UFUIBFBF.js +18 -0
- package/dist/{image-tag-5Z2NKCHC.js → image-tag-AE6EKDPV.js} +10 -10
- package/dist/index.js +7 -7
- package/dist/{init-7OHFUQBV.js → init-PUN3PKOT.js} +50 -50
- package/dist/init-V7X3KA7B.js +79 -0
- package/dist/{init-agent-B5ADPZIB.js → init-agent-D3KK24QX.js} +51 -51
- package/dist/{init-cmd-ZT2PXGPD.js → init-cmd-LGRN3U7K.js} +32 -32
- package/dist/{init-update-WYM5WSM7.js → init-update-ZL2J7EQI.js} +27 -27
- package/dist/install-cmd-4ID4VBH2.js +21 -0
- package/dist/{layout-RPYMSWCY.js → layout-G6K72TXK.js} +6 -6
- package/dist/{login-browser-AMCRDS5C.js → login-browser-I6CWBA7K.js} +2 -2
- package/dist/{logs-XKEW5EOB.js → logs-DIA3NWC2.js} +9 -9
- package/dist/loop-AWBFKDV7.js +90 -0
- package/dist/machine-BZPKYURG.js +79 -0
- package/dist/{machine-skills-RP2Y5F32.js → machine-skills-JLJJDXBS.js} +6 -6
- package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-OTAX7QP2.js} +6 -6
- package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-63KQEQYS.js} +11 -11
- package/dist/{paths-6AMRSXZK.js → paths-KVMMJQ7T.js} +9 -9
- package/dist/pending-2IE3VBAN.js +18 -0
- package/dist/pidfile-NCBBWZNH.js +19 -0
- package/dist/record-PQDJVKYV.js +18 -0
- package/dist/{relay-CO5I2WOV.js → relay-QDB526DJ.js} +7 -7
- package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-PJ2HOP6B.js} +7 -7
- package/dist/runner-agents-CEW4Z3FR.js +14 -0
- package/dist/runner-env-23OLQBQZ.js +24 -0
- package/dist/runner-identity-IJKE4SRJ.js +20 -0
- package/dist/{runner-key-VCWF2EN7.js → runner-key-4J4MHN3S.js} +50 -50
- package/dist/session-sender-HKNACIH5.js +44 -0
- package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
- package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-4R7AYTBU.js} +19 -19
- package/dist/{starter-pack-W6S3L76K.js → starter-pack-6C7HPT4O.js} +7 -7
- package/dist/state-DPEWDXQN.js +18 -0
- package/dist/{status-HHM6TH6J.js → status-GMVC666R.js} +50 -50
- package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
- package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-UMAENSGZ.js} +22 -22
- package/dist/update-steps-GTXNCG3Z.js +80 -0
- package/dist/{watch-IA6UDVSF.js → watch-RAUF223H.js} +22 -22
- package/dist/{work-claim-cmd-7TLC4DKU.js → work-claim-cmd-A3ISXUFA.js} +24 -24
- package/dist/{work-cmd-2LXE27RX.js → work-cmd-U7YLMDZ7.js} +18 -18
- package/dist/work-comment-cmd-CMWMOWVG.js +38 -0
- package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-EKTJHIVM.js} +18 -18
- package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-Z3QOFYTJ.js} +18 -18
- package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-NJXIX3QZ.js} +19 -19
- package/dist/work-pr-cmd-JUV3SN7I.js +34 -0
- package/dist/{work-proofs-cmd-UQU6SSFD.js → work-proofs-cmd-MIDPIFTH.js} +20 -20
- package/dist/{work-proofs-record-MKCYQLS2.js → work-proofs-record-6FTMJDQG.js} +29 -29
- package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-Z7MYNR7R.js} +18 -18
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +5 -2
- package/dist/agent-setup-RXMEQ7PA.js +0 -40
- package/dist/build-ZH5MAZNM.js +0 -24
- package/dist/build-disk-GPCMOIZV.js +0 -21
- package/dist/builder-ZMVXHOEJ.js +0 -20
- package/dist/caller-J7FR4VBJ.js +0 -23
- package/dist/docker-CAMJXBAJ.js +0 -20
- package/dist/emit-artifact-cmd-CGY656UZ.js +0 -44
- package/dist/emit-criteria-cmd-3HYUUSDK.js +0 -35
- package/dist/find-unit-N3OJBFS5.js +0 -24
- package/dist/fleet-readiness-F46LOKJ6.js +0 -31
- package/dist/governing-source-4XYZYZCD.js +0 -41
- package/dist/guest-init-CFJM25V5.js +0 -20
- 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/install-cmd-3NOHEA6E.js +0 -21
- package/dist/loop-HTKTSGBA.js +0 -90
- package/dist/machine-RBYGRRSM.js +0 -79
- package/dist/pending-C4XQUKWA.js +0 -18
- package/dist/pidfile-3BILBCEO.js +0 -19
- package/dist/record-MV6WJGZT.js +0 -18
- package/dist/runner-agents-FQ4FODZN.js +0 -14
- package/dist/runner-env-72OTIZV2.js +0 -24
- package/dist/runner-identity-IVP2GW33.js +0 -20
- package/dist/session-sender-PWYFVWN6.js +0 -44
- package/dist/state-C3FRODOO.js +0 -18
- package/dist/update-steps-WD25IX2R.js +0 -80
- package/dist/work-comment-cmd-ER53OPLH.js +0 -38
- package/dist/work-pr-cmd-FCNFYWUR.js +0 -34
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-YWWW47OY.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-XDRZ3BNA.js';
|
|
6
|
+
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-OFWNBTLU.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-FOUG2R4Q.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-AVEF3T6Y.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
5
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-AVEF3T6Y.js';
|
|
5
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH } from './chunk-YXXJBHHF.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
import { pathToFileURL } from 'url';
|
|
@@ -1,16 +1,16 @@
|
|
|
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-
|
|
6
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
5
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
6
|
+
import { acquireSpoolLockAt } from './chunk-IXB2IIEW.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.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';
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
13
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
13
|
+
import { StepNameSchema, StepBodySchema } from './chunk-YXXJBHHF.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf,
|
|
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-RZ6WJTUP.js';
|
|
4
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
5
|
+
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
import { spawn, spawnSync } from 'child_process';
|
|
@@ -196,7 +196,7 @@ function firstOf(agent, values, source) {
|
|
|
196
196
|
const found = agent.credentials.classify(values);
|
|
197
197
|
return found === void 0 ? void 0 : { variable: found.variable, value: values[found.variable], source };
|
|
198
198
|
}
|
|
199
|
-
function readAgentCredential(env, agentId
|
|
199
|
+
function readAgentCredential(env, agentId, agents = defaultAgents()) {
|
|
200
200
|
const agent = agentOf(agentId, agents);
|
|
201
201
|
if (agent === void 0) return void 0;
|
|
202
202
|
const fromEnvironment = firstOf(agent, env, "environment");
|
|
@@ -219,11 +219,15 @@ function readAgentCredential(env, agentId = JOB_AGENT_ID, agents = defaultAgents
|
|
|
219
219
|
}
|
|
220
220
|
function agentCredentialVariablesSet(env, options = {}, agents = defaultAgents()) {
|
|
221
221
|
const found = /* @__PURE__ */ new Set();
|
|
222
|
+
const covered = /* @__PURE__ */ new Set();
|
|
222
223
|
for (const agent of runnerAgents(agents)) {
|
|
223
224
|
const add = (values) => {
|
|
224
225
|
for (const variable of agent.descriptor.credentials.forwarded) if ((values[variable] ?? "") !== "") found.add(variable);
|
|
225
226
|
};
|
|
226
227
|
add(env);
|
|
228
|
+
const shared = agent.descriptor.credentials.forwarded.every((variable) => covered.has(variable));
|
|
229
|
+
for (const variable of agent.descriptor.credentials.forwarded) covered.add(variable);
|
|
230
|
+
if (shared) continue;
|
|
227
231
|
const directory = env.CREDENTIALS_DIRECTORY;
|
|
228
232
|
if (directory) {
|
|
229
233
|
try {
|
|
@@ -264,12 +268,22 @@ function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
|
|
|
264
268
|
function removedAgentCredentialValues() {
|
|
265
269
|
return [...removedValues];
|
|
266
270
|
}
|
|
267
|
-
function heldAgentCredential(agentId
|
|
271
|
+
function heldAgentCredential(agentId) {
|
|
268
272
|
return heldCopies.get(agentId);
|
|
269
273
|
}
|
|
270
|
-
function currentAgentCredential(env, agentId
|
|
274
|
+
function currentAgentCredential(env, agentId, agents = defaultAgents()) {
|
|
271
275
|
return heldCopies.get(agentId) ?? readAgentCredential(env, agentId, agents);
|
|
272
276
|
}
|
|
277
|
+
function jobCredentialProblem(agent, env, agents = defaultAgents()) {
|
|
278
|
+
const owner = credentialAgent(agents);
|
|
279
|
+
if (owner === void 0 || agent.descriptor.id === owner.descriptor.id || agent.adapter.credentials === void 0) return void 0;
|
|
280
|
+
const held = currentAgentCredential(env, owner.descriptor.id, agents);
|
|
281
|
+
const { forwarded } = agent.descriptor.credentials;
|
|
282
|
+
if (held !== void 0 && forwarded.includes(held.variable)) return void 0;
|
|
283
|
+
const { runnerName } = credentialForms(agent.descriptor, agents);
|
|
284
|
+
const needs = orList(credentialShapes(agent.descriptor).map((shape) => shape.phrase));
|
|
285
|
+
return `${agent.descriptor.label} needs ${needs} in ${forwarded.join(" or ")}, and the runner holds ${held === void 0 ? "no credential" : held.variable}. Run \`outerlayer runner init --agent ${runnerName}\` with ${needs} on stdin.`;
|
|
286
|
+
}
|
|
273
287
|
var SETS = /^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)=/;
|
|
274
288
|
function credentialLineIn(text, agents = defaultAgents()) {
|
|
275
289
|
const set = parseRunnerEnv(text);
|
|
@@ -383,12 +397,12 @@ function builtInDestinations(input, agents = defaultAgents(), providers = PROVID
|
|
|
383
397
|
...providersOf(agents, providers).map((provider) => providerDestination(provider, input, managedKey, agents))
|
|
384
398
|
];
|
|
385
399
|
}
|
|
386
|
-
function builtInEnvironment(localFor, credential, agents = defaultAgents(), providers = PROVIDERS) {
|
|
387
|
-
const agent = credentialAgent(agents);
|
|
400
|
+
function builtInEnvironment(localFor, credential, agents = defaultAgents(), providers = PROVIDERS, job) {
|
|
401
|
+
const agent = job === void 0 ? credentialAgent(agents)?.credentials : jobAgent(job, agents)?.adapter.credentials;
|
|
388
402
|
return {
|
|
389
403
|
OUTERLAYER_URL: localFor(GATEWAY_DESTINATION),
|
|
390
404
|
OUTERLAYER_API_KEY: ITEM_KEY_PLACEHOLDER,
|
|
391
|
-
...agent === void 0 ? {} : agent.
|
|
405
|
+
...agent === void 0 ? {} : agent.buildEnvironment({ providerUrl: (id) => localFor(providers[id].destination.name), variable: credential?.variable })
|
|
392
406
|
};
|
|
393
407
|
}
|
|
394
408
|
|
|
@@ -431,4 +445,4 @@ var RUNNER_WORDED_REASONS = /* @__PURE__ */ new Set([
|
|
|
431
445
|
DOCKER_DESKTOP_REASON
|
|
432
446
|
]);
|
|
433
447
|
|
|
434
|
-
export { AGENT_CREDENTIAL_MISSING, BUILD_SLICE_MEMORY_ENV, COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON, DOCKER_DESKTOP_REASON, FD_SLOTS_PER_BUILD, FD_STORE_ENV, GATEWAY_PORT, GATEWAY_SOCKET, JOIN_DIR, JOIN_SOCKET, JOIN_WAIT_MS, MALFORMED_REASON, MAX_MALFORMED_SESSIONS, MAX_OPEN_STREAMS, MIN_SYSTEMD, RELAY_ID, RELAY_USER, RUNNER_WORDED_REASONS, SESSION_WINDOW, STREAM_RESET_BURST, STREAM_RESET_RATE, STREAM_WINDOW, TARGET_GATEWAY, TARGET_LEASE, TARGET_TUNNEL, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, agentCredential, agentCredentialVariablesSet, builtInDestinations, builtInEnvironment, builtInNames, credentialLineIn, currentAgentCredential, destinationPort, destinationTarget, fdName, heldAgentCredential, inspectService, managedAgentCredential, parseRunnerEnv, primaryDestination, providerDestinations, readAgentCredential, realFdStorePort, realInspectProbes, removedAgentCredentialValues, takeAgentCredentials, targetOfPath, withoutCredentialLines };
|
|
448
|
+
export { AGENT_CREDENTIAL_MISSING, BUILD_SLICE_MEMORY_ENV, COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON, DOCKER_DESKTOP_REASON, FD_SLOTS_PER_BUILD, FD_STORE_ENV, GATEWAY_PORT, GATEWAY_SOCKET, JOIN_DIR, JOIN_SOCKET, JOIN_WAIT_MS, MALFORMED_REASON, MAX_MALFORMED_SESSIONS, MAX_OPEN_STREAMS, MIN_SYSTEMD, RELAY_ID, RELAY_USER, RUNNER_WORDED_REASONS, SESSION_WINDOW, STREAM_RESET_BURST, STREAM_RESET_RATE, STREAM_WINDOW, TARGET_GATEWAY, TARGET_LEASE, TARGET_TUNNEL, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, agentCredential, agentCredentialVariablesSet, builtInDestinations, builtInEnvironment, builtInNames, credentialLineIn, currentAgentCredential, destinationPort, destinationTarget, fdName, heldAgentCredential, inspectService, jobCredentialProblem, managedAgentCredential, parseRunnerEnv, primaryDestination, providerDestinations, readAgentCredential, realFdStorePort, realInspectProbes, removedAgentCredentialValues, takeAgentCredentials, targetOfPath, withoutCredentialLines };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-ZO3RUMUR.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-FGVVBYCT.js';
|
|
5
|
+
import { installStarterPack } from './chunk-ABN4UBR5.js';
|
|
6
|
+
import { listWithAnd } from './chunk-EXIZ3G6I.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-YWWW47OY.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-DVFGCVTV.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-FOUG2R4Q.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
14
|
-
import { LEGACY_AGENT } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-AVEF3T6Y.js';
|
|
14
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
17
17
|
import { join, dirname } from 'path';
|
|
@@ -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-AVEF3T6Y.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
5
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
-
import { withTokenHeader } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-X2DX3A7H.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-T524XQKI.js';
|
|
5
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
|
|
6
|
+
import { withTokenHeader } from './chunk-OUHM6U6Z.js';
|
|
7
7
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
10
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-AVEF3T6Y.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-JTDMSQMI.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-XDRZ3BNA.js';
|
|
8
|
+
import { logHookError } from './chunk-256R6O56.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
13
13
|
|
|
14
14
|
createRequire(import.meta.url);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-
|
|
3
|
+
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-AVEF3T6Y.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { legacyAgent, defaultAgents, HookTextError } from './chunk-
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-AVEF3T6Y.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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 { VALIDATOR_FILES, VALIDATORS_DIR, 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-FGVVBYCT.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-ABN4UBR5.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-YWWW47OY.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-FOUG2R4Q.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-AVEF3T6Y.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-YWWW47OY.js';
|
|
5
|
+
import { DEFAULT_DASHBOARD } from './chunk-NEEMG462.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
11
|
-
import { remoteLookupFailed } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-5R5FEPLH.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -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-RZ6WJTUP.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';
|
|
@@ -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-AVEF3T6Y.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -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-AVEF3T6Y.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,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-2MQQASWB.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-CGXYPLK3.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -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
|
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, basename } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
4
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
4
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-YXXJBHHF.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
4
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
5
|
+
import { workPageUrl } from './chunk-EXIZ3G6I.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-XDRZ3BNA.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-EFAOERZH.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -486,7 +486,7 @@ async function runWorkLinkSession(opts) {
|
|
|
486
486
|
return await linkSession(opts);
|
|
487
487
|
} catch (err) {
|
|
488
488
|
if (opts.logFailures) {
|
|
489
|
-
const { logHookError } = await import('./hook-fast-
|
|
489
|
+
const { logHookError } = await import('./hook-fast-T6FOTZHA.js');
|
|
490
490
|
const reason = err instanceof Error ? err.message : String(err);
|
|
491
491
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
492
492
|
}
|
|
@@ -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-MDKLSY43.js';
|
|
4
|
+
import { writePendingUpdate } from './chunk-U7L4GBGS.js';
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-L4ACBB5R.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-PMJ6IEUM.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-S7CE7QCF.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-QONY6C2B.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-ZTJTAKVW.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-Z4R36YDJ.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
|
|
15
|
+
import { RepoFilter } from './chunk-3DVCPRKE.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-TAEDH2SU.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-ZLJXMXZP.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-PARDL7HH.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-3XWZKL2P.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-JTDMSQMI.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-VNT2IRLM.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-MPE4NOKD.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-3FAJMXBA.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-EFAOERZH.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-5VAXNAOD.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-OUHM6U6Z.js';
|
|
30
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-CGXYPLK3.js';
|
|
31
|
+
import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-RZ6WJTUP.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-U7YLMDZ7.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-FG32SYJF.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3656
3667
|
},
|
|
3657
3668
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3658
3669
|
log
|
|
@@ -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-Z4R36YDJ.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-2MQQASWB.js';
|
|
5
|
+
import { runnerDir } from './chunk-5VAXNAOD.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -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-5VAXNAOD.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
5
|
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
6
|
-
import { hookCodec } from './chunk-
|
|
6
|
+
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { readFileSync } from 'fs';
|
|
9
9
|
import { spawn } from 'child_process';
|
|
@@ -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, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-5VAXNAOD.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|