fix: update schema to reflect manifest_version

This commit is contained in:
Joan Xie 2025-08-25 21:09:45 -07:00
commit 76949836e0
No known key found for this signature in database
6 changed files with 72 additions and 56 deletions

View file

@ -91,7 +91,7 @@ describe("DXT CLI", () => {
fs.writeFileSync(
join(tempDir, "manifest.json"),
JSON.stringify({
mcpb_version: "1.0",
manifest_version: "1.0",
name: "Test Extension",
version: "1.0.0",
description: "A test extension",
@ -188,7 +188,7 @@ describe("DXT CLI", () => {
fs.writeFileSync(
join(tempExecDir, "manifest.json"),
JSON.stringify({
mcpb_version: "1.0",
manifest_version: "1.0",
name: "Test Executable Extension",
version: "1.0.0",
description: "A test extension with executable files",

View file

@ -90,7 +90,7 @@ describe("getMcpConfigForManifest", () => {
};
const baseManifest: McpbManifest = {
mcpb_version: "1.0.0",
manifest_version: "1.0.0",
name: "test-extension",
version: "1.0.0",
description: "Test extension",
@ -305,7 +305,7 @@ describe("getMcpConfigForManifest", () => {
describe("hasRequiredConfigMissing", () => {
const baseManifest: McpbManifest = {
mcpb_version: "1.0.0",
manifest_version: "1.0.0",
name: "test-extension",
version: "1.0.0",
description: "Test extension",

View file

@ -217,7 +217,7 @@ describe("init functions", () => {
);
expect(manifest).toEqual({
mcpb_version: "0.1",
manifest_version: "0.1",
name: "test-extension",
version: "1.0.0",
description: "Test description",
@ -303,7 +303,7 @@ describe("init functions", () => {
);
expect(manifest).toEqual({
mcpb_version: "0.1",
manifest_version: "0.1",
name: "test-extension",
display_name: "Test Extension",
version: "1.0.0",

View file

@ -1,5 +1,5 @@
{
"mcpb_version": "1.0",
"manifest_version": "1.0",
"name": "test-extension",
"version": "1.0.0",
"description": "A test DXT extension",

View file

@ -37,7 +37,7 @@ describe("McpbManifestSchema", () => {
it("should validate manifest with all optional fields", () => {
const fullManifest = {
mcpb_version: "1.0",
manifest_version: "1.0",
name: "full-extension",
display_name: "Full Featured Extension",
version: "2.0.0",
@ -117,7 +117,7 @@ describe("McpbManifestSchema", () => {
serverTypes.forEach((type) => {
const manifest = {
mcpb_version: "1.0",
manifest_version: "1.0",
name: "test",
version: "1.0.0",
description: "Test",

View file

@ -1,5 +1,5 @@
{
"mcpb_version": "1.0",
"manifest_version": "1.0",
"name": "test-extension",
"display_name": "Test Extension",
"version": "1.0.0",