UNPKG

hataraku

Version:

An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.

47 lines 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_PROFILE = exports.ProfilesConfigSchema = exports.ProfileSchema = exports.KnowledgeBaseConfigSchema = exports.ProfileOptionsSchema = void 0; const zod_1 = require("zod"); exports.ProfileOptionsSchema = zod_1.z.object({ stream: zod_1.z.boolean().optional().default(true), sound: zod_1.z.boolean().optional().default(true), verbose: zod_1.z.boolean().optional().default(false), maxRetries: zod_1.z.number().int().positive().optional().default(3), maxSteps: zod_1.z.number().int().positive().optional().default(50) }); exports.KnowledgeBaseConfigSchema = zod_1.z.object({ knowledgeBaseId: zod_1.z.string(), modelArn: zod_1.z.string().optional(), region: zod_1.z.string().optional() }); exports.ProfileSchema = zod_1.z.object({ name: zod_1.z.string(), description: zod_1.z.string().optional(), agent: zod_1.z.string().optional(), provider: zod_1.z.string().optional(), model: zod_1.z.string().optional(), tools: zod_1.z.array(zod_1.z.string()).optional(), providerOptions: zod_1.z.record(zod_1.z.string()).optional(), options: exports.ProfileOptionsSchema.optional(), knowledgeBase: exports.KnowledgeBaseConfigSchema.optional() }); exports.ProfilesConfigSchema = zod_1.z.object({ activeProfile: zod_1.z.string(), profiles: zod_1.z.array(exports.ProfileSchema) }); // Default profile configuration exports.DEFAULT_PROFILE = { name: 'default', description: 'Default configuration using Claude', provider: 'anthropic', model: 'claude-3-7-sonnet-20250219', tools: ['ai-tools', 'dev-tools'], options: { stream: true, sound: true, verbose: false, maxRetries: 3, maxSteps: 50 } }; //# sourceMappingURL=profileConfig.js.map