@awareness-sdk/local 0.1.11 → 0.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awareness-sdk/local",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Local-first AI agent memory system. No account needed.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -300,13 +300,11 @@ export class CloudSync {
300
300
 
301
301
  for (const memory of unsynced) {
302
302
  try {
303
- // Read the full markdown content from disk
303
+ // Read the markdown content from disk, strip YAML front matter
304
304
  let content = '';
305
305
  try {
306
- content = fs.readFileSync(
307
- memory.filepath,
308
- 'utf-8'
309
- );
306
+ const raw = fs.readFileSync(memory.filepath, 'utf-8');
307
+ content = raw.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim();
310
308
  } catch {
311
309
  // File may have been deleted — skip
312
310
  console.warn(`${LOG_PREFIX} File not found, skipping: ${memory.filepath}`);