@pkcprotocol/pkc-js 0.0.111 → 0.0.113

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 (34) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/generated-version.d.ts +1 -1
  3. package/dist/browser/generated-version.js +1 -1
  4. package/dist/browser/pages/pkc-js-page-sorts/active.js +3 -2
  5. package/dist/browser/pages/pkc-js-page-sorts/active.js.map +1 -1
  6. package/dist/browser/pages/types.d.ts +2 -2
  7. package/dist/browser/publications/comment/schema.js +4 -4
  8. package/dist/browser/publications/comment/schema.js.map +1 -1
  9. package/dist/browser/runtime/node/community/db-handler.d.ts +1 -0
  10. package/dist/browser/runtime/node/community/db-handler.js +50 -35
  11. package/dist/browser/runtime/node/community/db-handler.js.map +1 -1
  12. package/dist/browser/version.js +1 -1
  13. package/dist/bundled/bundle-manifest.json +37 -37
  14. package/dist/bundled/chunks/{helia-for-pkc-DjImnuSv.js → helia-for-pkc-DoOp7t8V.js} +33 -33
  15. package/dist/bundled/chunks/{local-community-D0RN_pS9.js → local-community-CFX753RE.js} +1 -1
  16. package/dist/bundled/chunks/{local-community-aE__SGK-.js → local-community-CaV30etW.js} +66 -55
  17. package/dist/bundled/chunks/{node-BCwY3CII.js → node-gyqBss4j.js} +5 -5
  18. package/dist/bundled/chunks/{rpc-local-community-UsouULtn.js → rpc-local-community-DWv8wZMB.js} +1 -1
  19. package/dist/bundled/chunks/{util-D9myrucu.js → util-B9JenRyE.js} +2 -2
  20. package/dist/bundled/chunks/{util-Bzofw6R2.js → util-CH8WrVZq.js} +1 -1
  21. package/dist/bundled/index.js +1 -1
  22. package/dist/bundled/rpc/src/index.js +4 -4
  23. package/dist/node/generated-version.d.ts +1 -1
  24. package/dist/node/generated-version.js +1 -1
  25. package/dist/node/pages/pkc-js-page-sorts/active.js +3 -2
  26. package/dist/node/pages/pkc-js-page-sorts/active.js.map +1 -1
  27. package/dist/node/pages/types.d.ts +2 -2
  28. package/dist/node/publications/comment/schema.js +4 -4
  29. package/dist/node/publications/comment/schema.js.map +1 -1
  30. package/dist/node/runtime/node/community/db-handler.d.ts +1 -0
  31. package/dist/node/runtime/node/community/db-handler.js +50 -35
  32. package/dist/node/runtime/node/community/db-handler.js.map +1 -1
  33. package/dist/node/version.js +1 -1
  34. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $t as CommentModerationPubsubMessagePublicationSchema, A as isLinkOfAnimatedImage, An as CommentIpfsSchema, Ar as PKCError, At as ChallengeMessageSchema, Bn as CommentUpdateTableRowSchema, Dn as VoteTablesRowSchema, Dt as pTimeout, F as isLinkValid, Gr as ZodError, Jn as CommentEditPubsubMessagePublicationSchema, Jt as CommunityEditPublicationPubsubReservedFields, K as removeNullUndefinedValues, Kt as version_default, Lt as DecryptedChallengeRequestPublicationSchema, M as isLinkOfImage, Mr as logger_default, Mt as ChallengeRequestMessageSchema, N as isLinkOfMedia, Ot as ChallengeAnswerMessageSchema, P as isLinkOfVideo, Pt as ChallengeVerificationMessageSchema, Q as retryKuboIpfsAddAndProvide, Qn as CommentEditsTableRowSchema, R as pubsubTopicToDhtKey, Rn as CommentUpdateSchema, Rt as DecryptedChallengeRequestSchema, S as hideClassPrivateProps, Sr as t$2, St as untrackStartedCommunity, Tn as VotePubsubReservedFields, Tt as require_sha256, U as removeBlocksFromKuboNode, Vn as CommentsTableRowSchema, W as removeMfsFilesSafely, X as retryKuboBlockPutPinAndProvidePubsubTopic, Xn as CommentEditReservedFields, Yn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, _ as getEquivalentCommunityAddresses, _r as r$1, a as calculateUnixFsDagSizeCidV0, c as contentContainsMarkdownVideos, ct as writeKuboFilesWithTimeout, d as derivePublicationFromChallengeRequest, dn as CommunityIpfsSchema, dr as n$2, en as CommentModerationReservedFields, f as doesDomainAddressHaveCapitalLetter, fn as CommunitySignedPropertyNames, fr as t$5, ft as findUpdatingCommunity, g as genToArray, h as findMalformedUnicodeString, hr as e, i as calculateStringSizeSameAsIpfsAddCidV0, it as timestamp, j as isLinkOfAudio, jn as CommentPubsubMessageReservedFields, jr as messages, lr as n$3, lt as findCommunityInRegistry, mr as e$1, nn as CommentModerationsTableRowSchema, nr as AuthorReservedFields, nt as statMfsPathSafely, o as contentContainsMarkdownAudio, ot as withSortedKeys, pr as t$6, r as calculateIpfsCidV0, s as contentContainsMarkdownImages, st as withSortedKeysDeep, t as areEquivalentCommunityAddresses, tt as sleepUntilTimeoutOrAbort, ur as t$7, ut as findStartedCommunity, v as getErrorCodeFromMessage, vr as t$3, vt as syncCommunityRegistryEntry, w as ipnsNameToIpnsOverPubsubTopic, wn as VotePubsubMessagePublicationSchema, wr as require_retry, wt as untrackUpdatingCommunity, xn as isStringDomain, xr as t$4, xt as trackUpdatingCommunity, y as getIpnsRecordInLocalKuboNode, yt as trackStartedCommunity } from "./util-D9myrucu.js";
