@outerlayer/cli 0.33.0-next.20261022182214 → 0.33.0-next.20261022182340
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-4WKFXVOP.js → agent-setup-32F2JJIL.js} +6 -6
- package/dist/{bridge-DMFMBDRG.js → bridge-BCG2EB7F.js} +2 -2
- package/dist/{build-RBLDHQTY.js → build-BOVQZXKB.js} +4 -4
- package/dist/{build-disk-4EEKP23Z.js → build-disk-6T4WR3XI.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-V3KALVKL.js → builder-E4F5355C.js} +4 -4
- package/dist/{check-LDDMISY6.js → check-DUVKQSXY.js} +35 -35
- package/dist/{chunk-RLGSBR56.js → chunk-2QT4JUW3.js} +2 -2
- package/dist/{chunk-VHRKGCBY.js → chunk-4XQ6F3HD.js} +1 -1
- package/dist/{chunk-ZQ7VRXYM.js → chunk-5BNWAIHN.js} +1 -1
- package/dist/{chunk-JDKLORO3.js → chunk-5CZVJVTP.js} +18 -11
- package/dist/{chunk-W4UFGYKQ.js → chunk-6C2YWM6N.js} +1 -1
- package/dist/{chunk-LOYLFW4I.js → chunk-6IKSUAIA.js} +1 -1
- package/dist/{chunk-XCUXPSHL.js → chunk-6KLPC4U7.js} +2 -2
- package/dist/{chunk-XXVYHC6D.js → chunk-6NWS455T.js} +1 -1
- package/dist/{chunk-IQFX5GQH.js → chunk-6PUSHKJ6.js} +123 -19
- package/dist/{chunk-ZZAA73E5.js → chunk-6YHUMNUB.js} +3 -3
- package/dist/{chunk-J6LFFZOY.js → chunk-A33USDCE.js} +4 -4
- package/dist/{chunk-634F6J3Q.js → chunk-AA6LYZC4.js} +1 -1
- package/dist/{chunk-MBGS33SL.js → chunk-AGZNCIIJ.js} +1 -1
- package/dist/{chunk-D5ZGMXUL.js → chunk-BCCI32ME.js} +70 -4
- package/dist/{chunk-MWAA3A5T.js → chunk-BMCPLX2W.js} +3 -3
- package/dist/{chunk-FSFAP7GA.js → chunk-BY36DVJV.js} +2 -2
- package/dist/{chunk-3BGCXC3O.js → chunk-CMZVDKOX.js} +2 -2
- package/dist/{chunk-HDD3BKAE.js → chunk-CUBIZBMF.js} +3 -3
- package/dist/{chunk-ZFJAQS3A.js → chunk-DDS2ISML.js} +1 -1
- package/dist/{chunk-EBX2DU2M.js → chunk-DETKDTNL.js} +2 -2
- package/dist/{chunk-YMGSMPPW.js → chunk-EYW2ZRDL.js} +2 -2
- package/dist/{chunk-ZQSCE7M4.js → chunk-FAZDYI2D.js} +2 -2
- package/dist/{chunk-33SMNWZX.js → chunk-FVY5OU3N.js} +5 -5
- package/dist/{chunk-DZGLRVS3.js → chunk-GN2R5Z7G.js} +3 -3
- package/dist/{chunk-Y53T3QZM.js → chunk-GWDS42JC.js} +1 -1
- package/dist/{chunk-5CZV4FZ5.js → chunk-HGZXTPRO.js} +3 -3
- package/dist/{chunk-5KO3TN2F.js → chunk-JEKENLLA.js} +1 -1
- package/dist/{chunk-JUVUVXQZ.js → chunk-JR4TZLG6.js} +2 -2
- package/dist/{chunk-O5F376JJ.js → chunk-LWTBE5J6.js} +1 -1
- package/dist/{chunk-4AHKR3K5.js → chunk-ODHEQ4TA.js} +9 -9
- package/dist/{chunk-O7MSQBTH.js → chunk-OWDSO3PE.js} +1 -1
- package/dist/{chunk-TTACRX4N.js → chunk-QL3LPZ67.js} +1 -1
- package/dist/{chunk-PAFSFC6Q.js → chunk-R3DSBA3J.js} +8 -8
- package/dist/{chunk-JKPJQNJF.js → chunk-RAHE2AYU.js} +5 -5
- package/dist/{chunk-PWB7EK4Z.js → chunk-SK4TWCN3.js} +1 -1
- package/dist/{chunk-MCIPCQP3.js → chunk-T4BJBF7L.js} +24 -20
- package/dist/{chunk-KQFWTTG7.js → chunk-TDVG6MCO.js} +5 -5
- package/dist/{chunk-QPAPHQZ7.js → chunk-UOFBHIOZ.js} +1 -1
- package/dist/{chunk-COLOLDY3.js → chunk-W5DOK7BL.js} +3 -3
- package/dist/{chunk-ZANK3WWF.js → chunk-WB7LPDXR.js} +1 -1
- package/dist/{chunk-FLFK42YF.js → chunk-WPGBDY73.js} +1 -1
- package/dist/{chunk-F5HZT672.js → chunk-X2LZ2IHE.js} +2 -2
- package/dist/{chunk-CMNAAKFD.js → chunk-ZQOSIMKU.js} +1 -1
- package/dist/{chunk-A6MLCH76.js → chunk-ZRRUWNJS.js} +3 -3
- package/dist/{claude-launcher-SNMNPDP4.js → claude-launcher-B4L7ELIF.js} +1 -1
- package/dist/{cli-QUV5HTDW.js → cli-IO5VOFBP.js} +100 -100
- package/dist/{command-LEE7TFQE.js → command-VWYDP7QC.js} +22 -22
- package/dist/{config-WAIYUZUG.js → config-DUY2PT7K.js} +2 -2
- package/dist/{connect-cmd-YNPOL2Y5.js → connect-cmd-ADRPR6ES.js} +5 -5
- package/dist/{container-start-SL63GFLG.js → container-start-C33T3KS6.js} +22 -22
- package/dist/{control-plane-launch-O3TXH3LI.js → control-plane-launch-PSFYCKYH.js} +5 -5
- package/dist/{docker-WVTQTRSC.js → docker-JQTUFP6V.js} +4 -4
- package/dist/{doctor-KT4HGALK.js → doctor-D5JNQ6U7.js} +25 -25
- package/dist/{emit-artifact-cmd-PZW7TVHF.js → emit-artifact-cmd-DX6RNKGK.js} +10 -10
- package/dist/{emit-criteria-cmd-EE7BYO34.js → emit-criteria-cmd-D7OR356Y.js} +7 -7
- package/dist/{emit-demo-cmd-Q6W74DCY.js → emit-demo-cmd-KMADDLIA.js} +10 -10
- package/dist/{emit-finding-cmd-JXFT233D.js → emit-finding-cmd-GEPRJ6KO.js} +7 -7
- package/dist/{emit-result-cmd-4K6HUK4B.js → emit-result-cmd-TSUOZSYJ.js} +9 -9
- package/dist/{emit-step-cmd-JEADH4VS.js → emit-step-cmd-CC6MUJ2S.js} +7 -7
- package/dist/{exec-client-ODRV5HSQ.js → exec-client-KLI262IX.js} +3 -3
- package/dist/{findings-cmd-MO4MCKIO.js → findings-cmd-7I72XX2H.js} +7 -7
- package/dist/{fleet-readiness-DA2UXFJW.js → fleet-readiness-EZAGL32M.js} +5 -5
- package/dist/{governing-source-74VYUJPC.js → governing-source-G2I3ZT6M.js} +9 -9
- package/dist/{guest-init-TGECSRKO.js → guest-init-ZJIE6MU3.js} +4 -4
- package/dist/{hook-fast-PXSDGAUP.js → hook-fast-6GE5LEJI.js} +1 -1
- package/dist/{pending-ZXVJPA24.js → host-key-REZADWAM.js} +3 -3
- package/dist/{image-tag-6U7UYPIT.js → image-tag-MORUQ4LF.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-BMTDKZU6.js → init-F5ZCQU4C.js} +21 -21
- package/dist/{init-7P6JHB6Z.js → init-UE4IDADW.js} +21 -21
- package/dist/{init-cmd-E7DMPT6E.js → init-cmd-4HAGUCMD.js} +10 -10
- package/dist/{init-update-S6QVSR72.js → init-update-DWZMXIBG.js} +8 -8
- package/dist/{install-4OPPUC72.js → install-NLVYISAV.js} +4 -4
- package/dist/{install-cmd-BGUN6XFJ.js → install-cmd-HFGINYEE.js} +5 -5
- package/dist/{logs-2XVSZODP.js → logs-QSKJ4G6M.js} +2 -2
- package/dist/{loop-7MFQISEV.js → loop-S5OE3B3O.js} +35 -35
- package/dist/{machine-4QGWUII5.js → machine-2HTTC2EF.js} +17 -17
- package/dist/{mcp-serve-cmd-GYLU23YJ.js → mcp-serve-cmd-DQSO6MOL.js} +4 -4
- package/dist/{paths-FE7TXSTA.js → paths-KHDFSBEI.js} +2 -2
- package/dist/{host-key-5AUIPHRG.js → pending-I5TY6SQH.js} +3 -3
- package/dist/{pidfile-ZWJLQIJV.js → pidfile-BSY63HIC.js} +3 -3
- package/dist/{record-JGQ3CCKH.js → record-7CNTGRLD.js} +3 -3
- package/dist/{runner-env-V37JMYNW.js → runner-env-26NLQI35.js} +5 -5
- package/dist/{runner-identity-X3UP5IQ4.js → runner-identity-5SOFX53W.js} +4 -4
- package/dist/{runner-key-3STHCRT5.js → runner-key-SFSXLQ72.js} +21 -21
- package/dist/{session-sender-I3CQB6YL.js → session-sender-CMDAHNLE.js} +10 -10
- package/dist/{spec-cmd-E6LI56MR.js → spec-cmd-WFS64ZCI.js} +8 -8
- package/dist/{status-WS2REEFU.js → status-56B2RX4M.js} +24 -24
- package/dist/{sync-cmd-ONY2NA4L.js → sync-cmd-XCGNHOGU.js} +9 -9
- package/dist/{watch-TH3E7HC3.js → watch-6O6LTIBM.js} +9 -9
- package/dist/{work-claim-cmd-UZYGUHAF.js → work-claim-cmd-ABYB5RGL.js} +10 -10
- package/dist/{work-cmd-IGYK3MVP.js → work-cmd-H7LLCT2W.js} +7 -7
- package/dist/{work-comment-cmd-D5QETAF5.js → work-comment-cmd-QW745J2A.js} +7 -7
- package/dist/{work-logs-cmd-I2LQK72I.js → work-logs-cmd-GMPGBFLO.js} +7 -7
- package/dist/{work-open-pr-cmd-FMJKE3M4.js → work-open-pr-cmd-75XO4DL2.js} +8 -8
- package/dist/{work-pr-cmd-5G3FJSPI.js → work-pr-cmd-KBNFVRB4.js} +7 -7
- package/dist/{work-stop-cmd-7J6NG6WO.js → work-stop-cmd-C65WG6NY.js} +7 -7
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { parseRunnerEnv } from './chunk-HACGUL52.js';
|
|
4
4
|
import { TARGET_TUNNEL, TARGET_LEASE, destinationTarget } from './chunk-MESOOLF4.js';
|
|
5
|
-
import { readFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
5
|
+
import { readFileSync, mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
7
7
|
import { request as request$1, createServer } from 'http';
|
|
8
8
|
import { request } from 'https';
|
|
@@ -572,8 +572,61 @@ function repositoriesOf(input) {
|
|
|
572
572
|
function primaryOf(repositories) {
|
|
573
573
|
return repositories.find((entry) => entry.primary) ?? repositories[0];
|
|
574
574
|
}
|
|
575
|
+
var MAVEN_DIR = "maven";
|
|
576
|
+
var MAVEN_SETTINGS_FILE = "settings.xml";
|
|
577
|
+
var MAVEN_NO_PROXY_NOTE = "MAVEN_ARGS names its own global settings file, so the build's Maven gets no proxy from the runner";
|
|
578
|
+
var MAVEN_SPACE_NOTE = "the build's directory has whitespace in its path, which Maven cannot read from MAVEN_ARGS, so its Maven gets no proxy from the runner";
|
|
579
|
+
function namesGlobalSettings(args) {
|
|
580
|
+
return args.split(/\s+/).some((token) => token === "--global-settings" || token.startsWith("--global-settings=") || token === "-gs" || token.startsWith("-gs="));
|
|
581
|
+
}
|
|
582
|
+
function escapeXml(text) {
|
|
583
|
+
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
584
|
+
}
|
|
585
|
+
function mavenSettingsXml(proxyUrl, noProxy) {
|
|
586
|
+
const url = new URL(proxyUrl);
|
|
587
|
+
const host = escapeXml(url.hostname.replace(/^\[|\]$/g, ""));
|
|
588
|
+
const nonProxyHosts = escapeXml(noProxy.split(",").filter((entry) => entry !== "").join("|"));
|
|
589
|
+
const proxy = (protocol) => [
|
|
590
|
+
" <proxy>",
|
|
591
|
+
` <id>outerlayer-${protocol}</id>`,
|
|
592
|
+
" <active>true</active>",
|
|
593
|
+
` <protocol>${protocol}</protocol>`,
|
|
594
|
+
` <host>${host}</host>`,
|
|
595
|
+
` <port>${url.port}</port>`,
|
|
596
|
+
` <nonProxyHosts>${nonProxyHosts}</nonProxyHosts>`,
|
|
597
|
+
" </proxy>"
|
|
598
|
+
].join("\n");
|
|
599
|
+
return [
|
|
600
|
+
'<?xml version="1.0" encoding="UTF-8"?>',
|
|
601
|
+
'<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0">',
|
|
602
|
+
" <proxies>",
|
|
603
|
+
proxy("http"),
|
|
604
|
+
proxy("https"),
|
|
605
|
+
" </proxies>",
|
|
606
|
+
"</settings>",
|
|
607
|
+
""
|
|
608
|
+
].join("\n");
|
|
609
|
+
}
|
|
610
|
+
function writeMavenSettings(buildDir, proxyUrl, noProxy) {
|
|
611
|
+
const dir = join(buildDir, MAVEN_DIR);
|
|
612
|
+
mkdirSync(dir, { recursive: true });
|
|
613
|
+
const file = join(dir, MAVEN_SETTINGS_FILE);
|
|
614
|
+
writeFileSync(file, mavenSettingsXml(proxyUrl, noProxy));
|
|
615
|
+
return file;
|
|
616
|
+
}
|
|
617
|
+
function mavenArgs(settingsFile, team) {
|
|
618
|
+
const own = team?.trim() ?? "";
|
|
619
|
+
if (own !== "" && namesGlobalSettings(own)) return { value: team, skipped: true };
|
|
620
|
+
return { value: own === "" ? `--global-settings ${settingsFile}` : `--global-settings ${settingsFile} ${own}`, skipped: false };
|
|
621
|
+
}
|
|
575
622
|
|
|
576
623
|
// src/runner/container/environment.ts
|
|
624
|
+
function buildMavenSettingsXml() {
|
|
625
|
+
return mavenSettingsXml(PROXY_URL, proxyEnvironment(PROXY_URL).NO_PROXY);
|
|
626
|
+
}
|
|
627
|
+
function writeBuildMavenSettings(buildDir) {
|
|
628
|
+
writeMavenSettings(buildDir, PROXY_URL, proxyEnvironment(PROXY_URL).NO_PROXY);
|
|
629
|
+
}
|
|
577
630
|
var RELAY_PORT = 3128;
|
|
578
631
|
var JOB_MOUNT = "/outerlayer/job";
|
|
579
632
|
var EVAL_INPUT_DIR = `${JOB_MOUNT}/eval-input`;
|
|
@@ -593,6 +646,7 @@ function lifecycleWorkdir(repositories, governingRepository) {
|
|
|
593
646
|
return entry === void 0 ? CHECKOUT_DIR : checkoutPath(entry);
|
|
594
647
|
}
|
|
595
648
|
var MAX_HOSTS = 200;
|
|
649
|
+
var MAVEN_SETTINGS_IN_BUILD = `${JOB_MOUNT}/${MAVEN_DIR}/${MAVEN_SETTINGS_FILE}`;
|
|
596
650
|
function tokenVariables() {
|
|
597
651
|
return ["GH_TOKEN", "GITHUB_TOKEN", "GH_ENTERPRISE_TOKEN", "GITHUB_ENTERPRISE_TOKEN"];
|
|
598
652
|
}
|
|
@@ -692,6 +746,14 @@ function buildEnvironment(input) {
|
|
|
692
746
|
if (passed.NODE_OPTIONS !== void 0) passed.NODE_OPTIONS = withProxyWarningHidden(passed.NODE_OPTIONS);
|
|
693
747
|
else nodeOptions.NODE_OPTIONS = withProxyWarningHidden(recipe.NODE_OPTIONS ?? input.imageEnv.NODE_OPTIONS);
|
|
694
748
|
}
|
|
749
|
+
const mavenLiterals = {};
|
|
750
|
+
const notices = [];
|
|
751
|
+
if (input.imageEnv !== void 0 && input.mavenProxy !== false) {
|
|
752
|
+
const { value, skipped } = mavenArgs(MAVEN_SETTINGS_IN_BUILD, passed.MAVEN_ARGS ?? recipe.MAVEN_ARGS ?? input.imageEnv.MAVEN_ARGS);
|
|
753
|
+
if (passed.MAVEN_ARGS !== void 0) passed.MAVEN_ARGS = value;
|
|
754
|
+
else mavenLiterals.MAVEN_ARGS = value;
|
|
755
|
+
if (skipped) notices.push(MAVEN_NO_PROXY_NOTE);
|
|
756
|
+
}
|
|
695
757
|
const destinations = destinationEnvironment(input.config.build?.destinations, containerLocalAddress);
|
|
696
758
|
const builtInLiterals = builtIns ? builtInEnvironment(containerBuiltInAddress, claudeCredential(input.hostEnv)) : {};
|
|
697
759
|
const hooksPath = input.identity?.hooksPath;
|
|
@@ -710,6 +772,7 @@ function buildEnvironment(input) {
|
|
|
710
772
|
literals: {
|
|
711
773
|
...recipe,
|
|
712
774
|
...nodeOptions,
|
|
775
|
+
...mavenLiterals,
|
|
713
776
|
...destinations,
|
|
714
777
|
...runnerLiterals(input.repository, repositoriesOf({ repositories: input.repositories, repository: input.repository, branch: input.branch })),
|
|
715
778
|
...builtInLiterals,
|
|
@@ -718,7 +781,8 @@ function buildEnvironment(input) {
|
|
|
718
781
|
},
|
|
719
782
|
passed,
|
|
720
783
|
variables,
|
|
721
|
-
skippedTokenVariables
|
|
784
|
+
skippedTokenVariables,
|
|
785
|
+
notices
|
|
722
786
|
};
|
|
723
787
|
}
|
|
724
788
|
function checkEnvironment(input) {
|
|
@@ -730,7 +794,9 @@ function checkEnvironment(input) {
|
|
|
730
794
|
hostEnv: input.hostEnv,
|
|
731
795
|
containerEnv: input.containerEnv,
|
|
732
796
|
builtIns: false,
|
|
733
|
-
imageEnv: input.imageEnv
|
|
797
|
+
imageEnv: input.imageEnv,
|
|
798
|
+
// A check container is given no settings file, so a `MAVEN_ARGS` naming one would break the check's Maven.
|
|
799
|
+
mavenProxy: false
|
|
734
800
|
});
|
|
735
801
|
const withheld = /* @__PURE__ */ new Set(["OUTERLAYER_URL", "OUTERLAYER_API_KEY", ...CLAUDE_CREDENTIAL_VARIABLES]);
|
|
736
802
|
const literals = { OUTERLAYER_EVAL_INPUT: EVAL_INPUT_DIR, OUTERLAYER_CHECK_ITEMS: CHECK_ITEMS_FILE };
|
|
@@ -772,4 +838,4 @@ function withTunnelRecord(environment, record, onlyWhenUsed = false) {
|
|
|
772
838
|
};
|
|
773
839
|
}
|
|
774
840
|
|
|
775
|
-
export { AGENT_CREDENTIAL_MISSING, BUILD_HOME, BUILT_IN_NAMES, CHECKOUT_DIR, CHECK_ITEMS_FILE, CLAUDE_CREDENTIAL_ID, CLAUDE_CREDENTIAL_VARIABLES, CLAUDE_ENV_FILE, CLAUDE_PORT, CLAUDE_SOCKET, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, GATEWAY_PORT, GATEWAY_SOCKET, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, authorEnvironment, buildEnvironment, builtInEnvironment, checkEnvironment, checkoutPath, claudeCredential, claudeCredentialVariablesSet, claudeEnvPath, commitIdentityRecord, containerLocalAddress, credentialLineIn, currentClaudeCredential, destinationEnvironment, headerVariables, heldClaudeCredential, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseUnreachable, primaryOf, proxyEnvironment, readClaudeCredential, removedClaudeCredentialValues, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, takeClaudeCredential, tokenHeader, withGitConfig, withHooksPath, withProxyWarningHidden, withTokenHeader, withTunnelRecord, withoutCredentialLines };
|
|
841
|
+
export { AGENT_CREDENTIAL_MISSING, BUILD_HOME, BUILT_IN_NAMES, CHECKOUT_DIR, CHECK_ITEMS_FILE, CLAUDE_CREDENTIAL_ID, CLAUDE_CREDENTIAL_VARIABLES, CLAUDE_ENV_FILE, CLAUDE_PORT, CLAUDE_SOCKET, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, GATEWAY_PORT, GATEWAY_SOCKET, JOB_MOUNT, MAVEN_NO_PROXY_NOTE, MAVEN_SETTINGS_FILE, MAVEN_SPACE_NOTE, PROXY_WARNING_FLAG, RELAY_PORT, authorEnvironment, buildEnvironment, buildMavenSettingsXml, builtInEnvironment, checkEnvironment, checkoutPath, claudeCredential, claudeCredentialVariablesSet, claudeEnvPath, commitIdentityRecord, containerLocalAddress, credentialLineIn, currentClaudeCredential, destinationEnvironment, headerVariables, heldClaudeCredential, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, mavenArgs, mavenSettingsXml, namesGlobalSettings, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseUnreachable, primaryOf, proxyEnvironment, readClaudeCredential, removedClaudeCredentialValues, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, takeClaudeCredential, tokenHeader, withGitConfig, withHooksPath, withProxyWarningHidden, withTokenHeader, withTunnelRecord, withoutCredentialLines, writeBuildMavenSettings, writeMavenSettings };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-DDS2ISML.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
5
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-3Z3MPR55.js';
|
|
6
6
|
import { GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, CLAUDE_CODE_VERSION, NODE_IMAGE, DEFAULT_BASE_IMAGE, MEDIA_PINS, PLAYWRIGHT_VERSION } from './chunk-KFA762LZ.js';
|
|
7
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, runnerDir, rootfsPathFor } from './chunk-
|
|
8
|
-
import { PROXY_WARNING_FLAG, withGitConfig, tokenHeader } from './chunk-
|
|
7
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, runnerDir, rootfsPathFor } from './chunk-AGZNCIIJ.js';
|
|
8
|
+
import { PROXY_WARNING_FLAG, withGitConfig, tokenHeader } from './chunk-BCCI32ME.js';
|
|
9
9
|
import { RELAY_ID, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
10
10
|
import { mkdirSync, rmSync, writeFileSync, existsSync, mkdtempSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
11
11
|
import { tmpdir } from 'os';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { detectActiveSession, autoConnect, transcriptPathForSession } from './chunk-
|
|
4
|
+
import { detectActiveSession, autoConnect, transcriptPathForSession } from './chunk-2QT4JUW3.js';
|
|
5
5
|
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-5DNCFOXA.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-WPGBDY73.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-ZJSNLVCE.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { formatBytes, freeBytes } from './chunk-YYYRBYWG.js';
|
|
4
|
-
import { BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
+
import { BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-HGZXTPRO.js';
|
|
5
5
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
6
|
-
import { buildsDir, rootfsDir, runnerDir } from './chunk-
|
|
6
|
+
import { buildsDir, rootfsDir, runnerDir } from './chunk-AGZNCIIJ.js';
|
|
7
7
|
import { spawnSync } from 'child_process';
|
|
8
8
|
import { existsSync, statSync, readdirSync } from 'fs';
|
|
9
9
|
import { join } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { claudeEnvPath, withoutCredentialLines } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-ZRRUWNJS.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-AGZNCIIJ.js';
|
|
5
|
+
import { claudeEnvPath, withoutCredentialLines } from './chunk-BCCI32ME.js';
|
|
6
6
|
import { parseRunnerEnv } from './chunk-HACGUL52.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-AGZNCIIJ.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { autoConnect, detectActiveSession } from './chunk-
|
|
4
|
+
import { autoConnect, detectActiveSession } from './chunk-2QT4JUW3.js';
|
|
5
5
|
import { acquireSpoolLockAt } from './chunk-EWVYQLD3.js';
|
|
6
6
|
import { resolveRepoIdentity } from './chunk-5DNCFOXA.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-WPGBDY73.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { StepNameSchema, StepBodySchema } from './chunk-E6CO3MJE.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { removeRetiredSkills } from './chunk-UIUGTW5C.js';
|
|
4
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
5
|
-
import { withTokenHeader } from './chunk-
|
|
4
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-WPGBDY73.js';
|
|
5
|
+
import { withTokenHeader } from './chunk-BCCI32ME.js';
|
|
6
6
|
import { appendContextProvenance } from './chunk-ZJSNLVCE.js';
|
|
7
7
|
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-G63KT5I5.js';
|
|
8
8
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, autoConnect } from './chunk-2QT4JUW3.js';
|
|
5
5
|
import { resolveRepoIdentity } from './chunk-5DNCFOXA.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-WPGBDY73.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { CriteriaListSchema } from './chunk-E6CO3MJE.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
4
|
-
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-
|
|
5
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
6
|
-
import { runnerCredentialProblem } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-CUBIZBMF.js';
|
|
4
|
+
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-X2LZ2IHE.js';
|
|
5
|
+
import { MIN_ENGINE_MAJOR } from './chunk-5CZVJVTP.js';
|
|
6
|
+
import { runnerCredentialProblem } from './chunk-5BNWAIHN.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-AGZNCIIJ.js';
|
|
8
8
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
9
9
|
import { dirname } from 'path';
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-
|
|
3
|
+
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-GWDS42JC.js';
|
|
4
|
+
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-OWDSO3PE.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { RUNNER_DIR_MODE } from './chunk-AGZNCIIJ.js';
|
|
7
7
|
import { realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
|
|
@@ -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-OWDSO3PE.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';
|
|
@@ -4,9 +4,9 @@ import { RecipeError } from './chunk-3Z3MPR55.js';
|
|
|
4
4
|
import { BUILDKIT_IMAGE } from './chunk-KFA762LZ.js';
|
|
5
5
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
6
6
|
import { compareVersions } from './chunk-5DNCFOXA.js';
|
|
7
|
-
import { ensureHostKey } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
9
|
-
import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
7
|
+
import { ensureHostKey } from './chunk-AA6LYZC4.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-AGZNCIIJ.js';
|
|
9
|
+
import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-BCCI32ME.js';
|
|
10
10
|
import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, mkdirSync, createWriteStream, rmSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
|
|
@@ -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-AGZNCIIJ.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-A33USDCE.js';
|
|
4
4
|
import { CaptureDaemon } from './chunk-5DNCFOXA.js';
|
|
5
|
-
import { spoolDir } from './chunk-
|
|
5
|
+
import { spoolDir } from './chunk-WB7LPDXR.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -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-BCCI32ME.js';
|
|
4
4
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-BJQ25STI.js';
|
|
4
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences } from './chunk-
|
|
5
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isLinkedRepository } from './chunk-
|
|
4
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences } from './chunk-6IKSUAIA.js';
|
|
5
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-TDVG6MCO.js';
|
|
6
|
+
import { isLinkedRepository } from './chunk-ZQOSIMKU.js';
|
|
7
7
|
import { sanitizeTerminal } from './chunk-EWVYQLD3.js';
|
|
8
8
|
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-5DNCFOXA.js';
|
|
9
9
|
import { C } from './chunk-ANPNT6PM.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-UIUGTW5C.js';
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-WPGBDY73.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-WB7LPDXR.js';
|
|
13
13
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-I7RZHMXW.js';
|
|
14
14
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
15
15
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
@@ -1190,8 +1190,8 @@ function doctorExitCode(checks) {
|
|
|
1190
1190
|
|
|
1191
1191
|
// src/doctor-report.ts
|
|
1192
1192
|
async function gatherDoctorChecks() {
|
|
1193
|
-
const { DEFAULT_BUILD_DISK } = await import('./build-disk-
|
|
1194
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1193
|
+
const { DEFAULT_BUILD_DISK } = await import('./build-disk-6T4WR3XI.js');
|
|
1194
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, loadRunnerConfig, runnerVmOf } = await import('./config-DUY2PT7K.js');
|
|
1195
1195
|
const configPath = defaultRunnerConfigPath();
|
|
1196
1196
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1197
1197
|
const hooks = (() => {
|
|
@@ -1212,7 +1212,7 @@ async function gatherDoctorChecks() {
|
|
|
1212
1212
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1213
1213
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1214
1214
|
} else if (hasRunnerBlock(configPath)) {
|
|
1215
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1215
|
+
const { runnerHostChecks } = await import('./doctor-D5JNQ6U7.js');
|
|
1216
1216
|
const gateway = (() => {
|
|
1217
1217
|
try {
|
|
1218
1218
|
const { url, apiKey, appId } = loadRunnerConfig(configPath);
|
|
@@ -1240,7 +1240,7 @@ async function gatherDoctorChecks() {
|
|
|
1240
1240
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1241
1241
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1242
1242
|
const { inspectService, realInspectProbes } = await import('./inspect-DNLXTXLA.js');
|
|
1243
|
-
const { DEFAULT_UNIT_NAME } = await import('./install-
|
|
1243
|
+
const { DEFAULT_UNIT_NAME } = await import('./install-NLVYISAV.js');
|
|
1244
1244
|
const { dirname: dirname2 } = await import('path');
|
|
1245
1245
|
return inspectService(DEFAULT_UNIT_NAME, dirname2(configPath), realInspectProbes());
|
|
1246
1246
|
})();
|
|
@@ -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-AGZNCIIJ.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,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-BCCI32ME.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isPlaceholderCommand } from './chunk-
|
|
4
|
-
import { describeCallFailure } from './chunk-
|
|
5
|
-
import { checkFit } from './chunk-
|
|
6
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_BUILD_DISK } from './chunk-
|
|
3
|
+
import { isPlaceholderCommand } from './chunk-FVY5OU3N.js';
|
|
4
|
+
import { describeCallFailure } from './chunk-RAHE2AYU.js';
|
|
5
|
+
import { checkFit } from './chunk-ZRRUWNJS.js';
|
|
6
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_BUILD_DISK } from './chunk-CMZVDKOX.js';
|
|
7
7
|
import { builderDiskPinned } from './chunk-KFA762LZ.js';
|
|
8
|
-
import { builtinKind, imageBuildOf } from './chunk-
|
|
9
|
-
import { WorkCommandError, getJson } from './chunk-
|
|
8
|
+
import { builtinKind, imageBuildOf } from './chunk-5BNWAIHN.js';
|
|
9
|
+
import { WorkCommandError, getJson } from './chunk-TDVG6MCO.js';
|
|
10
10
|
import { sanitizeTerminal } from './chunk-EWVYQLD3.js';
|
|
11
|
-
import { signerFor } from './chunk-
|
|
12
|
-
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential, claudeCredentialVariablesSet } from './chunk-
|
|
11
|
+
import { signerFor } from './chunk-AA6LYZC4.js';
|
|
12
|
+
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential, claudeCredentialVariablesSet } from './chunk-BCCI32ME.js';
|
|
13
13
|
import { closeSync, openSync, constants } from 'fs';
|
|
14
14
|
import { totalmem } from 'os';
|
|
15
15
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
6
|
-
import { signerFor } from './chunk-
|
|
7
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-TDVG6MCO.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-EYW2ZRDL.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-WPGBDY73.js';
|
|
6
|
+
import { signerFor } from './chunk-AA6LYZC4.js';
|
|
7
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-AGZNCIIJ.js';
|
|
8
8
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
9
9
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
10
10
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
@@ -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-AGZNCIIJ.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
3
|
+
import { releaseLease, isUnfinished, attemptNote, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-6PUSHKJ6.js';
|
|
4
4
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
5
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-UOFBHIOZ.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { fitImageBuildMemory } from './chunk-
|
|
8
|
+
import { fitImageBuildMemory } from './chunk-6C2YWM6N.js';
|
|
9
9
|
import { RUNNER_PROTOCOL } from './chunk-YKYCE4HY.js';
|
|
10
|
-
import { writePendingUpdate } from './chunk-
|
|
11
|
-
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-
|
|
10
|
+
import { writePendingUpdate } from './chunk-JEKENLLA.js';
|
|
11
|
+
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-R3DSBA3J.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-OWDSO3PE.js';
|
|
13
13
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
14
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
15
|
-
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-
|
|
14
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-5CZVJVTP.js';
|
|
15
|
+
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-DDS2ISML.js';
|
|
16
16
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
17
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
18
|
-
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-
|
|
17
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-RAHE2AYU.js';
|
|
18
|
+
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-SK4TWCN3.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
20
|
import { freeBytes, formatBytes } from './chunk-YYYRBYWG.js';
|
|
21
|
-
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-
|
|
22
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
21
|
+
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-HGZXTPRO.js';
|
|
22
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-5BNWAIHN.js';
|
|
23
23
|
import { exceedsDisk } from './chunk-YJLHUKYS.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
26
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-
|
|
27
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential } from './chunk-
|
|
24
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-TDVG6MCO.js';
|
|
25
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-AA6LYZC4.js';
|
|
26
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-AGZNCIIJ.js';
|
|
27
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential } from './chunk-BCCI32ME.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { fdName } from './chunk-HACGUL52.js';
|
|
30
30
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
@@ -1837,7 +1837,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1837
1837
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1838
1838
|
);
|
|
1839
1839
|
async function tryClaimAndStart(state, item, queue) {
|
|
1840
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1840
|
+
const { postJson: postJson2 } = await import('./work-cmd-H7LLCT2W.js');
|
|
1841
1841
|
const log = logOf(state);
|
|
1842
1842
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1843
1843
|
const claim = await retrySend(
|
|
@@ -2018,6 +2018,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2018
2018
|
attemptLogsOf(state).note(item.number, claimLine);
|
|
2019
2019
|
const hookLimits = () => hookLimitsFor(state.config, startedAt.getTime(), state.deps.now);
|
|
2020
2020
|
const tag = `#${item.number}`;
|
|
2021
|
+
const noteOnce = attemptNote(log, tag);
|
|
2021
2022
|
const containerMode = isBuiltinContainer(state.config.hooks.provision);
|
|
2022
2023
|
const vmMode = isBuiltinVm(state.config.hooks.provision);
|
|
2023
2024
|
let tokens;
|
|
@@ -2280,8 +2281,11 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2280
2281
|
}
|
|
2281
2282
|
active.job.environment = hostEnvironment(named, cliVersion);
|
|
2282
2283
|
writeJobFile(jobFilePath, active.job);
|
|
2284
|
+
await deliverExecMaven(build?.state, provisioned.workdir, jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), runWithSpawn(state.deps.spawnFn), noteOnce);
|
|
2285
|
+
if (active.ending) return;
|
|
2286
|
+
writeJobFile(jobFilePath, active.job);
|
|
2283
2287
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2284
|
-
const lifecycleEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build.state, state.config);
|
|
2288
|
+
const lifecycleEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build.state, state.config, void 0, noteOnce);
|
|
2285
2289
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2286
2290
|
if (active.ending) return;
|
|
2287
2291
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2363,7 +2367,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2363
2367
|
}
|
|
2364
2368
|
} else {
|
|
2365
2369
|
const build = job.build;
|
|
2366
|
-
const commandEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build, state.config, identity?.hooksPath);
|
|
2370
|
+
const commandEnv = hostCommandEnvironment(jobEnv(state.config, item.number, itemKey, dirPath, process.env, branch, identity?.author), build, state.config, identity?.hooksPath, noteOnce);
|
|
2367
2371
|
running = build.exec === void 0 ? runCommand(cmdline, commandEnv, workdir, join(dirPath, "command.log"), state.deps.spawnFn) : runCommand(execCommandLine(build.exec, workdir, cmdline), commandEnv, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2368
2372
|
}
|
|
2369
2373
|
} catch (err) {
|
|
@@ -3033,7 +3037,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
3033
3037
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3034
3038
|
const held = heldClaudeCredential();
|
|
3035
3039
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3036
|
-
return (await import('./check-
|
|
3040
|
+
return (await import('./check-DUVKQSXY.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3037
3041
|
},
|
|
3038
3042
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3039
3043
|
log
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
-
import { workPageUrl } from './chunk-
|
|
3
|
+
import { detectActiveSession, autoConnect } from './chunk-2QT4JUW3.js';
|
|
4
|
+
import { workPageUrl } from './chunk-ZQOSIMKU.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-EWVYQLD3.js';
|
|
6
6
|
import { resolveRepoIdentity } from './chunk-5DNCFOXA.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-WPGBDY73.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-AA6LYZC4.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -441,7 +441,7 @@ async function runWorkLinkSession(opts) {
|
|
|
441
441
|
return await linkSession(opts);
|
|
442
442
|
} catch (err) {
|
|
443
443
|
if (opts.logFailures) {
|
|
444
|
-
const { logHookError } = await import('./hook-fast-
|
|
444
|
+
const { logHookError } = await import('./hook-fast-6GE5LEJI.js');
|
|
445
445
|
const reason = err instanceof Error ? err.message : String(err);
|
|
446
446
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
447
447
|
}
|
|
@@ -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-AGZNCIIJ.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-QL3LPZ67.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-LWTBE5J6.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-BCCI32ME.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -684,7 +684,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
684
684
|
cleanupEarlierCopies(dirs);
|
|
685
685
|
}
|
|
686
686
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
687
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
687
|
+
const { governanceOf } = await import('./control-plane-launch-PSFYCKYH.js');
|
|
688
688
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
689
689
|
recordMissingContext(dirs, sessionId, home);
|
|
690
690
|
const launcher = `${cliInvocation()} claude`;
|