@outerlayer/cli 0.38.0-next.20261106012958 → 0.38.0-next.20261106232046
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 +19 -3
- package/dist/agent-setup-IJNDJ4XL.js +40 -0
- package/dist/{agent-subcommand-UNSXJUHA.js → agent-subcommand-XECZFIAS.js} +4 -4
- package/dist/{artifact-link-cmd-QP6VO7AJ.js → artifact-link-cmd-F6M2BDT7.js} +2 -2
- package/dist/{bridge-JI4IO7JN.js → bridge-LDKKFAHH.js} +7 -7
- package/dist/{build-2L3L2OJO.js → build-PTFRHSXI.js} +13 -13
- package/dist/{build-disk-CKBEEF4N.js → build-disk-EO2VG3MF.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-PKDA7X2H.js → builder-LCIBBOWQ.js} +10 -10
- package/dist/caller-Y3RGYXHU.js +23 -0
- package/dist/{check-FG32SYJF.js → check-BNDMAAVS.js} +72 -56
- package/dist/{chunk-T524XQKI.js → chunk-2IVRTP6M.js} +1 -1
- package/dist/{chunk-NEEMG462.js → chunk-2KL345FW.js} +1 -1
- package/dist/{chunk-YXXJBHHF.js → chunk-2VNT47DG.js} +10 -2
- package/dist/{chunk-FGVVBYCT.js → chunk-3HEBSWNE.js} +1 -1
- package/dist/{chunk-RUJR3SDB.js → chunk-3UKDQNFF.js} +1 -1
- package/dist/{chunk-O4Z2YVC3.js → chunk-6AKP3FBS.js} +5 -5
- package/dist/{chunk-VWNQRD4I.js → chunk-6IXZHORY.js} +4 -4
- package/dist/{chunk-VNT2IRLM.js → chunk-6Y4ZE74I.js} +70 -11
- package/dist/{chunk-ONOINHY4.js → chunk-7GQE5D72.js} +1 -1
- package/dist/{chunk-EXIZ3G6I.js → chunk-7VVTZNUP.js} +6 -6
- package/dist/{chunk-DXBYNJRM.js → chunk-B7CAUXSV.js} +6 -6
- package/dist/{chunk-TAEDH2SU.js → chunk-BEQYO2VO.js} +1 -1
- package/dist/{chunk-QWDGHEQL.js → chunk-BJYX3PMU.js} +1 -1
- package/dist/{chunk-CGXYPLK3.js → chunk-BU25W7GF.js} +2 -2
- package/dist/{chunk-X2DX3A7H.js → chunk-C3P637LO.js} +1 -1
- package/dist/{chunk-4MSEUIMK.js → chunk-DDPCKTVN.js} +7 -7
- package/dist/{chunk-EERD7VI3.js → chunk-DRUM7NWK.js} +1 -1
- package/dist/{chunk-GMRVWRHD.js → chunk-EOXQCUFJ.js} +2 -2
- package/dist/{chunk-U7L4GBGS.js → chunk-FPPBL7ZC.js} +1 -1
- package/dist/{chunk-EFAOERZH.js → chunk-FSQDS7A6.js} +1 -1
- package/dist/{chunk-YWWW47OY.js → chunk-FSYEDSSA.js} +1 -1
- package/dist/{chunk-3FAJMXBA.js → chunk-FZD6GIW5.js} +9 -9
- package/dist/{chunk-KLQLQQGG.js → chunk-GMLYSAKU.js} +3 -3
- package/dist/{chunk-ABN4UBR5.js → chunk-HCIOUSUX.js} +2 -3
- package/dist/{chunk-QONY6C2B.js → chunk-HI5FSBWD.js} +15 -9
- package/dist/{chunk-3XWZKL2P.js → chunk-ICKFR2DB.js} +7 -7
- package/dist/{chunk-JTDMSQMI.js → chunk-IQHREL5T.js} +8 -8
- package/dist/{chunk-FOUG2R4Q.js → chunk-LPTMKPCD.js} +1 -1
- package/dist/{chunk-HG2ZG6ZU.js → chunk-LQEI4HZF.js} +1 -1
- package/dist/{chunk-ZTJTAKVW.js → chunk-LYBHKNEG.js} +1 -1
- package/dist/{chunk-5VAXNAOD.js → chunk-LYORNXIT.js} +1 -1
- package/dist/{chunk-OVHBDADU.js → chunk-MLM4BYK2.js} +1 -1
- package/dist/{chunk-RSRNZB4T.js → chunk-MXSQINKG.js} +7 -7
- package/dist/{chunk-L4ACBB5R.js → chunk-NDLWXIVK.js} +1 -1
- package/dist/{chunk-S7CE7QCF.js → chunk-NMSWL2N3.js} +3 -3
- package/dist/{chunk-XDRZ3BNA.js → chunk-NOBB3LEO.js} +1 -1
- package/dist/{chunk-256R6O56.js → chunk-O3TOA2KE.js} +8 -5
- package/dist/{chunk-YZRDJOOR.js → chunk-OAOZDJYT.js} +3 -3
- package/dist/{chunk-IXB2IIEW.js → chunk-OCQ5FQZR.js} +1 -1
- package/dist/{chunk-AVEF3T6Y.js → chunk-OO33S4AF.js} +7 -5
- package/dist/{chunk-BO3NOGKE.js → chunk-OSHKKESX.js} +77 -8
- package/dist/{chunk-RZ6WJTUP.js → chunk-PJNOTSB5.js} +1 -1
- package/dist/{chunk-ZLJXMXZP.js → chunk-PVLDVUNJ.js} +2 -2
- package/dist/{chunk-MPE4NOKD.js → chunk-QF6US5YN.js} +2 -2
- package/dist/{chunk-OUHM6U6Z.js → chunk-QHT6PIFP.js} +144 -5
- package/dist/{chunk-45TFVWNT.js → chunk-QQSXVGVH.js} +6 -6
- package/dist/{chunk-DVFGCVTV.js → chunk-QZAZPRDW.js} +5 -5
- package/dist/{chunk-XE2PXGZT.js → chunk-RWNVQSGX.js} +3 -3
- package/dist/{chunk-EHJYXABQ.js → chunk-RZXP427Z.js} +1 -1
- package/dist/{chunk-OGQW7A4G.js → chunk-S35KTDTM.js} +10 -10
- package/dist/{chunk-3DVCPRKE.js → chunk-SDUCKX46.js} +9 -9
- package/dist/{chunk-CCMKLF7K.js → chunk-SEAVWMW2.js} +6 -6
- package/dist/{chunk-BL6CCU26.js → chunk-SOB4KVRZ.js} +6 -6
- package/dist/{chunk-U5EE7PGC.js → chunk-SYENSVOK.js} +3 -3
- package/dist/{chunk-2MQQASWB.js → chunk-SZQKS4QK.js} +6 -6
- package/dist/{chunk-ERQLHUWU.js → chunk-TWWAV67F.js} +5 -5
- package/dist/{chunk-Z4R36YDJ.js → chunk-V26DDAWZ.js} +1367 -548
- package/dist/{chunk-OFWNBTLU.js → chunk-V43NFQE3.js} +1 -1
- package/dist/{chunk-WF2NXBOM.js → chunk-VLAVNWM4.js} +7 -7
- package/dist/{chunk-SMFWLPXC.js → chunk-VW5NG2AR.js} +19 -18
- package/dist/{chunk-PARDL7HH.js → chunk-VYAFSV43.js} +1 -1
- package/dist/{chunk-DL5N6V3D.js → chunk-VZGTPITG.js} +1 -1
- package/dist/{chunk-AJC5Q2NY.js → chunk-WCBLLIPD.js} +5 -5
- package/dist/{chunk-AMG5ICDO.js → chunk-WCQJNDQC.js} +4 -4
- package/dist/{chunk-YKWOVYVN.js → chunk-WDJPGE6K.js} +9 -6
- package/dist/{chunk-MDKLSY43.js → chunk-WX7XACEU.js} +1 -1
- package/dist/{chunk-5R5FEPLH.js → chunk-X25VXXCF.js} +99 -18
- package/dist/{chunk-ZO3RUMUR.js → chunk-X32HZMMA.js} +4 -4
- package/dist/{chunk-K6JOU4CT.js → chunk-XDURUWQP.js} +156 -51
- package/dist/{chunk-FER7JJ3S.js → chunk-XKJZHY4J.js} +1 -1
- package/dist/{chunk-PMJ6IEUM.js → chunk-XSEAGCYW.js} +7 -7
- package/dist/{chunk-ZCEM4GJ5.js → chunk-YFARFA4Y.js} +3 -3
- package/dist/{chunk-DK5YFDYI.js → chunk-YSCRMX2T.js} +8 -8
- package/dist/{claude-launcher-FHQTSQOM.js → claude-launcher-62NZAUKT.js} +7 -7
- package/dist/{cli-GNC4MFMP.js → cli-GJQGNNFM.js} +161 -154
- package/dist/{command-47EYM2FJ.js → command-3QXN5ZTK.js} +59 -52
- package/dist/config-4YPIDOHH.js +22 -0
- package/dist/{connect-cmd-4JO2LBUT.js → connect-cmd-GAWR7QSH.js} +13 -13
- package/dist/{container-start-XR7KANS6.js → container-start-FZCTPBZG.js} +48 -48
- package/dist/{context-cleanup-6CTKLEUT.js → context-cleanup-L3ZKG6EU.js} +4 -4
- package/dist/{context-show-cmd-Z7NQAKNE.js → context-show-cmd-YJ4IJ2WI.js} +14 -14
- package/dist/{control-plane-launch-4PLBJKBS.js → control-plane-launch-GOKEVTPX.js} +14 -14
- package/dist/{demo-record-cmd-3B2ME2ZI.js → demo-record-cmd-AZSEQXO4.js} +8 -8
- package/dist/{demo-voice-cmd-LIXAA3OS.js → demo-voice-cmd-KHEMTR5T.js} +20 -20
- package/dist/{dist-3TV6G4YF.js → dist-RMEOTTVL.js} +2 -2
- package/dist/{docker-FPEQS6HK.js → docker-QMKIWXHF.js} +10 -10
- package/dist/{doctor-AFH6UUX6.js → doctor-5PTO2DN7.js} +56 -50
- package/dist/{emit-artifact-cmd-5XIEUWFX.js → emit-artifact-cmd-72QEOEJH.js} +19 -19
- package/dist/{emit-cmd-IKYF27IK.js → emit-cmd-X5F5HUTQ.js} +7 -7
- package/dist/{emit-criteria-cmd-YS5ZSLCN.js → emit-criteria-cmd-HTHETRH6.js} +16 -16
- package/dist/{emit-demo-cmd-IDC2JC46.js → emit-demo-cmd-LFYJURFC.js} +20 -20
- package/dist/{emit-finding-cmd-C4NRTIZO.js → emit-finding-cmd-GFWCMJFY.js} +16 -16
- package/dist/{emit-result-cmd-GC2I7JQU.js → emit-result-cmd-FTWLKM6G.js} +18 -18
- package/dist/{emit-step-cmd-TTH4FYFW.js → emit-step-cmd-J4L2OAWE.js} +16 -16
- package/dist/{exec-client-DT5EWVQL.js → exec-client-YQH4ZSRM.js} +8 -8
- package/dist/find-unit-F3Q54LLR.js +24 -0
- package/dist/{findings-cmd-MSV52ODM.js → findings-cmd-VFE7VINC.js} +16 -16
- package/dist/{fleet-readiness-O76CSI7M.js → fleet-readiness-FGQPCFSP.js} +14 -14
- package/dist/{governing-source-QEFYVBQF.js → governing-source-NMZSHEHR.js} +21 -21
- package/dist/{guest-init-X7M5AIOI.js → guest-init-DPZAVCWH.js} +9 -9
- package/dist/{hook-fast-T6FOTZHA.js → hook-fast-3VMKCCUO.js} +1 -1
- package/dist/{hook-install-OUSUHQ6C.js → hook-install-TTF6LASI.js} +4 -4
- package/dist/host-checks-ANVIJJZI.js +79 -0
- package/dist/host-key-QZWN6ECO.js +18 -0
- package/dist/{image-tag-AE6EKDPV.js → image-tag-5TZ7MF5H.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/{init-PUN3PKOT.js → init-5ZTKM5KM.js} +46 -46
- package/dist/init-6AAXECDJ.js +79 -0
- package/dist/{init-agent-D3KK24QX.js → init-agent-FOR3XGZ2.js} +46 -46
- package/dist/{init-cmd-LGRN3U7K.js → init-cmd-7X22EFRG.js} +27 -27
- package/dist/{init-update-ZL2J7EQI.js → init-update-JLOPXC5U.js} +24 -24
- package/dist/{install-cmd-4ID4VBH2.js → install-cmd-JDA4CNYW.js} +10 -10
- package/dist/{layout-G6K72TXK.js → layout-AKKICGLZ.js} +4 -4
- package/dist/{login-browser-I6CWBA7K.js → login-browser-VNPN4FVO.js} +2 -2
- package/dist/{logs-DIA3NWC2.js → logs-WPNNAY5E.js} +7 -7
- package/dist/loop-DFDQQC2Q.js +90 -0
- package/dist/machine-W3R5I6EM.js +79 -0
- package/dist/{machine-skills-JLJJDXBS.js → machine-skills-GGLBQANZ.js} +4 -4
- package/dist/{mcp-install-cmd-OTAX7QP2.js → mcp-install-cmd-3NHDPAML.js} +4 -4
- package/dist/{mcp-serve-cmd-63KQEQYS.js → mcp-serve-cmd-CLVZFL37.js} +9 -9
- package/dist/{paths-KVMMJQ7T.js → paths-PSLRVOVY.js} +7 -7
- package/dist/pending-GWDAXQSA.js +18 -0
- package/dist/{pidfile-NCBBWZNH.js → pidfile-5E4YPCTC.js} +8 -8
- package/dist/{record-PQDJVKYV.js → record-7ZMZA5QE.js} +8 -8
- package/dist/relay-UUIHK5TY.js +474 -0
- package/dist/{relay-protocol-PJ2HOP6B.js → relay-protocol-MQVXSFN4.js} +5 -5
- package/dist/{runner-agents-CEW4Z3FR.js → runner-agents-M5CMF2ZA.js} +4 -4
- package/dist/runner-env-3S64BNCU.js +24 -0
- package/dist/{runner-identity-IJKE4SRJ.js → runner-identity-3GMF6FKI.js} +10 -10
- package/dist/{runner-key-4J4MHN3S.js → runner-key-NS5C5TTT.js} +46 -46
- package/dist/{session-sender-HKNACIH5.js → session-sender-M325MH5U.js} +19 -19
- package/dist/{spec-cmd-4R7AYTBU.js → spec-cmd-QIVFOHR4.js} +17 -17
- package/dist/{starter-pack-6C7HPT4O.js → starter-pack-P5BRWSAP.js} +5 -5
- package/dist/state-5H5LGYWN.js +18 -0
- package/dist/{status-GMVC666R.js → status-5YK3LOVJ.js} +46 -46
- package/dist/{sync-cmd-UMAENSGZ.js → sync-cmd-JHFRUMM5.js} +18 -18
- package/dist/update-steps-KFULBARX.js +80 -0
- package/dist/{watch-RAUF223H.js → watch-TVHFOLVK.js} +18 -18
- package/dist/{work-claim-cmd-A3ISXUFA.js → work-claim-cmd-LTIAXIWH.js} +23 -23
- package/dist/{work-cmd-U7YLMDZ7.js → work-cmd-VC353JLU.js} +16 -16
- package/dist/{work-comment-cmd-CMWMOWVG.js → work-comment-cmd-SRQXRRJT.js} +18 -18
- package/dist/{work-demo-cmd-EKTJHIVM.js → work-demo-cmd-INUFIHU4.js} +16 -16
- package/dist/{work-logs-cmd-Z3QOFYTJ.js → work-logs-cmd-TMJC7RRS.js} +16 -16
- package/dist/{work-open-pr-cmd-NJXIX3QZ.js → work-open-pr-cmd-O6XW2YGD.js} +17 -17
- package/dist/{work-pr-cmd-JUV3SN7I.js → work-pr-cmd-QSE3BH3Z.js} +16 -16
- package/dist/{work-proofs-cmd-MIDPIFTH.js → work-proofs-cmd-FXSVPQZC.js} +18 -18
- package/dist/{work-proofs-record-6FTMJDQG.js → work-proofs-record-KPRP3UAQ.js} +24 -24
- package/dist/{work-stop-cmd-Z7MYNR7R.js → work-stop-cmd-J77H7RLL.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -7
- package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +80 -0
- package/skill-pack/maintained/outerlayer-build/references/release.md +0 -15
- package/skill-pack/maintained/outerlayer-build/references/review-loop.md +1 -3
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
- package/dist/agent-setup-CBEPGNFY.js +0 -40
- package/dist/caller-XETCC46J.js +0 -23
- package/dist/config-EA6WVKAS.js +0 -22
- package/dist/find-unit-337Y4QAC.js +0 -24
- package/dist/host-checks-OXB5J3KR.js +0 -79
- package/dist/host-key-UFUIBFBF.js +0 -18
- package/dist/init-V7X3KA7B.js +0 -79
- package/dist/loop-AWBFKDV7.js +0 -90
- package/dist/machine-BZPKYURG.js +0 -79
- package/dist/pending-2IE3VBAN.js +0 -18
- package/dist/relay-QDB526DJ.js +0 -223
- package/dist/runner-env-23OLQBQZ.js +0 -24
- package/dist/state-DPEWDXQN.js +0 -18
- package/dist/update-steps-GTXNCG3Z.js +0 -80
- package/skill-pack/validators/code-review.yaml +0 -30
package/dist/relay-QDB526DJ.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import { MAX_OPEN_STREAMS, JOIN_WAIT_MS, STREAM_WINDOW, SESSION_WINDOW, TARGET_LEASE } from './chunk-CGXYPLK3.js';
|
|
4
|
-
import './chunk-RZ6WJTUP.js';
|
|
5
|
-
import './chunk-AVEF3T6Y.js';
|
|
6
|
-
import './chunk-PLVHIQJN.js';
|
|
7
|
-
import './chunk-7PZDPISM.js';
|
|
8
|
-
import './chunk-CDDED64E.js';
|
|
9
|
-
import './chunk-RA3O54FC.js';
|
|
10
|
-
import './chunk-352DHUTP.js';
|
|
11
|
-
import './chunk-5R5FEPLH.js';
|
|
12
|
-
import './chunk-YXXJBHHF.js';
|
|
13
|
-
import './chunk-Z5GEFMRW.js';
|
|
14
|
-
import { existsSync, unlinkSync, chmodSync } from 'fs';
|
|
15
|
-
import http2 from 'http2';
|
|
16
|
-
import { createServer, connect } from 'net';
|
|
17
|
-
|
|
18
|
-
createRequire(import.meta.url);
|
|
19
|
-
async function startRelay(opts) {
|
|
20
|
-
const main = await listenRelay(opts.port, opts.socketPath);
|
|
21
|
-
const extra = [];
|
|
22
|
-
try {
|
|
23
|
-
for (const forward of opts.forwards ?? []) extra.push(await listenRelay(forward.port, forward.socketPath));
|
|
24
|
-
} catch (err) {
|
|
25
|
-
await Promise.all([main, ...extra].map((relay) => relay.close()));
|
|
26
|
-
throw err;
|
|
27
|
-
}
|
|
28
|
-
return { port: main.port, close: async () => void await Promise.all([main, ...extra].map((relay) => relay.close())) };
|
|
29
|
-
}
|
|
30
|
-
async function listenRelay(port, socketPath) {
|
|
31
|
-
const open = /* @__PURE__ */ new Set();
|
|
32
|
-
const server = createServer({ allowHalfOpen: true }, (client) => {
|
|
33
|
-
const upstream = connect(socketPath);
|
|
34
|
-
open.add(client);
|
|
35
|
-
client.on("error", () => void 0);
|
|
36
|
-
upstream.on("error", () => void 0);
|
|
37
|
-
client.on("close", () => {
|
|
38
|
-
open.delete(client);
|
|
39
|
-
upstream.destroy();
|
|
40
|
-
});
|
|
41
|
-
upstream.on("close", (hadError) => {
|
|
42
|
-
if (hadError) client.resetAndDestroy();
|
|
43
|
-
});
|
|
44
|
-
client.pipe(upstream);
|
|
45
|
-
upstream.pipe(client);
|
|
46
|
-
});
|
|
47
|
-
await new Promise((resolve, reject) => {
|
|
48
|
-
server.once("error", reject);
|
|
49
|
-
server.listen(port, "127.0.0.1", () => resolve());
|
|
50
|
-
});
|
|
51
|
-
return {
|
|
52
|
-
port: server.address().port,
|
|
53
|
-
close: () => new Promise((resolve) => {
|
|
54
|
-
for (const socket of open) socket.destroy();
|
|
55
|
-
server.close(() => resolve());
|
|
56
|
-
})
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
var noop = () => void 0;
|
|
60
|
-
async function startSessionRelay(opts) {
|
|
61
|
-
const maxOpen = opts.maxOpen ?? MAX_OPEN_STREAMS;
|
|
62
|
-
const waitMs = opts.joinWaitMs ?? JOIN_WAIT_MS;
|
|
63
|
-
const clients = /* @__PURE__ */ new Set();
|
|
64
|
-
const waiting = /* @__PURE__ */ new Set();
|
|
65
|
-
const joined = /* @__PURE__ */ new Set();
|
|
66
|
-
let session;
|
|
67
|
-
let expiryMs = 0;
|
|
68
|
-
let watchdog;
|
|
69
|
-
let expired = false;
|
|
70
|
-
const armWatchdog = () => {
|
|
71
|
-
if (watchdog !== void 0) clearTimeout(watchdog);
|
|
72
|
-
watchdog = setTimeout(() => {
|
|
73
|
-
if (Date.now() < expiryMs) return armWatchdog();
|
|
74
|
-
if (expired) return;
|
|
75
|
-
expired = true;
|
|
76
|
-
opts.onLeaseExpired?.();
|
|
77
|
-
}, Math.max(0, expiryMs - Date.now()));
|
|
78
|
-
};
|
|
79
|
-
const watchLease = (over) => {
|
|
80
|
-
if (opts.onLeaseExpired === void 0) return;
|
|
81
|
-
let stream;
|
|
82
|
-
try {
|
|
83
|
-
stream = over.request({ ":method": "POST", ":path": `/${TARGET_LEASE}` });
|
|
84
|
-
} catch {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
stream.on("error", noop);
|
|
88
|
-
stream.on("response", noop);
|
|
89
|
-
stream.setEncoding("utf8");
|
|
90
|
-
let pending = "";
|
|
91
|
-
stream.on("data", (chunk) => {
|
|
92
|
-
pending += chunk;
|
|
93
|
-
for (let end = pending.indexOf("\n"); end !== -1; end = pending.indexOf("\n")) {
|
|
94
|
-
const value = Number(pending.slice(0, end));
|
|
95
|
-
pending = pending.slice(end + 1);
|
|
96
|
-
if (Number.isFinite(value) && value > expiryMs) {
|
|
97
|
-
expiryMs = value;
|
|
98
|
-
armWatchdog();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
stream.end();
|
|
103
|
-
};
|
|
104
|
-
const bridge = (client, target, over) => {
|
|
105
|
-
let stream;
|
|
106
|
-
try {
|
|
107
|
-
stream = over.request({ ":method": "POST", ":path": `/${target}` });
|
|
108
|
-
} catch {
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
stream.on("error", noop);
|
|
112
|
-
stream.on("response", noop);
|
|
113
|
-
stream.on("close", () => {
|
|
114
|
-
if (!stream.readableEnded) client.resetAndDestroy();
|
|
115
|
-
});
|
|
116
|
-
client.on("close", () => {
|
|
117
|
-
if (!stream.destroyed && !client.readableEnded) stream.close(http2.constants.NGHTTP2_CANCEL);
|
|
118
|
-
});
|
|
119
|
-
client.pipe(stream);
|
|
120
|
-
stream.pipe(client);
|
|
121
|
-
return true;
|
|
122
|
-
};
|
|
123
|
-
const usable = (candidate) => candidate !== void 0 && !candidate.closed && !candidate.destroyed;
|
|
124
|
-
const accept = (client, target) => {
|
|
125
|
-
client.on("error", noop);
|
|
126
|
-
if (clients.size >= maxOpen) {
|
|
127
|
-
client.destroy();
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
clients.add(client);
|
|
131
|
-
client.on("close", () => clients.delete(client));
|
|
132
|
-
if (usable(session) && bridge(client, target, session)) return;
|
|
133
|
-
const entry = { client, target, timer: setTimeout(() => client.destroy(), waitMs) };
|
|
134
|
-
waiting.add(entry);
|
|
135
|
-
client.on("close", () => {
|
|
136
|
-
clearTimeout(entry.timer);
|
|
137
|
-
waiting.delete(entry);
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
const flush = (over) => {
|
|
141
|
-
for (const entry of [...waiting]) {
|
|
142
|
-
if (!usable(over)) return;
|
|
143
|
-
clearTimeout(entry.timer);
|
|
144
|
-
waiting.delete(entry);
|
|
145
|
-
if (!bridge(entry.client, entry.target, over)) {
|
|
146
|
-
entry.client.destroy();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const join = (socket) => {
|
|
151
|
-
joined.add(socket);
|
|
152
|
-
socket.on("error", noop);
|
|
153
|
-
socket.on("close", () => joined.delete(socket));
|
|
154
|
-
const next = http2.connect("http://relay.invalid", { createConnection: () => socket, settings: { initialWindowSize: STREAM_WINDOW, enablePush: false } });
|
|
155
|
-
next.on("error", noop);
|
|
156
|
-
try {
|
|
157
|
-
next.setLocalWindowSize(SESSION_WINDOW);
|
|
158
|
-
} catch {
|
|
159
|
-
}
|
|
160
|
-
const previous = session;
|
|
161
|
-
session = next;
|
|
162
|
-
next.on("close", () => {
|
|
163
|
-
if (session === next) session = void 0;
|
|
164
|
-
});
|
|
165
|
-
if (usable(previous)) previous.close();
|
|
166
|
-
watchLease(next);
|
|
167
|
-
flush(next);
|
|
168
|
-
};
|
|
169
|
-
const listeners = [];
|
|
170
|
-
const closeAll = async () => {
|
|
171
|
-
if (watchdog !== void 0) clearTimeout(watchdog);
|
|
172
|
-
for (const entry of waiting) clearTimeout(entry.timer);
|
|
173
|
-
waiting.clear();
|
|
174
|
-
for (const client of clients) client.destroy();
|
|
175
|
-
session?.destroy();
|
|
176
|
-
for (const socket of joined) socket.destroy();
|
|
177
|
-
await Promise.all(listeners.map((listener) => new Promise((resolve) => listener.close(() => resolve()))));
|
|
178
|
-
};
|
|
179
|
-
try {
|
|
180
|
-
const joiner = createServer(join);
|
|
181
|
-
listeners.push(joiner);
|
|
182
|
-
if (existsSync(opts.joinPath)) unlinkSync(opts.joinPath);
|
|
183
|
-
await new Promise((resolve, reject) => {
|
|
184
|
-
joiner.once("error", reject);
|
|
185
|
-
joiner.listen(opts.joinPath, () => resolve());
|
|
186
|
-
});
|
|
187
|
-
chmodSync(opts.joinPath, 384);
|
|
188
|
-
const ports = [];
|
|
189
|
-
for (const entry of opts.ports) {
|
|
190
|
-
const server = createServer((client) => accept(client, entry.target));
|
|
191
|
-
listeners.push(server);
|
|
192
|
-
await new Promise((resolve, reject) => {
|
|
193
|
-
server.once("error", reject);
|
|
194
|
-
server.listen(entry.port, "127.0.0.1", () => resolve());
|
|
195
|
-
});
|
|
196
|
-
ports.push(server.address().port);
|
|
197
|
-
}
|
|
198
|
-
return { ports, waiting: () => waiting.size, close: closeAll };
|
|
199
|
-
} catch (err) {
|
|
200
|
-
await closeAll();
|
|
201
|
-
throw err;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function joinRelay(opts) {
|
|
205
|
-
return new Promise((resolve, reject) => {
|
|
206
|
-
const socket = connect(opts.socketPath);
|
|
207
|
-
let connected = false;
|
|
208
|
-
socket.once("connect", () => {
|
|
209
|
-
connected = true;
|
|
210
|
-
opts.input.pipe(socket);
|
|
211
|
-
socket.pipe(opts.output, { end: false });
|
|
212
|
-
});
|
|
213
|
-
socket.once("error", (err) => {
|
|
214
|
-
if (!connected) reject(err);
|
|
215
|
-
});
|
|
216
|
-
socket.once("close", () => {
|
|
217
|
-
opts.input.destroy?.();
|
|
218
|
-
resolve();
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export { joinRelay, startRelay, startSessionRelay };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential, storedCredentialVariables } from './chunk-AJC5Q2NY.js';
|
|
4
|
-
import './chunk-2MQQASWB.js';
|
|
5
|
-
import './chunk-VNT2IRLM.js';
|
|
6
|
-
import './chunk-MPE4NOKD.js';
|
|
7
|
-
import './chunk-3FAJMXBA.js';
|
|
8
|
-
import './chunk-FER7JJ3S.js';
|
|
9
|
-
import './chunk-EFAOERZH.js';
|
|
10
|
-
import './chunk-5VAXNAOD.js';
|
|
11
|
-
import './chunk-OUHM6U6Z.js';
|
|
12
|
-
import './chunk-CGXYPLK3.js';
|
|
13
|
-
import './chunk-RZ6WJTUP.js';
|
|
14
|
-
import './chunk-AVEF3T6Y.js';
|
|
15
|
-
import './chunk-PLVHIQJN.js';
|
|
16
|
-
import './chunk-7PZDPISM.js';
|
|
17
|
-
import './chunk-CDDED64E.js';
|
|
18
|
-
import './chunk-RA3O54FC.js';
|
|
19
|
-
import './chunk-352DHUTP.js';
|
|
20
|
-
import './chunk-5R5FEPLH.js';
|
|
21
|
-
import './chunk-YXXJBHHF.js';
|
|
22
|
-
import './chunk-Z5GEFMRW.js';
|
|
23
|
-
|
|
24
|
-
createRequire(import.meta.url);
|
package/dist/state-DPEWDXQN.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { readFleetState, writeFleetState } from './chunk-MDKLSY43.js';
|
|
4
|
-
import './chunk-5VAXNAOD.js';
|
|
5
|
-
import './chunk-OUHM6U6Z.js';
|
|
6
|
-
import './chunk-CGXYPLK3.js';
|
|
7
|
-
import './chunk-RZ6WJTUP.js';
|
|
8
|
-
import './chunk-AVEF3T6Y.js';
|
|
9
|
-
import './chunk-PLVHIQJN.js';
|
|
10
|
-
import './chunk-7PZDPISM.js';
|
|
11
|
-
import './chunk-CDDED64E.js';
|
|
12
|
-
import './chunk-RA3O54FC.js';
|
|
13
|
-
import './chunk-352DHUTP.js';
|
|
14
|
-
import './chunk-5R5FEPLH.js';
|
|
15
|
-
import './chunk-YXXJBHHF.js';
|
|
16
|
-
import './chunk-Z5GEFMRW.js';
|
|
17
|
-
|
|
18
|
-
createRequire(import.meta.url);
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-S7CE7QCF.js';
|
|
4
|
-
import './chunk-Z4R36YDJ.js';
|
|
5
|
-
import './chunk-BO3NOGKE.js';
|
|
6
|
-
import './chunk-2PGI6RDE.js';
|
|
7
|
-
import './chunk-I3LTIAOR.js';
|
|
8
|
-
import './chunk-AJC5Q2NY.js';
|
|
9
|
-
import './chunk-2MQQASWB.js';
|
|
10
|
-
import './chunk-ERQLHUWU.js';
|
|
11
|
-
import './chunk-YZRDJOOR.js';
|
|
12
|
-
import './chunk-ONOINHY4.js';
|
|
13
|
-
import './chunk-VWNQRD4I.js';
|
|
14
|
-
import './chunk-3DVCPRKE.js';
|
|
15
|
-
import './chunk-CCMKLF7K.js';
|
|
16
|
-
import './chunk-WGC7UFRM.js';
|
|
17
|
-
import './chunk-ZVB57WI6.js';
|
|
18
|
-
import './chunk-TAEDH2SU.js';
|
|
19
|
-
import './chunk-TQMI335S.js';
|
|
20
|
-
import './chunk-ZLJXMXZP.js';
|
|
21
|
-
import './chunk-NN33FYXG.js';
|
|
22
|
-
import './chunk-WF2NXBOM.js';
|
|
23
|
-
import './chunk-YKWOVYVN.js';
|
|
24
|
-
import './chunk-PARDL7HH.js';
|
|
25
|
-
import './chunk-JBJTC3UU.js';
|
|
26
|
-
import './chunk-OGFGZQA3.js';
|
|
27
|
-
import './chunk-HG2ZG6ZU.js';
|
|
28
|
-
import './chunk-U5EE7PGC.js';
|
|
29
|
-
import './chunk-3XWZKL2P.js';
|
|
30
|
-
import './chunk-JTDMSQMI.js';
|
|
31
|
-
import './chunk-DL5N6V3D.js';
|
|
32
|
-
import './chunk-XE2PXGZT.js';
|
|
33
|
-
import './chunk-VNT2IRLM.js';
|
|
34
|
-
import './chunk-MPE4NOKD.js';
|
|
35
|
-
import './chunk-3FAJMXBA.js';
|
|
36
|
-
import './chunk-FER7JJ3S.js';
|
|
37
|
-
import './chunk-FGVVBYCT.js';
|
|
38
|
-
import './chunk-ABN4UBR5.js';
|
|
39
|
-
import './chunk-EXIZ3G6I.js';
|
|
40
|
-
import './chunk-IXB2IIEW.js';
|
|
41
|
-
import './chunk-YWWW47OY.js';
|
|
42
|
-
import './chunk-NEEMG462.js';
|
|
43
|
-
import './chunk-A2LHHKTT.js';
|
|
44
|
-
import './chunk-2AM6Z5BP.js';
|
|
45
|
-
import './chunk-DVFGCVTV.js';
|
|
46
|
-
import './chunk-X2DX3A7H.js';
|
|
47
|
-
import './chunk-T524XQKI.js';
|
|
48
|
-
import './chunk-QWDGHEQL.js';
|
|
49
|
-
import './chunk-XDRZ3BNA.js';
|
|
50
|
-
import './chunk-HWVMRETT.js';
|
|
51
|
-
import './chunk-EFAOERZH.js';
|
|
52
|
-
import './chunk-5VAXNAOD.js';
|
|
53
|
-
import './chunk-OUHM6U6Z.js';
|
|
54
|
-
import './chunk-CGXYPLK3.js';
|
|
55
|
-
import './chunk-256R6O56.js';
|
|
56
|
-
import './chunk-545P7JY7.js';
|
|
57
|
-
import './chunk-SF2TBJBP.js';
|
|
58
|
-
import './chunk-BJ3KTMDH.js';
|
|
59
|
-
import './chunk-RNCCRUT5.js';
|
|
60
|
-
import './chunk-BKO6JEZI.js';
|
|
61
|
-
import './chunk-NFZMENCY.js';
|
|
62
|
-
import './chunk-4OD45RBP.js';
|
|
63
|
-
import './chunk-WZBHBH3J.js';
|
|
64
|
-
import './chunk-FZKNTIOJ.js';
|
|
65
|
-
import './chunk-ZHQC43NH.js';
|
|
66
|
-
import './chunk-FOUG2R4Q.js';
|
|
67
|
-
import './chunk-YQR6E6OV.js';
|
|
68
|
-
import './chunk-CJPTUU2E.js';
|
|
69
|
-
import './chunk-RZ6WJTUP.js';
|
|
70
|
-
import './chunk-AVEF3T6Y.js';
|
|
71
|
-
import './chunk-PLVHIQJN.js';
|
|
72
|
-
import './chunk-7PZDPISM.js';
|
|
73
|
-
import './chunk-CDDED64E.js';
|
|
74
|
-
import './chunk-RA3O54FC.js';
|
|
75
|
-
import './chunk-352DHUTP.js';
|
|
76
|
-
import './chunk-5R5FEPLH.js';
|
|
77
|
-
import './chunk-YXXJBHHF.js';
|
|
78
|
-
import './chunk-Z5GEFMRW.js';
|
|
79
|
-
|
|
80
|
-
createRequire(import.meta.url);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Yours to edit. Written once by outerlayer init; never overwritten.
|
|
2
|
-
#
|
|
3
|
-
# How to satisfy this row: after the review of a change is done, write its
|
|
4
|
-
# findings report (each confirmed finding with its severity and fix, or a
|
|
5
|
-
# clean bill) as an .html file. Emit it as a report artifact with no --for:
|
|
6
|
-
# outerlayer emit artifact review.html --caption "Review of the change and what it found"
|
|
7
|
-
# Then run `outerlayer sync`. It prints a line for the report that ends with
|
|
8
|
-
# its link; take the link from that line. If `sync` printed no line for it,
|
|
9
|
-
# another sync already uploaded the report: run
|
|
10
|
-
# `outerlayer sync --link <the artifact id>`, with the id `emit artifact`
|
|
11
|
-
# printed. Never build the link by hand, and never link a pull request
|
|
12
|
-
# comment: a comment can be edited or deleted later.
|
|
13
|
-
#
|
|
14
|
-
# Then record the verdict once, with that link as its proof:
|
|
15
|
-
# outerlayer emit code-review --item "$OUTERLAYER_WORK" --result pass --link <the report's deep link>
|
|
16
|
-
# Use --result fail when the review found something that still needs fixing.
|
|
17
|
-
# Until a result is recorded, the row reads "not proven". While a host still
|
|
18
|
-
# holds the work item's claim, it reads as waiting.
|
|
19
|
-
#
|
|
20
|
-
# `where: ci` means the result comes from `outerlayer emit`: OuterLayer runs
|
|
21
|
-
# nothing for this check, and a result from a session, CI or a person counts.
|
|
22
|
-
# The row claims only what that proves: a code review result is recorded,
|
|
23
|
-
# not what the review found.
|
|
24
|
-
id: code-review
|
|
25
|
-
kind: validation
|
|
26
|
-
row: "A code review result is recorded for this change"
|
|
27
|
-
level: warn
|
|
28
|
-
run:
|
|
29
|
-
where: ci
|
|
30
|
-
emit: code-review
|