3
- import { $ as coerceSchemaRowJson, $n as getPKCAddressFromPublicKeySync, An as verifyCommentModeration, Cr as t$8, D as TIMEFRAMES_TO_SECONDS, Dr as t$9, En as verifyChallengeRequest, Fn as verifyVote, Gn as getCommunityNameFromWire, Hn as effectiveMaxCrosspostDepth, In as buildRuntimeAuthor, Jn as decode, K as pLimit, Kn as getCommunityPublicKeyFromWire, Ln as cleanWireAuthor, Mn as verifyCommentUpdate, Nn as verifyCommunity, Nr as STORAGE_KEYS, On as verifyCommentEdit, Or as stringify, Ot as parseJsonWithPKCErrorIfFails, P as iterateOverPageCidsToFindAllCids, Pn as verifyCommunityEdit, Pr as require_lodash_merge, Q as coerceSchemaRowBoolean, Qn as getPKCAddressFromPublicKey, S as LRUCache, Sr as r$2, T as KeyvBetterSqlite3, Tr as n$4, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Vn as crosspostChainDepthUpTo, Yn as encode, Zn as getIpfsKeyFromPrivateKey, _ as pkcJsChallenges, _n as signCommentEdit, _r as resolveDbPostsCidRefs, a as loadPageSortsForStartedCommunity, b as createAuthorIdentityMatcher, bn as signCommentUpdateForChallengeVerification, br as t$10, c as applyPageSortExclusions, cr as deriveDbPosts, d as partitionPageCommentsForSort, dn as cleanUpBeforePublishing, er as getPublicKeyFromPrivateKey, et as collectSchemaRowCoercions, f as scorePageCommentsWithFile, fr as getThumbnailPropsOfLink, g as loadChallengeFileFromCommunityChallengeSettings, gn as signComment, gr as moveCommunityDbToDeletedDirectory, h as getCommunityChallengeFromCommunityChallengeSettings, hn as signChallengeVerification, ht as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, i as generatePagesReportingFailedSorts, ir as calculateInlineRepliesBudget, jn as verifyCommentPubsubMessage, kn as verifyCommentIpfs, l as createDescendantsLookup, ln as encryptEd25519AesGcmPublicKeyBuffer, lr as deriveDbReplies, m as getChallengeVerification, nr as backupCommunityDb, o as resolvePageSortsOrThrow, or as deleteOldCommunityInWindows, p as stripRepliesFromPageComment, pn as signChallengeMessage, pr as importSignerIntoKuboNode, pt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, r as derivePublicPageSorts, rn as SignerWithPublicKeyAddress, rr as calculateExpectedSignatureSize, sn as decryptEd25519AesGcmPublicKeyBuffer, sr as deriveCommentIpfsFromCommentTableRow, t as RpcLocalCommunity, tr as BackupAbortError, tt as createSchemaRowParser, u as orderPageCommentsByScore, un as _validateSignatureOfPKCRecord, ur as getDefaultCommunityDbConfig, v as authorIdentityMatcherForRequest, w as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, wn as verifyChallengeAnswer, wr as n$5, x as TrackedInstanceRegistry, xn as signCommunity, xr as t$11, y as authorNameResolveFailureReason, yn as signCommentUpdate, zn as getAuthorNameFromWire } from "./rpc-local-community-UsouULtn.js";
2
+ import { $t as CommentModerationPubsubMessagePublicationSchema, A as isLinkOfAnimatedImage, An as CommentIpfsSchema, Ar as PKCError, At as ChallengeMessageSchema, Bn as CommentUpdateTableRowSchema, Dn as VoteTablesRowSchema, Dt as pTimeout, F as isLinkValid, Gr as ZodError, Jn as CommentEditPubsubMessagePublicationSchema, Jt as CommunityEditPublicationPubsubReservedFields, K as removeNullUndefinedValues, Kt as version_default, Lt as DecryptedChallengeRequestPublicationSchema, M as isLinkOfImage, Mr as logger_default, Mt as ChallengeRequestMessageSchema, N as isLinkOfMedia, Ot as ChallengeAnswerMessageSchema, P as isLinkOfVideo, Pt as ChallengeVerificationMessageSchema, Q as retryKuboIpfsAddAndProvide, Qn as CommentEditsTableRowSchema, R as pubsubTopicToDhtKey, Rn as CommentUpdateSchema, Rt as DecryptedChallengeRequestSchema, S as hideClassPrivateProps, Sr as t$2, St as untrackStartedCommunity, Tn as VotePubsubReservedFields, Tt as require_sha256, U as removeBlocksFromKuboNode, Vn as CommentsTableRowSchema, W as removeMfsFilesSafely, X as retryKuboBlockPutPinAndProvidePubsubTopic, Xn as CommentEditReservedFields, Yn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, _ as getEquivalentCommunityAddresses, _r as r$1, a as calculateUnixFsDagSizeCidV0, c as contentContainsMarkdownVideos, ct as writeKuboFilesWithTimeout, d as derivePublicationFromChallengeRequest, dn as CommunityIpfsSchema, dr as n$2, en as CommentModerationReservedFields, f as doesDomainAddressHaveCapitalLetter, fn as CommunitySignedPropertyNames, fr as t$5, ft as findUpdatingCommunity, g as genToArray, h as findMalformedUnicodeString, hr as e, i as calculateStringSizeSameAsIpfsAddCidV0, it as timestamp, j as isLinkOfAudio, jn as CommentPubsubMessageReservedFields, jr as messages, lr as n$3, lt as findCommunityInRegistry, mr as e$1, nn as CommentModerationsTableRowSchema, nr as AuthorReservedFields, nt as statMfsPathSafely, o as contentContainsMarkdownAudio, ot as withSortedKeys, pr as t$6, r as calculateIpfsCidV0, s as contentContainsMarkdownImages, st as withSortedKeysDeep, t as areEquivalentCommunityAddresses, tt as sleepUntilTimeoutOrAbort, ur as t$7, ut as findStartedCommunity, v as getErrorCodeFromMessage, vr as t$3, vt as syncCommunityRegistryEntry, w as ipnsNameToIpnsOverPubsubTopic, wn as VotePubsubMessagePublicationSchema, wr as require_retry, wt as untrackUpdatingCommunity, xn as isStringDomain, xr as t$4, xt as trackUpdatingCommunity, y as getIpnsRecordInLocalKuboNode, yt as trackStartedCommunity } from "./util-B9JenRyE.js";
3
+ import { $ as coerceSchemaRowJson, $n as getPKCAddressFromPublicKeySync, An as verifyCommentModeration, Cr as t$8, D as TIMEFRAMES_TO_SECONDS, Dr as t$9, En as verifyChallengeRequest, Fn as verifyVote, Gn as getCommunityNameFromWire, Hn as effectiveMaxCrosspostDepth, In as buildRuntimeAuthor, Jn as decode, K as pLimit, Kn as getCommunityPublicKeyFromWire, Ln as cleanWireAuthor, Mn as verifyCommentUpdate, Nn as verifyCommunity, Nr as STORAGE_KEYS, On as verifyCommentEdit, Or as stringify, Ot as parseJsonWithPKCErrorIfFails, P as iterateOverPageCidsToFindAllCids, Pn as verifyCommunityEdit, Pr as require_lodash_merge, Q as coerceSchemaRowBoolean, Qn as getPKCAddressFromPublicKey, S as LRUCache, Sr as r$2, T as KeyvBetterSqlite3, Tr as n$4, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Vn as crosspostChainDepthUpTo, Yn as encode, Zn as getIpfsKeyFromPrivateKey, _ as pkcJsChallenges, _n as signCommentEdit, _r as resolveDbPostsCidRefs, a as loadPageSortsForStartedCommunity, b as createAuthorIdentityMatcher, bn as signCommentUpdateForChallengeVerification, br as t$10, c as applyPageSortExclusions, cr as deriveDbPosts, d as partitionPageCommentsForSort, dn as cleanUpBeforePublishing, er as getPublicKeyFromPrivateKey, et as collectSchemaRowCoercions, f as scorePageCommentsWithFile, fr as getThumbnailPropsOfLink, g as loadChallengeFileFromCommunityChallengeSettings, gn as signComment, gr as moveCommunityDbToDeletedDirectory, h as getCommunityChallengeFromCommunityChallengeSettings, hn as signChallengeVerification, ht as parseCommunityIpfsSchemaPassthroughWithPKCErrorIfItFails, i as generatePagesReportingFailedSorts, ir as calculateInlineRepliesBudget, jn as verifyCommentPubsubMessage, kn as verifyCommentIpfs, l as createDescendantsLookup, ln as encryptEd25519AesGcmPublicKeyBuffer, lr as deriveDbReplies, m as getChallengeVerification, nr as backupCommunityDb, o as resolvePageSortsOrThrow, or as deleteOldCommunityInWindows, p as stripRepliesFromPageComment, pn as signChallengeMessage, pr as importSignerIntoKuboNode, pt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, r as derivePublicPageSorts, rn as SignerWithPublicKeyAddress, rr as calculateExpectedSignatureSize, sn as decryptEd25519AesGcmPublicKeyBuffer, sr as deriveCommentIpfsFromCommentTableRow, t as RpcLocalCommunity, tr as BackupAbortError, tt as createSchemaRowParser, u as orderPageCommentsByScore, un as _validateSignatureOfPKCRecord, ur as getDefaultCommunityDbConfig, v as authorIdentityMatcherForRequest, w as MAX_FILE_SIZE_BYTES_FOR_COMMUNITY_IPFS, wn as verifyChallengeAnswer, wr as n$5, x as TrackedInstanceRegistry, xn as signCommunity, xr as t$11, y as authorNameResolveFailureReason, yn as signCommentUpdate, zn as getAuthorNameFromWire } from "./rpc-local-community-DWv8wZMB.js";
4
4
  import { randomFillSync, randomUUID } from "node:crypto";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
6
- import path from "node:path";
6
+ import Path from "node:path";
7
7
  import os from "os";
8
8
  import { existsSync, promises } from "node:fs";
9
- import path$1 from "path";
9
+ import path from "path";
10
10
  import assert from "assert";
11
11
  import { Buffer as Buffer$1 } from "buffer";
12
12
  import fs from "fs";
