@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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-3FAJMXBA.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-5VAXNAOD.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -6,7 +6,7 @@ import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudCon
|
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
9
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-YXXJBHHF.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
12
12
|
import { fstatSync, existsSync, readdirSync, readFileSync, rmSync, mkdirSync, chmodSync, writeFileSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
5
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
12
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
12
|
+
import { CriteriaListSchema } from './chunk-YXXJBHHF.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
createRequire(import.meta.url);
|
|
@@ -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-AVEF3T6Y.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-BO3NOGKE.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-JTDMSQMI.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-XDRZ3BNA.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { parseProofsConfig } from './chunk-
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
13
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit } from './chunk-
|
|
11
|
+
import { parseProofsConfig } from './chunk-AVEF3T6Y.js';
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
13
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-YXXJBHHF.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { createHash } from 'crypto';
|
|
16
16
|
import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-OXB5J3KR.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-OXB5J3KR.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -224,7 +224,11 @@ ${parts.join("\n")}
|
|
|
224
224
|
}
|
|
225
225
|
function testSelectors(tests) {
|
|
226
226
|
if (!tests.selected) return [];
|
|
227
|
-
return tests.items.map((test) =>
|
|
227
|
+
return tests.items.map((test) => {
|
|
228
|
+
if (test.file === null) return test.name;
|
|
229
|
+
if (test.line !== null) return `${test.name}=${test.file}:${test.line}`;
|
|
230
|
+
return isTestSourcePath(test.file) ? `${test.name}=${test.file}` : test.name;
|
|
231
|
+
});
|
|
228
232
|
}
|
|
229
233
|
function testFilesOf(tests) {
|
|
230
234
|
return [...new Set(tests.items.flatMap((test) => test.file === null ? [] : [test.file]))].sort();
|
|
@@ -246,7 +250,7 @@ function recordingProblems(input) {
|
|
|
246
250
|
if (entry.proof !== "test" || entry.tests === void 0) continue;
|
|
247
251
|
const files = testFilesOf(entry.tests);
|
|
248
252
|
const unmatched = files.filter((file) => matches(file) === void 0);
|
|
249
|
-
if (files.length === 0) problems.push(`The host cannot record ${entry.id} again: its results name no test file.
|
|
253
|
+
if (files.length === 0) problems.push(`The host cannot record ${entry.id} again: its results name no test file. Turn on the JUnit reporter's file attribute (Vitest and jest-junit: addFileAttribute) and emit them again, or name each test's file with --test <name>=<path>.`);
|
|
250
254
|
else if (unmatched.length > 0) problems.push(`The host cannot record ${entry.id} again: no runner in .outerlayer-proofs.yaml matches ${unmatched.join(", ")}.`);
|
|
251
255
|
}
|
|
252
256
|
return problems;
|
|
@@ -368,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
368
372
|
async function runWorkProofsCommand(opts) {
|
|
369
373
|
try {
|
|
370
374
|
if (opts.record) {
|
|
371
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-6FTMJDQG.js');
|
|
372
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
373
377
|
process.exitCode = result2.exitCode;
|
|
374
378
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-OUHM6U6Z.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
7
|
-
import { MIN_SCRUBBED_LITERAL } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-CGXYPLK3.js';
|
|
4
|
+
import { strippedVariables } from './chunk-RZ6WJTUP.js';
|
|
5
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
|
+
import { MIN_SCRUBBED_LITERAL } from './chunk-5R5FEPLH.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
10
10
|
import { request } from 'https';
|
|
@@ -537,7 +537,7 @@ function buildEnvironment(input) {
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
const destinations = destinationEnvironment(input.config.build?.destinations, containerLocalAddress);
|
|
540
|
-
const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents) : {};
|
|
540
|
+
const builtInLiterals = builtIns ? builtInEnvironment((name2) => containerBuiltInAddress(name2, input.agents), input.config.managed === true ? managedAgentCredential(input.agents) : agentCredential(input.hostEnv, {}, input.agents), input.agents, void 0, input.job) : {};
|
|
541
541
|
const hooksPath = input.identity?.hooksPath;
|
|
542
542
|
const hooks = {};
|
|
543
543
|
if (hooksPath !== void 0) {
|
|
@@ -1,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-5VAXNAOD.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -108,9 +108,49 @@ var CLAUDE_CODE_HOOKS = {
|
|
|
108
108
|
statusLine
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
+
// ../agents/src/opencode/hooks.ts
|
|
112
|
+
var REGISTERED2 = [
|
|
113
|
+
["session.execution.started", "session-start"],
|
|
114
|
+
["session.tool.success", "tool-used"],
|
|
115
|
+
["session.usage.updated", "usage"],
|
|
116
|
+
["session.execution.succeeded", "turn-ended"]
|
|
117
|
+
];
|
|
118
|
+
var KIND_BY_NAME2 = new Map(REGISTERED2);
|
|
119
|
+
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
120
|
+
var text2 = (value) => typeof value === "string" ? value : void 0;
|
|
121
|
+
function parsePayload2(stdin) {
|
|
122
|
+
try {
|
|
123
|
+
const parsed = stdin === "" ? {} : JSON.parse(stdin);
|
|
124
|
+
return isObject(parsed) ? parsed : {};
|
|
125
|
+
} catch {
|
|
126
|
+
return {};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function decode2(name, stdin) {
|
|
130
|
+
const payload = parsePayload2(stdin);
|
|
131
|
+
const nativeName = String(name ?? payload.type ?? "unknown");
|
|
132
|
+
const kind = KIND_BY_NAME2.get(nativeName);
|
|
133
|
+
const sessionId = text2(isObject(payload.data) ? payload.data.sessionID : void 0) ?? text2(payload.sessionID);
|
|
134
|
+
const cwd = text2(isObject(payload.location) ? payload.location.directory : void 0);
|
|
135
|
+
return {
|
|
136
|
+
nativeName,
|
|
137
|
+
...kind === void 0 ? {} : { kind },
|
|
138
|
+
...kind !== void 0 && sessionId !== void 0 ? { event: { kind, sessionId, cwd: cwd ?? "", session: { agent: "opencode", id: sessionId, locator: { kind: "export", id: sessionId } } } } : {},
|
|
139
|
+
spool: { sessionId: sessionId ?? null, transcriptPath: null, cwd: cwd ?? null, payloadEvent: payload.type ?? null },
|
|
140
|
+
fromSubagent: false
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
var OPENCODE_CODEC = {
|
|
144
|
+
events: REGISTERED2.map(([name]) => name),
|
|
145
|
+
decode: decode2,
|
|
146
|
+
// OpenCode takes no context from a hook, so there is nothing to print.
|
|
147
|
+
reply: () => ""
|
|
148
|
+
};
|
|
149
|
+
|
|
111
150
|
// ../agents/src/native/hook-codecs.ts
|
|
112
151
|
var HOOK_CODECS = {
|
|
113
|
-
"claude-code": CLAUDE_CODE_HOOKS
|
|
152
|
+
"claude-code": CLAUDE_CODE_HOOKS,
|
|
153
|
+
opencode: OPENCODE_CODEC
|
|
114
154
|
};
|
|
115
155
|
|
|
116
156
|
// ../agents/src/lifecycle.ts
|
|
@@ -118,4 +158,4 @@ function hookCodec(agentId) {
|
|
|
118
158
|
return HOOK_CODECS[agentId ?? LEGACY_AGENT];
|
|
119
159
|
}
|
|
120
160
|
|
|
121
|
-
export { CLAUDE_CODE_HOOKS, hookCodec };
|
|
161
|
+
export { CLAUDE_CODE_HOOKS, OPENCODE_CODEC, hookCodec };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-Z4R36YDJ.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-PARDL7HH.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-JTDMSQMI.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-VNT2IRLM.js';
|
|
9
|
+
import { signerFor } from './chunk-EFAOERZH.js';
|
|
10
|
+
import { pidFilePath } from './chunk-5VAXNAOD.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
10
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
11
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-Z4R36YDJ.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-VNT2IRLM.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MPE4NOKD.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-EFAOERZH.js';
|
|
9
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-CGXYPLK3.js';
|
|
10
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-RZ6WJTUP.js';
|
|
11
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
12
12
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
13
13
|
import { join, dirname } from 'path';
|
|
14
14
|
import { totalmem } from 'os';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
5
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-AVEF3T6Y.js';
|
|
5
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { hookCodec } from './chunk-
|
|
4
|
+
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
5
5
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
6
6
|
import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
|
|
7
7
|
import { spawn } from 'child_process';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-4MSEUIMK.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { detectActiveSession } from './chunk-
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
7
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
11
|
-
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-
|
|
11
|
+
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-RZ6WJTUP.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
-
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-
|
|
13
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
14
|
+
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-YXXJBHHF.js';
|
|
15
15
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
16
16
|
import { createHash } from 'crypto';
|
|
17
17
|
import { mkdtempSync, writeFileSync, statSync, readFileSync, rmSync, mkdirSync, existsSync, copyFileSync, accessSync, constants, realpathSync, createReadStream, createWriteStream } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-ZTJTAKVW.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, agentById } from './chunk-
|
|
4
|
-
import {
|
|
3
|
+
import { defaultAgents, agentById } from './chunk-AVEF3T6Y.js';
|
|
4
|
+
import { PROVIDERS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { join, dirname } from 'path';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// src/runner/image/pins.ts
|
|
10
10
|
var CLAUDE_CODE_VERSION = "2.1.284";
|
|
11
|
+
var OPENCODE_VERSION = "2.2.5";
|
|
11
12
|
var DEFAULT_BASE_IMAGE = "ubuntu:24.04@sha256:008173c23f95b170204355c12626cb5a965d779a7e1283b09e9cffbb1bf33ca3";
|
|
12
13
|
var NODE_IMAGE = "node:22-bookworm-slim@sha256:43ac6c60b8f89723f746e8a92ce91abd5017e627ce1ddfe4238355d3a30b772c";
|
|
13
14
|
var BUILDKIT_IMAGE = "moby/buildkit:v0.33.1@sha256:cec9f139f45e93c5c69c60f8b07cfad9f43f4ef6b6a6cd917527fea5ff2e3dea";
|
|
@@ -146,7 +147,7 @@ function universalImagePinned(digest = UNIVERSAL_IMAGE_DIGEST) {
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
// src/runner/runner-agents.ts
|
|
149
|
-
var AGENT_PINS = { [LEGACY_AGENT]: CLAUDE_CODE_VERSION };
|
|
150
|
+
var AGENT_PINS = { [LEGACY_AGENT]: CLAUDE_CODE_VERSION, opencode: OPENCODE_VERSION };
|
|
150
151
|
function runnerAgents(agents = defaultAgents()) {
|
|
151
152
|
return agents.flatMap((agent) => agent.adapter.credentials === void 0 ? [] : [{ descriptor: agent.descriptor, adapter: agent.adapter, credentials: agent.adapter.credentials }]);
|
|
152
153
|
}
|
|
@@ -156,10 +157,18 @@ function credentialAgent(agents = defaultAgents()) {
|
|
|
156
157
|
function buildAgent(agents = defaultAgents()) {
|
|
157
158
|
return agentById(LEGACY_AGENT, agents);
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
160
|
+
function programOf(command) {
|
|
161
|
+
const word = command.trim().split(/\s+/).find((candidate) => !/^[A-Za-z_][A-Za-z0-9_]*=/.test(candidate));
|
|
162
|
+
return word?.replace(/^["']|["']$/g, "").split("/").pop();
|
|
163
|
+
}
|
|
164
|
+
function agentIdOfCommand(command, agents = defaultAgents()) {
|
|
165
|
+
const program = command === void 0 ? void 0 : programOf(command);
|
|
166
|
+
return program === void 0 ? void 0 : agents.find((agent) => agent.descriptor.program === program)?.descriptor.id;
|
|
167
|
+
}
|
|
168
|
+
function jobAgent(job, agents = defaultAgents()) {
|
|
169
|
+
const id = job?.agent ?? agentIdOfCommand(job?.command, agents);
|
|
170
|
+
return (id === void 0 ? void 0 : agentById(id, agents)) ?? buildAgent(agents);
|
|
161
171
|
}
|
|
162
|
-
var JOB_AGENT_ID = LEGACY_AGENT;
|
|
163
172
|
function headlessAgents(agents = defaultAgents()) {
|
|
164
173
|
return agents.flatMap((agent) => agent.adapter.headless === void 0 ? [] : [{ descriptor: agent.descriptor, adapter: agent.adapter, headless: agent.adapter.headless }]);
|
|
165
174
|
}
|
|
@@ -174,10 +183,10 @@ function agentCommands(name, agents = defaultAgents()) {
|
|
|
174
183
|
return found === void 0 ? void 0 : { implement: found.headless.commandLine(queuePrompt("implement"), "implement"), amend: found.headless.commandLine(queuePrompt("amend"), "amend") };
|
|
175
184
|
}
|
|
176
185
|
function defaultCommandLine(queue, agents = defaultAgents()) {
|
|
177
|
-
return
|
|
186
|
+
return buildAgent(agents)?.adapter.headless?.commandLine(queuePrompt(queue), queue);
|
|
178
187
|
}
|
|
179
|
-
function jobCommandEnv(sessionEnv, agents = defaultAgents()) {
|
|
180
|
-
return { ...jobAgent(
|
|
188
|
+
function jobCommandEnv(sessionEnv, agents = defaultAgents(), job) {
|
|
189
|
+
return { ...jobAgent(job, agents)?.adapter.headless?.jobEnv, OUTERLAYER_UNATTENDED: "1", ...sessionEnv };
|
|
181
190
|
}
|
|
182
191
|
function runnerNameOf(descriptor) {
|
|
183
192
|
return descriptor.legacy?.runnerName ?? descriptor.id;
|
|
@@ -209,9 +218,10 @@ function storeVariables(forms) {
|
|
|
209
218
|
const [first, ...rest] = forms.variables;
|
|
210
219
|
return [`${first} (from \`${forms.setupCommand}\`)`, ...rest].join(" or ");
|
|
211
220
|
}
|
|
212
|
-
function credentialForms(descriptor) {
|
|
221
|
+
function credentialForms(descriptor, agents = defaultAgents()) {
|
|
213
222
|
const { label, setupCommand, forwarded } = descriptor.credentials;
|
|
214
|
-
|
|
223
|
+
const owner = runnerAgents(agents).find((agent) => agent.descriptor.credentials.forwarded.some((variable) => forwarded.includes(variable)))?.descriptor ?? descriptor;
|
|
224
|
+
return { label, possessive: `${label}'s`, checkName: `${runnerNameOf(descriptor)} credential`, setupCommand, variables: forwarded, runnerName: runnerNameOf(descriptor), envFile: credentialNames(owner).envFile };
|
|
215
225
|
}
|
|
216
226
|
function credentialShapes(descriptor, providers = PROVIDERS) {
|
|
217
227
|
const { setupCommand, forwarded, kinds } = descriptor.credentials;
|
|
@@ -219,7 +229,7 @@ function credentialShapes(descriptor, providers = PROVIDERS) {
|
|
|
219
229
|
const kind = kinds[variable];
|
|
220
230
|
const provider = providers[kind.provider];
|
|
221
231
|
const name = `${provider?.label ?? kind.provider} ${provider?.credentialKinds.find((candidate) => candidate.id === kind.providerKind)?.label ?? kind.providerKind}`;
|
|
222
|
-
return { phrase: index === 0 ? `a token from \`${setupCommand}\`` : `${/^[AEIOU]/i.test(name) ? "an" : "a"} ${name}`, starts: kind.starts };
|
|
232
|
+
return { phrase: index === 0 && setupCommand !== "" ? `a token from \`${setupCommand}\`` : `${/^[AEIOU]/i.test(name) ? "an" : "a"} ${name}`, starts: kind.starts };
|
|
223
233
|
});
|
|
224
234
|
}
|
|
225
235
|
function orList(items) {
|
|
@@ -238,15 +248,28 @@ function providersOf(agents = defaultAgents(), providers = PROVIDERS) {
|
|
|
238
248
|
function buildAgentPin(agents = defaultAgents()) {
|
|
239
249
|
return AGENT_PINS[buildAgent(agents)?.descriptor.id ?? LEGACY_AGENT];
|
|
240
250
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
251
|
+
function judgeAgent(agents = defaultAgents()) {
|
|
252
|
+
return buildAgent(agents);
|
|
253
|
+
}
|
|
254
|
+
function imageInstalls(agents = defaultAgents(), buildVersion, versions = {}) {
|
|
255
|
+
const build = buildAgent(agents);
|
|
256
|
+
return agents.flatMap((agent) => {
|
|
257
|
+
const version = agent === build && buildVersion !== void 0 ? buildVersion : versions[agent.descriptor.id] ?? AGENT_PINS[agent.descriptor.id];
|
|
258
|
+
return agent.adapter.image === void 0 || version === void 0 ? [] : [{ agent, image: agent.adapter.image, version }];
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
function imageAgentPins(agents = defaultAgents(), buildVersion) {
|
|
262
|
+
return imageInstalls(agents, buildVersion).map(({ agent, version }) => ({ id: agent.descriptor.id, version }));
|
|
263
|
+
}
|
|
264
|
+
function agentVersionOf(toolsJson, agents = defaultAgents(), job) {
|
|
265
|
+
const agent = jobAgent(job, agents);
|
|
243
266
|
try {
|
|
244
267
|
const key = agent?.adapter.image?.versionKey;
|
|
245
268
|
const version = key === void 0 ? void 0 : JSON.parse(toolsJson)[key];
|
|
246
269
|
if (typeof version === "string" && version !== "") return version;
|
|
247
270
|
} catch {
|
|
248
271
|
}
|
|
249
|
-
return buildAgentPin(agents);
|
|
272
|
+
return AGENT_PINS[agent?.descriptor.id ?? LEGACY_AGENT] ?? buildAgentPin(agents);
|
|
250
273
|
}
|
|
251
274
|
|
|
252
|
-
export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256,
|
|
275
|
+
export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, imageAgentPins, imageInstalls, jobAgent, jobCommandEnv, judgeAgent, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
|
|
@@ -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-Z4R36YDJ.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-TAEDH2SU.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-FPEQS6HK.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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -21,8 +21,11 @@ function versionAtLeast(text, minimum = MINIMUM_CLAUDE_VERSION) {
|
|
|
21
21
|
const difference = have.map((part, i) => part - need[i]).find((delta) => delta !== 0);
|
|
22
22
|
return (difference ?? 0) >= 0;
|
|
23
23
|
}
|
|
24
|
-
var SHIM_SCRIPT =
|
|
25
|
-
|
|
24
|
+
var SHIM_SCRIPT = shimScriptFor(LEGACY.legacy.subcommand);
|
|
25
|
+
function shimScriptFor(subcommand) {
|
|
26
|
+
return `#!/bin/sh
|
|
27
|
+
exec outerlayer ${subcommand} "$@"
|
|
26
28
|
`;
|
|
29
|
+
}
|
|
27
30
|
|
|
28
|
-
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, versionAtLeast };
|
|
31
|
+
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, shimScriptFor, versionAtLeast };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
8
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-ERQLHUWU.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-BL6CCU26.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-EERD7VI3.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-EXIZ3G6I.js';
|
|
8
|
+
import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
13
|
-
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-
|
|
10
|
+
import { checkFormerSkillNames } from './chunk-T524XQKI.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-XDRZ3BNA.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-256R6O56.js';
|
|
13
|
+
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { readStatuslineState, STATE_FRESH_MS } from './chunk-
|
|
15
|
+
import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-EHJYXABQ.js';
|
|
18
18
|
import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
19
19
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
20
20
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
21
|
-
import { defaultAgents, legacyAgent, contextAgents } from './chunk-
|
|
21
|
+
import { defaultAgents, legacyAgent, contextAgents } from './chunk-AVEF3T6Y.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
|
-
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-
|
|
23
|
+
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
25
25
|
import { sep, join, dirname, resolve, delimiter } from 'path';
|
|
26
26
|
import { execFileSync } from 'child_process';
|
|
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
|
|
|
1050
1050
|
|
|
1051
1051
|
// src/doctor-report.ts
|
|
1052
1052
|
async function gatherDoctorChecks() {
|
|
1053
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1054
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1053
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-CKBEEF4N.js');
|
|
1054
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-EA6WVKAS.js');
|
|
1055
1055
|
const configPath = defaultRunnerConfigPath();
|
|
1056
1056
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1057
1057
|
const hooks = (() => {
|
|
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
|
|
|
1079
1079
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1080
1080
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1081
1081
|
} else if (hasRunnerBlock(configPath)) {
|
|
1082
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1082
|
+
const { runnerHostChecks } = await import('./doctor-AFH6UUX6.js');
|
|
1083
1083
|
const gateway = (() => {
|
|
1084
1084
|
try {
|
|
1085
1085
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
|
|
|
1107
1107
|
const service = await (async () => {
|
|
1108
1108
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1109
1109
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1110
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1110
|
+
const { inspectRunnerService } = await import('./find-unit-337Y4QAC.js');
|
|
1111
1111
|
return inspectRunnerService(configPath);
|
|
1112
1112
|
})();
|
|
1113
1113
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-AVEF3T6Y.js';
|
|
5
5
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
6
6
|
import { join, dirname, relative, sep } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
6
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-OUHM6U6Z.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-CGXYPLK3.js';
|
|
5
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|