@outerlayer/cli 0.34.0-next.20261028183303 → 0.34.0-next.20261029100612
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/agent-setup-UPIHHKI2.js +32 -0
- package/dist/{artifact-link-cmd-CSVFEM5O.js → artifact-link-cmd-6LFCTDBD.js} +5 -5
- package/dist/{bridge-4GRZFXJU.js → bridge-XM4QLKIX.js} +2 -2
- package/dist/{build-SEJJWGTO.js → build-UBZNVGY2.js} +10 -10
- package/dist/{build-disk-EYRR3PBT.js → build-disk-Y3MMWFYE.js} +7 -7
- package/dist/build-info.json +1 -1
- package/dist/{builder-T7B46P7T.js → builder-SX4W5VF3.js} +6 -6
- package/dist/caller-IIA2TPAA.js +18 -0
- package/dist/{check-VKSOYRNI.js → check-PVB3GPFQ.js} +88 -70
- package/dist/{chunk-ANPNT6PM.js → chunk-2AM6Z5BP.js} +1 -1
- package/dist/{chunk-3UIXIGYT.js → chunk-2B6EKUBD.js} +4 -4
- package/dist/{chunk-QGDGGLSD.js → chunk-2F43WNKI.js} +3 -3
- package/dist/{chunk-UZEIBWTP.js → chunk-2OE4BZRF.js} +8 -8
- package/dist/{chunk-VNVZDWO3.js → chunk-352DHUTP.js} +4 -1
- package/dist/{chunk-W7E6IMEW.js → chunk-3EEJGQEJ.js} +22 -21
- package/dist/{chunk-5W2YSWIW.js → chunk-4PH4DVV4.js} +1 -1
- package/dist/{chunk-WH3FPBPO.js → chunk-4PWOZU7R.js} +82 -33
- package/dist/{chunk-ZJSNLVCE.js → chunk-545P7JY7.js} +1 -1
- package/dist/{chunk-RRXS4CWE.js → chunk-5C7QZBLI.js} +9 -7
- package/dist/{chunk-2EEW6FJN.js → chunk-5FWBAM6O.js} +1 -1
- package/dist/{chunk-T2Q7ISPE.js → chunk-5WYT3PPE.js} +1 -1
- package/dist/{chunk-ARL6X6Y4.js → chunk-62TMOXQN.js} +2 -2
- package/dist/{chunk-EA2PQRCU.js → chunk-7CIU64OH.js} +6 -6
- package/dist/{chunk-AF4E4I4T.js → chunk-7G35LX5D.js} +11 -11
- package/dist/{chunk-KH4774QT.js → chunk-7R655ODT.js} +1 -1
- package/dist/{chunk-G2JWZDFA.js → chunk-A2LHHKTT.js} +3 -3
- package/dist/{chunk-ESVW4MJY.js → chunk-AAGU5FJF.js} +1 -1
- package/dist/{chunk-QGEGLZSY.js → chunk-ADI2CCDX.js} +47 -7
- package/dist/{chunk-I2MFIT6X.js → chunk-AGMR4IQE.js} +29 -28
- package/dist/{chunk-SAAVZ2BX.js → chunk-AUVJMR3P.js} +1 -1
- package/dist/{chunk-HFOZTCTN.js → chunk-AVHPSB65.js} +7 -7
- package/dist/{chunk-KQDK4Q6A.js → chunk-CDVG2LXT.js} +10 -10
- package/dist/{chunk-TUSYOL2O.js → chunk-CJPTUU2E.js} +1 -1
- package/dist/{chunk-OYQVLQP3.js → chunk-EQ5Y2OMK.js} +16 -14
- package/dist/{chunk-MH6QLXUO.js → chunk-FJ7KTNMD.js} +1 -1
- package/dist/{chunk-KPEMNHVF.js → chunk-FNKCMOQY.js} +3 -3
- package/dist/{chunk-2O5KA67H.js → chunk-FUJUFLDC.js} +2 -2
- package/dist/{chunk-CRB3POP4.js → chunk-FZKNTIOJ.js} +1 -1
- package/dist/{chunk-YLPJOUVF.js → chunk-GANAOCHR.js} +6 -1
- package/dist/{chunk-3KGXXTMN.js → chunk-GBMTKV5B.js} +5 -5
- package/dist/{chunk-POND2SMT.js → chunk-H2GESWLW.js} +3 -3
- package/dist/{chunk-DCBFUUDL.js → chunk-HERRKKES.js} +7 -7
- package/dist/{chunk-V2S2WRGD.js → chunk-HS5QEIJT.js} +11 -11
- package/dist/{chunk-PJDQPF5N.js → chunk-HWVMRETT.js} +1 -1
- package/dist/{chunk-H7MGR2GN.js → chunk-IUPYSGCP.js} +6 -6
- package/dist/{chunk-7JSWRF5O.js → chunk-JFALOM5G.js} +10 -10
- package/dist/{chunk-XDAMLX2L.js → chunk-JQOET7TF.js} +9 -9
- package/dist/{chunk-RQ3GCCHH.js → chunk-JXXMOAJG.js} +2 -2
- package/dist/{chunk-URIZRCRY.js → chunk-KYDEBGJG.js} +1 -1
- package/dist/{chunk-GG5OE6MY.js → chunk-KZUHEN26.js} +2 -2
- package/dist/{chunk-2EHDLYSL.js → chunk-LFXLFDEA.js} +30 -22
- package/dist/chunk-LW2A24IA.js +31 -0
- package/dist/{chunk-BBJ6BM5U.js → chunk-MKSZHT6S.js} +1 -1
- package/dist/{chunk-VX7WZK7J.js → chunk-MOG4XCYS.js} +189 -121
- package/dist/{chunk-P2PNBDUT.js → chunk-NM3L4JBB.js} +4 -4
- package/dist/{chunk-TDCHUEKY.js → chunk-O7CGRDRQ.js} +5 -5
- package/dist/{chunk-KT4CN6OU.js → chunk-OHQMGLJP.js} +3 -3
- package/dist/{chunk-5BHIBJDA.js → chunk-OLM2TIOW.js} +1 -1
- package/dist/{chunk-VEVNGDTP.js → chunk-PDK35AR4.js} +2 -2
- package/dist/{chunk-RPST2GNG.js → chunk-PQ5YDDDE.js} +3 -3
- package/dist/{chunk-OKJXZXYH.js → chunk-PUSCE544.js} +6 -6
- package/dist/{chunk-ZEFNJCN3.js → chunk-QM3HMXMU.js} +2 -2
- package/dist/chunk-RW3YMQVQ.js +39 -0
- package/dist/{chunk-ZCZY3Q55.js → chunk-SHPCVBT3.js} +1 -1
- package/dist/{chunk-UXC3RQLF.js → chunk-SQGD4LYW.js} +1 -1
- package/dist/{chunk-LJEZGHCH.js → chunk-SYCZTZXD.js} +647 -211
- package/dist/{chunk-4YD7N6V3.js → chunk-TKTVKEES.js} +4 -4
- package/dist/{chunk-GH2HEEOH.js → chunk-TV2OQUWE.js} +1 -1
- package/dist/{chunk-MRLJK4GZ.js → chunk-UGPJIKN4.js} +6 -6
- package/dist/{chunk-HH3BQG65.js → chunk-UPRZREBO.js} +1 -1
- package/dist/{chunk-ROQPDCRU.js → chunk-UZGQT6OF.js} +1 -1
- package/dist/{chunk-NCOL5RYI.js → chunk-VNHBDHX7.js} +1 -1
- package/dist/{chunk-64O2NUVA.js → chunk-VO46IHB4.js} +8 -7
- package/dist/{chunk-MCPCOKHN.js → chunk-W74HQLLZ.js} +9 -9
- package/dist/{chunk-ZCA34T7R.js → chunk-WDDVPDLQ.js} +8 -8
- package/dist/{chunk-YF7W7B7Y.js → chunk-WDIZT56W.js} +38 -11
- package/dist/{chunk-CUAB7FAZ.js → chunk-WG3VIMD2.js} +8 -8
- package/dist/{chunk-IAVT7R6O.js → chunk-WJTIU2A5.js} +6 -6
- package/dist/{chunk-NXUZFHMX.js → chunk-WK4OTIAN.js} +3 -3
- package/dist/{chunk-T3XPLCJG.js → chunk-XBECMHJW.js} +1 -1
- package/dist/{chunk-54LIUIZL.js → chunk-XGSJNXH2.js} +4 -4
- package/dist/{chunk-5TXQFZHY.js → chunk-XU5BNWX7.js} +1 -1
- package/dist/{chunk-I7RZHMXW.js → chunk-YBAVN6WS.js} +3 -3
- package/dist/{chunk-ZTOJIRJH.js → chunk-YBP22LDO.js} +8 -8
- package/dist/{chunk-S6UM3N4R.js → chunk-YQHUCOUL.js} +37 -12
- package/dist/{chunk-IXRUVR25.js → chunk-YTTESG7K.js} +46 -7
- package/dist/{chunk-CKDSPW35.js → chunk-ZI2E4YMY.js} +6 -6
- package/dist/{chunk-MEIDQLXQ.js → chunk-ZI7JENTB.js} +1 -1
- package/dist/{claude-launcher-7IC6QWR5.js → claude-launcher-MMCKOBND.js} +6 -6
- package/dist/{cli-HBS2PXSS.js → cli-W4B35KDN.js} +165 -155
- package/dist/{cli-update-notice-4DLZ3655.js → cli-update-notice-T3CXRWNB.js} +3 -3
- package/dist/{command-XA6DOFL4.js → command-SKJHW4C4.js} +43 -42
- package/dist/{config-RSOCVUKC.js → config-ZDENMTEW.js} +9 -9
- package/dist/connect-cmd-APZN6F6N.js +27 -0
- package/dist/{container-start-PYW7W2N2.js → container-start-PAUJUXJX.js} +57 -56
- package/dist/{context-cleanup-CEZSKNVL.js → context-cleanup-PASDUBGW.js} +5 -5
- package/dist/{context-show-cmd-XWLTP6R4.js → context-show-cmd-OWREGUJL.js} +19 -19
- package/dist/{control-plane-launch-3MBWPYWZ.js → control-plane-launch-FV5Q6GVJ.js} +16 -16
- package/dist/{demo-record-cmd-SIKNTSGI.js → demo-record-cmd-KXLLIMOP.js} +5 -5
- package/dist/{demo-voice-cmd-SAB3QU4F.js → demo-voice-cmd-TY2OX2CZ.js} +30 -30
- package/dist/{dist-VPXROEZO.js → dist-Z6WP743R.js} +2 -2
- package/dist/{docker-YMRPMDOW.js → docker-SKD6VTBD.js} +6 -6
- package/dist/{doctor-NVHAE4LS.js → doctor-DX6N3L5T.js} +53 -42
- package/dist/emit-artifact-cmd-NFAASCXW.js +43 -0
- package/dist/emit-cmd-UOPHEUW5.js +16 -0
- package/dist/emit-criteria-cmd-TX4LKO5X.js +33 -0
- package/dist/emit-demo-cmd-FRJFQKED.js +47 -0
- package/dist/emit-finding-cmd-LO2AKL4P.js +34 -0
- package/dist/{emit-result-cmd-VCKNZ4RZ.js → emit-result-cmd-7PL4HNXL.js} +28 -28
- package/dist/emit-step-cmd-RZT6VK5U.js +33 -0
- package/dist/{exec-client-U4544U2S.js → exec-client-UHL7WPDO.js} +3 -3
- package/dist/find-unit-IBL736HQ.js +19 -0
- package/dist/{findings-cmd-PLHBAQW4.js → findings-cmd-MEU7GDRC.js} +23 -23
- package/dist/fleet-readiness-4RNICYSP.js +28 -0
- package/dist/governing-source-6DH2NLPE.js +38 -0
- package/dist/{guest-init-MI4SEME4.js → guest-init-2TTQKFFZ.js} +4 -4
- package/dist/{hook-fast-GOH4T6SN.js → hook-fast-5PNO5HRO.js} +6 -6
- package/dist/{hook-wrap-fast-7VYYAAH4.js → hook-wrap-fast-545QJSBJ.js} +3 -3
- package/dist/host-checks-FWPDGTWF.js +78 -0
- package/dist/{host-key-OMLDWLNG.js → host-key-Q5DEAP3Q.js} +3 -3
- package/dist/{image-tag-YJJONB64.js → image-tag-JWATDMIZ.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/init-DWOODP2Q.js +57 -0
- package/dist/{init-W3ATJYLX.js → init-GF43ZLZI.js} +39 -38
- package/dist/{init-cmd-XJOEU2PB.js → init-cmd-LW4TECQH.js} +33 -33
- package/dist/{init-update-KX3FFQ5H.js → init-update-5PTU5IE6.js} +30 -30
- package/dist/{install-cmd-QTIIMO6B.js → install-cmd-ZEFBJH24.js} +5 -5
- package/dist/{layout-7UOBWNYO.js → layout-ZE6F2Z7W.js} +4 -4
- package/dist/login-browser-YB7AMKHR.js +13 -0
- package/dist/{logout-cmd-5WE2N5B5.js → logout-cmd-Z2PYV5LF.js} +5 -5
- package/dist/{logs-YVXVAYTD.js → logs-3YRC7HRA.js} +23 -3
- package/dist/loop-UBAR3KBZ.js +89 -0
- package/dist/machine-H4Y5X424.js +57 -0
- package/dist/{machine-skills-KYN7XJEJ.js → machine-skills-DMHU7OLO.js} +5 -5
- package/dist/{mcp-install-cmd-LD7KYAOP.js → mcp-install-cmd-23ZY4IBK.js} +5 -5
- package/dist/{mcp-serve-cmd-ECTAPDB3.js → mcp-serve-cmd-PKXIHUOX.js} +9 -9
- package/dist/{paths-M66LPPUF.js → paths-7PC3K7C3.js} +2 -2
- package/dist/{pending-7LC6XDRO.js → pending-2VIIFAP4.js} +3 -3
- package/dist/{pidfile-DSQOOAZV.js → pidfile-KQ2EJABZ.js} +3 -3
- package/dist/{record-3KKIJ3XL.js → record-IHEF6C33.js} +3 -3
- package/dist/{runner-env-EX7YUIUH.js → runner-env-KCZBSWOB.js} +11 -11
- package/dist/{runner-identity-LJWBXNM5.js → runner-identity-D5HQ22D3.js} +6 -6
- package/dist/{runner-key-CAUO4RKG.js → runner-key-N5YEMI3S.js} +38 -37
- package/dist/session-sender-GJEVFQVN.js +43 -0
- package/dist/{settings-3DBYKYQD.js → settings-XB2HYBKO.js} +2 -2
- package/dist/{spec-cmd-SAWQYHKM.js → spec-cmd-BRTO5J2C.js} +23 -23
- package/dist/{starter-pack-KB3YH4KX.js → starter-pack-WUNNS6G7.js} +9 -9
- package/dist/state-FJPSFOID.js +9 -0
- package/dist/{status-VMFS7N6A.js → status-UPEZZYCT.js} +78 -56
- package/dist/{statusline-fast-YVHG6ZLX.js → statusline-fast-E7RWVREA.js} +4 -4
- package/dist/sync-cmd-EO4TP2K7.js +42 -0
- package/dist/update-steps-46FCWHJZ.js +79 -0
- package/dist/{watch-6NRBX6VE.js → watch-EG6MYI3O.js} +28 -28
- package/dist/{work-claim-cmd-SLVX2N4L.js → work-claim-cmd-MPH5HFLT.js} +26 -26
- package/dist/work-cmd-PKEAVXJC.js +31 -0
- package/dist/work-comment-cmd-7IEOLOOK.js +32 -0
- package/dist/{work-demo-cmd-SZJIKB5J.js → work-demo-cmd-GKMBBMMM.js} +20 -20
- package/dist/{work-launch-LEQ2MPM3.js → work-launch-TTGSHLY4.js} +3 -3
- package/dist/{work-logs-cmd-MRFSBMJM.js → work-logs-cmd-44ZOKO5E.js} +20 -20
- package/dist/{work-open-pr-cmd-N7GK7FUQ.js → work-open-pr-cmd-YYQLQ7DN.js} +22 -22
- package/dist/work-pr-cmd-ILCIO22W.js +32 -0
- package/dist/work-proofs-cmd-S7HZNVFC.js +35 -0
- package/dist/{work-proofs-record-JD4DNZUW.js → work-proofs-record-RJMR37XG.js} +34 -34
- package/dist/{work-stop-cmd-M6RIGF7S.js → work-stop-cmd-5VPW7HOZ.js} +20 -20
- package/package.json +1 -1
- package/dist/agent-setup-IVXRBFVV.js +0 -32
- package/dist/connect-cmd-JFGDHFLA.js +0 -27
- package/dist/emit-artifact-cmd-TZTVQCFT.js +0 -43
- package/dist/emit-cmd-4G3443OJ.js +0 -16
- package/dist/emit-criteria-cmd-WH7JB4RQ.js +0 -33
- package/dist/emit-demo-cmd-DNUVG5N7.js +0 -47
- package/dist/emit-finding-cmd-X5CBH4ZA.js +0 -34
- package/dist/emit-step-cmd-IUXZZYKO.js +0 -33
- package/dist/find-unit-QYD2FMCP.js +0 -19
- package/dist/fleet-readiness-F65CKZY5.js +0 -28
- package/dist/governing-source-JFCTQXYK.js +0 -38
- package/dist/host-checks-HC4XXGAD.js +0 -77
- package/dist/init-JVKJTJNM.js +0 -56
- package/dist/login-browser-Q25ZNSQ3.js +0 -13
- package/dist/loop-GBTANKUW.js +0 -87
- package/dist/machine-OQOHEMJB.js +0 -56
- package/dist/session-sender-U2CTD7EX.js +0 -43
- package/dist/sync-cmd-EBJQ5LMH.js +0 -42
- package/dist/update-steps-HMSVBDKH.js +0 -78
- package/dist/work-cmd-VSHZCXHQ.js +0 -31
- package/dist/work-comment-cmd-3DCL7VHN.js +0 -32
- package/dist/work-pr-cmd-HD5OIHUU.js +0 -32
- package/dist/work-proofs-cmd-GFGENBGN.js +0 -35
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
6
|
-
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-WDIZT56W.js';
|
|
4
|
+
import { parseSize } from './chunk-NM3L4JBB.js';
|
|
5
|
+
import { runnerDir } from './chunk-YQHUCOUL.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-GANAOCHR.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
8
8
|
import { dirname, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-YTTESG7K.js';
|
|
4
4
|
import { createHash } from 'crypto';
|
|
5
5
|
import { readFileSync, readdirSync, statSync, mkdirSync, copyFileSync, renameSync, unlinkSync, writeFileSync, stat as stat$1, unwatchFile, watchFile, watch as watch$1 } from 'fs';
|
|
6
6
|
import { type, homedir } from 'os';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
5
|
-
import { readCloudConfig } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-AVHPSB65.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-GBMTKV5B.js';
|
|
5
|
+
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
-
import { cliInvocation } from './chunk-
|
|
9
|
-
import { homeFromEnv } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
8
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
4
4
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
5
|
-
import { splitRawFile } from './chunk-
|
|
5
|
+
import { splitRawFile } from './chunk-5FWBAM6O.js';
|
|
6
6
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-GANAOCHR.js';
|
|
4
4
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-7R655ODT.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,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-SAAVZ2BX.js';
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-MOG4XCYS.js';
|
|
4
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-AUVJMR3P.js';
|
|
6
5
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-TKTVKEES.js';
|
|
7
|
+
import { keyRunnerFactory } from './chunk-WDIZT56W.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-JQOET7TF.js';
|
|
9
|
+
import { signerFor } from './chunk-XU5BNWX7.js';
|
|
10
|
+
import { pidFilePath } from './chunk-YQHUCOUL.js';
|
|
10
11
|
import { readFileSync } from 'fs';
|
|
11
12
|
|
|
12
13
|
createRequire(import.meta.url);
|
|
@@ -70,7 +71,7 @@ async function sendStartupReport(failed, fetchImpl, deps) {
|
|
|
70
71
|
config.url,
|
|
71
72
|
"/v1/hosts/startup-report",
|
|
72
73
|
config.apiKey,
|
|
73
|
-
config
|
|
74
|
+
keyRunnerFactory(config),
|
|
74
75
|
{ host: config.host, cliVersion: failed.cliVersion, check: failed.check, message },
|
|
75
76
|
fetchImpl,
|
|
76
77
|
left,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launchRefusalForSession } from './chunk-
|
|
3
|
+
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
-
import { launchedItemForSession } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-UGPJIKN4.js';
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { acquireSpoolLockAt } from './chunk-PDK35AR4.js';
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-GBMTKV5B.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
10
|
+
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
13
|
-
import { homeFromEnv } from './chunk-
|
|
12
|
+
import { StepNameSchema, StepBodySchema } from './chunk-YTTESG7K.js';
|
|
13
|
+
import { homeFromEnv } from './chunk-352DHUTP.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,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-3EEJGQEJ.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-D3CT6XQ4.js';
|
|
7
7
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
8
|
-
import { autoConnect } from './chunk-
|
|
9
|
-
import { C } from './chunk-
|
|
10
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
12
|
-
import { launchedItemForSession } from './chunk-
|
|
13
|
-
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-
|
|
14
|
-
import { homeFromEnv } from './chunk-
|
|
8
|
+
import { autoConnect } from './chunk-UGPJIKN4.js';
|
|
9
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-GBMTKV5B.js';
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
12
|
+
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
13
|
+
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-YTTESG7K.js';
|
|
14
|
+
import { homeFromEnv } from './chunk-352DHUTP.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,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-5C7QZBLI.js';
|
|
4
|
+
import { parseSize } from './chunk-NM3L4JBB.js';
|
|
5
5
|
import { builderDiskPinned } from './chunk-D3CT6XQ4.js';
|
|
6
|
-
import { homeFromEnv } from './chunk-
|
|
7
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GANAOCHR.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
10
10
|
import { join } from 'path';
|
|
@@ -115,8 +115,14 @@ function builtinKind(hook) {
|
|
|
115
115
|
var RUNNER_QUEUES = ["implement", "amend"];
|
|
116
116
|
var RunnerConfigError = class extends Error {
|
|
117
117
|
};
|
|
118
|
+
function keyRunnerFactory(config) {
|
|
119
|
+
if (config.fleet === true) throw new RunnerConfigError("a fleet runner belongs to no factory; the factory of a build comes from its claim");
|
|
120
|
+
if (config.appId === void 0) throw new RunnerConfigError("the runner config names no appId");
|
|
121
|
+
return config.appId;
|
|
122
|
+
}
|
|
118
123
|
var DEFAULT_CONCURRENCY = 1;
|
|
119
124
|
var DEFAULT_POLL_SECONDS = 60;
|
|
125
|
+
var DEFAULT_FLEET_POLL_SECONDS = 30;
|
|
120
126
|
var DEFAULT_TIME_LIMIT_MINUTES = 480;
|
|
121
127
|
var DEFAULT_IDLE_LIMIT_MINUTES = 30;
|
|
122
128
|
var DEFAULT_CHECK_TIME_LIMIT_MINUTES = 10;
|
|
@@ -205,6 +211,7 @@ var RUNNER_KEYS = [
|
|
|
205
211
|
"checks",
|
|
206
212
|
"autoUpdate",
|
|
207
213
|
"managed",
|
|
214
|
+
"fleet",
|
|
208
215
|
"update"
|
|
209
216
|
];
|
|
210
217
|
var UPDATE_KEYS = ["maxWaitHours"];
|
|
@@ -286,10 +293,17 @@ function checkDestinationVariables(config, env) {
|
|
|
286
293
|
}
|
|
287
294
|
function loadRunnerConfig(configPath) {
|
|
288
295
|
const config = readConfigFile(configPath);
|
|
289
|
-
|
|
290
|
-
|
|
296
|
+
const fleetValue = config.runner?.fleet;
|
|
297
|
+
if (fleetValue !== void 0 && typeof fleetValue !== "boolean") fail(configPath, "runner.fleet", "must be true or false");
|
|
298
|
+
const fleet = fleetValue === true;
|
|
299
|
+
if (!config.url || !config.apiKey || !fleet && !config.appId) {
|
|
300
|
+
fail(
|
|
301
|
+
configPath,
|
|
302
|
+
fleet ? "url/apiKey" : "url/apiKey/appId",
|
|
303
|
+
fleet ? "missing \u2014 a fleet runner needs the gateway url and its fleet machine key" : "missing \u2014 pipe a factory key into `outerlayer login` for this config file first; a runner uses a factory key, never a person's login"
|
|
304
|
+
);
|
|
291
305
|
}
|
|
292
|
-
const credentialProblem = runnerCredentialProblem(config);
|
|
306
|
+
const credentialProblem = runnerCredentialProblem(fleet ? { url: config.url, apiKey: config.apiKey, appId: "none" } : config);
|
|
293
307
|
if (credentialProblem !== void 0) fail(configPath, credentialProblem.field, credentialProblem.reason);
|
|
294
308
|
const runner = config.runner;
|
|
295
309
|
if (!runner) {
|
|
@@ -316,6 +330,9 @@ function loadRunnerConfig(configPath) {
|
|
|
316
330
|
if (runner.managed !== void 0 && typeof runner.managed !== "boolean") {
|
|
317
331
|
fail(configPath, "runner.managed", "must be true or false");
|
|
318
332
|
}
|
|
333
|
+
if (fleet && runner.managed === false) {
|
|
334
|
+
fail(configPath, "runner.managed", "is false, and runner.fleet turns managed mode on; remove runner.managed");
|
|
335
|
+
}
|
|
319
336
|
if (runner.name !== void 0 && runner.host !== void 0 && runner.name !== runner.host) {
|
|
320
337
|
fail(configPath, "runner.name", `is "${runner.name}" and runner.host is "${runner.host}"; set runner.name only, since runner.host is its earlier name`);
|
|
321
338
|
}
|
|
@@ -328,6 +345,13 @@ function loadRunnerConfig(configPath) {
|
|
|
328
345
|
fail(configPath, `runner.commands.${queue}`, "is required for an enabled queue");
|
|
329
346
|
}
|
|
330
347
|
}
|
|
348
|
+
if (fleet) {
|
|
349
|
+
for (const queue of RUNNER_QUEUES) {
|
|
350
|
+
if (!runner.commands?.[queue]) {
|
|
351
|
+
fail(configPath, `runner.commands.${queue}`, "is required, because a fleet runner takes both implement and amend builds");
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
331
355
|
if (!runner.hooks?.provision) fail(configPath, "runner.hooks.provision", "is required");
|
|
332
356
|
if (!runner.hooks?.cleanup) fail(configPath, "runner.hooks.cleanup", "is required");
|
|
333
357
|
checkBuiltinHooks(configPath, runner.hooks);
|
|
@@ -345,13 +369,15 @@ function loadRunnerConfig(configPath) {
|
|
|
345
369
|
configPath,
|
|
346
370
|
url: config.url,
|
|
347
371
|
apiKey: config.apiKey,
|
|
348
|
-
appId
|
|
372
|
+
// A fleet runner belongs to no factory; an appId the file names is kept so the `fleet` check can name it.
|
|
373
|
+
...config.appId === void 0 ? {} : { appId: config.appId },
|
|
374
|
+
...fleet ? { fleet: true } : {},
|
|
349
375
|
repos: config.repos,
|
|
350
376
|
scrub: config.scrub,
|
|
351
377
|
host: runner.name ?? runner.host ?? hostname(),
|
|
352
378
|
queues,
|
|
353
379
|
concurrency: runner.concurrency ?? DEFAULT_CONCURRENCY,
|
|
354
|
-
pollSeconds: runner.pollSeconds ?? DEFAULT_POLL_SECONDS,
|
|
380
|
+
pollSeconds: runner.pollSeconds ?? (fleet ? DEFAULT_FLEET_POLL_SECONDS : DEFAULT_POLL_SECONDS),
|
|
355
381
|
timeLimitMinutes: runner.timeLimitMinutes ?? DEFAULT_TIME_LIMIT_MINUTES,
|
|
356
382
|
idleLimitMinutes: runner.idleLimitMinutes ?? DEFAULT_IDLE_LIMIT_MINUTES,
|
|
357
383
|
commands: runner.commands ?? {},
|
|
@@ -370,7 +396,8 @@ function loadRunnerConfig(configPath) {
|
|
|
370
396
|
// and cleanup are built-in together or not at all (checkBuiltinHooks), so
|
|
371
397
|
// provision alone tells which.
|
|
372
398
|
autoUpdate: runner.autoUpdate ?? builtinKind(runner.hooks.provision) !== "own",
|
|
373
|
-
|
|
399
|
+
// A fleet runner is a managed runner: its builds run under the jailer with the managed checks.
|
|
400
|
+
...fleet ? { managed: true } : runner.managed === void 0 ? {} : { managed: runner.managed }
|
|
374
401
|
};
|
|
375
402
|
}
|
|
376
403
|
function checkBuiltinHooks(configPath, hooks) {
|
|
@@ -551,4 +578,4 @@ function egressLimitsOf(config) {
|
|
|
551
578
|
return resolveEgress(config.build?.egress, config.managed === true);
|
|
552
579
|
}
|
|
553
580
|
|
|
554
|
-
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, keepsHostBuilder, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerVmOf, systemClock };
|
|
581
|
+
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerVmOf, systemClock };
|
|
@@ -1,16 +1,16 @@
|
|
|
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-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-62TMOXQN.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-GBMTKV5B.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleClaudeSkills } from './chunk-
|
|
9
|
-
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleClaudeSkills } from './chunk-QM3HMXMU.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-UPRZREBO.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
|
-
import { cliInvocation } from './chunk-
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
11
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-JXXMOAJG.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-5FWBAM6O.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
16
16
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -1,12 +1,12 @@
|
|
|
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-OHQMGLJP.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-XGSJNXH2.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-62TMOXQN.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
8
|
-
import { cliInvocation } from './chunk-
|
|
9
|
-
import { hasSymlinkComponent } from './chunk-
|
|
7
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-UPRZREBO.js';
|
|
8
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
|
+
import { hasSymlinkComponent } from './chunk-JXXMOAJG.js';
|
|
10
10
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
@@ -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-MOG4XCYS.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-SQGD4LYW.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-SKD6VTBD.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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-D3CT6XQ4.js';
|
|
4
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
+
import { PROXY_WARNING_FLAG } from './chunk-GANAOCHR.js';
|
|
5
5
|
import { RELAY_ID, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { C } from './chunk-
|
|
4
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
3
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-UPRZREBO.js';
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
|
-
import { cliInvocation } from './chunk-
|
|
8
|
-
import { linkedAgentsPath } from './chunk-
|
|
7
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
+
import { linkedAgentsPath } from './chunk-JXXMOAJG.js';
|
|
9
9
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
10
10
|
import { join, dirname } from 'path';
|
|
11
11
|
|
|
@@ -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-YQHUCOUL.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
|
-
import { cliInvocation } from './chunk-
|
|
5
|
-
import { decodeWrappedCommand } from './chunk-
|
|
6
|
-
import { homeFromEnv } from './chunk-
|
|
4
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
+
import { decodeWrappedCommand } from './chunk-KYDEBGJG.js';
|
|
6
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { readFileSync } from 'fs';
|
|
8
8
|
import { spawn } from 'child_process';
|
|
9
9
|
import { join } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launchRefusalForSession } from './chunk-
|
|
3
|
+
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
-
import { launchedItemForSession } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-UGPJIKN4.js';
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-GBMTKV5B.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
9
|
+
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { CriteriaListSchema } from './chunk-
|
|
12
|
-
import { homeFromEnv } from './chunk-
|
|
11
|
+
import { CriteriaListSchema } from './chunk-YTTESG7K.js';
|
|
12
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
createRequire(import.meta.url);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { BUILD_HOME } from './chunk-
|
|
3
|
+
import { BUILD_HOME } from './chunk-GANAOCHR.js';
|
|
4
|
+
import { readdirSync } from 'fs';
|
|
4
5
|
import { join, dirname } from 'path';
|
|
5
6
|
|
|
6
7
|
createRequire(import.meta.url);
|
|
@@ -25,14 +26,35 @@ function jobDir(configPath, queue, item, claimId, attempt) {
|
|
|
25
26
|
function attemptStamp(at) {
|
|
26
27
|
return at.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}Z$/, "Z");
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var ORGS_DIR = "orgs";
|
|
30
|
+
function orgStore(configPath, organizationId) {
|
|
31
|
+
return orgStoreIn(runnerDir(configPath), organizationId);
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
var ORGANIZATION_FOLDER = /^[A-Za-z0-9_-]{1,64}$/;
|
|
34
|
+
function orgStoreIn(runnerDirPath, organizationId) {
|
|
35
|
+
if (organizationId === void 0) return runnerDirPath;
|
|
36
|
+
if (!ORGANIZATION_FOLDER.test(organizationId)) throw new Error(`cannot keep files for the organization ${JSON.stringify(organizationId)}`);
|
|
37
|
+
return join(runnerDirPath, ORGS_DIR, organizationId);
|
|
33
38
|
}
|
|
34
|
-
function
|
|
35
|
-
return join(
|
|
39
|
+
function orgsDir(configPath) {
|
|
40
|
+
return join(runnerDir(configPath), ORGS_DIR);
|
|
41
|
+
}
|
|
42
|
+
function storeScopes(configPath) {
|
|
43
|
+
let organizations = [];
|
|
44
|
+
try {
|
|
45
|
+
organizations = readdirSync(orgsDir(configPath), { withFileTypes: true }).filter((entry) => entry.isDirectory() && ORGANIZATION_FOLDER.test(entry.name)).map((entry) => entry.name);
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
return [void 0, ...organizations.sort()];
|
|
49
|
+
}
|
|
50
|
+
function imagesDir(configPath, organizationId) {
|
|
51
|
+
return join(orgStore(configPath, organizationId), "images");
|
|
52
|
+
}
|
|
53
|
+
function repoCacheDir(configPath, owner, name, organizationId) {
|
|
54
|
+
return join(orgStore(configPath, organizationId), "repos", owner, name);
|
|
55
|
+
}
|
|
56
|
+
function builderCacheDiskPath(configPath, owner, name, organizationId) {
|
|
57
|
+
return join(imagesDir(configPath, organizationId), owner, name, "builder-cache.ext4");
|
|
36
58
|
}
|
|
37
59
|
function buildsDir(configPath) {
|
|
38
60
|
return join(runnerDir(configPath), "builds");
|
|
@@ -49,8 +71,11 @@ function mirrorDir(runnerDirPath, owner, name) {
|
|
|
49
71
|
function spoolDir(runnerDirPath) {
|
|
50
72
|
return join(runnerDirPath, "spool");
|
|
51
73
|
}
|
|
52
|
-
function contextHomeDir(configPath) {
|
|
53
|
-
return join(
|
|
74
|
+
function contextHomeDir(configPath, organizationId) {
|
|
75
|
+
return join(orgStore(configPath, organizationId), "context-home");
|
|
76
|
+
}
|
|
77
|
+
function orgHomeDir(configPath, organizationId) {
|
|
78
|
+
return join(orgStore(configPath, organizationId), "home");
|
|
54
79
|
}
|
|
55
80
|
function stagedContextDir(buildDirPath) {
|
|
56
81
|
return join(buildDirPath, "context");
|
|
@@ -92,8 +117,8 @@ function jobConsolePath(jobDirPath) {
|
|
|
92
117
|
function builderConsolePath(buildDirPath) {
|
|
93
118
|
return join(buildDirPath, "console.log");
|
|
94
119
|
}
|
|
95
|
-
function imageBuildLogsDir(configPath, owner, name) {
|
|
96
|
-
return join(imagesDir(configPath), owner, name, "builds");
|
|
120
|
+
function imageBuildLogsDir(configPath, owner, name, organizationId) {
|
|
121
|
+
return join(imagesDir(configPath, organizationId), owner, name, "builds");
|
|
97
122
|
}
|
|
98
123
|
|
|
99
|
-
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, builderCacheDiskPath, builderConsolePath, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imageBuildLogsDir, imagesDir, jobConsolePath, jobDir, jobsDir, keptContextDir, mirrorDir, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, vmAssetsDir, vsockPath };
|
|
124
|
+
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, builderCacheDiskPath, builderConsolePath, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imageBuildLogsDir, imagesDir, jobConsolePath, jobDir, jobsDir, keptContextDir, mirrorDir, orgHomeDir, orgStore, orgStoreIn, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, storeScopes, vmAssetsDir, vsockPath };
|
|
@@ -22056,6 +22056,9 @@ var TEST_PATH_MAX = 300;
|
|
|
22056
22056
|
var TEST_SELECTION_MAX = 100;
|
|
22057
22057
|
var STORED_TESTS_OTHER_MAX = 200;
|
|
22058
22058
|
var STORED_TESTS_FAILED_MAX = 500;
|
|
22059
|
+
var FAILURE_MESSAGE_MAX = 500;
|
|
22060
|
+
var FAILURE_OUTPUT_MAX = 2e3;
|
|
22061
|
+
var STORED_FAILURES_MAX = 100;
|
|
22059
22062
|
var MAX_NESTING_DEPTH = 200;
|
|
22060
22063
|
var MAX_TESTCASES = 2e5;
|
|
22061
22064
|
var LimitError = class extends Error {
|
|
@@ -22079,7 +22082,12 @@ var StoredTestSchema = external_exports.object({
|
|
|
22079
22082
|
status: external_exports.enum(["passed", "failed", "errored", "skipped"]),
|
|
22080
22083
|
file: external_exports.string().nullable(),
|
|
22081
22084
|
line: external_exports.number().int().positive().nullable(),
|
|
22082
|
-
named: external_exports.boolean()
|
|
22085
|
+
named: external_exports.boolean(),
|
|
22086
|
+
/** Absent when the test passed or was skipped, or when its text was not stored. */
|
|
22087
|
+
failure: external_exports.object({
|
|
22088
|
+
message: external_exports.string().max(FAILURE_MESSAGE_MAX),
|
|
22089
|
+
output: external_exports.string().max(FAILURE_OUTPUT_MAX)
|
|
22090
|
+
}).optional()
|
|
22083
22091
|
});
|
|
22084
22092
|
external_exports.object({
|
|
22085
22093
|
root: external_exports.enum(["testsuites", "testsuite"]),
|
|
@@ -22098,6 +22106,10 @@ function attributeLine(value) {
|
|
|
22098
22106
|
const line = Number(value);
|
|
22099
22107
|
return line >= 1 ? line : null;
|
|
22100
22108
|
}
|
|
22109
|
+
function truncate(text, max) {
|
|
22110
|
+
const cut = text.slice(0, max);
|
|
22111
|
+
return /[\uD800-\uDBFF]$/.test(cut) ? cut.slice(0, -1) : cut;
|
|
22112
|
+
}
|
|
22101
22113
|
function parseJunit(bytes) {
|
|
22102
22114
|
var _a3;
|
|
22103
22115
|
const text = new TextDecoder("utf-8").decode(bytes).replace(/^/, "");
|
|
@@ -22109,6 +22121,7 @@ function parseJunit(bytes) {
|
|
|
22109
22121
|
const suites = [];
|
|
22110
22122
|
const stack = [];
|
|
22111
22123
|
const testcases = [];
|
|
22124
|
+
const textFromError = /* @__PURE__ */ new Set();
|
|
22112
22125
|
parser.on("error", (error62) => {
|
|
22113
22126
|
var _a22;
|
|
22114
22127
|
firstError != null ? firstError : firstError = (_a22 = error62.message.split("\n")[0]) != null ? _a22 : "not well-formed";
|
|
@@ -22119,7 +22132,7 @@ function parseJunit(bytes) {
|
|
|
22119
22132
|
doctypeName = (_b = (_a22 = /^\s*([^\s[>]+)/.exec(declaration)) == null ? void 0 : _a22[1]) != null ? _b : "";
|
|
22120
22133
|
});
|
|
22121
22134
|
parser.on("opentag", (tag) => {
|
|
22122
|
-
var _a22, _b, _c;
|
|
22135
|
+
var _a22, _b, _c, _d;
|
|
22123
22136
|
if (root === null) root = tag.name;
|
|
22124
22137
|
if (stack.length >= MAX_NESTING_DEPTH) throw new LimitError(`nested more than ${MAX_NESTING_DEPTH} levels deep`);
|
|
22125
22138
|
const attributes = tag.attributes;
|
|
@@ -22133,22 +22146,44 @@ function parseJunit(bytes) {
|
|
|
22133
22146
|
suite: (_c = suites[suites.length - 1]) != null ? _c : "",
|
|
22134
22147
|
status: "passed",
|
|
22135
22148
|
file: safeFile,
|
|
22136
|
-
line: safeFile === null ? null : attributeLine(attributes.line)
|
|
22149
|
+
line: safeFile === null ? null : attributeLine(attributes.line),
|
|
22150
|
+
failure: null
|
|
22137
22151
|
});
|
|
22138
|
-
stack.push({ name: tag.name, testcase: testcases.length - 1 });
|
|
22152
|
+
stack.push({ name: tag.name, testcase: testcases.length - 1, capture: null });
|
|
22139
22153
|
return;
|
|
22140
22154
|
}
|
|
22141
22155
|
const parent = stack[stack.length - 1];
|
|
22156
|
+
let capture = null;
|
|
22142
22157
|
if ((parent == null ? void 0 : parent.testcase) != null) {
|
|
22143
22158
|
const found = testcases[parent.testcase];
|
|
22144
22159
|
if (tag.name === "failure") found.status = "failed";
|
|
22145
22160
|
else if (tag.name === "error" && found.status !== "failed") found.status = "errored";
|
|
22146
22161
|
else if (tag.name === "skipped" && found.status === "passed") found.status = "skipped";
|
|
22162
|
+
const keepsText = tag.name === "failure" ? found.failure === null || textFromError.has(parent.testcase) : tag.name === "error" && found.failure === null;
|
|
22163
|
+
if (keepsText) {
|
|
22164
|
+
found.failure = { message: truncate((_d = attributes.message) != null ? _d : "", FAILURE_MESSAGE_MAX), output: "" };
|
|
22165
|
+
if (tag.name === "error") textFromError.add(parent.testcase);
|
|
22166
|
+
else textFromError.delete(parent.testcase);
|
|
22167
|
+
capture = parent.testcase;
|
|
22168
|
+
}
|
|
22147
22169
|
}
|
|
22148
|
-
stack.push({ name: tag.name, testcase: null });
|
|
22170
|
+
stack.push({ name: tag.name, testcase: null, capture });
|
|
22149
22171
|
});
|
|
22172
|
+
const appendFailureText = (text2) => {
|
|
22173
|
+
var _a22;
|
|
22174
|
+
const capture = (_a22 = stack[stack.length - 1]) == null ? void 0 : _a22.capture;
|
|
22175
|
+
if (capture == null) return;
|
|
22176
|
+
const failure2 = testcases[capture].failure;
|
|
22177
|
+
failure2.output = truncate(failure2.output + text2, FAILURE_OUTPUT_MAX);
|
|
22178
|
+
};
|
|
22179
|
+
parser.on("text", appendFailureText);
|
|
22180
|
+
parser.on("cdata", appendFailureText);
|
|
22150
22181
|
parser.on("closetag", (tag) => {
|
|
22151
|
-
stack.pop();
|
|
22182
|
+
const closed = stack.pop();
|
|
22183
|
+
if (closed.capture !== null) {
|
|
22184
|
+
const failure2 = testcases[closed.capture].failure;
|
|
22185
|
+
failure2.output = failure2.output.trim();
|
|
22186
|
+
}
|
|
22152
22187
|
if (tag.name === "testsuite") suites.pop();
|
|
22153
22188
|
});
|
|
22154
22189
|
try {
|
|
@@ -22190,6 +22225,7 @@ function bindTests(parsed, selection) {
|
|
|
22190
22225
|
const tests = [];
|
|
22191
22226
|
let failedKept = 0;
|
|
22192
22227
|
let otherKept = 0;
|
|
22228
|
+
let failureTextsKept = 0;
|
|
22193
22229
|
parsed.testcases.forEach((testcase, index) => {
|
|
22194
22230
|
var _a3, _b;
|
|
22195
22231
|
counts[testcase.status === "passed" ? "passed" : testcase.status === "failed" ? "failed" : testcase.status === "errored" ? "errored" : "skipped"] += 1;
|
|
@@ -22201,13 +22237,16 @@ function bindTests(parsed, selection) {
|
|
|
22201
22237
|
else otherKept += 1;
|
|
22202
22238
|
}
|
|
22203
22239
|
const ownLocation = testcase.file !== null;
|
|
22240
|
+
const failure2 = chosen !== void 0 || failureTextsKept < STORED_FAILURES_MAX ? testcase.failure : null;
|
|
22241
|
+
if (failure2 !== null && chosen === void 0) failureTextsKept += 1;
|
|
22204
22242
|
tests.push({
|
|
22205
22243
|
name: testcase.name.slice(0, TEST_NAME_MAX),
|
|
22206
22244
|
suite: testcase.suite.slice(0, TEST_NAME_MAX),
|
|
22207
22245
|
status: testcase.status,
|
|
22208
22246
|
file: ownLocation ? testcase.file : (_a3 = chosen == null ? void 0 : chosen.file) != null ? _a3 : null,
|
|
22209
22247
|
line: ownLocation ? testcase.line : (chosen == null ? void 0 : chosen.file) !== void 0 ? (_b = chosen.line) != null ? _b : null : null,
|
|
22210
|
-
named: chosen !== void 0
|
|
22248
|
+
named: chosen !== void 0,
|
|
22249
|
+
...failure2 !== null ? { failure: failure2 } : {}
|
|
22211
22250
|
});
|
|
22212
22251
|
});
|
|
22213
22252
|
return { ok: true, results: { root: parsed.root, selected: named.size > 0, counts, tests }, duplicates };
|