@kevin0181/memoc 1.2.0 → 1.2.1

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 (2) hide show
  1. package/bin/cli.js +13 -4
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -981,7 +981,9 @@ function collectMemocMarkdownFiles(dir) {
981
981
  }
982
982
  walk(path.join(dir, '.memoc'));
983
983
  walk(path.join(dir, 'skills', 'project-memory-maintainer'));
984
- return files.sort();
984
+ return files
985
+ .filter(fp => !/session-summary-archive(?:-\d+)?\.md$/.test(path.basename(fp)))
986
+ .sort();
985
987
  }
986
988
 
987
989
  function ensureMemocFrontmatter(filePath, dir) {
@@ -3470,8 +3472,8 @@ function compactSessionSummary(src) {
3470
3472
  const lines = [
3471
3473
  '# Session Summary',
3472
3474
  `Last: ${nowISO()}`,
3473
- 'Replace this file instead of appending to it. Keep total size <800B and each section ≤3 bullets.',
3474
- 'Completed history belongs in actor worklogs; incomplete/risky resume detail belongs in `04-handoff.md`.',
3475
+ 'Replace, do not append. Keep <800B.',
3476
+ 'History: worklog. Resume risks: 04-handoff.md.',
3475
3477
  '',
3476
3478
  ];
3477
3479
 
@@ -3493,6 +3495,7 @@ function sectionText(src, heading) {
3493
3495
  }
3494
3496
 
3495
3497
  function compactSummaryBullets(text) {
3498
+ const maxLine = 72;
3496
3499
  return String(text || '')
3497
3500
  .split(/\r?\n/)
3498
3501
  .map(line => line.trim())
@@ -3500,7 +3503,13 @@ function compactSummaryBullets(text) {
3500
3503
  .map(line => line.replace(/^[-*]\s+/, '').replace(/^\d+[.)]\s+/, '').trim())
3501
3504
  .filter(Boolean)
3502
3505
  .slice(0, 3)
3503
- .map(line => `- ${line.length > 140 ? `${line.slice(0, 137)}...` : line}`);
3506
+ .map(line => {
3507
+ const compact = line
3508
+ .replace(/`/g, '')
3509
+ .replace(/\s+/g, ' ')
3510
+ .trim();
3511
+ return `- ${compact.length > maxLine ? `${compact.slice(0, maxLine - 3)}...` : compact}`;
3512
+ });
3504
3513
  }
3505
3514
 
3506
3515
  function summaryPlaceholder(heading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevin0181/memoc",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Give AI agents a memory. Scaffolds session-to-session context for Claude Code, Codex, Cursor, and more.",
5
5
  "keywords": [
6
6
  "ai",