@awareness-sdk/local 0.1.11 → 0.1.12
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 +1 -1
- package/src/core/cloud-sync.mjs +3 -5
package/package.json
CHANGED
package/src/core/cloud-sync.mjs
CHANGED
|
@@ -300,13 +300,11 @@ export class CloudSync {
|
|
|
300
300
|
|
|
301
301
|
for (const memory of unsynced) {
|
|
302
302
|
try {
|
|
303
|
-
// Read the
|
|
303
|
+
// Read the markdown content from disk, strip YAML front matter
|
|
304
304
|
let content = '';
|
|
305
305
|
try {
|
|
306
|
-
|
|
307
|
-
|
|
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}`);
|