@bitcobblers/wod-wiki-engine 0.62.2263 → 0.62.2265

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/agent.cjs CHANGED
@@ -1001,10 +1001,17 @@ async function setNoteNotebooks(storage, input) {
1001
1001
  const primaryUserNb = finalMemberships.find(
1002
1002
  (id) => id !== "notebook/journal" && id !== "notebook/playground"
1003
1003
  );
1004
+ const cleanedTags = note.tags ? note.tags.filter((tag) => {
1005
+ if (!tag.startsWith("notebook:") && !tag.startsWith("notebook/")) return true;
1006
+ const slug = wodWikiCore.notebookSlugFromId(tag);
1007
+ if (!slug) return true;
1008
+ return finalMemberships.includes(wodWikiCore.toNotebookId(slug));
1009
+ }) : void 0;
1004
1010
  const { notebookId: _priorSingle, ...rest } = note;
1005
1011
  const updatedNote = {
1006
1012
  ...rest,
1007
1013
  notebookIds: finalMemberships,
1014
+ ...cleanedTags !== void 0 ? { tags: cleanedTags } : {},
1008
1015
  ...primaryUserNb ? { notebookId: primaryUserNb } : {}
1009
1016
  };
1010
1017
  await tx.readwrite("notes").put(updatedNote);
@@ -4359,7 +4366,7 @@ async function ingestPortableFilesIntoStorage(storage, files, options = {}) {
4359
4366
  }
4360
4367
 
4361
4368
  // src/version.ts
4362
- var VERSION = "0.62.2263";
4369
+ var VERSION = "0.62.2265";
4363
4370
 
4364
4371
  // src/feed/qr.ts
4365
4372
  var APP_ORIGIN = "https://wod.wiki";