- Implement feature parity between Python and TypeScript MCP versions - Add comprehensive test coverage for all orthogonal tools - Consolidate tools to follow single-tool-multiple-actions pattern - Add bash, git-search, critic, and mode tools - Create multi-platform build system for VS Code, Claude Desktop, and DXT - Add test files for filesystem, search, shell, process, web-fetch, mode, and git-search tools - Fix TypeScript compilation issues and update build scripts - Update package.json with hanzo-ai publisher ID - Successfully build all distribution formats: - VS Code Extension (.vsix) - Claude Desktop MCP package - Claude Code DXT file - Standalone MCP server
79 lines
2.7 KiB
JavaScript
79 lines
2.7 KiB
JavaScript
"use strict";
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});
|
|
var __importStar = (this && this.__importStar) || (function () {
|
|
var ownKeys = function(o) {
|
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
var ar = [];
|
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
return ar;
|
|
};
|
|
return ownKeys(o);
|
|
};
|
|
return function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.run = run;
|
|
const path = __importStar(require("path"));
|
|
const Mocha = __importStar(require("mocha"));
|
|
const glob_1 = require("glob");
|
|
function run() {
|
|
// Create the mocha test
|
|
const mocha = new Mocha({
|
|
ui: 'tdd',
|
|
color: true,
|
|
timeout: 60000
|
|
});
|
|
const testsRoot = path.resolve(__dirname, '..');
|
|
return new Promise((c, e) => {
|
|
// Get test file filter from environment
|
|
const testFile = process.env.MOCHA_TEST_FILE;
|
|
let pattern = '**/**.test.js';
|
|
if (testFile) {
|
|
pattern = `**/${testFile}.test.js`;
|
|
}
|
|
(0, glob_1.glob)(pattern, { cwd: testsRoot }, (err, files) => {
|
|
if (err) {
|
|
return e(err);
|
|
}
|
|
// Add files to the test suite
|
|
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));
|
|
try {
|
|
// Run the mocha test
|
|
mocha.run((failures) => {
|
|
if (failures > 0) {
|
|
e(new Error(`${failures} tests failed.`));
|
|
}
|
|
else {
|
|
c();
|
|
}
|
|
});
|
|
}
|
|
catch (err) {
|
|
console.error(err);
|
|
e(err);
|
|
}
|
|
});
|
|
});
|
|
}
|
|
//# sourceMappingURL=index.js.map
|