@outerlayer/cli 0.41.0-next.20261118133326 → 0.41.0-next.20261118180636
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 +5 -5
- package/dist/{agent-credential-6LB2PVY4.js → agent-credential-WX2KK2NS.js} +3 -3
- package/dist/{agent-setup-5PUSFLM4.js → agent-setup-BJRTAU3H.js} +18 -18
- package/dist/{agent-subcommand-R5WLS6HM.js → agent-subcommand-EJNVXLNB.js} +2 -2
- package/dist/{bridge-C6TEOTHM.js → bridge-A4WAOWUJ.js} +6 -6
- package/dist/{build-5HZQZ4E7.js → build-P2KFEV44.js} +13 -13
- package/dist/{build-disk-5JU4JJJA.js → build-disk-33QIRSMR.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-OFGNOCPX.js → builder-HZPOW7TF.js} +9 -9
- package/dist/{caller-BORJDGNS.js → caller-ZUQVRQMY.js} +12 -12
- package/dist/{check-P23F6WZY.js → check-6SQDJCAE.js} +49 -53
- package/dist/{chunk-OOIY2XVC.js → chunk-25SFFAJ5.js} +5 -5
- package/dist/{chunk-RQ2R4AER.js → chunk-2QK7L3WV.js} +1 -1
- package/dist/{chunk-NU4IZ33U.js → chunk-3ZE7ECW4.js} +1 -1
- package/dist/{chunk-ATXH2352.js → chunk-4BWB3LLN.js} +3 -3
- package/dist/{chunk-PLUBKVJB.js → chunk-4GXROH35.js} +5 -5
- package/dist/{chunk-MZVZ2DVG.js → chunk-4JVYALPL.js} +8 -13
- package/dist/{chunk-3ZNQIPRH.js → chunk-56KI5URJ.js} +3 -3
- package/dist/{chunk-B34IOYGJ.js → chunk-57F62BIL.js} +3 -3
- package/dist/{chunk-X5PALYND.js → chunk-57MLWALQ.js} +5 -5
- package/dist/{chunk-HFOQUCL2.js → chunk-5ICUDCXU.js} +3 -3
- package/dist/{chunk-Z4RFAK2H.js → chunk-5PRVTL54.js} +1 -1
- package/dist/{chunk-TX2YKTQO.js → chunk-67Z7CK3N.js} +1 -1
- package/dist/{chunk-X5QQYAQN.js → chunk-6YBI24YT.js} +1 -1
- package/dist/{chunk-7Y5JCEG7.js → chunk-77EHIHYW.js} +30 -30
- package/dist/{chunk-LKXQH4XD.js → chunk-7A7IAQPB.js} +1 -1
- package/dist/{chunk-NOHWR7UT.js → chunk-7BBQ5ZIN.js} +1 -1
- package/dist/{chunk-WKSZI4YX.js → chunk-7O37CF6M.js} +9 -9
- package/dist/{chunk-MNZWJUSM.js → chunk-A6EGNLXH.js} +3 -3
- package/dist/{chunk-6UGP7HU3.js → chunk-AFU6UF34.js} +6 -6
- package/dist/{chunk-RLFTRWFC.js → chunk-ASAIS67T.js} +6 -6
- package/dist/{chunk-D3RGE3HV.js → chunk-AVYR5USX.js} +1 -1
- package/dist/{chunk-AU77QN2U.js → chunk-B3VQVVSS.js} +3 -3
- package/dist/{chunk-F6CFIUBC.js → chunk-B5ENFQHF.js} +1 -1
- package/dist/{chunk-CX3CFZFU.js → chunk-C2N5PBE3.js} +10 -10
- package/dist/{chunk-XC4FEPLQ.js → chunk-CNEOUUPF.js} +8 -25
- package/dist/{chunk-UMUZ4GQ2.js → chunk-CQKCNDPP.js} +4 -4
- package/dist/{chunk-MTDJSXND.js → chunk-CYQSTT5N.js} +1 -1
- package/dist/{chunk-YJB3SFHT.js → chunk-DPS4OOL5.js} +4 -4
- package/dist/{chunk-SCA5GQKS.js → chunk-DZOOVU5A.js} +1 -1
- package/dist/{chunk-EY4JXIF3.js → chunk-E7HPIXAM.js} +1 -1
- package/dist/{chunk-5ODRMXXT.js → chunk-EKJ37Z6K.js} +2 -2
- package/dist/{chunk-ROQQR3GU.js → chunk-ENJG3DGI.js} +3 -3
- package/dist/{chunk-QYDBYCSO.js → chunk-ETBEMXPC.js} +6 -6
- package/dist/{chunk-CS7DIQMJ.js → chunk-EYN62KZW.js} +7 -7
- package/dist/{chunk-AMHFFBLI.js → chunk-FMANPQZW.js} +1 -1
- package/dist/{chunk-LVGMC65A.js → chunk-GEFZE3GN.js} +4 -4
- package/dist/{chunk-RW5M7JY2.js → chunk-GFXXAXPF.js} +1 -1
- package/dist/{chunk-7RSV5EHL.js → chunk-GQZWTW3J.js} +3 -3
- package/dist/{chunk-2MI2A3RS.js → chunk-GZRW2GPQ.js} +1 -1
- package/dist/{chunk-JQV6TO4U.js → chunk-IBWK2WBX.js} +5 -5
- package/dist/{chunk-J5H6WR2A.js → chunk-IEVG36GC.js} +1 -1
- package/dist/{chunk-FWDXZBVV.js → chunk-K2AHZ5CL.js} +8 -8
- package/dist/{chunk-VBFAMLTB.js → chunk-K5GJMMKP.js} +1 -1
- package/dist/{chunk-CJDVDTA7.js → chunk-KRYJAO4X.js} +4 -4
- package/dist/{chunk-CDDEIMOJ.js → chunk-KWGH7KQW.js} +2 -2
- package/dist/{chunk-MJQPWEV3.js → chunk-MI3YC7JL.js} +3 -3
- package/dist/{chunk-SKBISHLG.js → chunk-MYDYQUJD.js} +2 -2
- package/dist/{chunk-W34A7KQG.js → chunk-NRR4YLHI.js} +1 -1
- package/dist/{chunk-NXJJTGRJ.js → chunk-NXYTICCS.js} +1 -1
- package/dist/{chunk-ZL2JW7WO.js → chunk-OA6KYILO.js} +3 -3
- package/dist/{chunk-XNKPRBCH.js → chunk-OTZ6WU4G.js} +4 -4
- package/dist/{chunk-OZNR42RD.js → chunk-OWBSELTR.js} +7 -7
- package/dist/{chunk-PTBEQA3N.js → chunk-PIIVGKE6.js} +1 -1
- package/dist/{chunk-SYH4PJXP.js → chunk-POI3MX4Q.js} +3 -3
- package/dist/{chunk-QZPY2RXY.js → chunk-QBMBUXID.js} +3 -3
- package/dist/{chunk-N3BYRIUK.js → chunk-QZFQ6EWP.js} +3 -3
- package/dist/{chunk-IBQZUWTL.js → chunk-RFBEF4AF.js} +1 -1
- package/dist/{chunk-ETE2OZTJ.js → chunk-S3VUP7LF.js} +2 -2
- package/dist/{chunk-BYP3WBEK.js → chunk-TH7J35IU.js} +9 -15
- package/dist/{chunk-6I3MSNFZ.js → chunk-TRZOAT7E.js} +4 -4
- package/dist/{chunk-POADOTEW.js → chunk-U5JYTRVM.js} +1 -1
- package/dist/{chunk-E75O4U2I.js → chunk-V3ZIIURQ.js} +54 -129
- package/dist/{chunk-FYFCGONI.js → chunk-V4XKNPZK.js} +15 -15
- package/dist/{chunk-RATMFIJV.js → chunk-VKN7UJOB.js} +4 -4
- package/dist/{chunk-IDTAWA7V.js → chunk-WHXF2MLU.js} +1 -1
- package/dist/{chunk-5ARFZE2G.js → chunk-XETFYRKD.js} +19 -16
- package/dist/{chunk-3SGM2N7J.js → chunk-XGXGS54U.js} +1 -1
- package/dist/{chunk-CGUXNCLQ.js → chunk-XLQIA345.js} +4 -4
- package/dist/{chunk-MYK6AI42.js → chunk-YOJXGKVA.js} +143 -73
- package/dist/{chunk-KPFVA2SI.js → chunk-ZMXG7DQ5.js} +4 -16
- package/dist/{chunk-WEDN75TI.js → chunk-ZQHGY6K2.js} +1 -1
- package/dist/{claude-launcher-BF6EZD3J.js → claude-launcher-GYSXTCLQ.js} +5 -5
- package/dist/{cli-TDXQHCF2.js → cli-XLCRAUYM.js} +166 -168
- package/dist/{command-YDTUAZUZ.js → command-VGRXU5C5.js} +47 -51
- package/dist/{config-HVJJFKV7.js → config-Y4PCLHUG.js} +11 -11
- package/dist/{connect-cmd-PNPKCNOT.js → connect-cmd-KSYPISM4.js} +10 -10
- package/dist/{container-start-M6A347Y5.js → container-start-66VMEOP4.js} +43 -47
- package/dist/{context-cleanup-OZXSR3DS.js → context-cleanup-2ECZ2FXE.js} +2 -2
- package/dist/{context-show-cmd-G7A2UHEM.js → context-show-cmd-HDLZOYIT.js} +11 -11
- package/dist/{control-plane-launch-JLQNFYYQ.js → control-plane-launch-RPNZG5V7.js} +13 -13
- package/dist/{demo-record-cmd-JSLTJWZV.js → demo-record-cmd-73DCM2IU.js} +7 -7
- package/dist/{demo-voice-cmd-UGUSIJWV.js → demo-voice-cmd-J6IFHEXN.js} +17 -17
- package/dist/{docker-QTNF3YGO.js → docker-RZTRIYF7.js} +9 -9
- package/dist/{doctor-ZPXVE46E.js → doctor-KWSSVXVZ.js} +45 -49
- package/dist/{emit-artifact-cmd-BK6B64L7.js → emit-artifact-cmd-AEE47IZC.js} +16 -16
- package/dist/{emit-cmd-ZTICDJW3.js → emit-cmd-Z3IOKPWL.js} +5 -5
- package/dist/{emit-criteria-cmd-2CNVXEWX.js → emit-criteria-cmd-TOO4DNEF.js} +13 -13
- package/dist/{emit-demo-cmd-4XJAXL2E.js → emit-demo-cmd-7C6ARFCK.js} +17 -17
- package/dist/{emit-finding-cmd-2AZRE7UI.js → emit-finding-cmd-XYNID6R4.js} +13 -13
- package/dist/{emit-step-cmd-54Z7FKNL.js → emit-step-cmd-JAUW5Y2S.js} +13 -13
- package/dist/{exec-client-EOUGSX2G.js → exec-client-TNJPPDLD.js} +7 -7
- package/dist/{find-unit-TFQHEPEJ.js → find-unit-J7MA2PRR.js} +12 -12
- package/dist/{findings-cmd-XEBPAELT.js → findings-cmd-VMGISGEN.js} +13 -13
- package/dist/{fleet-readiness-LZ2DHKTV.js → fleet-readiness-6WFZ6DSU.js} +12 -12
- package/dist/{governing-source-J2JBGYEL.js → governing-source-66AXUDVZ.js} +18 -18
- package/dist/{guest-init-TXNMQKI4.js → guest-init-QY6VTT2A.js} +8 -8
- package/dist/{hook-fast-OMRT3KDA.js → hook-fast-PUFMMGLY.js} +1 -1
- package/dist/{hook-install-FRK3VKWV.js → hook-install-LCTLE72U.js} +2 -2
- package/dist/host-checks-VGC5VOC4.js +79 -0
- package/dist/{pending-DORA7JYQ.js → host-key-N65ZDZTS.js} +7 -7
- package/dist/{image-tag-QIR5NFE6.js → image-tag-UI33PH7Y.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/{init-J4S65OAZ.js → init-EMZZR25C.js} +41 -45
- package/dist/{init-I2AWF66M.js → init-K5HU4I27.js} +41 -45
- package/dist/{init-agent-AVG5KJ5S.js → init-agent-YYZBWA2D.js} +41 -45
- package/dist/{init-cmd-32J3RTIV.js → init-cmd-RNJ2WXBW.js} +24 -25
- package/dist/{init-update-6MORKWIX.js → init-update-ZBCOQJEX.js} +22 -22
- package/dist/{install-cmd-ZTOXZUYZ.js → install-cmd-FVYEVXPY.js} +14 -14
- package/dist/{launch-agent-6SOYTFN3.js → launch-agent-H5XWIVIT.js} +14 -14
- package/dist/{layout-KXYCAXFE.js → layout-BQFWBO4C.js} +2 -2
- package/dist/{logs-BAGVRH6O.js → logs-EVHVINVW.js} +6 -6
- package/dist/{loop-7222NF5Z.js → loop-K7P5X2XL.js} +49 -53
- package/dist/machine-HT2XQNRV.js +79 -0
- package/dist/{machine-skills-P4E7ZHHE.js → machine-skills-3RLQEKKU.js} +2 -2
- package/dist/{mcp-install-cmd-B2PYJST7.js → mcp-install-cmd-R6X5IIE5.js} +2 -2
- package/dist/{mcp-serve-cmd-NODAY6N7.js → mcp-serve-cmd-MWBSZUXE.js} +8 -8
- package/dist/{paths-E7MMZLIR.js → paths-2NB6OM44.js} +6 -6
- package/dist/{host-key-XGECHBJU.js → pending-PIZMCVVK.js} +7 -7
- package/dist/{pidfile-OTTUMCR5.js → pidfile-J774ZYPM.js} +7 -7
- package/dist/{record-FQ5Y4QXN.js → record-FQ2LFBZH.js} +7 -7
- package/dist/{relay-X5KHTSMC.js → relay-CC2QEO3V.js} +4 -4
- package/dist/{relay-protocol-WRHSJK7X.js → relay-protocol-UOZ4YSAU.js} +4 -4
- package/dist/{run-cmd-FQTEMGGF.js → run-cmd-ALE43QBT.js} +13 -13
- package/dist/{runner-agents-YA6Z3WAU.js → runner-agents-YGVCO7DM.js} +2 -2
- package/dist/{runner-env-YFKTTX6Z.js → runner-env-UIHWITLB.js} +13 -13
- package/dist/{runner-identity-34YUL365.js → runner-identity-JA3ZAJIA.js} +9 -9
- package/dist/{runner-key-DZFIC5TA.js → runner-key-QRBQNT3X.js} +41 -45
- package/dist/{session-sender-UMDVOJYH.js → session-sender-4OQFHLTF.js} +16 -16
- package/dist/{setup-cmd-2LYTDAO4.js → setup-cmd-VFKTGD52.js} +12 -12
- package/dist/{setup-wiring-WOG3GVJV.js → setup-wiring-I6TKPHQB.js} +51 -52
- package/dist/{spec-cmd-QTTLZHHK.js → spec-cmd-B6FJM5QA.js} +14 -14
- package/dist/{starter-pack-YBK7UTHI.js → starter-pack-5VWYQJOQ.js} +3 -3
- package/dist/{state-ITAPHJA5.js → state-JUIT5A5P.js} +7 -7
- package/dist/{status-RR57VBDY.js → status-J3MRIS6R.js} +41 -45
- package/dist/{sync-cmd-HSCMD5VV.js → sync-cmd-SLYQKTQX.js} +15 -15
- package/dist/update-steps-2TFEINVW.js +80 -0
- package/dist/{watch-VMHSVFQD.js → watch-3IYP5CZS.js} +15 -15
- package/dist/{work-claim-cmd-IVP3X776.js → work-claim-cmd-XKFTIMQR.js} +19 -19
- package/dist/{work-cmd-JSYWV6EZ.js → work-cmd-VPMC4IQS.js} +13 -13
- package/dist/{work-comment-cmd-NZH7KHPA.js → work-comment-cmd-6WFTILMS.js} +15 -15
- package/dist/{work-demo-cmd-IY32FWJJ.js → work-demo-cmd-NTZOOABD.js} +13 -13
- package/dist/{work-logs-cmd-4S4SNOGM.js → work-logs-cmd-SE2X5ONJ.js} +13 -13
- package/dist/{work-mock-cmd-ZJLS23OP.js → work-mock-cmd-KLK5VW4K.js} +13 -13
- package/dist/{work-needs-attention-cmd-FYWFQBPP.js → work-needs-attention-cmd-E7TSQW3T.js} +13 -13
- package/dist/{work-no-change-cmd-JMO4NWMJ.js → work-no-change-cmd-TGVI5G4O.js} +13 -13
- package/dist/{work-open-pr-cmd-FDMFZCWQ.js → work-open-pr-cmd-52EOINTE.js} +14 -14
- package/dist/{work-pr-cmd-YWFH2IXD.js → work-pr-cmd-G7IYPYKA.js} +13 -13
- package/dist/{work-proofs-cmd-IYQIT77X.js → work-proofs-cmd-SMTOIG35.js} +15 -15
- package/dist/{work-proofs-record-4VPFC6R6.js → work-proofs-record-L5QMD4HB.js} +22 -22
- package/dist/{work-stop-cmd-JX63CEGC.js → work-stop-cmd-WS6XWVZ5.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +1 -2
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +3 -3
- package/skill-pack/maintained/outerlayer-build/references/release.md +2 -2
- package/skill-pack/shipped.json +0 -4
- package/dist/host-checks-SLET5FMA.js +0 -83
- package/dist/machine-ENBKFB2P.js +0 -83
- package/dist/update-steps-524DMSWB.js +0 -84
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-CNEOUUPF.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-ASAIS67T.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-4GXROH35.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-ZQHGY6K2.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-7O37CF6M.js';
|
|
7
8
|
import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
|
|
8
|
-
import { withInjectedPrograms } from './chunk-WEDN75TI.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
10
|
+
import { checkFormerSkillNames } from './chunk-3ZE7ECW4.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-E7HPIXAM.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-A6EGNLXH.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-LIPSGE6C.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-YWLRN4XV.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-K5GJMMKP.js';
|
|
18
18
|
import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
19
19
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
20
20
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
21
|
-
import { defaultAgents, legacyAgent, contextAgents } from './chunk-
|
|
21
|
+
import { defaultAgents, legacyAgent, contextAgents } from './chunk-V3ZIIURQ.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
23
|
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-2IDR4YTQ.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
@@ -1053,9 +1053,9 @@ function doctorExitCode(checks) {
|
|
|
1053
1053
|
|
|
1054
1054
|
// src/doctor-report.ts
|
|
1055
1055
|
async function gatherDoctorChecks(options = {}) {
|
|
1056
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1057
|
-
const { listedAgents } = await import('./runner-agents-
|
|
1058
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1056
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-33QIRSMR.js');
|
|
1057
|
+
const { listedAgents } = await import('./runner-agents-YGVCO7DM.js');
|
|
1058
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-Y4PCLHUG.js');
|
|
1059
1059
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1060
1060
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1061
1061
|
const hooks = (() => {
|
|
@@ -1083,7 +1083,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1083
1083
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1084
1084
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1085
1085
|
} else if (hasRunnerBlock(configPath)) {
|
|
1086
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1086
|
+
const { runnerHostChecks } = await import('./doctor-KWSSVXVZ.js');
|
|
1087
1087
|
const gateway = (() => {
|
|
1088
1088
|
try {
|
|
1089
1089
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1112,7 +1112,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1112
1112
|
const service = await (async () => {
|
|
1113
1113
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1114
1114
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1115
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1115
|
+
const { inspectRunnerService } = await import('./find-unit-J7MA2PRR.js');
|
|
1116
1116
|
return inspectRunnerService(configPath);
|
|
1117
1117
|
})();
|
|
1118
1118
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-XGXGS54U.js';
|
|
5
|
+
import { autoConnect } from './chunk-EKJ37Z6K.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-E7HPIXAM.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -42,7 +42,7 @@ function criteriaFromAcceptanceFile(markdown) {
|
|
|
42
42
|
// src/emit-criteria-cmd.ts
|
|
43
43
|
var EmitCriteriaError = class extends Error {
|
|
44
44
|
};
|
|
45
|
-
var REPLACE_REFUSED_MESSAGE = "this item already has a recorded list, and a person must replace it. Run the command yourself, outside the session, with your own login.
|
|
45
|
+
var REPLACE_REFUSED_MESSAGE = "this item already has a recorded list, and a person must replace it. Run the command yourself, outside the session, with your own login.";
|
|
46
46
|
async function readAllStdin() {
|
|
47
47
|
const chunks = [];
|
|
48
48
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
5
5
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
6
|
-
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-
|
|
6
|
+
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-V3ZIIURQ.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-W34A7KQG.js';
|
|
3
|
+
import { toolsDockerfile } from './chunk-CQKCNDPP.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-NRR4YLHI.js';
|
|
6
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
|
+
import { runnerLabelValue } from './chunk-EYN62KZW.js';
|
|
8
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-7BBQ5ZIN.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
12
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-5PRVTL54.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-GQZWTW3J.js';
|
|
12
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-FMANPQZW.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
15
15
|
import { join, dirname } from 'path';
|
|
@@ -148,6 +148,14 @@ async function fetchCommit(input) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
async function diffBetween(input) {
|
|
151
|
+
const read = await diffFromCommonAncestor(input, ["--binary", `--output=${input.output}`]);
|
|
152
|
+
return read.ok ? { ok: true } : read;
|
|
153
|
+
}
|
|
154
|
+
async function changedPathsBetween(input) {
|
|
155
|
+
const read = await diffFromCommonAncestor(input, ["--name-only", "-z", "--no-renames"]);
|
|
156
|
+
return read.ok ? { ok: true, paths: read.stdout.split("\0").filter((path) => path !== "") } : read;
|
|
157
|
+
}
|
|
158
|
+
async function diffFromCommonAncestor(input, options) {
|
|
151
159
|
const credential = input.token === void 0 ? void 0 : tokenSettings(input.remote, input.token);
|
|
152
160
|
try {
|
|
153
161
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
@@ -155,13 +163,8 @@ async function diffBetween(input) {
|
|
|
155
163
|
const base = input.base === void 0 ? [] : [input.base];
|
|
156
164
|
await withNewTokenRetry2(credential, () => git(input.dir, ["fetch", "--quiet", "--no-tags", "--filter=blob:none", input.remote, ...base, input.head, `+HEAD:${DIFF_DEFAULT_REF}`], CLONE_TIMEOUT_MS, credential));
|
|
157
165
|
const from = await git(input.dir, ["merge-base", input.head, DIFF_DEFAULT_REF, ...base]);
|
|
158
|
-
await git(
|
|
159
|
-
|
|
160
|
-
["diff", "--no-ext-diff", "--no-textconv", "--no-color", "--binary", `--output=${input.output}`, from, input.head],
|
|
161
|
-
CLONE_TIMEOUT_MS,
|
|
162
|
-
credential
|
|
163
|
-
);
|
|
164
|
-
return { ok: true };
|
|
166
|
+
const stdout = await git(input.dir, ["diff", "--no-ext-diff", "--no-textconv", "--no-color", ...options, from, input.head], CLONE_TIMEOUT_MS, credential, true);
|
|
167
|
+
return { ok: true, stdout };
|
|
165
168
|
} catch (err) {
|
|
166
169
|
const detail = gitFailureLine(err);
|
|
167
170
|
return { ok: false, reason: `the diff of ${input.head.slice(0, 8)} from ${input.base === void 0 ? "the default branch" : input.base.slice(0, 8)} could not be read from ${input.remote}: ${detail}` };
|
|
@@ -594,4 +597,4 @@ async function prune(host, repository, repoRecords, keep, runnerDirPath, runnerL
|
|
|
594
597
|
return removed;
|
|
595
598
|
}
|
|
596
599
|
|
|
597
|
-
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, diffBetween, fetchCommit, metadataFromLabels, prepareImageBuild, readBranchHead, readDefaultBranchFiles, readDefaultBranchHead, readRepositoryRecipe, universalBase, writeRecord };
|
|
600
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, changedPathsBetween, diffBetween, fetchCommit, metadataFromLabels, prepareImageBuild, readBranchHead, readDefaultBranchFiles, readDefaultBranchHead, readRepositoryRecipe, universalBase, writeRecord };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-V3ZIIURQ.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-XGXGS54U.js';
|
|
5
|
+
import { autoConnect } from './chunk-EKJ37Z6K.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-E7HPIXAM.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-
|
|
12
|
+
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-V3ZIIURQ.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity, scrubText } from './chunk-2IDR4YTQ.js';
|
|
15
15
|
import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-GBQRVYYE.js';
|
|
@@ -1,50 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { RUNNER_PROTOCOL } from './chunk-PDZEPH24.js';
|
|
4
|
-
import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-
|
|
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
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { writeDockerClientConfig } from './chunk-PTBEQA3N.js';
|
|
12
|
-
import { senderPidfile } from './chunk-N3BYRIUK.js';
|
|
13
|
-
import { installScrubContext } from './chunk-6UGP7HU3.js';
|
|
6
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-57MLWALQ.js';
|
|
7
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-OA6KYILO.js';
|
|
8
|
+
import { writeDockerClientConfig } from './chunk-PIIVGKE6.js';
|
|
9
|
+
import { senderPidfile } from './chunk-QZFQ6EWP.js';
|
|
10
|
+
import { installScrubContext } from './chunk-AFU6UF34.js';
|
|
14
11
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
15
|
-
import {
|
|
12
|
+
import { runnerImageVersion } from './chunk-NXYTICCS.js';
|
|
13
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-S3VUP7LF.js';
|
|
16
14
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
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
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-CQKCNDPP.js';
|
|
19
17
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
18
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-
|
|
23
|
-
import {
|
|
19
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-GZRW2GPQ.js';
|
|
20
|
+
import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-POI3MX4Q.js';
|
|
21
|
+
import { describeCallFailure, shortClaim, retrySend, formatDuration, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-K2AHZ5CL.js';
|
|
22
|
+
import { getJson, postJson, WorkCommandError, isSignatureRefusal } from './chunk-ASAIS67T.js';
|
|
23
|
+
import { keyRunnerFactory, DEFAULT_WORKSPACE_KEEP_DAYS, optionalEgress, runnerCredentialProblem, builtinKind, readOnlyOption, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, allowHostProblem, systemClock, emptyEgressCounts, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, hostAllowed, sandboxTimeLimitMinutes, networkOf, DEFAULT_SETUP_MINUTES, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-TRZOAT7E.js';
|
|
24
|
+
import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-MYDYQUJD.js';
|
|
25
|
+
import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-EYN62KZW.js';
|
|
26
|
+
import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-7BBQ5ZIN.js';
|
|
24
27
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-V3NMSDOC.js';
|
|
25
|
-
import {
|
|
26
|
-
import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-SKBISHLG.js';
|
|
27
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-CS7DIQMJ.js';
|
|
28
|
-
import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-NOHWR7UT.js';
|
|
29
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-TX2YKTQO.js';
|
|
28
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-67Z7CK3N.js';
|
|
30
29
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
|
-
import { signerFor } from './chunk-
|
|
32
|
-
import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-
|
|
33
|
-
import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-
|
|
34
|
-
import { agentCredential, UNKNOWN_TRANSPORT_REASON, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, RELAY_USER, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, DOCKER_DESKTOP_REASON, RELAY_ID } from './chunk-
|
|
35
|
-
import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, realFdStorePort, reportedAgents, removedAgentCredentialValues, currentAgentCredential, fdName } from './chunk-
|
|
30
|
+
import { signerFor } from './chunk-7A7IAQPB.js';
|
|
31
|
+
import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-5PRVTL54.js';
|
|
32
|
+
import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-GQZWTW3J.js';
|
|
33
|
+
import { agentCredential, UNKNOWN_TRANSPORT_REASON, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, RELAY_USER, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, DOCKER_DESKTOP_REASON, RELAY_ID } from './chunk-B3VQVVSS.js';
|
|
34
|
+
import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, realFdStorePort, reportedAgents, removedAgentCredentialValues, currentAgentCredential, fdName } from './chunk-KWGH7KQW.js';
|
|
36
35
|
import { versionAtLeast } from './chunk-LIPSGE6C.js';
|
|
37
|
-
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, strippedVariables, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf, agentMissingFromImage } from './chunk-
|
|
38
|
-
import { defaultAgents, parsePolicy,
|
|
36
|
+
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, strippedVariables, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf, agentMissingFromImage } from './chunk-FMANPQZW.js';
|
|
37
|
+
import { defaultAgents, parsePolicy, whenMatches, keyOutOfScope, resolvePackRoot } from './chunk-V3ZIIURQ.js';
|
|
39
38
|
import { PROVIDERS } from './chunk-7FAKHR6W.js';
|
|
40
|
-
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
41
39
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
42
40
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
43
41
|
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot } from './chunk-2IDR4YTQ.js';
|
|
44
42
|
import { UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CRITERIA_JUDGE_NAME, CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH } from './chunk-GBQRVYYE.js';
|
|
45
43
|
import { randomUUID, createHash, randomBytes } from 'crypto';
|
|
46
|
-
import { existsSync, statSync, appendFileSync, rmSync, mkdirSync, readFileSync, mkdtempSync, readdirSync, accessSync, constants, writeFileSync, openSync, closeSync, lstatSync, renameSync, rmdirSync, unlinkSync, chmodSync, createReadStream, readSync,
|
|
47
|
-
import { join, isAbsolute, dirname, delimiter, basename,
|
|
44
|
+
import { existsSync, statSync, appendFileSync, rmSync, mkdirSync, readFileSync, mkdtempSync, readdirSync, accessSync, constants, writeFileSync, openSync, closeSync, lstatSync, renameSync, rmdirSync, unlinkSync, chmodSync, createReadStream, readSync, truncateSync, cpSync, writeSync, realpathSync, createWriteStream, copyFileSync, fstatSync, linkSync } from 'fs';
|
|
45
|
+
import { join, isAbsolute, dirname, delimiter, basename, relative, sep, resolve } from 'path';
|
|
48
46
|
import { spawn, spawnSync } from 'child_process';
|
|
49
47
|
import { Readable, PassThrough, Duplex, Transform, Writable } from 'stream';
|
|
50
48
|
import { createServer, createConnection, connect, isIP } from 'net';
|
|
@@ -12162,6 +12160,97 @@ function readJudgeReply(run, minutes, agents = defaultAgents(), job) {
|
|
|
12162
12160
|
return { kind: "answered", verdict, unmet: new Set(lines.flatMap((line2) => UNMET_LINE.exec(line2)?.[1] ?? [])), ...usage };
|
|
12163
12161
|
}
|
|
12164
12162
|
|
|
12163
|
+
// src/runner/judge-scope.ts
|
|
12164
|
+
function unknown() {
|
|
12165
|
+
return { issueTypes: null, issueLabels: null, pullRequestRepositories: null, changedPaths: null };
|
|
12166
|
+
}
|
|
12167
|
+
function notRun(key) {
|
|
12168
|
+
const reasons = {
|
|
12169
|
+
"issue.type": "the item's issue is not of the type its when.issue.type names",
|
|
12170
|
+
"issue.labels": "the item's issue has none of the labels its when.issue.labels lists",
|
|
12171
|
+
repositories: "no repository its when.repositories lists holds the build's branch or an open or merged pull request of the item",
|
|
12172
|
+
paths: "no file that the item's pull requests change matches its when.paths"
|
|
12173
|
+
};
|
|
12174
|
+
return reasons[key];
|
|
12175
|
+
}
|
|
12176
|
+
function livePullRequestsOf(workItem) {
|
|
12177
|
+
const listed = Object(workItem).pullRequests;
|
|
12178
|
+
if (!Array.isArray(listed)) return void 0;
|
|
12179
|
+
const live = [];
|
|
12180
|
+
for (const entry of listed) {
|
|
12181
|
+
const { repository, state, headSha } = Object(entry);
|
|
12182
|
+
if (typeof repository !== "string") return void 0;
|
|
12183
|
+
if (state === "closed") continue;
|
|
12184
|
+
live.push({ repository, headSha: typeof headSha === "string" ? headSha : null });
|
|
12185
|
+
}
|
|
12186
|
+
return live;
|
|
12187
|
+
}
|
|
12188
|
+
function onPushedHeads(live, pushed) {
|
|
12189
|
+
return live.every((pull) => pushed.some((entry) => entry.repository.toLowerCase() === pull.repository.toLowerCase() && entry.head === pull.headSha));
|
|
12190
|
+
}
|
|
12191
|
+
function scopeFacts(input) {
|
|
12192
|
+
const labels = Object(Object(input.workItem).issue).labels;
|
|
12193
|
+
const issueLabels = Array.isArray(labels) && labels.every((label) => typeof label === "string") ? labels : null;
|
|
12194
|
+
const live = livePullRequestsOf(input.workItem);
|
|
12195
|
+
if (live === void 0 || input.pushed === void 0) return { ...unknown(), issueLabels };
|
|
12196
|
+
const pushed = input.pushed;
|
|
12197
|
+
return {
|
|
12198
|
+
issueTypes: null,
|
|
12199
|
+
issueLabels,
|
|
12200
|
+
pullRequestRepositories: [...live.map((pull) => pull.repository), ...pushed.map((entry) => entry.repository)],
|
|
12201
|
+
changedPaths: input.changedPaths !== void 0 && onPushedHeads(live, pushed) ? input.changedPaths : null
|
|
12202
|
+
};
|
|
12203
|
+
}
|
|
12204
|
+
async function readScopeFacts(reads, needPaths) {
|
|
12205
|
+
let workItem;
|
|
12206
|
+
try {
|
|
12207
|
+
workItem = await reads.readItem();
|
|
12208
|
+
} catch (err) {
|
|
12209
|
+
reads.note(`the work item could not be read, so every judge file runs: ${describeCallFailure(err)}`);
|
|
12210
|
+
return unknown();
|
|
12211
|
+
}
|
|
12212
|
+
let pushed;
|
|
12213
|
+
try {
|
|
12214
|
+
const read = await reads.readPushed();
|
|
12215
|
+
if (read.ok) pushed = read.pushed;
|
|
12216
|
+
else reads.note(`the build's branches could not be read, so no judge file is skipped for its repositories or files: ${read.reason}`);
|
|
12217
|
+
} catch (err) {
|
|
12218
|
+
reads.note(`the build's branches could not be read, so no judge file is skipped for its repositories or files: ${describeCallFailure(err)}`);
|
|
12219
|
+
}
|
|
12220
|
+
const live = livePullRequestsOf(workItem);
|
|
12221
|
+
let changedPaths2;
|
|
12222
|
+
if (needPaths && pushed !== void 0 && live !== void 0 && onPushedHeads(live, pushed)) {
|
|
12223
|
+
changedPaths2 = [];
|
|
12224
|
+
for (const entry of pushed) {
|
|
12225
|
+
let read;
|
|
12226
|
+
try {
|
|
12227
|
+
read = await reads.readChangedPaths(entry);
|
|
12228
|
+
} catch (err) {
|
|
12229
|
+
read = { ok: false, reason: describeCallFailure(err) };
|
|
12230
|
+
}
|
|
12231
|
+
if (!read.ok) {
|
|
12232
|
+
reads.note(`the files the branch changes in ${entry.repository} could not be read, so no judge file is skipped for its files: ${read.reason}`);
|
|
12233
|
+
changedPaths2 = void 0;
|
|
12234
|
+
break;
|
|
12235
|
+
}
|
|
12236
|
+
changedPaths2.push(...read.paths);
|
|
12237
|
+
}
|
|
12238
|
+
}
|
|
12239
|
+
return scopeFacts({ workItem, pushed, changedPaths: changedPaths2 });
|
|
12240
|
+
}
|
|
12241
|
+
async function judgesInScope(checks, reads) {
|
|
12242
|
+
const scoped = checks.filter((check) => check.scope !== void 0 && whenMatches(check.scope, unknown()).length > 0);
|
|
12243
|
+
if (scoped.length === 0) return [...checks];
|
|
12244
|
+
const facts = await readScopeFacts(reads, scoped.some((check) => check.scope.whenPaths !== null));
|
|
12245
|
+
return checks.filter((check) => {
|
|
12246
|
+
if (check.scope === void 0) return true;
|
|
12247
|
+
const key = keyOutOfScope(whenMatches(check.scope, facts));
|
|
12248
|
+
if (key === void 0) return true;
|
|
12249
|
+
reads.note(`${check.name} is not run: ${notRun(key)}`);
|
|
12250
|
+
return false;
|
|
12251
|
+
});
|
|
12252
|
+
}
|
|
12253
|
+
|
|
12165
12254
|
// src/runner/code-review-plan.ts
|
|
12166
12255
|
var SMALL_CHANGE_LINES = 40;
|
|
12167
12256
|
var LARGE_CHANGE_LINES = 800;
|
|
@@ -12675,7 +12764,22 @@ async function runJudge(input) {
|
|
|
12675
12764
|
}
|
|
12676
12765
|
let checks = [];
|
|
12677
12766
|
if (definitions.ok) {
|
|
12678
|
-
checks = definitions.checks
|
|
12767
|
+
checks = await judgesInScope(definitions.checks, {
|
|
12768
|
+
readItem: readItemOnce,
|
|
12769
|
+
readPushed: async () => {
|
|
12770
|
+
if (job.branch === void 0) return { ok: false, reason: "the claim names no branch" };
|
|
12771
|
+
if (tokens === void 0) return { ok: false, reason: "the build's repository tokens are no longer held" };
|
|
12772
|
+
const claimed = repositoriesOf({ repositories: job.repositories, repository, branch: job.branch });
|
|
12773
|
+
return readPushedBranches({ claimed, remoteOf, dir: scratch, readToken, tokens, readBranch: deps.readBranch ?? readBranchHead });
|
|
12774
|
+
},
|
|
12775
|
+
readChangedPaths: async (pushed) => {
|
|
12776
|
+
const base = pushed.primary ? builtOf(job)?.startCommit : void 0;
|
|
12777
|
+
const token = pushed.primary ? readToken : await tokens.token("read", pushed.repository);
|
|
12778
|
+
const dir = join(scratch, "scope", pushed.repository.replace(/[^A-Za-z0-9_.-]/g, "_"));
|
|
12779
|
+
return (deps.fetchChangedPaths ?? changedPathsBetween)({ remote: remoteOf(pushed.repository), dir, base, head: pushed.head, token });
|
|
12780
|
+
},
|
|
12781
|
+
note: (line2) => log.line(`${tag} judge: ${line2}`)
|
|
12782
|
+
});
|
|
12679
12783
|
} else {
|
|
12680
12784
|
log.line(`${tag} judge not run: the definitions could not be read: ${definitions.reason}`);
|
|
12681
12785
|
job.judgeNotRun = `the definitions could not be read: ${definitions.reason}`;
|
|
@@ -14164,7 +14268,6 @@ async function recoverLostJobs(jobsDirPath, config, deps) {
|
|
|
14164
14268
|
// src/runner/host-checks.ts
|
|
14165
14269
|
var MAX_JUDGE_FILES = 20;
|
|
14166
14270
|
var JUDGES_DIR = ".outerlayer/judges";
|
|
14167
|
-
var POLICY_FILE = ".outerlayer/policy.yaml";
|
|
14168
14271
|
function readInside(root, rel) {
|
|
14169
14272
|
const path = join(root, rel);
|
|
14170
14273
|
try {
|
|
@@ -14176,28 +14279,6 @@ function readInside(root, rel) {
|
|
|
14176
14279
|
return void 0;
|
|
14177
14280
|
}
|
|
14178
14281
|
}
|
|
14179
|
-
var MAINTAINED_BRIEF = /^\.(?:agents|outerlayer)\/skills\/(outerlayer-[a-z]+)\/([A-Za-z0-9_./-]+)$/;
|
|
14180
|
-
function readBrief(root, brief, log, tag = "") {
|
|
14181
|
-
const own = readInside(root, brief);
|
|
14182
|
-
const shipped = () => {
|
|
14183
|
-
const match = MAINTAINED_BRIEF.exec(brief);
|
|
14184
|
-
if (match === null || match[2].split("/").includes("..") || !MAINTAINED_SKILLS.includes(match[1])) return void 0;
|
|
14185
|
-
try {
|
|
14186
|
-
return readFileSync(join(resolvePackRoot(), "maintained", match[1], match[2]), "utf8");
|
|
14187
|
-
} catch {
|
|
14188
|
-
return void 0;
|
|
14189
|
-
}
|
|
14190
|
-
};
|
|
14191
|
-
if (own === void 0) return shipped();
|
|
14192
|
-
if (own.includes("citations.json") || own.includes("// proves")) {
|
|
14193
|
-
const current = shipped();
|
|
14194
|
-
if (current !== void 0) {
|
|
14195
|
-
log?.line(`${tag} ${brief} in the repository finds tests by citations, which the host does not write, so the judge follows the brief this CLI ships`);
|
|
14196
|
-
return current;
|
|
14197
|
-
}
|
|
14198
|
-
}
|
|
14199
|
-
return own;
|
|
14200
|
-
}
|
|
14201
14282
|
function judgeFilesIn(root) {
|
|
14202
14283
|
const dir = join(root, JUDGES_DIR);
|
|
14203
14284
|
let names;
|
|
@@ -14223,28 +14304,17 @@ function shippedJudgeBrief() {
|
|
|
14223
14304
|
return void 0;
|
|
14224
14305
|
}
|
|
14225
14306
|
}
|
|
14226
|
-
function criteriaJudgeCheck(
|
|
14227
|
-
if (brief !== null) return { name: CRITERIA_JUDGE_NAME, builtIn: true, judge: { brief, text: readBrief(root, brief, log, tag), subjects: "criteria" } };
|
|
14307
|
+
function criteriaJudgeCheck() {
|
|
14228
14308
|
return { name: CRITERIA_JUDGE_NAME, builtIn: true, judge: { brief: "the criteria-judge brief this CLI ships", text: shippedJudgeBrief(), subjects: "criteria" } };
|
|
14229
14309
|
}
|
|
14230
|
-
function asHostReads(file, base, log, tag) {
|
|
14231
|
-
const upgraded = upgradedStarterText(file.path, file.content, { base });
|
|
14232
|
-
if (upgraded === void 0) return file;
|
|
14233
|
-
log.line(`${tag} ${file.path} is an unedited copy an earlier release wrote, so it is read as this CLI writes it`);
|
|
14234
|
-
return { path: file.path, content: upgraded };
|
|
14235
|
-
}
|
|
14236
|
-
function testProofIn(root) {
|
|
14237
|
-
const policyText = readInside(root, POLICY_FILE);
|
|
14238
|
-
return parsePolicy(policyText === void 0 ? null : { path: POLICY_FILE, content: policyText }, []).testProof;
|
|
14239
|
-
}
|
|
14240
14310
|
function checksIn(root, log, tag) {
|
|
14241
|
-
const
|
|
14242
|
-
const policyText = readInside(root, POLICY_FILE);
|
|
14243
|
-
const policy = policyText === void 0 ? null : asHostReads({ path: POLICY_FILE, content: policyText }, base, log, tag);
|
|
14244
|
-
const loaded = parsePolicy(policy, judgeFilesIn(root));
|
|
14311
|
+
const loaded = parsePolicy(judgeFilesIn(root));
|
|
14245
14312
|
for (const problem of loaded.problems) log.error(`${tag} ${problem.file}: ${problem.problem}`);
|
|
14246
|
-
const checks =
|
|
14247
|
-
for (const def of loaded.customs)
|
|
14313
|
+
const checks = [criteriaJudgeCheck()];
|
|
14314
|
+
for (const def of loaded.customs) {
|
|
14315
|
+
const scope = { whenPaths: def.whenPaths, whenIssueType: def.whenIssueType, whenIssueLabels: def.whenIssueLabels, whenRepositories: def.whenRepositories };
|
|
14316
|
+
checks.push({ name: def.id, judge: { brief: `${JUDGES_DIR}/${def.id}.md`, text: def.judge.instructions, subjects: def.judge.subjects }, scope });
|
|
14317
|
+
}
|
|
14248
14318
|
return { checks };
|
|
14249
14319
|
}
|
|
14250
14320
|
function builtOf(job) {
|
|
@@ -14331,4 +14401,4 @@ function makeRecorder(input) {
|
|
|
14331
14401
|
};
|
|
14332
14402
|
}
|
|
14333
14403
|
|
|
14334
|
-
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, 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,
|
|
14404
|
+
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, 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 };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-DZOOVU5A.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-V3ZIIURQ.js';
|
|
7
7
|
import { LEGACY_AGENT } from './chunk-7FAKHR6W.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
@@ -12,8 +12,6 @@ import { join, dirname } from 'path';
|
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
14
14
|
var DEFAULT_TEMPLATE = "default";
|
|
15
|
-
var POLICY_PATH = ".outerlayer/policy.yaml";
|
|
16
|
-
var POLICY_CONTENT = "review: required\n";
|
|
17
15
|
var StarterPackError = class extends Error {
|
|
18
16
|
};
|
|
19
17
|
function assertKnownTemplate(name) {
|
|
@@ -44,19 +42,11 @@ function installStarterPack(opts) {
|
|
|
44
42
|
copied.push(skill);
|
|
45
43
|
}
|
|
46
44
|
const written = writeMaintainedFiles(opts.repoRoot, maintainedFiles);
|
|
47
|
-
let policy = "kept";
|
|
48
|
-
const policyAbs = join(opts.repoRoot, POLICY_PATH);
|
|
49
|
-
if (!existsSync(policyAbs)) {
|
|
50
|
-
mkdirSync(dirname(policyAbs), { recursive: true });
|
|
51
|
-
writeFileSync(policyAbs, POLICY_CONTENT);
|
|
52
|
-
policy = "written";
|
|
53
|
-
}
|
|
54
45
|
return {
|
|
55
46
|
base,
|
|
56
47
|
copied,
|
|
57
48
|
kept,
|
|
58
|
-
maintained: [...written.created, ...written.rewritten]
|
|
59
|
-
policy
|
|
49
|
+
maintained: [...written.created, ...written.rewritten]
|
|
60
50
|
};
|
|
61
51
|
}
|
|
62
52
|
var skillFile = (skill, base) => `${skillDir(skill, base)}/SKILL.md`;
|
|
@@ -78,8 +68,6 @@ function formatStarterPackOutput(result) {
|
|
|
78
68
|
for (const skill of MAINTAINED_SKILLS) lines.push(` ${skillFile(skill, MACHINE_SKILL_PATH)}`);
|
|
79
69
|
}
|
|
80
70
|
lines.push(
|
|
81
|
-
"",
|
|
82
|
-
result.policy === "written" ? `${C.green}\u2713${C.reset} Wrote ${POLICY_PATH} (review required)` : `${C.dim}${POLICY_PATH} already exists \u2014 left as it is${C.reset}`,
|
|
83
71
|
"",
|
|
84
72
|
...base === OUTERLAYER_SKILLS_BASE ? [
|
|
85
73
|
`Next: create .outerlayer/config.json naming your agent tools, for example {"targets": ["${LEGACY_AGENT}"]},`,
|
|
@@ -89,4 +77,4 @@ function formatStarterPackOutput(result) {
|
|
|
89
77
|
return lines.join("\n") + "\n";
|
|
90
78
|
}
|
|
91
79
|
|
|
92
|
-
export {
|
|
80
|
+
export { StarterPackError, assertKnownTemplate, formatStarterPackOutput, installStarterPack };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-
|
|
3
|
+
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-V3ZIIURQ.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { withInjectedPrograms } from './chunk-
|
|
4
|
-
import { setupMachineSkills } from './chunk-
|
|
5
|
-
import { sharedSkillNames } from './chunk-
|
|
3
|
+
import { withInjectedPrograms } from './chunk-ZQHGY6K2.js';
|
|
4
|
+
import { setupMachineSkills } from './chunk-B5ENFQHF.js';
|
|
5
|
+
import { sharedSkillNames } from './chunk-67Z7CK3N.js';
|
|
6
6
|
import { versionAtLeast, GOVERNANCE_VARIABLE, CONTROL_PLANE_DIR_VARIABLE } from './chunk-LIPSGE6C.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
8
|
import { STALL_EXIT } from './chunk-MQ6SKVLA.js';
|
|
9
9
|
export { STALL_EXIT } from './chunk-MQ6SKVLA.js';
|
|
10
|
-
import { defaultAgents, agentById, legacyAgent } from './chunk-
|
|
10
|
+
import { defaultAgents, agentById, legacyAgent } from './chunk-V3ZIIURQ.js';
|
|
11
11
|
import './chunk-DYKRQC4O.js';
|
|
12
12
|
import { LEGACY_AGENT } from './chunk-7FAKHR6W.js';
|
|
13
13
|
import './chunk-VSBG7MMU.js';
|
|
@@ -392,7 +392,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
392
392
|
return 1;
|
|
393
393
|
}
|
|
394
394
|
} else {
|
|
395
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
395
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-RPNZG5V7.js');
|
|
396
396
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
397
397
|
if (plane.kind === "none") {
|
|
398
398
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|