@outerlayer/cli 0.40.0-next.20261114214913 → 0.40.0-next.20261115012015
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-O4SZOHRU.js → agent-setup-5ZZTNFNP.js} +2 -2
- package/dist/build-info.json +1 -1
- package/dist/{check-2MAB2XOX.js → check-WLQZ2BVT.js} +12 -12
- package/dist/{chunk-TQDXHGUF.js → chunk-4XN2LKSK.js} +1 -1
- package/dist/{chunk-3MCO6PFW.js → chunk-5MCLOGP5.js} +4 -4
- package/dist/{chunk-VY2MH6VX.js → chunk-624IRDBJ.js} +1 -1
- package/dist/{chunk-ODWWDOK5.js → chunk-AUJPQVNR.js} +1 -1
- package/dist/{chunk-C2W453KR.js → chunk-C533PUPH.js} +1 -1
- package/dist/{chunk-6WBI37BR.js → chunk-DUNJ67ZH.js} +1 -1
- package/dist/{chunk-FDENE6LM.js → chunk-GQAGAMY7.js} +1 -1
- package/dist/{chunk-W3K7TKYW.js → chunk-HNOFOZKP.js} +1 -1
- package/dist/{chunk-AQEVNB6C.js → chunk-HRDPD4MF.js} +1 -1
- package/dist/{chunk-MHFVGML3.js → chunk-HTIUY3ER.js} +1 -1
- package/dist/{chunk-IOKR7Z7Z.js → chunk-IUJS6LR7.js} +2 -2
- package/dist/{chunk-3SOB6LWY.js → chunk-ND5SOLPS.js} +9 -6
- package/dist/{chunk-J4WAHOXM.js → chunk-NG7HVAK4.js} +12 -6
- package/dist/{chunk-OHJOC2H2.js → chunk-NOCOZB2Z.js} +1 -1
- package/dist/{chunk-5I4PLRFO.js → chunk-O7UOBZ7J.js} +2 -2
- package/dist/{chunk-TIDPEU6D.js → chunk-PWDLJKEI.js} +34 -13
- package/dist/{chunk-KJNI2WWR.js → chunk-ROQTVOAM.js} +1 -1
- package/dist/{chunk-YRH4DL4O.js → chunk-U4LX6N6O.js} +2 -2
- package/dist/{chunk-TG3O6CAF.js → chunk-UDFHJ4KG.js} +2 -2
- package/dist/{chunk-5ZVZ7MVD.js → chunk-W3UPD3D6.js} +4 -4
- package/dist/{chunk-SWSPRGJL.js → chunk-WYJSHRD6.js} +10 -5
- package/dist/{chunk-IT7RFVWR.js → chunk-XD7V5HF5.js} +1 -1
- package/dist/{cli-AUEXVGLP.js → cli-WD3BPYUH.js} +87 -87
- package/dist/{command-G3B5IT5T.js → command-IJ7NRXFE.js} +9 -9
- package/dist/{connect-cmd-IK3Z2YH2.js → connect-cmd-YQVCFXOE.js} +1 -1
- package/dist/{container-start-JHQMAKWD.js → container-start-2RSK36GV.js} +10 -10
- package/dist/{context-show-cmd-DJZC5TRN.js → context-show-cmd-NURTDGRD.js} +2 -2
- package/dist/{demo-voice-cmd-W6FHJTMH.js → demo-voice-cmd-6UGAD5KN.js} +6 -6
- package/dist/{doctor-4JZJQOGE.js → doctor-6VSCTPWX.js} +12 -12
- package/dist/{emit-artifact-cmd-MT4M3ILS.js → emit-artifact-cmd-7F3BZXCQ.js} +5 -5
- package/dist/{emit-criteria-cmd-M5QRMNGB.js → emit-criteria-cmd-VAYG4P4W.js} +3 -3
- package/dist/{emit-demo-cmd-VKD2CSQH.js → emit-demo-cmd-JIY6ITUC.js} +6 -6
- package/dist/{emit-finding-cmd-UYGLPQJE.js → emit-finding-cmd-PBUULSSJ.js} +3 -3
- package/dist/{emit-result-cmd-GH4KOPNC.js → emit-result-cmd-NDJBQBZS.js} +4 -4
- package/dist/{emit-step-cmd-EMCVWILY.js → emit-step-cmd-KMVQE7GK.js} +3 -3
- package/dist/{findings-cmd-3P7EWNHA.js → findings-cmd-ES7ACSNZ.js} +3 -3
- package/dist/{governing-source-6HS6QVTK.js → governing-source-LFRWLC43.js} +4 -4
- package/dist/{host-checks-TTY663DX.js → host-checks-SUOWG537.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{init-GPS5KJQV.js → init-SKXGA5U7.js} +8 -8
- package/dist/{init-3D6C7GI2.js → init-VPKR33RD.js} +8 -8
- package/dist/{init-agent-RXCIPMQ6.js → init-agent-L5O3TUUM.js} +8 -8
- package/dist/{init-cmd-5NUDQ6DV.js → init-cmd-UEILLR5H.js} +4 -4
- package/dist/{init-update-QDEM6MO5.js → init-update-WWUADCXX.js} +2 -2
- package/dist/{loop-5VIKTHCW.js → loop-K53YB3BL.js} +12 -12
- package/dist/{machine-MP4YXEVG.js → machine-KLF5DDMY.js} +8 -8
- package/dist/{run-cmd-C35Z5ULW.js → run-cmd-J57WUDCT.js} +3 -3
- package/dist/{runner-key-O7SMLAEA.js → runner-key-6IW6SPGG.js} +8 -8
- package/dist/{session-sender-UHBTHRJP.js → session-sender-4DSE6XWZ.js} +5 -5
- package/dist/{spec-cmd-BLQBWO7J.js → spec-cmd-7ISTYBBZ.js} +4 -4
- package/dist/{status-4EU2RICM.js → status-R7MMPMJJ.js} +8 -8
- package/dist/{sync-cmd-LTNVLBSE.js → sync-cmd-KXVGXVPP.js} +4 -4
- package/dist/{update-steps-3YS3E7BW.js → update-steps-K5QPTNQQ.js} +9 -9
- package/dist/{watch-RLXCOXF2.js → watch-BQRPLHO4.js} +4 -4
- package/dist/{work-claim-cmd-D7JLO57W.js → work-claim-cmd-GT3QV7C7.js} +4 -4
- package/dist/{work-cmd-LPNNXYDQ.js → work-cmd-3Y45NSG6.js} +3 -3
- package/dist/{work-comment-cmd-3HJLN4QH.js → work-comment-cmd-ZAFDFRLJ.js} +4 -4
- package/dist/{work-demo-cmd-YALQVN2X.js → work-demo-cmd-V3EO3VD3.js} +3 -3
- package/dist/{work-logs-cmd-2HG4RAQI.js → work-logs-cmd-RH3N2Y6D.js} +3 -3
- package/dist/{work-mock-cmd-JVGAS2SE.js → work-mock-cmd-4HQRK3JR.js} +3 -3
- package/dist/{work-needs-attention-cmd-VKGSHNKR.js → work-needs-attention-cmd-3VBHUC5T.js} +3 -3
- package/dist/{work-no-change-cmd-HQAHGBQK.js → work-no-change-cmd-HAJTDQOS.js} +3 -3
- package/dist/{work-open-pr-cmd-TZE4UMHK.js → work-open-pr-cmd-W4V46HYM.js} +4 -4
- package/dist/{work-pr-cmd-XLJCLQ6X.js → work-pr-cmd-A4DVHGWR.js} +3 -3
- package/dist/{work-proofs-cmd-GU2BPOGW.js → work-proofs-cmd-2NX43SSO.js} +4 -4
- package/dist/{work-proofs-record-M2T5FGC4.js → work-proofs-record-NBVX7AHX.js} +9 -9
- package/dist/{work-stop-cmd-CDWNUCMO.js → work-stop-cmd-E7G52CQN.js} +3 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-DUNJ67ZH.js';
|
|
4
4
|
import './chunk-EXRBPNSJ.js';
|
|
5
5
|
import './chunk-QWTN72TN.js';
|
|
6
6
|
import './chunk-OVV6F6TV.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-NG7HVAK4.js';
|
|
8
8
|
import './chunk-TDTWNGCO.js';
|
|
9
9
|
import './chunk-TQZHYLX5.js';
|
|
10
10
|
import './chunk-ND6JA3K5.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-15T01:28:27.112Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-PWDLJKEI.js';
|
|
4
4
|
import './chunk-E7R2GIAW.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-IUJS6LR7.js';
|
|
6
6
|
import './chunk-TXKHD4Q6.js';
|
|
7
7
|
import './chunk-YY64D4FA.js';
|
|
8
8
|
import './chunk-RSW5AXPT.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-NOCOZB2Z.js';
|
|
10
10
|
import './chunk-T3X3FZIR.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-WYJSHRD6.js';
|
|
12
12
|
import './chunk-WR2TR6BC.js';
|
|
13
13
|
import { findServiceUnit } from './chunk-4ATFANLO.js';
|
|
14
|
-
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
14
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-ND5SOLPS.js';
|
|
15
15
|
import './chunk-BY4SXNUL.js';
|
|
16
16
|
import './chunk-2UBMDLUF.js';
|
|
17
17
|
import './chunk-2PGI6RDE.js';
|
|
@@ -21,9 +21,9 @@ import './chunk-PNZMJFVP.js';
|
|
|
21
21
|
import './chunk-ADXJXXGU.js';
|
|
22
22
|
import './chunk-6SOATTHF.js';
|
|
23
23
|
import './chunk-WNFQV5SL.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
24
|
+
import './chunk-HTIUY3ER.js';
|
|
25
|
+
import './chunk-XD7V5HF5.js';
|
|
26
|
+
import './chunk-ROQTVOAM.js';
|
|
27
27
|
import './chunk-C2PZOLN7.js';
|
|
28
28
|
import './chunk-B4XB5QFD.js';
|
|
29
29
|
import './chunk-N6DWNOEF.js';
|
|
@@ -37,18 +37,18 @@ import './chunk-JBJTC3UU.js';
|
|
|
37
37
|
import './chunk-OGFGZQA3.js';
|
|
38
38
|
import './chunk-VGV3J5CX.js';
|
|
39
39
|
import './chunk-KTHGBFIH.js';
|
|
40
|
-
import { describeCallFailure } from './chunk-
|
|
40
|
+
import { describeCallFailure } from './chunk-624IRDBJ.js';
|
|
41
41
|
import './chunk-FJGYU2EK.js';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-UDFHJ4KG.js';
|
|
43
43
|
import './chunk-7RDHN455.js';
|
|
44
|
-
import './chunk-
|
|
44
|
+
import './chunk-HRDPD4MF.js';
|
|
45
45
|
import { keyRunnerFactory, loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-MP6INWPC.js';
|
|
46
46
|
import './chunk-ST5S3P2C.js';
|
|
47
47
|
import './chunk-3WYPBALP.js';
|
|
48
48
|
import './chunk-DF2ATCBQ.js';
|
|
49
49
|
import './chunk-QWTN72TN.js';
|
|
50
50
|
import './chunk-OVV6F6TV.js';
|
|
51
|
-
import './chunk-
|
|
51
|
+
import './chunk-NG7HVAK4.js';
|
|
52
52
|
import './chunk-TDTWNGCO.js';
|
|
53
53
|
import './chunk-TQZHYLX5.js';
|
|
54
54
|
import './chunk-ND6JA3K5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-BXWZCLJ3.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-ADXJXXGU.js';
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-UDFHJ4KG.js';
|
|
5
5
|
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-NBNZFLKJ.js';
|
|
6
6
|
import { withInjectedPrograms } from './chunk-RLNTFA2C.js';
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
7
|
+
import { isLinkedRepository } from './chunk-NG7HVAK4.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-2EON52MM.js';
|
|
@@ -1081,12 +1081,12 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1081
1081
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1082
1082
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1083
1083
|
} else if (hasRunnerBlock(configPath)) {
|
|
1084
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1084
|
+
const { runnerHostChecks } = await import('./doctor-6VSCTPWX.js');
|
|
1085
1085
|
const gateway = (() => {
|
|
1086
1086
|
try {
|
|
1087
1087
|
const loaded = loadRunnerConfig(configPath);
|
|
1088
1088
|
const { url, apiKey } = loaded;
|
|
1089
|
-
return loaded.fleet === true ? { url, apiKey, fleet: true, ...loaded.appId === void 0 ? {} : { appId: loaded.appId } } : { url, apiKey, appId: keyRunnerFactory(loaded) };
|
|
1089
|
+
return loaded.fleet === true ? { url, apiKey, fleet: true, ...loaded.appId === void 0 ? {} : { appId: loaded.appId }, ...loaded.sandbox?.provider === void 0 ? {} : { sandboxProvider: loaded.sandbox.provider } } : { url, apiKey, appId: keyRunnerFactory(loaded) };
|
|
1090
1090
|
} catch {
|
|
1091
1091
|
return void 0;
|
|
1092
1092
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-UDFHJ4KG.js';
|
|
5
5
|
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-X5WH346T.js';
|
|
6
6
|
import { buildRefusalReason } from './chunk-OHJUCEPI.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-A3SSJ7WS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-ND5SOLPS.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-PNZMJFVP.js';
|
|
5
5
|
import { runnerDir } from './chunk-2OSEUHWY.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { runEmit } from './chunk-EXRBPNSJ.js';
|
|
4
4
|
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-QWTN72TN.js';
|
|
5
5
|
import { installStarterPack } from './chunk-OVV6F6TV.js';
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
6
|
+
import { listWithAnd } from './chunk-NG7HVAK4.js';
|
|
7
7
|
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-TQZHYLX5.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
9
|
import { resolveGitCommonDir, defaultGitRunner } from './chunk-X5WH346T.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-7RDHN455.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-
|
|
3
|
+
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-UDFHJ4KG.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-NG7HVAK4.js';
|
|
4
4
|
import { resolveGatewayCredentials } from './chunk-BXWZCLJ3.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-XD7V5HF5.js';
|
|
4
4
|
import { spoolDir } from './chunk-ANBDFUHT.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
6
|
import { sessionFolderIn, legacyAgent } from './chunk-OZG4BNC6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-ND5SOLPS.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-DMAAKDGD.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-UDFHJ4KG.js';
|
|
8
8
|
import { keyRunnerFactory } from './chunk-MP6INWPC.js';
|
|
9
9
|
import { signerFor } from './chunk-D5YKPIHV.js';
|
|
10
10
|
import { pidFilePath } from './chunk-2OSEUHWY.js';
|
|
@@ -8,8 +8,8 @@ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, i
|
|
|
8
8
|
import { upgradedStarterText } from './chunk-ADXJXXGU.js';
|
|
9
9
|
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-6SOATTHF.js';
|
|
10
10
|
import { writeDockerClientConfig } from './chunk-WNFQV5SL.js';
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
11
|
+
import { senderPidfile } from './chunk-HTIUY3ER.js';
|
|
12
|
+
import { installScrubContext } from './chunk-XD7V5HF5.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
14
|
import { runnerImageVersion } from './chunk-N6DWNOEF.js';
|
|
15
15
|
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-FMYWIBBW.js';
|
|
@@ -20,8 +20,8 @@ import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
21
|
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-VGV3J5CX.js';
|
|
22
22
|
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-KTHGBFIH.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-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } 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-624IRDBJ.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-UDFHJ4KG.js';
|
|
25
25
|
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, 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-MP6INWPC.js';
|
|
26
26
|
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-ST5S3P2C.js';
|
|
27
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-3WYPBALP.js';
|
|
@@ -4789,6 +4789,8 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4789
4789
|
if (governingSource.kind === "governed") {
|
|
4790
4790
|
const unfetched = await prefetchGovernedContext({
|
|
4791
4791
|
configPath: config.configPath,
|
|
4792
|
+
// A fleet runner keeps each organization's control-plane cache in that organization's folder.
|
|
4793
|
+
...input.organizationId === void 0 ? {} : { organizationId: input.organizationId },
|
|
4792
4794
|
repository,
|
|
4793
4795
|
source: governingSource,
|
|
4794
4796
|
controlPlaneUrl,
|
|
@@ -4894,7 +4896,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4894
4896
|
environment.credentials = tokens.used();
|
|
4895
4897
|
let services;
|
|
4896
4898
|
try {
|
|
4897
|
-
const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`), ...readOnlyOption(input.queue) });
|
|
4899
|
+
const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, organizationId: input.organizationId, log: (line2) => log.line(`${tag} ${line2}`), ...readOnlyOption(input.queue) });
|
|
4898
4900
|
services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "stream", input.leaseExpiryMs === void 0 ? void 0 : leaseFor(runtime, buildId, input.leaseExpiryMs), void 0, (line2) => log.line(`${tag} ${line2}`));
|
|
4899
4901
|
runtime.tunnels.set(buildId, services);
|
|
4900
4902
|
} catch (err) {
|
|
@@ -5087,6 +5089,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5087
5089
|
aborted: input.aborted,
|
|
5088
5090
|
stageContext: () => stageGovernedContext({
|
|
5089
5091
|
config,
|
|
5092
|
+
...input.organizationId === void 0 ? {} : { organizationId: input.organizationId },
|
|
5090
5093
|
repository,
|
|
5091
5094
|
source: pinnedSourceOf(governingSource),
|
|
5092
5095
|
buildId,
|
|
@@ -5134,7 +5137,7 @@ async function rejoinSandboxBuild(input) {
|
|
|
5134
5137
|
const joinSecret = Buffer.from(read.stdout, "base64");
|
|
5135
5138
|
if (read.exitCode !== 0 || joinSecret.length === 0) throw new Error(`the build's join secret could not be read from its sandbox (exit ${read.exitCode ?? "none"})${said(read.stderr)}`);
|
|
5136
5139
|
const repositories = repositoriesOf({ repositories: input.repositories, repository: state.repository, branch: input.branch });
|
|
5137
|
-
const gitRemote = gitRemoteFor(runtime, { repositories, tokens: input.tokens, buildDir: state.buildDir, log, ...readOnlyOption(input.queue) });
|
|
5140
|
+
const gitRemote = gitRemoteFor(runtime, { repositories, tokens: input.tokens, buildDir: state.buildDir, organizationId: input.organizationId, log, ...readOnlyOption(input.queue) });
|
|
5138
5141
|
const lease = leaseFor(runtime, state.buildId, input.leaseExpiryMs);
|
|
5139
5142
|
const services = await startServicesFor(runtime, input.config, state.buildDir, input.jobDir, input.itemKey, true, gitRemote, "stream", lease, void 0, log);
|
|
5140
5143
|
runtime.tunnels.set(state.buildId, services);
|
|
@@ -210,6 +210,7 @@ function parseFactories(body) {
|
|
|
210
210
|
displayName: sanitizeTerminal(typeof org.displayName === "string" ? org.displayName : org.name),
|
|
211
211
|
...typeof org.previousName === "string" && org.previousName !== "" ? { previousName: sanitizeTerminal(org.previousName) } : {}
|
|
212
212
|
},
|
|
213
|
+
...Array.isArray(row.previousNames) ? { previousNames: row.previousNames.filter((n) => typeof n === "string" && n !== "").map(sanitizeTerminal) } : {},
|
|
213
214
|
linked: typeof row.linked === "boolean" ? row.linked : null,
|
|
214
215
|
owner: row.owner === true
|
|
215
216
|
});
|
|
@@ -261,15 +262,20 @@ function selectFactory(factories, saved, repository, configured) {
|
|
|
261
262
|
var ORGANIZATION_CODE = /^[bcdfghjklmnpqrstvwxz0-9]{8}$/;
|
|
262
263
|
var identifierCode = (identifier) => identifier.slice(identifier.lastIndexOf("-") + 1);
|
|
263
264
|
function findNamedFactory(factories, wanted) {
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
);
|
|
267
|
-
if (exact) return exact;
|
|
265
|
+
const byId = factories.find((f) => f.id.toLowerCase() === wanted);
|
|
266
|
+
if (byId) return byId;
|
|
268
267
|
const cut = wanted.indexOf("/");
|
|
269
268
|
if (cut < 0) return void 0;
|
|
270
|
-
const
|
|
269
|
+
const organization = wanted.slice(0, cut);
|
|
270
|
+
const factory = wanted.slice(cut + 1);
|
|
271
|
+
const inOrganization = (f) => f.organization.name.toLowerCase() === organization || f.organization.previousName?.toLowerCase() === organization;
|
|
272
|
+
const earlier = (f) => f.previousNames?.some((n) => n.toLowerCase() === factory) === true;
|
|
273
|
+
const exact = factories.find((f) => inOrganization(f) && f.name.toLowerCase() === factory) ?? factories.find((f) => inOrganization(f) && earlier(f));
|
|
274
|
+
if (exact) return exact;
|
|
275
|
+
const code = identifierCode(organization);
|
|
271
276
|
if (!ORGANIZATION_CODE.test(code)) return void 0;
|
|
272
|
-
|
|
277
|
+
const sameCode = (f) => identifierCode(f.organization.name.toLowerCase()) === code;
|
|
278
|
+
return factories.find((f) => sameCode(f) && f.name.toLowerCase() === factory) ?? factories.find((f) => sameCode(f) && earlier(f));
|
|
273
279
|
}
|
|
274
280
|
function saveFactoryConnection(gitCommonDir, saved, factory, now) {
|
|
275
281
|
if (saved?.appId === factory.id) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-ND5SOLPS.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-N6DWNOEF.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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-U4LX6N6O.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
7
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
9
|
import { defaultFetch, resolveGatewayCredentials } from './chunk-BXWZCLJ3.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-IUJS6LR7.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
6
6
|
import { writeFleetState } from './chunk-YY64D4FA.js';
|
|
7
7
|
import { writePendingUpdate } from './chunk-RSW5AXPT.js';
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { renderUpdateSteps } from './chunk-NOCOZB2Z.js';
|
|
9
9
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-T3X3FZIR.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-WYJSHRD6.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-WR2TR6BC.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-ND5SOLPS.js';
|
|
13
13
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-BY4SXNUL.js';
|
|
14
14
|
import { RUNNER_PROTOCOL } from './chunk-2UBMDLUF.js';
|
|
15
15
|
import { RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
16
|
+
import { RepoFilter } from './chunk-XD7V5HF5.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
18
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-N6DWNOEF.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
@@ -21,8 +21,8 @@ import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, item
|
|
|
21
21
|
import { fetchCommit, readBranchHead, diffBetween } from './chunk-5D3XOHGK.js';
|
|
22
22
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-DMAAKDGD.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-624IRDBJ.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-UDFHJ4KG.js';
|
|
26
26
|
import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-MP6INWPC.js';
|
|
27
27
|
import { allocatedBytes, freeBytes, formatBytes } from './chunk-ST5S3P2C.js';
|
|
28
28
|
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-3WYPBALP.js';
|
|
@@ -68,6 +68,18 @@ function fleetRoom(facts, jobs, held, draining) {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
function sandboxFleetRoom(concurrency, jobs, held, draining) {
|
|
72
|
+
if (draining || held) return { total: { ...NONE }, free: { ...NONE } };
|
|
73
|
+
const large = BUILD_SIZES.large;
|
|
74
|
+
const total = { memoryGiB: concurrency * large.memoryGiB, vcpus: concurrency * large.vcpus, diskGB: concurrency * large.diskGB };
|
|
75
|
+
if (jobs.length >= concurrency) return { total, free: { ...NONE } };
|
|
76
|
+
const sizes = jobs.map((job) => BUILD_SIZES[job.size ?? "large"]);
|
|
77
|
+
const sum = (key) => sizes.reduce((all, size) => all + size[key], 0);
|
|
78
|
+
return {
|
|
79
|
+
total,
|
|
80
|
+
free: { memoryGiB: total.memoryGiB - sum("memoryGiB"), vcpus: total.vcpus - sum("vcpus"), diskGB: total.diskGB - sum("diskGB") }
|
|
81
|
+
};
|
|
82
|
+
}
|
|
71
83
|
var MAX_IMAGES = 500;
|
|
72
84
|
function names(path) {
|
|
73
85
|
try {
|
|
@@ -128,6 +140,14 @@ function record(ports, memory) {
|
|
|
128
140
|
} catch {
|
|
129
141
|
}
|
|
130
142
|
}
|
|
143
|
+
function roomOf(ports, held) {
|
|
144
|
+
const config = ports.config();
|
|
145
|
+
if (isBuiltinSandbox(config.hooks.provision)) return sandboxFleetRoom(config.concurrency, ports.jobs(), held, ports.draining());
|
|
146
|
+
return fleetRoom(ports.facts(), ports.jobs(), held, ports.draining());
|
|
147
|
+
}
|
|
148
|
+
function imagesOf(ports) {
|
|
149
|
+
return isBuiltinSandbox(ports.config().hooks.provision) ? [] : ports.images();
|
|
150
|
+
}
|
|
131
151
|
async function checkFleet(ports, memory) {
|
|
132
152
|
const config = ports.config();
|
|
133
153
|
const at = ports.now().toISOString();
|
|
@@ -244,10 +264,10 @@ async function runFleetTick(ports, memory) {
|
|
|
244
264
|
if (!await checkFleet(ports, memory)) return;
|
|
245
265
|
const held = await ports.held();
|
|
246
266
|
memory.held = held;
|
|
247
|
-
const images = ports
|
|
267
|
+
const images = imagesOf(ports);
|
|
248
268
|
const disks = ports.disks();
|
|
249
269
|
for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
|
|
250
|
-
const room =
|
|
270
|
+
const room = roomOf(ports, held);
|
|
251
271
|
const answer = await callFleetRoute(ports, memory, room, images, disks);
|
|
252
272
|
if (answer === void 0) return;
|
|
253
273
|
memory.last = {
|
|
@@ -284,8 +304,8 @@ async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
|
284
304
|
if (memory.calling) return;
|
|
285
305
|
if (memory.lastAnsweredMs !== void 0 && ports.now().getTime() - memory.lastAnsweredMs < minGapMs) return;
|
|
286
306
|
if (memory.keyDoubted || fleetConfigProblem(ports.config()) !== void 0) return;
|
|
287
|
-
const room =
|
|
288
|
-
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, ports
|
|
307
|
+
const room = roomOf(ports, memory.held);
|
|
308
|
+
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, imagesOf(ports), ports.disks());
|
|
289
309
|
if (answer === void 0) return;
|
|
290
310
|
memory.last = {
|
|
291
311
|
calledAt: ports.now().toISOString(),
|
|
@@ -3156,7 +3176,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3156
3176
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3157
3177
|
);
|
|
3158
3178
|
async function tryClaimAndStart(state, item, queue) {
|
|
3159
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3179
|
+
const { postJson: postJson2 } = await import('./work-cmd-3Y45NSG6.js');
|
|
3160
3180
|
const log = logOf(state);
|
|
3161
3181
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3162
3182
|
const claim = await retrySend(
|
|
@@ -4525,6 +4545,7 @@ async function adoptTrackedSandboxes(state, jobsDirPath) {
|
|
|
4525
4545
|
found = await rejoinSandboxBuild({
|
|
4526
4546
|
runtime,
|
|
4527
4547
|
config: configForJob(state.config, job),
|
|
4548
|
+
organizationId: job.organizationId,
|
|
4528
4549
|
own,
|
|
4529
4550
|
jobDir: dirPath,
|
|
4530
4551
|
itemKey: job.itemKey,
|
|
@@ -4782,7 +4803,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4782
4803
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4783
4804
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4784
4805
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4785
|
-
return (await import('./check-
|
|
4806
|
+
return (await import('./check-WLQZ2BVT.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4786
4807
|
},
|
|
4787
4808
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4788
4809
|
log
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-TDTWNGCO.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
8
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-XD7V5HF5.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-TDTWNGCO.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
9
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-HRDPD4MF.js';
|
|
5
|
+
import { workPageUrl } from './chunk-NG7HVAK4.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
8
|
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-BXWZCLJ3.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BY4SXNUL.js';
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-UDFHJ4KG.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { defaultFetch } from './chunk-BXWZCLJ3.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-SUOWG537.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-SUOWG537.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-NBVX7AHX.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-ND5SOLPS.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-MP6INWPC.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-UDFHJ4KG.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-MP6INWPC.js';
|
|
7
7
|
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ST5S3P2C.js';
|
|
8
8
|
import { ensureHostKey } from './chunk-D5YKPIHV.js';
|
|
9
9
|
import { sandboxSettingsFrom } from './chunk-IB4SVQNB.js';
|
|
@@ -26,8 +26,13 @@ function fleetConfigProblem(config) {
|
|
|
26
26
|
if (config.appId !== void 0) {
|
|
27
27
|
return `fleet: the config names an appId (${config.appId}), and a fleet machine belongs to no factory. Remove appId from the config`;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const vm = isBuiltinVm(config.hooks.provision) && isBuiltinVm(config.hooks.cleanup);
|
|
30
|
+
const sandbox = isBuiltinSandbox(config.hooks.provision) && isBuiltinSandbox(config.hooks.cleanup);
|
|
31
|
+
if (!vm && !sandbox) {
|
|
32
|
+
return "fleet: runner.hooks.provision and runner.hooks.cleanup must both be builtin:vm or both be builtin:sandbox, because each build of a fleet runner runs in a machine of its own";
|
|
33
|
+
}
|
|
34
|
+
if (sandbox && config.sandbox?.provider === "outerlayer") {
|
|
35
|
+
return `fleet: runner.sandbox.provider is "outerlayer", and a fleet runner needs a sandbox provider account of its own. Remove runner.sandbox.provider, name the snapshot in runner.sandbox.snapshot, and give the runner the provider's credentials`;
|
|
31
36
|
}
|
|
32
37
|
return void 0;
|
|
33
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-ROQTVOAM.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-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|