@outerlayer/cli 0.38.0-next.20261109143949 → 0.38.0-next.20261109235338
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 +11 -1
- package/dist/{agent-setup-MLSWF7RF.js → agent-setup-F4KAKOQE.js} +19 -19
- package/dist/{agent-subcommand-DCOPM2NX.js → agent-subcommand-JC5JXZ3X.js} +3 -3
- package/dist/{bridge-HZRJYECQ.js → bridge-TYO2YB2X.js} +6 -6
- package/dist/{build-3LXKCCJF.js → build-QUCL3HFM.js} +12 -12
- package/dist/{build-disk-TYX6DU5R.js → build-disk-3JUHPJEQ.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-VYKWHAUQ.js → builder-PADLK3VJ.js} +9 -9
- package/dist/caller-LYH64TZB.js +23 -0
- package/dist/{check-YUKNUSAS.js → check-DBYJIP44.js} +56 -56
- package/dist/{chunk-DEWD22FA.js → chunk-26NMJGEY.js} +1 -1
- package/dist/{chunk-LA5UO6LI.js → chunk-2BMH3373.js} +5 -4
- package/dist/{chunk-JAURZKSE.js → chunk-2TA2Z5IJ.js} +5 -5
- package/dist/{chunk-HW7QPCOP.js → chunk-2YOFSE7U.js} +145 -50
- package/dist/{chunk-OKELGJNN.js → chunk-3Q2SEOT3.js} +1 -1
- package/dist/{chunk-MMSFADKC.js → chunk-3QTC4UWC.js} +1 -1
- package/dist/{chunk-C3K54KRU.js → chunk-4A4TMFGV.js} +5 -5
- package/dist/{chunk-F3MEL6B6.js → chunk-4NRIC2G5.js} +4 -4
- package/dist/{chunk-4K2EMRJP.js → chunk-52IVBUIU.js} +6 -6
- package/dist/{chunk-LYWLBZ37.js → chunk-553QW3PJ.js} +2 -2
- package/dist/{chunk-NHT7RHAI.js → chunk-5AU2GQGH.js} +3 -3
- package/dist/{chunk-EGKYININ.js → chunk-5J4WME44.js} +5 -5
- package/dist/{chunk-NR3FDUWS.js → chunk-6L55K352.js} +7 -7
- package/dist/{chunk-OPGF3FUY.js → chunk-6ZMFEZ2K.js} +2 -2
- package/dist/{chunk-SLR6QAOE.js → chunk-7HN6T4MY.js} +1 -1
- package/dist/{chunk-LOG4LBUY.js → chunk-7NP5G2FV.js} +2 -2
- package/dist/{chunk-G7HNRAXN.js → chunk-A237UPRS.js} +14 -14
- package/dist/{chunk-CDDED64E.js → chunk-ATEMEVFF.js} +1 -1
- package/dist/{chunk-GVK7AKFX.js → chunk-AZRZBG45.js} +9 -7
- package/dist/{chunk-TFR6S7ZB.js → chunk-BAWOWJ3G.js} +10 -10
- package/dist/{chunk-WGC7UFRM.js → chunk-C2PZOLN7.js} +3 -2
- package/dist/{chunk-Q6ANHBJK.js → chunk-C7YFAPMY.js} +1 -1
- package/dist/{chunk-TTG6Y7G7.js → chunk-DE5QLWJK.js} +2 -2
- package/dist/{chunk-X45WDWSV.js → chunk-DPBFNZ6H.js} +1 -1
- package/dist/{chunk-EI6JYZ42.js → chunk-DQLHVV62.js} +3 -3
- package/dist/{chunk-LIMJRKIU.js → chunk-EYFIWJFI.js} +5 -5
- package/dist/{chunk-U463IFDK.js → chunk-F3NW5TBW.js} +6 -6
- package/dist/{chunk-KIYP5TML.js → chunk-F4XMG7EO.js} +1 -1
- package/dist/{chunk-ZWWU7COR.js → chunk-FLIRUHVT.js} +1 -1
- package/dist/{chunk-2J3X2Z4F.js → chunk-G2J574LS.js} +7 -7
- package/dist/{chunk-2XEQCSCQ.js → chunk-GH5Y3R5R.js} +4 -4
- package/dist/{chunk-UCDCPQXU.js → chunk-HITUWIB7.js} +1 -1
- package/dist/{chunk-6EN72I2O.js → chunk-HT4OKJDB.js} +1 -1
- package/dist/{chunk-IG5ZZG7R.js → chunk-HWHJDQLC.js} +3 -3
- package/dist/{chunk-NFZMENCY.js → chunk-I45HTSSA.js} +1 -1
- package/dist/{chunk-4EQQS3VJ.js → chunk-IJWQT2Y7.js} +1 -1
- package/dist/{chunk-BDTFO5S7.js → chunk-IPB5UOHH.js} +2 -2
- package/dist/{chunk-5OBQBINA.js → chunk-IXC5EISR.js} +1 -1
- package/dist/{chunk-RVYMYTXX.js → chunk-JLCEQXQF.js} +1 -1
- package/dist/{chunk-O4Q7GPKU.js → chunk-KGHVJI7V.js} +3 -3
- package/dist/{chunk-4LUHKCDO.js → chunk-KHC7ICRR.js} +23 -12
- package/dist/{chunk-4OD45RBP.js → chunk-LGJ56FCM.js} +11 -2
- package/dist/{chunk-GECHL3NC.js → chunk-LJPYKCIP.js} +4 -4
- package/dist/{chunk-CCEP5WBI.js → chunk-MGOEHY72.js} +13 -11
- package/dist/{chunk-OYBBYENC.js → chunk-NAU7U44X.js} +6 -6
- package/dist/{chunk-Z4R73UUH.js → chunk-NL2MMRJI.js} +6 -6
- package/dist/{chunk-LO3PSFNT.js → chunk-O7IJBJ6Z.js} +1 -1
- package/dist/{chunk-RMXRQ3OC.js → chunk-OQHHPJNK.js} +1 -1
- package/dist/{chunk-HGWDBTQ3.js → chunk-P43BSQGV.js} +3 -3
- package/dist/{chunk-JMWCPEKP.js → chunk-PCY626FL.js} +2 -2
- package/dist/{chunk-JKRVSEK7.js → chunk-PE5J46EE.js} +8 -8
- package/dist/{chunk-RVDXHF2M.js → chunk-QA3U3MJZ.js} +129 -42
- package/dist/{chunk-7TM2E4RI.js → chunk-QZP3O6IM.js} +6 -6
- package/dist/{chunk-5TZCV6JB.js → chunk-RN5VLKZ2.js} +1 -1
- package/dist/{chunk-HUP2CGX4.js → chunk-SKKKPLOC.js} +3 -3
- package/dist/{chunk-D7KYG37D.js → chunk-SOLQ3JA6.js} +19 -8
- package/dist/{chunk-UNA4YIHE.js → chunk-SWXAP4GM.js} +4 -4
- package/dist/{chunk-X56UUEHE.js → chunk-TYLZR7HX.js} +12 -3
- package/dist/{chunk-QP6SPQU5.js → chunk-UU6FN6PZ.js} +5 -5
- package/dist/{chunk-H3YHAO7L.js → chunk-W37QA6WG.js} +1 -1
- package/dist/{chunk-LLVBDIQJ.js → chunk-WE4CWGNR.js} +7 -7
- package/dist/{chunk-KX4JKW4Z.js → chunk-WISVAUTD.js} +7 -4
- package/dist/{chunk-22QIA7SH.js → chunk-X3CGWGAG.js} +1 -1
- package/dist/{chunk-BFWZGLUU.js → chunk-XDHMRHMC.js} +1 -1
- package/dist/{chunk-DX27B42J.js → chunk-XLUQC2PE.js} +1 -1
- package/dist/{chunk-LIH6CIVB.js → chunk-XMVASSUZ.js} +1 -1
- package/dist/{chunk-TNAUQADA.js → chunk-XPXJWIOJ.js} +1 -1
- package/dist/{chunk-6JW2L7UV.js → chunk-Y2M2NZX4.js} +8 -8
- package/dist/{chunk-T63WTVGY.js → chunk-Y67NEZMW.js} +5 -5
- package/dist/{chunk-B3ILHK4Q.js → chunk-ZIOMM4LL.js} +5 -5
- package/dist/{chunk-KFHF3GBH.js → chunk-ZRTGX4GN.js} +3 -3
- package/dist/{chunk-GTKR2YEZ.js → chunk-ZUIHEOSC.js} +1 -1
- package/dist/{chunk-PM4YDVAX.js → chunk-ZZ4AX25R.js} +1 -1
- package/dist/{claude-launcher-YDSG5XIN.js → claude-launcher-UYCMHZOU.js} +6 -6
- package/dist/{cli-7VKJRQWW.js → cli-KEVUJ6PY.js} +193 -146
- package/dist/{cli-update-notice-AWYJ4A7R.js → cli-update-notice-OC4SOSZE.js} +2 -2
- package/dist/{command-3WAJBJWX.js → command-DNGERCQW.js} +51 -50
- package/dist/{config-O2LJAZJZ.js → config-M66C2AGN.js} +11 -11
- package/dist/{connect-cmd-3DBWVCUL.js → connect-cmd-JBM5ODV3.js} +11 -11
- package/dist/{container-start-T4GH4WLX.js → container-start-4NKXX3MA.js} +49 -48
- package/dist/{context-cleanup-Z23RX7JT.js → context-cleanup-UE5HQRHP.js} +3 -3
- package/dist/{context-show-cmd-OGRCR5OT.js → context-show-cmd-HX5LND6O.js} +12 -12
- package/dist/{control-plane-launch-JZPULKCL.js → control-plane-launch-XEMMZ7VZ.js} +14 -14
- package/dist/{demo-record-cmd-YPWPHDAN.js → demo-record-cmd-PI4PFFEO.js} +7 -7
- package/dist/{demo-voice-cmd-TNZ2G5CJ.js → demo-voice-cmd-3GASMSCU.js} +20 -20
- package/dist/{docker-MOESJVCB.js → docker-KWHEDC6K.js} +9 -9
- package/dist/{doctor-KHAB6YWH.js → doctor-GPATU5TY.js} +51 -50
- package/dist/{emit-artifact-cmd-W7YBXLA7.js → emit-artifact-cmd-OH7PNHZF.js} +19 -19
- package/dist/{emit-cmd-3YOUQCID.js → emit-cmd-RPICQ5H2.js} +6 -6
- package/dist/{emit-criteria-cmd-KZW275Q2.js → emit-criteria-cmd-JW2GS2SO.js} +16 -16
- package/dist/{emit-demo-cmd-3UBPYRAM.js → emit-demo-cmd-5W6H6AI4.js} +20 -20
- package/dist/{emit-finding-cmd-NL6H2PBJ.js → emit-finding-cmd-PSCJFCBZ.js} +16 -16
- package/dist/{emit-result-cmd-KRUV7V74.js → emit-result-cmd-VJZDDWD3.js} +18 -18
- package/dist/{emit-step-cmd-SHBIO2JI.js → emit-step-cmd-ER65MOU6.js} +16 -16
- package/dist/{exec-client-WJLO2KWS.js → exec-client-PHJ4YGYG.js} +7 -7
- package/dist/find-unit-D7MX5YW7.js +24 -0
- package/dist/{findings-cmd-3JP4GYD3.js → findings-cmd-BN6LO7LI.js} +16 -16
- package/dist/{fleet-readiness-U4IZZV52.js → fleet-readiness-FHVT7ZXE.js} +13 -13
- package/dist/governing-source-6WWMRJEI.js +41 -0
- package/dist/{guest-init-HIKD3MHJ.js → guest-init-IREU7IIE.js} +8 -8
- package/dist/{hook-fast-2ENS5AKU.js → hook-fast-OFCB6O5N.js} +3 -3
- package/dist/{hook-install-JTYPE5ZQ.js → hook-install-3SSLJYA3.js} +3 -3
- package/dist/host-checks-KYLKXG2A.js +80 -0
- package/dist/{host-key-V2VVCBGR.js → host-key-4764FB4U.js} +7 -7
- package/dist/{image-tag-EX2R462S.js → image-tag-MYCA26HL.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-EPBASJNK.js +80 -0
- package/dist/{init-7F2KP6XU.js → init-RUY6NPTN.js} +47 -46
- package/dist/{init-agent-RJSMNEWD.js → init-agent-Z6PF22UT.js} +47 -46
- package/dist/{init-cmd-F72BWVFC.js → init-cmd-3M4QENFU.js} +25 -25
- package/dist/{init-update-ZWSICDTJ.js → init-update-V4AWGCUH.js} +22 -22
- package/dist/{install-cmd-LX76Y7NB.js → install-cmd-UJO2EMXF.js} +9 -9
- package/dist/{layout-4FLIBRPO.js → layout-VZ3MERWV.js} +3 -3
- package/dist/{logs-BWGJ2BVT.js → logs-SQJ5BKAP.js} +6 -6
- package/dist/loop-VUNIGNXU.js +90 -0
- package/dist/machine-2KFSAU27.js +80 -0
- package/dist/{machine-skills-UEQA3AUX.js → machine-skills-SAD5OWIH.js} +3 -3
- package/dist/{mcp-install-cmd-DBKKGLHW.js → mcp-install-cmd-7KKOGEFA.js} +3 -3
- package/dist/{mcp-serve-cmd-LFXU5UGJ.js → mcp-serve-cmd-EKANKY4W.js} +9 -9
- package/dist/{paths-CSZZQK3X.js → paths-LYF7UNWL.js} +6 -6
- package/dist/pending-3FQ3GG6T.js +18 -0
- package/dist/{pidfile-TTIUEDXW.js → pidfile-EYAULWL2.js} +7 -7
- package/dist/{record-U7DU6IVT.js → record-CHYO34BN.js} +7 -7
- package/dist/{relay-KZTGUSFJ.js → relay-J3OROVNN.js} +4 -4
- package/dist/{relay-protocol-LG4J5K63.js → relay-protocol-UI7QUDOZ.js} +4 -4
- package/dist/run-cmd-PIMQNBAX.js +114 -0
- package/dist/{runner-agents-32J743FJ.js → runner-agents-KSP3MLAH.js} +3 -3
- package/dist/{runner-env-RGYTHURZ.js → runner-env-AMGOE3UI.js} +13 -13
- package/dist/{runner-identity-VQCIKNBK.js → runner-identity-WZAKGBRX.js} +9 -9
- package/dist/{runner-key-TFFPQCGE.js → runner-key-HGHQYJJX.js} +47 -46
- package/dist/{session-sender-3VFTMIM3.js → session-sender-W6MTYKLE.js} +19 -19
- package/dist/{spec-cmd-RQFIJ75J.js → spec-cmd-RJVMWOOX.js} +17 -17
- package/dist/{starter-pack-LO3D6CPP.js → starter-pack-52PX6IPU.js} +4 -4
- package/dist/{state-IH6JOEJZ.js → state-UIV37NXY.js} +7 -7
- package/dist/{status-KGZWBU26.js → status-YQ25OCUL.js} +47 -46
- package/dist/{sync-cmd-4RSCWFAF.js → sync-cmd-2NBSELL7.js} +18 -18
- package/dist/update-steps-FH7UXI5N.js +81 -0
- package/dist/{watch-NH5QZJLE.js → watch-WQGK2SQB.js} +18 -18
- package/dist/{work-claim-cmd-FNE2ZMVG.js → work-claim-cmd-CQ3DSJBR.js} +21 -21
- package/dist/{work-cmd-32J5UQJO.js → work-cmd-B32BDBV2.js} +14 -14
- package/dist/{work-comment-cmd-ZUZEAIIH.js → work-comment-cmd-L5FTPUGE.js} +16 -16
- package/dist/{work-demo-cmd-56C6JQD3.js → work-demo-cmd-BOKSQSA5.js} +14 -14
- package/dist/{work-launch-LWDQXLGI.js → work-launch-ODTGCNJC.js} +1 -1
- package/dist/{work-logs-cmd-XKVZ2UY6.js → work-logs-cmd-TZXDF3UI.js} +14 -14
- package/dist/{work-needs-attention-cmd-DYD3AIRU.js → work-needs-attention-cmd-WR5GR3B6.js} +14 -14
- package/dist/{work-no-change-cmd-QVD67UG5.js → work-no-change-cmd-TKC3V64O.js} +14 -14
- package/dist/{work-open-pr-cmd-3SSJPKHW.js → work-open-pr-cmd-T2IFI7OR.js} +16 -16
- package/dist/{work-pr-cmd-DF6Q5XHU.js → work-pr-cmd-WM6PGSGK.js} +15 -15
- package/dist/{work-proofs-cmd-2XWS5N2R.js → work-proofs-cmd-E4VJP55B.js} +17 -17
- package/dist/{work-proofs-record-KEZ6Z4QH.js → work-proofs-record-MIVUWECF.js} +24 -24
- package/dist/{work-stop-cmd-4KNMURDC.js → work-stop-cmd-52WGVYF5.js} +14 -14
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-run/SKILL.md +49 -0
- package/skill-pack/shipped.json +2 -0
- package/skill-pack/template/spec/SKILL.md +10 -11
- package/skill-pack/template/writing-specs/SKILL.md +18 -22
- package/dist/caller-VU7QBFHQ.js +0 -23
- package/dist/find-unit-YNIILXQK.js +0 -24
- package/dist/governing-source-VZFU65KP.js +0 -41
- package/dist/host-checks-HZLHQ6WH.js +0 -79
- package/dist/init-XTTWPX6J.js +0 -79
- package/dist/loop-O5JBFZXP.js +0 -90
- package/dist/machine-LGJSYGQS.js +0 -79
- package/dist/pending-BHRSEFXV.js +0 -18
- package/dist/update-steps-3LU3NZQL.js +0 -80
|
@@ -1,12 +1,12 @@
|
|
|
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 { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
7
|
-
import { signingFetchFor } from './chunk-
|
|
8
|
-
import { signerFor } from './chunk-
|
|
9
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-QZP3O6IM.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-2TA2Z5IJ.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-ZZ4AX25R.js';
|
|
6
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-DE5QLWJK.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-6ZMFEZ2K.js';
|
|
8
|
+
import { signerFor } from './chunk-JLCEQXQF.js';
|
|
9
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-O7IJBJ6Z.js';
|
|
10
10
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.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';
|
|
@@ -173,16 +173,17 @@ var BuildTokens = class {
|
|
|
173
173
|
}
|
|
174
174
|
/** Asks the gateway for a token with `body`, retrying a failure about the moment. */
|
|
175
175
|
ask(body) {
|
|
176
|
-
const { config, item, fetchImpl } = this.options;
|
|
176
|
+
const { config, item, fetchImpl, run } = this.options;
|
|
177
|
+
const path = run === true ? `/v1/schedule-runs/${item}/token` : `/v1/work-items/${item}/claim/tokens`;
|
|
177
178
|
return retrySend(
|
|
178
179
|
async () => {
|
|
179
180
|
try {
|
|
180
181
|
return await postJson(
|
|
181
182
|
config.url,
|
|
182
|
-
|
|
183
|
+
path,
|
|
183
184
|
config.apiKey,
|
|
184
185
|
config.appId,
|
|
185
|
-
body,
|
|
186
|
+
run === true ? {} : body,
|
|
186
187
|
fetchImpl,
|
|
187
188
|
void 0,
|
|
188
189
|
await signerFor(config.configPath)
|
|
@@ -523,6 +524,7 @@ function removeKeptContext(jobDir) {
|
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
// src/runner/governing-source.ts
|
|
527
|
+
var SELF_GOVERNED = { ok: true, source: { kind: "self" } };
|
|
526
528
|
var unavailable2 = (why) => ({ ok: false, reason: `context_unavailable: ${why}` });
|
|
527
529
|
function pinnedSourceOf(source) {
|
|
528
530
|
return source.kind === "self" ? null : { repository: source.repository, ref: source.ref, sha: source.sha };
|
|
@@ -551,4 +553,4 @@ async function imageTargetFor(input) {
|
|
|
551
553
|
return { ok: true, repository: resolved.source.repository, pinned: { commit: resolved.source.sha, ref: resolved.source.ref } };
|
|
552
554
|
}
|
|
553
555
|
|
|
554
|
-
export { BuildTokens, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
|
|
556
|
+
export { BuildTokens, SELF_GOVERNED, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-ZIOMM4LL.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { detectActiveSession } from './chunk-
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { detectActiveSession } from './chunk-F4XMG7EO.js';
|
|
7
|
+
import { autoConnect } from './chunk-IPB5UOHH.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
10
|
-
import { launchedItemForSession } from './chunk-
|
|
11
|
-
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-6ZMFEZ2K.js';
|
|
10
|
+
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
11
|
+
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-ZUIHEOSC.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
|
|
14
14
|
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-HE53NIRE.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-2DVQHK37.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-C7YFAPMY.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-6ZMFEZ2K.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-PCY626FL.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-
|
|
12
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-XPXJWIOJ.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-3Q2SEOT3.js';
|
|
12
|
+
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
15
15
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-DPBFNZ6H.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -2,10 +2,10 @@
|
|
|
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, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-XPXJWIOJ.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-3Q2SEOT3.js';
|
|
7
7
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
8
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
8
|
+
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
10
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
4
|
-
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-3Q2SEOT3.js';
|
|
4
|
+
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-ATEMEVFF.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { randomBytes } from 'crypto';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-GH5Y3R5R.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-FLIRUHVT.js';
|
|
5
|
+
import { installStarterPack } from './chunk-P43BSQGV.js';
|
|
6
|
+
import { listWithAnd } from './chunk-ZRTGX4GN.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-C7YFAPMY.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-2TA2Z5IJ.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-XPXJWIOJ.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-3Q2SEOT3.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-6L55K352.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { writeFleetState } from './chunk-
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
6
|
+
import { writeFleetState } from './chunk-XLUQC2PE.js';
|
|
7
|
+
import { writePendingUpdate } from './chunk-IJWQT2Y7.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-KGHVJI7V.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-3QTC4UWC.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-BAWOWJ3G.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-DPBFNZ6H.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, runIsolation, runCommandOf, claimRun, itemTag, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-2YOFSE7U.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-RN5VLKZ2.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-52IVBUIU.js';
|
|
15
|
+
import { RepoFilter } from './chunk-KHC7ICRR.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-HT4OKJDB.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, configForJob } from './chunk-TYLZR7HX.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-26NMJGEY.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 { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
31
|
-
import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-MGOEHY72.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-QZP3O6IM.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-WISVAUTD.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-7NP5G2FV.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-G2J574LS.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-JLCEQXQF.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-O7IJBJ6Z.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-UU6FN6PZ.js';
|
|
30
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-2BMH3373.js';
|
|
31
|
+
import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-ZUIHEOSC.js';
|
|
32
32
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
33
33
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
34
34
|
import { join, dirname } from 'path';
|
|
@@ -2310,6 +2310,11 @@ async function runTick(state) {
|
|
|
2310
2310
|
} while (!claimed && cursor !== null);
|
|
2311
2311
|
if (claimed) break;
|
|
2312
2312
|
}
|
|
2313
|
+
if (!claimed) {
|
|
2314
|
+
const run = await tryClaimAndStartRun(state);
|
|
2315
|
+
if (run === "stop") return;
|
|
2316
|
+
claimed = run === "started";
|
|
2317
|
+
}
|
|
2313
2318
|
if (!claimed) break;
|
|
2314
2319
|
}
|
|
2315
2320
|
reportRepeating(
|
|
@@ -2319,11 +2324,80 @@ async function runTick(state) {
|
|
|
2319
2324
|
"line"
|
|
2320
2325
|
);
|
|
2321
2326
|
}
|
|
2327
|
+
async function tryClaimAndStartRun(state) {
|
|
2328
|
+
const isolation = runIsolation(state.config);
|
|
2329
|
+
if (isolation === void 0) return "none";
|
|
2330
|
+
if (runCommandOf(state.config, state.deps.agents) === void 0) {
|
|
2331
|
+
reportRepeating(
|
|
2332
|
+
state,
|
|
2333
|
+
"the run command",
|
|
2334
|
+
"takes no run of a schedule automation: the agent that runner.commands.implement starts has no command for a run \xB7 set runner.commands.run in the config file"
|
|
2335
|
+
);
|
|
2336
|
+
return "none";
|
|
2337
|
+
}
|
|
2338
|
+
reportRepeating(state, "the run command", void 0);
|
|
2339
|
+
const log = logOf(state);
|
|
2340
|
+
const hostKey = await loadHostKey(state.config.configPath);
|
|
2341
|
+
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
2342
|
+
const claim = await retrySend(() => claimRun({ config: state.config, isolation, cliVersion, ...hostKey === void 0 ? {} : { hostKey: hostKey.hostKey, signer: hostKey.signer }, fetchImpl: state.deps.fetchImpl }), {
|
|
2343
|
+
now: state.deps.now,
|
|
2344
|
+
sleep: state.deps.sleep
|
|
2345
|
+
});
|
|
2346
|
+
if (!claim.ok) {
|
|
2347
|
+
if (isSignatureRefusal(claim.code)) {
|
|
2348
|
+
reportRepeating(state, "the request signature", claim.message ?? claim.reason);
|
|
2349
|
+
return "stop";
|
|
2350
|
+
}
|
|
2351
|
+
const why = claim.status === 404 ? "the gateway has no run routes yet, so the runs of schedule automations wait until it is upgraded" : claim.message ?? claim.reason;
|
|
2352
|
+
reportRepeating(state, "the run claim", `could not claim a run: ${why}`);
|
|
2353
|
+
return "stop";
|
|
2354
|
+
}
|
|
2355
|
+
reportRepeating(state, "the run claim", void 0);
|
|
2356
|
+
reportRepeating(state, "the request signature", void 0);
|
|
2357
|
+
const answer = claim.value;
|
|
2358
|
+
if (answer.kind === "none") return "none";
|
|
2359
|
+
if (answer.kind === "malformed") {
|
|
2360
|
+
reportRepeating(state, "the run claim", answer.reason);
|
|
2361
|
+
return "stop";
|
|
2362
|
+
}
|
|
2363
|
+
const { run, runKey } = answer;
|
|
2364
|
+
if (claimIsAlreadyRunning(state, run.id)) {
|
|
2365
|
+
log.line(`#${run.id} skipped: the run is already running here`);
|
|
2366
|
+
return "none";
|
|
2367
|
+
}
|
|
2368
|
+
const branch = `outerlayer/run-${run.id.slice(0, 8)}`;
|
|
2369
|
+
const item = { id: run.id, number: run.id, trackerKey: run.id, specRepository: run.repository };
|
|
2370
|
+
const tag = itemTag({ item: run.id, claimId: run.id });
|
|
2371
|
+
try {
|
|
2372
|
+
await startJob(
|
|
2373
|
+
state,
|
|
2374
|
+
item,
|
|
2375
|
+
"run",
|
|
2376
|
+
run.id,
|
|
2377
|
+
runKey,
|
|
2378
|
+
branch,
|
|
2379
|
+
void 0,
|
|
2380
|
+
[{ repository: run.repository.toLowerCase(), branch, primary: true }],
|
|
2381
|
+
void 0,
|
|
2382
|
+
void 0,
|
|
2383
|
+
void 0,
|
|
2384
|
+
void 0,
|
|
2385
|
+
{ instructions: run.instructions, issuesLeft: run.issuesLeft, timeLimitSeconds: run.timeLimitSeconds }
|
|
2386
|
+
);
|
|
2387
|
+
} catch (err) {
|
|
2388
|
+
const stranded = [...state.jobs.values()].find((active) => active.job.claimId === run.id);
|
|
2389
|
+
if (stranded === void 0) throw err;
|
|
2390
|
+
const reason = `provision failed: ${describeCallFailure(err)}`;
|
|
2391
|
+
log.error(`${tag} ${reason} \xB7 ending job as failed`);
|
|
2392
|
+
await endJob(state, stranded, "failed", { stage: "provision", reason });
|
|
2393
|
+
}
|
|
2394
|
+
return "started";
|
|
2395
|
+
}
|
|
2322
2396
|
var CLAIM_REFUSAL_CODES = new Set(
|
|
2323
2397
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2324
2398
|
);
|
|
2325
2399
|
async function tryClaimAndStart(state, item, queue) {
|
|
2326
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2400
|
+
const { postJson: postJson2 } = await import('./work-cmd-B32BDBV2.js');
|
|
2327
2401
|
const log = logOf(state);
|
|
2328
2402
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2329
2403
|
const claim = await retrySend(
|
|
@@ -2519,7 +2593,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2519
2593
|
return void 0;
|
|
2520
2594
|
}
|
|
2521
2595
|
}
|
|
2522
|
-
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet, freshDisk, diskHeldElsewhere, codeReview) {
|
|
2596
|
+
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet, freshDisk, diskHeldElsewhere, codeReview, run) {
|
|
2523
2597
|
const log = logOf(state);
|
|
2524
2598
|
const startedAt = nowOf(state);
|
|
2525
2599
|
const repositories = repositoriesOf({ repositories: claimed, repository: item.specRepository, branch });
|
|
@@ -2528,7 +2602,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2528
2602
|
mkdirSync(dirPath, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
2529
2603
|
const runnerRoot = runnerDir(state.config.configPath);
|
|
2530
2604
|
const jobFilePath = join(dirPath, "job.json");
|
|
2531
|
-
const
|
|
2605
|
+
const configuredCommand = queue === "run" ? runCommandOf(state.config, state.deps.agents) : state.config.commands[queue];
|
|
2606
|
+
const jobAgentId = jobAgent({ command: queue === "run" ? state.config.commands.implement : configuredCommand }, state.deps.agents)?.descriptor.id;
|
|
2532
2607
|
let job = {
|
|
2533
2608
|
stateFormat: state.deps.jobStateFormat ?? JOB_STATE_FORMAT,
|
|
2534
2609
|
item: item.number,
|
|
@@ -2537,8 +2612,9 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2537
2612
|
itemKey,
|
|
2538
2613
|
branch,
|
|
2539
2614
|
commitIdentity: identity,
|
|
2540
|
-
// The work item the kept session belongs to. A fleet claim names it too, from the same listing.
|
|
2541
|
-
workItemId: item.id,
|
|
2615
|
+
// The work item the kept session belongs to. A fleet claim names it too, from the same listing. A run has none.
|
|
2616
|
+
...queue === "run" ? {} : { workItemId: item.id },
|
|
2617
|
+
...run === void 0 ? {} : { run },
|
|
2542
2618
|
...freshDisk ? { freshDisk: true } : {},
|
|
2543
2619
|
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2544
2620
|
...codeReview === true ? { codeReview: true } : {},
|
|
@@ -2611,7 +2687,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2611
2687
|
active.job.managedVariables = [...settings.settings.variables, ...settings.settings.proxied ?? []].map(({ name }) => name);
|
|
2612
2688
|
}
|
|
2613
2689
|
}
|
|
2614
|
-
if (state.config.hooks.report) {
|
|
2690
|
+
if (state.config.hooks.report && queue !== "run") {
|
|
2615
2691
|
setStage(job, dirPath, "report");
|
|
2616
2692
|
log.line(`${tag} report started \xB7 phase start`);
|
|
2617
2693
|
const reportStartedMs = nowOf(state).getTime();
|
|
@@ -2649,7 +2725,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2649
2725
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
2650
2726
|
runtime: runtimeOf(state),
|
|
2651
2727
|
queue,
|
|
2652
|
-
workItemId: item.id,
|
|
2728
|
+
...queue === "run" ? {} : { workItemId: item.id },
|
|
2653
2729
|
...freshDisk ? { fresh: true } : {},
|
|
2654
2730
|
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2655
2731
|
item,
|
|
@@ -2696,7 +2772,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2696
2772
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
2697
2773
|
runtime: runtimeOf(state),
|
|
2698
2774
|
queue,
|
|
2699
|
-
workItemId: item.id,
|
|
2775
|
+
...queue === "run" ? {} : { workItemId: item.id },
|
|
2700
2776
|
item,
|
|
2701
2777
|
itemKey,
|
|
2702
2778
|
tokens,
|
|
@@ -2739,7 +2815,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2739
2815
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
2740
2816
|
runtime: runtimeOf(state),
|
|
2741
2817
|
queue,
|
|
2742
|
-
workItemId: item.id,
|
|
2818
|
+
...queue === "run" ? {} : { workItemId: item.id },
|
|
2743
2819
|
...freshDisk ? { fresh: true } : {},
|
|
2744
2820
|
...diskHeldElsewhere ? { diskHeldElsewhere: true } : {},
|
|
2745
2821
|
item,
|
|
@@ -2785,6 +2861,11 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2785
2861
|
}
|
|
2786
2862
|
}
|
|
2787
2863
|
} else {
|
|
2864
|
+
if (queue === "run") {
|
|
2865
|
+
log.error(`${tag} the runner's hooks no longer name a container, microVM or sandbox build, and a run takes none other \xB7 ending job as failed`);
|
|
2866
|
+
await endJob(state, active, "failed", { stage: "provision", reason: "a run goes only to a build in a container or a microVM" });
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2788
2869
|
const runtime = runtimeOf(state);
|
|
2789
2870
|
const build = await startHostBuild(state, active, primary?.repository);
|
|
2790
2871
|
const provisionEnv = provisionEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), {
|
|
@@ -2950,7 +3031,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2950
3031
|
await endJob(state, active, "ok", { stage: "command" });
|
|
2951
3032
|
return;
|
|
2952
3033
|
}
|
|
2953
|
-
const configured = state.config.commands[queue];
|
|
3034
|
+
const configured = queue === "run" ? runCommandOf(state.config, state.deps.agents) : state.config.commands[queue];
|
|
2954
3035
|
const cmdline = configured === void 0 ? void 0 : currentSkillCommand(configured);
|
|
2955
3036
|
if (cmdline !== configured) log.line(`${tag} ${formerSkillProblem([queue])}`);
|
|
2956
3037
|
if (!cmdline) {
|
|
@@ -2958,7 +3039,11 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2958
3039
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2959
3040
|
return;
|
|
2960
3041
|
}
|
|
2961
|
-
const commandEnv =
|
|
3042
|
+
const commandEnv = {
|
|
3043
|
+
...jobCommandEnv(await prepareSession(state, active, item, queue, tag), state.deps.agents, active.job),
|
|
3044
|
+
// What the run looks for is for the agent's command alone, like its session id: no other process of the build reads it.
|
|
3045
|
+
...run === void 0 ? {} : { OUTERLAYER_RUN_INSTRUCTIONS: run.instructions }
|
|
3046
|
+
};
|
|
2962
3047
|
job = active.job;
|
|
2963
3048
|
let running;
|
|
2964
3049
|
try {
|
|
@@ -3050,6 +3135,7 @@ function buildTokensFor(state, active) {
|
|
|
3050
3135
|
return new BuildTokens({
|
|
3051
3136
|
config: claimCalls(state.config, active.job),
|
|
3052
3137
|
item: claimItem(state.config, active.job),
|
|
3138
|
+
...active.job.queue === "run" ? { run: true } : {},
|
|
3053
3139
|
primary: primaryOf(repositoriesOf({ repositories: active.job.repositories, repository: active.job.repository, branch: active.job.branch }))?.repository,
|
|
3054
3140
|
fetchImpl: state.deps.fetchImpl,
|
|
3055
3141
|
now: state.deps.now,
|
|
@@ -3172,7 +3258,7 @@ async function renewLeaseIfDue(state, active, nowMs) {
|
|
|
3172
3258
|
const log = logOf(state);
|
|
3173
3259
|
const tag = `${itemTag(active.job)}`;
|
|
3174
3260
|
if (!needsRenew(active.lastRenewAtMs, nowMs)) return true;
|
|
3175
|
-
const renew = await retrySend(() => renewLease(claimCalls(state.config, active.job), claimItem(state.config, active.job), state.deps.fetchImpl), {
|
|
3261
|
+
const renew = await retrySend(() => active.job.queue === "run" ? renewRun(claimCalls(state.config, active.job), String(active.job.item), state.deps.fetchImpl) : renewLease(claimCalls(state.config, active.job), claimItem(state.config, active.job), state.deps.fetchImpl), {
|
|
3176
3262
|
now: state.deps.now,
|
|
3177
3263
|
sleep: state.deps.sleep
|
|
3178
3264
|
});
|
|
@@ -3404,8 +3490,9 @@ async function watchTick(state, active, nowMs, logMtimeMs) {
|
|
|
3404
3490
|
await endJob(state, active, "failed", { stage: started ? "command" : "provision", reason: unreachable });
|
|
3405
3491
|
return;
|
|
3406
3492
|
}
|
|
3407
|
-
|
|
3408
|
-
|
|
3493
|
+
const limitMinutes = active.job.run === void 0 ? state.config.timeLimitMinutes : active.job.run.timeLimitSeconds / 60;
|
|
3494
|
+
if (isTimedOut(new Date(active.job.startedAt).getTime(), nowMs, limitMinutes)) {
|
|
3495
|
+
log.line(`${tag} past the ${active.job.run === void 0 ? `${state.config.timeLimitMinutes}m` : `${active.job.run.timeLimitSeconds}s`} time limit \xB7 ending job as timed_out`);
|
|
3409
3496
|
await endJob(state, active, "timed_out");
|
|
3410
3497
|
return;
|
|
3411
3498
|
}
|
|
@@ -3472,7 +3559,7 @@ async function rejoinContainerBuild(state, adopted) {
|
|
|
3472
3559
|
if (cores !== void 0) runtimeOf(state).cpus.hold(container.buildId, cores);
|
|
3473
3560
|
const tokens = buildTokensFor(state, adopted);
|
|
3474
3561
|
runtimeOf(state).credentials.set(dirPath, tokens);
|
|
3475
|
-
await ensureTunnel(runtimeOf(state), container, dirPath, config, job.itemKey, job.branch, job.repositories, (line) => logOf(state).line(`${itemTag(job)} ${line}`), () => leaseExpiresAtMs(adopted.job));
|
|
3562
|
+
await ensureTunnel(runtimeOf(state), container, dirPath, configForJob(config, job), job.itemKey, job.branch, job.repositories, (line) => logOf(state).line(`${itemTag(job)} ${line}`), () => leaseExpiresAtMs(adopted.job), job.queue === "run");
|
|
3476
3563
|
try {
|
|
3477
3564
|
await tokens.token("read");
|
|
3478
3565
|
keepGhConfigCurrent(
|
|
@@ -3575,8 +3662,8 @@ async function rejoinMicroVmBuild(state, adopted) {
|
|
|
3575
3662
|
let leaseServed = false;
|
|
3576
3663
|
try {
|
|
3577
3664
|
const repositories = repositoriesOf({ repositories: job.repositories, repository: microvm.repository, branch: job.branch });
|
|
3578
|
-
const gitRemote = repositories.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories, tokens, buildDir: microvm.buildDir, organizationId: job.organizationId, log: (line) => log.line(`${tag} ${line}`) });
|
|
3579
|
-
runtime.tunnels.set(microvm.buildId, await startServicesFor(runtime, config, microvm.buildDir, dirPath, job.itemKey, microvm.builtIns === true, gitRemote, "socket", void 0, inherit));
|
|
3665
|
+
const gitRemote = repositories.length === 0 ? void 0 : gitRemoteFor(runtime, { repositories, tokens, buildDir: microvm.buildDir, organizationId: job.organizationId, log: (line) => log.line(`${tag} ${line}`), ...job.queue === "run" ? { readOnly: true } : {} });
|
|
3666
|
+
runtime.tunnels.set(microvm.buildId, await startServicesFor(runtime, configForJob(config, job), microvm.buildDir, dirPath, job.itemKey, microvm.builtIns === true, gitRemote, "socket", void 0, inherit));
|
|
3580
3667
|
servicesServed = true;
|
|
3581
3668
|
} catch (err) {
|
|
3582
3669
|
log.error(`${tag} the adopted build's services could not be served again: ${describeCallFailure(err)}`);
|
|
@@ -3772,7 +3859,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3772
3859
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3773
3860
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3774
3861
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3775
|
-
return (await import('./check-
|
|
3862
|
+
return (await import('./check-DBYJIP44.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3776
3863
|
},
|
|
3777
3864
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3778
3865
|
log
|
|
@@ -1,12 +1,12 @@
|
|
|
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-F4XMG7EO.js';
|
|
4
|
+
import { autoConnect } from './chunk-IPB5UOHH.js';
|
|
5
|
+
import { workPageUrl } from './chunk-ZRTGX4GN.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-2DVQHK37.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-6ZMFEZ2K.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-JLCEQXQF.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
@@ -486,7 +486,7 @@ async function runWorkLinkSession(opts) {
|
|
|
486
486
|
return await linkSession(opts);
|
|
487
487
|
} catch (err) {
|
|
488
488
|
if (opts.logFailures) {
|
|
489
|
-
const { logHookError } = await import('./hook-fast-
|
|
489
|
+
const { logHookError } = await import('./hook-fast-OFCB6O5N.js');
|
|
490
490
|
const reason = err instanceof Error ? err.message : String(err);
|
|
491
491
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
492
492
|
}
|
|
@@ -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-2YOFSE7U.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-52IVBUIU.js';
|
|
5
|
+
import { runnerDir } from './chunk-O7IJBJ6Z.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
4
4
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
|
-
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-
|
|
6
|
+
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-I45HTSSA.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
9
9
|
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
@@ -574,8 +574,19 @@ function hookErrorsContext(home, writtenBytes, seenBytes) {
|
|
|
574
574
|
return `OuterLayer recorded a hook failure since your last session started \u2014 a refused OUTERLAYER_WORK value, or a work-item session link that could not reach Work. The log is ${path}.`;
|
|
575
575
|
}
|
|
576
576
|
async function handleWorkLaunch(sessionId, home, env, spawnImpl = spawnDetached, cwd = process.cwd()) {
|
|
577
|
-
if (!sessionId
|
|
578
|
-
|
|
577
|
+
if (!sessionId) return void 0;
|
|
578
|
+
if (env.OUTERLAYER_WORK === void 0) {
|
|
579
|
+
if (env.OUTERLAYER_RUN === void 0) return void 0;
|
|
580
|
+
const { parseRunEnv, appendLaunchRecord: appendLaunchRecord2 } = await import('./work-launch-ODTGCNJC.js');
|
|
581
|
+
const run = parseRunEnv(env.OUTERLAYER_RUN);
|
|
582
|
+
if ("reason" in run) {
|
|
583
|
+
logHookError(home, new Error(`OUTERLAYER_RUN ignored: ${run.reason}`));
|
|
584
|
+
return `OuterLayer ignored this session's OUTERLAYER_RUN value: ${sanitizeForContext(run.reason)}. The session is not attached to a run and will not upload. Hook failures are logged to ${join(spoolDir(home), "hook-errors.log")}.`;
|
|
585
|
+
}
|
|
586
|
+
appendLaunchRecord2({ sessionId, run: run.run, ...env.OUTERLAYER_JOB_DIR === void 0 ? {} : { job: env.OUTERLAYER_JOB_DIR } }, home);
|
|
587
|
+
return void 0;
|
|
588
|
+
}
|
|
589
|
+
const { parseWorkItemEnv, appendLaunchRecord, linkSessionArgs } = await import('./work-launch-ODTGCNJC.js');
|
|
579
590
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
580
591
|
if ("reason" in parsed) {
|
|
581
592
|
logHookError(home, new Error(`OUTERLAYER_WORK ignored: ${parsed.reason}`));
|
|
@@ -612,7 +623,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
|
|
|
612
623
|
try {
|
|
613
624
|
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
614
625
|
if (event === void 0) return void 0;
|
|
615
|
-
const { hookRegistered } = await import('./hook-install-
|
|
626
|
+
const { hookRegistered } = await import('./hook-install-3SSLJYA3.js');
|
|
616
627
|
const registered = hookRegistered(event, { home, cwd });
|
|
617
628
|
if (registered !== false) return void 0;
|
|
618
629
|
return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
|
|
@@ -636,7 +647,7 @@ async function maybeRenewWorkLease(event, sessionId, home = homeFromEnv(), env =
|
|
|
636
647
|
if (now - statSync(marker).mtimeMs < WORK_LEASE_RENEW_DEBOUNCE_MS) return;
|
|
637
648
|
} catch {
|
|
638
649
|
}
|
|
639
|
-
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-
|
|
650
|
+
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-ODTGCNJC.js');
|
|
640
651
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
641
652
|
if ("reason" in parsed) return;
|
|
642
653
|
writeFileSync(marker, String(now));
|
|
@@ -648,7 +659,7 @@ async function releaseWorkLeaseOnEnd(event, sessionId, _home = homeFromEnv(), en
|
|
|
648
659
|
try {
|
|
649
660
|
if (kindOf(codec, event) !== "session-ended") return;
|
|
650
661
|
if (!sessionId || env.OUTERLAYER_WORK === void 0) return;
|
|
651
|
-
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-
|
|
662
|
+
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-ODTGCNJC.js');
|
|
652
663
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
653
664
|
if ("reason" in parsed) return;
|
|
654
665
|
spawnImpl(process.execPath, [process.argv[1], ...linkSessionArgs(parsed.number, sessionId, ["--ended", LOG_FAILURES_FLAG])], cwd);
|
|
@@ -812,11 +823,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
812
823
|
const dirs = findGitDirs(cwd);
|
|
813
824
|
if (dirs === void 0) return void 0;
|
|
814
825
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
815
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
826
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-UE5HQRHP.js');
|
|
816
827
|
cleanupEarlierCopies(dirs);
|
|
817
828
|
}
|
|
818
829
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
819
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
830
|
+
const { governanceOf } = await import('./control-plane-launch-XEMMZ7VZ.js');
|
|
820
831
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
821
832
|
recordMissingContext(dirs, sessionId, home);
|
|
822
833
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|