@outerlayer/cli 0.40.0-next.20261116202259 → 0.40.0-next.20261116220204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/{agent-setup-C4SP76RQ.js → agent-setup-JC3F26N6.js} +7 -7
- package/dist/{agent-subcommand-RIHIZDJL.js → agent-subcommand-EWQJAV3E.js} +1 -1
- package/dist/{bridge-LUFXLKB3.js → bridge-WXS4GHQQ.js} +2 -2
- package/dist/{build-IOMZSFXX.js → build-ZHPHOW2B.js} +7 -7
- package/dist/{build-disk-GDBXPKVU.js → build-disk-YZ7ODI7X.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-FZCJZRB5.js → builder-77GMYGSF.js} +4 -4
- package/dist/{caller-YLCG35RW.js → caller-SM5D57S6.js} +7 -7
- package/dist/{check-XF4J5PFS.js → check-C5UY3MND.js} +40 -38
- package/dist/{chunk-YB7QOJJ6.js → chunk-2FPPFOCF.js} +7 -7
- package/dist/{chunk-6UFFSMQG.js → chunk-3BT6QAT6.js} +2 -2
- package/dist/{chunk-PGF36SYX.js → chunk-4QSRJJKY.js} +2 -2
- package/dist/{chunk-WTX57JCA.js → chunk-4SQWMWQS.js} +2 -2
- package/dist/{chunk-MP4PWSAP.js → chunk-5ESTAMMU.js} +2 -2
- package/dist/{chunk-KDLZOXBP.js → chunk-5X5QLEXA.js} +3 -3
- package/dist/{chunk-T26E7YR6.js → chunk-6WYDKGEM.js} +2 -2
- package/dist/{chunk-AEGLAS4Y.js → chunk-7FHP2UJQ.js} +1 -1
- package/dist/{chunk-MEB2YICZ.js → chunk-ALNKPDO7.js} +3 -3
- package/dist/{chunk-TVSEBOHW.js → chunk-ALNQ65QN.js} +2 -2
- package/dist/{chunk-CYUAZGM5.js → chunk-AVXBOVJU.js} +2 -2
- package/dist/{chunk-FVTNWJPF.js → chunk-BMS44OSB.js} +3 -3
- package/dist/{chunk-EEPR5MSY.js → chunk-BO7DGJTR.js} +26 -26
- package/dist/{chunk-GH7RYZTX.js → chunk-BOFWJBL3.js} +1 -1
- package/dist/{chunk-77FYM6CF.js → chunk-BYK23TXC.js} +3 -3
- package/dist/{chunk-CNFP7ZXP.js → chunk-C62CQPXK.js} +2 -2
- package/dist/{chunk-UTZWCNFV.js → chunk-CDJJPBSR.js} +1 -1
- package/dist/{chunk-BKN5HQCX.js → chunk-CKNBYJ3V.js} +3 -3
- package/dist/{chunk-OFEHPNPJ.js → chunk-DQ5F2C7G.js} +3 -3
- package/dist/{chunk-JKOSEEDV.js → chunk-DXGLK63L.js} +10 -10
- package/dist/{chunk-4OLHKE6K.js → chunk-E7MVQJ7V.js} +2 -2
- package/dist/{chunk-C2ZGJRMQ.js → chunk-EOZVHAHQ.js} +1 -1
- package/dist/{chunk-Y25XOGFX.js → chunk-HP2F6CEN.js} +68 -37
- package/dist/{chunk-5EHW7SBY.js → chunk-JFHKCU4V.js} +5 -5
- package/dist/{chunk-2EDRIMMQ.js → chunk-JTEYATSI.js} +5 -5
- package/dist/{chunk-AFSJ4GHZ.js → chunk-KQMSOVUS.js} +1 -1
- package/dist/{chunk-ALJMNIHW.js → chunk-KQQYVRAS.js} +1 -1
- package/dist/{chunk-2TOYDBQE.js → chunk-KRKTRRAA.js} +1 -1
- package/dist/{chunk-D5RXED56.js → chunk-LSQYJ6S5.js} +6 -6
- package/dist/{chunk-2VYD47YW.js → chunk-MEVK7OXF.js} +2 -2
- package/dist/{chunk-K4AQVH47.js → chunk-MN2K4UZ7.js} +3 -3
- package/dist/{chunk-DIF5NMRF.js → chunk-N5LT6JCM.js} +1 -1
- package/dist/{chunk-BXDQFZAO.js → chunk-OFGS4BSG.js} +1 -1
- package/dist/{chunk-KJCEJOJI.js → chunk-OXIUSLAE.js} +1 -1
- package/dist/{chunk-F5DIRRMG.js → chunk-PJEAA2YG.js} +1 -1
- package/dist/{chunk-O7QTZ6FY.js → chunk-Q7R3ZPDR.js} +2 -2
- package/dist/{chunk-MDWAL6FD.js → chunk-QNSF3BS5.js} +1 -1
- package/dist/{chunk-DXFE3GY5.js → chunk-REAUWHYJ.js} +2 -2
- package/dist/{chunk-NFFFLKX4.js → chunk-RLAMV6CK.js} +3 -3
- package/dist/{chunk-3DUYDFZS.js → chunk-RQROV4IX.js} +5 -5
- package/dist/{chunk-NIHE7WJ6.js → chunk-RY4TNWSO.js} +1 -1
- package/dist/{chunk-BQUUKECC.js → chunk-SWMQTB4P.js} +5 -5
- package/dist/{chunk-7VW73CPS.js → chunk-TTNVXL5S.js} +1 -1
- package/dist/{chunk-7DM2GBSI.js → chunk-U2PH653O.js} +1 -1
- package/dist/{chunk-3DKYI6V7.js → chunk-U6E6XSDD.js} +8 -9
- package/dist/{chunk-EHF2UWZC.js → chunk-UFCL2LGN.js} +1 -1
- package/dist/{chunk-VEA3VSYK.js → chunk-VTH2U3EU.js} +1 -1
- package/dist/{chunk-MTZ43GKQ.js → chunk-WVIEJ54M.js} +7 -10
- package/dist/{chunk-XYJHIH4N.js → chunk-WYUZTBBR.js} +1 -1
- package/dist/{chunk-IVRP4E3F.js → chunk-XOWXZHXN.js} +4 -4
- package/dist/{chunk-ZOUXFTGZ.js → chunk-XUMBXWHP.js} +2 -2
- package/dist/{chunk-5IDATPRL.js → chunk-ZFPLDYZR.js} +1 -1
- package/dist/{chunk-SCG7JYAQ.js → chunk-ZJ6IWCYP.js} +3 -3
- package/dist/{claude-launcher-6JBILMIB.js → claude-launcher-ZTUSGHO5.js} +1 -1
- package/dist/{cli-E4FIPVXA.js → cli-R43HPCNH.js} +136 -136
- package/dist/{command-JOFIZTRB.js → command-CGIF5OQM.js} +33 -33
- package/dist/{config-2FFE76CU.js → config-YHSGL25Q.js} +6 -6
- package/dist/{connect-cmd-DLQVEKAR.js → connect-cmd-E4SDVANQ.js} +5 -5
- package/dist/{container-start-PEWYWFZJ.js → container-start-42NGB2QB.js} +30 -30
- package/dist/{context-show-cmd-WHX2TVDI.js → context-show-cmd-OIWMFZGI.js} +6 -6
- package/dist/{control-plane-launch-FC2CG2WV.js → control-plane-launch-YLQ7EYSP.js} +5 -5
- package/dist/{demo-record-cmd-TAX3IVEZ.js → demo-record-cmd-255JUNQU.js} +2 -2
- package/dist/{demo-voice-cmd-UZ5REOVQ.js → demo-voice-cmd-XHFKWMPK.js} +11 -11
- package/dist/{docker-K3AROT4N.js → docker-ORLC5V6H.js} +4 -4
- package/dist/{doctor-IJUVLEOA.js → doctor-IYFMP3LN.js} +34 -34
- package/dist/{emit-artifact-cmd-QKOYWMHX.js → emit-artifact-cmd-WSNZ2FLC.js} +10 -10
- package/dist/{emit-criteria-cmd-UOCPNUZ2.js → emit-criteria-cmd-6IDBWMIQ.js} +7 -7
- package/dist/{emit-demo-cmd-7ZP44OBX.js → emit-demo-cmd-L5WF6YAL.js} +11 -11
- package/dist/{emit-finding-cmd-YNET3JQC.js → emit-finding-cmd-Z3XRTBP6.js} +7 -7
- package/dist/{emit-result-cmd-YN4UVIR7.js → emit-result-cmd-CTUXHKXI.js} +9 -9
- package/dist/{emit-step-cmd-O67GTOGF.js → emit-step-cmd-QJMQBAW6.js} +7 -7
- package/dist/{exec-client-NCY4LVTP.js → exec-client-2DPHGEQ7.js} +3 -3
- package/dist/{find-unit-HCJCNGAO.js → find-unit-42KZMUNX.js} +8 -8
- package/dist/{findings-cmd-RVZTJ7F4.js → findings-cmd-HCXUYYFF.js} +7 -7
- package/dist/{fleet-readiness-XACYKJYF.js → fleet-readiness-T3A4OXL5.js} +5 -5
- package/dist/{governing-source-HD6Z5APA.js → governing-source-3NGFOGV5.js} +9 -9
- package/dist/{guest-init-VATBVGYG.js → guest-init-PYTIPXJO.js} +4 -4
- package/dist/{hook-fast-IBQM3XCM.js → hook-fast-C7WPT57P.js} +1 -1
- package/dist/{host-checks-IHDOXH4L.js → host-checks-7EKRJE6O.js} +28 -28
- package/dist/{pending-75AP4OWO.js → host-key-TMN3XEN4.js} +3 -3
- package/dist/{image-tag-ZQDFHNOV.js → image-tag-2RPNWED5.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-IPCLZQTH.js → init-7BANKI6E.js} +28 -28
- package/dist/{init-NMALA2L3.js → init-R2ZBIBGV.js} +28 -28
- package/dist/{init-agent-O2INKCJ2.js → init-agent-3T33IF3B.js} +28 -28
- package/dist/{init-cmd-EAIFTS3D.js → init-cmd-LEMSEJFV.js} +11 -11
- package/dist/{init-update-Q35POT3A.js → init-update-R45YPY6Z.js} +8 -8
- package/dist/{install-cmd-IGD4QKRJ.js → install-cmd-BTSGKGLY.js} +9 -9
- package/dist/{launch-agent-MAOBOT2E.js → launch-agent-JAV2TK6O.js} +9 -9
- package/dist/{logs-IDRVZ6GR.js → logs-FIMGCWIJ.js} +2 -2
- package/dist/{loop-W3SG6T77.js → loop-B6PC4TIA.js} +36 -36
- package/dist/{machine-2JEIPALV.js → machine-DE27UZT3.js} +28 -28
- package/dist/{mcp-serve-cmd-CTLLRVD7.js → mcp-serve-cmd-SDJJODVQ.js} +4 -4
- package/dist/{paths-JQDBTC6Z.js → paths-Z5WLOE3L.js} +2 -2
- package/dist/{host-key-DLFYQJXS.js → pending-VBUAC36E.js} +3 -3
- package/dist/{pidfile-4KKLC5XX.js → pidfile-IRBF5RBB.js} +3 -3
- package/dist/{record-OG5XJVNK.js → record-5ZQJPUU7.js} +3 -3
- package/dist/{run-cmd-DSAEOZLM.js → run-cmd-YRGHB2FX.js} +7 -7
- package/dist/{runner-env-RFL275DT.js → runner-env-MJV3XSQN.js} +8 -8
- package/dist/{runner-identity-MUO7ZRHD.js → runner-identity-YA4I56ZF.js} +4 -4
- package/dist/{runner-key-QXMG627U.js → runner-key-2KUWD73V.js} +28 -28
- package/dist/{session-sender-YJ7PMFFN.js → session-sender-A7JUBMOO.js} +10 -10
- package/dist/{setup-cmd-O4ECRHWY.js → setup-cmd-DVUX3W7V.js} +6 -6
- package/dist/{setup-wiring-C7C2RHME.js → setup-wiring-AKTMN2H4.js} +32 -32
- package/dist/{spec-cmd-J4RE3CFL.js → spec-cmd-2IPC4QCZ.js} +8 -8
- package/dist/{state-HEF6DI57.js → state-F5KL5ZTE.js} +3 -3
- package/dist/{status-AECB2USQ.js → status-3J56J2VY.js} +28 -28
- package/dist/{sync-cmd-UR5TLWPA.js → sync-cmd-CD5REXOW.js} +9 -9
- package/dist/{update-steps-TLG25JY2.js → update-steps-MMWO4K3H.js} +29 -29
- package/dist/{watch-7AEKFGS5.js → watch-MDF7ZTX3.js} +9 -9
- package/dist/{work-claim-cmd-BXJ5RNWG.js → work-claim-cmd-FCSEOL46.js} +12 -12
- package/dist/{work-cmd-3VJ5KDBD.js → work-cmd-QIRKAMXD.js} +7 -7
- package/dist/{work-comment-cmd-QY5D67HL.js → work-comment-cmd-TP6MGSSN.js} +9 -9
- package/dist/{work-demo-cmd-W6W72AJX.js → work-demo-cmd-IM56TAG7.js} +7 -7
- package/dist/{work-logs-cmd-RFF4ML42.js → work-logs-cmd-PX3H55TS.js} +7 -7
- package/dist/{work-mock-cmd-W63YXVNS.js → work-mock-cmd-TVQVVV27.js} +7 -7
- package/dist/{work-needs-attention-cmd-74OQFI7Y.js → work-needs-attention-cmd-XHROYKCN.js} +7 -7
- package/dist/{work-no-change-cmd-ORWRB5A3.js → work-no-change-cmd-HIB4AX6X.js} +7 -7
- package/dist/{work-open-pr-cmd-5ZDGLQWY.js → work-open-pr-cmd-R5567TX5.js} +8 -8
- package/dist/{work-pr-cmd-4RQHDMGM.js → work-pr-cmd-XKYHVAU2.js} +7 -7
- package/dist/{work-proofs-cmd-VZM2CUGY.js → work-proofs-cmd-HE4XVJ7H.js} +8 -8
- package/dist/{work-proofs-record-LN42LPZM.js → work-proofs-record-SNQQZVJB.js} +14 -14
- package/dist/{work-stop-cmd-QEQU2RWH.js → work-stop-cmd-T7XVFOZG.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/shipped.json +2 -1
- package/skill-pack/template/writing-specs/SKILL.md +93 -69
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-47NQTKLX.js';
|
|
4
|
-
import { ensureHostKey } from './chunk-
|
|
5
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
6
|
-
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
+
import { ensureHostKey } from './chunk-KQMSOVUS.js';
|
|
5
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-7FHP2UJQ.js';
|
|
6
|
+
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-CDJJPBSR.js';
|
|
7
7
|
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-5XEO7FJW.js';
|
|
8
8
|
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-MHXUQI67.js';
|
|
9
9
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-U6E6XSDD.js';
|
|
4
|
+
import { parseSize } from './chunk-CKNBYJ3V.js';
|
|
5
|
+
import { runnerDir } from './chunk-7FHP2UJQ.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
7
7
|
import { credentialAgent, credentialNames, credentialForms } from './chunk-MHXUQI67.js';
|
|
8
8
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-UU3A53VB.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-JTEYATSI.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-OFGS4BSG.js';
|
|
6
6
|
import { withInjectedPrograms } from './chunk-44UZZVEQ.js';
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
7
|
+
import { isLinkedRepository } from './chunk-U2PH653O.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-CLVWA4DI.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-RY4TNWSO.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-VTH2U3EU.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-F3J4UKBF.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-LA66NWUO.js';
|
|
@@ -1093,8 +1093,8 @@ function doctorExitCode(checks) {
|
|
|
1093
1093
|
|
|
1094
1094
|
// src/doctor-report.ts
|
|
1095
1095
|
async function gatherDoctorChecks(options = {}) {
|
|
1096
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1097
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1096
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-YZ7ODI7X.js');
|
|
1097
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-YHSGL25Q.js');
|
|
1098
1098
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1099
1099
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1100
1100
|
const hooks = (() => {
|
|
@@ -1122,12 +1122,12 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1122
1122
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1123
1123
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1124
1124
|
} else if (hasRunnerBlock(configPath)) {
|
|
1125
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1125
|
+
const { runnerHostChecks } = await import('./doctor-IYFMP3LN.js');
|
|
1126
1126
|
const gateway = (() => {
|
|
1127
1127
|
try {
|
|
1128
1128
|
const loaded = loadRunnerConfig(configPath);
|
|
1129
1129
|
const { url, apiKey } = loaded;
|
|
1130
|
-
return loaded.fleet === true ? { url, apiKey, fleet: true, ...loaded.appId === void 0 ? {} : { appId: loaded.appId }
|
|
1130
|
+
return loaded.fleet === true ? { url, apiKey, fleet: true, ...loaded.appId === void 0 ? {} : { appId: loaded.appId } } : { url, apiKey, appId: keyRunnerFactory(loaded) };
|
|
1131
1131
|
} catch {
|
|
1132
1132
|
return void 0;
|
|
1133
1133
|
}
|
|
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1150
1150
|
const service = await (async () => {
|
|
1151
1151
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1152
1152
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1153
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1153
|
+
const { inspectRunnerService } = await import('./find-unit-42KZMUNX.js');
|
|
1154
1154
|
return inspectRunnerService(configPath);
|
|
1155
1155
|
})();
|
|
1156
1156
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-U2PH653O.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-RY4TNWSO.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';
|
|
@@ -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-7FHP2UJQ.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -4,34 +4,34 @@ import { RUNNER_PROTOCOL } from './chunk-PM3PXJGE.js';
|
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-46D7LPS3.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
6
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-Q7R3ZPDR.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-UU3A53VB.js';
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-BMS44OSB.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-QNSF3BS5.js';
|
|
11
|
+
import { senderPidfile } from './chunk-4QSRJJKY.js';
|
|
12
|
+
import { installScrubContext } from './chunk-RQROV4IX.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-N5LT6JCM.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-MEVK7OXF.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-SWMQTB4P.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-ZFPLDYZR.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-UFCL2LGN.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-KRKTRRAA.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-LSQYJ6S5.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-JTEYATSI.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-U6E6XSDD.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-4SQWMWQS.js';
|
|
27
|
+
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-CKNBYJ3V.js';
|
|
28
28
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-47NQTKLX.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-DV44KCM6.js';
|
|
30
30
|
import { sharedSkillNames, skillConflictMessage } from './chunk-ETP7IGQI.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-
|
|
32
|
+
import { signerFor } from './chunk-KQMSOVUS.js';
|
|
33
|
+
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-7FHP2UJQ.js';
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-CDJJPBSR.js';
|
|
35
35
|
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-5XEO7FJW.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-F3J4UKBF.js';
|
|
37
37
|
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-MHXUQI67.js';
|
|
@@ -1448,10 +1448,12 @@ function createGatewaySandboxClient(opts) {
|
|
|
1448
1448
|
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
1449
1449
|
const { sleep } = opts;
|
|
1450
1450
|
const headers = /* @__PURE__ */ new Map();
|
|
1451
|
-
|
|
1451
|
+
const factories = /* @__PURE__ */ new Map();
|
|
1452
|
+
function sandboxOf(raw, factory) {
|
|
1452
1453
|
if (typeof raw.id !== "string" || typeof raw.dataPlaneUrl !== "string") throw new SandboxError("the gateway's answer names no sandbox id or address", 0);
|
|
1453
1454
|
const dataPlaneUrl = raw.dataPlaneUrl.replace(/\/+$/, "");
|
|
1454
1455
|
if (typeof raw.tokenHeader === "string" && raw.tokenHeader !== "") headers.set(dataPlaneUrl, raw.tokenHeader);
|
|
1456
|
+
if (factory !== void 0) factories.set(raw.id, factory);
|
|
1455
1457
|
return {
|
|
1456
1458
|
id: raw.id,
|
|
1457
1459
|
name: typeof raw.name === "string" ? raw.name : "",
|
|
@@ -1462,8 +1464,8 @@ function createGatewaySandboxClient(opts) {
|
|
|
1462
1464
|
metadata: typeof raw.metadata === "object" && raw.metadata !== null ? raw.metadata : {}
|
|
1463
1465
|
};
|
|
1464
1466
|
}
|
|
1465
|
-
async function gateway(send) {
|
|
1466
|
-
const creds = opts.creds();
|
|
1467
|
+
async function gateway(factory, send) {
|
|
1468
|
+
const creds = opts.creds(factory);
|
|
1467
1469
|
const signer = await signerFor(creds.configPath);
|
|
1468
1470
|
for (let attempt = 1; ; attempt++) {
|
|
1469
1471
|
try {
|
|
@@ -1475,32 +1477,42 @@ function createGatewaySandboxClient(opts) {
|
|
|
1475
1477
|
}
|
|
1476
1478
|
}
|
|
1477
1479
|
}
|
|
1478
|
-
const post = (path, body) => gateway(async (creds, signer) => (await postJson(creds.url, path, creds.apiKey, creds.appId, body, fetchImpl, void 0, signer)).data);
|
|
1479
|
-
const get = (path) => gateway(async (creds, signer) => (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer)).data);
|
|
1480
|
+
const post = (factory, path, body) => gateway(factory, async (creds, signer) => (await postJson(creds.url, path, creds.apiKey, creds.appId, body, fetchImpl, void 0, signer)).data);
|
|
1481
|
+
const get = (factory, path) => gateway(factory, async (creds, signer) => (await getJson(creds.url, path, creds.apiKey, creds.appId, fetchImpl, signer)).data);
|
|
1482
|
+
const factoryOfSandbox = (id) => factories.get(id) ?? opts.factoryOf?.(id);
|
|
1483
|
+
const listUnder = async (factory) => {
|
|
1484
|
+
const listed = await get(factory, "/v1/managed-sandboxes");
|
|
1485
|
+
return (Array.isArray(listed) ? listed : []).map((raw) => sandboxOf(raw, factory));
|
|
1486
|
+
};
|
|
1480
1487
|
const own = (id) => `/v1/managed-sandboxes/${encodeURIComponent(id)}`;
|
|
1481
1488
|
const claimed = (workItem) => `/v1/work-items/${encodeURIComponent(String(workItem))}/claim/sandbox`;
|
|
1482
1489
|
return {
|
|
1483
1490
|
async create(input) {
|
|
1484
1491
|
if (input.workItem === void 0) throw new SandboxError("the build names no work item, and OuterLayer makes a sandbox only for the claim on one", 0);
|
|
1492
|
+
const machine = input.machine ?? opts.machine?.() ?? "small";
|
|
1485
1493
|
return sandboxOf(
|
|
1486
|
-
await post(claimed(input.workItem), { machine
|
|
1494
|
+
await post(input.factory, claimed(input.workItem), { machine, waits: true, idleMinutes: input.idleMinutes, timeLimitMinutes: input.timeLimitMinutes, metadata: input.metadata }),
|
|
1495
|
+
input.factory
|
|
1487
1496
|
);
|
|
1488
1497
|
},
|
|
1489
1498
|
async get(id) {
|
|
1490
|
-
|
|
1499
|
+
const factory = factoryOfSandbox(id);
|
|
1500
|
+
return sandboxOf(await get(factory, own(id)), factory);
|
|
1491
1501
|
},
|
|
1492
1502
|
async list() {
|
|
1493
|
-
|
|
1494
|
-
|
|
1503
|
+
if (opts.factories === void 0) return listUnder(void 0);
|
|
1504
|
+
const found = [];
|
|
1505
|
+
for (const factory of new Set(opts.factories())) found.push(...await listUnder(factory));
|
|
1506
|
+
return found;
|
|
1495
1507
|
},
|
|
1496
1508
|
async end(id) {
|
|
1497
|
-
await post(`${own(id)}/end`, {});
|
|
1509
|
+
await post(factoryOfSandbox(id), `${own(id)}/end`, {});
|
|
1498
1510
|
},
|
|
1499
1511
|
async snapshotDiskGib() {
|
|
1500
1512
|
return void 0;
|
|
1501
1513
|
},
|
|
1502
1514
|
async portUrl(sandbox, port) {
|
|
1503
|
-
const url = (await post(`${own(sandbox.id)}/url`, { port }))["url"];
|
|
1515
|
+
const url = (await post(factoryOfSandbox(sandbox.id), `${own(sandbox.id)}/url`, { port }))["url"];
|
|
1504
1516
|
if (typeof url !== "string") throw new SandboxError("the gateway's answer holds no address", 0);
|
|
1505
1517
|
return url;
|
|
1506
1518
|
},
|
|
@@ -1519,21 +1531,35 @@ function createGatewaySandboxClient(opts) {
|
|
|
1519
1531
|
}
|
|
1520
1532
|
|
|
1521
1533
|
// src/runner/sandbox/ports.ts
|
|
1534
|
+
function heldSandboxClaimsOf(jobs) {
|
|
1535
|
+
return jobs.flatMap((job) => job.appId === void 0 || job.appId === "" ? [] : [{ factory: job.appId, ...job.sandbox === void 0 ? {} : { sandboxId: job.sandbox.sandboxId } }]);
|
|
1536
|
+
}
|
|
1537
|
+
function gatewaySandboxCreds(config, factory) {
|
|
1538
|
+
const { url, apiKey, configPath } = config;
|
|
1539
|
+
if (config.fleet === true) {
|
|
1540
|
+
if (factory === void 0 || factory === "") throw new SandboxError("the call names no claim of this fleet machine, so it cannot ask OuterLayer for the sandbox", 0);
|
|
1541
|
+
return { url, apiKey, appId: factory, configPath };
|
|
1542
|
+
}
|
|
1543
|
+
if (config.appId === void 0) throw new SandboxError("the runner's config names no factory, so it cannot ask OuterLayer for a sandbox", 0);
|
|
1544
|
+
return { url, apiKey, appId: config.appId, configPath };
|
|
1545
|
+
}
|
|
1522
1546
|
function createSandboxPorts(opts, hostEnv) {
|
|
1523
1547
|
let made;
|
|
1524
1548
|
let viaGateway;
|
|
1525
1549
|
let fromGateway;
|
|
1526
1550
|
const runnerConfig = opts?.runnerConfig;
|
|
1551
|
+
const heldClaims = opts?.heldClaims ?? (() => []);
|
|
1527
1552
|
const ports = {
|
|
1528
1553
|
client: opts?.client ?? (() => {
|
|
1529
1554
|
fromGateway ??= runnerConfig?.().sandbox?.provider === "outerlayer";
|
|
1530
1555
|
if (fromGateway && runnerConfig !== void 0) {
|
|
1556
|
+
const fleet = runnerConfig().fleet === true;
|
|
1531
1557
|
viaGateway ??= createGatewaySandboxClient({
|
|
1532
|
-
creds: () =>
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
},
|
|
1558
|
+
creds: (factory) => gatewaySandboxCreds(runnerConfig(), factory),
|
|
1559
|
+
...fleet ? {
|
|
1560
|
+
factoryOf: (id) => heldClaims().find((claim) => claim.sandboxId === id)?.factory,
|
|
1561
|
+
factories: () => heldClaims().map((claim) => claim.factory)
|
|
1562
|
+
} : {},
|
|
1537
1563
|
machine: () => runnerConfig().sandbox?.machine ?? "small",
|
|
1538
1564
|
sleep: (ms) => ports.sleep(ms)
|
|
1539
1565
|
});
|
|
@@ -4712,6 +4738,11 @@ function sandboxSizeFor(config, jobDir) {
|
|
|
4712
4738
|
const sized = sandboxSizeOf({ cpus: limits2.cpus, memory: String(limits2.memoryBytes), disk: String(limits2.diskBytes) });
|
|
4713
4739
|
return sized.ok ? sized : { ok: false, reason: `the factory's ${settings.machine.size} machine does not fit a sandbox: ${sized.field.replace("runner.build.", "its ")} ${sized.problem}` };
|
|
4714
4740
|
}
|
|
4741
|
+
function sandboxClaimOf(config, item, workItemId, settings) {
|
|
4742
|
+
const workItem = claimItem(config, { item, workItemId, appId: config.appId });
|
|
4743
|
+
if (config.fleet !== true || settings === void 0) return { workItem, factory: config.appId };
|
|
4744
|
+
return { workItem, factory: config.appId, machine: settings.machine.size };
|
|
4745
|
+
}
|
|
4715
4746
|
async function sandboxDiskGib(client2, snapshot, wantedGib, log) {
|
|
4716
4747
|
let snapshotGib;
|
|
4717
4748
|
try {
|
|
@@ -4946,7 +4977,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4946
4977
|
timeLimitMinutes: sandboxTimeLimitMinutes(config.timeLimitMinutes),
|
|
4947
4978
|
network: networkOf(own.allowHosts),
|
|
4948
4979
|
metadata: { [RUNNER_METADATA]: runnerId, [BUILD_METADATA]: buildId },
|
|
4949
|
-
|
|
4980
|
+
...sandboxClaimOf(config, item.number, input.workItemId, managedBuildSettingsFor(jobDir))
|
|
4950
4981
|
}),
|
|
4951
4982
|
sleep: runtime.sandbox.sleep,
|
|
4952
4983
|
aborted: input.aborted,
|
|
@@ -14116,4 +14147,4 @@ async function runHostChecks(input) {
|
|
|
14116
14147
|
}
|
|
14117
14148
|
}
|
|
14118
14149
|
|
|
14119
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxContainerStoppedError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
14150
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxContainerStoppedError, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-46D7LPS3.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-JTEYATSI.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-RY4TNWSO.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-7EKRJE6O.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-7EKRJE6O.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-SNQQZVJB.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-E7MVQJ7V.js';
|
|
5
|
+
import { workPageUrl } from './chunk-U2PH653O.js';
|
|
6
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-RY4TNWSO.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-KQMSOVUS.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-JIMISJV2.js';
|
|
@@ -550,7 +550,7 @@ async function runWorkLinkSession(opts) {
|
|
|
550
550
|
return await linkSession(opts);
|
|
551
551
|
} catch (err) {
|
|
552
552
|
if (opts.logFailures) {
|
|
553
|
-
const { logHookError } = await import('./hook-fast-
|
|
553
|
+
const { logHookError } = await import('./hook-fast-C7WPT57P.js');
|
|
554
554
|
const reason = err instanceof Error ? err.message : String(err);
|
|
555
555
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
556
556
|
}
|
|
@@ -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-7FHP2UJQ.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-7FHP2UJQ.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } 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, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-CDJJPBSR.js';
|
|
4
4
|
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-5XEO7FJW.js';
|
|
5
5
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-JIMISJV2.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-JTEYATSI.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ALNQ65QN.js';
|
|
6
6
|
import { buildRefusalReason } from './chunk-3DILWPBX.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-ETP7IGQI.js';
|
|
8
|
-
import { signingFetchFor } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
11
|
-
import { SandboxError, describeSandboxError } from './chunk-
|
|
8
|
+
import { signingFetchFor } from './chunk-RY4TNWSO.js';
|
|
9
|
+
import { signerFor } from './chunk-KQMSOVUS.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-7FHP2UJQ.js';
|
|
11
|
+
import { SandboxError, describeSandboxError } from './chunk-CDJJPBSR.js';
|
|
12
12
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-F3J4UKBF.js';
|
|
13
13
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
14
14
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -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-U6E6XSDD.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-7FHP2UJQ.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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-HP2F6CEN.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-DQ5F2C7G.js';
|
|
5
|
+
import { runnerDir } from './chunk-7FHP2UJQ.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -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-7FHP2UJQ.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
4
4
|
import { isAgentsMdLayout } from './chunk-WNLDTV2M.js';
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-RY4TNWSO.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-F3J4UKBF.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
8
|
import { machineSkillsState, staleAgentSkills } from './chunk-ROJMYI5S.js';
|
|
@@ -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-PJEAA2YG.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -1,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-7FHP2UJQ.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,7 +1,7 @@
|
|
|
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-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-DQ5F2C7G.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-7FHP2UJQ.js';
|
|
5
5
|
import { parseRunnerEnv, withoutCredentialLines } from './chunk-5XEO7FJW.js';
|
|
6
6
|
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-MHXUQI67.js';
|
|
7
7
|
import { defaultAgents } from './chunk-MB6OS6TU.js';
|
|
@@ -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-CDJJPBSR.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-E7MVQJ7V.js';
|
|
6
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-RY4TNWSO.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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-ZJ6IWCYP.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { detectActiveSession } from './chunk-A7M4QXVX.js';
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
7
|
+
import { autoConnect } from './chunk-E7MVQJ7V.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-RY4TNWSO.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
11
11
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-MHXUQI67.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-REAUWHYJ.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-RY4TNWSO.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-KQMSOVUS.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-CDJJPBSR.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-VTH2U3EU.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-2ZF62BAK.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-KQMSOVUS.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|