Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix: source official plugin metadata from releases

tianma-if2c506111c151
diff --git a/apps/web/public/extensions/registry.json b/apps/web/public/extensions/registry.json
index b32e91cb..ab1bf776 100644
--- a/apps/web/public/extensions/registry.json
+++ b/apps/web/public/extensions/registry.json
@@ -1,16 +1,11 @@
{
"registryVersion": "1",
- "updatedAt": "2026-09-22T02:19:28.000Z",
+ "updatedAt": "2026-09-22T02:31:37.000Z",
"entries": [
{
"id": "org.edgeever.tasks",
"name": "EdgeEver Tasks",
"description": "Collects Markdown tasks across notes and links every task back to its source.",
- "locales": {
- "zh-CN": {
- "description": "汇总所有笔记中的 Markdown 任务,并将每项任务链接回原笔记。"
- }
- },
"author": "EdgeEver",
"publisher": "edgeever",
"category": "Productivity",
@@ -20,9 +15,9 @@
"repositoryUrl": "https://github.com/tianma-if/edgeever-tasks"
},
"verification": {
- "version": "0.6.3",
+ "version": "0.6.4",
"checksums": {
- "manifestJson": "a6fa5c2a58d673f74319794e44d632804a6e7abf301269d900effe6f58567a5f",
+ "manifestJson": "c9da5505296f94d53db44a7301a5dfddd4081b12774f42199b0c5f96271e47cb",
"mainJs": "c668ebd87e807e864d01dc879f3486b8c2d90b0fa4a004e7e9935d41360a74c3",
"stylesCss": "1c307ac17bd4680c534007adaee1d2f3a4b1d6f36ee8585c291d65ebf94b9b03"
}
@@ -32,11 +27,6 @@
"id": "org.edgeever.plugins.ai-rss",
"name": "EdgeEver AI RSS",
"description": "AI-generated daily digests from curated RSS and Atom feeds, saved directly to EdgeEver notes.",
- "locales": {
- "zh-CN": {
- "description": "根据精选的 RSS 和 Atom 订阅源生成 AI 每日摘要,并直接保存到 EdgeEver 笔记。"
- }
- },
"author": "EdgeEver",
"publisher": "edgeever",
"category": "News & AI",
@@ -46,10 +36,10 @@
"repositoryUrl": "https://github.com/tianma-if/edgeever-ai-rss"
},
"verification": {
- "version": "0.5.3",
+ "version": "0.5.9",
"checksums": {
- "manifestJson": "b164bf6ab199f0ef4282319dd87294a876ef3e7701962bae35a7b65c4e3c1156",
- "mainJs": "7828d256ad758f85bd736742a72cac62ba46db6a2108c3a974bf9f429fcc3be4",
+ "manifestJson": "1cb1f4eb347cf9f566d5f888ecacda349ef112c80d03d4d848d2f19df079d6b2",
+ "mainJs": "208153aac4648943e94370a664abbd83a284bdeb96c3cefade85d26cfe64a7f8",
"stylesCss": "05cd135a1fe70c3f38d34850a2e9abf6b0c0530b09477960036f567375b2082e"
}
}
diff --git a/apps/web/src/lib/plugins/plugin-marketplace.test.mjs b/apps/web/src/lib/plugins/plugin-marketplace.test.mjs
index b6cd2f68..b7820235 100644
--- a/apps/web/src/lib/plugins/plugin-marketplace.test.mjs
+++ b/apps/web/src/lib/plugins/plugin-marketplace.test.mjs
@@ -26,9 +26,6 @@ describe("bundled plugin marketplace", () => {
expect(registry.entries.map((entry) => entry.id)).not.toContain("org.edgeever.examples.recent-notes");
expect(registry.entries.map((entry) => entry.id)).not.toContain("org.edgeever.themes.nord-emerald");
for (const entry of registry.entries) {
- if (entry.publisher === "edgeever") {
- expect(entry.locales?.["zh-CN"]?.description).toBeTruthy();
- }
if (entry.distribution.type !== "manifest") continue;
const relativeManifestPath = entry.distribution.manifestUrl.replace(/^\/extensions\//, "");
const manifestFileUrl = new URL(`../../../public/extensions/${relativeManifestPath}`, import.meta.url);
@@ -50,9 +47,9 @@ describe("bundled plugin marketplace", () => {
repositoryUrl: "https://github.com/tianma-if/edgeever-tasks",
distribution: { type: "github", repositoryUrl: "https://github.com/tianma-if/edgeever-tasks" },
verification: {
- version: "0.6.3",
+ version: "0.6.4",
checksums: {
- manifestJson: "a6fa5c2a58d673f74319794e44d632804a6e7abf301269d900effe6f58567a5f",
+ manifestJson: "c9da5505296f94d53db44a7301a5dfddd4081b12774f42199b0c5f96271e47cb",
mainJs: "c668ebd87e807e864d01dc879f3486b8c2d90b0fa4a004e7e9935d41360a74c3",
stylesCss: "1c307ac17bd4680c534007adaee1d2f3a4b1d6f36ee8585c291d65ebf94b9b03",
},
@@ -69,10 +66,10 @@ describe("bundled plugin marketplace", () => {
repositoryUrl: "https://github.com/tianma-if/edgeever-ai-rss",
distribution: { type: "github", repositoryUrl: "https://github.com/tianma-if/edgeever-ai-rss" },
verification: {
- version: "0.5.3",
+ version: "0.5.9",
checksums: {
- manifestJson: "b164bf6ab199f0ef4282319dd87294a876ef3e7701962bae35a7b65c4e3c1156",
- mainJs: "7828d256ad758f85bd736742a72cac62ba46db6a2108c3a974bf9f429fcc3be4",
+ manifestJson: "1cb1f4eb347cf9f566d5f888ecacda349ef112c80d03d4d848d2f19df079d6b2",
+ mainJs: "208153aac4648943e94370a664abbd83a284bdeb96c3cefade85d26cfe64a7f8",
stylesCss: "05cd135a1fe70c3f38d34850a2e9abf6b0c0530b09477960036f567375b2082e",
},
},
@@ -102,6 +99,11 @@ describe("bundled plugin marketplace", () => {
version: "0.5.3",
apiVersion: "2",
settingsUi: "host",
+ description: "Live release description",
+ locales: {
+ "zh-CN": { description: "实时发行版中文说明" },
+ ja: { description: "ライブリリースの日本語説明" },
+ },
entry: "./main.js",
permissions: ["ui:notices"],
};
@@ -140,6 +142,13 @@ describe("bundled plugin marketplace", () => {
mainJs: await sha256Hex(assets["main.js"]),
},
});
+ expect(resolved.entries[0]).toMatchObject({
+ description: "Live release description",
+ locales: {
+ "zh-CN": { description: "实时发行版中文说明" },
+ ja: { description: "ライブリリースの日本語説明" },
+ },
+ });
});
test("does not download official plugin packages when the live version already matches", async () => {
@@ -170,6 +179,8 @@ describe("bundled plugin marketplace", () => {
version: "0.5.5",
apiVersion: "2",
settingsUi: "host",
+ description: "Live release description",
+ locales: { ja: { description: "ライブリリースの日本語説明" } },
entry: "./main.js",
permissions: ["ui:notices"],
}));
@@ -183,6 +194,10 @@ describe("bundled plugin marketplace", () => {
expect(resolved.resolutionErrors).toEqual({});
expect(resolved.entries[0].verification).toEqual({ version: "0.5.5", checksums });
+ expect(resolved.entries[0]).toMatchObject({
+ description: "Live release description",
+ locales: { ja: { description: "ライブリリースの日本語説明" } },
+ });
expect(calls).toHaveLength(1);
});
diff --git a/apps/web/src/lib/plugins/plugin-marketplace.ts b/apps/web/src/lib/plugins/plugin-marketplace.ts
index 4a58abf6..d6dfe14d 100644
--- a/apps/web/src/lib/plugins/plugin-marketplace.ts
+++ b/apps/web/src/lib/plugins/plugin-marketplace.ts
@@ -25,6 +25,16 @@ export interface ResolvedPluginMarketplace extends MarketplaceRegistry {
resolutionErrors: Record<string, string>;
}
+const withManifestMetadata = (
+ entry: MarketplaceEntry,
+ manifest: Awaited<ReturnType<typeof loadGithubInstallableManifest>>["manifest"],
+): MarketplaceEntry => ({
+ ...entry,
+ name: manifest.name,
+ description: manifest.description ?? entry.description,
+ locales: manifest.locales,
+});
+
const resolveOfficialGithubEntry = async (
entry: MarketplaceEntry,
request: typeof fetch,
@@ -39,7 +49,7 @@ const resolveOfficialGithubEntry = async (
throw new Error("Official repository version is older than the marketplace verified version.");
}
if (live.manifest.version === entry.verification.version && entry.verification.checksums?.manifestJson) {
- return entry;
+ return withManifestMetadata(entry, live.manifest);
}
const downloaded = await downloadGithubExtension(entry.distribution.repositoryUrl, request, downloadAssetBytes);
if (downloaded.manifest.id !== entry.id) {
@@ -52,13 +62,13 @@ const resolveOfficialGithubEntry = async (
if (downloaded.manifest.type === "plugin" && !downloaded.checksums.mainJs) {
throw new Error("Official plugin release is missing a main.js checksum.");
}
- return {
+ return withManifestMetadata({
...entry,
verification: {
version: downloaded.manifest.version,
checksums: downloaded.checksums,
},
- };
+ }, downloaded.manifest);
};
export const resolveOfficialPluginMarketplace = async (