@outerlayer/cli 0.38.0-next.20261105155912 → 0.38.0-next.20261105195352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-setup-RXMEQ7PA.js → agent-setup-THQTFPYB.js} +19 -19
- package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-H5LKM3HG.js} +4 -4
- package/dist/{bridge-F4BNXRM2.js → bridge-RN5JYY7N.js} +7 -7
- package/dist/{build-ZH5MAZNM.js → build-DJDZXY7M.js} +13 -13
- package/dist/{build-disk-GPCMOIZV.js → build-disk-PN7QBYVR.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-ZMVXHOEJ.js → builder-NJXSBAX3.js} +10 -10
- package/dist/caller-T65G6G3Z.js +23 -0
- package/dist/{check-CZM3LZ7Y.js → check-QF7RGLUL.js} +55 -55
- package/dist/{chunk-IG7SBYJY.js → chunk-2VUBHRPG.js} +1 -1
- package/dist/{chunk-Y2HVISUN.js → chunk-365EXSFH.js} +1 -1
- package/dist/{chunk-EVFZUFCO.js → chunk-3CN77FDB.js} +4 -4
- package/dist/{chunk-RVIZRXBK.js → chunk-3FKWVYWC.js} +3 -3
- package/dist/{chunk-PMBG7IYE.js → chunk-3YCKLA4N.js} +10 -10
- package/dist/{chunk-64D2YZK5.js → chunk-44332APJ.js} +1 -1
- package/dist/{chunk-J7MMYBBV.js → chunk-5BU252QJ.js} +5 -5
- package/dist/{chunk-3J7F3VGZ.js → chunk-6S4THFJO.js} +2 -2
- package/dist/{chunk-DP6ZOSCR.js → chunk-6UXPXENL.js} +24 -10
- package/dist/{chunk-Y5ZKDLNX.js → chunk-6VCNDRNW.js} +15 -15
- package/dist/{chunk-L25GQH45.js → chunk-6Z5H7JV3.js} +1 -1
- package/dist/{chunk-OCDG3ZWH.js → chunk-72DXH6AP.js} +9 -9
- package/dist/{chunk-K7KQCOSM.js → chunk-75D54355.js} +9 -9
- package/dist/{chunk-WHPMCF7R.js → chunk-7DHQVVEC.js} +16 -16
- package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
- package/dist/{chunk-RM3K57Q7.js → chunk-A5FIUS53.js} +39 -16
- package/dist/{chunk-45UZPTDQ.js → chunk-AGDRXJSZ.js} +1 -1
- package/dist/{chunk-GLJX2CZY.js → chunk-AUQPAVRV.js} +350 -300
- package/dist/{chunk-XN4A275V.js → chunk-BHATB3L2.js} +23 -13
- package/dist/{chunk-MPGTKJOM.js → chunk-BM25MMUE.js} +3 -3
- package/dist/{chunk-3PR7BPMG.js → chunk-BP3B5R7Y.js} +4 -4
- package/dist/{chunk-K7BI4TLM.js → chunk-DDBCRY3Y.js} +20 -7
- package/dist/{chunk-VV2VLQWG.js → chunk-DSR3VW72.js} +2 -2
- package/dist/{chunk-5YWOGS66.js → chunk-EJOZNQBE.js} +7 -7
- package/dist/{chunk-MY6T3N3A.js → chunk-EUA3SKPV.js} +1 -1
- package/dist/{chunk-ZEEQB7VM.js → chunk-FIXRXONQ.js} +5 -5
- package/dist/{chunk-2C3XLYO5.js → chunk-G74ZB2V4.js} +1 -1
- package/dist/{chunk-EKRLMOWS.js → chunk-GEC2G3SJ.js} +6 -6
- package/dist/{chunk-JCEJARDB.js → chunk-GUYDCCUH.js} +1 -1
- package/dist/{chunk-2RKPEUGK.js → chunk-HBGVQT33.js} +1 -1
- package/dist/{chunk-GZETHU2Z.js → chunk-HLBN3FLS.js} +3 -3
- package/dist/{chunk-IJN3GP4M.js → chunk-HUMQ4NLZ.js} +1 -1
- package/dist/{chunk-HI5RBFL3.js → chunk-HV44EL6A.js} +14 -9
- package/dist/{chunk-VG524OUD.js → chunk-ID3HBQYZ.js} +5 -5
- package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
- package/dist/{chunk-SKV6FO37.js → chunk-KEY5IDTC.js} +4 -4
- package/dist/{chunk-KXCTWOPU.js → chunk-KZG3R5YD.js} +3 -3
- package/dist/{chunk-M4WTELYI.js → chunk-LQJAZ4VK.js} +3 -3
- package/dist/{chunk-DOKFFSOZ.js → chunk-LWHHAZ75.js} +2 -2
- package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
- package/dist/{chunk-35RIDLSD.js → chunk-NAGY6ISM.js} +2 -2
- package/dist/{chunk-QDM23DTW.js → chunk-NFKERPLC.js} +10 -10
- package/dist/{chunk-HOCVTWV2.js → chunk-NIUSFUUS.js} +1 -1
- package/dist/{chunk-EOVVSXRH.js → chunk-NYWLOOIL.js} +7 -7
- package/dist/{chunk-GMRIR2MF.js → chunk-O4CWZFC4.js} +7 -7
- package/dist/{chunk-LMT72G74.js → chunk-OD2F225Q.js} +1 -1
- package/dist/{chunk-MB7IX6DO.js → chunk-ORSNYGXN.js} +1 -1
- package/dist/{chunk-XQSTN7NG.js → chunk-P22JMQJB.js} +3 -3
- package/dist/{chunk-J56SR6X4.js → chunk-P26TVBYV.js} +1 -1
- package/dist/{chunk-HU3POMM4.js → chunk-P64TL3GV.js} +6 -6
- package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
- package/dist/{chunk-OVRLLZPJ.js → chunk-PWCP3YVA.js} +1 -1
- package/dist/{chunk-D5JJQRW7.js → chunk-QNPJ4VZ2.js} +9 -9
- package/dist/{chunk-SUMRSD2Q.js → chunk-QNQS4PET.js} +1 -1
- package/dist/{chunk-6XYKZH3K.js → chunk-R2QIQZ4V.js} +5 -5
- package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
- package/dist/{chunk-5M3KXOPY.js → chunk-S24KG7NY.js} +2 -2
- package/dist/{chunk-W7LJQ2GU.js → chunk-SCH5S3VW.js} +4 -4
- package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
- package/dist/{chunk-VUSYGNNN.js → chunk-SZKBH2BO.js} +1 -1
- package/dist/{chunk-YU6XPJ5I.js → chunk-SZN3CSEP.js} +3 -3
- package/dist/{chunk-TOH7FJH3.js → chunk-TTYZDLGW.js} +42 -31
- package/dist/{chunk-XUXDUOJI.js → chunk-UAVBSFHI.js} +5 -5
- package/dist/{chunk-SSSPZ3TB.js → chunk-UEFLAGRW.js} +1 -1
- package/dist/{chunk-KXKVMSHC.js → chunk-UFDJDVZD.js} +1 -1
- package/dist/{chunk-3B5H5MGB.js → chunk-V52EY5UK.js} +1 -1
- package/dist/{chunk-HVUS5WRU.js → chunk-WH4OWQ6T.js} +3 -3
- package/dist/{chunk-BMYIPXBG.js → chunk-WPLNTUS6.js} +3 -3
- package/dist/{chunk-FRQPX2QR.js → chunk-XGQ7ZHNH.js} +3 -3
- package/dist/{chunk-IYUJFAQD.js → chunk-XJPTMZJG.js} +917 -34
- package/dist/{chunk-2FDWTE6F.js → chunk-ZFZ62TU4.js} +5 -5
- package/dist/{chunk-U63SE2NJ.js → chunk-ZOLDM52Z.js} +1 -1
- package/dist/{chunk-H6H5GCM6.js → chunk-ZRYBGZI7.js} +19 -8
- package/dist/{chunk-CUAV3727.js → chunk-ZZZIOKUN.js} +3 -3
- package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-LIV7LKKT.js} +8 -8
- package/dist/{cli-YMSYVF7O.js → cli-NKKF5PF5.js} +162 -149
- package/dist/{command-ZOWMTOWA.js → command-ZQDMVPD4.js} +50 -50
- package/dist/{config-J4NNZ2XO.js → config-6LQKXZNE.js} +12 -12
- package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-KHOYYXIY.js} +11 -11
- package/dist/{container-start-RZSGWDZG.js → container-start-FGSVYG2T.js} +54 -49
- package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-WYI3QQBI.js} +4 -4
- package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-MUSMZ3ZM.js} +12 -12
- package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-UGMPLX2S.js} +15 -15
- package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-GO4ZIP4J.js} +8 -8
- package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-YOIL75H3.js} +20 -20
- package/dist/{docker-CAMJXBAJ.js → docker-IWTHGXFC.js} +10 -10
- package/dist/{doctor-NILQ2RUT.js → doctor-UUCRZ7JO.js} +55 -55
- package/dist/{emit-artifact-cmd-CGY656UZ.js → emit-artifact-cmd-IG5O5KUV.js} +19 -19
- package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-KGBGKB56.js} +7 -7
- package/dist/{emit-criteria-cmd-3HYUUSDK.js → emit-criteria-cmd-HV3RXCV5.js} +14 -14
- package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-ZKHGJUW7.js} +20 -20
- package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-PBTELK66.js} +14 -14
- package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-JJUNDXEH.js} +18 -18
- package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-5VZQBGLU.js} +14 -14
- package/dist/{exec-client-IPPD3NF4.js → exec-client-PH7FI3Q3.js} +8 -8
- package/dist/find-unit-527IGJNL.js +24 -0
- package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-PVP6D4ZV.js} +14 -14
- package/dist/{fleet-readiness-F46LOKJ6.js → fleet-readiness-YZZ6YDXZ.js} +14 -14
- package/dist/{governing-source-4XYZYZCD.js → governing-source-UUDIJISJ.js} +20 -20
- package/dist/{guest-init-CFJM25V5.js → guest-init-KXBNS3NA.js} +9 -9
- package/dist/{hook-fast-RNST4WJH.js → hook-fast-CRC7M2YT.js} +4 -4
- package/dist/{hook-install-G3FUCXBE.js → hook-install-3UNSUQVP.js} +4 -4
- package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
- package/dist/host-checks-ISCYYAYB.js +79 -0
- package/dist/host-key-535Z4MV6.js +18 -0
- package/dist/{image-tag-5Z2NKCHC.js → image-tag-S5LR2FDL.js} +8 -8
- package/dist/index.js +7 -7
- package/dist/{init-7OHFUQBV.js → init-2JDKKCKC.js} +46 -46
- package/dist/init-CGYS6IGX.js +79 -0
- package/dist/{init-agent-B5ADPZIB.js → init-agent-ESCPFY6L.js} +47 -47
- package/dist/{init-cmd-ZT2PXGPD.js → init-cmd-RXB7ZCFD.js} +28 -28
- package/dist/{init-update-WYM5WSM7.js → init-update-YIQRJG5U.js} +23 -23
- package/dist/{install-cmd-3NOHEA6E.js → install-cmd-OG4IHLHP.js} +10 -10
- package/dist/{layout-RPYMSWCY.js → layout-ZDD5JMAD.js} +4 -4
- package/dist/{logs-XKEW5EOB.js → logs-LLFBENNJ.js} +7 -7
- package/dist/loop-36JR7RB2.js +90 -0
- package/dist/machine-DGMGTVD7.js +79 -0
- package/dist/{machine-skills-RP2Y5F32.js → machine-skills-G253FBPY.js} +4 -4
- package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-WLU64HPE.js} +4 -4
- package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-YJX7HUHL.js} +9 -9
- package/dist/{paths-6AMRSXZK.js → paths-5OXE4APD.js} +7 -7
- package/dist/pending-YC4KF2AW.js +18 -0
- package/dist/{pidfile-3BILBCEO.js → pidfile-ID52SG3L.js} +8 -8
- package/dist/{record-MV6WJGZT.js → record-XIM2Z2JO.js} +8 -8
- package/dist/{relay-CO5I2WOV.js → relay-T22SKZ3G.js} +5 -5
- package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-64ZEAKJ4.js} +5 -5
- package/dist/runner-agents-AGFDPTJN.js +14 -0
- package/dist/runner-env-W7LASDJX.js +24 -0
- package/dist/{runner-identity-IVP2GW33.js → runner-identity-T7HDG3QU.js} +10 -10
- package/dist/{runner-key-VCWF2EN7.js → runner-key-RXTJDYTI.js} +46 -46
- package/dist/{session-sender-PWYFVWN6.js → session-sender-B6CSWAHX.js} +19 -19
- package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
- package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-HIQYYRBQ.js} +15 -15
- package/dist/{starter-pack-W6S3L76K.js → starter-pack-AK7Z6XLF.js} +5 -5
- package/dist/state-ZQN2O2PB.js +18 -0
- package/dist/{status-HHM6TH6J.js → status-YD7P337P.js} +46 -46
- package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
- package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-BRP4QE2W.js} +18 -18
- package/dist/update-steps-SBBEBOIJ.js +80 -0
- package/dist/{watch-IA6UDVSF.js → watch-B3NVFDVP.js} +18 -18
- package/dist/{work-claim-cmd-7TLC4DKU.js → work-claim-cmd-H6M5ANKL.js} +20 -20
- package/dist/{work-cmd-2LXE27RX.js → work-cmd-DJNV646Q.js} +14 -14
- package/dist/{work-comment-cmd-ER53OPLH.js → work-comment-cmd-6QZQPRJ7.js} +17 -17
- package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-6MZIVYHK.js} +14 -14
- package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-IS4GV5VC.js} +14 -14
- package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-KZSKJKEQ.js} +15 -15
- package/dist/{work-pr-cmd-FCNFYWUR.js → work-pr-cmd-ARVEEUF3.js} +14 -14
- package/dist/{work-proofs-cmd-UQU6SSFD.js → work-proofs-cmd-YUH3XYQE.js} +16 -16
- package/dist/{work-proofs-record-MKCYQLS2.js → work-proofs-record-BDYS2VU2.js} +24 -24
- package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-U67OPSCS.js} +14 -14
- package/package.json +2 -2
- package/dist/caller-J7FR4VBJ.js +0 -23
- package/dist/find-unit-N3OJBFS5.js +0 -24
- package/dist/host-checks-PPTMNHRA.js +0 -79
- package/dist/host-key-QUBI74MS.js +0 -18
- package/dist/init-5ERGXSUD.js +0 -79
- package/dist/loop-HTKTSGBA.js +0 -90
- package/dist/machine-RBYGRRSM.js +0 -79
- package/dist/pending-C4XQUKWA.js +0 -18
- package/dist/runner-agents-FQ4FODZN.js +0 -14
- package/dist/runner-env-72OTIZV2.js +0 -24
- package/dist/state-C3FRODOO.js +0 -18
- package/dist/update-steps-WD25IX2R.js +0 -80
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import { headlessNames,
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-P64TL3GV.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-G74ZB2V4.js';
|
|
5
|
+
import { parseRunnerEnv, withoutCredentialLines } from './chunk-6UXPXENL.js';
|
|
6
|
+
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-A5FIUS53.js';
|
|
7
|
+
import { defaultAgents } from './chunk-XJPTMZJG.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname } from 'path';
|
|
10
10
|
|
|
@@ -17,9 +17,15 @@ var RunnerEnvError = class extends Error {
|
|
|
17
17
|
function runnerEnvPath(configPath) {
|
|
18
18
|
return join(dirname(configPath), "runner.env");
|
|
19
19
|
}
|
|
20
|
-
function credentialFromStdin(text, agents = defaultAgents()) {
|
|
20
|
+
function credentialFromStdin(text, agents = defaultAgents(), named) {
|
|
21
21
|
const value = (text ?? "").trim();
|
|
22
22
|
if (value === "") return void 0;
|
|
23
|
+
const owner = named === void 0 ? void 0 : runnerAgentNamed(named, agents);
|
|
24
|
+
if (owner !== void 0 && owner.descriptor.id !== credentialAgent(agents)?.descriptor.id) {
|
|
25
|
+
const variable = owner.credentials.identify(value);
|
|
26
|
+
if (variable !== void 0) return { variable, value };
|
|
27
|
+
throw new RunnerEnvError(`the value on stdin is not a credential ${owner.descriptor.label} takes, so nothing was written. ${owner.descriptor.label} needs ${orList(credentialShapes(owner.descriptor).map((shape) => `${shape.phrase}, which starts ${shape.starts}`))}. Pipe one value.`);
|
|
28
|
+
}
|
|
23
29
|
for (const agent2 of runnerAgents(agents)) {
|
|
24
30
|
const variable = agent2.credentials.identify(value);
|
|
25
31
|
if (variable !== void 0) return { variable, value };
|
|
@@ -28,14 +34,18 @@ function credentialFromStdin(text, agents = defaultAgents()) {
|
|
|
28
34
|
if (agent === void 0) throw new RunnerEnvError("no agent takes a credential on stdin, so nothing was written.");
|
|
29
35
|
throw new RunnerEnvError(`the value on stdin is not a ${credentialForms(agent.descriptor).label} credential, so nothing was written. Pipe one value: ${orList(credentialShapes(agent.descriptor).map((shape) => `${shape.phrase}, which starts ${shape.starts}`))}.`);
|
|
30
36
|
}
|
|
31
|
-
function setsCredential(path, agents) {
|
|
32
|
-
if (!existsSync(path)) return false;
|
|
33
|
-
const env = parseRunnerEnv(readFileSync(path, "utf8"));
|
|
34
|
-
return forwardedVariables(agents).some((name) => env[name]);
|
|
35
|
-
}
|
|
36
37
|
function hasStoredCredential(configPath, agents = defaultAgents()) {
|
|
38
|
+
return storedCredentialVariables(configPath, agents).length > 0;
|
|
39
|
+
}
|
|
40
|
+
function storedCredentialVariables(configPath, agents = defaultAgents()) {
|
|
37
41
|
const own = credentialEnvPath(configPath, agents);
|
|
38
|
-
|
|
42
|
+
const found = /* @__PURE__ */ new Set();
|
|
43
|
+
for (const path of [own, runnerEnvPath(configPath)]) {
|
|
44
|
+
if (path === void 0 || !existsSync(path)) continue;
|
|
45
|
+
const env = parseRunnerEnv(readFileSync(path, "utf8"));
|
|
46
|
+
for (const name of forwardedVariables(agents)) if (env[name]) found.add(name);
|
|
47
|
+
}
|
|
48
|
+
return [...found];
|
|
39
49
|
}
|
|
40
50
|
function replaceFile(path, text) {
|
|
41
51
|
const temporary = `${path}.${process.pid}.tmp`;
|
|
@@ -70,4 +80,4 @@ function restartForCredential(state, unitName = DEFAULT_UNIT_NAME, agents = defa
|
|
|
70
80
|
return `The service ${unitName} loads ${file} only when it starts. Restart it so it uses the stored credential: sudo systemctl restart ${unitName}`;
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential };
|
|
83
|
+
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential, storedCredentialVariables };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-HV44EL6A.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-ZBPUHNUZ.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-SZKBH2BO.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-XJPTMZJG.js';
|
|
11
11
|
import { remoteLookupFailed } from './chunk-QAFR65VC.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-HUMQ4NLZ.js';
|
|
5
|
+
import { autoConnect } from './chunk-LWHHAZ75.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-SZKBH2BO.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.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-XJPTMZJG.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity, scrubText } from './chunk-QAFR65VC.js';
|
|
15
15
|
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-2JIGPSVF.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
4
|
-
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-
|
|
4
|
+
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
9
|
-
import { hookCodec } from './chunk-
|
|
10
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
9
|
+
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
10
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
11
11
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, readdirSync, unlinkSync, statSync, appendFileSync, opendirSync } from 'fs';
|
|
@@ -609,7 +609,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
|
|
|
609
609
|
try {
|
|
610
610
|
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
611
611
|
if (event === void 0) return void 0;
|
|
612
|
-
const { hookRegistered } = await import('./hook-install-
|
|
612
|
+
const { hookRegistered } = await import('./hook-install-3UNSUQVP.js');
|
|
613
613
|
const registered = hookRegistered(event, { home, cwd });
|
|
614
614
|
if (registered !== false) return void 0;
|
|
615
615
|
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.`;
|
|
@@ -809,11 +809,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
809
809
|
const dirs = findGitDirs(cwd);
|
|
810
810
|
if (dirs === void 0) return void 0;
|
|
811
811
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
812
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
812
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-WYI3QQBI.js');
|
|
813
813
|
cleanupEarlierCopies(dirs);
|
|
814
814
|
}
|
|
815
815
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
816
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
816
|
+
const { governanceOf } = await import('./control-plane-launch-UGMPLX2S.js');
|
|
817
817
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
818
818
|
recordMissingContext(dirs, sessionId, home);
|
|
819
819
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -849,6 +849,19 @@ function hasExcludeBlock(gitCommonDir) {
|
|
|
849
849
|
return false;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
+
function parseHookArgs(args) {
|
|
853
|
+
if (args[0] === "--agent") return { agent: args[1], event: args[2] };
|
|
854
|
+
return { agent: void 0, event: args[0] };
|
|
855
|
+
}
|
|
856
|
+
async function runHookArgs(args, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached, write = (out) => void process.stdout.write(out)) {
|
|
857
|
+
const { agent, event } = parseHookArgs(args);
|
|
858
|
+
const codec = hookCodec(agent);
|
|
859
|
+
if (codec === void 0) {
|
|
860
|
+
logHookError(home, new Error(`hook call ignored: ${JSON.stringify(agent)} is not an agent with hooks`));
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
return runHookFast(event, home, read, env, spawnImpl, write, codec);
|
|
864
|
+
}
|
|
852
865
|
async function runHookFast(event, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached, write = (out) => void process.stdout.write(out), codec = defaultCodec()) {
|
|
853
866
|
try {
|
|
854
867
|
const stdin = read();
|
|
@@ -977,4 +990,4 @@ function recordLinkExitFailure(argv, home = homeFromEnv(), target = process) {
|
|
|
977
990
|
});
|
|
978
991
|
}
|
|
979
992
|
|
|
980
|
-
export { AUTO_SYNC_DEBOUNCE_MS, DUPLICATE_RUN_WINDOW_MS, SYNC_STALE_AFTER_MS, WORK_LEASE_RENEW_DEBOUNCE_MS, WORK_LINK_RETRIES, assessSyncHealth, checkInstalledCliStaleness, contextPossiblyGoverned, formatAgo, handleWorkLaunch, hookFiredMarkerPath, installedCliDistDir, isDuplicateRun, logHookError, machineSkillsContext, markWorkLeaseRenewed, maybeAutoSync, maybeRenewWorkLease, readSyncStatus, recordLinkExitFailure, refreshCommand, releaseWorkLeaseOnEnd, runHookFast, sanitizeForContext, spoolDir, workspaceRootOf, writeSyncStatus };
|
|
993
|
+
export { AUTO_SYNC_DEBOUNCE_MS, DUPLICATE_RUN_WINDOW_MS, SYNC_STALE_AFTER_MS, WORK_LEASE_RENEW_DEBOUNCE_MS, WORK_LINK_RETRIES, assessSyncHealth, checkInstalledCliStaleness, contextPossiblyGoverned, formatAgo, handleWorkLaunch, hookFiredMarkerPath, installedCliDistDir, isDuplicateRun, logHookError, machineSkillsContext, markWorkLeaseRenewed, maybeAutoSync, maybeRenewWorkLease, parseHookArgs, readSyncStatus, recordLinkExitFailure, refreshCommand, releaseWorkLeaseOnEnd, runHookArgs, runHookFast, sanitizeForContext, spoolDir, workspaceRootOf, writeSyncStatus };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-KEY5IDTC.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-G74ZB2V4.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-V52EY5UK.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-O4CWZFC4.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-SZKBH2BO.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { parseProofsConfig } from './chunk-
|
|
11
|
+
import { parseProofsConfig } from './chunk-XJPTMZJG.js';
|
|
12
12
|
import { resolveRepoIdentity } from './chunk-QAFR65VC.js';
|
|
13
13
|
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit } from './chunk-2JIGPSVF.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-ISCYYAYB.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-ISCYYAYB.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -368,7 +368,7 @@ async function runWorkProofs(opts) {
|
|
|
368
368
|
async function runWorkProofsCommand(opts) {
|
|
369
369
|
try {
|
|
370
370
|
if (opts.record) {
|
|
371
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
371
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-BDYS2VU2.js');
|
|
372
372
|
const result2 = await runWorkProofsRecord(opts);
|
|
373
373
|
process.exitCode = result2.exitCode;
|
|
374
374
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-UAVBSFHI.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-HV44EL6A.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-S24KG7NY.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-365EXSFH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
9
|
-
import { LEGACY_AGENT } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-XJPTMZJG.js';
|
|
9
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
12
12
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-HV44EL6A.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-SZKBH2BO.js';
|
|
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-UEFLAGRW.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-P26TVBYV.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-XJPTMZJG.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-G74ZB2V4.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-G74ZB2V4.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-ORSNYGXN.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-NIUSFUUS.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-G74ZB2V4.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-XJPTMZJG.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-
|
|
4
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-XJPTMZJG.js';
|
|
4
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|
|
7
7
|
|
|
@@ -136,17 +136,22 @@ function linkFolder(repoRoot, folder) {
|
|
|
136
136
|
}
|
|
137
137
|
var URGENCY = { failed: 4, blocked: 3, elsewhere: 2, linked: 1, present: 0 };
|
|
138
138
|
function linkAgentSkills(repoRoot, agents = defaultAgents()) {
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
const seen = /* @__PURE__ */ new Set();
|
|
140
|
+
const targets = contextAgents(agents).flatMap(
|
|
141
|
+
(agent) => agent.descriptor.context.repoSkillFolders.flatMap((folder) => {
|
|
142
|
+
if (seen.has(folder)) return [];
|
|
143
|
+
seen.add(folder);
|
|
144
|
+
return [{ agent, folder }];
|
|
143
145
|
})
|
|
144
146
|
);
|
|
147
|
+
const outcomes = targets.map(({ agent, folder }) => {
|
|
148
|
+
const outcome = linkFolder(repoRoot, folder);
|
|
149
|
+
return agent.descriptor.id === LEGACY_AGENT ? outcome : { ...outcome, folder, agent: agent.descriptor.label };
|
|
150
|
+
});
|
|
145
151
|
const first = outcomes.reduce((pick, outcome) => pick === void 0 || URGENCY[outcome.status] > URGENCY[pick.status] ? outcome : pick, void 0);
|
|
146
152
|
if (first === void 0) return { status: "present" };
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return { ...first, folders: outcomes.flatMap((outcome, index) => outcome.status === "linked" ? [linkedFolders[index].folder] : []) };
|
|
153
|
+
if (first.status !== "linked" || targets.every(({ agent }) => agent.descriptor.id === LEGACY_AGENT)) return first;
|
|
154
|
+
return { ...first, folders: outcomes.flatMap((outcome, index) => outcome.status === "linked" ? [targets[index].folder] : []) };
|
|
150
155
|
}
|
|
151
156
|
function removeEmptyTree(abs) {
|
|
152
157
|
for (const entry of readdirSync(abs, { withFileTypes: true })) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
5
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
-
import { withTokenHeader } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-S24KG7NY.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-365EXSFH.js';
|
|
5
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-SZKBH2BO.js';
|
|
6
|
+
import { withTokenHeader } from './chunk-UAVBSFHI.js';
|
|
7
7
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
10
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-XJPTMZJG.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
4
4
|
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, basename } from 'path';
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-6S4THFJO.js';
|
|
4
|
+
import { parseSize } from './chunk-3YCKLA4N.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-UAVBSFHI.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-A5FIUS53.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-EUA3SKPV.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-SCH5S3VW.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-UAVBSFHI.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-ZRYBGZI7.js';
|
|
4
|
+
import { spoolDir } from './chunk-DDBCRY3Y.js';
|
|
5
5
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-XJPTMZJG.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { CaptureDaemon } from './chunk-QAFR65VC.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-BM25MMUE.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-SZKBH2BO.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
5
|
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
6
|
-
import { hookCodec } from './chunk-
|
|
6
|
+
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { readFileSync } from 'fs';
|
|
9
9
|
import { spawn } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-P64TL3GV.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-6UXPXENL.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { buildRefusalReason } from './chunk-
|
|
6
|
-
import { 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-
|
|
10
|
-
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-O4CWZFC4.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ID3HBQYZ.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-S24KG7NY.js';
|
|
6
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-XGQ7ZHNH.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-SZKBH2BO.js';
|
|
8
|
+
import { signerFor } from './chunk-ZOLDM52Z.js';
|
|
9
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-G74ZB2V4.js';
|
|
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';
|
|
13
13
|
import { relative, join, dirname } from 'path';
|
|
@@ -309,8 +309,8 @@ var BuildTokens = class {
|
|
|
309
309
|
};
|
|
310
310
|
|
|
311
311
|
// src/runner/control-plane-delivery.ts
|
|
312
|
-
function shimScript() {
|
|
313
|
-
return SHIM_SCRIPT;
|
|
312
|
+
function shimScript(subcommand) {
|
|
313
|
+
return subcommand === void 0 ? SHIM_SCRIPT : shimScriptFor(subcommand);
|
|
314
314
|
}
|
|
315
315
|
function commandWithShim(job, cmdline) {
|
|
316
316
|
const path = `PATH=${SHIM_DIR}:"$PATH"; export PATH; `;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-G74ZB2V4.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-AUQPAVRV.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-P64TL3GV.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-GUYDCCUH.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-O4CWZFC4.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-KEY5IDTC.js';
|
|
9
|
+
import { signerFor } from './chunk-ZOLDM52Z.js';
|
|
10
|
+
import { pidFilePath } from './chunk-G74ZB2V4.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -1,15 +1,15 @@
|
|
|
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-HUMQ4NLZ.js';
|
|
4
|
+
import { autoConnect } from './chunk-LWHHAZ75.js';
|
|
5
|
+
import { workPageUrl } from './chunk-BM25MMUE.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-VVZIFOAN.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-SZKBH2BO.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-ZOLDM52Z.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity } from './chunk-QAFR65VC.js';
|
|
15
15
|
|
|
@@ -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-CRC7M2YT.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,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-NIUSFUUS.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';
|