feat: extend Telegram dock commands and config hashing (#929)

Thanks @grp06.

Co-authored-by: George Pickett <gpickett00@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-15 05:25:35 +00:00
parent a2f0d335f4
commit 54fb59b8f3
9 changed files with 49 additions and 18 deletions

View File

@@ -4,6 +4,7 @@ import {
loadConfig,
parseConfigJson5,
readConfigFileSnapshot,
resolveConfigSnapshotHash,
validateConfigObject,
writeConfigFile,
} from "../../config/config.js";
@@ -42,7 +43,8 @@ function requireConfigBaseHash(
respond: RespondFn,
): boolean {
if (!snapshot.exists) return true;
if (typeof snapshot.raw !== "string" || !snapshot.hash) {
const snapshotHash = resolveConfigSnapshotHash(snapshot);
if (!snapshotHash) {
respond(
false,
undefined,
@@ -65,7 +67,7 @@ function requireConfigBaseHash(
);
return false;
}
if (baseHash !== snapshot.hash) {
if (baseHash !== snapshotHash) {
respond(
false,
undefined,