@jacklika/dsh-memory-curator 0.1.0-alpha.0 → 0.1.0-alpha.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/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -219,9 +219,9 @@ export function apply(ctx, config) {
219
219
  created: now,
220
220
  };
221
221
  const newNoteContent = `---\n${yaml.dump(frontmatter).trim()}\n---\n\n# ${args.title}\n\n${appendContent}`;
222
- const noteExists = conflictExists;
223
- const content = noteExists && mode === 'append' ? appendContent : newNoteContent;
224
- const writeMode = mode;
222
+ const appending = conflictExists && mode === 'append';
223
+ const content = appending ? appendContent : newNoteContent;
224
+ const writeMode = appending ? 'append' : 'overwrite';
225
225
  await callTool(ctx, exec, 'wiki_write', {
226
226
  id: finalId,
227
227
  content,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jacklika/dsh-memory-curator",
3
3
  "description": "Curator tools for the DSH memory vault: memory_recall before acting and memory_capture after significant work, with conflict detection and optional user approval.",
4
- "version": "0.1.0-alpha.0",
4
+ "version": "0.1.0-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },