@outerlayer/cli 0.40.0-next.20261115013314 → 0.40.0-next.20261115113313
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-HFMI2FCO.js +41 -0
- package/dist/{agent-subcommand-PVTVR4VJ.js → agent-subcommand-TGMUYMIV.js} +4 -4
- package/dist/{artifact-link-cmd-SDKPWPQK.js → artifact-link-cmd-K6VFGMIO.js} +2 -2
- package/dist/{bridge-7Z6MLB2B.js → bridge-6EVOZBWB.js} +7 -7
- package/dist/{build-A2WX5O3I.js → build-YXBIEJLS.js} +13 -13
- package/dist/{build-disk-ASKLEF5R.js → build-disk-RODL3IQ2.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-ANFJHFZQ.js → builder-T4DS6F4V.js} +10 -10
- package/dist/caller-GVPCWQVM.js +23 -0
- package/dist/{check-WLQZ2BVT.js → check-BPXM64SW.js} +55 -55
- package/dist/{chunk-DF2ATCBQ.js → chunk-2HE3W4OM.js} +1 -1
- package/dist/{chunk-G6WWNIAY.js → chunk-36E4TC2U.js} +58 -17
- package/dist/{chunk-NBNZFLKJ.js → chunk-3FJGWAYD.js} +6 -6
- package/dist/{chunk-JOZ7SU5V.js → chunk-3T6DZAZX.js} +4 -4
- package/dist/{chunk-4XN2LKSK.js → chunk-47BLFHNK.js} +4 -4
- package/dist/{chunk-GQAGAMY7.js → chunk-4FMN3U57.js} +6 -6
- package/dist/{chunk-S4XEMYAP.js → chunk-4QVIBBKJ.js} +1 -1
- package/dist/{chunk-ND6JA3K5.js → chunk-4TVL4E53.js} +1 -1
- package/dist/{chunk-WNFQV5SL.js → chunk-4YJPE23H.js} +1 -1
- package/dist/{chunk-BY4SXNUL.js → chunk-6R5JI7LV.js} +3 -3
- package/dist/{chunk-TQZHYLX5.js → chunk-76GFXRC7.js} +1 -1
- package/dist/{chunk-FMYWIBBW.js → chunk-7DCFL2MK.js} +2 -2
- package/dist/{chunk-EXRBPNSJ.js → chunk-7GX7NXJW.js} +4 -4
- package/dist/{chunk-WR2TR6BC.js → chunk-7RSR6ESV.js} +1 -1
- package/dist/{chunk-NG7HVAK4.js → chunk-7UXZOTF2.js} +6 -6
- package/dist/{chunk-N6DWNOEF.js → chunk-7YVZIUOX.js} +1 -1
- package/dist/{chunk-KTHGBFIH.js → chunk-B2EEVHR7.js} +3 -3
- package/dist/{chunk-PUUQKA3W.js → chunk-B6LZQ5GU.js} +2 -2
- package/dist/{chunk-WYJSHRD6.js → chunk-BHX4FW7O.js} +10 -10
- package/dist/{chunk-D5YKPIHV.js → chunk-BU7PN6MB.js} +1 -1
- package/dist/{chunk-NOCOZB2Z.js → chunk-BXMYXZAB.js} +3 -3
- package/dist/{chunk-OHJUCEPI.js → chunk-CEVYSNA4.js} +1 -1
- package/dist/{chunk-OVV6F6TV.js → chunk-CR7DKNRM.js} +5 -34
- package/dist/{chunk-UDFHJ4KG.js → chunk-CX5SISHJ.js} +9 -9
- package/dist/{chunk-HRDPD4MF.js → chunk-DOIXXWA5.js} +3 -3
- package/dist/{chunk-TDTWNGCO.js → chunk-DV44KCM6.js} +1 -1
- package/dist/{chunk-ROQTVOAM.js → chunk-E2FIHWJX.js} +6 -6
- package/dist/{chunk-AUJPQVNR.js → chunk-E7WZCKYT.js} +3 -3
- package/dist/{chunk-MP6INWPC.js → chunk-EA2GVFAF.js} +4 -4
- package/dist/{chunk-4ATFANLO.js → chunk-FOT3WJNH.js} +2 -2
- package/dist/{chunk-DFWIJH6P.js → chunk-FSYB5QAV.js} +3 -3
- package/dist/{chunk-QWTN72TN.js → chunk-G6S2EKAF.js} +1 -1
- package/dist/{chunk-5D3XOHGK.js → chunk-GNX75MQI.js} +40 -12
- package/dist/{chunk-T3X3FZIR.js → chunk-GWT2XAGQ.js} +1 -1
- package/dist/{chunk-IUJS6LR7.js → chunk-GZVMAEHO.js} +7 -7
- package/dist/{chunk-624IRDBJ.js → chunk-H6J7CQSV.js} +21 -11
- package/dist/{chunk-SXF7NWK3.js → chunk-J4LUKUXC.js} +1 -1
- package/dist/{chunk-2EON52MM.js → chunk-KTN4XDPJ.js} +1 -1
- package/dist/{chunk-O7UOBZ7J.js → chunk-KXJDFBJH.js} +7 -7
- package/dist/{chunk-6SOATTHF.js → chunk-LIVBFF3D.js} +3 -3
- package/dist/{chunk-DMAAKDGD.js → chunk-LPTLGM24.js} +1 -1
- package/dist/{chunk-ZIBM6BTL.js → chunk-MCUI6RHU.js} +2 -1
- package/dist/{chunk-ST5S3P2C.js → chunk-MT5NUKSC.js} +2 -2
- package/dist/{chunk-7RDHN455.js → chunk-MUCWOHFZ.js} +1 -1
- package/dist/{chunk-OZG4BNC6.js → chunk-NXOTVGPL.js} +35 -11
- package/dist/{chunk-HTIUY3ER.js → chunk-O2T4LDT7.js} +4 -4
- package/dist/{chunk-PWDLJKEI.js → chunk-O5MO3RWQ.js} +30 -30
- package/dist/{chunk-DUNJ67ZH.js → chunk-OBADCUZF.js} +8 -12
- package/dist/{chunk-U4LX6N6O.js → chunk-OID5XOPL.js} +7 -7
- package/dist/{chunk-RSW5AXPT.js → chunk-PJZ7RTXX.js} +1 -1
- package/dist/{chunk-XD7V5HF5.js → chunk-PWJKROIT.js} +9 -9
- package/dist/{chunk-ND5SOLPS.js → chunk-R7OBHPWQ.js} +68 -54
- package/dist/{chunk-IMMWZV57.js → chunk-RIURJ7G6.js} +4 -4
- package/dist/{chunk-4XM6NRKW.js → chunk-RWI7Z2G6.js} +1 -1
- package/dist/{chunk-A3SSJ7WS.js → chunk-SQFSYAPO.js} +1 -1
- package/dist/{chunk-R2XWZSLR.js → chunk-T2OAXE5H.js} +1 -1
- package/dist/{chunk-ULENFLVA.js → chunk-TDEVXYWR.js} +5 -5
- package/dist/{chunk-ULDQ7IM5.js → chunk-TLLAFQMP.js} +1 -1
- package/dist/{chunk-2OSEUHWY.js → chunk-TPC6MXKS.js} +1 -1
- package/dist/{chunk-RLNTFA2C.js → chunk-UC2JHW7P.js} +1 -1
- package/dist/{chunk-HNOFOZKP.js → chunk-UFHXL6PT.js} +7 -7
- package/dist/{chunk-IB4SVQNB.js → chunk-ULL2MHZU.js} +4 -4
- package/dist/{chunk-VGV3J5CX.js → chunk-V64FGZNM.js} +1 -1
- package/dist/{chunk-ADXJXXGU.js → chunk-VBAXFWTK.js} +8 -21
- package/dist/{chunk-3WYPBALP.js → chunk-WGYAMFBU.js} +8 -8
- package/dist/{chunk-YY64D4FA.js → chunk-X5SZ3MB6.js} +1 -1
- package/dist/{chunk-LGF6NNBQ.js → chunk-Y55ARAPE.js} +22 -17
- package/dist/{chunk-C533PUPH.js → chunk-YDK6CONG.js} +5 -5
- package/dist/{chunk-BXWZCLJ3.js → chunk-YH7RGFKK.js} +1 -1
- package/dist/{chunk-W3UPD3D6.js → chunk-Z34SKGVB.js} +10 -10
- package/dist/{chunk-PNZMJFVP.js → chunk-Z5LGWR5H.js} +6 -6
- package/dist/{chunk-X5WH346T.js → chunk-ZIPXFVRF.js} +5 -5
- package/dist/{chunk-ANBDFUHT.js → chunk-ZV77MALL.js} +3 -3
- package/dist/{claude-launcher-FOPWME6I.js → claude-launcher-6ZSKTRY5.js} +7 -7
- package/dist/{cli-RKATG6XY.js → cli-645WJ5EQ.js} +165 -165
- package/dist/{command-YD3EHTZQ.js → command-RJ2ASVL7.js} +51 -51
- package/dist/{config-PFQRCT5B.js → config-TYASXT5C.js} +12 -12
- package/dist/{connect-cmd-YQVCFXOE.js → connect-cmd-EX67GWJF.js} +13 -13
- package/dist/{container-start-2RSK36GV.js → container-start-BCIJQO5U.js} +48 -48
- package/dist/{context-cleanup-U7MHU55P.js → context-cleanup-ENT7CYJC.js} +4 -4
- package/dist/{context-show-cmd-NURTDGRD.js → context-show-cmd-IMVD75NE.js} +14 -14
- package/dist/{control-plane-launch-P2E55QZ4.js → control-plane-launch-SPSKDMIE.js} +14 -14
- package/dist/{demo-record-cmd-VBWYXYOF.js → demo-record-cmd-T4DP3XE5.js} +8 -8
- package/dist/{demo-voice-cmd-6UGAD5KN.js → demo-voice-cmd-2W34DIXY.js} +20 -20
- package/dist/{dist-VQBROFST.js → dist-DYFPNEVO.js} +2 -2
- package/dist/{docker-WMGXGZFP.js → docker-BBIDJR46.js} +10 -10
- package/dist/{doctor-U3DJQGCO.js → doctor-3UWBBRMX.js} +50 -50
- package/dist/{emit-artifact-cmd-7F3BZXCQ.js → emit-artifact-cmd-VB2YPJXK.js} +19 -19
- package/dist/{emit-cmd-6KU5H7YA.js → emit-cmd-YNJYHGS3.js} +7 -7
- package/dist/{emit-criteria-cmd-VAYG4P4W.js → emit-criteria-cmd-R3RBHQNJ.js} +16 -16
- package/dist/{emit-demo-cmd-JIY6ITUC.js → emit-demo-cmd-CIVHU33R.js} +20 -20
- package/dist/{emit-finding-cmd-PBUULSSJ.js → emit-finding-cmd-YRCHPJEI.js} +16 -16
- package/dist/{emit-result-cmd-NDJBQBZS.js → emit-result-cmd-DMWCSZ53.js} +18 -18
- package/dist/{emit-step-cmd-KMVQE7GK.js → emit-step-cmd-PCPLHBTG.js} +16 -16
- package/dist/{exec-client-BJ4FHM2I.js → exec-client-AAXCCEVU.js} +8 -8
- package/dist/find-unit-3K3NXINH.js +24 -0
- package/dist/{findings-cmd-ES7ACSNZ.js → findings-cmd-XXDHIZAC.js} +16 -16
- package/dist/{fleet-readiness-3JMW2XNT.js → fleet-readiness-WRXR4ILW.js} +14 -14
- package/dist/{governing-source-LFRWLC43.js → governing-source-GPRZHSLC.js} +21 -21
- package/dist/{guest-init-ZZ3QGRFT.js → guest-init-A5CCQEEK.js} +9 -9
- package/dist/{hook-fast-A5LADBOU.js → hook-fast-M6FWJHZL.js} +1 -1
- package/dist/{hook-install-J426ZN4P.js → hook-install-5HFZDBIC.js} +4 -4
- package/dist/host-checks-AOWHQL3V.js +82 -0
- package/dist/host-key-R3ZJKBQ3.js +18 -0
- package/dist/{image-tag-7PALJT67.js → image-tag-K32BVEIL.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/init-4T5EC67K.js +82 -0
- package/dist/{init-VPKR33RD.js → init-OOYKPYJM.js} +46 -46
- package/dist/{init-agent-L5O3TUUM.js → init-agent-GPEDGDHA.js} +46 -46
- package/dist/{init-cmd-3PNKJZRH.js → init-cmd-GIAREDPB.js} +27 -27
- package/dist/{init-update-WWUADCXX.js → init-update-SO7V6L6K.js} +24 -24
- package/dist/install-cmd-6RKBV54Z.js +26 -0
- package/dist/launch-agent-Q6H3IT4D.js +26 -0
- package/dist/{layout-7XSGJVYR.js → layout-A7YL63UE.js} +4 -4
- package/dist/{login-browser-NG7JWXED.js → login-browser-KJPWH65X.js} +2 -2
- package/dist/{logs-6DZKJJ22.js → logs-6VEF36N6.js} +7 -7
- package/dist/loop-USCXKLCB.js +92 -0
- package/dist/machine-RJ6QMO3N.js +82 -0
- package/dist/{machine-skills-K2RCLA6K.js → machine-skills-RTHSWGSU.js} +4 -4
- package/dist/{mcp-install-cmd-DWD6O27B.js → mcp-install-cmd-UQBQOGZ4.js} +4 -4
- package/dist/{mcp-serve-cmd-2KAWL7JK.js → mcp-serve-cmd-MOKXNZ2A.js} +9 -9
- package/dist/{paths-BZKRN5J3.js → paths-44NEENDO.js} +7 -7
- package/dist/pending-43OCDSZO.js +18 -0
- package/dist/{pidfile-4C23LXPN.js → pidfile-XWUX735M.js} +8 -8
- package/dist/{record-ABSHWHSO.js → record-6P5TK6K7.js} +8 -8
- package/dist/{relay-NZWG6R4J.js → relay-CLQW7IR5.js} +5 -5
- package/dist/{relay-protocol-7ZN7CVXP.js → relay-protocol-Y4L6Q72I.js} +5 -5
- package/dist/{run-cmd-J57WUDCT.js → run-cmd-65YREGHO.js} +16 -16
- package/dist/{runner-agents-FCJR2SGQ.js → runner-agents-2KPYIXN2.js} +4 -4
- package/dist/runner-env-2YODIR2Z.js +24 -0
- package/dist/{runner-identity-PIEZDCFI.js → runner-identity-G57VDLXN.js} +10 -10
- package/dist/{runner-key-6IW6SPGG.js → runner-key-LYLDFK3T.js} +46 -46
- package/dist/{session-sender-4DSE6XWZ.js → session-sender-JIJQNDF4.js} +19 -19
- package/dist/{spec-cmd-7ISTYBBZ.js → spec-cmd-NJLCH63H.js} +17 -17
- package/dist/{starter-pack-Y4NOXPWC.js → starter-pack-M7YNHN7G.js} +5 -5
- package/dist/state-3QZYSC4V.js +18 -0
- package/dist/{status-GPSPNHZ3.js → status-IYUTS2RN.js} +46 -46
- package/dist/{sync-cmd-KXVGXVPP.js → sync-cmd-QBFJN77X.js} +18 -18
- package/dist/update-steps-4I6LRYM7.js +83 -0
- package/dist/{watch-BQRPLHO4.js → watch-XNH2BXGJ.js} +18 -18
- package/dist/{work-claim-cmd-GT3QV7C7.js → work-claim-cmd-UZAV6F5V.js} +22 -22
- package/dist/{work-cmd-3Y45NSG6.js → work-cmd-HL6ZYYFT.js} +16 -16
- package/dist/{work-comment-cmd-ZAFDFRLJ.js → work-comment-cmd-WO4OP4CW.js} +18 -18
- package/dist/{work-demo-cmd-V3EO3VD3.js → work-demo-cmd-FSSCNRKZ.js} +16 -16
- package/dist/{work-logs-cmd-RH3N2Y6D.js → work-logs-cmd-R4DZGKR2.js} +16 -16
- package/dist/{work-mock-cmd-4HQRK3JR.js → work-mock-cmd-J3E53N3Y.js} +16 -16
- package/dist/{work-needs-attention-cmd-3VBHUC5T.js → work-needs-attention-cmd-PSLU7AC5.js} +16 -16
- package/dist/{work-no-change-cmd-HAJTDQOS.js → work-no-change-cmd-FTMU7IOE.js} +16 -16
- package/dist/{work-open-pr-cmd-W4V46HYM.js → work-open-pr-cmd-KFX3F6MB.js} +17 -17
- package/dist/{work-pr-cmd-A4DVHGWR.js → work-pr-cmd-OYOUNRB7.js} +16 -16
- package/dist/{work-proofs-cmd-2NX43SSO.js → work-proofs-cmd-3NHA732I.js} +18 -18
- package/dist/{work-proofs-record-NBVX7AHX.js → work-proofs-record-IJRJLWOX.js} +24 -24
- package/dist/{work-stop-cmd-E7G52CQN.js → work-stop-cmd-EJ7Y7I4F.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +3 -3
- package/skill-pack/maintained/outerlayer-amend/references/check-items.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -6
- package/skill-pack/maintained/outerlayer-build/references/release.md +6 -6
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
- package/skill-pack/shipped.json +0 -9
- package/dist/agent-setup-5ZZTNFNP.js +0 -41
- package/dist/caller-KCSJDOWD.js +0 -23
- package/dist/find-unit-VUV76BIL.js +0 -24
- package/dist/host-checks-SUOWG537.js +0 -82
- package/dist/host-key-J24PEPIK.js +0 -18
- package/dist/init-SKXGA5U7.js +0 -82
- package/dist/install-cmd-5WRSO54T.js +0 -26
- package/dist/launch-agent-2PRVA5EX.js +0 -26
- package/dist/loop-K53YB3BL.js +0 -92
- package/dist/machine-KLF5DDMY.js +0 -82
- package/dist/pending-5Y4PJTOZ.js +0 -18
- package/dist/runner-env-AJWM62J2.js +0 -24
- package/dist/state-RZ2GSI4R.js +0 -18
- package/dist/update-steps-K5QPTNQQ.js +0 -83
- package/skill-pack/validators/acceptance-criteria.yaml +0 -42
|
@@ -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-ULL2MHZU.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
5
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, problemKind, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-NXOTVGPL.js';
|
|
5
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, problemKind, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
import { pathToFileURL } from 'url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-NXOTVGPL.js';
|
|
4
4
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-EA2GVFAF.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-TPC6MXKS.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-76GFXRC7.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-CEVYSNA4.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-KTN4XDPJ.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-NXOTVGPL.js';
|
|
9
9
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TPC6MXKS.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-76GFXRC7.js';
|
|
5
|
+
import { DEFAULT_DASHBOARD } from './chunk-4TVL4E53.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-YH7RGFKK.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
11
|
-
import { remoteLookupFailed } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-NXOTVGPL.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-Y55ARAPE.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -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-TPC6MXKS.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-ULL2MHZU.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-B6LZQ5GU.js';
|
|
5
|
+
import { defaultAgents } from './chunk-NXOTVGPL.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } 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
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-T2OAXE5H.js';
|
|
4
|
+
import { defaultAgents } from './chunk-NXOTVGPL.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-R7OBHPWQ.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-Z5LGWR5H.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-CX5SISHJ.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-EA2GVFAF.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MT5NUKSC.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-BU7PN6MB.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-ULL2MHZU.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-B6LZQ5GU.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-T2OAXE5H.js';
|
|
12
|
+
import { defaultAgents } from './chunk-NXOTVGPL.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TPC6MXKS.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-R7OBHPWQ.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-7YVZIUOX.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-BBIDJR46.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 { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-
|
|
3
|
+
import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-NXOTVGPL.js';
|
|
4
4
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
@@ -2,22 +2,18 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles,
|
|
5
|
+
import { linkedAgentsPath } from './chunk-J4LUKUXC.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-NXOTVGPL.js';
|
|
7
7
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-TGVNEQSQ.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
|
-
import {
|
|
10
|
+
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
14
14
|
var DEFAULT_TEMPLATE = "default";
|
|
15
15
|
var POLICY_PATH = ".outerlayer/policy.yaml";
|
|
16
16
|
var POLICY_CONTENT = "review: required\n";
|
|
17
|
-
var VALIDATOR_FILES = [
|
|
18
|
-
{ name: "acceptance-criteria.yaml", label: "the criteria judge check" }
|
|
19
|
-
];
|
|
20
|
-
var VALIDATORS_DIR = ".outerlayer/validators";
|
|
21
17
|
var StarterPackError = class extends Error {
|
|
22
18
|
};
|
|
23
19
|
function assertKnownTemplate(name) {
|
|
@@ -33,10 +29,6 @@ function installStarterPack(opts) {
|
|
|
33
29
|
if (linked !== void 0) throw new StarterPackError(`${linked} is a link, and a write there would land outside the repository; replace it with a folder and run this again`);
|
|
34
30
|
const templateFiles = loadTemplateFiles(packRoot, version, base);
|
|
35
31
|
const maintainedFiles = base === AGENTS_SKILLS_BASE ? [] : loadMaintainedFiles(packRoot, version, base);
|
|
36
|
-
const validatorFiles = VALIDATOR_FILES.map(({ name }) => ({
|
|
37
|
-
path: `${VALIDATORS_DIR}/${name}`,
|
|
38
|
-
content: rewriteSkillPaths(readFileSync(join(packRoot, "validators", name), "utf8"), base)
|
|
39
|
-
}));
|
|
40
32
|
const copied = [];
|
|
41
33
|
const kept = [];
|
|
42
34
|
for (const skill of TEMPLATE_SKILLS) {
|
|
@@ -59,32 +51,15 @@ function installStarterPack(opts) {
|
|
|
59
51
|
writeFileSync(policyAbs, POLICY_CONTENT);
|
|
60
52
|
policy = "written";
|
|
61
53
|
}
|
|
62
|
-
const validatorsWritten = [];
|
|
63
|
-
const validatorsKept = [];
|
|
64
|
-
for (const file of validatorFiles) {
|
|
65
|
-
const abs = join(opts.repoRoot, file.path);
|
|
66
|
-
if (existsSync(abs)) {
|
|
67
|
-
validatorsKept.push(file.path);
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
mkdirSync(dirname(abs), { recursive: true });
|
|
71
|
-
writeFileSync(abs, file.content);
|
|
72
|
-
validatorsWritten.push(file.path);
|
|
73
|
-
}
|
|
74
54
|
return {
|
|
75
55
|
base,
|
|
76
56
|
copied,
|
|
77
57
|
kept,
|
|
78
58
|
maintained: [...written.created, ...written.rewritten],
|
|
79
|
-
policy
|
|
80
|
-
validatorsWritten,
|
|
81
|
-
validatorsKept
|
|
59
|
+
policy
|
|
82
60
|
};
|
|
83
61
|
}
|
|
84
62
|
var skillFile = (skill, base) => `${skillDir(skill, base)}/SKILL.md`;
|
|
85
|
-
function validatorLabel(path) {
|
|
86
|
-
return VALIDATOR_FILES.find(({ name }) => path === `${VALIDATORS_DIR}/${name}`)?.label ?? "a check";
|
|
87
|
-
}
|
|
88
63
|
function formatStarterPackOutput(result) {
|
|
89
64
|
const lines = [];
|
|
90
65
|
const { base } = result;
|
|
@@ -105,10 +80,6 @@ function formatStarterPackOutput(result) {
|
|
|
105
80
|
lines.push(
|
|
106
81
|
"",
|
|
107
82
|
result.policy === "written" ? `${C.green}\u2713${C.reset} Wrote ${POLICY_PATH} (review required)` : `${C.dim}${POLICY_PATH} already exists \u2014 left as it is${C.reset}`,
|
|
108
|
-
...result.validatorsWritten.map(
|
|
109
|
-
(path) => `${C.green}\u2713${C.reset} Wrote ${path} (yours to edit \u2014 ${validatorLabel(path)})`
|
|
110
|
-
),
|
|
111
|
-
...result.validatorsKept.map((path) => `${C.dim}${path} already exists \u2014 left as it is${C.reset}`),
|
|
112
83
|
"",
|
|
113
84
|
...base === OUTERLAYER_SKILLS_BASE ? [
|
|
114
85
|
`Next: create .outerlayer/config.json naming your agent tools, for example {"targets": ["${LEGACY_AGENT}"]},`,
|
|
@@ -118,4 +89,4 @@ function formatStarterPackOutput(result) {
|
|
|
118
89
|
return lines.join("\n") + "\n";
|
|
119
90
|
}
|
|
120
91
|
|
|
121
|
-
export { POLICY_CONTENT, POLICY_PATH, StarterPackError,
|
|
92
|
+
export { POLICY_CONTENT, POLICY_PATH, StarterPackError, assertKnownTemplate, formatStarterPackOutput, installStarterPack };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-MUCWOHFZ.js';
|
|
4
|
+
import { autoConnect } from './chunk-DOIXXWA5.js';
|
|
5
|
+
import { workPageUrl } from './chunk-7UXZOTF2.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-YH7RGFKK.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-BU7PN6MB.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -77,7 +77,7 @@ var MESSAGES = /* @__PURE__ */ new Map([
|
|
|
77
77
|
],
|
|
78
78
|
[
|
|
79
79
|
"runner_key_signature_stale",
|
|
80
|
-
"the signature's time is more than five minutes from the gateway's clock. The clock of this host is the likely cause
|
|
80
|
+
"the signature's time is more than five minutes from the gateway's clock. The clock of this host is the likely cause. It is wrong for a few seconds after the host was paused or asleep. Check that it is set correctly and synchronised"
|
|
81
81
|
],
|
|
82
82
|
[
|
|
83
83
|
"runner_key_signature_replayed",
|
|
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
563
563
|
return await linkSession(opts);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
if (opts.logFailures) {
|
|
566
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-M6FWJHZL.js');
|
|
567
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
568
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
569
569
|
}
|
|
@@ -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-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-7UXZOTF2.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-YH7RGFKK.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
4
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
4
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-MCUI6RHU.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-MUCWOHFZ.js';
|
|
5
|
+
import { autoConnect } from './chunk-DOIXXWA5.js';
|
|
6
|
+
import { acquireSpoolLockAt } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YH7RGFKK.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
13
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
13
|
+
import { StepNameSchema, StepBodySchema } from './chunk-MCUI6RHU.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-R7OBHPWQ.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-Z5LGWR5H.js';
|
|
5
|
+
import { runnerDir } from './chunk-TPC6MXKS.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MT5NUKSC.js';
|
|
4
|
+
import { parseSize } from './chunk-WGYAMFBU.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-ULL2MHZU.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-T2OAXE5H.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-Z5LGWR5H.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-B6LZQ5GU.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
-
import { execStartArgv } from './chunk-
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
6
|
-
import { runnerDir } from './chunk-
|
|
4
|
+
import { execStartArgv } from './chunk-7RSR6ESV.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-Z5LGWR5H.js';
|
|
6
|
+
import { runnerDir } from './chunk-TPC6MXKS.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
5
5
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
6
|
-
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-
|
|
6
|
+
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-NXOTVGPL.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-RIURJ7G6.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-LPTLGM24.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
6
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
|
-
import { runnerLabelValue } from './chunk-
|
|
8
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
7
|
+
import { runnerLabelValue } from './chunk-WGYAMFBU.js';
|
|
8
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-2HE3W4OM.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
12
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-TPC6MXKS.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-ULL2MHZU.js';
|
|
12
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-T2OAXE5H.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
15
15
|
import { join, dirname } from 'path';
|
|
@@ -17,6 +17,34 @@ import { execFile } from 'child_process';
|
|
|
17
17
|
import { createHash } from 'crypto';
|
|
18
18
|
|
|
19
19
|
createRequire(import.meta.url);
|
|
20
|
+
|
|
21
|
+
// src/runner/image/transport-retry.ts
|
|
22
|
+
var TRANSPORT_FAILURE = /curl (?:7|18|28|35|52|55|56)\b|RPC failed|connection (?:reset|timed out|refused|closed)|timed out|no answer within|could not resolve host|early EOF|unexpected disconnect|remote end hung up|broken pipe|TLS|SSL_|network is unreachable|temporary failure in name resolution/i;
|
|
23
|
+
var ANSWERED = /\b(?:401|403|404)\b|authentication failed|repository not found|could not read username|terminal prompts disabled|not our ref|couldn't find remote ref|did not match any|invalid refspec/i;
|
|
24
|
+
function isTransportFailure(err) {
|
|
25
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
26
|
+
return !ANSWERED.test(message) && TRANSPORT_FAILURE.test(message);
|
|
27
|
+
}
|
|
28
|
+
var transportRetry = {
|
|
29
|
+
waitsMs: [1e3, 2e3, 4e3, 8e3, 15e3],
|
|
30
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
31
|
+
};
|
|
32
|
+
async function withTransportRetry(run) {
|
|
33
|
+
for (let attempt = 0; ; attempt++) {
|
|
34
|
+
try {
|
|
35
|
+
return await run();
|
|
36
|
+
} catch (err) {
|
|
37
|
+
const wait = transportRetry.waitsMs[attempt];
|
|
38
|
+
if (wait === void 0 || !isTransportFailure(err)) throw err;
|
|
39
|
+
await transportRetry.sleep(wait);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/runner/image/checkout.ts
|
|
45
|
+
function withNewTokenRetry2(credential, run) {
|
|
46
|
+
return withNewTokenRetry(credential, () => withTransportRetry(run));
|
|
47
|
+
}
|
|
20
48
|
var INHERITED_REPOSITORY_VARIABLES = ["GIT_DIR", "GIT_WORK_TREE", "GIT_INDEX_FILE", "GIT_COMMON_DIR"];
|
|
21
49
|
function gitEnvironment(base) {
|
|
22
50
|
const env = { ...base, GIT_TERMINAL_PROMPT: "0" };
|
|
@@ -54,7 +82,7 @@ async function fetchDefaultBranch(opts) {
|
|
|
54
82
|
mkdirSync(opts.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
55
83
|
if (opts.owned === true) removeLeftoverGitLocks(join(opts.dir, ".git"));
|
|
56
84
|
const credential = opts.token === void 0 ? void 0 : tokenSettings(opts.remote, opts.token);
|
|
57
|
-
const over = (args) =>
|
|
85
|
+
const over = (args) => withNewTokenRetry2(credential, () => git(opts.dir, args, void 0, credential));
|
|
58
86
|
try {
|
|
59
87
|
const defaultBranch = defaultBranchOf(await over(["ls-remote", "--symref", opts.remote, "HEAD"]));
|
|
60
88
|
if (defaultBranch === null) {
|
|
@@ -97,7 +125,7 @@ async function readBranchHead(input) {
|
|
|
97
125
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
98
126
|
let out;
|
|
99
127
|
try {
|
|
100
|
-
out = await
|
|
128
|
+
out = await withNewTokenRetry2(credential, () => git(input.dir, ["ls-remote", "--heads", input.remote, `refs/heads/${input.branch}`], HEAD_TIMEOUT_MS, credential));
|
|
101
129
|
} catch (err) {
|
|
102
130
|
return { kind: "unreadable", reason: gitFailureLine(err) };
|
|
103
131
|
}
|
|
@@ -110,7 +138,7 @@ async function fetchCommit(input) {
|
|
|
110
138
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
111
139
|
if (input.owned === true) removeLeftoverGitLocks(join(input.dir, ".git"));
|
|
112
140
|
await git(input.dir, ["init", "--quiet"]);
|
|
113
|
-
await
|
|
141
|
+
await withNewTokenRetry2(credential, () => git(input.dir, ["fetch", "--quiet", "--depth", "1", "--no-tags", input.remote, input.commit], CLONE_TIMEOUT_MS, credential));
|
|
114
142
|
await git(input.dir, ["checkout", "--quiet", "--detach", "--force", "FETCH_HEAD"]);
|
|
115
143
|
if (input.clean === true) await git(input.dir, ["clean", "-ffdx", "--quiet"]);
|
|
116
144
|
return { ok: true };
|
|
@@ -125,7 +153,7 @@ async function diffBetween(input) {
|
|
|
125
153
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
126
154
|
await git(input.dir, ["init", "--quiet"]);
|
|
127
155
|
const base = input.base === void 0 ? [] : [input.base];
|
|
128
|
-
await
|
|
156
|
+
await withNewTokenRetry2(credential, () => git(input.dir, ["fetch", "--quiet", "--no-tags", "--filter=blob:none", input.remote, ...base, input.head, `+HEAD:${DIFF_DEFAULT_REF}`], CLONE_TIMEOUT_MS, credential));
|
|
129
157
|
const from = await git(input.dir, ["merge-base", input.head, DIFF_DEFAULT_REF, ...base]);
|
|
130
158
|
await git(
|
|
131
159
|
input.dir,
|
|
@@ -143,7 +171,7 @@ var DIFF_DEFAULT_REF = "refs/outerlayer/default-branch";
|
|
|
143
171
|
var CLONE_TIMEOUT_MS = 6e5;
|
|
144
172
|
async function readDefaultBranchFiles(input) {
|
|
145
173
|
const credential = input.token === void 0 ? void 0 : tokenSettings(input.remote, input.token);
|
|
146
|
-
const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) =>
|
|
174
|
+
const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) => withNewTokenRetry2(credential, () => git(input.dir, args, timeoutMs, credential, raw));
|
|
147
175
|
try {
|
|
148
176
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
149
177
|
const defaultBranch = defaultBranchOf(await over(["ls-remote", "--symref", input.remote, "HEAD"], HEAD_TIMEOUT_MS));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TPC6MXKS.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-R7OBHPWQ.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-Z5LGWR5H.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-LPTLGM24.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-CX5SISHJ.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-EA2GVFAF.js';
|
|
9
|
+
import { signerFor } from './chunk-BU7PN6MB.js';
|
|
10
|
+
import { pidFilePath } from './chunk-TPC6MXKS.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|