hataraku
Version:
An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.
38 lines • 1.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_DEV_TOOLS = exports.DEFAULT_AI_TOOLS = exports.ToolsConfigSchema = exports.ToolSetConfigSchema = void 0;
const zod_1 = require("zod");
/**
* Schema for individual MCP server configuration
* Defines the structure for a single tool set (MCP server)
*/
exports.ToolSetConfigSchema = zod_1.z.object({
name: zod_1.z.string(),
command: zod_1.z.string(),
args: zod_1.z.array(zod_1.z.string()).optional(),
env: zod_1.z.record(zod_1.z.string().min(1), zod_1.z.string().min(1)).optional(), // Ensure non-empty strings for both keys and values
enabledTools: zod_1.z.array(zod_1.z.string()).optional(),
disabledTools: zod_1.z.array(zod_1.z.string()).optional()
});
/**
* Schema for a collection of tool configurations
* Defines the structure for a tool configuration file
*/
exports.ToolsConfigSchema = zod_1.z.object({
mcpServers: zod_1.z.array(exports.ToolSetConfigSchema)
});
/**
* Default AI tools configuration
* Empty by default, will be configured during setup
*/
exports.DEFAULT_AI_TOOLS = {
mcpServers: []
};
/**
* Default development tools configuration
* Empty by default, will be configured during setup
*/
exports.DEFAULT_DEV_TOOLS = {
mcpServers: []
};
//# sourceMappingURL=toolConfig.js.map