@outerlayer/cli 0.40.0-next.20261115004954 → 0.40.0-next.20261115013314
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-T27N6LQM.js → check-WLQZ2BVT.js} +12 -12
- package/dist/{chunk-TQDXHGUF.js → chunk-4XN2LKSK.js} +1 -1
- package/dist/{chunk-VY2MH6VX.js → chunk-624IRDBJ.js} +1 -1
- package/dist/{chunk-R7VMDX33.js → chunk-AUJPQVNR.js} +1 -1
- package/dist/{chunk-C2W453KR.js → chunk-C533PUPH.js} +1 -1
- package/dist/{chunk-HMVOTDEQ.js → chunk-DFWIJH6P.js} +6 -1
- package/dist/{chunk-6WBI37BR.js → chunk-DUNJ67ZH.js} +1 -1
- package/dist/{chunk-Y6FNWOKT.js → chunk-G6WWNIAY.js} +3 -3
- 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-3FWY4H6N.js → chunk-IUJS6LR7.js} +2 -2
- package/dist/{chunk-TTHF4LOS.js → chunk-JOZ7SU5V.js} +12 -5
- package/dist/{chunk-NSO6IY24.js → chunk-ND5SOLPS.js} +4 -4
- package/dist/{chunk-J4WAHOXM.js → chunk-NG7HVAK4.js} +12 -6
- package/dist/{chunk-AEKBDXWH.js → chunk-NOCOZB2Z.js} +1 -1
- package/dist/{chunk-5I4PLRFO.js → chunk-O7UOBZ7J.js} +2 -2
- package/dist/{chunk-FZXC3WER.js → chunk-PWDLJKEI.js} +9 -9
- package/dist/{chunk-KJNI2WWR.js → chunk-ROQTVOAM.js} +1 -1
- package/dist/{chunk-Y2US5RDK.js → chunk-S4XEMYAP.js} +1 -0
- package/dist/{chunk-YRH4DL4O.js → chunk-U4LX6N6O.js} +2 -2
- package/dist/{chunk-TG3O6CAF.js → chunk-UDFHJ4KG.js} +2 -2
- package/dist/{chunk-PIBJDYIC.js → chunk-W3UPD3D6.js} +4 -4
- package/dist/{chunk-WFBHEF4N.js → chunk-WYJSHRD6.js} +2 -2
- package/dist/{chunk-IT7RFVWR.js → chunk-XD7V5HF5.js} +1 -1
- package/dist/{cli-UBD53T43.js → cli-RKATG6XY.js} +94 -93
- package/dist/{command-FL2WIRXN.js → command-YD3EHTZQ.js} +12 -12
- package/dist/{connect-cmd-IK3Z2YH2.js → connect-cmd-YQVCFXOE.js} +1 -1
- package/dist/{container-start-CFNWJMHZ.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-HDHZV4DG.js → doctor-U3DJQGCO.js} +11 -11
- 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-6BJKUV4I.js → host-checks-SUOWG537.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{init-KRJU32VG.js → init-SKXGA5U7.js} +8 -8
- package/dist/{init-KKOUW5M7.js → init-VPKR33RD.js} +8 -8
- package/dist/{init-agent-KTD5YU6D.js → init-agent-L5O3TUUM.js} +8 -8
- package/dist/{init-cmd-UDWRDVBE.js → init-cmd-3PNKJZRH.js} +4 -4
- package/dist/{init-update-QDEM6MO5.js → init-update-WWUADCXX.js} +2 -2
- package/dist/{install-cmd-WQ2KFKHI.js → install-cmd-5WRSO54T.js} +7 -2
- package/dist/{launch-agent-NC7OZQGZ.js → launch-agent-2PRVA5EX.js} +1 -1
- package/dist/{loop-ZYC5NTQG.js → loop-K53YB3BL.js} +12 -12
- package/dist/{machine-M5UU7HWR.js → machine-KLF5DDMY.js} +8 -8
- package/dist/{run-cmd-C35Z5ULW.js → run-cmd-J57WUDCT.js} +3 -3
- package/dist/{runner-key-JAMOE6OP.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-QKRBAWZX.js → status-GPSPNHZ3.js} +9 -9
- package/dist/{sync-cmd-LTNVLBSE.js → sync-cmd-KXVGXVPP.js} +4 -4
- package/dist/{update-steps-LCKPYIWI.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-P5NOMUJQ.js → work-proofs-cmd-2NX43SSO.js} +4 -4
- package/dist/{work-proofs-record-MPBQ3FHV.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-15T02:02:17.293Z","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,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';
|
|
@@ -114,6 +114,11 @@ function uninstallSandboxAgent(request, host) {
|
|
|
114
114
|
}
|
|
115
115
|
return outcome(true, "removed", [`removed the launch agent ${label}`]);
|
|
116
116
|
}
|
|
117
|
+
function launchAgentServiceState(input, host) {
|
|
118
|
+
const agent = sandboxAgentStatus(input.configPath, input.home, host);
|
|
119
|
+
if (agent !== void 0) return { kind: "launch-agent", unit: agent.label, running: agent.loaded, delegated: void 0 };
|
|
120
|
+
return input.buildsInSandboxes ? { kind: "launch-agent", unit: void 0, running: false, delegated: void 0 } : void 0;
|
|
121
|
+
}
|
|
117
122
|
function sandboxAgentStatus(configPath, home, host) {
|
|
118
123
|
const directory = agentsDir(home);
|
|
119
124
|
for (const name of host.list(directory)) {
|
|
@@ -126,4 +131,4 @@ function sandboxAgentStatus(configPath, home, host) {
|
|
|
126
131
|
return void 0;
|
|
127
132
|
}
|
|
128
133
|
|
|
129
|
-
export { installSandboxAgent, sandboxAgentStatus, uninstallSandboxAgent };
|
|
134
|
+
export { installSandboxAgent, launchAgentServiceState, sandboxAgentStatus, uninstallSandboxAgent };
|
|
@@ -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';
|
|
@@ -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,7 +1081,7 @@ 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-U3DJQGCO.js');
|
|
1085
1085
|
const gateway = (() => {
|
|
1086
1086
|
try {
|
|
1087
1087
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -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';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-WR2TR6BC.js';
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-S4XEMYAP.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-WR2TR6BC.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-MP6INWPC.js';
|
|
6
7
|
import { runnerDir, RUNNER_DIR_MODE } from './chunk-2OSEUHWY.js';
|
|
7
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
|
-
import { dirname, sep, join } from 'path';
|
|
9
|
+
import { dirname, sep, join, resolve } from 'path';
|
|
9
10
|
import { spawnSync } from 'child_process';
|
|
10
11
|
import { userInfo } from 'os';
|
|
11
12
|
|
|
@@ -92,8 +93,9 @@ function runRunnerInstall(args) {
|
|
|
92
93
|
const installed = currentVersion(configPath);
|
|
93
94
|
if (args.allowDowngrade !== true && installed !== void 0 && (compareVersions(version, installed) ?? 0) < 0) {
|
|
94
95
|
const command = args.command ?? "runner install";
|
|
96
|
+
const newer = followsLauncher(configPath, args.home) ? `${launcherPath(args.home)} ${command}` : `${nodePath} ${entryIn(currentLink(configPath))} ${command} --config ${configPath}`;
|
|
95
97
|
throw new RunnerDowngradeError(
|
|
96
|
-
`this CLI is ${version}, older than ${installed}, the version the runner runs from ${currentLink(configPath)}. Installing it would move the runner back to ${version}. Run \`${
|
|
98
|
+
`this CLI is ${version}, older than ${installed}, the version the runner runs from ${currentLink(configPath)}. Installing it would move the runner back to ${version}. Run \`${newer}\` instead, which runs ${installed}. To install ${version} anyway, run \`outerlayer ${command} --allow-downgrade\``
|
|
97
99
|
);
|
|
98
100
|
}
|
|
99
101
|
const ownership = args.ownership ?? realOwnership();
|
|
@@ -105,7 +107,7 @@ function runRunnerInstall(args) {
|
|
|
105
107
|
} finally {
|
|
106
108
|
const launcher = launcherPath(args.home);
|
|
107
109
|
const problem = handOver(account, [{ path: runnerDir(configPath) }, { path: dirname(versionDir(configPath, version)) }, { path: versionDir(configPath, version), tree: true }, { path: currentLink(configPath) }], ownership) ?? // A launcher file the runner did not write stays with its owner.
|
|
108
|
-
handOver(homeAccount, [{ path: join(args.home, ".local") }, { path: dirname(launcher) }, ...written === void 0 || written.state === "foreign" ? [] : [{ path: launcher }]], ownership);
|
|
110
|
+
(written?.state === "skipped" ? void 0 : handOver(homeAccount, [{ path: join(args.home, ".local") }, { path: dirname(launcher) }, ...written === void 0 || written.state === "foreign" ? [] : [{ path: launcher }]], ownership));
|
|
109
111
|
if (problem !== void 0 && written !== void 0) throw new RunnerInstallError(problem);
|
|
110
112
|
}
|
|
111
113
|
return {
|
|
@@ -130,6 +132,7 @@ function placeInLayout(input) {
|
|
|
130
132
|
carryHoistedDevcontainerCli(packageRoot, target);
|
|
131
133
|
}
|
|
132
134
|
switchCurrent(configPath, version);
|
|
135
|
+
if (!followsLauncher(configPath, input.home)) return { path: launcherPath(input.home), state: "skipped" };
|
|
133
136
|
try {
|
|
134
137
|
return writeLauncher({ home: input.home, configPath, nodePath: input.nodePath, replace: input.replace });
|
|
135
138
|
} catch (error) {
|
|
@@ -137,6 +140,9 @@ function placeInLayout(input) {
|
|
|
137
140
|
throw error;
|
|
138
141
|
}
|
|
139
142
|
}
|
|
143
|
+
function followsLauncher(configPath, home) {
|
|
144
|
+
return resolve(configPath) === resolve(defaultRunnerConfigPath(home));
|
|
145
|
+
}
|
|
140
146
|
function sameBuildInstalled(source, target) {
|
|
141
147
|
try {
|
|
142
148
|
const wanted = readFileSync(join(source, "dist", "build-info.json"), "utf8");
|
|
@@ -156,6 +162,7 @@ function carryHoistedDevcontainerCli(packageRoot, target) {
|
|
|
156
162
|
}
|
|
157
163
|
function launcherSummary(launcher) {
|
|
158
164
|
if (launcher.state === "foreign") return void 0;
|
|
165
|
+
if (launcher.state === "skipped") return `left the outerlayer command as it is: only the runner of the default config writes ${launcher.path}`;
|
|
159
166
|
return `${launcher.state === "unchanged" ? "outerlayer command already at" : "wrote the outerlayer command at"} ${launcher.path}, which runs the CLI that ${launcher.follows} names`;
|
|
160
167
|
}
|
|
161
168
|
function restartNote(result) {
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -3176,7 +3176,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3176
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(" ")
|
|
3177
3177
|
);
|
|
3178
3178
|
async function tryClaimAndStart(state, item, queue) {
|
|
3179
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3179
|
+
const { postJson: postJson2 } = await import('./work-cmd-3Y45NSG6.js');
|
|
3180
3180
|
const log = logOf(state);
|
|
3181
3181
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3182
3182
|
const claim = await retrySend(
|
|
@@ -4803,7 +4803,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4803
4803
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4804
4804
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4805
4805
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4806
|
-
return (await import('./check-
|
|
4806
|
+
return (await import('./check-WLQZ2BVT.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4807
4807
|
},
|
|
4808
4808
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4809
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';
|
|
@@ -91,6 +91,7 @@ function onPath(PATH, dir) {
|
|
|
91
91
|
}
|
|
92
92
|
function pathNotes(input) {
|
|
93
93
|
const notes = [];
|
|
94
|
+
if (input.state === "skipped") return notes;
|
|
94
95
|
if (input.state === "foreign") {
|
|
95
96
|
notes.push(`${input.launcher} exists and the runner did not write it, so it was left alone. Run \`outerlayer runner install --replace\` to replace it`);
|
|
96
97
|
return notes;
|
|
@@ -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,8 +1,8 @@
|
|
|
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-
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-UDFHJ4KG.js';
|
|
6
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';
|
|
@@ -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';
|