mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 06:39:23 +02:00
fix telegram ingress worker dist entry
This commit is contained in:
@@ -1 +0,0 @@
|
||||
import "./src/telegram-ingress-worker.runtime.js";
|
||||
@@ -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",
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user