lint
This commit is contained in:
parent
e1938b9933
commit
0b2658f5b0
7 changed files with 14 additions and 8 deletions
|
|
@ -153,7 +153,7 @@ program
|
||||||
key: string;
|
key: string;
|
||||||
intermediate?: string[];
|
intermediate?: string[];
|
||||||
selfSigned?: boolean;
|
selfSigned?: boolean;
|
||||||
}
|
},
|
||||||
) => {
|
) => {
|
||||||
void (async () => {
|
void (async () => {
|
||||||
try {
|
try {
|
||||||
|
|
@ -219,7 +219,7 @@ program
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
// Verify command
|
// Verify command
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type {
|
import type {
|
||||||
|
Logger,
|
||||||
McpbManifest,
|
McpbManifest,
|
||||||
McpbUserConfigValues,
|
McpbUserConfigValues,
|
||||||
Logger,
|
|
||||||
McpServerConfig,
|
McpServerConfig,
|
||||||
} from "../types.js";
|
} from "../types.js";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@ export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
||||||
|
|
||||||
export type McpbManifestAuthor = z.infer<typeof McpbManifestAuthorSchema>;
|
export type McpbManifestAuthor = z.infer<typeof McpbManifestAuthorSchema>;
|
||||||
|
|
||||||
export type McpbManifestRepository = z.infer<typeof McpbManifestRepositorySchema>;
|
export type McpbManifestRepository = z.infer<
|
||||||
|
typeof McpbManifestRepositorySchema
|
||||||
|
>;
|
||||||
|
|
||||||
export type McpbManifestPlatformOverride = z.infer<
|
export type McpbManifestPlatformOverride = z.infer<
|
||||||
typeof McpbManifestPlatformOverrideSchema
|
typeof McpbManifestPlatformOverrideSchema
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ describe("DXT CLI", () => {
|
||||||
// Commander outputs help to stderr when no command is provided
|
// Commander outputs help to stderr when no command is provided
|
||||||
const execError = error as ExecSyncError;
|
const execError = error as ExecSyncError;
|
||||||
expect(execError.stderr.toString()).toContain(
|
expect(execError.stderr.toString()).toContain(
|
||||||
"Usage: dxt [options] [command]",
|
"Usage: mcpb [options] [command]",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {
|
||||||
hasRequiredConfigMissing,
|
hasRequiredConfigMissing,
|
||||||
replaceVariables,
|
replaceVariables,
|
||||||
} from "../src/shared/config";
|
} from "../src/shared/config";
|
||||||
import type { McpbManifest, Logger } from "../src/types";
|
import type { Logger, McpbManifest } from "../src/types";
|
||||||
|
|
||||||
describe("replaceVariables", () => {
|
describe("replaceVariables", () => {
|
||||||
it("should replace variables in strings", () => {
|
it("should replace variables in strings", () => {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ describe("McpbManifestSchema", () => {
|
||||||
|
|
||||||
expect(result.success).toBe(false);
|
expect(result.success).toBe(false);
|
||||||
if (!result.success) {
|
if (!result.success) {
|
||||||
const errors = result.error.issues.map((issue: any) => issue.path.join("."));
|
const errors = result.error.issues.map((issue) => issue.path.join("."));
|
||||||
expect(errors).toContain("author.name");
|
expect(errors).toContain("author.name");
|
||||||
expect(errors).toContain("author.email");
|
expect(errors).toContain("author.email");
|
||||||
expect(errors).toContain("server.type");
|
expect(errors).toContain("server.type");
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,11 @@ import * as fs from "fs";
|
||||||
import forge from "node-forge";
|
import forge from "node-forge";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
|
||||||
import { signMcpbFile, unsignMcpbFile, verifyMcpbFile } from "../src/node/sign.js";
|
import {
|
||||||
|
signMcpbFile,
|
||||||
|
unsignMcpbFile,
|
||||||
|
verifyMcpbFile,
|
||||||
|
} from "../src/node/sign.js";
|
||||||
|
|
||||||
// Test directory
|
// Test directory
|
||||||
const TEST_DIR = path.join(__dirname, "test-output");
|
const TEST_DIR = path.join(__dirname, "test-output");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue