feat: Domain 2 Phase 3-4 — wiki article tool, DCP compress toggle, Go sidecar deprecation
Phase 3: get_wiki_article tool wraps codesight_get_wiki_article MCP (cached, persistent codebase wiki). DCP compress toggle on get_codebase_overview (compress=true for large projects >50 files). Phase 4: Deprecation markers on Go codecontext sidecar. Warning log in callCodecontext(), deprecation comments in factory.ts and docker-compose.yml. Sidecar remains functional — removal deferred.
This commit is contained in:
@@ -3,6 +3,7 @@ import { makeCodecontextTool } from './factory.js';
|
||||
|
||||
export const GetCodebaseOverviewInput = z.object({
|
||||
include_stats: z.boolean().optional(),
|
||||
compress: z.boolean().optional().describe('Apply DCP compression for large projects (>50 files)'),
|
||||
});
|
||||
export type GetCodebaseOverviewInputT = z.infer<typeof GetCodebaseOverviewInput>;
|
||||
|
||||
@@ -24,10 +25,18 @@ const { toolDef: getCodebaseOverview, execute: executeGetCodebaseOverview } =
|
||||
type: 'boolean',
|
||||
description: 'Include file count, symbol count, language stats. Defaults to true.',
|
||||
},
|
||||
compress: {
|
||||
type: 'boolean',
|
||||
description: 'Apply DCP compression for large projects (>50 files)',
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
mapArgs: (input) => ({ include_stats: input.include_stats ?? true }),
|
||||
mapArgs: (input) => {
|
||||
const args: Record<string, unknown> = { include_stats: input.include_stats ?? true };
|
||||
if (input.compress) args['compress'] = true;
|
||||
return args;
|
||||
},
|
||||
});
|
||||
|
||||
export { getCodebaseOverview, executeGetCodebaseOverview };
|
||||
|
||||
Reference in New Issue
Block a user