@character-foundry/character-foundry 0.1.7 → 0.1.8-dev.1765911776

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 (50) hide show
  1. package/README.md +81 -32
  2. package/dist/app-framework.cjs +1 -1
  3. package/dist/app-framework.cjs.map +1 -1
  4. package/dist/app-framework.js +1 -1
  5. package/dist/app-framework.js.map +1 -1
  6. package/dist/charx.cjs.map +1 -1
  7. package/dist/charx.js.map +1 -1
  8. package/dist/core.cjs +1 -1
  9. package/dist/core.cjs.map +1 -1
  10. package/dist/core.d.cts +1 -1
  11. package/dist/core.d.ts +1 -1
  12. package/dist/core.js +1 -1
  13. package/dist/core.js.map +1 -1
  14. package/dist/exporter.cjs +3 -3
  15. package/dist/exporter.cjs.map +1 -1
  16. package/dist/exporter.js +3 -3
  17. package/dist/exporter.js.map +1 -1
  18. package/dist/federation.cjs +6 -6
  19. package/dist/federation.cjs.map +1 -1
  20. package/dist/federation.js +6 -6
  21. package/dist/federation.js.map +1 -1
  22. package/dist/index.cjs +7 -7
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.js +7 -7
  25. package/dist/index.js.map +1 -1
  26. package/dist/loader.cjs +4 -4
  27. package/dist/loader.cjs.map +1 -1
  28. package/dist/loader.js +4 -4
  29. package/dist/loader.js.map +1 -1
  30. package/dist/lorebook.cjs +5 -5
  31. package/dist/lorebook.cjs.map +1 -1
  32. package/dist/lorebook.js +5 -5
  33. package/dist/lorebook.js.map +1 -1
  34. package/dist/media.cjs.map +1 -1
  35. package/dist/media.js.map +1 -1
  36. package/dist/normalizer.cjs.map +1 -1
  37. package/dist/normalizer.js.map +1 -1
  38. package/dist/png.cjs +1 -1
  39. package/dist/png.cjs.map +1 -1
  40. package/dist/png.js +1 -1
  41. package/dist/png.js.map +1 -1
  42. package/dist/schemas.cjs.map +1 -1
  43. package/dist/schemas.js.map +1 -1
  44. package/dist/tokenizers.cjs.map +1 -1
  45. package/dist/tokenizers.js.map +1 -1
  46. package/dist/voxta.cjs +1 -1
  47. package/dist/voxta.cjs.map +1 -1
  48. package/dist/voxta.js +1 -1
  49. package/dist/voxta.js.map +1 -1
  50. package/package.json +4 -4
@@ -438,7 +438,7 @@ var SyncEngine = class {
438
438
  throw new Error(`Card not found: ${sourceId}`);
439
439
  }
440
440
  const federatedId = generateCardId(this.baseUrl, `${sourcePlatform}-${sourceId}`);
441
- let syncState = await this.stateStore.get(federatedId);
441
+ const syncState = await this.stateStore.get(federatedId);
442
442
  if (syncState?.platformIds[targetPlatform]) {
443
443
  const existingCard = await targetAdapter.getCard(syncState.platformIds[targetPlatform]);
444
444
  if (existingCard) {
@@ -600,7 +600,7 @@ var SyncEngine = class {
600
600
  };
601
601
  try {
602
602
  let sourceCard = null;
603
- let sourcePlatform = null;
603
+ let _sourcePlatform = null;
604
604
  if (resolution === "merge" && mergedCard) {
605
605
  sourceCard = mergedCard;
606
606
  } else if (resolution === "local") {
@@ -609,7 +609,7 @@ var SyncEngine = class {
609
609
  const adapter = this.platforms.get(platform);
610
610
  if (adapter) {
611
611
  sourceCard = await adapter.getCard(id);
612
- sourcePlatform = platform;
612
+ _sourcePlatform = platform;
613
613
  break;
614
614
  }
615
615
  }
@@ -620,7 +620,7 @@ var SyncEngine = class {
620
620
  const remoteId = syncState.platformIds[syncState.conflict.remotePlatform];
621
621
  if (remoteId) {
622
622
  sourceCard = await adapter.getCard(remoteId);
623
- sourcePlatform = syncState.conflict.remotePlatform;
623
+ _sourcePlatform = syncState.conflict.remotePlatform;
624
624
  }
625
625
  }
626
626
  }
@@ -683,7 +683,7 @@ var SyncEngine = class {
683
683
  if (!targetAdapter) {
684
684
  throw new Error(`Platform not registered: ${targetPlatform}`);
685
685
  }
686
- let sourceState = await this.stateStore.get(sourceFederatedId);
686
+ const sourceState = await this.stateStore.get(sourceFederatedId);
687
687
  const sourceLocalId = sourceState?.platformIds[sourcePlatform];
688
688
  if (!sourceLocalId) {
689
689
  throw new Error(`Cannot find source card: ${sourceFederatedId}`);
@@ -963,7 +963,7 @@ var FileSyncStateStore = class {
963
963
  for (const state of data) {
964
964
  this.states.set(state.federatedId, state);
965
965
  }
966
- } catch (err) {
966
+ } catch {
967
967
  this.states.clear();
968
968
  }
969
969
  }