@outerlayer/cli 0.41.2-next.20261119010339 → 0.42.0-next.20261119011332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/build-info.json +1 -1
- package/dist/{caller-ZUQVRQMY.js → caller-WLYRCJKR.js} +1 -1
- package/dist/{check-BXJBIMLW.js → check-HABHY27Y.js} +7 -7
- package/dist/{chunk-7TDLQUJ5.js → chunk-BWDUZJ4K.js} +1 -1
- package/dist/{chunk-X6WL4AQY.js → chunk-CUPEP5D2.js} +1 -1
- package/dist/{chunk-Z27PY2OJ.js → chunk-H7L6XTQQ.js} +1 -1
- package/dist/{chunk-U5MLUAY3.js → chunk-HNWNJ6QK.js} +1 -1
- package/dist/{chunk-7HH6C45Q.js → chunk-HT6HMUC3.js} +1 -1
- package/dist/{chunk-3ZZSQG2A.js → chunk-IOWXXJUM.js} +1 -1
- package/dist/{chunk-72NCZTEG.js → chunk-K476DEC7.js} +2 -2
- package/dist/{chunk-AAL7FZPH.js → chunk-M4V46N7A.js} +1 -1
- package/dist/{chunk-OLXB2YMX.js → chunk-QHZZUINX.js} +1 -1
- package/dist/{chunk-RCE5YQFT.js → chunk-UE6ZEQAL.js} +14 -10
- package/dist/{chunk-S3VUP7LF.js → chunk-V3T36H4O.js} +2 -2
- package/dist/{chunk-DQ3IKV5Q.js → chunk-WXGEDDUO.js} +114 -30
- package/dist/{cli-7QRILUMX.js → cli-KDLYNUNH.js} +29 -29
- package/dist/{command-TOAYBFFZ.js → command-GZJHU5QD.js} +4 -4
- package/dist/{container-start-6FSO54P4.js → container-start-R2C2UNL6.js} +5 -5
- package/dist/{doctor-XDN7XS64.js → doctor-D7B4Z7Y7.js} +5 -5
- package/dist/{host-checks-XGFTDLLF.js → host-checks-SMVSA55L.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{init-JU5GZJWH.js → init-RWDQWHCW.js} +3 -3
- package/dist/{init-VOKKIEKX.js → init-ZCNI5SFB.js} +3 -3
- package/dist/{init-agent-XMC3ZJWR.js → init-agent-YGLQSRVI.js} +3 -3
- package/dist/{init-cmd-CKMBOAZ5.js → init-cmd-N35UZUCM.js} +2 -2
- package/dist/{loop-WPT6ILVY.js → loop-YMGQKGIS.js} +7 -7
- package/dist/{machine-BZBJNTTU.js → machine-AFXMDA56.js} +3 -3
- package/dist/{runner-key-LTA6PHOI.js → runner-key-H3CKD4UB.js} +3 -3
- package/dist/{setup-cmd-ANDLH2E7.js → setup-cmd-IBGMGFMJ.js} +4 -4
- package/dist/{setup-wiring-4YSYU7OV.js → setup-wiring-O5SJZBTP.js} +6 -6
- package/dist/{status-4MTM45CS.js → status-GC2RXFMJ.js} +3 -3
- package/dist/{update-steps-GJ6WGON2.js → update-steps-U7JDUYLU.js} +4 -4
- package/dist/{work-claim-cmd-BZ5RFKVN.js → work-claim-cmd-2WWN4XB7.js} +1 -1
- package/dist/{work-proofs-cmd-FIEPKCPW.js → work-proofs-cmd-EJPH5GY3.js} +1 -1
- package/dist/{work-proofs-record-BQ7EAT5R.js → work-proofs-record-B25ZFR2P.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -696,7 +696,7 @@ moves, that pass stops counting and a fresh review is needed. The evidence
|
|
|
696
696
|
status check's title says where the review stands. The status check on GitHub
|
|
697
697
|
never waits for the review: it completes once OuterLayer's judges finish. With
|
|
698
698
|
the factory's "Block the merge when a check fails" switch on (Settings, then
|
|
699
|
-
|
|
699
|
+
Repositories), a person's request for changes fails it.
|
|
700
700
|
|
|
701
701
|
A criterion thread is scoped to one acceptance criterion rather than the
|
|
702
702
|
whole item: an agent attaches proof with `outerlayer work comment
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-19T01:
|
|
1
|
+
{"id":"2026-11-19T01:25:51.403Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
3
|
+
export { claimCalls, claimItem, configForJob, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-V3T36H4O.js';
|
|
4
4
|
import './chunk-TRZOAT7E.js';
|
|
5
5
|
import './chunk-MYDYQUJD.js';
|
|
6
6
|
import './chunk-EYN62KZW.js';
|
|
@@ -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-WXGEDDUO.js';
|
|
4
4
|
import './chunk-6YBI24YT.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HNWNJ6QK.js';
|
|
7
|
+
import './chunk-IOWXXJUM.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-GFXXAXPF.js';
|
|
10
10
|
import './chunk-AVYR5USX.js';
|
|
11
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine, fleetQueuesWithoutAgent, fleetQueuesWithoutAgentNote } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine, fleetQueuesWithoutAgent, fleetQueuesWithoutAgentNote } from './chunk-QHZZUINX.js';
|
|
12
12
|
import './chunk-CYQSTT5N.js';
|
|
13
|
-
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, credentialVerdict, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import { createGatewaySandboxClient, gatewayRefusalReason, placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsAgentCredential, agentCredentialCheck, credentialVerdict, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-UE6ZEQAL.js';
|
|
14
|
+
import './chunk-BWDUZJ4K.js';
|
|
15
15
|
import './chunk-2QK7L3WV.js';
|
|
16
16
|
import './chunk-2PGI6RDE.js';
|
|
17
17
|
import './chunk-57MLWALQ.js';
|
|
@@ -25,7 +25,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
25
25
|
import './chunk-B4XB5QFD.js';
|
|
26
26
|
import './chunk-NXYTICCS.js';
|
|
27
27
|
import './chunk-TQMI335S.js';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-V3T36H4O.js';
|
|
29
29
|
import './chunk-NN33FYXG.js';
|
|
30
30
|
import './chunk-XETFYRKD.js';
|
|
31
31
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1084,7 +1084,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1084
1084
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1085
1085
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1086
1086
|
} else if (hasRunnerBlock(configPath)) {
|
|
1087
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1087
|
+
const { runnerHostChecks } = await import('./doctor-D7B4Z7Y7.js');
|
|
1088
1088
|
const gateway = (() => {
|
|
1089
1089
|
try {
|
|
1090
1090
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-
|
|
3
|
+
import { summarizeChecks, summaryText, renderDoctorText } from './chunk-CUPEP5D2.js';
|
|
4
4
|
import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-UWRXRSCE.js';
|
|
5
5
|
import { runConnect, hasUncommittedSetup, commitCommandsFor } from './chunk-7O37CF6M.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 { scrubReason, stripTerminalControls } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-UE6ZEQAL.js';
|
|
4
4
|
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ETBEMXPC.js';
|
|
5
5
|
import { RunnerAlreadyRunningError, readPidFile } from './chunk-NRR4YLHI.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.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-UE6ZEQAL.js';
|
|
4
4
|
import { UNIT_MARKER } from './chunk-ETBEMXPC.js';
|
|
5
5
|
import { runnerDir } from './chunk-5PRVTL54.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
@@ -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-UE6ZEQAL.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NXYTICCS.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -130,7 +130,7 @@ async function judgeCheckName(cwd) {
|
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return {};
|
|
132
132
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
133
|
-
const { checksIn } = await import('./host-checks-
|
|
133
|
+
const { checksIn } = await import('./host-checks-SMVSA55L.js');
|
|
134
134
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
135
135
|
const check = checksIn(dir, quiet, "").checks.find((c) => c.judge.subjects === "criteria");
|
|
136
136
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -366,7 +366,7 @@ async function runWorkProofs(opts) {
|
|
|
366
366
|
async function runWorkProofsCommand(opts) {
|
|
367
367
|
try {
|
|
368
368
|
if (opts.record || opts.check) {
|
|
369
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
369
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-B25ZFR2P.js');
|
|
370
370
|
const result2 = await runWorkProofsRecord(opts);
|
|
371
371
|
process.exitCode = result2.exitCode;
|
|
372
372
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { buildSkillPaths } from './chunk-
|
|
3
|
+
import { buildSkillPaths } from './chunk-UE6ZEQAL.js';
|
|
4
4
|
import { ignoreRuleFor } from './chunk-ZN3RUNOZ.js';
|
|
5
5
|
import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-7O37CF6M.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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-UE6ZEQAL.js';
|
|
4
4
|
import { checkFit } from './chunk-ETBEMXPC.js';
|
|
5
5
|
import { getJson, WorkCommandError } from './chunk-ASAIS67T.js';
|
|
6
6
|
import { isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, keepsHostBuilder } from './chunk-TRZOAT7E.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
|
|
4
4
|
import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-2QK7L3WV.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-57MLWALQ.js';
|
|
@@ -10,7 +10,7 @@ import { senderPidfile } from './chunk-QZFQ6EWP.js';
|
|
|
10
10
|
import { installScrubContext } from './chunk-AFU6UF34.js';
|
|
11
11
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
12
12
|
import { runnerImageVersion } from './chunk-NXYTICCS.js';
|
|
13
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
13
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-V3T36H4O.js';
|
|
14
14
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
15
15
|
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord, changedPathsBetween } from './chunk-XETFYRKD.js';
|
|
16
16
|
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-CQKCNDPP.js';
|
|
@@ -258,9 +258,8 @@ function claimRepos(repos) {
|
|
|
258
258
|
const bare = (pattern) => pattern.replace(/^github\.com\//i, "");
|
|
259
259
|
return { include: (repos.include ?? []).map(bare), exclude: (repos.exclude ?? []).map(bare) };
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
const run =
|
|
263
|
-
const runKey = data.runKey;
|
|
261
|
+
function parseRunClaim(runValue, runKey) {
|
|
262
|
+
const run = runValue;
|
|
264
263
|
if (run === null || run === void 0 || typeof run !== "object") return { kind: "none" };
|
|
265
264
|
if (typeof run.id !== "string" || typeof run.repository !== "string" || typeof run.instructions !== "string" || typeof run.issuesLeft !== "number" || typeof run.timeLimitSeconds !== "number" || typeof runKey !== "string" || runKey === "") {
|
|
266
265
|
return { kind: "malformed", reason: "the gateway's answer to the run claim is missing a field the runner needs; upgrade the runner or the gateway" };
|
|
@@ -271,6 +270,9 @@ function parseClaim(data) {
|
|
|
271
270
|
runKey
|
|
272
271
|
};
|
|
273
272
|
}
|
|
273
|
+
function parseClaim(data) {
|
|
274
|
+
return parseRunClaim(data.run, data.runKey);
|
|
275
|
+
}
|
|
274
276
|
async function claimRun(input) {
|
|
275
277
|
const { config } = input;
|
|
276
278
|
const repos = claimRepos(config.repos);
|
|
@@ -718,7 +720,7 @@ function failedStepLineOf(path) {
|
|
|
718
720
|
// src/runner/managed-model-key.ts
|
|
719
721
|
var FETCH_RETRY_WINDOW_MS = 3e4;
|
|
720
722
|
var ADOPTED_FETCH_RETRY_WINDOW_MS = 3e5;
|
|
721
|
-
var OWN_404_CODES = /* @__PURE__ */ new Set(["work_item_not_found", "model_provider_unknown"]);
|
|
723
|
+
var OWN_404_CODES = /* @__PURE__ */ new Set(["work_item_not_found", "run_not_found", "model_provider_unknown"]);
|
|
722
724
|
async function fetchAnthropicKeyOfOlderGateway(config, item, fetchImpl, deps) {
|
|
723
725
|
const outcome = await retrySend(
|
|
724
726
|
async () => postJson(config.url, `/v1/work-items/${item}/claim/anthropic-key`, config.apiKey, config.appId, {}, fetchImpl, void 0, await signerFor(config.configPath)),
|
|
@@ -734,12 +736,13 @@ async function fetchAnthropicKeyOfOlderGateway(config, item, fetchImpl, deps) {
|
|
|
734
736
|
async function fetchManagedModelKey(config, item, deps = {}) {
|
|
735
737
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
736
738
|
const body = deps.provider === void 0 ? {} : { provider: deps.provider };
|
|
739
|
+
const path = deps.run === true ? `/v1/schedule-runs/${item}/model-key` : `/v1/work-items/${item}/claim/model-key`;
|
|
737
740
|
const outcome = await retrySend(
|
|
738
|
-
async () => postJson(config.url,
|
|
741
|
+
async () => postJson(config.url, path, config.apiKey, config.appId, body, fetchImpl, void 0, await signerFor(config.configPath)),
|
|
739
742
|
{ now: deps.now, sleep: deps.sleep, windowMs: deps.windowMs ?? FETCH_RETRY_WINDOW_MS }
|
|
740
743
|
);
|
|
741
744
|
if (!outcome.ok) {
|
|
742
|
-
if (outcome.status === 404 && !OWN_404_CODES.has(outcome.code ?? "") && (deps.provider === void 0 || deps.provider === "anthropic")) {
|
|
745
|
+
if (deps.run !== true && outcome.status === 404 && !OWN_404_CODES.has(outcome.code ?? "") && (deps.provider === void 0 || deps.provider === "anthropic")) {
|
|
743
746
|
return fetchAnthropicKeyOfOlderGateway(config, item, fetchImpl, deps);
|
|
744
747
|
}
|
|
745
748
|
return { ok: false, code: outcome.code, reason: outcome.message ?? outcome.reason, retryable: outcome.retryable };
|
|
@@ -843,8 +846,9 @@ function parseSettings(data) {
|
|
|
843
846
|
}
|
|
844
847
|
async function fetchManagedBuildSettings(config, item, deps = {}) {
|
|
845
848
|
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
849
|
+
const path = deps.run === true ? `/v1/schedule-runs/${item}/build-settings` : `/v1/work-items/${item}/claim/build-settings`;
|
|
846
850
|
const outcome = await retrySend(
|
|
847
|
-
async () => postJson(config.url,
|
|
851
|
+
async () => postJson(config.url, path, config.apiKey, config.appId, {}, fetchImpl, void 0, await signerFor(config.configPath)),
|
|
848
852
|
{ now: deps.now, sleep: deps.sleep, windowMs: deps.windowMs ?? FETCH_RETRY_WINDOW_MS2 }
|
|
849
853
|
);
|
|
850
854
|
if (!outcome.ok) return { ok: false, code: outcome.code, reason: outcome.message ?? outcome.reason, retryable: outcome.retryable };
|
|
@@ -14403,4 +14407,4 @@ function makeRecorder(input) {
|
|
|
14403
14407
|
};
|
|
14404
14408
|
}
|
|
14405
14409
|
|
|
14406
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, NO_LOG, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxContainerStoppedError, SandboxGoneError, addRunnerAgent, agentCredentialCheck, agentCredentialFromFiles, appendCommandLog, attemptNote, buildSkillPaths, builtOf, carriedProblems, checksIn, claimPermissionProblem, claimRun, commandEndReasonOf, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, credentialVerdict, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, dropNonProblems, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedModelKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, hasRunnerBlock, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedKey, holdsHostDisk, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, issueText, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, markdownSection, measureDisk, mergeAnswers, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingJudgeCredential, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, noteMissingCredential, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, reviewFiles, runCommand, runCommandFor, runCommandOf, runDecision, runHook, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, storedProblemsText, stripTerminalControls, superviseRuns, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, territories, territoryBrief, timeoutAfter, treeFileText, unfinishedJobs, unreviewedFiles, unreviewedItem, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
14410
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, NO_LOG, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SandboxContainerStoppedError, SandboxGoneError, addRunnerAgent, agentCredentialCheck, agentCredentialFromFiles, appendCommandLog, attemptNote, buildSkillPaths, builtOf, carriedProblems, checksIn, claimPermissionProblem, claimRun, commandEndReasonOf, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, credentialVerdict, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, dropNonProblems, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedModelKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, hasRunnerBlock, heldSandboxClaimsOf, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedKey, holdsHostDisk, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, issueText, itemScope, itemTag, jobEnv, jobRecordsClaim, jobTimeLimitMinutes, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, markdownSection, measureDisk, mergeAnswers, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingJudgeCredential, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, noteMissingCredential, outcomeFromExitCode, parseCpuList, parseRunClaim, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, releaseRun, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, reviewFiles, runCommand, runCommandFor, runCommandOf, runDecision, runHook, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, storedProblemsText, stripTerminalControls, superviseRuns, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, territories, territoryBrief, timeoutAfter, treeFileText, unfinishedJobs, unreviewedFiles, unreviewedItem, vmAlive, withJobTimeLimit, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -18,7 +18,7 @@ function runnerCalls(config) {
|
|
|
18
18
|
return config;
|
|
19
19
|
}
|
|
20
20
|
function claimCalls(config, job) {
|
|
21
|
-
if (job.queue === "run") return withoutBuildAccess(runnerCalls(config));
|
|
21
|
+
if (job.queue === "run") return withoutBuildAccess(config.fleet === true ? { ...config, appId: factoryOf(job) } : runnerCalls(config));
|
|
22
22
|
if (config.fleet !== true) return runnerCalls(config);
|
|
23
23
|
return { ...config, appId: factoryOf(job) };
|
|
24
24
|
}
|
|
@@ -36,7 +36,7 @@ function itemCalls(config, job) {
|
|
|
36
36
|
return { ...config, apiKey: job.itemKey, appId: factoryOf(job) };
|
|
37
37
|
}
|
|
38
38
|
function claimItem(config, job) {
|
|
39
|
-
if (config.fleet !== true) return job.item;
|
|
39
|
+
if (config.fleet !== true || job.queue === "run") return job.item;
|
|
40
40
|
if (job.workItemId === void 0 || job.workItemId === "") throw new RunnerConfigError("a fleet build's job file names no work item id; the claim carries it");
|
|
41
41
|
return job.workItemId;
|
|
42
42
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-6YBI24YT.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-HNWNJ6QK.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-IOWXXJUM.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
8
|
import { writeFleetState } from './chunk-GFXXAXPF.js';
|
|
9
9
|
import { writePendingUpdate } from './chunk-AVYR5USX.js';
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-QHZZUINX.js';
|
|
11
11
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-CYQSTT5N.js';
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, noteMissingCredential, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, runCommandFor, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, commandEndReasonOf, holdManagedKey, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, hookLimitsFor,
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runCommandOf, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, noteMissingCredential, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, runCommandFor, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, commandEndReasonOf, holdManagedKey, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, releaseRun, listItemDisks, hookLimitsFor, AttemptLogBook, fetchManagedModelKey, environmentFor, builtOf, judgeCredential, missingJudgeCredential, reviewFiles, readWorkItem, issueText, storedProblemsText, territories, territoryBrief, dropNonProblems, mergeAnswers, carriedProblems, unreviewedItem, 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, holdsHostDisk, removeOldestUntil, treeFileText, scrubReason, superviseRuns, NO_LOG, timeoutAfter, unreviewedFiles, markdownSection, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, parseRunClaim, inTeardown } from './chunk-UE6ZEQAL.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
|
|
14
14
|
import { criteriaOf, diffLines, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, treePath, parseJudgeAnswer, wholeEntries, lineInDiff } from './chunk-2QK7L3WV.js';
|
|
15
15
|
import { RepoFilter } from './chunk-AFU6UF34.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
17
17
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-NXYTICCS.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-V3T36H4O.js';
|
|
20
20
|
import { fetchCommit, readBranchHead, diffBetween, readDefaultBranchFiles } from './chunk-XETFYRKD.js';
|
|
21
21
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-NRR4YLHI.js';
|
|
22
22
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
@@ -146,6 +146,19 @@ function parseClaim(value) {
|
|
|
146
146
|
}
|
|
147
147
|
return { data, id, kind, workItemId, number, appId, organizationId, size };
|
|
148
148
|
}
|
|
149
|
+
function parseRun(value, runKey) {
|
|
150
|
+
if (value === null || value === void 0) return void 0;
|
|
151
|
+
if (typeof value !== "object" || Array.isArray(value)) return { malformed: true };
|
|
152
|
+
const data = value;
|
|
153
|
+
const { id, appId, organizationId } = data;
|
|
154
|
+
const named = {
|
|
155
|
+
...typeof id === "string" && id !== "" ? { id } : {},
|
|
156
|
+
...typeof appId === "string" && appId !== "" ? { appId } : {}
|
|
157
|
+
};
|
|
158
|
+
const parsed = parseRunClaim(value, runKey);
|
|
159
|
+
if (parsed.kind !== "claimed" || typeof appId !== "string" || appId === "" || typeof organizationId !== "string" || organizationId === "") return { malformed: true, ...named };
|
|
160
|
+
return { run: parsed.run, runKey: parsed.runKey, appId, organizationId };
|
|
161
|
+
}
|
|
149
162
|
function parseStops(value) {
|
|
150
163
|
if (!Array.isArray(value)) return [];
|
|
151
164
|
const stops = [];
|
|
@@ -158,8 +171,10 @@ function parseStops(value) {
|
|
|
158
171
|
}
|
|
159
172
|
function parseAnswer(data) {
|
|
160
173
|
const reservation = Object(data.reservation);
|
|
174
|
+
const run = Object(data.run);
|
|
161
175
|
return {
|
|
162
176
|
claim: parseClaim(data.claim),
|
|
177
|
+
run: parseRun(data.run, run.runKey),
|
|
163
178
|
stops: parseStops(data.stops),
|
|
164
179
|
reservation: typeof reservation.workItemId === "string" && (reservation.size === "small" || reservation.size === "large") ? { workItemId: reservation.workItemId, size: reservation.size } : null,
|
|
165
180
|
...typeof data.reason === "string" ? { reason: data.reason } : {},
|
|
@@ -217,6 +232,25 @@ function noteReason(ports, memory, answer) {
|
|
|
217
232
|
memory.loggedReasons.add(key);
|
|
218
233
|
ports.log.error(`the gateway did not claim work item ${answer.reasonWorkItemId ?? "(not named)"} for this machine: ${answer.reason}`);
|
|
219
234
|
}
|
|
235
|
+
async function takeRun(ports, answer) {
|
|
236
|
+
const end = async (id, appId) => {
|
|
237
|
+
const ended = id !== void 0 && appId !== void 0 ? await ports.endRun({ id, appId }) : false;
|
|
238
|
+
return ended ? "the run was ended as failed" : "the run could not be ended, so it stays held until its lease lapses";
|
|
239
|
+
};
|
|
240
|
+
if ("malformed" in answer) {
|
|
241
|
+
ports.log.error(`the gateway's run lacked what a fleet runner needs (its id, factory, organization, key and limits); update the runner \xB7 ${await end(answer.id, answer.appId)}`);
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
if (ports.draining()) {
|
|
245
|
+
ports.log.line(`the runner is draining; ${await end(answer.run.id, answer.appId)} (run ${answer.run.id})`);
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
if (ports.waitsAfterProvision()) {
|
|
249
|
+
ports.log.line(`the runner takes no work after a provision that failed; ${await end(answer.run.id, answer.appId)} (run ${answer.run.id})`);
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
return ports.startRun(answer);
|
|
253
|
+
}
|
|
220
254
|
async function runFleetTick(ports, memory) {
|
|
221
255
|
ports.reload();
|
|
222
256
|
if (!await checkFleet(ports, memory)) return;
|
|
@@ -231,7 +265,7 @@ async function runFleetTick(ports, memory) {
|
|
|
231
265
|
if (answer === void 0) return;
|
|
232
266
|
memory.last = {
|
|
233
267
|
calledAt: ports.now().toISOString(),
|
|
234
|
-
claimId: answer.claim !== void 0 && "id" in answer.claim ? answer.claim.id : null,
|
|
268
|
+
claimId: answer.claim !== void 0 && "id" in answer.claim ? answer.claim.id : answer.run !== void 0 && "run" in answer.run ? answer.run.run.id : null,
|
|
235
269
|
reservation: answer.reservation,
|
|
236
270
|
stops: answer.stops.length,
|
|
237
271
|
...answer.reason === void 0 ? {} : { reason: answer.reason }
|
|
@@ -239,6 +273,12 @@ async function runFleetTick(ports, memory) {
|
|
|
239
273
|
record(ports, memory);
|
|
240
274
|
if (answer.stops.length > 0) ports.applyStops(answer.stops);
|
|
241
275
|
noteReason(ports, memory, answer);
|
|
276
|
+
if (answer.claim === void 0 && answer.run !== void 0) {
|
|
277
|
+
const started2 = await takeRun(ports, answer.run);
|
|
278
|
+
if (!started2 || held || ports.draining()) return;
|
|
279
|
+
if (ports.provisionEnds() > provisionEnds) return;
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
242
282
|
if (answer.claim === void 0) return;
|
|
243
283
|
if ("malformed" in answer.claim) {
|
|
244
284
|
const { workItemId, appId } = answer.claim;
|
|
@@ -284,6 +324,14 @@ async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
|
284
324
|
record(ports, memory);
|
|
285
325
|
if (answer.stops.length > 0) ports.applyStops(answer.stops);
|
|
286
326
|
noteReason(ports, memory, answer);
|
|
327
|
+
if (answer.claim === void 0 && answer.run !== void 0) {
|
|
328
|
+
const run = "malformed" in answer.run ? answer.run : { id: answer.run.run.id, appId: answer.run.appId };
|
|
329
|
+
const ended = run.id !== void 0 && run.appId !== void 0 ? await ports.endRun({ id: run.id, appId: run.appId }) : false;
|
|
330
|
+
ports.log.error(
|
|
331
|
+
`the gateway handed out run ${run.id ?? "(not named)"} to a call that reported no free room \xB7 ` + (ended ? "the run was ended as failed" : "the run could not be ended, so it stays held until its lease lapses")
|
|
332
|
+
);
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
287
335
|
if (answer.claim === void 0) return;
|
|
288
336
|
const { workItemId, appId } = answer.claim;
|
|
289
337
|
const released = workItemId !== void 0 && appId !== void 0 ? await ports.release({ workItemId, appId }) : false;
|
|
@@ -3040,6 +3088,13 @@ async function fleetHeld(state) {
|
|
|
3040
3088
|
return holdAfterProvisionRetry(state);
|
|
3041
3089
|
}
|
|
3042
3090
|
var CLAIM_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3091
|
+
async function endFleetRun(state, run) {
|
|
3092
|
+
const ended = await retrySend(() => releaseRun(claimCalls(state.config, { appId: run.appId, queue: "run" }), run.id, "failed", state.deps.fetchImpl), {
|
|
3093
|
+
now: state.deps.now,
|
|
3094
|
+
sleep: state.deps.sleep
|
|
3095
|
+
});
|
|
3096
|
+
return ended.ok;
|
|
3097
|
+
}
|
|
3043
3098
|
function fleetClaimIds(ids) {
|
|
3044
3099
|
return ids.filter((id) => CLAIM_ID.test(id));
|
|
3045
3100
|
}
|
|
@@ -3071,6 +3126,17 @@ function fleetPortsOf(state) {
|
|
|
3071
3126
|
});
|
|
3072
3127
|
return attempt.kind === "started" && attempt.provisionFailed !== true;
|
|
3073
3128
|
},
|
|
3129
|
+
startRun: async (answer) => {
|
|
3130
|
+
if (runCommandOf(state.config, state.deps.agents) === void 0) {
|
|
3131
|
+
reportRepeating(state, "the run command", "takes no run of a schedule automation: the agent that runner.commands.implement starts has no command for a run \xB7 set runner.commands.run in the config file");
|
|
3132
|
+
await endFleetRun(state, { id: answer.run.id, appId: answer.appId });
|
|
3133
|
+
return false;
|
|
3134
|
+
}
|
|
3135
|
+
reportRepeating(state, "the run command", void 0);
|
|
3136
|
+
const started = await startClaimedRun(state, answer.run, answer.runKey, { workItemId: answer.run.id, appId: answer.appId, organizationId: answer.organizationId, size: "small" });
|
|
3137
|
+
return started === "started";
|
|
3138
|
+
},
|
|
3139
|
+
endRun: (run) => endFleetRun(state, run),
|
|
3074
3140
|
release: async (claim) => {
|
|
3075
3141
|
const released = await retrySend(() => releaseLease(claimCalls(state.config, { appId: claim.appId }), claim.workItemId, void 0, {}, state.deps.fetchImpl), {
|
|
3076
3142
|
now: state.deps.now,
|
|
@@ -3326,7 +3392,6 @@ async function tryClaimAndStartRun(state) {
|
|
|
3326
3392
|
}
|
|
3327
3393
|
const { isolation } = decision;
|
|
3328
3394
|
reportRepeating(state, "the run command", void 0);
|
|
3329
|
-
const log = logOf(state);
|
|
3330
3395
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3331
3396
|
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
3332
3397
|
const claim = await retrySend(() => claimRun({ config: state.config, isolation, cliVersion, ...hostKey === void 0 ? {} : { hostKey: hostKey.hostKey, signer: hostKey.signer }, fetchImpl: state.deps.fetchImpl }), {
|
|
@@ -3350,7 +3415,10 @@ async function tryClaimAndStartRun(state) {
|
|
|
3350
3415
|
reportRepeating(state, "the run claim", answer.reason);
|
|
3351
3416
|
return "stop";
|
|
3352
3417
|
}
|
|
3353
|
-
|
|
3418
|
+
return await startClaimedRun(state, answer.run, answer.runKey) === "none" ? "none" : "started";
|
|
3419
|
+
}
|
|
3420
|
+
async function startClaimedRun(state, run, runKey, fleet) {
|
|
3421
|
+
const log = logOf(state);
|
|
3354
3422
|
if (claimIsAlreadyRunning(state, run.id)) {
|
|
3355
3423
|
log.line(`#${run.id} skipped: the run is already running here`);
|
|
3356
3424
|
return "none";
|
|
@@ -3358,30 +3426,40 @@ async function tryClaimAndStartRun(state) {
|
|
|
3358
3426
|
const branch = `outerlayer/run-${run.id.slice(0, 8)}`;
|
|
3359
3427
|
const item = { id: run.id, number: run.id, trackerKey: run.id, specRepository: run.repository };
|
|
3360
3428
|
const tag = itemTag({ item: run.id, claimId: run.id });
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
} catch (err) {
|
|
3429
|
+
const starting = startJob(
|
|
3430
|
+
state,
|
|
3431
|
+
item,
|
|
3432
|
+
"run",
|
|
3433
|
+
run.id,
|
|
3434
|
+
runKey,
|
|
3435
|
+
branch,
|
|
3436
|
+
void 0,
|
|
3437
|
+
[{ repository: run.repository.toLowerCase(), branch, primary: true }],
|
|
3438
|
+
fleet,
|
|
3439
|
+
void 0,
|
|
3440
|
+
void 0,
|
|
3441
|
+
void 0,
|
|
3442
|
+
{ instructions: run.instructions, issuesLeft: run.issuesLeft, timeLimitSeconds: run.timeLimitSeconds }
|
|
3443
|
+
);
|
|
3444
|
+
const endStranded = async (err) => {
|
|
3378
3445
|
const stranded = [...state.jobs.values()].find((active) => active.job.claimId === run.id);
|
|
3379
|
-
if (stranded === void 0)
|
|
3446
|
+
if (stranded === void 0) return false;
|
|
3380
3447
|
const reason = `provision failed: ${describeCallFailure(err)}`;
|
|
3381
3448
|
log.error(`${tag} ${reason} \xB7 ending job as failed`);
|
|
3382
3449
|
await endJob(state, stranded, "failed", { stage: "provision", reason });
|
|
3450
|
+
return true;
|
|
3451
|
+
};
|
|
3452
|
+
if (provisionsBesideOthers(state.config)) {
|
|
3453
|
+
endWhenStartFails(starting, endStranded, (line) => log.error(`${tag} ${line}`));
|
|
3454
|
+
return "started";
|
|
3383
3455
|
}
|
|
3384
|
-
|
|
3456
|
+
try {
|
|
3457
|
+
await starting;
|
|
3458
|
+
} catch (err) {
|
|
3459
|
+
if (!await endStranded(err)) throw err;
|
|
3460
|
+
return "provision_failed";
|
|
3461
|
+
}
|
|
3462
|
+
return [...state.jobs.values()].some((active) => active.job.claimId === run.id) ? "started" : "provision_failed";
|
|
3385
3463
|
}
|
|
3386
3464
|
var CLAIM_REFUSAL_CODES = new Set(
|
|
3387
3465
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
@@ -3751,7 +3829,12 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3751
3829
|
await endOnManagedRefusal(state, active, held.refused, { what: held.what, was: "was" });
|
|
3752
3830
|
return;
|
|
3753
3831
|
}
|
|
3754
|
-
const settings = await fetchManagedBuildSettings(claimCalls(state.config, active.job), claimItem(state.config, active.job), {
|
|
3832
|
+
const settings = await fetchManagedBuildSettings(claimCalls(state.config, active.job), claimItem(state.config, active.job), {
|
|
3833
|
+
run: active.job.queue === "run",
|
|
3834
|
+
fetchImpl: state.deps.fetchImpl,
|
|
3835
|
+
now: state.deps.now,
|
|
3836
|
+
sleep: state.deps.sleep
|
|
3837
|
+
});
|
|
3755
3838
|
if (active.ending) return;
|
|
3756
3839
|
if (!settings.ok) {
|
|
3757
3840
|
await endOnManagedRefusal(state, active, settings, { what: "settings", was: "were" });
|
|
@@ -4253,6 +4336,7 @@ async function holdManagedKeys(state, job, dirPath, options) {
|
|
|
4253
4336
|
const labelOf = (provider) => PROVIDERS[provider]?.label ?? provider;
|
|
4254
4337
|
const ask = (provider) => fetchManagedModelKey(claimCalls(state.config, job), claimItem(state.config, job), {
|
|
4255
4338
|
provider,
|
|
4339
|
+
run: job.queue === "run",
|
|
4256
4340
|
fetchImpl: state.deps.fetchImpl,
|
|
4257
4341
|
now: state.deps.now,
|
|
4258
4342
|
sleep: state.deps.sleep,
|
|
@@ -5091,7 +5175,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
5091
5175
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
5092
5176
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
5093
5177
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
5094
|
-
return (await import('./check-
|
|
5178
|
+
return (await import('./check-HABHY27Y.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
5095
5179
|
},
|
|
5096
5180
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
5097
5181
|
log
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-CUPEP5D2.js';
|
|
4
4
|
import './chunk-CNEOUUPF.js';
|
|
5
5
|
import { SETUP_AGENTS, setupAgentLabel } from './chunk-IMGBXZUX.js';
|
|
6
6
|
import { verifiedTrackerNames, TRACKERS } from './chunk-ASAIS67T.js';
|
|
@@ -3961,13 +3961,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
|
|
|
3961
3961
|
if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
|
|
3962
3962
|
`);
|
|
3963
3963
|
}
|
|
3964
|
-
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-
|
|
3964
|
+
const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-N35UZUCM.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
|
|
3965
3965
|
if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
|
|
3966
3966
|
else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
|
|
3967
3967
|
return;
|
|
3968
3968
|
}
|
|
3969
3969
|
await installMachineSkillsForSetup();
|
|
3970
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3970
|
+
const { runInitCommand } = await import('./init-cmd-N35UZUCM.js');
|
|
3971
3971
|
const code = await runInitCommand(
|
|
3972
3972
|
{ json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
|
|
3973
3973
|
{
|
|
@@ -4038,8 +4038,8 @@ build skill. With the config alone, setup names the missing file, why it is
|
|
|
4038
4038
|
missing and the commands that add it, and exits 1.
|
|
4039
4039
|
`
|
|
4040
4040
|
).action(async (opts) => {
|
|
4041
|
-
const { runSetupCommand } = await import('./setup-cmd-
|
|
4042
|
-
const { realSetupDeps } = await import('./setup-wiring-
|
|
4041
|
+
const { runSetupCommand } = await import('./setup-cmd-IBGMGFMJ.js');
|
|
4042
|
+
const { realSetupDeps } = await import('./setup-wiring-O5SJZBTP.js');
|
|
4043
4043
|
const cliBin = resolveCliBin();
|
|
4044
4044
|
const agentWords = runnerHelpWords();
|
|
4045
4045
|
const code = await runSetupCommand(
|
|
@@ -5266,7 +5266,7 @@ a runner build, no row is failed.
|
|
|
5266
5266
|
fail(trackerNumberError("--pr", opts.pr));
|
|
5267
5267
|
return;
|
|
5268
5268
|
}
|
|
5269
|
-
const { runWorkProofsCommand } = await import('./work-proofs-cmd-
|
|
5269
|
+
const { runWorkProofsCommand } = await import('./work-proofs-cmd-EJPH5GY3.js');
|
|
5270
5270
|
await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
|
|
5271
5271
|
});
|
|
5272
5272
|
workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
@@ -5291,7 +5291,7 @@ by a different key is refused; claiming again with the same key extends
|
|
|
5291
5291
|
it. --host is a label only.
|
|
5292
5292
|
`
|
|
5293
5293
|
).action(async (opts) => {
|
|
5294
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
5294
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
|
|
5295
5295
|
try {
|
|
5296
5296
|
await runWorkClaim(opts);
|
|
5297
5297
|
} catch (err) {
|
|
@@ -5311,7 +5311,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
|
|
|
5311
5311
|
lease has expired, or a 403 if a different key holds it.
|
|
5312
5312
|
`
|
|
5313
5313
|
).action(async (opts) => {
|
|
5314
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
5314
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
|
|
5315
5315
|
try {
|
|
5316
5316
|
await runWorkRenew(opts);
|
|
5317
5317
|
} catch (err) {
|
|
@@ -5343,7 +5343,7 @@ applies to a host's lease only. A later tool call in the session
|
|
|
5343
5343
|
takes the lease again.
|
|
5344
5344
|
`
|
|
5345
5345
|
).action(async (opts) => {
|
|
5346
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
5346
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-2WWN4XB7.js');
|
|
5347
5347
|
try {
|
|
5348
5348
|
await runWorkRelease(opts);
|
|
5349
5349
|
} catch (err) {
|
|
@@ -5490,7 +5490,7 @@ function registerRunnerCommands(program2) {
|
|
|
5490
5490
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
5491
5491
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
5492
5492
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
|
|
5493
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5493
|
+
const { start, RunnerStartError } = await import('./loop-YMGQKGIS.js');
|
|
5494
5494
|
const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
|
|
5495
5495
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5496
5496
|
try {
|
|
@@ -5514,8 +5514,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5514
5514
|
`
|
|
5515
5515
|
).action(async () => {
|
|
5516
5516
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
|
|
5517
|
-
const { containerStart, containerStartExit } = await import('./container-start-
|
|
5518
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
5517
|
+
const { containerStart, containerStartExit } = await import('./container-start-R2C2UNL6.js');
|
|
5518
|
+
const { start, RunnerStartError } = await import('./loop-YMGQKGIS.js');
|
|
5519
5519
|
const { RunnerAlreadyRunningError } = await import('./pidfile-J774ZYPM.js');
|
|
5520
5520
|
try {
|
|
5521
5521
|
const outcome = containerStartExit(await containerStart({
|
|
@@ -5539,14 +5539,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5539
5539
|
).action(async (opts) => {
|
|
5540
5540
|
const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
|
|
5541
5541
|
const { runnerDir } = await import('./paths-2NB6OM44.js');
|
|
5542
|
-
const { runUpdateSteps } = await import('./update-steps-
|
|
5542
|
+
const { runUpdateSteps } = await import('./update-steps-U7JDUYLU.js');
|
|
5543
5543
|
const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
|
|
5544
5544
|
process.stdout.write(`${text}
|
|
5545
5545
|
`);
|
|
5546
5546
|
});
|
|
5547
5547
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
5548
5548
|
const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
|
|
5549
|
-
const { runRunnerCheck } = await import('./check-
|
|
5549
|
+
const { runRunnerCheck } = await import('./check-HABHY27Y.js');
|
|
5550
5550
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
5551
5551
|
const result = await runRunnerCheck(configPath);
|
|
5552
5552
|
if (!result.ok) {
|
|
@@ -5580,13 +5580,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
|
|
|
5580
5580
|
}
|
|
5581
5581
|
}
|
|
5582
5582
|
const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
|
|
5583
|
-
if (buildCpusMax !== void 0 && !(await import('./command-
|
|
5583
|
+
if (buildCpusMax !== void 0 && !(await import('./command-GZJHU5QD.js')).cpusAreValid(buildCpusMax)) {
|
|
5584
5584
|
fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
|
|
5585
5585
|
return;
|
|
5586
5586
|
}
|
|
5587
5587
|
try {
|
|
5588
5588
|
if (opts.service === true) {
|
|
5589
|
-
const { installServiceCommand, serviceSuccessText } = await import('./command-
|
|
5589
|
+
const { installServiceCommand, serviceSuccessText } = await import('./command-GZJHU5QD.js');
|
|
5590
5590
|
const result2 = await installServiceCommand({
|
|
5591
5591
|
configPath,
|
|
5592
5592
|
print: opts.print,
|
|
@@ -5641,7 +5641,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
|
|
|
5641
5641
|
return;
|
|
5642
5642
|
}
|
|
5643
5643
|
const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
|
|
5644
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
5644
|
+
const { uninstallServiceCommand } = await import('./command-GZJHU5QD.js');
|
|
5645
5645
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
5646
5646
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
5647
5647
|
`);
|
|
@@ -5674,11 +5674,11 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
|
|
|
5674
5674
|
`
|
|
5675
5675
|
).action(async (opts) => {
|
|
5676
5676
|
const { defaultRunnerConfigPath, loadRunnerConfig, RunnerConfigError } = await import('./config-Y4PCLHUG.js');
|
|
5677
|
-
const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-
|
|
5678
|
-
const { askManagedSandboxes } = await import('./check-
|
|
5679
|
-
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-
|
|
5680
|
-
const { detectMachine } = await import('./machine-
|
|
5681
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
5677
|
+
const { addRunnerAgent, hasRunnerBlock, prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit, removeRunnerBlock, nativeWindowsSandboxRefusal } = await import('./init-RWDQWHCW.js');
|
|
5678
|
+
const { askManagedSandboxes } = await import('./check-HABHY27Y.js');
|
|
5679
|
+
const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-H3CKD4UB.js');
|
|
5680
|
+
const { detectMachine } = await import('./machine-AFXMDA56.js');
|
|
5681
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-ZCNI5SFB.js');
|
|
5682
5682
|
const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-UIHWITLB.js');
|
|
5683
5683
|
const { headlessNames: headlessNames2 } = await import('./runner-agents-YGVCO7DM.js');
|
|
5684
5684
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -5704,7 +5704,7 @@ On a runner that already builds with ${words().agent}, it replaces the credentia
|
|
|
5704
5704
|
return;
|
|
5705
5705
|
}
|
|
5706
5706
|
try {
|
|
5707
|
-
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-
|
|
5707
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-YGLQSRVI.js');
|
|
5708
5708
|
agent = await initAgent({
|
|
5709
5709
|
flag: agent,
|
|
5710
5710
|
handOff: opts.configStdin === true,
|
|
@@ -5886,7 +5886,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
5886
5886
|
let serviceUp = false;
|
|
5887
5887
|
let restart;
|
|
5888
5888
|
if (installedLayout) {
|
|
5889
|
-
const { installServiceCommand } = await import('./command-
|
|
5889
|
+
const { installServiceCommand } = await import('./command-GZJHU5QD.js');
|
|
5890
5890
|
const service = await installServiceCommand({
|
|
5891
5891
|
configPath,
|
|
5892
5892
|
entryPath: process.argv[1] ?? "",
|
|
@@ -5961,7 +5961,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
5961
5961
|
console.error(`the runner's Docker identity could not be stored: ${err instanceof Error ? err.message : String(err)}`);
|
|
5962
5962
|
});
|
|
5963
5963
|
const { imageTargetFor } = await import('./governing-source-66AXUDVZ.js');
|
|
5964
|
-
const { runnerCalls } = await import('./caller-
|
|
5964
|
+
const { runnerCalls } = await import('./caller-WLYRCJKR.js');
|
|
5965
5965
|
const target = await imageTargetFor({ config: loaded === void 0 || loaded.fleet === true ? void 0 : runnerCalls(loaded), repository: opts.repository, fetchImpl: fetch });
|
|
5966
5966
|
if (!target.ok) {
|
|
5967
5967
|
if (opts.json) {
|
|
@@ -6026,7 +6026,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6026
6026
|
});
|
|
6027
6027
|
runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
|
|
6028
6028
|
const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
|
|
6029
|
-
const { requestStop } = await import('./loop-
|
|
6029
|
+
const { requestStop } = await import('./loop-YMGQKGIS.js');
|
|
6030
6030
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6031
6031
|
const { runnerImageVersion } = await import('./image-tag-UI33PH7Y.js');
|
|
6032
6032
|
await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
|
|
@@ -6034,8 +6034,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6034
6034
|
runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
|
|
6035
6035
|
const { builtinKind, defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-Y4PCLHUG.js');
|
|
6036
6036
|
const { jobsDir, runnerDir } = await import('./paths-2NB6OM44.js');
|
|
6037
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
6038
|
-
const { renderStatus } = await import('./status-
|
|
6037
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-YMGQKGIS.js');
|
|
6038
|
+
const { renderStatus } = await import('./status-GC2RXFMJ.js');
|
|
6039
6039
|
const { readHousekeepingRecord } = await import('./record-FQ2LFBZH.js');
|
|
6040
6040
|
const path2 = await import('path');
|
|
6041
6041
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -6118,7 +6118,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
|
|
|
6118
6118
|
});
|
|
6119
6119
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
|
|
6120
6120
|
const { defaultRunnerConfigPath } = await import('./config-Y4PCLHUG.js');
|
|
6121
|
-
const { listJobFiles } = await import('./loop-
|
|
6121
|
+
const { listJobFiles } = await import('./loop-YMGQKGIS.js');
|
|
6122
6122
|
const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-EVHVINVW.js');
|
|
6123
6123
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
6124
6124
|
const jobs = listJobFiles(configPath);
|
|
@@ -4,11 +4,11 @@ import { realLaunchAgentHost } from './chunk-3FCYURWW.js';
|
|
|
4
4
|
import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-KRYJAO4X.js';
|
|
5
5
|
import { installSandboxAgent, uninstallSandboxAgent } from './chunk-57F62BIL.js';
|
|
6
6
|
import './chunk-TXKHD4Q6.js';
|
|
7
|
-
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-
|
|
7
|
+
import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-HT6HMUC3.js';
|
|
8
8
|
import './chunk-RFBEF4AF.js';
|
|
9
9
|
import { currentLink, execStartCommand } from './chunk-CYQSTT5N.js';
|
|
10
|
-
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import { detectMachine, ensureFirecrackerAndJailer } from './chunk-UE6ZEQAL.js';
|
|
11
|
+
import './chunk-BWDUZJ4K.js';
|
|
12
12
|
import './chunk-2QK7L3WV.js';
|
|
13
13
|
import './chunk-2PGI6RDE.js';
|
|
14
14
|
import './chunk-57MLWALQ.js';
|
|
@@ -23,7 +23,7 @@ import './chunk-B4XB5QFD.js';
|
|
|
23
23
|
import './chunk-NXYTICCS.js';
|
|
24
24
|
import './chunk-TQMI335S.js';
|
|
25
25
|
import { writeLaunchAgent, launchAgentPath } from './chunk-LF6MLJCY.js';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-V3T36H4O.js';
|
|
27
27
|
import './chunk-NN33FYXG.js';
|
|
28
28
|
import './chunk-XETFYRKD.js';
|
|
29
29
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-
|
|
4
|
-
import { readOwnContainer } from './chunk-
|
|
5
|
-
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-HNWNJ6QK.js';
|
|
4
|
+
import { readOwnContainer } from './chunk-IOWXXJUM.js';
|
|
5
|
+
import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-UE6ZEQAL.js';
|
|
6
|
+
import './chunk-BWDUZJ4K.js';
|
|
7
7
|
import './chunk-2QK7L3WV.js';
|
|
8
8
|
import './chunk-2PGI6RDE.js';
|
|
9
9
|
import './chunk-57MLWALQ.js';
|
|
@@ -17,7 +17,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
17
17
|
import './chunk-B4XB5QFD.js';
|
|
18
18
|
import { runnerImageVersion, IMAGE_VERSION_VARIABLE } from './chunk-NXYTICCS.js';
|
|
19
19
|
import './chunk-TQMI335S.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-V3T36H4O.js';
|
|
21
21
|
import './chunk-NN33FYXG.js';
|
|
22
22
|
import './chunk-XETFYRKD.js';
|
|
23
23
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperBinaryFor } from './chunk-
|
|
4
|
-
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-
|
|
3
|
+
import { helperBinaryFor } from './chunk-HT6HMUC3.js';
|
|
4
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-QHZZUINX.js';
|
|
5
5
|
import { launcherCheck } from './chunk-RFBEF4AF.js';
|
|
6
6
|
import './chunk-CYQSTT5N.js';
|
|
7
|
-
import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import { credentialVerdict, needsAgentCredential, agentCredentialFromFiles, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-UE6ZEQAL.js';
|
|
8
|
+
import './chunk-BWDUZJ4K.js';
|
|
9
9
|
import './chunk-2QK7L3WV.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
11
11
|
import './chunk-57MLWALQ.js';
|
|
@@ -19,7 +19,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
19
19
|
import './chunk-B4XB5QFD.js';
|
|
20
20
|
import { runnerImageVersion, imageAdvice, readUpdateStatus, imageTag, pullInstruction } from './chunk-NXYTICCS.js';
|
|
21
21
|
import './chunk-TQMI335S.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-V3T36H4O.js';
|
|
23
23
|
import './chunk-NN33FYXG.js';
|
|
24
24
|
import './chunk-XETFYRKD.js';
|
|
25
25
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { builtOf, checksIn, makeRecorder, readDefinitions, timeoutAfter } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import './chunk-B4XB5QFD.js';
|
|
16
16
|
import './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-EJNVXLNB.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-PUFMMGLY.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-KDLYNUNH.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { PLACEHOLDER_MARKER, RunnerInitError, addRunnerAgent, hasRunnerBlock, isPlaceholderCommand, nativeWindowsSandboxRefusal, prepareRunnerInit, readConfigObject, removeRunnerBlock, runRunnerInit, writeRunnerInit } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import './chunk-B4XB5QFD.js';
|
|
16
16
|
import './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { RunnerInitError, readConfigObject } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { RunnerInitError, readConfigObject } from './chunk-UE6ZEQAL.js';
|
|
5
|
+
import './chunk-BWDUZJ4K.js';
|
|
6
6
|
import './chunk-2QK7L3WV.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-57MLWALQ.js';
|
|
@@ -17,7 +17,7 @@ import './chunk-B4XB5QFD.js';
|
|
|
17
17
|
import './chunk-NXYTICCS.js';
|
|
18
18
|
import './chunk-TQMI335S.js';
|
|
19
19
|
import { writeLaunchAgent } from './chunk-LF6MLJCY.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-V3T36H4O.js';
|
|
21
21
|
import './chunk-NN33FYXG.js';
|
|
22
22
|
import './chunk-XETFYRKD.js';
|
|
23
23
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RunnerInitError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { RunnerInitError } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import './chunk-B4XB5QFD.js';
|
|
16
16
|
import './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { applyShellFunctionFlag, runInitCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { applyShellFunctionFlag, runInitCommand } from './chunk-H7L6XTQQ.js';
|
|
4
|
+
import './chunk-CUPEP5D2.js';
|
|
5
5
|
import './chunk-CNEOUUPF.js';
|
|
6
6
|
import './chunk-UWRXRSCE.js';
|
|
7
7
|
import './chunk-ASAIS67T.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-
|
|
3
|
+
export { LAPSED_REASON, RunnerStartError, applyComments, endWhenStartFails, fleetKeepalive, leaseTimeLeftFor, listJobFiles, listedOf, logUnusableHelper, prepareSession, probeBuild, probeCredentials, provisionsBesideOthers, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-WXGEDDUO.js';
|
|
4
4
|
import './chunk-6YBI24YT.js';
|
|
5
5
|
import './chunk-E7R2GIAW.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HNWNJ6QK.js';
|
|
7
|
+
import './chunk-IOWXXJUM.js';
|
|
8
8
|
import './chunk-TXKHD4Q6.js';
|
|
9
9
|
import './chunk-GFXXAXPF.js';
|
|
10
10
|
import './chunk-AVYR5USX.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-QHZZUINX.js';
|
|
12
12
|
import './chunk-CYQSTT5N.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import './chunk-UE6ZEQAL.js';
|
|
14
|
+
import './chunk-BWDUZJ4K.js';
|
|
15
15
|
import './chunk-2QK7L3WV.js';
|
|
16
16
|
import './chunk-2PGI6RDE.js';
|
|
17
17
|
import './chunk-57MLWALQ.js';
|
|
@@ -25,7 +25,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
25
25
|
import './chunk-B4XB5QFD.js';
|
|
26
26
|
import './chunk-NXYTICCS.js';
|
|
27
27
|
import './chunk-TQMI335S.js';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-V3T36H4O.js';
|
|
29
29
|
import './chunk-NN33FYXG.js';
|
|
30
30
|
import './chunk-XETFYRKD.js';
|
|
31
31
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import './chunk-B4XB5QFD.js';
|
|
16
16
|
import './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readConfigObject, RunnerInitError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { readConfigObject, RunnerInitError } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import './chunk-B4XB5QFD.js';
|
|
16
16
|
import './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { SETUP_BRANCH } from './chunk-
|
|
3
|
+
import { SETUP_BRANCH } from './chunk-M4V46N7A.js';
|
|
4
4
|
import { chooseSetupAgent, setupAgentProviders, setupAgentLabel, setupAgentLine } from './chunk-IMGBXZUX.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-UE6ZEQAL.js';
|
|
6
|
+
import './chunk-BWDUZJ4K.js';
|
|
7
7
|
import './chunk-2QK7L3WV.js';
|
|
8
8
|
import './chunk-2PGI6RDE.js';
|
|
9
9
|
import './chunk-57MLWALQ.js';
|
|
@@ -17,7 +17,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
17
17
|
import './chunk-B4XB5QFD.js';
|
|
18
18
|
import './chunk-NXYTICCS.js';
|
|
19
19
|
import './chunk-TQMI335S.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-V3T36H4O.js';
|
|
21
21
|
import './chunk-NN33FYXG.js';
|
|
22
22
|
import './chunk-XETFYRKD.js';
|
|
23
23
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runInitCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { runInitCommand } from './chunk-H7L6XTQQ.js';
|
|
4
|
+
import './chunk-CUPEP5D2.js';
|
|
5
5
|
import './chunk-CNEOUUPF.js';
|
|
6
6
|
import './chunk-UWRXRSCE.js';
|
|
7
|
-
import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-
|
|
7
|
+
import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-M4V46N7A.js';
|
|
8
8
|
import { sessionAgentsIn } from './chunk-IMGBXZUX.js';
|
|
9
|
-
import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-UE6ZEQAL.js';
|
|
10
|
+
import './chunk-BWDUZJ4K.js';
|
|
11
11
|
import './chunk-2QK7L3WV.js';
|
|
12
12
|
import './chunk-2PGI6RDE.js';
|
|
13
13
|
import './chunk-57MLWALQ.js';
|
|
@@ -21,7 +21,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
21
21
|
import './chunk-B4XB5QFD.js';
|
|
22
22
|
import './chunk-NXYTICCS.js';
|
|
23
23
|
import './chunk-TQMI335S.js';
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-V3T36H4O.js';
|
|
25
25
|
import './chunk-NN33FYXG.js';
|
|
26
26
|
import './chunk-XETFYRKD.js';
|
|
27
27
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import { jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
16
16
|
import { pullInstruction } from './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-IOWXXJUM.js';
|
|
4
|
+
import './chunk-UE6ZEQAL.js';
|
|
5
|
+
import './chunk-BWDUZJ4K.js';
|
|
6
6
|
import './chunk-2QK7L3WV.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-57MLWALQ.js';
|
|
@@ -16,7 +16,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
16
16
|
import './chunk-B4XB5QFD.js';
|
|
17
17
|
import './chunk-NXYTICCS.js';
|
|
18
18
|
import './chunk-TQMI335S.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-V3T36H4O.js';
|
|
20
20
|
import './chunk-NN33FYXG.js';
|
|
21
21
|
import './chunk-XETFYRKD.js';
|
|
22
22
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
|
|
4
4
|
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-ASAIS67T.js';
|
|
5
5
|
export { WorkCommandError } from './chunk-ASAIS67T.js';
|
|
6
6
|
import './chunk-XGXGS54U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-
|
|
3
|
+
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-K476DEC7.js';
|
|
4
4
|
import './chunk-2QK7L3WV.js';
|
|
5
5
|
import './chunk-ASAIS67T.js';
|
|
6
6
|
import './chunk-XGXGS54U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-
|
|
3
|
+
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-K476DEC7.js';
|
|
4
4
|
import { runWorkComment } from './chunk-OTZ6WU4G.js';
|
|
5
5
|
import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-IBWK2WBX.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0-next.20261119011332",
|
|
4
4
|
"description": "OuterLayer CLI — commands: setup, init, claude, opencode, codex, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|