fivocell 4.8.0 → 5.0.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.
Files changed (63) hide show
  1. package/dist/__tests__/auto-handoff.test.d.ts +2 -0
  2. package/dist/__tests__/auto-handoff.test.d.ts.map +1 -0
  3. package/dist/__tests__/auto-handoff.test.js +65 -0
  4. package/dist/__tests__/auto-handoff.test.js.map +1 -0
  5. package/dist/__tests__/context-compression.test.d.ts +2 -0
  6. package/dist/__tests__/context-compression.test.d.ts.map +1 -0
  7. package/dist/__tests__/context-compression.test.js +77 -0
  8. package/dist/__tests__/context-compression.test.js.map +1 -0
  9. package/dist/__tests__/memory-automation.test.d.ts +2 -0
  10. package/dist/__tests__/memory-automation.test.d.ts.map +1 -0
  11. package/dist/__tests__/memory-automation.test.js +136 -0
  12. package/dist/__tests__/memory-automation.test.js.map +1 -0
  13. package/dist/__tests__/memory-digest.test.d.ts +2 -0
  14. package/dist/__tests__/memory-digest.test.d.ts.map +1 -0
  15. package/dist/__tests__/memory-digest.test.js +20 -0
  16. package/dist/__tests__/memory-digest.test.js.map +1 -0
  17. package/dist/__tests__/memory-health.test.d.ts +2 -0
  18. package/dist/__tests__/memory-health.test.d.ts.map +1 -0
  19. package/dist/__tests__/memory-health.test.js +66 -0
  20. package/dist/__tests__/memory-health.test.js.map +1 -0
  21. package/dist/__tests__/semantic-memory.test.d.ts +2 -0
  22. package/dist/__tests__/semantic-memory.test.d.ts.map +1 -0
  23. package/dist/__tests__/semantic-memory.test.js +31 -0
  24. package/dist/__tests__/semantic-memory.test.js.map +1 -0
  25. package/dist/__tests__/smart-recommendations.test.d.ts +2 -0
  26. package/dist/__tests__/smart-recommendations.test.d.ts.map +1 -0
  27. package/dist/__tests__/smart-recommendations.test.js +74 -0
  28. package/dist/__tests__/smart-recommendations.test.js.map +1 -0
  29. package/dist/walls/06-memory/automation/memory-automation.d.ts +49 -0
  30. package/dist/walls/06-memory/automation/memory-automation.d.ts.map +1 -0
  31. package/dist/walls/06-memory/automation/memory-automation.js +396 -0
  32. package/dist/walls/06-memory/automation/memory-automation.js.map +1 -0
  33. package/dist/walls/06-memory/stores/auto-handoff.d.ts +13 -0
  34. package/dist/walls/06-memory/stores/auto-handoff.d.ts.map +1 -0
  35. package/dist/walls/06-memory/stores/auto-handoff.js +149 -0
  36. package/dist/walls/06-memory/stores/auto-handoff.js.map +1 -0
  37. package/dist/walls/06-memory/stores/context-compression.d.ts +33 -0
  38. package/dist/walls/06-memory/stores/context-compression.d.ts.map +1 -0
  39. package/dist/walls/06-memory/stores/context-compression.js +265 -0
  40. package/dist/walls/06-memory/stores/context-compression.js.map +1 -0
  41. package/dist/walls/06-memory/stores/memory-digest.d.ts +13 -0
  42. package/dist/walls/06-memory/stores/memory-digest.d.ts.map +1 -0
  43. package/dist/walls/06-memory/stores/memory-digest.js +44 -0
  44. package/dist/walls/06-memory/stores/memory-digest.js.map +1 -0
  45. package/dist/walls/06-memory/stores/memory-health.d.ts +32 -0
  46. package/dist/walls/06-memory/stores/memory-health.d.ts.map +1 -0
  47. package/dist/walls/06-memory/stores/memory-health.js +221 -0
  48. package/dist/walls/06-memory/stores/memory-health.js.map +1 -0
  49. package/dist/walls/06-memory/stores/semantic-memory.d.ts +23 -0
  50. package/dist/walls/06-memory/stores/semantic-memory.d.ts.map +1 -0
  51. package/dist/walls/06-memory/stores/semantic-memory.js +119 -0
  52. package/dist/walls/06-memory/stores/semantic-memory.js.map +1 -0
  53. package/dist/walls/06-memory/stores/smart-recommendations.d.ts +30 -0
  54. package/dist/walls/06-memory/stores/smart-recommendations.d.ts.map +1 -0
  55. package/dist/walls/06-memory/stores/smart-recommendations.js +222 -0
  56. package/dist/walls/06-memory/stores/smart-recommendations.js.map +1 -0
  57. package/dist/walls/06-memory/stores/weekly-report.js +1 -1
  58. package/dist/walls/07-runtime/cli/cli.js +165 -0
  59. package/dist/walls/07-runtime/cli/cli.js.map +1 -1
  60. package/dist/walls/07-runtime/daemon/server.d.ts.map +1 -1
  61. package/dist/walls/07-runtime/daemon/server.js +64 -0
  62. package/dist/walls/07-runtime/daemon/server.js.map +1 -1
  63. 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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,OAAO,EAAE,eAAe,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AAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAElF,OAAO,EAAE,YAAY,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;AAqpLF,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC"}
