stackmem 1.0.20 → 1.0.21

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/cli.js CHANGED
@@ -355,6 +355,9 @@ async function cmdSave(project, type, content, force = false) {
355
355
  if (!MEMORY_TYPES.includes(type)) {
356
356
  fail(`Invalid memory type '${type}'. Valid types: decision, constraint, discovery, rejection.`);
357
357
  }
358
+ if (content.length > 500) {
359
+ fail(`Memory content too long (${content.length} chars). Keep memories under 500 characters — they should be concise facts, not paragraphs.`);
360
+ }
358
361
  const { data: existingRows, error: existingError } = await supabase
359
362
  .from("memories")
360
363
  .select("id, content")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stackmem",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/cli.ts CHANGED
@@ -414,6 +414,11 @@ async function cmdSave(project: string, type: string, content: string, force = f
414
414
  fail(`Invalid memory type '${type}'. Valid types: decision, constraint, discovery, rejection.`);
415
415
  }
416
416
 
417
+ if (content.length > 500) {
418
+ fail(
419
+ `Memory content too long (${content.length} chars). Keep memories under 500 characters — they should be concise facts, not paragraphs.`
420
+ );
421
+ }
417
422
 
418
423
  const { data: existingRows, error: existingError } = await supabase
419
424
  .from("memories")