ework-aio 0.3.2 → 0.3.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ework-aio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "All-in-one installer for ework (issue tracker) + ework-daemon (AI bridge) + opencode-ework (plugin). One command: npm i -g ework-aio && ework-aio install.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,7 @@ import type { GlobalOptions, ServiceTarget } from "../types.ts";
|
|
|
22
22
|
|
|
23
23
|
interface ServicePaths {
|
|
24
24
|
bin: string;
|
|
25
|
+
pkg: string;
|
|
25
26
|
dataDir: string;
|
|
26
27
|
envFile: string;
|
|
27
28
|
pidFile: string;
|
|
@@ -33,6 +34,7 @@ function servicePaths(paths: PathConfig, svc: "web" | "daemon"): ServicePaths {
|
|
|
33
34
|
if (svc === "web") {
|
|
34
35
|
return {
|
|
35
36
|
bin: "ework-web",
|
|
37
|
+
pkg: "ework-web",
|
|
36
38
|
dataDir: paths.webDataDir,
|
|
37
39
|
envFile: paths.webEnvFile,
|
|
38
40
|
pidFile: paths.webPidFile,
|
|
@@ -46,6 +48,9 @@ function servicePaths(paths: PathConfig, svc: "web" | "daemon"): ServicePaths {
|
|
|
46
48
|
// and exits — spawning it leaves the daemon "looking dead" with help text
|
|
47
49
|
// in the log. See install.ts preflight for the full rationale.
|
|
48
50
|
bin: "ework-daemon-server",
|
|
51
|
+
// npm package name differs from the bin name — the error hint must use the
|
|
52
|
+
// package name, not the bin, or the user gets a 404 trying to install.
|
|
53
|
+
pkg: "ework-daemon",
|
|
49
54
|
dataDir: paths.daemonDataDir,
|
|
50
55
|
envFile: paths.daemonEnvFile,
|
|
51
56
|
pidFile: paths.daemonPidFile,
|
|
@@ -74,7 +79,7 @@ async function startOne(
|
|
|
74
79
|
const sp = servicePaths(paths, svc);
|
|
75
80
|
const binPath = resolveCommand(sp.bin);
|
|
76
81
|
if (!binPath) {
|
|
77
|
-
throw new InstallError(`${sp.bin} not found on PATH — install with: npm install -g ${sp.
|
|
82
|
+
throw new InstallError(`${sp.bin} not found on PATH — install with: npm install -g ${sp.pkg}`);
|
|
78
83
|
}
|
|
79
84
|
const existingPid = await readPidFile(sp.pidFile);
|
|
80
85
|
if (existingPid !== null && isProcessRunning(existingPid)) {
|