@@ -1782,6 +1782,14 @@ const MCP_TOOLS = [
1782
1782
  { name: 'cell_memory_report', description: 'Generate weekly markdown report with trends, insights, handoff', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
1783
1783
  { name: 'cell_memory_enrich', description: 'Generate AI-enriched memory summary with prompt for AI analysis', inputSchema: { type: 'object', properties: { project: { type: 'string' }, period: { type: 'string', enum: ['daily', 'weekly'] } }, required: ['project'] } },
1784
1784
  { name: 'cell_memory_fuzzy_search', description: 'Fuzzy search memory with importance filter, type filter, recency boost', inputSchema: { type: 'object', properties: { project: { type: 'string' }, query: { type: 'string' }, type: { type: 'string' }, minImportance: { type: 'number' }, maxImportance: { type: 'number' }, days: { type: 'number' }, limit: { type: 'number' }, sortBy: { type: 'string', enum: ['relevance', 'importance', 'recent'] } }, required: ['query'] } },
1785
+ { name: 'cell_memory_semantic', description: 'Semantic retrieval of related memories using query expansion and scoring', inputSchema: { type: 'object', properties: { project: { type: 'string' }, query: { type: 'string' }, limit: { type: 'number' }, minImportance: { type: 'number' }, days: { type: 'number' } }, required: ['query'] } },
1786
+ { name: 'cell_memory_related', description: 'Get memories related to a memory event id', inputSchema: { type: 'object', properties: { memoryId: { type: 'number' }, limit: { type: 'number' } }, required: ['memoryId'] } },
1787
+ { name: 'cell_handoff_auto', description: 'Auto-generate handoff from recent memory events and save current handoff', inputSchema: { type: 'object', properties: { project: { type: 'string' }, projectDir: { type: 'string' }, days: { type: 'number' } }, required: ['project'] } },
1788
+ { name: 'cell_memory_digest', description: 'Get compact dashboard digest for memory health and activity', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
1789
+ { name: 'cell_memory_automate', description: 'Sync git commits to memory events automatically', inputSchema: { type: 'object', properties: { project: { type: 'string' }, projectDir: { type: 'string' }, sinceHash: { type: 'string' }, limit: { type: 'number' } }, required: ['project', 'projectDir'] } },
1790
+ { name: 'cell_memory_recommend', description: 'Get smart recommendations based on memory patterns', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
1791
+ { name: 'cell_memory_compress', description: 'Compress context for AI tools (compact/full/topic)', inputSchema: { type: 'object', properties: { project: { type: 'string' }, mode: { type: 'string', enum: ['compact', 'full', 'topic'] }, topic: { type: 'string' }, maxWords: { type: 'number' } }, required: ['project'] } },
1792
+ { name: 'cell_memory_score', description: 'Get memory health score (0-100) with breakdown', inputSchema: { type: 'object', properties: { project: { type: 'string' } }, required: ['project'] } },
1785
1793
  ];
1786
1794
  async function handleMCPToolCall(name, args) {
1787
1795
  try {
@@ -2968,6 +2976,62 @@ async function handleMCPToolCall(name, args) {
2968
2976
  const searchResults = fuzzySearchMemory(searchOptions);
2969
2977
  return { results: searchResults };
2970
2978
  }
2979
+ case 'cell_memory_semantic': {
2980
+ const { semanticSearchMemories } = require('../../06-memory/stores/semantic-memory');
2981
+ const semanticResults = semanticSearchMemories({
2982
+ query: args.query,
2983
+ project: args.project,
2984
+ limit: args.limit || 20,
2985
+ minImportance: args.minImportance,
2986
+ days: args.days,
2987
+ });
2988
+ return { results: semanticResults };
2989
+ }
2990
+ case 'cell_memory_related': {
2991
+ const { getRelatedMemories } = require('../../06-memory/stores/semantic-memory');
2992
+ return { results: getRelatedMemories(args.memoryId, args.limit || 10) };
2993
+ }
2994
+ case 'cell_handoff_auto': {
2995
+ const { generateAutoHandoff, saveAutoHandoff } = require('../../06-memory/stores/auto-handoff');
2996
+ const handoffProject = args.project || require('path').basename(process.cwd());
2997
+ const handoffDir = args.projectDir || process.cwd();
2998
+ const generated = generateAutoHandoff(handoffProject, handoffDir, args.days || 3);
2999
+ const savedTo = saveAutoHandoff(handoffDir, generated);
3000
+ return { handoff: { ...generated, savedTo } };
3001
+ }
3002
+ case 'cell_memory_digest': {
3003
+ const { generateMemoryDigest } = require('../../06-memory/stores/memory-digest');
3004
+ const digestProject = args.project || require('path').basename(process.cwd());
3005
+ return { digest: generateMemoryDigest(digestProject) };
3006
+ }
3007
+ case 'cell_memory_automate': {
3008
+ const { syncGitCommitsToMemory, getAutomationStatus, initAutomationConfig } = require('../../06-memory/automation/memory-automation');
3009
+ const autoProject = args.project;
3010
+ const projectDir = args.projectDir;
3011
+ const status = getAutomationStatus(projectDir);
3012
+ if (!status.isGitRepo)
3013
+ return { status: 'not a git repo', ...status };
3014
+ initAutomationConfig(autoProject, projectDir);
3015
+ const result = syncGitCommitsToMemory(autoProject, projectDir, { sinceHash: args.sinceHash, limit: args.limit });
3016
+ return { status, synced: result.synced, latestHash: result.latestHash };
3017
+ }
3018
+ case 'cell_memory_recommend': {
3019
+ const { generateSmartRecommendations, getRecommendationSummary } = require('../../06-memory/stores/smart-recommendations');
3020
+ const recProject = args.project || require('path').basename(process.cwd());
3021
+ return { recommendations: generateSmartRecommendations(recProject), summary: getRecommendationSummary(recProject) };
3022
+ }
3023
+ case 'cell_memory_compress': {
3024
+ const { compressContext, formatCompressedContext } = require('../../06-memory/stores/context-compression');
3025
+ const cxProject = args.project || require('path').basename(process.cwd());
3026
+ const cxResult = compressContext({ project: cxProject, mode: args.mode || 'compact', topic: args.topic, maxWords: args.maxWords });
3027
+ return { context: cxResult, formatted: formatCompressedContext(cxResult) };
3028
+ }
3029
+ case 'cell_memory_score': {
3030
+ const { computeMemoryHealth, formatHealthReport } = require('../../06-memory/stores/memory-health');
3031
+ const scoreProject = args.project || require('path').basename(process.cwd());
3032
+ const health = computeMemoryHealth(scoreProject);
3033
+ return { health, report: formatHealthReport(health) };
3034
+ }
2971
3035
  default:
2972
3036
  return { error: `unknown tool: ${name}` };
2973
3037
  }