fivocell 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/ci-reporter.test.d.ts +2 -0
- package/dist/__tests__/ci-reporter.test.d.ts.map +1 -0
- package/dist/__tests__/ci-reporter.test.js +109 -0
- package/dist/__tests__/ci-reporter.test.js.map +1 -0
- package/dist/walls/06-memory/stores/ci-reporter.d.ts +68 -0
- package/dist/walls/06-memory/stores/ci-reporter.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/ci-reporter.js +272 -0
- package/dist/walls/06-memory/stores/ci-reporter.js.map +1 -0
- package/dist/walls/07-runtime/cli/cli.js +180 -0
- package/dist/walls/07-runtime/cli/cli.js.map +1 -1
- package/dist/walls/07-runtime/daemon/server.d.ts.map +1 -1
- package/dist/walls/07-runtime/daemon/server.js +67 -0
- package/dist/walls/07-runtime/daemon/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/walls/07-runtime/daemon/server.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;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AAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AA0F3D,QAAA,MAAM,GAAG,6CAAY,CAAC;AAQtB,QAAA,MAAM,OAAO;;;mBAMuB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EhD,CAAC;AA4yLF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1794,6 +1794,11 @@ const MCP_TOOLS = [
|
|
|
1794
1794
|
{ name: 'cell_memory_velocity', description: 'Get developer velocity metrics and score', inputSchema: { type: 'object', properties: { project: { type: 'string' }, days: { type: 'number' } }, required: ['project'] } },
|
|
1795
1795
|
{ name: 'cell_memory_error_trends', description: 'Get error trend analysis with regression detection', inputSchema: { type: 'object', properties: { project: { type: 'string' }, days: { type: 'number' } }, required: ['project'] } },
|
|
1796
1796
|
{ name: 'cell_memory_code_health', description: 'Get code health score based on file analysis', inputSchema: { type: 'object', properties: { project: { type: 'string' }, projectDir: { type: 'string' } }, required: ['project', 'projectDir'] } },
|
|
1797
|
+
{ name: 'cell_ci_report', description: 'Report CI build/test/deploy event to memory', inputSchema: { type: 'object', properties: { project: { type: 'string' }, branch: { type: 'string' }, buildId: { type: 'string' }, status: { type: 'string', enum: ['success', 'failure', 'cancelled'] }, stage: { type: 'string' }, commitHash: { type: 'string' }, commitMessage: { type: 'string' }, author: { type: 'string' }, duration: { type: 'number' }, ciPlatform: { type: 'string' }, logSnippet: { type: 'string' } }, required: ['project', 'status'] } },
|
|
1798
|
+
{ name: 'cell_ci_report_test', description: 'Report CI test results', inputSchema: { type: 'object', properties: { project: { type: 'string' }, branch: { type: 'string' }, buildId: { type: 'string' }, totalTests: { type: 'number' }, passed: { type: 'number' }, failed: { type: 'number' }, skipped: { type: 'number' }, duration: { type: 'number' }, coverage: { type: 'number' } }, required: ['project', 'totalTests', 'passed'] } },
|
|
1799
|
+
{ name: 'cell_ci_report_deploy', description: 'Report CI deployment', inputSchema: { type: 'object', properties: { project: { type: 'string' }, environment: { type: 'string', enum: ['staging', 'production', 'preview', 'local'] }, status: { type: 'string', enum: ['success', 'failed', 'rolled_back'] }, version: { type: 'string' }, duration: { type: 'number' } }, required: ['project', 'environment', 'status', 'version'] } },
|
|
1800
|
+
{ name: 'cell_ci_summary', description: 'Get CI/CD summary with success rates and failure patterns', inputSchema: { type: 'object', properties: { project: { type: 'string' }, days: { type: 'number' } }, required: ['project'] } },
|
|
1801
|
+
{ name: 'cell_ci_failures', description: 'Get CI failure patterns with severity and suggestions', inputSchema: { type: 'object', properties: { project: { type: 'string' }, days: { type: 'number' } }, required: ['project'] } },
|
|
1797
1802
|
];
|
|
1798
1803
|
async function handleMCPToolCall(name, args) {
|
|
1799
1804
|
try {
|
|
@@ -3061,6 +3066,68 @@ async function handleMCPToolCall(name, args) {
|
|
|
3061
3066
|
const codeHealth = computeCodeHealth(projectDir, chProject);
|
|
3062
3067
|
return { codeHealth, formatted: formatCodeHealth(codeHealth) };
|
|
3063
3068
|
}
|
|
3069
|
+
case 'cell_ci_report': {
|
|
3070
|
+
const { reportCIBuild } = require('../../06-memory/stores/ci-reporter');
|
|
3071
|
+
const ciProject = args.project;
|
|
3072
|
+
const eventId = reportCIBuild({
|
|
3073
|
+
project: ciProject,
|
|
3074
|
+
branch: args.branch || '',
|
|
3075
|
+
buildId: args.buildId || `mcp-${Date.now()}`,
|
|
3076
|
+
status: args.status || 'success',
|
|
3077
|
+
duration: args.duration || 0,
|
|
3078
|
+
stage: args.stage || 'build',
|
|
3079
|
+
commitHash: args.commitHash || '',
|
|
3080
|
+
commitMessage: args.commitMessage || '',
|
|
3081
|
+
author: args.author || '',
|
|
3082
|
+
timestamp: new Date().toISOString(),
|
|
3083
|
+
logSnippet: args.logSnippet || '',
|
|
3084
|
+
ciPlatform: args.ciPlatform || 'local',
|
|
3085
|
+
});
|
|
3086
|
+
return { eventId, status: args.status };
|
|
3087
|
+
}
|
|
3088
|
+
case 'cell_ci_report_test': {
|
|
3089
|
+
const { reportCITest } = require('../../06-memory/stores/ci-reporter');
|
|
3090
|
+
const testProject = args.project;
|
|
3091
|
+
const testEventId = reportCITest({
|
|
3092
|
+
project: testProject,
|
|
3093
|
+
branch: args.branch || '',
|
|
3094
|
+
buildId: args.buildId || `mcp-${Date.now()}`,
|
|
3095
|
+
totalTests: args.totalTests || 0,
|
|
3096
|
+
passed: args.passed || 0,
|
|
3097
|
+
failed: args.failed || 0,
|
|
3098
|
+
skipped: args.skipped || 0,
|
|
3099
|
+
duration: args.duration || 0,
|
|
3100
|
+
failedTests: [],
|
|
3101
|
+
coverage: args.coverage,
|
|
3102
|
+
timestamp: new Date().toISOString(),
|
|
3103
|
+
});
|
|
3104
|
+
return { eventId: testEventId, passed: args.passed, failed: args.failed };
|
|
3105
|
+
}
|
|
3106
|
+
case 'cell_ci_report_deploy': {
|
|
3107
|
+
const { reportCIDeploy } = require('../../06-memory/stores/ci-reporter');
|
|
3108
|
+
const deployProject = args.project;
|
|
3109
|
+
const deployEventId = reportCIDeploy({
|
|
3110
|
+
project: deployProject,
|
|
3111
|
+
environment: args.environment || 'local',
|
|
3112
|
+
status: args.status || 'success',
|
|
3113
|
+
version: args.version || '0.0.0',
|
|
3114
|
+
duration: args.duration || 0,
|
|
3115
|
+
timestamp: new Date().toISOString(),
|
|
3116
|
+
});
|
|
3117
|
+
return { eventId: deployEventId, status: args.status, version: args.version };
|
|
3118
|
+
}
|
|
3119
|
+
case 'cell_ci_summary': {
|
|
3120
|
+
const { getCISummary, formatCISummary } = require('../../06-memory/stores/ci-reporter');
|
|
3121
|
+
const ciSummaryProject = args.project || require('path').basename(process.cwd());
|
|
3122
|
+
const ciSummary = getCISummary(ciSummaryProject, args.days || 30);
|
|
3123
|
+
return { summary: ciSummary, formatted: formatCISummary(ciSummary) };
|
|
3124
|
+
}
|
|
3125
|
+
case 'cell_ci_failures': {
|
|
3126
|
+
const { detectCIFailurePatterns } = require('../../06-memory/stores/ci-reporter');
|
|
3127
|
+
const failProject = args.project || require('path').basename(process.cwd());
|
|
3128
|
+
const failures = detectCIFailurePatterns(failProject, args.days || 30);
|
|
3129
|
+
return { failures };
|
|
3130
|
+
}
|
|
3064
3131
|
default:
|
|
3065
3132
|
return { error: `unknown tool: ${name}` };
|
|
3066
3133
|
}
|