@outerlayer/cli 0.24.0 → 0.25.0
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/CHANGELOG.md +15 -0
- package/README.md +9 -0
- package/dist/{agent-setup-QQYRBPK2.js → agent-setup-PDIIGMKE.js} +7 -7
- package/dist/{bridge-4ZARDVGS.js → bridge-5KZ36YDG.js} +3 -3
- package/dist/build-Q2OBF77R.js +12 -0
- package/dist/build-info.json +1 -1
- package/dist/{builder-MECDEKXX.js → builder-PRSCX5AH.js} +6 -6
- package/dist/{check-YYKNYFNI.js → check-EPYRTE3R.js} +38 -37
- package/dist/{chunk-BN3CSI7S.js → chunk-2K3TCQHW.js} +1 -1
- package/dist/{chunk-A62QFN2M.js → chunk-2N72GPS2.js} +3 -3
- package/dist/{chunk-W7O4LA4E.js → chunk-34ANPNVB.js} +2 -2
- package/dist/{chunk-6GSA2SKT.js → chunk-3I44PQ26.js} +205 -56
- package/dist/{chunk-WH2QV3UL.js → chunk-4S4VBDSO.js} +1 -1
- package/dist/{chunk-IDSHLKQA.js → chunk-5222PA6S.js} +1 -1
- package/dist/{chunk-V5Q3S4NM.js → chunk-6CNHXHI2.js} +1 -1
- package/dist/{chunk-LY2L3O2O.js → chunk-7OWPLRJR.js} +1 -1
- package/dist/{chunk-HHXBOTRO.js → chunk-ATGHVEU4.js} +1 -1
- package/dist/{chunk-TTLVQZSH.js → chunk-AXPCGD46.js} +5 -5
- package/dist/{chunk-FWEWFW3F.js → chunk-DEBOL6ON.js} +1 -1
- package/dist/{chunk-E4OUL7ZP.js → chunk-FXUVXSY2.js} +2 -2
- package/dist/{chunk-BUBCPP3F.js → chunk-HBLLZLOH.js} +2 -2
- package/dist/{chunk-F2W2IYNP.js → chunk-HWEIFHSW.js} +2 -2
- package/dist/{chunk-F7Y2USIM.js → chunk-IDJIWKTY.js} +2 -2
- package/dist/{chunk-DG2ULWM6.js → chunk-IGRRD7PX.js} +11 -7
- package/dist/{chunk-GISNHSYL.js → chunk-JGD5TWQ2.js} +4 -2
- package/dist/{chunk-BOQY756V.js → chunk-JKILLWZF.js} +8 -7
- package/dist/{chunk-D7X5ITVT.js → chunk-JWRX5ZTT.js} +6 -2
- package/dist/{chunk-755WXDBI.js → chunk-K5WVK7IC.js} +1 -1
- package/dist/{chunk-H6IUKXXI.js → chunk-L2FZLBF7.js} +207 -35
- package/dist/{chunk-FKXGQOF5.js → chunk-M4B6QKNZ.js} +1 -1
- package/dist/{chunk-NTQTDCYR.js → chunk-O2WYUIK7.js} +1 -1
- package/dist/{chunk-VV7ZD5LR.js → chunk-QMQC6JCO.js} +1 -1
- package/dist/{chunk-5XCAPBE2.js → chunk-QUGYGO6L.js} +5 -5
- package/dist/{chunk-FQPN5S4Q.js → chunk-QXNJWSTM.js} +4 -4
- package/dist/{chunk-3W333NFO.js → chunk-RGW7ERF3.js} +15 -4
- package/dist/{chunk-CZUH2SLQ.js → chunk-UNF7MWEL.js} +1 -1
- package/dist/{chunk-ZFLOFAUG.js → chunk-VMF5LK3D.js} +7 -7
- package/dist/{chunk-VBEXKEBV.js → chunk-VNGENFOG.js} +19 -6
- package/dist/{chunk-5ECUMU53.js → chunk-VPUNOGXO.js} +6 -6
- package/dist/{chunk-RVYOOYOA.js → chunk-X5LNCIZT.js} +18 -9
- package/dist/{chunk-PDIM5T65.js → chunk-XGJUNNXL.js} +1 -1
- package/dist/{chunk-GU4PKXN7.js → chunk-XHXDCYSK.js} +184 -37
- package/dist/{chunk-NGZID7UI.js → chunk-XRYUJTAT.js} +8 -1
- package/dist/{chunk-TQ6Y7YV6.js → chunk-YMKQVCKC.js} +5 -5
- package/dist/{chunk-D7K446H6.js → chunk-YTTHDPWF.js} +4 -4
- package/dist/{chunk-LBCZXXOX.js → chunk-ZGMQQWCV.js} +2 -2
- package/dist/{chunk-KF37SUDM.js → chunk-ZI2ZVWKT.js} +1 -1
- package/dist/{chunk-PVRBE7S4.js → chunk-ZODVSFI4.js} +1 -1
- package/dist/chunk-ZVB57WI6.js +19 -0
- package/dist/{claude-launcher-JCPSHDZQ.js → claude-launcher-WGOCLTG6.js} +1 -1
- package/dist/{cli-ZTBH3FBG.js → cli-2LGSPAYZ.js} +105 -100
- package/dist/command-ITLPJ5XU.js +533 -0
- package/dist/{config-7Z5DHSGY.js → config-JJ3EO7SB.js} +3 -3
- package/dist/{connect-cmd-NY5LIKVC.js → connect-cmd-JFDZKPND.js} +6 -6
- package/dist/{container-start-OHBUZEJJ.js → container-start-X22OXY6E.js} +44 -35
- package/dist/{control-plane-launch-GKGI6HJA.js → control-plane-launch-ZFT6SI4N.js} +6 -6
- package/dist/{docker-RKGBJESN.js → docker-PQHWAY5J.js} +6 -6
- package/dist/{doctor-DOAFZV4O.js → doctor-73GNT4VV.js} +78 -32
- package/dist/{emit-artifact-cmd-VZHIDPXQ.js → emit-artifact-cmd-AIOTX6YT.js} +10 -10
- package/dist/{emit-criteria-cmd-SYLBCWHW.js → emit-criteria-cmd-7PJINOHA.js} +7 -7
- package/dist/{emit-finding-cmd-52M43NPC.js → emit-finding-cmd-JRDSZ4DR.js} +7 -7
- package/dist/{emit-result-cmd-BTMTGDAV.js → emit-result-cmd-ZGF6Q6OP.js} +10 -10
- package/dist/{emit-step-cmd-6XTJITZT.js → emit-step-cmd-DUR34STQ.js} +8 -8
- package/dist/{exec-client-CKPK62K2.js → exec-client-S5IA7JRG.js} +4 -4
- package/dist/{governing-source-GWN7GVEN.js → governing-source-DKJABQAT.js} +10 -10
- package/dist/{guest-init-ZBL5CN7Y.js → guest-init-TOSKPGPF.js} +5 -5
- package/dist/{hook-fast-3JL4PXLG.js → hook-fast-NEELST6G.js} +1 -1
- package/dist/host-key-ICJEQBWH.js +9 -0
- package/dist/{image-tag-AO4RBAKW.js → image-tag-6KJOGBQK.js} +4 -4
- package/dist/index.js +4 -4
- package/dist/{init-EQTR7AEF.js → init-NE3VR3EY.js} +24 -22
- package/dist/{init-TSQ3EOQW.js → init-SKOXNJND.js} +24 -22
- package/dist/{init-cmd-AF2MH36A.js → init-cmd-UEDOJ7LG.js} +10 -10
- package/dist/{init-update-SHISHMXV.js → init-update-VKZ4S6HH.js} +8 -8
- package/dist/{install-ORQC26ZE.js → install-MPEJJ7X6.js} +5 -5
- package/dist/{install-cmd-4LA3UJZ4.js → install-cmd-SE6NCTJK.js} +6 -6
- package/dist/job-state-format-WJQGQB6F.js +6 -0
- package/dist/{logs-5EPHIPZB.js → logs-T4ERSOQ4.js} +3 -3
- package/dist/{loop-4WUCS5JP.js → loop-BPVEA5OC.js} +37 -36
- package/dist/{machine-6UNLIPLE.js → machine-G3GICXQN.js} +20 -18
- package/dist/{mcp-serve-cmd-KMWEKM7C.js → mcp-serve-cmd-7M4VLNI4.js} +5 -5
- package/dist/{paths-XY5ADO32.js → paths-2KGM2LZV.js} +3 -3
- package/dist/pending-BGLMTB5Q.js +9 -0
- package/dist/{pidfile-OJ7RP4Q2.js → pidfile-VYBH3IMN.js} +4 -4
- package/dist/{record-BEJB4J7N.js → record-GNOHDJ2O.js} +4 -4
- package/dist/{relay-PSZ4LGMW.js → relay-GFPPD6GF.js} +1 -1
- package/dist/relay-protocol-HELO5SNH.js +6 -0
- package/dist/{runner-env-ZJWJOJKQ.js → runner-env-GUFV544G.js} +6 -6
- package/dist/{runner-identity-2OOUJSFJ.js → runner-identity-J6DXJ6MF.js} +6 -6
- package/dist/{runner-key-WDFBSJRX.js → runner-key-L55O7Y7W.js} +24 -22
- package/dist/{session-sender-X3BBQZMF.js → session-sender-LXTASWBY.js} +11 -11
- package/dist/{spec-cmd-QRF5YXKK.js → spec-cmd-G2JNXKD7.js} +8 -8
- package/dist/{status-ZCAAF6MD.js → status-U6DXOR6C.js} +34 -28
- package/dist/{sync-cmd-UQK3RYAC.js → sync-cmd-VPNS5ITY.js} +10 -10
- package/dist/{watch-MOQ3GQTE.js → watch-ZOCYD2NE.js} +10 -10
- package/dist/{work-claim-cmd-RT343CLA.js → work-claim-cmd-BUMIPJNF.js} +11 -11
- package/dist/{work-cmd-APXSER2D.js → work-cmd-LRAXUOJV.js} +8 -8
- package/dist/{work-comment-cmd-AT5NUYUU.js → work-comment-cmd-4RDIBUYO.js} +8 -8
- package/dist/{work-logs-cmd-Z5DMNEJP.js → work-logs-cmd-YYN2CPJQ.js} +8 -8
- package/dist/{work-open-pr-cmd-ZTS6MJHL.js → work-open-pr-cmd-3MCND2LZ.js} +9 -9
- package/dist/{work-pr-cmd-IWZCC3WH.js → work-pr-cmd-BODEZAXN.js} +8 -8
- package/dist/{work-stop-cmd-DCAWFDZC.js → work-stop-cmd-P7HXVKEG.js} +8 -8
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-build/SKILL.md +1 -1
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +3 -2
- package/skill-pack/maintained/outerlayer-build/references/review-briefs.md +3 -1
- package/dist/build-OVZIT2G2.js +0 -12
- package/dist/command-DO4TERRT.js +0 -208
- package/dist/host-key-W2DLZGZ7.js +0 -9
- package/dist/pending-35J3ZPLR.js +0 -9
- package/dist/relay-protocol-K7KP2SPI.js +0 -6
|
@@ -47,7 +47,9 @@ starts with your stage, such as `implement-tooling-1`. End your report with a
|
|
|
47
47
|
You are a cold adversarial reviewer. You know nothing about how this change
|
|
48
48
|
was built, and that is deliberate. Judge only the branch diff, the issue (its
|
|
49
49
|
criteria, when it has them, are the definition of done), and the
|
|
50
|
-
repository's instructions
|
|
50
|
+
repository's instructions, which are already loaded in your context. Do not
|
|
51
|
+
look for an instructions file in the checkout. Hold the change to the
|
|
52
|
+
instructions.
|
|
51
53
|
Your job is to break the change within your assigned territory.
|
|
52
54
|
|
|
53
55
|
Report only findings you have confirmed by reading the code or running
|
package/dist/build-OVZIT2G2.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { buildRepositoryImage } from './chunk-TTLVQZSH.js';
|
|
4
|
-
import './chunk-FWEWFW3F.js';
|
|
5
|
-
import './chunk-JBJTC3UU.js';
|
|
6
|
-
export { RecipeError } from './chunk-3W333NFO.js';
|
|
7
|
-
import './chunk-KF37SUDM.js';
|
|
8
|
-
import './chunk-BN3CSI7S.js';
|
|
9
|
-
import './chunk-GISNHSYL.js';
|
|
10
|
-
import './chunk-Z5GEFMRW.js';
|
|
11
|
-
|
|
12
|
-
createRequire(import.meta.url);
|
package/dist/command-DO4TERRT.js
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import { runRunnerInstall, launcherSummary, restartNote } from './chunk-FQPN5S4Q.js';
|
|
4
|
-
import './chunk-HHXBOTRO.js';
|
|
5
|
-
import { currentLink, execStartCommand } from './chunk-VV7ZD5LR.js';
|
|
6
|
-
import { detectMachine } from './chunk-VBEXKEBV.js';
|
|
7
|
-
import './chunk-GU4PKXN7.js';
|
|
8
|
-
import { installService, uninstallService, realTaskScheduler } from './chunk-DG2ULWM6.js';
|
|
9
|
-
import './chunk-TQMI335S.js';
|
|
10
|
-
import './chunk-TTLVQZSH.js';
|
|
11
|
-
import './chunk-FWEWFW3F.js';
|
|
12
|
-
import './chunk-JBJTC3UU.js';
|
|
13
|
-
import './chunk-OGFGZQA3.js';
|
|
14
|
-
import { readJobFile } from './chunk-5XCAPBE2.js';
|
|
15
|
-
import './chunk-3W333NFO.js';
|
|
16
|
-
import './chunk-LY2L3O2O.js';
|
|
17
|
-
import './chunk-PDIM5T65.js';
|
|
18
|
-
import './chunk-TQ6Y7YV6.js';
|
|
19
|
-
import './chunk-RVYOOYOA.js';
|
|
20
|
-
import './chunk-F2W2IYNP.js';
|
|
21
|
-
import './chunk-V5Q3S4NM.js';
|
|
22
|
-
import './chunk-BUP5N3X6.js';
|
|
23
|
-
import './chunk-XSPA5ODY.js';
|
|
24
|
-
import './chunk-GOSFARMS.js';
|
|
25
|
-
import { runnerVmOf, loadRunnerConfig } from './chunk-D7X5ITVT.js';
|
|
26
|
-
import './chunk-UXYLWVTQ.js';
|
|
27
|
-
import './chunk-7RQ73DLO.js';
|
|
28
|
-
import { realLima } from './chunk-77MM5RYD.js';
|
|
29
|
-
import { writeLaunchAgent, launchAgentPath } from './chunk-LF6MLJCY.js';
|
|
30
|
-
import './chunk-E4OUL7ZP.js';
|
|
31
|
-
import './chunk-MQ743JX3.js';
|
|
32
|
-
import './chunk-FKXGQOF5.js';
|
|
33
|
-
import './chunk-ZJSNLVCE.js';
|
|
34
|
-
import './chunk-VPEGE3QZ.js';
|
|
35
|
-
import './chunk-HCVLP7XA.js';
|
|
36
|
-
import './chunk-BJ3KTMDH.js';
|
|
37
|
-
import './chunk-D4AMAEZ7.js';
|
|
38
|
-
import './chunk-ANPNT6PM.js';
|
|
39
|
-
import './chunk-EABW6AJQ.js';
|
|
40
|
-
import './chunk-JKNYTNYD.js';
|
|
41
|
-
import './chunk-HBISTTG3.js';
|
|
42
|
-
import './chunk-WZBHBH3J.js';
|
|
43
|
-
import './chunk-CRB3POP4.js';
|
|
44
|
-
import './chunk-YQR6E6OV.js';
|
|
45
|
-
import './chunk-RKOTJQVG.js';
|
|
46
|
-
import './chunk-QZBXLLTV.js';
|
|
47
|
-
import './chunk-VNVZDWO3.js';
|
|
48
|
-
import './chunk-RA3O54FC.js';
|
|
49
|
-
import './chunk-PVRBE7S4.js';
|
|
50
|
-
import './chunk-KF37SUDM.js';
|
|
51
|
-
import './chunk-BN3CSI7S.js';
|
|
52
|
-
import './chunk-GISNHSYL.js';
|
|
53
|
-
import './chunk-Z5GEFMRW.js';
|
|
54
|
-
import { userInfo, totalmem } from 'os';
|
|
55
|
-
import { join } from 'path';
|
|
56
|
-
import { rmSync, existsSync, readdirSync, readFileSync } from 'fs';
|
|
57
|
-
import { spawnSync } from 'child_process';
|
|
58
|
-
|
|
59
|
-
createRequire(import.meta.url);
|
|
60
|
-
async function serviceInVm(lima, instance, action, options) {
|
|
61
|
-
const limactl = lima.locate();
|
|
62
|
-
if (limactl === void 0) {
|
|
63
|
-
return { ok: false, lines: ["limactl is not installed, and the runner's service lives in the Linux VM it manages. Install Lima with `brew install lima`."] };
|
|
64
|
-
}
|
|
65
|
-
const ran = await lima.shell(instance, ["outerlayer", "runner", action, "--service", ...options.extraArgs ?? []]);
|
|
66
|
-
const lines = [...ran.stdout.split("\n"), ...ran.stderr.split("\n")].map((line) => line.trim()).filter((line) => line !== "");
|
|
67
|
-
if (ran.status !== 0) return { ok: false, lines: lines.length > 0 ? lines : [`outerlayer runner ${action} --service failed in the VM ${instance} with exit status ${ran.status}`] };
|
|
68
|
-
if (action === "install") {
|
|
69
|
-
const path = writeLaunchAgent(options.home, limactl, instance);
|
|
70
|
-
lines.push(`the VM ${instance} starts at login through ${path}`);
|
|
71
|
-
} else {
|
|
72
|
-
rmSync(launchAgentPath(options.home), { force: true });
|
|
73
|
-
lines.push("removed the launch agent that started the VM at login");
|
|
74
|
-
}
|
|
75
|
-
return { ok: true, lines };
|
|
76
|
-
}
|
|
77
|
-
var WSL_CONF = "/etc/wsl.conf";
|
|
78
|
-
function readText(path) {
|
|
79
|
-
try {
|
|
80
|
-
return readFileSync(path, "utf8");
|
|
81
|
-
} catch {
|
|
82
|
-
return void 0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function sudoWrite(path, text) {
|
|
86
|
-
const result = spawnSync("sudo", ["tee", path], { input: text, stdio: ["pipe", "ignore", "inherit"] });
|
|
87
|
-
if (result.status !== 0) throw new Error(`sudo tee ${path} failed with exit status ${result.status}`);
|
|
88
|
-
}
|
|
89
|
-
function realSystemd() {
|
|
90
|
-
return {
|
|
91
|
-
running: () => existsSync("/run/systemd/system"),
|
|
92
|
-
read: readText,
|
|
93
|
-
write: sudoWrite,
|
|
94
|
-
remove: (path) => {
|
|
95
|
-
spawnSync("sudo", ["rm", "-f", path], { stdio: ["inherit", "ignore", "inherit"] });
|
|
96
|
-
},
|
|
97
|
-
systemctl: (args, options) => {
|
|
98
|
-
const result = options?.sudo === true ? spawnSync("sudo", ["systemctl", ...args], { encoding: "utf8", stdio: ["inherit", "pipe", "inherit"] }) : spawnSync("systemctl", args, { encoding: "utf8" });
|
|
99
|
-
return { status: result.status ?? -1, stdout: result.stdout ?? "" };
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function realWslConf() {
|
|
104
|
-
return { read: () => readText(WSL_CONF), write: (text) => sudoWrite(WSL_CONF, text) };
|
|
105
|
-
}
|
|
106
|
-
function buildsRunningIn(runnerDirPath) {
|
|
107
|
-
const jobs = join(runnerDirPath, "jobs");
|
|
108
|
-
if (!existsSync(jobs)) return false;
|
|
109
|
-
try {
|
|
110
|
-
return readdirSync(jobs, { withFileTypes: true }).some((entry) => {
|
|
111
|
-
if (!entry.isDirectory()) return false;
|
|
112
|
-
const job = readJobFile(join(jobs, entry.name, "job.json"));
|
|
113
|
-
return job === null || job.outcome === void 0 && job.endedAt === void 0;
|
|
114
|
-
});
|
|
115
|
-
} catch {
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function realServiceDeps() {
|
|
120
|
-
const platform = detectMachine().platform;
|
|
121
|
-
return {
|
|
122
|
-
platform,
|
|
123
|
-
say: (line) => process.stdout.write(`running: ${line}
|
|
124
|
-
`),
|
|
125
|
-
systemd: realSystemd(),
|
|
126
|
-
...platform === "wsl2" ? { tasks: realTaskScheduler(), wslConf: realWslConf(), distro: process.env.WSL_DISTRO_NAME } : {},
|
|
127
|
-
usableMemoryBytes: totalmem(),
|
|
128
|
-
buildsRunning: buildsRunningIn,
|
|
129
|
-
// Asked as the account, through sudo, which the unit's own install needs anyway.
|
|
130
|
-
accountCan: (account, flag, path) => spawnSync("sudo", ["-n", "-u", account, "test", flag, path], { stdio: "ignore" }).status === 0
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// src/runner/service/command.ts
|
|
135
|
-
function accountCannotStart(account, nodePath, entry, can) {
|
|
136
|
-
if (!can(account, "-x", nodePath)) {
|
|
137
|
-
return `\u2717 the service would run as ${account}, which cannot execute ${nodePath}, the Node this install runs on. Nothing is set up: run the install as ${account} with a Node it can execute, or install Node where ${account} can reach it`;
|
|
138
|
-
}
|
|
139
|
-
if (!can(account, "-r", entry)) {
|
|
140
|
-
return `\u2717 the service would run as ${account}, which cannot read ${entry}. Nothing is set up: put the runner's config where ${account} can read it, or run the install as ${account}`;
|
|
141
|
-
}
|
|
142
|
-
return void 0;
|
|
143
|
-
}
|
|
144
|
-
function vmArgs(input) {
|
|
145
|
-
return [...input.print === true ? ["--print"] : [], ...input.replace === true ? ["--replace"] : [], ...input.allowDowngrade === true ? ["--allow-downgrade"] : [], ...input.user === void 0 ? [] : ["--user", input.user], ...input.unitName === void 0 ? [] : ["--unit-name", input.unitName]];
|
|
146
|
-
}
|
|
147
|
-
async function installServiceCommand(input, deps = {}) {
|
|
148
|
-
const vm = runnerVmOf(input.configPath);
|
|
149
|
-
if (vm !== void 0) {
|
|
150
|
-
const result = await serviceInVm((deps.lima ?? realLima)(), vm.instance, "install", { home: input.home, extraArgs: vmArgs(input) });
|
|
151
|
-
return { ok: result.ok, state: "vm", lines: result.lines };
|
|
152
|
-
}
|
|
153
|
-
const config = loadRunnerConfig(input.configPath);
|
|
154
|
-
let launcherLines = [];
|
|
155
|
-
let launcherNotes = [];
|
|
156
|
-
let restartLine;
|
|
157
|
-
if (input.print !== true && input.layoutInstalled !== true) {
|
|
158
|
-
const installed = runRunnerInstall({
|
|
159
|
-
configPath: input.configPath,
|
|
160
|
-
entryPath: input.entryPath,
|
|
161
|
-
nodePath: input.nodePath,
|
|
162
|
-
home: input.home,
|
|
163
|
-
PATH: process.env.PATH,
|
|
164
|
-
replace: input.replace,
|
|
165
|
-
allowDowngrade: input.allowDowngrade,
|
|
166
|
-
command: "runner install --service"
|
|
167
|
-
});
|
|
168
|
-
launcherLines = [launcherSummary(installed.launcher)].filter((line) => line !== void 0);
|
|
169
|
-
launcherNotes = installed.launcher.notes;
|
|
170
|
-
restartLine = restartNote(installed);
|
|
171
|
-
}
|
|
172
|
-
const account = input.user ?? userInfo().username;
|
|
173
|
-
const serviceDeps = (deps.service ?? realServiceDeps)();
|
|
174
|
-
if (input.print !== true && account !== userInfo().username && serviceDeps.accountCan !== void 0) {
|
|
175
|
-
const entry = join(currentLink(input.configPath), "node_modules", "@outerlayer", "cli", "dist", "index.js");
|
|
176
|
-
const problem = accountCannotStart(account, input.nodePath, entry, serviceDeps.accountCan);
|
|
177
|
-
if (problem !== void 0) return { ok: false, state: "refused", lines: [problem] };
|
|
178
|
-
}
|
|
179
|
-
const outcome = installService(
|
|
180
|
-
{
|
|
181
|
-
configPath: input.configPath,
|
|
182
|
-
hooks: config.hooks,
|
|
183
|
-
concurrency: config.concurrency,
|
|
184
|
-
buildMemory: config.build?.memory ?? "8g",
|
|
185
|
-
timeLimitMinutes: config.timeLimitMinutes,
|
|
186
|
-
execStart: execStartCommand(input.configPath, input.nodePath),
|
|
187
|
-
user: account,
|
|
188
|
-
unitName: input.unitName,
|
|
189
|
-
print: input.print,
|
|
190
|
-
replace: input.replace,
|
|
191
|
-
restart: input.restart
|
|
192
|
-
},
|
|
193
|
-
serviceDeps
|
|
194
|
-
);
|
|
195
|
-
const restartLines = restartLine !== void 0 && (outcome.state === "current" || outcome.state === "pending-restart") ? [restartLine] : [];
|
|
196
|
-
return { ok: outcome.ok, state: outcome.state, lines: [...outcome.lines, ...outcome.ok ? [...restartLines, ...launcherLines] : []], unit: outcome.unit, ...launcherNotes.length > 0 ? { notes: launcherNotes } : {} };
|
|
197
|
-
}
|
|
198
|
-
async function uninstallServiceCommand(input, deps = {}) {
|
|
199
|
-
const vm = runnerVmOf(input.configPath);
|
|
200
|
-
if (vm !== void 0) {
|
|
201
|
-
const result = await serviceInVm((deps.lima ?? realLima)(), vm.instance, "uninstall", { home: input.home, extraArgs: input.unitName === void 0 ? [] : ["--unit-name", input.unitName] });
|
|
202
|
-
return { ok: result.ok, state: "vm", lines: result.lines };
|
|
203
|
-
}
|
|
204
|
-
const outcome = uninstallService({ configPath: input.configPath, unitName: input.unitName }, (deps.service ?? realServiceDeps)());
|
|
205
|
-
return { ok: outcome.ok, state: outcome.state, lines: outcome.lines };
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export { installServiceCommand, uninstallServiceCommand };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { ensureHostKey, loadHostKey, signerFor } from './chunk-PVRBE7S4.js';
|
|
4
|
-
import './chunk-KF37SUDM.js';
|
|
5
|
-
import './chunk-BN3CSI7S.js';
|
|
6
|
-
import './chunk-GISNHSYL.js';
|
|
7
|
-
import './chunk-Z5GEFMRW.js';
|
|
8
|
-
|
|
9
|
-
createRequire(import.meta.url);
|
package/dist/pending-35J3ZPLR.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { readPendingUpdate, writePendingUpdate } from './chunk-NGZID7UI.js';
|
|
4
|
-
import './chunk-KF37SUDM.js';
|
|
5
|
-
import './chunk-BN3CSI7S.js';
|
|
6
|
-
import './chunk-GISNHSYL.js';
|
|
7
|
-
import './chunk-Z5GEFMRW.js';
|
|
8
|
-
|
|
9
|
-
createRequire(import.meta.url);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
export { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON, JOIN_DIR, JOIN_SOCKET, JOIN_WAIT_MS, MALFORMED_REASON, MAX_MALFORMED_SESSIONS, MAX_OPEN_STREAMS, RELAY_ID, RELAY_USER, RUNNER_WORDED_REASONS, SESSION_WINDOW, STREAM_WINDOW, TARGET_CLAUDE, TARGET_GATEWAY, TARGET_LEASE, TARGET_TUNNEL, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, destinationTarget, targetOfPath } from './chunk-GISNHSYL.js';
|
|
4
|
-
import './chunk-Z5GEFMRW.js';
|
|
5
|
-
|
|
6
|
-
createRequire(import.meta.url);
|