openmates 0.15.0 → 0.16.0-alpha.1
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 +3 -3
- package/dist/{chunk-EKMHE52D.js → chunk-QQA6E4KG.js} +19 -8
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -315,12 +315,12 @@ intentionally want the chat saved to the OpenMates account.
|
|
|
315
315
|
|
|
316
316
|
## Versioning
|
|
317
317
|
|
|
318
|
-
OpenMates shows the short product line, for example `v0.
|
|
318
|
+
OpenMates shows the short product line, for example `v0.16`, in the web app.
|
|
319
319
|
The npm package uses exact artifact versions:
|
|
320
320
|
|
|
321
|
-
- `0.
|
|
321
|
+
- `0.16.0-alpha.N` is a prerelease from the `dev` branch published under the
|
|
322
322
|
`alpha` npm tag.
|
|
323
|
-
- `0.
|
|
323
|
+
- `0.16.0` is a stable release from `main` published under the `latest` npm tag.
|
|
324
324
|
|
|
325
325
|
Install stable releases with `npm install -g openmates`. Install prereleases with
|
|
326
326
|
`npm install -g openmates@alpha`.
|
|
@@ -25198,6 +25198,9 @@ function planRuntimeMonitoringServices(input) {
|
|
|
25198
25198
|
].join("\n")
|
|
25199
25199
|
};
|
|
25200
25200
|
}
|
|
25201
|
+
function shouldAutoInstallRuntimeMonitoringServices(env) {
|
|
25202
|
+
return env.OPENMATES_SKIP_RUNTIME_MONITORING !== "1";
|
|
25203
|
+
}
|
|
25201
25204
|
|
|
25202
25205
|
// src/serverHealth.ts
|
|
25203
25206
|
import dnsModule, { promises as dns } from "dns";
|
|
@@ -26880,7 +26883,7 @@ async function serverInstall(flags) {
|
|
|
26880
26883
|
...cliUrls2
|
|
26881
26884
|
});
|
|
26882
26885
|
try {
|
|
26883
|
-
|
|
26886
|
+
autoInstallRuntimeMonitoringServices(installPath, role);
|
|
26884
26887
|
} catch (error) {
|
|
26885
26888
|
throw new Error(`Server files were installed but runtime monitoring service installation failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
26886
26889
|
}
|
|
@@ -26964,7 +26967,7 @@ CLI default API: ${cliUrls2.apiUrl}`);
|
|
|
26964
26967
|
...cliUrls
|
|
26965
26968
|
});
|
|
26966
26969
|
try {
|
|
26967
|
-
|
|
26970
|
+
autoInstallRuntimeMonitoringServices(installPath, role);
|
|
26968
26971
|
} catch (error) {
|
|
26969
26972
|
throw new Error(`Server files were installed but runtime monitoring service installation failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
26970
26973
|
}
|
|
@@ -27111,6 +27114,14 @@ function installRuntimeMonitoringServices(installPath, role) {
|
|
|
27111
27114
|
execSync(`systemctl enable --now ${timers.map(shellQuote).join(" ")}`, { stdio: "pipe" });
|
|
27112
27115
|
for (const timer of timers) execFileSync3("systemctl", ["is-active", "--quiet", timer], { stdio: "pipe" });
|
|
27113
27116
|
}
|
|
27117
|
+
function autoInstallRuntimeMonitoringServices(installPath, role) {
|
|
27118
|
+
if (!shouldAutoInstallRuntimeMonitoringServices(process.env)) {
|
|
27119
|
+
console.error("Skipping runtime monitoring service installation because OPENMATES_SKIP_RUNTIME_MONITORING=1.");
|
|
27120
|
+
return "skipped";
|
|
27121
|
+
}
|
|
27122
|
+
installRuntimeMonitoringServices(installPath, role);
|
|
27123
|
+
return "installed";
|
|
27124
|
+
}
|
|
27114
27125
|
async function serverUpdate(rest, flags) {
|
|
27115
27126
|
if (rest[0] === "status") {
|
|
27116
27127
|
const installPath2 = resolveServerPath(flags);
|
|
@@ -27269,7 +27280,7 @@ async function serverUpdate(rest, flags) {
|
|
|
27269
27280
|
const notificationDelivery = await dispatchRuntimeEvent(installPath, role, "post_update_failed", runtimeOutput.checks, (/* @__PURE__ */ new Date()).toISOString());
|
|
27270
27281
|
let monitoringProvision = "installed";
|
|
27271
27282
|
try {
|
|
27272
|
-
|
|
27283
|
+
monitoringProvision = autoInstallRuntimeMonitoringServices(installPath, role);
|
|
27273
27284
|
} catch {
|
|
27274
27285
|
monitoringProvision = "failed";
|
|
27275
27286
|
}
|
|
@@ -27295,7 +27306,7 @@ async function serverUpdate(rest, flags) {
|
|
|
27295
27306
|
saveServerConfig({ ...config, imageTag: target.tag, imageChannel: target.channel });
|
|
27296
27307
|
}
|
|
27297
27308
|
try {
|
|
27298
|
-
|
|
27309
|
+
autoInstallRuntimeMonitoringServices(installPath, role);
|
|
27299
27310
|
} catch (error) {
|
|
27300
27311
|
const restoreCommand = safetyPlan.backupName ? `openmates server restore --role ${role} --file ${join6(roleBackupDir(installPath, role), safetyPlan.backupName)}` : null;
|
|
27301
27312
|
writeUpdateStatus(installPath, role, {
|
|
@@ -27397,7 +27408,7 @@ async function serverUpdate(rest, flags) {
|
|
|
27397
27408
|
const notificationDelivery = await dispatchRuntimeEvent(installPath, role, "post_update_failed", runtimeOutput.checks, (/* @__PURE__ */ new Date()).toISOString());
|
|
27398
27409
|
let monitoringProvision = "installed";
|
|
27399
27410
|
try {
|
|
27400
|
-
|
|
27411
|
+
monitoringProvision = autoInstallRuntimeMonitoringServices(installPath, role);
|
|
27401
27412
|
} catch {
|
|
27402
27413
|
monitoringProvision = "failed";
|
|
27403
27414
|
}
|
|
@@ -27419,7 +27430,7 @@ async function serverUpdate(rest, flags) {
|
|
|
27419
27430
|
throw error;
|
|
27420
27431
|
}
|
|
27421
27432
|
try {
|
|
27422
|
-
|
|
27433
|
+
autoInstallRuntimeMonitoringServices(installPath, role);
|
|
27423
27434
|
} catch (error) {
|
|
27424
27435
|
writeUpdateStatus(installPath, role, { status: "degraded", step: "monitoring-service", restoreStatus: "restore_unavailable", restoreCommand: null });
|
|
27425
27436
|
throw new Error(`Runtime checks passed but monitoring service installation failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -28319,7 +28330,7 @@ Examples:
|
|
|
28319
28330
|
openmates server features enable embed:code:application
|
|
28320
28331
|
openmates server update
|
|
28321
28332
|
openmates server update --dry-run
|
|
28322
|
-
openmates server update --image-tag v0.
|
|
28333
|
+
openmates server update --image-tag v0.16.0
|
|
28323
28334
|
openmates server update --channel dev
|
|
28324
28335
|
openmates server restart --rebuild
|
|
28325
28336
|
`.trim());
|
|
@@ -65118,7 +65129,7 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
|
|
|
65118
65129
|
text: "Test for free"
|
|
65119
65130
|
},
|
|
65120
65131
|
version_title: {
|
|
65121
|
-
text: "v0.
|
|
65132
|
+
text: "v0.16"
|
|
65122
65133
|
},
|
|
65123
65134
|
domain_not_allowed: {
|
|
65124
65135
|
text: "E-Mail domain not allowed."
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED