fix telegram ingress worker dist entry

This commit is contained in:
joshavant
2026-05-14 04:48:45 -05:00
parent 84ec355af8
commit 8ba7927f6e
6 changed files with 21 additions and 1 deletions

View File

@@ -1 +0,0 @@
import "./src/telegram-ingress-worker.runtime.js";

View File

@@ -70,6 +70,7 @@ const requiredPathGroups = [
"dist/plugin-sdk/compat.js",
"dist/plugin-sdk/root-alias.cjs",
"dist/task-registry-control.runtime.js",
"dist/telegram-ingress-worker.runtime.js",
"dist/build-info.json",
"dist/channel-catalog.json",
"dist/control-ui/index.html",

View File

@@ -138,6 +138,14 @@ describe("tsdown config", () => {
);
});
it("keeps Telegram ingress worker behind one root stable dist entry", () => {
const distGraph = requireUnifiedDistGraph();
expect(entrySources(distGraph)["telegram-ingress-worker.runtime"]).toBe(
"extensions/telegram/src/telegram-ingress-worker.runtime.ts",
);
});
it("routes gateway run-loop lifecycle imports through the stable runtime boundary", () => {
const importSpecifiers = [
...readGatewayRunLoopSource().matchAll(/import\(["']([^"']+)["']\)/gu),

View File

@@ -495,6 +495,7 @@ describe("collectMissingPackPaths", () => {
"scripts/lib/package-dist-imports.mjs",
"scripts/postinstall-bundled-plugins.mjs",
"dist/task-registry-control.runtime.js",
"dist/telegram-ingress-worker.runtime.js",
bundledDistPluginFile("telegram", "runtime-api.js"),
bundledDistPluginFile("telegram", "openclaw.plugin.json"),
bundledDistPluginFile("telegram", "package.json"),
@@ -524,6 +525,7 @@ describe("collectMissingPackPaths", () => {
"scripts/postinstall-bundled-plugins.mjs",
"dist/plugin-sdk/root-alias.cjs",
"dist/task-registry-control.runtime.js",
"dist/telegram-ingress-worker.runtime.js",
"dist/build-info.json",
"dist/channel-catalog.json",
PACKAGE_DIST_INVENTORY_RELATIVE_PATH,

View File

@@ -68,6 +68,12 @@ describe("bundled plugin build entries", () => {
expect(pickEntries(entries, Object.keys(expectedEntries))).toStrictEqual(expectedEntries);
});
it("keeps the Telegram ingress worker out of bundled plugin public-surface entries", () => {
const entries = listBundledPluginBuildEntries();
expect(entries["extensions/telegram/telegram-ingress-worker.runtime"]).toBeUndefined();
});
it("packs runtime core support packages without requiring plugin manifests", () => {
const artifacts = listBundledPluginPackArtifacts();

View File

@@ -239,6 +239,10 @@ function buildCoreDistEntries(): Record<string, string> {
"facade-activation-check.runtime": "src/plugin-sdk/facade-activation-check.runtime.ts",
extensionAPI: "src/extensionAPI.ts",
"infra/warning-filter": "src/infra/warning-filter.ts",
"telegram-ingress-worker.runtime": bundledPluginFile(
"telegram",
"src/telegram-ingress-worker.runtime.ts",
),
"telegram/audit": bundledPluginFile("telegram", "src/audit.ts"),
"telegram/token": bundledPluginFile("telegram", "src/token.ts"),
"plugins/build-smoke-entry": "src/plugins/build-smoke-entry.ts",