ework-web 0.10.11 → 0.10.12
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 +1 -1
- package/src/daemon-deploy.ts +4 -0
package/package.json
CHANGED
package/src/daemon-deploy.ts
CHANGED
|
@@ -77,6 +77,7 @@ function buildEnvBlock(env: Map<string, string>, target: DeployTarget): string {
|
|
|
77
77
|
for (const k of FORWARD_KEYS) {
|
|
78
78
|
const v = env.get(k);
|
|
79
79
|
if (v === undefined) continue;
|
|
80
|
+
if (k === "OPENCODE_BINARY") continue;
|
|
80
81
|
lines.push(`${k}=${v}`);
|
|
81
82
|
}
|
|
82
83
|
const mysqlHost = String(target.mysqlHost).replace(/:\d+$/, "");
|
|
@@ -102,6 +103,9 @@ function buildSetupScript(envBlock: string, daemonPort: number, mysqlHostRaw: st
|
|
|
102
103
|
`timeout 5 bash -c "echo > /dev/tcp/${mysqlHost}/${mysqlPort}" 2>/dev/null && echo "MySQL port reachable" || { echo "MySQL UNREACHABLE at ${mysqlHost}:${mysqlPort} — daemon will fail to connect"; exit 1; }`,
|
|
103
104
|
`echo "[2/5] installing ework-aio..."`,
|
|
104
105
|
`npm install -g ework-aio`,
|
|
106
|
+
`echo "[2.5/5] ensuring opencode is available..."`,
|
|
107
|
+
`command -v opencode >/dev/null 2>&1 || { echo "installing opencode..."; curl -fsSL https://opencode.ai/install | bash; }`,
|
|
108
|
+
`mkdir -p ~/.local/share/ework-aio/opencode-workdir`,
|
|
105
109
|
`echo "[3/5] writing daemon config..."`,
|
|
106
110
|
`mkdir -p ~/.local/share/ework-aio/ework-daemon`,
|
|
107
111
|
`REMOTE_IP=$(hostname -I 2>/dev/null | awk '{print $1}')`,
|