fivocell 4.5.0 → 4.6.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__/context-ranker.test.d.ts +2 -0
- package/dist/__tests__/context-ranker.test.d.ts.map +1 -0
- package/dist/__tests__/context-ranker.test.js +61 -0
- package/dist/__tests__/context-ranker.test.js.map +1 -0
- package/dist/__tests__/memory-compact.test.d.ts +2 -0
- package/dist/__tests__/memory-compact.test.d.ts.map +1 -0
- package/dist/__tests__/memory-compact.test.js +43 -0
- package/dist/__tests__/memory-compact.test.js.map +1 -0
- package/dist/__tests__/summary-generator.test.d.ts +2 -0
- package/dist/__tests__/summary-generator.test.d.ts.map +1 -0
- package/dist/__tests__/summary-generator.test.js +53 -0
- package/dist/__tests__/summary-generator.test.js.map +1 -0
- package/dist/walls/01-context/context/prompt-builder.d.ts +7 -0
- package/dist/walls/01-context/context/prompt-builder.d.ts.map +1 -1
- package/dist/walls/01-context/context/prompt-builder.js +29 -0
- package/dist/walls/01-context/context/prompt-builder.js.map +1 -1
- package/dist/walls/06-memory/archive/memory-compact.d.ts +17 -0
- package/dist/walls/06-memory/archive/memory-compact.d.ts.map +1 -0
- package/dist/walls/06-memory/archive/memory-compact.js +128 -0
- package/dist/walls/06-memory/archive/memory-compact.js.map +1 -0
- package/dist/walls/06-memory/stores/context-ranker.d.ts +21 -0
- package/dist/walls/06-memory/stores/context-ranker.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/context-ranker.js +84 -0
- package/dist/walls/06-memory/stores/context-ranker.js.map +1 -0
- package/dist/walls/06-memory/stores/summary-generator.d.ts +16 -0
- package/dist/walls/06-memory/stores/summary-generator.d.ts.map +1 -0
- package/dist/walls/06-memory/stores/summary-generator.js +151 -0
- package/dist/walls/06-memory/stores/summary-generator.js.map +1 -0
- package/dist/walls/07-runtime/cli/cli.js +59 -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 +99 -0
- package/dist/walls/07-runtime/daemon/server.js.map +1 -1
- package/dist/walls/07-runtime/watcher/live-watcher.d.ts.map +1 -1
- package/dist/walls/07-runtime/watcher/live-watcher.js +32 -0
- package/dist/walls/07-runtime/watcher/live-watcher.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;AAExE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAEpF,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1760
1760
|
{ name: 'cell_predict', description: 'Predictive intelligence — repeat mistakes, decision regret, energy warnings, complexity traps', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: [] } },
|
|
1761
1761
|
{ name: 'cell_model_track', description: 'Track AI model interaction — which tool was used, what task, accepted/rejected', inputSchema: { type: 'object', properties: { modelName: { type: 'string' }, taskType: { type: 'string' }, accepted: { type: 'boolean' }, responseTimeMs: { type: 'number' }, project: { type: 'string' }, suggestion: { type: 'string' } }, required: ['modelName', 'taskType', 'accepted'] } },
|
|
1762
1762
|
{ name: 'cell_model_recommend', description: 'Get AI model recommendations — which tool works best for which task', inputSchema: { type: 'object', properties: {} } },
|
|
1763
|
+
{ name: 'cell_handoff_current', description: 'Get current handoff context (max 200 lines, auto-rotation)', inputSchema: { type: 'object', properties: { project: { type: 'string' } } } },
|
|
1764
|
+
{ name: 'cell_handoff_log', description: 'Log a handoff entry with title, summary, status', inputSchema: { type: 'object', properties: { project: { type: 'string' }, title: { type: 'string' }, summary: { type: 'string' }, status: { type: 'string', enum: ['done', 'in-progress', 'blocked', 'pending'] }, filesChanged: { type: 'array', items: { type: 'string' } }, why: { type: 'string' }, nextSteps: { type: 'string' } }, required: ['title', 'summary', 'status'] } },
|
|
1765
|
+
{ name: 'cell_handoff_history', description: 'Get handoff history for a month (YYYY-MM)', inputSchema: { type: 'object', properties: { project: { type: 'string' }, month: { type: 'string' } } } },
|
|
1766
|
+
{ name: 'cell_memory_search', description: 'Search memory events by query (summary, topic, details)', inputSchema: { type: 'object', properties: { project: { type: 'string' }, query: { type: 'string' }, limit: { type: 'number' } }, required: ['query'] } },
|
|
1767
|
+
{ name: 'cell_memory_stats', description: 'Get memory event statistics (total, by type, avg importance)', inputSchema: { type: 'object', properties: { project: { type: 'string' } } } },
|
|
1768
|
+
{ name: 'cell_memory_timeline', description: 'Get memory activity timeline (grouped by day)', inputSchema: { type: 'object', properties: { project: { type: 'string' }, days: { type: 'number' } } } },
|
|
1769
|
+
{ name: 'cell_memory_record', description: 'Record a memory event (edit, decision, error, fix, etc.)', inputSchema: { type: 'object', properties: { project: { type: 'string' }, type: { type: 'string', enum: ['file_event', 'edit', 'decision', 'error', 'fix', 'verification', 'publish', 'handoff', 'pattern', 'style', 'session', 'branch', 'risk', 'question', 'ai_work'] }, topic: { type: 'string' }, summary: { type: 'string' }, files: { type: 'array', items: { type: 'string' } }, importance: { type: 'number' }, tool: { type: 'string' }, model: { type: 'string' } }, required: ['type', 'summary'] } },
|
|
1770
|
+
{ name: 'cell_style_get', description: 'Get developer and project style profiles', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
|
|
1771
|
+
{ name: 'cell_style_update', description: 'Update developer style preference', inputSchema: { type: 'object', properties: { project: { type: 'string' }, key: { type: 'string' }, value: { type: 'string' } }, required: ['project', 'key', 'value'] } },
|
|
1772
|
+
{ name: 'cell_memory_compact', description: 'Compact memory — merge old events and archive chunks', inputSchema: { type: 'object', properties: { project: { type: 'string' }, olderThanDays: { type: 'number' } } } },
|
|
1773
|
+
{ name: 'cell_memory_health', description: 'Get full memory health report (events, archive, handoff)', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
|
|
1774
|
+
{ name: 'cell_memory_summary', description: 'Generate daily or weekly memory summary', inputSchema: { type: 'object', properties: { project: { type: 'string' }, period: { type: 'string', enum: ['daily', 'weekly'] } }, required: ['project'] } },
|
|
1763
1775
|
];
|
|
1764
1776
|
async function handleMCPToolCall(name, args) {
|
|
1765
1777
|
try {
|
|
@@ -2771,6 +2783,93 @@ async function handleMCPToolCall(name, args) {
|
|
|
2771
2783
|
const { getModelRecommendations } = require('../../03-knowledge/decisions/');
|
|
2772
2784
|
return { recommendations: getModelRecommendations() };
|
|
2773
2785
|
}
|
|
2786
|
+
case 'cell_handoff_current': {
|
|
2787
|
+
const { getCurrentHandoff, getHandoffStats } = require('../../06-memory/handoff/handoff-store');
|
|
2788
|
+
const projectDir = args.project || process.cwd();
|
|
2789
|
+
const content = getCurrentHandoff(projectDir);
|
|
2790
|
+
const stats = getHandoffStats(projectDir);
|
|
2791
|
+
return { content, stats };
|
|
2792
|
+
}
|
|
2793
|
+
case 'cell_handoff_log': {
|
|
2794
|
+
const { saveHandoffEntry } = require('../../06-memory/handoff/handoff-store');
|
|
2795
|
+
const projectDir = args.project || process.cwd();
|
|
2796
|
+
saveHandoffEntry(projectDir, {
|
|
2797
|
+
project: require('path').basename(projectDir),
|
|
2798
|
+
title: args.title,
|
|
2799
|
+
summary: args.summary,
|
|
2800
|
+
status: args.status || 'done',
|
|
2801
|
+
filesChanged: args.filesChanged,
|
|
2802
|
+
why: args.why,
|
|
2803
|
+
nextSteps: args.nextSteps,
|
|
2804
|
+
});
|
|
2805
|
+
return { logged: true, title: args.title };
|
|
2806
|
+
}
|
|
2807
|
+
case 'cell_handoff_history': {
|
|
2808
|
+
const { getHistoryHandoff } = require('../../06-memory/handoff/handoff-store');
|
|
2809
|
+
const projectDir = args.project || process.cwd();
|
|
2810
|
+
return { content: getHistoryHandoff(projectDir, args.month) };
|
|
2811
|
+
}
|
|
2812
|
+
case 'cell_memory_search': {
|
|
2813
|
+
const { searchMemoryEvents } = require('../../06-memory/stores/memory-event-store');
|
|
2814
|
+
const project = args.project;
|
|
2815
|
+
const results = searchMemoryEvents(args.query, project, args.limit || 20);
|
|
2816
|
+
return { results, count: results.length };
|
|
2817
|
+
}
|
|
2818
|
+
case 'cell_memory_stats': {
|
|
2819
|
+
const { getMemoryStats } = require('../../06-memory/stores/memory-event-store');
|
|
2820
|
+
return { stats: getMemoryStats(args.project) };
|
|
2821
|
+
}
|
|
2822
|
+
case 'cell_memory_timeline': {
|
|
2823
|
+
const { getMemoryTimeline } = require('../../06-memory/stores/memory-event-store');
|
|
2824
|
+
return { timeline: getMemoryTimeline(args.project, args.days || 30) };
|
|
2825
|
+
}
|
|
2826
|
+
case 'cell_memory_record': {
|
|
2827
|
+
const { recordMemoryEvent } = require('../../06-memory/stores/memory-event-store');
|
|
2828
|
+
const id = recordMemoryEvent({
|
|
2829
|
+
project: args.project || require('path').basename(process.cwd()),
|
|
2830
|
+
type: args.type,
|
|
2831
|
+
topic: args.topic,
|
|
2832
|
+
summary: args.summary,
|
|
2833
|
+
files: args.files,
|
|
2834
|
+
importance: args.importance,
|
|
2835
|
+
tool: args.tool,
|
|
2836
|
+
model: args.model,
|
|
2837
|
+
});
|
|
2838
|
+
return { recorded: true, id };
|
|
2839
|
+
}
|
|
2840
|
+
case 'cell_style_get': {
|
|
2841
|
+
const { getStyleProfile } = require('../../06-memory/style/style-memory');
|
|
2842
|
+
const projectDir = args.project || process.cwd();
|
|
2843
|
+
return { profile: getStyleProfile(projectDir) };
|
|
2844
|
+
}
|
|
2845
|
+
case 'cell_style_update': {
|
|
2846
|
+
const { updateDeveloperPreference } = require('../../06-memory/style/style-memory');
|
|
2847
|
+
const projectDir = args.project || process.cwd();
|
|
2848
|
+
updateDeveloperPreference(projectDir, args.key, args.value);
|
|
2849
|
+
return { updated: true, key: args.key, value: args.value };
|
|
2850
|
+
}
|
|
2851
|
+
case 'cell_memory_compact': {
|
|
2852
|
+
const { compactMemoryEvents, compactArchiveChunks } = require('../../06-memory/archive/memory-compact');
|
|
2853
|
+
const projectDir = args.project || process.cwd();
|
|
2854
|
+
const days = args.olderThanDays || 90;
|
|
2855
|
+
const eventsDeleted = compactMemoryEvents(days);
|
|
2856
|
+
const archiveResult = compactArchiveChunks(projectDir, days);
|
|
2857
|
+
return { eventsDeleted, archive: archiveResult };
|
|
2858
|
+
}
|
|
2859
|
+
case 'cell_memory_health': {
|
|
2860
|
+
const { getMemoryHealth } = require('../../06-memory/archive/memory-compact');
|
|
2861
|
+
const projectDir = args.project || process.cwd();
|
|
2862
|
+
return { health: getMemoryHealth(projectDir) };
|
|
2863
|
+
}
|
|
2864
|
+
case 'cell_memory_summary': {
|
|
2865
|
+
const { generateDailySummary, generateWeeklySummary } = require('../../06-memory/stores/summary-generator');
|
|
2866
|
+
const project = args.project || require('path').basename(process.cwd());
|
|
2867
|
+
const period = args.period || 'daily';
|
|
2868
|
+
const summary = period === 'weekly'
|
|
2869
|
+
? generateWeeklySummary(project, args.project || process.cwd())
|
|
2870
|
+
: generateDailySummary(project);
|
|
2871
|
+
return { summary };
|
|
2872
|
+
}
|
|
2774
2873
|
default:
|
|
2775
2874
|
return { error: `unknown tool: ${name}` };
|
|
2776
2875
|
}
|