@outerlayer/cli 0.36.0-next.20261103032948 → 0.36.0-next.20261103103134
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-DZZZH3SE.js +40 -0
- package/dist/{agent-subcommand-DZWYGCPN.js → agent-subcommand-WRHH6SRD.js} +5 -5
- package/dist/{bridge-RY2CLUYP.js → bridge-GZSZQGLI.js} +8 -7
- package/dist/{build-CV6IUJWD.js → build-UKZ5RPRR.js} +14 -13
- package/dist/{build-disk-ITPCE4ME.js → build-disk-3HOXULLP.js} +12 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-TP6RBPGB.js → builder-QEK4GIRY.js} +11 -10
- package/dist/caller-WSMJJSFL.js +23 -0
- package/dist/{check-HJ3CKWDZ.js → check-D6NMQ6LP.js} +61 -60
- package/dist/{chunk-ORU76DHF.js → chunk-2JWLK2TU.js} +1 -1
- package/dist/{chunk-IVAX5RVX.js → chunk-2QIK3JRV.js} +1 -1
- package/dist/{chunk-HWIV4MF6.js → chunk-2SBNZ4EC.js} +1 -1
- package/dist/{chunk-ZEILNR5Q.js → chunk-2W5C47AE.js} +1 -1
- package/dist/{chunk-4XYEPTZP.js → chunk-3XEYA3QF.js} +3 -3
- package/dist/{chunk-55RNQFPE.js → chunk-42X6CTBI.js} +4 -4
- package/dist/{chunk-VNYAJEKO.js → chunk-4MLH5MDB.js} +5 -5
- package/dist/{chunk-YEETN7NH.js → chunk-4MN4BBKZ.js} +7 -7
- package/dist/{chunk-ECUP2QQH.js → chunk-52Z7AOZ2.js} +238 -193
- package/dist/{chunk-EI22245K.js → chunk-54ERDQ3O.js} +77 -9
- package/dist/{chunk-6DOYJN44.js → chunk-54PQNYA7.js} +3 -3
- package/dist/{chunk-GK7QN7K6.js → chunk-6J3QWXTA.js} +4 -4
- package/dist/{chunk-ZIRMH464.js → chunk-6UI4ELNA.js} +62 -53
- package/dist/{chunk-QTU6GW2M.js → chunk-7UYXSF62.js} +8 -227
- package/dist/{chunk-CSWT3PDT.js → chunk-B5UBTIIP.js} +5 -5
- package/dist/{chunk-WEHUIYTR.js → chunk-B5VKRKLJ.js} +1 -1
- package/dist/{chunk-TQDYP45H.js → chunk-BEJJJZXF.js} +4 -4
- package/dist/{chunk-CJNZ2FIW.js → chunk-BZQ3S24G.js} +1 -1
- package/dist/{chunk-LWKV36FC.js → chunk-CDTBXABP.js} +2 -2
- package/dist/{chunk-UZ5SDO7Y.js → chunk-DEZSNJSE.js} +1 -1
- package/dist/{chunk-AUZAQL7C.js → chunk-DWYQKLCL.js} +1 -1
- package/dist/{chunk-OR2TAE22.js → chunk-EHS3HEB6.js} +4 -4
- package/dist/{chunk-MHRZVSXP.js → chunk-EUWTGCK5.js} +1 -1
- package/dist/{chunk-DQJCVLYE.js → chunk-FLQL6ZIG.js} +1 -1
- package/dist/{chunk-A76SNTAM.js → chunk-GPBTTHK3.js} +1 -1
- package/dist/{chunk-CGVYMX4N.js → chunk-GWJUEJR4.js} +7 -7
- package/dist/{chunk-EKCOXTS2.js → chunk-HO4DPX5N.js} +1 -1
- package/dist/{chunk-HBE75JAU.js → chunk-HQBKKYYQ.js} +5 -5
- package/dist/{chunk-PEKITBZX.js → chunk-HR4PJLOO.js} +1 -1
- package/dist/{chunk-WNQGSAUE.js → chunk-IDYLPN4X.js} +1 -1
- package/dist/chunk-IEDO26G4.js +243 -0
- package/dist/{chunk-W2ZZ6KQP.js → chunk-IEVARJ6G.js} +2 -2
- package/dist/{chunk-DBXWEZ3L.js → chunk-J4NJWTNO.js} +5 -5
- package/dist/{chunk-WFRYPYPT.js → chunk-JD5EVW6Y.js} +1 -1
- package/dist/{chunk-5SDUOS4G.js → chunk-JMM3L5RG.js} +5 -5
- package/dist/{chunk-RWQ5XKRH.js → chunk-K26KMWU4.js} +10 -10
- package/dist/{chunk-VI233QH2.js → chunk-K373UCEV.js} +1 -1
- package/dist/{chunk-LEQWPWZA.js → chunk-KHJPRTOW.js} +1 -1
- package/dist/{chunk-LPKNESZ5.js → chunk-KVO4MJWS.js} +21 -10
- package/dist/{chunk-AT6RLTDF.js → chunk-L3SHPR2M.js} +1 -1
- package/dist/{chunk-CIG5RZ7Z.js → chunk-LDKF6B2R.js} +4 -3
- package/dist/{chunk-J4M35XQA.js → chunk-LISVY7JZ.js} +8 -8
- package/dist/{chunk-AXGTLADG.js → chunk-LV4IDDD3.js} +8 -13
- package/dist/{chunk-CULBCABP.js → chunk-LXXP5HRJ.js} +4 -4
- package/dist/{chunk-SSYFNK4W.js → chunk-MPVTZLOM.js} +4 -4
- package/dist/{chunk-ARAH3W3L.js → chunk-NDCN3R5C.js} +3 -3
- package/dist/{chunk-A4QJ2E4D.js → chunk-NH4EZRBM.js} +7 -7
- package/dist/{chunk-5OQTDTWB.js → chunk-NMMGRG5V.js} +6 -6
- package/dist/{chunk-RW6TM4OU.js → chunk-NOLS2G2W.js} +1 -1
- package/dist/{chunk-M6FMJXYO.js → chunk-NQYTUVZR.js} +1 -1
- package/dist/{chunk-JXAUDSTQ.js → chunk-OGG5ELXF.js} +5 -4
- package/dist/{chunk-UYPE2MYB.js → chunk-OPEZVPF7.js} +3 -3
- package/dist/{chunk-UWYU46GF.js → chunk-OV4XTV5M.js} +2 -2
- package/dist/{chunk-FQ6ZKZCH.js → chunk-P4Q6M6PI.js} +1 -1
- package/dist/{chunk-B3XUAKJI.js → chunk-PDRWRFB2.js} +4 -4
- package/dist/{chunk-MHIXBZDZ.js → chunk-PYK6GCCU.js} +6 -6
- package/dist/{chunk-LLZ2CX4M.js → chunk-QJKW4MKH.js} +6 -1
- package/dist/{chunk-XEZO7VQH.js → chunk-QVOU2QUR.js} +2 -2
- package/dist/{chunk-GVRD3MBC.js → chunk-R63T46P7.js} +3 -3
- package/dist/{chunk-4EJH2EE4.js → chunk-S7YU25AF.js} +34 -30
- package/dist/{chunk-EE3FR5JP.js → chunk-SYKEQT63.js} +6 -6
- package/dist/{chunk-66GYPUUN.js → chunk-T5I2H7TJ.js} +1 -1
- package/dist/{chunk-3IEVIKMC.js → chunk-TWGSXBZM.js} +3 -3
- package/dist/{chunk-7VUTGCGH.js → chunk-U6EACUUG.js} +1 -1
- package/dist/{chunk-U3SXAKQZ.js → chunk-U7MLC45I.js} +6 -6
- package/dist/{chunk-MMCVDHDX.js → chunk-UZSMDU4U.js} +3 -3
- package/dist/{chunk-SLWDYHO5.js → chunk-VMPVQE4D.js} +2 -2
- package/dist/{chunk-NKT32ZHB.js → chunk-VST3BWL4.js} +9 -9
- package/dist/{chunk-NNTORDVS.js → chunk-WAGHPZP2.js} +1 -1
- package/dist/{chunk-FINJC6BS.js → chunk-WZOWXDDM.js} +20 -14
- package/dist/{chunk-RT7R4COY.js → chunk-XAMTNTOH.js} +9 -8
- package/dist/{chunk-D4MQRI56.js → chunk-XW2KXLZB.js} +17 -17
- package/dist/{chunk-ASR6TU43.js → chunk-YCBVYTFI.js} +1 -1
- package/dist/{chunk-6V6ONATO.js → chunk-YEZGNCSK.js} +2 -2
- package/dist/{chunk-TE3Q6LVL.js → chunk-ZE2JJQPC.js} +1 -1
- package/dist/{chunk-757WX4YX.js → chunk-ZZ4WIQRF.js} +6 -5
- package/dist/{claude-launcher-5I7TNYQJ.js → claude-launcher-CPSCSL6U.js} +9 -9
- package/dist/{cli-4F4XTBBF.js → cli-TZW5XJRE.js} +194 -162
- package/dist/{command-ABIQ63NE.js → command-5VOKN4HI.js} +54 -53
- package/dist/{config-4W4MXVZR.js → config-23EBIGW4.js} +13 -12
- package/dist/{connect-cmd-I7TUU2BM.js → connect-cmd-GEBIOBQQ.js} +12 -11
- package/dist/{container-start-5EFWPLEB.js → container-start-NJGGT4E3.js} +59 -54
- package/dist/{context-cleanup-7XUQDCJ5.js → context-cleanup-I7FLIV5A.js} +5 -5
- package/dist/{context-show-cmd-6U42IUEX.js → context-show-cmd-CSPMSRHX.js} +13 -12
- package/dist/{control-plane-launch-SLIYO4BZ.js → control-plane-launch-KC7NUNYQ.js} +16 -15
- package/dist/{demo-record-cmd-HBFGZHVK.js → demo-record-cmd-ZW6U2LAV.js} +9 -8
- package/dist/{demo-voice-cmd-ZINZNDWR.js → demo-voice-cmd-IDW3QX3E.js} +22 -21
- package/dist/{dist-AIMCXBLZ.js → dist-LOBYZWOU.js} +1 -1
- package/dist/docker-2VHMWLNK.js +20 -0
- package/dist/{doctor-ZTOJ53SA.js → doctor-ZAB6SDWF.js} +54 -53
- package/dist/{emit-artifact-cmd-DNA5R6C2.js → emit-artifact-cmd-2ZHPNLPG.js} +21 -20
- package/dist/{emit-cmd-OGNFGQF6.js → emit-cmd-UN7HGZC5.js} +8 -8
- package/dist/{emit-criteria-cmd-UGLCECVP.js → emit-criteria-cmd-TUXGD7CW.js} +15 -14
- package/dist/{emit-demo-cmd-GBNYC5GU.js → emit-demo-cmd-4YMYB556.js} +22 -21
- package/dist/{emit-finding-cmd-66OOJS5Q.js → emit-finding-cmd-O2NN22XF.js} +15 -14
- package/dist/{emit-result-cmd-3BAYNI6R.js → emit-result-cmd-VRITADX2.js} +20 -19
- package/dist/{emit-step-cmd-S2ZISEQS.js → emit-step-cmd-LGNBZTWJ.js} +15 -14
- package/dist/{exec-client-PISQ53KG.js → exec-client-NXTXAVHI.js} +9 -8
- package/dist/find-unit-RYYTX2O5.js +24 -0
- package/dist/{findings-cmd-BPYW5IMS.js → findings-cmd-RJD7KTSW.js} +15 -14
- package/dist/{fleet-readiness-XNWEAVW7.js → fleet-readiness-RIO2SWC7.js} +15 -14
- package/dist/{governing-source-GS73BIQ3.js → governing-source-CZSYE7QE.js} +21 -20
- package/dist/guest-init-FLSL5RI7.js +20 -0
- package/dist/{hook-fast-IXIYJKAN.js → hook-fast-HYRZAY5K.js} +4 -4
- package/dist/{hook-install-LHVMFLO6.js → hook-install-CSHKOLWT.js} +5 -5
- package/dist/{hook-wrap-fast-FCZEUJKT.js → hook-wrap-fast-ITUBSHEF.js} +3 -3
- package/dist/host-checks-KLMATCMD.js +79 -0
- package/dist/host-key-CPAEQSNU.js +18 -0
- package/dist/{image-tag-U4YQCHRG.js → image-tag-MAMFM4SO.js} +9 -8
- package/dist/index.js +6 -6
- package/dist/init-BB2LERCZ.js +79 -0
- package/dist/{init-WGLH27Q3.js → init-G7D7ABKV.js} +50 -49
- package/dist/{init-cmd-N7MZ3LA3.js → init-cmd-5GHIMFSS.js} +30 -29
- package/dist/{init-update-5RY6XB27.js → init-update-TQH2Q7IZ.js} +24 -23
- package/dist/install-cmd-PVQ5M5NM.js +21 -0
- package/dist/{layout-3YKZWTPE.js → layout-2DF7ON2F.js} +5 -5
- package/dist/{logs-U7QU7KPL.js → logs-BM644OOJ.js} +8 -7
- package/dist/loop-7MAMONQJ.js +90 -0
- package/dist/machine-HDHSI7WF.js +79 -0
- package/dist/{machine-skills-4UHKD4HT.js → machine-skills-O7XAZYLN.js} +5 -5
- package/dist/{mcp-install-cmd-SQV4UZD6.js → mcp-install-cmd-METCXTTR.js} +5 -5
- package/dist/{mcp-serve-cmd-LRNO35OS.js → mcp-serve-cmd-CTKBLSM6.js} +10 -9
- package/dist/{paths-TH2PHIEY.js → paths-VIBBLJ2W.js} +8 -7
- package/dist/pending-RXJKH4AC.js +18 -0
- package/dist/{pidfile-CI7F3737.js → pidfile-PAX5XHQJ.js} +9 -8
- package/dist/{record-OFRT5V22.js → record-QPXOUL6F.js} +9 -8
- package/dist/{relay-NCWAF6NQ.js → relay-KASDMV3R.js} +6 -5
- package/dist/{relay-protocol-Y3HGIACN.js → relay-protocol-7HSCZC5H.js} +6 -5
- package/dist/runner-agents-WUMCXVS2.js +14 -0
- package/dist/runner-env-R2C5LYCX.js +24 -0
- package/dist/{runner-identity-QS26JIKL.js → runner-identity-UDPLWT7I.js} +11 -10
- package/dist/{runner-key-OKTRAUHO.js → runner-key-JGIDJTHH.js} +49 -48
- package/dist/{session-sender-UB6GJWZS.js → session-sender-4QKSVX5Z.js} +21 -20
- package/dist/{shell-function-H75JWHLA.js → shell-function-FTY7SSAJ.js} +2 -2
- package/dist/{spec-cmd-B3Y2JF4M.js → spec-cmd-QAOTQPI6.js} +16 -15
- package/dist/{starter-pack-3BXEKGIH.js → starter-pack-LAPDUG6E.js} +6 -6
- package/dist/state-OTWJW4O7.js +18 -0
- package/dist/{status-MPPZT5KS.js → status-OKZHXEYB.js} +49 -48
- package/dist/{statusline-fast-BTJSU3MB.js → statusline-fast-7V7U4SI4.js} +3 -3
- package/dist/{sync-cmd-YUWBZNQD.js → sync-cmd-FLNYVXAE.js} +20 -19
- package/dist/update-steps-W56ITCKQ.js +80 -0
- package/dist/{watch-GOWRN3BK.js → watch-4V7FZI5R.js} +20 -19
- package/dist/{work-claim-cmd-CHCADUYP.js → work-claim-cmd-E2D4YHCS.js} +22 -21
- package/dist/{work-cmd-WUJXUXHP.js → work-cmd-VD362634.js} +15 -14
- package/dist/{work-comment-cmd-E3GBVCQX.js → work-comment-cmd-EUI5IOQI.js} +18 -17
- package/dist/{work-demo-cmd-YOLKT6ZD.js → work-demo-cmd-MGL3U6ZF.js} +15 -14
- package/dist/{work-logs-cmd-SHWLRI4D.js → work-logs-cmd-QAJG75DG.js} +15 -14
- package/dist/{work-open-pr-cmd-LHMYF4CX.js → work-open-pr-cmd-SXVSMG44.js} +16 -15
- package/dist/{work-pr-cmd-PAYHF664.js → work-pr-cmd-WUIMC7XB.js} +15 -14
- package/dist/{work-proofs-cmd-VRZ5EOTH.js → work-proofs-cmd-AAHTMSCF.js} +17 -16
- package/dist/{work-proofs-record-ECHOY77G.js → work-proofs-record-LLUEXW7I.js} +26 -25
- package/dist/{work-stop-cmd-Z6RMU44Y.js → work-stop-cmd-RZLGWQJ5.js} +15 -14
- package/package.json +1 -1
- package/dist/agent-setup-PCMTLHTT.js +0 -39
- package/dist/caller-6X73FHOM.js +0 -22
- package/dist/docker-5L7BRY2J.js +0 -19
- package/dist/find-unit-QQP7HH3R.js +0 -23
- package/dist/guest-init-7OVIIKLM.js +0 -19
- package/dist/host-checks-XVHIR3EK.js +0 -78
- package/dist/host-key-3FKGWSHL.js +0 -17
- package/dist/init-V6ESW3K6.js +0 -78
- package/dist/install-cmd-6GXTY4UW.js +0 -20
- package/dist/loop-XM24ZVOO.js +0 -89
- package/dist/machine-X2Z5RLVD.js +0 -78
- package/dist/pending-EZKNEM2I.js +0 -17
- package/dist/runner-env-PO3FMLIW.js +0 -23
- package/dist/state-BV5BZMTE.js +0 -17
- package/dist/update-steps-UNOE66M4.js +0 -79
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-T5I2H7TJ.js';
|
|
4
|
+
import { autoConnect } from './chunk-UZSMDU4U.js';
|
|
5
|
+
import { workPageUrl } from './chunk-PDRWRFB2.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-HR4PJLOO.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-KHJPRTOW.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -376,6 +376,12 @@ async function postJsonWithRetry(url, path, apiKey, appId, body, fetchImpl, retr
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
+
function freshDiskLine(asked, data) {
|
|
380
|
+
if (!asked) return "";
|
|
381
|
+
return data.fresh === true ? `
|
|
382
|
+
the build starts from a fresh disk` : `
|
|
383
|
+
${C.yellow}!${C.reset} the gateway did not record the fresh-disk request, so the build may start from the earlier job's disk`;
|
|
384
|
+
}
|
|
379
385
|
function tokenWarning(data) {
|
|
380
386
|
const tokens = data.repositoryTokens;
|
|
381
387
|
if (tokens === void 0 || tokens === null || tokens.earnable !== false) return "";
|
|
@@ -420,6 +426,9 @@ async function runWorkBuild(opts) {
|
|
|
420
426
|
"--instructions applies to host builds: with --local you build the item yourself, so give your instructions in your own session"
|
|
421
427
|
);
|
|
422
428
|
}
|
|
429
|
+
if (opts.local && opts.fresh === true) {
|
|
430
|
+
throw new WorkCommandError("--fresh applies to host builds: with --local you build the item yourself, so no kept disk is restored");
|
|
431
|
+
}
|
|
423
432
|
const runner = parseRunnerKind(opts.runner);
|
|
424
433
|
if (opts.local && runner !== void 0) {
|
|
425
434
|
throw new WorkCommandError("--runner applies to host builds: with --local you build the item yourself, so no runner takes it");
|
|
@@ -451,10 +460,12 @@ async function runWorkBuild(opts) {
|
|
|
451
460
|
return { data: data2, output: output2 };
|
|
452
461
|
}
|
|
453
462
|
const instructions = opts.instructions !== void 0 ? { instructions: opts.instructions } : {};
|
|
454
|
-
const
|
|
463
|
+
const fresh = opts.fresh === true ? { fresh: true } : {};
|
|
464
|
+
const body = itemNumber !== void 0 ? { workItemId: String(itemNumber), note: opts.note, ...instructions, ...fresh, runner, ...facts } : {
|
|
455
465
|
subject: resolveWorkSubject({ issue: opts.issue, tracker: opts.tracker, repo: opts.repo, cwd }),
|
|
456
466
|
note: opts.note,
|
|
457
467
|
...instructions,
|
|
468
|
+
...fresh,
|
|
458
469
|
runner,
|
|
459
470
|
...facts
|
|
460
471
|
};
|
|
@@ -466,7 +477,7 @@ async function runWorkBuild(opts) {
|
|
|
466
477
|
});
|
|
467
478
|
const page = itemPageUrl(home, cwd, appId, data.workItemId, data.number);
|
|
468
479
|
const output = opts.json ? JSON.stringify(data) : `${C.green}\u2713${C.reset} build requested ${C.dim}\xB7${C.reset} ${itemLabel(data)}${"subject" in body ? ` (${issueLabel(body.subject)})` : ""}${runnerLabel(data, runner)} ${C.dim}\xB7${C.reset} by ${data.attestor}` + (page !== void 0 ? `
|
|
469
|
-
${page}` : "") + tokenWarning(data);
|
|
480
|
+
${page}` : "") + freshDiskLine(opts.fresh === true, data) + tokenWarning(data);
|
|
470
481
|
if (!opts.quiet) process.stdout.write(output + "\n");
|
|
471
482
|
return { data, output };
|
|
472
483
|
}
|
|
@@ -475,7 +486,7 @@ async function runWorkLinkSession(opts) {
|
|
|
475
486
|
return await linkSession(opts);
|
|
476
487
|
} catch (err) {
|
|
477
488
|
if (opts.logFailures) {
|
|
478
|
-
const { logHookError } = await import('./hook-fast-
|
|
489
|
+
const { logHookError } = await import('./hook-fast-HYRZAY5K.js');
|
|
479
490
|
const reason = err instanceof Error ? err.message : String(err);
|
|
480
491
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
481
492
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-7UYXSF62.js';
|
|
4
|
+
import { strippedVariables } from './chunk-IEDO26G4.js';
|
|
5
|
+
import { defaultAgents } from './chunk-54ERDQ3O.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-QJKW4MKH.js';
|
|
6
7
|
import { existsSync, unlinkSync, chmodSync } from 'fs';
|
|
7
8
|
import { request as request$1, createServer } from 'http';
|
|
8
9
|
import { request } from 'https';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { buildRefusalReason } from './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-KVO4MJWS.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-J4NJWTNO.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-YEZGNCSK.js';
|
|
6
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-3XEYA3QF.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-HR4PJLOO.js';
|
|
8
|
+
import { signerFor } from './chunk-KHJPRTOW.js';
|
|
9
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-L3SHPR2M.js';
|
|
10
|
+
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-OV4XTV5M.js';
|
|
11
11
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
12
12
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
13
13
|
import { relative, join, dirname } from 'path';
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-ZZ4WIQRF.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-L3SHPR2M.js';
|
|
5
|
+
import { withoutCredentialLines, parseRunnerEnv } from './chunk-7UYXSF62.js';
|
|
6
|
+
import { headlessNames, runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, forwardedVariables } from './chunk-IEDO26G4.js';
|
|
7
|
+
import { defaultAgents } from './chunk-54ERDQ3O.js';
|
|
7
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
8
9
|
import { join, dirname } from 'path';
|
|
9
10
|
|
|
10
11
|
createRequire(import.meta.url);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
implement: 'claude -p "/build" --permission-mode bypassPermissions',
|
|
14
|
-
amend: 'claude -p "/outerlayer-amend" --permission-mode bypassPermissions'
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
function isAgentName(name) {
|
|
18
|
-
return Object.hasOwn(AGENT_COMMANDS, name);
|
|
12
|
+
function isAgentName(name, agents = defaultAgents()) {
|
|
13
|
+
return headlessNames(agents).includes(name);
|
|
19
14
|
}
|
|
20
15
|
var RunnerEnvError = class extends Error {
|
|
21
16
|
};
|
|
@@ -75,4 +70,4 @@ function restartForCredential(state, unitName = DEFAULT_UNIT_NAME, agents = defa
|
|
|
75
70
|
return `The service ${unitName} loads ${file} only when it starts. Restart it so it uses the stored credential: sudo systemctl restart ${unitName}`;
|
|
76
71
|
}
|
|
77
72
|
|
|
78
|
-
export {
|
|
73
|
+
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-T5I2H7TJ.js';
|
|
5
|
+
import { autoConnect } from './chunk-UZSMDU4U.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-F3T5QJ24.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-HR4PJLOO.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
13
13
|
import { StepNameSchema, StepBodySchema } from './chunk-WUKLQWGY.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
6
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-LDKF6B2R.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-7UYXSF62.js';
|
|
5
|
+
import { defaultAgents } from './chunk-54ERDQ3O.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-QJKW4MKH.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-52Z7AOZ2.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-EUWTGCK5.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-2VHMWLNK.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-GPBTTHK3.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-KVO4MJWS.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-HR4PJLOO.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
12
12
|
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-WUKLQWGY.js';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-KLMATCMD.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-KLMATCMD.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-LLUEXW7I.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,17 +1,17 @@
|
|
|
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-K26KMWU4.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-T5I2H7TJ.js';
|
|
6
|
+
import { autoConnect } from './chunk-UZSMDU4U.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-F3T5QJ24.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-HR4PJLOO.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
15
15
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-WUKLQWGY.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-54ERDQ3O.js';
|
|
5
5
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
6
6
|
import { join, dirname, relative, sep } from 'path';
|
|
7
7
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-LDKF6B2R.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-7UYXSF62.js';
|
|
5
|
+
import { jobAgent, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-IEDO26G4.js';
|
|
6
|
+
import { defaultAgents } from './chunk-54ERDQ3O.js';
|
|
6
7
|
|
|
7
8
|
createRequire(import.meta.url);
|
|
8
9
|
|
|
@@ -45,7 +46,7 @@ function plain(name, value, allowed) {
|
|
|
45
46
|
function toolsDockerfile(parts, agents = defaultAgents()) {
|
|
46
47
|
const recipeImage = plain("the recipe image", parts.recipeImage, /^[A-Za-z0-9_.:@/-]+$/);
|
|
47
48
|
const nodeImage = plain("the Node image", parts.nodeImage, /^[A-Za-z0-9_.:@/-]+$/);
|
|
48
|
-
const agent =
|
|
49
|
+
const agent = jobAgent(void 0, agents);
|
|
49
50
|
const image = parts.image ?? agent?.adapter.image;
|
|
50
51
|
const agentName = parts.agentName ?? (parts.image === void 0 ? agent?.descriptor.label : parts.image.command) ?? "agent";
|
|
51
52
|
const version = plain(`the ${agentName} version`, parts.claudeCodeVersion, /^[A-Za-z0-9.+-]+$/);
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-ZE2JJQPC.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-P4Q6M6PI.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-L3SHPR2M.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -25,4 +25,4 @@ var SHIM_SCRIPT = `#!/bin/sh
|
|
|
25
25
|
exec outerlayer ${LEGACY.legacy.subcommand} "$@"
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
|
-
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE,
|
|
28
|
+
export { CONTROL_PLANE_DIR_VARIABLE, GOVERNANCE_VARIABLE, SHIM_SCRIPT, SUPPORTED_CONTROL_PLANE_LAYOUT, versionAtLeast };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L3SHPR2M.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-QVOU2QUR.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-A6RI6KTI.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-HR4PJLOO.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
11
|
-
import { remoteLookupFailed } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-54ERDQ3O.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-WZOWXDDM.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-QVOU2QUR.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-HR4PJLOO.js';
|
|
6
|
+
import { versionAtLeast } from './chunk-OV4XTV5M.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-U6EACUUG.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-DEZSNJSE.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-54ERDQ3O.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -84,4 +84,9 @@ var PROVIDERS = {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
// ../agents/src/server.ts
|
|
88
|
+
function homeRelative(folder) {
|
|
89
|
+
return folder.replace(/^~\//, "");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { CLAUDE_CODE, LEGACY_AGENT, NATIVE_AGENTS, PROVIDERS, homeRelative };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-
|
|
4
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-54ERDQ3O.js';
|
|
4
|
+
import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-52Z7AOZ2.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-ZZ4WIQRF.js';
|
|
5
|
+
import { runnerDir } from './chunk-L3SHPR2M.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { writeFleetState } from './chunk-K373UCEV.js';
|
|
4
|
+
import { writePendingUpdate } from './chunk-B5VKRKLJ.js';
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-2W5C47AE.js';
|
|
5
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
6
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
7
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { RepoFilter } from './chunk-RWQ5XKRH.js';
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-GWJUEJR4.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-NDCN3R5C.js';
|
|
10
|
+
import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-XAMTNTOH.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-P4Q6M6PI.js';
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-52Z7AOZ2.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-ZZ4WIQRF.js';
|
|
15
|
+
import { RepoFilter } from './chunk-K26KMWU4.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-EUWTGCK5.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-VMPVQE4D.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-HO4DPX5N.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials,
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-LISVY7JZ.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-KVO4MJWS.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-6J3QWXTA.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-IEVARJ6G.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-6UI4ELNA.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-KHJPRTOW.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-L3SHPR2M.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-LDKF6B2R.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-7UYXSF62.js';
|
|
31
|
+
import { runnerAgents } from './chunk-IEDO26G4.js';
|
|
31
32
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
32
33
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
33
34
|
import { join, dirname } from 'path';
|
|
@@ -2204,7 +2205,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2204
2205
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2205
2206
|
);
|
|
2206
2207
|
async function tryClaimAndStart(state, item, queue) {
|
|
2207
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2208
|
+
const { postJson: postJson2 } = await import('./work-cmd-VD362634.js');
|
|
2208
2209
|
const log = logOf(state);
|
|
2209
2210
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2210
2211
|
const claim = await retrySend(
|
|
@@ -2342,7 +2343,7 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
|
|
|
2342
2343
|
log.line(`${tag}: ${entry.repository} is left out of this build because its GitHub App installation is suspended`);
|
|
2343
2344
|
}
|
|
2344
2345
|
try {
|
|
2345
|
-
await startJob(state, item, queue, claimId, itemKey, branch, identity, repositories, fleet);
|
|
2346
|
+
await startJob(state, item, queue, claimId, itemKey, branch, identity, repositories, fleet, data.freshDisk === true);
|
|
2346
2347
|
} catch (err) {
|
|
2347
2348
|
const stranded = [...state.jobs.values()].find((active) => active.job.claimId === claimId);
|
|
2348
2349
|
if (stranded === void 0) throw err;
|
|
@@ -2390,7 +2391,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2390
2391
|
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta);
|
|
2391
2392
|
},
|
|
2392
2393
|
log: (line) => log.line(`${tag} ${line}`)
|
|
2393
|
-
});
|
|
2394
|
+
}, state.deps.agents);
|
|
2394
2395
|
active.job = { ...job, ...builtin ? { sessionId: prepared.sessionId } : {}, resume: prepared.resume };
|
|
2395
2396
|
writeJobFile(join(active.dirPath, "job.json"), active.job);
|
|
2396
2397
|
return builtin ? prepared.env : void 0;
|
|
@@ -2399,7 +2400,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2399
2400
|
return void 0;
|
|
2400
2401
|
}
|
|
2401
2402
|
}
|
|
2402
|
-
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet) {
|
|
2403
|
+
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet, freshDisk) {
|
|
2403
2404
|
const log = logOf(state);
|
|
2404
2405
|
const startedAt = nowOf(state);
|
|
2405
2406
|
const repositories = repositoriesOf({ repositories: claimed, repository: item.specRepository, branch });
|
|
@@ -2418,6 +2419,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2418
2419
|
commitIdentity: identity,
|
|
2419
2420
|
// The work item the kept session belongs to. A fleet claim names it too, from the same listing.
|
|
2420
2421
|
workItemId: item.id,
|
|
2422
|
+
...freshDisk ? { freshDisk: true } : {},
|
|
2421
2423
|
...fleet === void 0 ? {} : { appId: fleet.appId, organizationId: fleet.organizationId, size: fleet.size },
|
|
2422
2424
|
...primary === void 0 ? {} : { repository: primary.repository, repositories },
|
|
2423
2425
|
startedAt: startedAt.toISOString()
|
|
@@ -2506,7 +2508,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2506
2508
|
setStage(job, dirPath, "provision");
|
|
2507
2509
|
log.line(`${tag} provision started`);
|
|
2508
2510
|
const provisionStartedMs = nowOf(state).getTime();
|
|
2509
|
-
const requireBuildSkill = needsBuildSkill(queue, state.config.commands[queue]);
|
|
2511
|
+
const requireBuildSkill = needsBuildSkill(queue, state.config.commands[queue], state.deps.agents);
|
|
2510
2512
|
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
2511
2513
|
let workdir;
|
|
2512
2514
|
let cgroup;
|
|
@@ -2517,6 +2519,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2517
2519
|
runtime: runtimeOf(state),
|
|
2518
2520
|
queue,
|
|
2519
2521
|
workItemId: item.id,
|
|
2522
|
+
...freshDisk ? { fresh: true } : {},
|
|
2520
2523
|
item,
|
|
2521
2524
|
itemKey,
|
|
2522
2525
|
tokens,
|
|
@@ -2561,6 +2564,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2561
2564
|
runtime: runtimeOf(state),
|
|
2562
2565
|
queue,
|
|
2563
2566
|
workItemId: item.id,
|
|
2567
|
+
...freshDisk ? { fresh: true } : {},
|
|
2564
2568
|
item,
|
|
2565
2569
|
itemKey,
|
|
2566
2570
|
tokens,
|
|
@@ -2741,7 +2745,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2741
2745
|
workdir,
|
|
2742
2746
|
repository: primary?.repository,
|
|
2743
2747
|
lookup: (repository) => resolveGoverningSource({ config: claimCalls(state.config, active.job), repository, fetchImpl: state.deps.fetchImpl }).catch(() => void 0)
|
|
2744
|
-
});
|
|
2748
|
+
}, state.deps.agents);
|
|
2745
2749
|
if (skillDecision.kind === "refuse") {
|
|
2746
2750
|
log.error(`${tag} ${skillDecision.reason} \xB7 ending job as failed`);
|
|
2747
2751
|
await endJob(state, active, "failed", { stage: "provision", reason: skillDecision.reason });
|
|
@@ -3554,7 +3558,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3554
3558
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3555
3559
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3556
3560
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3557
|
-
return (await import('./check-
|
|
3561
|
+
return (await import('./check-D6NMQ6LP.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3558
3562
|
},
|
|
3559
3563
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3560
3564
|
log
|