Skip to content

Commit 288a6db

Browse files
wip v26
1 parent 25a035d commit 288a6db

77 files changed

Lines changed: 335 additions & 758 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/chatgptapp/src/__tests__/tools.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,16 @@ This product delivers voice-first social conversations for builders.
142142

143143
it('improve_developing_behavior refreshes baseline via digest when requested', async () => {
144144
const result = await runTool<{
145-
latest_behavior: string;
145+
latestBehavior: string;
146146
metadata: { digestUsed?: boolean };
147147
}>('improve_developing_behavior', {
148-
improvement_betterment: 'Always cite file paths with line numbers.',
148+
behaviorImprovement: 'Always cite file paths with line numbers.',
149149
regenerateFromDigest: true,
150150
});
151151
expect(generateDigestMock).toHaveBeenCalled();
152152
expect(result.metadata.digestUsed).toBe(true);
153-
expect(result.latest_behavior).toContain('Confirm Supabase credentials before coding.');
154-
expect(result.latest_behavior).toContain('Always cite file paths');
153+
expect(result.latestBehavior).toContain('Confirm Supabase credentials before coding.');
154+
expect(result.latestBehavior).toContain('Always cite file paths');
155155
});
156156

157157
it('use_vercel_read_external_mcp handles list_deployments', async () => {
@@ -290,17 +290,17 @@ This product delivers voice-first social conversations for builders.
290290
it('improve_developing_behavior reports digest errors and uses template baseline', async () => {
291291
generateDigestMock.mockRejectedValueOnce(new Error('agents digest unavailable'));
292292
const result = await runTool<{
293-
latest_behavior: string;
293+
latestBehavior: string;
294294
metadata: { digestUsed?: boolean; digestError?: string };
295295
}>('improve_developing_behavior', {
296-
improvement_betterment: 'Record when successors need live narration.',
296+
behaviorImprovement: 'Record when successors need live narration.',
297297
regenerateFromDigest: true,
298298
});
299299

300300
expect(result.metadata.digestUsed).toBe(false);
301301
expect(result.metadata.digestError).toBe('agents digest unavailable');
302-
expect(result.latest_behavior).toContain('### Behavior Evolution');
303-
expect(result.latest_behavior).toContain('Record when successors need live narration.');
304-
expect(result.latest_behavior).toContain('# AGENTS\' INSTRUCTIONS:\n\n- []');
302+
expect(result.latestBehavior).toContain('### Behavior Improvement');
303+
expect(result.latestBehavior).toContain('Record when successors need live narration.');
304+
expect(result.latestBehavior).toContain('# AGENTS\' INSTRUCTIONS:\n\n- []');
305305
});
306306
});

packages/chatgptapp/src/__tests__/yapperFlow.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ This product delivers voice-first social conversations for builders.
217217

218218
// Step 11: Capture agent learnings, regenerating baseline
219219
const agentsUpdate = await runTool<{
220-
latest_behavior: string;
220+
latestBehavior: string;
221221
metadata: { digestUsed?: boolean };
222222
}>('improve_developing_behavior', {
223-
improvement_betterment: 'Always cite file paths with numbers when summarising code.',
223+
behaviorImprovement: 'Always cite file paths with numbers when summarising code.',
224224
regenerateFromDigest: true,
225225
});
226226
expect(generateDigestMock).toHaveBeenCalledTimes(2);
227227
expect(agentsUpdate.metadata.digestUsed).toBe(true);
228-
expect(agentsUpdate.latest_behavior).toContain('Always cite file paths');
228+
expect(agentsUpdate.latestBehavior).toContain('Always cite file paths');
229229
});
230230
});

packages/chatgptapp/src/tools.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -803,14 +803,14 @@ const WRITE_CODE_CHANGES_SCHEMA = {
803803
};
804804

805805
const IMPROVE_BEHAVIOR_VALIDATOR = z.object({
806-
improvement_betterment: z.string().optional().describe('Notes about desired agent behavior changes'),
806+
behaviorImprovement: z.string().optional().describe('Notes about desired development behavior changes'),
807807
currentAgentsMd: z.string().optional().describe('Optional current AGENTS.md for reference'),
808808
regenerateFromDigest: z.boolean().optional().describe('Regenerate the baseline AGENTS.md from digest before applying updates')
809809
}).strict();
810810