@@ -1690,15 +1690,15 @@ async function throwIfChallengeSettingsAreInvalid({ challengeSettings, pkc, comm
1690
1690
  const processStartedCommunities = new TrackedInstanceRegistry();
1691
1691
  function normalizeRegistryDataPath(dataPath) {
1692
1692
  if (dataPath === void 0) return void 0;
1693
- const resolved = path$1.resolve(dataPath);
1693
+ const resolved = path.resolve(dataPath);
1694
1694
  let existing = resolved;
1695
1695
  let tail = "";
1696
1696
  while (true) try {
1697
- return path$1.join(fs.realpathSync.native(existing), tail);
1697
+ return path.join(fs.realpathSync.native(existing), tail);
1698
1698
  } catch {
1699
- const parent = path$1.dirname(existing);
1699
+ const parent = path.dirname(existing);
1700
1700
  if (parent === existing) return resolved;
1701
- tail = path$1.join(path$1.basename(existing), tail);
1701
+ tail = path.join(path.basename(existing), tail);
1702
1702
  existing = parent;
1703
1703
  }
1704
1704
  }
@@ -3063,9 +3063,9 @@ var DbHandler = class {
3063
3063
  if (needToMigrate) {
3064
3064
  if (dbExistsAlready && currentDbVersion > 0) {
3065
3065
  this.destoryConnection();
3066
- backupDbPath = path$1.join(path$1.dirname(dbPath), ".backup_before_migration", `${path$1.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
3067
- log(`Copying db ${path$1.basename(dbPath)} to ${backupDbPath} before migration`);
3068
- if (!fs.existsSync(path$1.dirname(backupDbPath))) await fs.promises.mkdir(path$1.dirname(backupDbPath), { recursive: true });
3066
+ backupDbPath = path.join(path.dirname(dbPath), ".backup_before_migration", `${path.basename(dbPath)}.${currentDbVersion}.${timestamp()}`);
3067
+ log(`Copying db ${path.basename(dbPath)} to ${backupDbPath} before migration`);
3068
+ if (!fs.existsSync(path.dirname(backupDbPath))) await fs.promises.mkdir(path.dirname(backupDbPath), { recursive: true });
3069
3069
  const sourceDb = new Database(dbPath, { fileMustExist: true });
3070
3070
  await sourceDb.backup(backupDbPath);
3071
3071
  sourceDb.close();
@@ -4028,13 +4028,16 @@ var DbHandler = class {
4028
4028
  _collectCommentsToBeUpdated() {
4029
4029
  const windowed = this._buildWindowedReplySortArms(timestamp());
4030
4030
  const notPending = (alias) => `(${alias}.pendingApproval IS NULL OR ${alias}.pendingApproval != 1)`;
4031
+ const countedChildAddress = this._communityAddressClauseNamed("c", "countedChild");
4031
4032
  const countedChild = `
4032
4033
  FROM ${TABLES.COMMENTS} c
4033
4034
  JOIN ${TABLES.COMMENT_UPDATES} cu_child ON c.cid = cu_child.cid
4034
4035
  WHERE c.parentCid IS NOT NULL
4036
+ AND ${countedChildAddress.clause}
4035
4037
  AND ${notPending("c")}
4036
4038
  AND (cu_child.removed IS NOT 1 AND cu_child.removed IS NOT TRUE)
4037
- AND (json_extract(cu_child.edit, '$.deleted') IS NULL OR json_extract(cu_child.edit, '$.deleted') != 1)`;
4039
+ AND (json_extract(cu_child.edit, '$.deleted') IS NULL OR json_extract(cu_child.edit, '$.deleted') != 1)
4040
+ AND COALESCE(cu_child.approved, 1) != 0`;
4038
4041
  const insert = `INSERT OR IGNORE INTO ${COMMENTS_TO_UPDATE_TEMP_TABLE}`;
4039
4042
  const arms = [
4040
4043
  `${insert}
@@ -4066,7 +4069,6 @@ var DbHandler = class {
4066
4069
  WITH last_child_rowids AS (
4067
4070
  SELECT c.parentCid AS cid, MAX(c.rowid) AS last_child_rowid
4068
4071
  ${countedChild}
4069
- AND COALESCE(cu_child.approved, 1) != 0
4070
4072
  GROUP BY c.parentCid
4071
4073
  )
4072
4074
  SELECT parent.rowid
@@ -4114,8 +4116,12 @@ var DbHandler = class {
4114
4116
  )
4115
4117
  SELECT id FROM parent_chain`
4116
4118
  ];
4119
+ const allParams = {
4120
+ ...windowed.params,
4121
+ ...countedChildAddress.params
4122
+ };
4117
4123
  for (const arm of arms) {
4118
- const params = Object.fromEntries(Object.entries(windowed.params).filter(([name]) => arm.includes(`:${name}`)));
4124
+ const params = Object.fromEntries(Object.entries(allParams).filter(([name]) => arm.includes(`:${name}`)));
4119
4125
  this._prepareCached(arm).run(params);
4120
4126
  }
4121
4127
  }
@@ -4640,25 +4646,28 @@ var DbHandler = class {
4640
4646
  }
4641
4647
  return result;
4642
4648
  }
4649
+ _replyWalkPresentExpression() {
4650
+ return `CASE WHEN (cu.removed IS NOT 1 AND cu.removed IS NOT TRUE) AND (d.deleted_flag IS NULL OR d.deleted_flag != 1) AND COALESCE(cu.approved, 1) != 0 THEN 1 ELSE 0 END`;
4651
+ }
4643
4652
  _queryReplyCountsByParentCids(parentCids) {
4644
4653
  const result = /* @__PURE__ */ new Map();
4645
4654
  const { clause: addrClause, params: addrParams } = this._communityAddressClause("c");
4646
- const passes = `${addrClause} AND (cu.removed IS NOT 1 AND cu.removed IS NOT TRUE) AND (d.deleted_flag IS NULL OR d.deleted_flag != 1)`;
4655
+ const present = this._replyWalkPresentExpression();
4647
4656
  const deletedLookup = `(SELECT cid, json_extract(edit, '$.deleted') AS deleted_flag FROM ${TABLES.COMMENT_UPDATES})`;
4648
4657
  for (const { placeholders, params } of this._cidChunks(parentCids, addrParams.length * 2)) {
4649
- const rows = this._prepareCached(`WITH RECURSIVE descendants(root, cid, level) AS (
4650
- SELECT c.parentCid, c.cid, 1 FROM ${TABLES.COMMENTS} c
4658
+ const rows = this._prepareCached(`WITH RECURSIVE descendants(root, cid, level, present) AS (
4659
+ SELECT c.parentCid, c.cid, 1, ${present} FROM ${TABLES.COMMENTS} c
4651
4660
  INNER JOIN ${TABLES.COMMENT_UPDATES} cu ON c.cid = cu.cid
4652
4661
  LEFT JOIN ${deletedLookup} AS d ON c.cid = d.cid
4653
- WHERE c.parentCid IN (${placeholders}) AND ${passes}
4662
+ WHERE c.parentCid IN (${placeholders}) AND ${addrClause}
4654
4663
  UNION ALL
4655
- SELECT desc_nodes.root, c.cid, desc_nodes.level + 1 FROM ${TABLES.COMMENTS} c
4664
+ SELECT desc_nodes.root, c.cid, desc_nodes.level + 1, ${present} FROM ${TABLES.COMMENTS} c
4656
4665
  INNER JOIN ${TABLES.COMMENT_UPDATES} cu ON c.cid = cu.cid
4657
4666
  LEFT JOIN ${deletedLookup} AS d ON c.cid = d.cid
4658
4667
  JOIN descendants desc_nodes ON c.parentCid = desc_nodes.cid
4659
- WHERE ${passes}
4668
+ WHERE ${addrClause}
4660
4669
  )
4661
- SELECT root, COUNT(*) AS replyCount, SUM(CASE WHEN level = 1 THEN 1 ELSE 0 END) AS childCount
4670
+ SELECT root, SUM(present) AS replyCount, SUM(CASE WHEN level = 1 THEN present ELSE 0 END) AS childCount
4662
4671
  FROM descendants GROUP BY root`).all(...params, ...addrParams, ...addrParams);
4663
4672
  for (const row of rows) result.set(row.root, {
4664
4673
  replyCount: row.replyCount,
@@ -4670,41 +4679,43 @@ var DbHandler = class {
4670
4679
  _queryLastReplyTimestampsByParentCids(parentCids) {
4671
4680
  const result = /* @__PURE__ */ new Map();
4672
4681
  const { clause: addrClause, params: addrParams } = this._communityAddressClause("c");
4673
- for (const { placeholders, params } of this._cidChunks(parentCids, addrParams.length)) {
4674
- const rows = this._prepareCached(`WITH RECURSIVE descendants(root, cid, timestamp) AS (
4675
- SELECT c.parentCid, c.cid, c.timestamp FROM ${TABLES.COMMENTS} c
4676
- LEFT JOIN ${TABLES.COMMENT_UPDATES} cu ON cu.cid = c.cid
4677
- WHERE c.parentCid IN (${placeholders})
4678
- AND COALESCE(cu.approved, 1) != 0
4679
- AND (c.pendingApproval IS NULL OR c.pendingApproval != 1)
4682
+ const walked = `${addrClause} AND (c.pendingApproval IS NULL OR c.pendingApproval != 1)`;
4683
+ const present = this._replyWalkPresentExpression();
4684
+ const deletedLookup = `(SELECT cid, json_extract(edit, '$.deleted') AS deleted_flag FROM ${TABLES.COMMENT_UPDATES})`;
4685
+ for (const { placeholders, params } of this._cidChunks(parentCids, addrParams.length * 2)) {
4686
+ const rows = this._prepareCached(`WITH RECURSIVE descendants(root, cid, timestamp, present) AS (
4687
+ SELECT c.parentCid, c.cid, c.timestamp, ${present} FROM ${TABLES.COMMENTS} c
4688
+ INNER JOIN ${TABLES.COMMENT_UPDATES} cu ON c.cid = cu.cid
4689
+ LEFT JOIN ${deletedLookup} AS d ON c.cid = d.cid
4690
+ WHERE c.parentCid IN (${placeholders}) AND ${walked}
4680
4691
  UNION ALL
4681
- SELECT desc_nodes.root, c.cid, c.timestamp FROM ${TABLES.COMMENTS} c
4692
+ SELECT desc_nodes.root, c.cid, c.timestamp, ${present} FROM ${TABLES.COMMENTS} c
4682
4693
  INNER JOIN ${TABLES.COMMENT_UPDATES} cu ON c.cid = cu.cid
4683
- LEFT JOIN (SELECT cid, json_extract(edit, '$.deleted') AS deleted_flag FROM ${TABLES.COMMENT_UPDATES}) AS d ON c.cid = d.cid
4694
+ LEFT JOIN ${deletedLookup} AS d ON c.cid = d.cid
4684
4695
  JOIN descendants desc_nodes ON c.parentCid = desc_nodes.cid
4685
- WHERE ${addrClause} AND (cu.removed IS NOT 1 AND cu.removed IS NOT TRUE) AND (d.deleted_flag IS NULL OR d.deleted_flag != 1)
4686
- AND COALESCE(cu.approved, 1) != 0
4687
- AND (c.pendingApproval IS NULL OR c.pendingApproval != 1)
4696
+ WHERE ${walked}
4688
4697
  )
4689
- SELECT root, MAX(timestamp) AS maxTimestamp FROM descendants GROUP BY root`).all(...params, ...addrParams);
4698
+ SELECT root, MAX(CASE WHEN present = 1 THEN timestamp END) AS maxTimestamp FROM descendants GROUP BY root`).all(...params, ...addrParams, ...addrParams);
4690
4699
  for (const row of rows) if (row.maxTimestamp !== null) result.set(row.root, row.maxTimestamp);
4691
4700
  }
4692
4701
  return result;
4693
4702
  }
4694
4703
  _queryLastChildCidsByParentCids(parentCids) {
4695
4704
  const result = /* @__PURE__ */ new Map();
4696
- for (const { placeholders, params } of this._cidChunks(parentCids)) {
4705
+ const { clause: addrClause, params: addrParams } = this._communityAddressClause("c");
4706
+ for (const { placeholders, params } of this._cidChunks(parentCids, addrParams.length)) {
4697
4707
  const rows = this._prepareCached(`SELECT c.parentCid AS parentCid, c.cid AS cid, MAX(c.rowid) AS lastRowid FROM ${TABLES.COMMENTS} c
4698
4708
  INNER JOIN ${TABLES.COMMENT_UPDATES} cu ON cu.cid = c.cid
4699
4709
  LEFT JOIN (
4700
4710
  SELECT cid, json_extract(edit, '$.deleted') AS deleted_flag FROM ${TABLES.COMMENT_UPDATES}
4701
4711
  ) deleted_lookup ON deleted_lookup.cid = c.cid
4702
4712
  WHERE c.parentCid IN (${placeholders})
4713
+ AND ${addrClause}
4703
4714
  AND (c.pendingApproval IS NULL OR c.pendingApproval != 1)
4704
4715
  AND COALESCE(cu.approved, 1) != 0
4705
4716
  AND (cu.removed IS NOT 1 AND cu.removed IS NOT TRUE)
4706
4717
  AND (deleted_lookup.deleted_flag IS NULL OR deleted_lookup.deleted_flag != 1)
4707
- GROUP BY c.parentCid`).all(...params);
4718
+ GROUP BY c.parentCid`).all(...params, ...addrParams);
4708
4719
  for (const row of rows) result.set(row.parentCid, row.cid);
4709
4720
  }
4710
4721
  return result;
@@ -5165,10 +5176,10 @@ var DbHandler = class {
5165
5176
  if (this._db || this._keyv) await this.destoryConnection();
5166
5177
  this._transactionDepth = 0;
5167
5178
  const dataPath = this._community._pkc.dataPath;
5168
- const oldPathString = path$1.join(dataPath, "communities", oldDbName);
5169
- const newPathString = path$1.join(dataPath, "communities", newDbName);
5170
- await fs.promises.mkdir(path$1.dirname(oldPathString), { recursive: true });
5171
- await fs.promises.mkdir(path$1.dirname(newPathString), { recursive: true });
5179
+ const oldPathString = path.join(dataPath, "communities", oldDbName);
5180
+ const newPathString = path.join(dataPath, "communities", newDbName);
5181
+ await fs.promises.mkdir(path.dirname(oldPathString), { recursive: true });
5182
+ await fs.promises.mkdir(path.dirname(newPathString), { recursive: true });
5172
5183
  try {
5173
5184
  if (!fs.existsSync(oldPathString)) log(`Old DB file ${oldPathString} does not exist. Cannot backup/rename.`);
5174
5185
  else {
@@ -5190,8 +5201,8 @@ var DbHandler = class {
5190
5201
  }
5191
5202
  async lockCommunityStart(communityAddress = this._community.address) {
5192
5203
  const log = logger_default("pkc-js:local-community:db-handler:lock:start");
5193
- const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5194
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5204
+ const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5205
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5195
5206
  try {
5196
5207
  await import_src.default.lock(communityDbPath, {
5197
5208
  lockfilePath,
@@ -5212,8 +5223,8 @@ var DbHandler = class {
5212
5223
  async unlockCommunityStart(communityAddress = this._community.address) {
5213
5224
  const log = logger_default("pkc-js:local-community:db-handler:unlock:start");
5214
5225
  log.trace(`Attempting to unlock the start of community (${communityAddress})`);
5215
- const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5216
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5226
+ const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5227
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5217
5228
  if (!fs.existsSync(lockfilePath) || !fs.existsSync(communityDbPath)) return;
5218
5229
  try {
5219
5230
  await import_src.default.unlock(communityDbPath, { lockfilePath });
@@ -5224,8 +5235,8 @@ var DbHandler = class {
5224
5235
  }
5225
5236
  }
5226
5237
  async isCommunityStartLocked(communityAddress = this._community.address) {
5227
- const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5228
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", communityAddress);
5238
+ const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${communityAddress}.start.lock`);
5239
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", communityAddress);
5229
5240
  return await import_src.default.check(communityDbPath, {
5230
5241
  lockfilePath,
5231
5242
  realpath: false,
@@ -5234,8 +5245,8 @@ var DbHandler = class {
5234
5245
  }
5235
5246
  async lockCommunityState() {
5236
5247
  const log = logger_default("pkc-js:local-community:db-handler:lock:lockCommunityState");
5237
- const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5238
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5248
+ const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5249
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5239
5250
  try {
5240
5251
  await import_src.default.lock(communityDbPath, {
5241
5252
  lockfilePath,
@@ -5252,8 +5263,8 @@ var DbHandler = class {
5252
5263
  }
5253
5264
  async unlockCommunityState() {
5254
5265
  const log = logger_default("pkc-js:local-community:db-handler:lock:unlockCommunityState");
5255
- const lockfilePath = path$1.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5256
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5266
+ const lockfilePath = path.join(this._community._pkc.dataPath, "communities", `${this._community.address}.state.lock`);
5267
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5257
5268
  if (!fs.existsSync(lockfilePath)) return;
5258
5269
  try {
5259
5270
  await import_src.default.unlock(communityDbPath, { lockfilePath });
@@ -5263,7 +5274,7 @@ var DbHandler = class {
5263
5274
  }
5264
5275
  }
5265
5276
  communityDbExists() {
5266
- const communityDbPath = path$1.join(this._community._pkc.dataPath, "communities", this._community.address);
5277
+ const communityDbPath = path.join(this._community._pkc.dataPath, "communities", this._community.address);
5267
5278
  return fs.existsSync(communityDbPath);
5268
5279
  }
5269
5280
  markCommentsAsPublishedToPostUpdates(commentCids) {
@@ -8205,11 +8216,11 @@ async function edit(community, newCommunityOptions) {
8205
8216
  const EXPORTS_KEY = STORAGE_KEYS[STORAGE_KEYS.EXPORTS];
8206
8217
  function defaultExportPathFor(community, exportId) {
8207
8218
  if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
8208
- return path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
8219
+ return Path.join(community._pkc.dataPath, "exports", `${exportId}.sqlite`);
8209
8220
  }
8210
8221
  function sourceDbPathFor(community) {
8211
8222
  if (typeof community._pkc.dataPath !== "string") throw new PKCError("ERR_DATA_PATH_IS_NOT_DEFINED", { communityAddress: community.address });
8212
- return path.join(community._pkc.dataPath, "communities", community.address);
8223
+ return Path.join(community._pkc.dataPath, "communities", community.address);
8213
8224
  }
8214
8225
  async function persistExports(community) {
8215
8226
  if (!community._dbHandler) return;
@@ -8285,9 +8296,9 @@ async function runExportTask(community, exportId, opts) {
8285
8296
  async function exportCommunityEmbedded(community, options = {}) {
8286
8297
  if (options.signal?.aborted) throw options.signal.reason ?? new DOMException("The operation was aborted.", "AbortError");
8287
8298
  const exportId = v4();
8288
- const destPath = options.exportPath ? path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
8299
+ const destPath = options.exportPath ? Path.resolve(options.exportPath) : defaultExportPathFor(community, exportId);
8289
8300
  const includePrivateKey = options.includePrivateKey === true;
8290
- if (path.resolve(destPath) === path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
8301
+ if (Path.resolve(destPath) === Path.resolve(sourceDbPathFor(community))) throw new PKCError("ERR_EXPORT_PATH_TARGETS_LIVE_DB", {
8291
8302
  communityAddress: community.address,
8292
8303
  exportPath: destPath
8293
8304
  });
@@ -1,7 +1,7 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $ as shortifyAddress, An as CommentIpfsSchema, Ar as PKCError, At as ChallengeMessageSchema, Ct as untrackUpdatingComment, Dt as pTimeout, E as isIpfsCid, Er as FailedToFetchCommentUpdateFromGatewaysError, Et as TimeoutError, Fn as CommentUpdateForChallengeVerificationSchema, Fr as setErrorMap, H as rejectWhenCommunityStopsOrAborts, J as replaceXWithY, Jr as stringifyPrimitive, Kr as joinValues, Kt as version_default, Mr as logger_default, Mt as ChallengeRequestMessageSchema, O as isIpns, Ot as ChallengeAnswerMessageSchema, Pt as ChallengeVerificationMessageSchema, Rn as CommentUpdateSchema, S as hideClassPrivateProps, T as isAbortError, Tr as FailedToFetchCommentIpfsFromGatewaysError, Tt as require_sha256, V as rejectWhenAbortSignalFires, Y as resolveWhenPredicateIsTrue, Z as retryKuboIpfsAdd, _r as r, at as waitForUpdateInCommunityInstanceWithErrorAndTimeout, b as getPostUpdateTimestampRange, bt as trackUpdatingComment, dn as CommunityIpfsSchema, dr as n$1, dt as findUpdatingComment, et as shortifyCid, f as doesDomainAddressHaveCapitalLetter, ft as findUpdatingCommunity, gt as refreshTrackedCommentAliases, hr as e$1, ht as listUpdatingCommunities, it as timestamp, jr as messages, l as createAbortError, lr as n$2, mr as e, mt as listUpdatingComments, on as CommunityAnchorSchema, pr as t$1, pt as listStartedCommunities, q as removeUndefinedValuesRecursively, qr as parsedType, rt as throwIfAbortSignalAborted, t as areEquivalentCommunityAddresses, tt as sleepUntilTimeoutOrAbort, u as deepMergeRuntimeFields, ut as findStartedCommunity, w as ipnsNameToIpnsOverPubsubTopic, wr as require_retry, wt as untrackUpdatingCommunity, xn as isStringDomain, yn as PubsubTopicSchema } from "./util-D9myrucu.js";
3
- import { $n as getPKCAddressFromPublicKeySync, $t as RpcSubscriptionIdResultSchema, A as extractCommunityRuntimeFieldsFromParsedPages, An as verifyCommentModeration, Ar as NAME_RESOLVED_FALSE_TTL_MS, At as parseRpcCommentEventWithPKCErrorIfItFails, B as stripNameResolvedFromCrosspost, Bn as normalizeCreatePublicationAuthor, Bt as RpcCommunityIdentifierParamSchema, C as RemoteCommunity, Cn as signVote, Cr as t$3, Ct as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Dn as verifyChallengeVerification, Dr as t$4, Dt as parseDecryptedChallengeWithPKCErrorIfItFails, E as RepliesPages, Er as t$2, Et as parseDecryptedChallengeVerification, F as parseRawPages, Fn as verifyVote, Fr as nativeFunctions$2, Ft as RpcAnchorPublishPreparationResultSchema, Gn as getCommunityNameFromWire, Gt as RpcExportCommunityParamSchema, H as GenericStateClient, Ht as RpcEditCommunityParamSchema, I as applyNameResolvedCacheToCrosspost, In as buildRuntimeAuthor, Ir as require_undici, It as RpcAuthorNameParamSchema, J as decodeRpcChallengeAnswerPubsubMsg, Jn as decode, Jt as RpcFetchCidResultSchema, Kn as getCommunityPublicKeyFromWire, Kt as RpcExportCommunityResultSchema, L as cloneCrosspostForRuntime, Ln as cleanWireAuthor, Lt as RpcCancelExportParamSchema, M as findCommentInPageInstanceRecursively, Mn as verifyCommentUpdate, Mr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Mt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, N as findCommentInParsedPages, On as verifyCommentEdit, Ot as parseJsonWithPKCErrorIfFails, Pn as verifyCommunityEdit, Pt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, Qt as RpcResolveAuthorNameResultSchema, R as collectCrosspostAuthorsToResolve, Rn as getAuthorNameFromRuntime, Rt as RpcCidParamSchema, S as LRUCache, Sn as signCommunityEdit, St as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, T as KeyvBetterSqlite3, Tn as verifyChallengeMessage, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, U as InflightFetchManager, Un as buildRuntimeCommunityFields, Ut as RpcExportCommunityModLogsParamSchema, V as PKCClientsManager, Vt as RpcCommunityPageParamSchema, W as InflightResourceTypes, Wn as getCommunityAddressFromRecord, Wt as RpcExportCommunityModLogsResultSchema, X as decodeRpcChallengeRequestPubsubMsg, Xn as getBufferedPKCAddressFromPublicKey, Xt as RpcPublishChallengeAnswersParamSchema, Y as decodeRpcChallengePubsubMsg, Yt as RpcPublishAnchorRecordParamSchema, Z as decodeRpcChallengeVerificationPubsubMsg, Zt as RpcPublishedAnchorRecordResultSchema, _ as pkcJsChallenges, _n as signCommentEdit, _t as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, an as createAnchorIpnsRecord$1, ar as createKuboRpcClient, at as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, br as t$5, cn as encryptEd25519AesGcm, ct as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, dn as cleanUpBeforePublishing, dr as getDefaultDataPath, dt as parseCommunityAddressWithPKCErrorIfItFails, en as RpcSuccessResultSchema, fn as signChallengeAnswer, gn as signComment, gt as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, hr as monitorCommunitiesDirectory, in as createSigner, j as findCommentInPageInstance, jn as verifyCommentPubsubMessage, jr as NAME_RESOLVED_TRUE_TTL_MS, jt as parseRpcCommentUpdateEventWithPKCErrorIfItFails, kn as verifyCommentIpfs, kr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, kt as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, lt as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, mn as signChallengeRequest, mr as listCommunitiesSync, mt as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as require_lib$1, nt as parseCidStringSchemaWithPKCErrorIfItFails, on as decryptEd25519AesGcm, ot as parseCommentIpfsSchemaWithPKCErrorIfItFails, q as PKCTypedEmitter, qn as normalizeCommunityInputFromCommunity, qt as RpcFetchCidParamSchema, s as pkcJsPageSorts, t as RpcLocalCommunity, tn as RpcUnsubscribeParamSchema, ut as parseCommentUpdateSchemaWithPKCErrorIfItFails, vn as signCommentModeration, vr as setNativeFunctions$1, vt as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, wr as n$3, wt as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, x as TrackedInstanceRegistry, yr as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, yt as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, zt as RpcCommentRepliesPageParamSchema } from "./rpc-local-community-UsouULtn.js";
4
- import { s as getHeliaDebugContext } from "./util-Bzofw6R2.js";
2
+ import { $ as shortifyAddress, An as CommentIpfsSchema, Ar as PKCError, At as ChallengeMessageSchema, Ct as untrackUpdatingComment, Dt as pTimeout, E as isIpfsCid, Er as FailedToFetchCommentUpdateFromGatewaysError, Et as TimeoutError, Fn as CommentUpdateForChallengeVerificationSchema, Fr as setErrorMap, H as rejectWhenCommunityStopsOrAborts, J as replaceXWithY, Jr as stringifyPrimitive, Kr as joinValues, Kt as version_default, Mr as logger_default, Mt as ChallengeRequestMessageSchema, O as isIpns, Ot as ChallengeAnswerMessageSchema, Pt as ChallengeVerificationMessageSchema, Rn as CommentUpdateSchema, S as hideClassPrivateProps, T as isAbortError, Tr as FailedToFetchCommentIpfsFromGatewaysError, Tt as require_sha256, V as rejectWhenAbortSignalFires, Y as resolveWhenPredicateIsTrue, Z as retryKuboIpfsAdd, _r as r, at as waitForUpdateInCommunityInstanceWithErrorAndTimeout, b as getPostUpdateTimestampRange, bt as trackUpdatingComment, dn as CommunityIpfsSchema, dr as n$1, dt as findUpdatingComment, et as shortifyCid, f as doesDomainAddressHaveCapitalLetter, ft as findUpdatingCommunity, gt as refreshTrackedCommentAliases, hr as e$1, ht as listUpdatingCommunities, it as timestamp, jr as messages, l as createAbortError, lr as n$2, mr as e, mt as listUpdatingComments, on as CommunityAnchorSchema, pr as t$1, pt as listStartedCommunities, q as removeUndefinedValuesRecursively, qr as parsedType, rt as throwIfAbortSignalAborted, t as areEquivalentCommunityAddresses, tt as sleepUntilTimeoutOrAbort, u as deepMergeRuntimeFields, ut as findStartedCommunity, w as ipnsNameToIpnsOverPubsubTopic, wr as require_retry, wt as untrackUpdatingCommunity, xn as isStringDomain, yn as PubsubTopicSchema } from "./util-B9JenRyE.js";
3
+ import { $n as getPKCAddressFromPublicKeySync, $t as RpcSubscriptionIdResultSchema, A as extractCommunityRuntimeFieldsFromParsedPages, An as verifyCommentModeration, Ar as NAME_RESOLVED_FALSE_TTL_MS, At as parseRpcCommentEventWithPKCErrorIfItFails, B as stripNameResolvedFromCrosspost, Bn as normalizeCreatePublicationAuthor, Bt as RpcCommunityIdentifierParamSchema, C as RemoteCommunity, Cn as signVote, Cr as t$3, Ct as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Dn as verifyChallengeVerification, Dr as t$4, Dt as parseDecryptedChallengeWithPKCErrorIfItFails, E as RepliesPages, Er as t$2, Et as parseDecryptedChallengeVerification, F as parseRawPages, Fn as verifyVote, Fr as nativeFunctions$2, Ft as RpcAnchorPublishPreparationResultSchema, Gn as getCommunityNameFromWire, Gt as RpcExportCommunityParamSchema, H as GenericStateClient, Ht as RpcEditCommunityParamSchema, I as applyNameResolvedCacheToCrosspost, In as buildRuntimeAuthor, Ir as require_undici, It as RpcAuthorNameParamSchema, J as decodeRpcChallengeAnswerPubsubMsg, Jn as decode, Jt as RpcFetchCidResultSchema, Kn as getCommunityPublicKeyFromWire, Kt as RpcExportCommunityResultSchema, L as cloneCrosspostForRuntime, Ln as cleanWireAuthor, Lt as RpcCancelExportParamSchema, M as findCommentInPageInstanceRecursively, Mn as verifyCommentUpdate, Mr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, Mt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, N as findCommentInParsedPages, On as verifyCommentEdit, Ot as parseJsonWithPKCErrorIfFails, Pn as verifyCommunityEdit, Pt as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, Qt as RpcResolveAuthorNameResultSchema, R as collectCrosspostAuthorsToResolve, Rn as getAuthorNameFromRuntime, Rt as RpcCidParamSchema, S as LRUCache, Sn as signCommunityEdit, St as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, T as KeyvBetterSqlite3, Tn as verifyChallengeMessage, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, U as InflightFetchManager, Un as buildRuntimeCommunityFields, Ut as RpcExportCommunityModLogsParamSchema, V as PKCClientsManager, Vt as RpcCommunityPageParamSchema, W as InflightResourceTypes, Wn as getCommunityAddressFromRecord, Wt as RpcExportCommunityModLogsResultSchema, X as decodeRpcChallengeRequestPubsubMsg, Xn as getBufferedPKCAddressFromPublicKey, Xt as RpcPublishChallengeAnswersParamSchema, Y as decodeRpcChallengePubsubMsg, Yt as RpcPublishAnchorRecordParamSchema, Z as decodeRpcChallengeVerificationPubsubMsg, Zt as RpcPublishedAnchorRecordResultSchema, _ as pkcJsChallenges, _n as signCommentEdit, _t as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, an as createAnchorIpnsRecord$1, ar as createKuboRpcClient, at as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, br as t$5, cn as encryptEd25519AesGcm, ct as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, dn as cleanUpBeforePublishing, dr as getDefaultDataPath, dt as parseCommunityAddressWithPKCErrorIfItFails, en as RpcSuccessResultSchema, fn as signChallengeAnswer, gn as signComment, gt as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, hr as monitorCommunitiesDirectory, in as createSigner, j as findCommentInPageInstance, jn as verifyCommentPubsubMessage, jr as NAME_RESOLVED_TRUE_TTL_MS, jt as parseRpcCommentUpdateEventWithPKCErrorIfItFails, kn as verifyCommentIpfs, kr as MAX_FILE_SIZE_BYTES_FOR_COMMENT_UPDATE, kt as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, lt as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, mn as signChallengeRequest, mr as listCommunitiesSync, mt as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, n as RpcRemoteCommunity, nn as require_lib$1, nt as parseCidStringSchemaWithPKCErrorIfItFails, on as decryptEd25519AesGcm, ot as parseCommentIpfsSchemaWithPKCErrorIfItFails, q as PKCTypedEmitter, qn as normalizeCommunityInputFromCommunity, qt as RpcFetchCidParamSchema, s as pkcJsPageSorts, t as RpcLocalCommunity, tn as RpcUnsubscribeParamSchema, ut as parseCommentUpdateSchemaWithPKCErrorIfItFails, vn as signCommentModeration, vr as setNativeFunctions$1, vt as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, wr as n$3, wt as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, x as TrackedInstanceRegistry, yr as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, yt as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, zt as RpcCommentRepliesPageParamSchema } from "./rpc-local-community-DWv8wZMB.js";
4
+ import { s as getHeliaDebugContext } from "./util-CH8WrVZq.js";
5
5
  import path from "path";
6
6
  import assert from "assert";
7
7
  import fs from "fs";
@@ -8254,7 +8254,7 @@ var PKC$1 = class extends PKCTypedEmitter {
8254
8254
  this.clients.libp2pJsClients = {};
8255
8255
  if (!this.libp2pJsClientsOptions) return;
8256
8256
  if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
8257
- const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-DjImnuSv.js");
8257
+ const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-DoOp7t8V.js");
8258
8258
  for (const clientOptions of this.libp2pJsClientsOptions) {
8259
8259
  const heliaNode = await createLibp2pJsClientOrUseExistingOne({
8260
8260
  ...clientOptions,
@@ -8533,7 +8533,7 @@ var PKC$1 = class extends PKCTypedEmitter {
8533
8533
  const log = logger_default("pkc-js:pkc:createLocalCommunity");
8534
8534
  log.trace("Received community options to create a local community instance:", options);
8535
8535
  if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
8536
- const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-D0RN_pS9.js");
8536
+ const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-CFX753RE.js");
8537
8537
  const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
8538
8538
  const community = new LocalCommunity(this);
8539
8539
  if (isLocalCommunity) {
@@ -1,5 +1,5 @@
1
1
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { $ as shortifyAddress, $n as CreateCommentEditOptionsWithRefinementSchema, $t as CommentModerationPubsubMessagePublicationSchema, An as CommentIpfsSchema, Ar as PKCError, B as raceAgainstAbort, Br as literal, Bt as DecryptedChallengeVerificationSchema, C as interruptibleSleep, Cn as VoteChallengeRequestToEncryptSchema, Cr as e$4, D as isIpfsPath, Dr as FailedToFetchCommunityFromGatewaysError, Dt as pTimeout, E as isIpfsCid, En as VoteSignedPropertyNames, Er as FailedToFetchCommentUpdateFromGatewaysError, Ft as ChallengeVerificationMessageSignedPropertyNames, G as removeNullUndefinedEmptyObjectsValuesRecursively, Gn as PageIpfsSchema, Gt as PKCUserOptionsSchema, Hn as CreateCommentOptionsWithRefinementSchema, Hr as object, Ht as NameResolverSerializedSchema, I as isRequestPubsubPublicationOfPost, In as CommentUpdateForChallengeVerificationSignedPropertyNames, Ir as _enum, It as DecryptedChallengeAnswerSchema, Kn as isReservedObjectKey, L as isRequestPubsubPublicationOfReply, Ln as CommentUpdateReservedFields, Lr as array, Mn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Mr as logger_default, Nn as CommentSignedPropertyNames, Nr as require_supports_color, Nt as ChallengeRequestMessageSignedPropertyNames, O as isIpns, On as CommentChallengeRequestToEncryptSchema, Or as FailedToFetchGenericIpfsFromGatewaysError, Pn as CommentUpdateChallengeReservedFieldNames, Pr as require_ms$1, Qt as CommentModerationChallengeRequestToEncryptSchema, R as pubsubTopicToDhtKey, Rn as CommentUpdateSchema, Rr as boolean, S as hideClassPrivateProps, Sn as CreateVoteUserOptionsWithRefinementSchema, Sr as t$9, St as untrackStartedCommunity, T as isAbortError, Tr as FailedToFetchCommentIpfsFromGatewaysError, Tt as require_sha256$1, Un as GetPageParamSchema, Ur as record, Ut as PKCParsedOptionsSchema, Vr as number, Vt as NameResolveCacheOptionsSchema, Wn as ModQueuePageIpfsSchema, Wr as string, Wt as PKCUserOptionBaseSchema, Xt as CommunityEditPubsubMessagePublicationSchema, Yn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Yt as CommunityEditPublicationSignedPropertyNames, Zn as CommentEditSignedPropertyNames, Zt as CreateCommunityEditPublicationOptionsWithRefinementSchema, _ as getEquivalentCommunityAddresses, _n as PageSortFileFactorySchema, _r as r$8, _t as refreshTrackedCommunityAliases, an as ChallengeFileSchema, ar as CidStringSchema, bn as RpcRemoteCommunityUpdateEventResultSchema, br as r$7, cn as CommunityEditOptionsSchema, cr as CreateSignerSchema, d as derivePublicationFromChallengeRequest, dn as CommunityIpfsSchema, dr as n$10, er as AuthorAddressSchema, et as shortifyCid, f as doesDomainAddressHaveCapitalLetter, fn as CommunitySignedPropertyNames, ft as findUpdatingCommunity, gn as ExportCommunityModLogsOptionsSchema, gr as t$11, hn as CreateRpcCommunityFunctionArgumentSchema, hr as e$5, in as ChallengeFileFactorySchema, ir as CidPathSchema, it as timestamp, jr as messages, jt as ChallengeMessageSignedPropertyNames, k as isIpnsPath, kn as CommentIpfsReservedFields, kr as FailedToFetchPageIpfsFromGatewaysError, kt as ChallengeAnswerMessageSignedPropertyNames, l as createAbortError, ln as CommunityExportRecordsSchema, lr as n$9, m as fetchAndValidateIpnsRecordFromGateway, mn as CreateRemoteCommunityFunctionArgumentSchema, mr as e$6, nn as CommentModerationsTableRowSchema, or as CommunityAddressSchema, p as extractNetworkErrorDetails, pn as CreateNewLocalCommunityUserOptionsSchema, pr as t$13, qn as CommentEditChallengeRequestToEncryptSchema, qt as CommunityEditPublicationChallengeRequestToEncryptSchema, r as calculateIpfsCidV0, rn as CreateCommentModerationOptionsWithRefinementSchema, rr as ChallengeAnswersSchema, rt as throwIfAbortSignalAborted, sn as CommunityChallengeSettingSchema, sr as CommunityAuthorChallengeReservedFieldNames, t as areEquivalentCommunityAddresses, tn as CommentModerationSignedPropertyNames, tr as AuthorCommentIpfsReservedFields, tt as sleepUntilTimeoutOrAbort, u as deepMergeRuntimeFields, un as CommunityIpfsReservedFields, ut as findStartedCommunity, vn as PageSortFileSchema, vr as t$12, w as ipnsNameToIpnsOverPubsubTopic, wn as VotePubsubMessagePublicationSchema, wr as require_retry$1, wt as untrackUpdatingCommunity, x as hasTransientNetworkErrorCode, xn as isStringDomain, xr as t$10, xt as trackUpdatingCommunity, yr as n$8, yt as trackStartedCommunity, zn as CommentUpdateSignedPropertyNames, zr as custom, zt as DecryptedChallengeSchema } from "./util-D9myrucu.js";
2
+ import { $ as shortifyAddress, $n as CreateCommentEditOptionsWithRefinementSchema, $t as CommentModerationPubsubMessagePublicationSchema, An as CommentIpfsSchema, Ar as PKCError, B as raceAgainstAbort, Br as literal, Bt as DecryptedChallengeVerificationSchema, C as interruptibleSleep, Cn as VoteChallengeRequestToEncryptSchema, Cr as e$4, D as isIpfsPath, Dr as FailedToFetchCommunityFromGatewaysError, Dt as pTimeout, E as isIpfsCid, En as VoteSignedPropertyNames, Er as FailedToFetchCommentUpdateFromGatewaysError, Ft as ChallengeVerificationMessageSignedPropertyNames, G as removeNullUndefinedEmptyObjectsValuesRecursively, Gn as PageIpfsSchema, Gt as PKCUserOptionsSchema, Hn as CreateCommentOptionsWithRefinementSchema, Hr as object, Ht as NameResolverSerializedSchema, I as isRequestPubsubPublicationOfPost, In as CommentUpdateForChallengeVerificationSignedPropertyNames, Ir as _enum, It as DecryptedChallengeAnswerSchema, Kn as isReservedObjectKey, L as isRequestPubsubPublicationOfReply, Ln as CommentUpdateReservedFields, Lr as array, Mn as CommentPubsubMessageWithFlexibleAuthorRefinementSchema, Mr as logger_default, Nn as CommentSignedPropertyNames, Nr as require_supports_color, Nt as ChallengeRequestMessageSignedPropertyNames, O as isIpns, On as CommentChallengeRequestToEncryptSchema, Or as FailedToFetchGenericIpfsFromGatewaysError, Pn as CommentUpdateChallengeReservedFieldNames, Pr as require_ms$1, Qt as CommentModerationChallengeRequestToEncryptSchema, R as pubsubTopicToDhtKey, Rn as CommentUpdateSchema, Rr as boolean, S as hideClassPrivateProps, Sn as CreateVoteUserOptionsWithRefinementSchema, Sr as t$9, St as untrackStartedCommunity, T as isAbortError, Tr as FailedToFetchCommentIpfsFromGatewaysError, Tt as require_sha256$1, Un as GetPageParamSchema, Ur as record, Ut as PKCParsedOptionsSchema, Vr as number, Vt as NameResolveCacheOptionsSchema, Wn as ModQueuePageIpfsSchema, Wr as string, Wt as PKCUserOptionBaseSchema, Xt as CommunityEditPubsubMessagePublicationSchema, Yn as CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema, Yt as CommunityEditPublicationSignedPropertyNames, Zn as CommentEditSignedPropertyNames, Zt as CreateCommunityEditPublicationOptionsWithRefinementSchema, _ as getEquivalentCommunityAddresses, _n as PageSortFileFactorySchema, _r as r$8, _t as refreshTrackedCommunityAliases, an as ChallengeFileSchema, ar as CidStringSchema, bn as RpcRemoteCommunityUpdateEventResultSchema, br as r$7, cn as CommunityEditOptionsSchema, cr as CreateSignerSchema, d as derivePublicationFromChallengeRequest, dn as CommunityIpfsSchema, dr as n$10, er as AuthorAddressSchema, et as shortifyCid, f as doesDomainAddressHaveCapitalLetter, fn as CommunitySignedPropertyNames, ft as findUpdatingCommunity, gn as ExportCommunityModLogsOptionsSchema, gr as t$11, hn as CreateRpcCommunityFunctionArgumentSchema, hr as e$5, in as ChallengeFileFactorySchema, ir as CidPathSchema, it as timestamp, jr as messages, jt as ChallengeMessageSignedPropertyNames, k as isIpnsPath, kn as CommentIpfsReservedFields, kr as FailedToFetchPageIpfsFromGatewaysError, kt as ChallengeAnswerMessageSignedPropertyNames, l as createAbortError, ln as CommunityExportRecordsSchema, lr as n$9, m as fetchAndValidateIpnsRecordFromGateway, mn as CreateRemoteCommunityFunctionArgumentSchema, mr as e$6, nn as CommentModerationsTableRowSchema, or as CommunityAddressSchema, p as extractNetworkErrorDetails, pn as CreateNewLocalCommunityUserOptionsSchema, pr as t$13, qn as CommentEditChallengeRequestToEncryptSchema, qt as CommunityEditPublicationChallengeRequestToEncryptSchema, r as calculateIpfsCidV0, rn as CreateCommentModerationOptionsWithRefinementSchema, rr as ChallengeAnswersSchema, rt as throwIfAbortSignalAborted, sn as CommunityChallengeSettingSchema, sr as CommunityAuthorChallengeReservedFieldNames, t as areEquivalentCommunityAddresses, tn as CommentModerationSignedPropertyNames, tr as AuthorCommentIpfsReservedFields, tt as sleepUntilTimeoutOrAbort, u as deepMergeRuntimeFields, un as CommunityIpfsReservedFields, ut as findStartedCommunity, vn as PageSortFileSchema, vr as t$12, w as ipnsNameToIpnsOverPubsubTopic, wn as VotePubsubMessagePublicationSchema, wr as require_retry$1, wt as untrackUpdatingCommunity, x as hasTransientNetworkErrorCode, xn as isStringDomain, xr as t$10, xt as trackUpdatingCommunity, yr as n$8, yt as trackStartedCommunity, zn as CommentUpdateSignedPropertyNames, zr as custom, zt as DecryptedChallengeSchema } from "./util-B9JenRyE.js";
3
3
  import { t as all } from "./src-CYIMjhjK.js";
4
4
  import { createHash } from "node:crypto";
5
5
  import { pathToFileURL } from "node:url";
@@ -14796,14 +14796,14 @@ const CommunityEditPublicationPubsubReservedFields = r$2([
14796
14796
  ], t$3(CommunityEditPubsubMessagePublicationSchema.shape));
14797
14797
  //#endregion
14798
14798
  //#region dist/node/generated-version.js
14799
- const version = "0.0.111";
14799
+ const version = "0.0.113";
14800
14800
  //#endregion
14801
14801
  //#region dist/node/version.js
14802
14802
  const protocolVersion = ProtocolVersionSchema.parse("1.0.0");
14803
14803
  const pkcJsVersion = version;
14804
14804
  var version_default = {
14805
14805
  PKC_JS_VERSION: pkcJsVersion,
14806
- DB_VERSION: 43,
14806
+ DB_VERSION: 44,
14807
14807
  PROTOCOL_VERSION: protocolVersion,
14808
14808
  USER_AGENT: UserAgentSchema.parse(`/pkc-js:${pkcJsVersion}/`)
14809
14809
  };
@@ -1,4 +1,4 @@
1
- import { Ar as PKCError, z as pubsubTopicToDhtKeyCid } from "./util-D9myrucu.js";
1
+ import { Ar as PKCError, z as pubsubTopicToDhtKeyCid } from "./util-B9JenRyE.js";
2
2
  import { ipnsSelector } from "ipns/selector";
3
3
  import { ipnsValidator } from "ipns/validator";
4
4
  import { unmarshalIPNSRecord } from "ipns";
@@ -1,2 +1,2 @@
1
- import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-BCwY3CII.js";
1
+ import { a as getShortCid, c as setNativeFunctions, i as getShortAddress, n as challenges, o as nativeFunctions, r as createAnchorIpnsRecord, s as pageSorts, t as PKC } from "./chunks/node-gyqBss4j.js";
2
2
  export { challenges, createAnchorIpnsRecord, PKC as default, getShortAddress, getShortCid, nativeFunctions, pageSorts, setNativeFunctions };
@@ -1,7 +1,7 @@
1
- import { Ar as PKCError, Dt as pTimeout, J as replaceXWithY, Mr as logger_default, S as hideClassPrivateProps, dr as n, pr as t, ut as findStartedCommunity } from "../../chunks/util-D9myrucu.js";
2
- import { _ as parseRpcExportCommunityParam, b as parseRpcUnsubscribeParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcPublishAnchorRecordParam, y as parseRpcPublishChallengeAnswersParam } from "../../chunks/node-BCwY3CII.js";
3
- import { G as pRetry, K as pLimit, Mt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Nt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, O as buildPageRuntimeFields, Or as stringify, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, bt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails, ft as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, it as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, k as buildPagesRuntimeFields, nn as require_lib, pt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, rt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, st as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, xr as t$1, xt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, z as extractCrosspostRuntimeFields } from "../../chunks/rpc-local-community-UsouULtn.js";
4
- import { t as LocalCommunity } from "../../chunks/local-community-aE__SGK-.js";
1
+ import { Ar as PKCError, Dt as pTimeout, J as replaceXWithY, Mr as logger_default, S as hideClassPrivateProps, dr as n, pr as t, ut as findStartedCommunity } from "../../chunks/util-B9JenRyE.js";
2
+ import { _ as parseRpcExportCommunityParam, b as parseRpcUnsubscribeParam, d as parseRpcCidParam, f as parseRpcCommentRepliesPageParam, g as parseRpcExportCommunityModLogsParam, h as parseRpcEditCommunityParam, l as parseRpcAuthorNameParam, m as parseRpcCommunityPageParam, p as parseRpcCommunityIdentifierParam, t as PKC, u as parseRpcCancelExportParam, v as parseRpcPublishAnchorRecordParam, y as parseRpcPublishChallengeAnswersParam } from "../../chunks/node-gyqBss4j.js";
3
+ import { G as pRetry, K as pLimit, Mt as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Nt as parseVoteChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, O as buildPageRuntimeFields, Or as stringify, Tt as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, bt as parseCreateNewLocalCommunityUserOptionsSchemaWithPKCErrorIfItFails, ft as parseCommunityEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, it as parseCommentEditChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, k as buildPagesRuntimeFields, nn as require_lib, pt as parseCommunityEditOptionsSchemaWithPKCErrorIfItFails, rt as parseCommentChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, st as parseCommentModerationChallengeRequestToEncryptSchemaWithPKCErrorIfItFails, xr as t$1, xt as parseCreatePKCWsServerOptionsSchemaWithPKCErrorIfItFails, z as extractCrosspostRuntimeFields } from "../../chunks/rpc-local-community-DWv8wZMB.js";
4
+ import { t as LocalCommunity } from "../../chunks/local-community-CaV30etW.js";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import path from "path";
7
7
  import assert from "assert";
@@ -1 +1 @@
1
- export declare const version = "0.0.111";
1
+ export declare const version = "0.0.113";
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by config/generate-version.js — do not edit
2
- export const version = "0.0.111";
2
+ export const version = "0.0.113";
3
3
  //# sourceMappingURL=generated-version.js.map
@@ -2,8 +2,9 @@
2
2
  // CommentUpdate already carries as lastReplyTimestamp (the recursive MAX(timestamp) the community computes when a
3
3
  // descendant changes, before pages are generated in the same cycle). A per-comment score like every other built-in,
4
4
  // so a client re-sorts by bump order from the page alone. lastReplyTimestamp hard-codes the removed/deleted/unapproved
5
- // exclusions, so an owner who turns excludeRemovedComments off for posts still does not get removed replies bumping
6
- // threads: bump time is what the CommentUpdate carries.
5
+ // exclusions at every depth (a removed or deleted reply never bumps; the present replies under it do), so an owner
6
+ // who turns excludeRemovedComments off for posts still does not get removed replies bumping threads: bump time is
7
+ // what the CommentUpdate carries.
7
8
  const active = () => ({
8
9
  sortName: "active",
9
10
  description: "Most recently bumped first: posts ordered by the newest reply anywhere in their thread",
@@ -1 +1 @@
1
- {"version":3,"file":"active.js","sourceRoot":"","sources":["../../../../src/pages/pkc-js-page-sorts/active.ts"],"names":[],"mappings":"AAEA,iHAAiH;AACjH,kHAAkH;AAClH,oHAAoH;AACpH,uHAAuH;AACvH,oHAAoH;AACpH,wDAAwD;AACxD,MAAM,MAAM,GAAwB,GAAG,EAAE,CAAC,CAAC;IACvC,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,wFAAwF;IACrG,YAAY,EAAE,EAAE,EAAE,4EAA4E;IAC9F,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,kBAAkB,IAAI,CAAC,CAAC;CAC5G,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"active.js","sourceRoot":"","sources":["../../../../src/pages/pkc-js-page-sorts/active.ts"],"names":[],"mappings":"AAEA,iHAAiH;AACjH,kHAAkH;AAClH,oHAAoH;AACpH,uHAAuH;AACvH,mHAAmH;AACnH,kHAAkH;AAClH,kCAAkC;AAClC,MAAM,MAAM,GAAwB,GAAG,EAAE,CAAC,CAAC;IACvC,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,wFAAwF;IACrG,YAAY,EAAE,EAAE,EAAE,4EAA4E;IAC9F,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,kBAAkB,IAAI,CAAC,CAAC;CAC5G,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -26,8 +26,8 @@ export type PageSortExclusionOptionName = "excludeRemovedComments" | "excludeDel
26
26
  export interface PageSortReplyEntry {
27
27
  comment: Pick<CommentIpfsType, "parentCid" | "postCid" | "depth" | "timestamp" | "content" | "title" | "link" | "author" | "communityPublicKey" | "communityName" | "nsfw" | "spoiler" | "flairs">;
28
28
  commentUpdate: Pick<CommentUpdateType, "cid" | "upvoteCount" | "downvoteCount" | "replyCount" | "childCount" | "updatedAt" | "lastReplyTimestamp" | "pinned" | "locked" | "removed" | "approved" | "nsfw" | "spoiler" | "flairs"> & {
29
- edit?: Pick<NonNullable<CommentUpdateType["edit"]>, "deleted">;
30
- pendingApproval?: boolean;
29
+ edit?: Pick<NonNullable<CommentUpdateType["edit"]>, "deleted"> | undefined;
30
+ pendingApproval?: boolean | undefined;
31
31
  };
32
32
  }
33
33
  export interface PageTypeJson extends Omit<PageIpfs, "comments"> {
@@ -85,8 +85,8 @@ export const CommentUpdateSchema = z
85
85
  cid: CidStringSchema, // cid of the comment, need it in signature to prevent attack
86
86
  upvoteCount: z.number().nonnegative().int(),
87
87
  downvoteCount: z.number().nonnegative().int(),
88
- replyCount: z.number().nonnegative().int(), // the total of reply trees underneath this comment, which includes direct and indirect children
89
- childCount: z.number().nonnegative().int().optional(), // the total of direct children of the comment, does not include indirect children
88
+ replyCount: z.number().nonnegative().int(), // the total of reply trees underneath this comment, which includes direct and indirect children; removed, deleted, disapproved and pending replies are not counted, the present replies under them are (docs/protocol/comment-lifecycle.md)
89
+ childCount: z.number().nonnegative().int().optional(), // the direct replies replyCount counts, does not include indirect replies
90
90
  number: z.number().int().positive().optional(),
91
91
  postNumber: z.number().int().positive().optional(),
92
92
  edit: CommentEditPubsubMessagePublicationWithFlexibleAuthorSchema.optional(), // most recent edit by comment author, commentUpdate.edit.content, commentUpdate.edit.deleted, commentUpdate.edit.flairs override Comment instance props. Validate commentUpdate.edit.signature
@@ -101,8 +101,8 @@ export const CommentUpdateSchema = z
101
101
  approved: z.boolean().optional(), // if comment was pending approval and it got approved or disapproved. Does not apply to comments pending approvals, you need to use moderation.pageCids.pendingApproval to fetch pending comments
102
102
  updatedAt: PKCTimestampSchema, // timestamp in seconds the CommentUpdate was updated
103
103
  author: AuthorWithCommentUpdateSchema.pick({ community: true }).optional(), // add commentUpdate.author.community to comment.author.community, override comment.author.flairs with commentUpdate.author.community.flairs if any
104
- lastChildCid: CidStringSchema.optional(), // The cid of the most recent direct child of the comment
105
- lastReplyTimestamp: PKCTimestampSchema.optional(), // The timestamp of the most recent direct or indirect child of the comment
104
+ lastChildCid: CidStringSchema.optional(), // The cid of the most recent direct reply that childCount counts
105
+ lastReplyTimestamp: PKCTimestampSchema.optional(), // The timestamp of the most recent reply that replyCount counts
106
106
  signature: JsonSignatureSchema, // signature of the CommentUpdate by the community owner to protect against malicious gateway
107
107
  protocolVersion: ProtocolVersionSchema,
108
108
  // The getter defers TypeScript inference of the comment-schema <-> pages-schema cycle; the
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/publications/comment/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,eAAe,EAC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ACjB,eAAe;IACf,OAAO;IACP,cAAc;IACd,4FAA4F;IAC5F,iGAAiG;IACjG,sDAAsD;IACtD,aAAa;CACP,CAAC;AAeX,MAAM,8BAA8B,GAAG,MAAM,CAAC;IAC1C,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAChC,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;IACrC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,GAAG,IAAI,CAAC,sCAAsC,CAAC,KAAK,CAAC;IACrD,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC;IACzC,GAAG,wDAAwD;IAC3D,GAAG,gCAAgC;IACnC,GAAG,4DAA4D;IAC/D,GAAG,+BAA+B;CACF,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,kCAAkC,GAAG,UAAU,CACxD,8BAA8B,EAC9B,IAAI,CAAC,qCAAqC,CAAC,KAAK,CAAoC,CACvF,CAAC;AAoBF,yHAAyH;AACzH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAC/C,kCAAkC,EAClC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAA8C,CAC7E,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,kCAAkC,EAAE;IACtF,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;IAClC,GAAG,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1C,iBAAiB;CACpB,CAAC,CAAC;AAEH,gCAAgC"}
@@ -240,6 +240,7 @@ export declare class DbHandler {
240
240
  private _calculateCommentUpdates;
241
241
  private _cidChunks;
242
242
  private _queryVoteCountsByCids;
243
+ private _replyWalkPresentExpression;
243
244
  private _queryReplyCountsByParentCids;
244
245
  private _queryLastReplyTimestampsByParentCids;
245
246
  private _queryLastChildCidsByParentCids;