811811
async function executeImproveDevelopingBehavior(args: z.infer<typeof IMPROVE_BEHAVIOR_VALIDATOR>) {
812-
const focus = args.improvement_betterment?.slice(0, 120) || 'general';
813-
const update = ['### Behavior Evolution', args.improvement_betterment ?? 'Capture new behaviors next session.'].join('\n');
812+
const focus = args.behaviorImprovement?.slice(0, 120) || 'general';
813+
const update = ['### Behavior Improvement', args.behaviorImprovement ?? 'Capture new behaviors next session.'].join('\n');
814814

815815
let baseDocument = args.currentAgentsMd && args.currentAgentsMd.trim().length > 0
816816
? args.currentAgentsMd.trim()
@@ -855,8 +855,8 @@ async function executeImproveDevelopingBehavior(args: z.infer<typeof IMPROVE_BEH
855855
? `Digest refresh unavailable (${digestError}); using provided AGENTS.md context.`
856856
: 'Appended behaviour notes to the provided AGENTS.md context.';
857857

858-
const behaviorInsights = args.improvement_betterment
859-
? args.improvement_betterment
858+
const behaviorInsights = args.behaviorImprovement
859+
? args.behaviorImprovement
860860
.split(/\r?\n/)
861861
.map((line) => line.trim())
862862
.filter(Boolean)
@@ -867,9 +867,9 @@ async function executeImproveDevelopingBehavior(args: z.infer<typeof IMPROVE_BEH
867867
});
868868

869869
return {
870-
thennnowevolution: update,
871-
concretelatestgreatestapproach: latestBehavior,
872-
latest_behavior: latestBehavior,
870+
behaviorDelta: update,
871+
latestBehaviorDocument: latestBehavior,
872+
latestBehavior: latestBehavior,
873873
metadata: {
874874
focus,
875875
created,
@@ -886,9 +886,9 @@ const IMPROVE_BEHAVIOR_SCHEMA = {
886886
type: 'object',
887887
additionalProperties: false,
888888
properties: {
889-
improvement_betterment: {
889+
behaviorImprovement: {
890890
type: 'string',
891-
description: 'Notes about desired agent behavior changes'
891+
description: 'Notes about desired development behavior changes'
892892
},
893893
currentAgentsMd: {
894894
type: 'string',

packages/executions-mcp/src/mcp-server/src/docs/mcp-spec-generator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class MCPSpecificationGenerator {
9797
serverInfo: {
9898
name: 'bitcode-market-infrastructure',
9999
version: '1.0.0',
100-
description: 'Engineering intelligence platform exposing comprehensive capabilities through MCP',
100+
description: 'Technical knowledge exchange platform exposing comprehensive capabilities through MCP',
101101
capabilities: [
102102
'Pipeline Management', 'Advanced Intelligence', 'Enterprise Integration',
103103
'LSP Integration', 'Observability', 'Cross-Repository Learning'
@@ -287,7 +287,7 @@ export class MCPSpecificationGenerator {
287287
if (description.includes('refactor')) useCases.push('Code Refactoring');
288288
if (description.includes('analytics')) useCases.push('Business Intelligence');
289289

290-
return useCases.length > 0 ? useCases : ['General Engineering'];
290+
return useCases.length > 0 ? useCases : ['General Technical Work'];
291291
}
292292

293293
/**
@@ -375,7 +375,7 @@ export class MCPSpecificationGenerator {
375375
'Analysis': 'Code analysis and repository intelligence'
376376
};
377377

378-
return descriptions[category] || 'Engineering intelligence tools';
378+
return descriptions[category] || 'Technical knowledge tools';
379379
}
380380

381381
/**

packages/executions-mcp/src/mcp-server/src/docs/openapi-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function generateOpenAPISpec(): OpenAPIV3.Document {
2929
description: `
3030
# Bitcode MCP Server API
3131
32-
The Model Context Protocol (MCP) server exposing Bitcode’s engineering intelligence via standardized tools, resources, and prompts.
32+
The Model Context Protocol (MCP) server exposing Bitcode’s technical knowledge exchange via standardized tools, resources, and prompts.
3333
3434
## Features
3535

packages/executions-mcp/src/mcp-server/src/prompts/analysis-prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Bitcode MCP Analysis Prompts
33
*
44
* Specialized prompts for technical analysis, code investigation,
5-
* and engineering intelligence gathering.
5+
* and technical knowledge gathering.
66
*/
77

88
import { z } from 'zod';

packages/executions-mcp/src/mcp-server/src/resources/intelligence-resources.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Bitcode MCP Intelligence Resources - ORM Integration
33
*
44
* Updated to use ORM models for all database operations.
5-
* Provides AI-generated engineering intelligence through MCP resources.
5+
* Provides AI-generated technical knowledge through MCP resources.
66
*
77
* @doc-code
88
* type: resources
@@ -87,7 +87,7 @@ function parseQueryParams(uri: string): Record<string, any> {
8787
}
8888

8989
/**
90-
* Synthesize engineering intelligence
90+
* Synthesize technical knowledge
9191
*/
9292
async function synthesizeIntelligence(
9393
context: MCPAuthContext,
@@ -97,7 +97,7 @@ async function synthesizeIntelligence(
9797
const pipelineRuns = new PipelineExecutionsModel(supabase);
9898

9999
try {
100-
logger.info('Synthesizing engineering intelligence', {
100+
logger.info('Synthesizing technical knowledge', {
101101
scope: options.scope,
102102
timeframe: options.timeframe,
103103
userId: context.userId
@@ -668,8 +668,8 @@ export function registerIntelligenceResources(): MCPResource[] {
668668
return [
669669
{
670670
uri: 'bitcode://resources/intelligence/synthesis',
671-
name: 'Engineering Intelligence Synthesis',
672-
description: 'AI-powered synthesis of engineering insights, trends, and recommendations',
671+
name: 'Technical Knowledge Synthesis',
672+
description: 'AI-powered synthesis of technical insights, trends, and recommendations',
673673
mimeType: 'application/json',
674674

675675
read: async (uri: string, context: MCPAuthContext) => {

packages/executions-mcp/src/mcp-server/src/tools/analysis-tools.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Bitcode MCP Analysis Tools
33
*
44
* Advanced AI-powered analysis tools for repository intelligence,
5-
* architectural insights, and engineering intelligence synthesis.
5+
* architectural insights, and technical knowledge synthesis.
66
*/
77

88
import { z } from 'zod';
@@ -418,17 +418,17 @@ Generates actionable insights with confidence scoring and remediation guidance.`
418418

419419
{
420420
name: 'bitcode://analysis/intelligence/synthesize',
421-
description: `Synthesize engineering intelligence across repositories and time periods.
421+
description: `Synthesize technical knowledge across repositories and time periods.
422422
423423
AI-powered intelligence synthesis providing:
424424
• Cross-repository pattern identification
425-
Engineering productivity trend analysis
425+
Technical productivity trend analysis
426426
• Quality and security posture evolution
427427
• Technology adoption and migration insights
428428
• Team performance and collaboration patterns
429429
• Predictive insights for technical decisions
430430
431-
Generates strategic insights for engineering leadership with confidence-scored recommendations.`,
431+
Generates strategic insights for technical leadership with confidence-scored recommendations.`,
432432

433433
inputSchema: IntelligenceSynthesisSchema,
434434

packages/executions-mcp/src/mcp-server/src/tools/intelligence-tools.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface MCPTool {
2222

2323
/**
2424
* EFFECTIVENESS TRACKING INTELLIGENCE
25-
* Revolutionary real-time quality measurement and learning system
25+
* Real-time quality measurement and learning system
2626
*/
2727
const effectivenessTrackingToolSchema = z.object({
2828
operation: z.enum(['measure', 'predict', 'learn', 'optimize'])
@@ -577,7 +577,7 @@ export function registerIntelligenceTools(): MCPTool[] {
577577
return [
578578
{
579579
name: 'bitcode://intelligence/effectiveness/track',
580-
description: `Revolutionary effectiveness tracking system with real-time quality measurement.
580+
description: `Effectiveness tracking system with real-time quality measurement.
581581
582582
This system provides unprecedented insight into code change effectiveness:
583583
• Real-time before/after quality measurement
@@ -610,7 +610,7 @@ Enables knowledge transfer and standardization across your entire codebase ecosy
610610

611611
{
612612
name: 'bitcode://intelligence/research/advanced',
613-
description: `Revolutionary multi-provider web research with URL intelligence and synthesis.
613+
description: `Multi-provider web research with URL intelligence and synthesis.
614614
615615
Multi-wave research orchestration across diverse sources:
616616
• GitHub, Stack Overflow, academic papers, documentation sites
@@ -645,7 +645,7 @@ Advanced multimodal intelligence processing:
645645
• Figma design analysis with implementation guidance
646646
• Cross-modal synthesis for unified understanding
647647
648-
Transforms any media type into actionable engineering intelligence.`,
648+
Transforms any media type into actionable technical knowledge evidence.`,
649649

650650
inputSchema: multimodalProcessingToolSchema,
651651
execute: async (args, context) => {

packages/executions-mcp/src/mcp-server/src/tools/observability-tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const distributedTracingSchema = z.object({
171171

172172
/**
173173
* BUSINESS INTELLIGENCE & ANALYTICS
174-
* Engineering metrics, KPIs, and strategic insights
174+
* Technical metrics, KPIs, and strategic insights
175175
*/
176176
const businessIntelligenceSchema = z.object({
177177
operation: z.enum([
@@ -596,7 +596,7 @@ Enables deep performance understanding in distributed systems.`,
596596
description: `Business intelligence platform for engineering metrics and strategic insights.
597597
598598
Strategic analytics capabilities:
599-
Engineering productivity metrics with team comparisons
599+
Technical productivity metrics with team comparisons
600600
• ROI calculation for engineering investments
601601
• Technical debt analysis with cost implications
602602
• Velocity trends with predictive forecasting
@@ -647,4 +647,4 @@ Transforms logs into actionable intelligence for operational excellence.`,
647647
}
648648
}
649649
];
650-
}
650+
}

0 commit comments

Comments
 (0)