@pkcprotocol/pkc-js 0.0.102 → 0.0.104

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 (140) hide show
  1. package/README.md +35 -8
  2. package/dist/browser/clients/base-client-manager.d.ts +1 -0
  3. package/dist/browser/clients/base-client-manager.js +72 -11
  4. package/dist/browser/clients/base-client-manager.js.map +1 -1
  5. package/dist/browser/community/community-client-manager.d.ts +3 -0
  6. package/dist/browser/community/community-client-manager.js +87 -14
  7. package/dist/browser/community/community-client-manager.js.map +1 -1
  8. package/dist/browser/community/remote-community.js +3 -0
  9. package/dist/browser/community/remote-community.js.map +1 -1
  10. package/dist/browser/community/schema.d.ts +4 -0
  11. package/dist/browser/community/schema.js +7 -1
  12. package/dist/browser/community/schema.js.map +1 -1
  13. package/dist/browser/constants.d.ts +3 -0
  14. package/dist/browser/constants.js +35 -0
  15. package/dist/browser/constants.js.map +1 -1
  16. package/dist/browser/errors.d.ts +5 -1
  17. package/dist/browser/errors.js +7 -1
  18. package/dist/browser/errors.js.map +1 -1
  19. package/dist/browser/generated-version.d.ts +1 -1
  20. package/dist/browser/generated-version.js +1 -1
  21. package/dist/browser/index-with-compile-cache.d.ts +2 -0
  22. package/dist/browser/index.d.ts +2 -0
  23. package/dist/browser/pkc/pkc.d.ts +4 -0
  24. package/dist/browser/pkc/pkc.js +30 -1
  25. package/dist/browser/pkc/pkc.js.map +1 -1
  26. package/dist/browser/pkc-error.d.ts +1 -1
  27. package/dist/browser/publications/comment/comment-client-manager.js +11 -0
  28. package/dist/browser/publications/comment/comment-client-manager.js.map +1 -1
  29. package/dist/browser/publications/comment/comment.js +8 -6
  30. package/dist/browser/publications/comment/comment.js.map +1 -1
  31. package/dist/browser/publications/comment/crosspost-runtime.js +3 -2
  32. package/dist/browser/publications/comment/crosspost-runtime.js.map +1 -1
  33. package/dist/browser/rpc/src/index.js +6 -0
  34. package/dist/browser/rpc/src/index.js.map +1 -1
  35. package/dist/browser/rpc/src/lib/pkc-js/index.d.ts +1 -0
  36. package/dist/browser/rpc/src/schema.d.ts +6 -0
  37. package/dist/browser/runtime/node/community/challenges/exclude/exclude.d.ts +11 -1
  38. package/dist/browser/runtime/node/community/challenges/exclude/exclude.js +32 -21
  39. package/dist/browser/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
  40. package/dist/browser/runtime/node/community/challenges/index.d.ts +10 -3
  41. package/dist/browser/runtime/node/community/challenges/index.js +82 -16
  42. package/dist/browser/runtime/node/community/challenges/index.js.map +1 -1
  43. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +7 -4
  44. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
  45. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +13 -5
  46. package/dist/browser/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
  47. package/dist/browser/runtime/node/community/local-community/author-identity.d.ts +37 -2
  48. package/dist/browser/runtime/node/community/local-community/author-identity.js +73 -13
  49. package/dist/browser/runtime/node/community/local-community/author-identity.js.map +1 -1
  50. package/dist/browser/runtime/node/community/local-community/challenges.d.ts +16 -2
  51. package/dist/browser/runtime/node/community/local-community/challenges.js +40 -9
  52. package/dist/browser/runtime/node/community/local-community/challenges.js.map +1 -1
  53. package/dist/browser/runtime/node/community/local-community/editing.js +7 -2
  54. package/dist/browser/runtime/node/community/local-community/editing.js.map +1 -1
  55. package/dist/browser/runtime/node/community/local-community/publication-store.d.ts +13 -2
  56. package/dist/browser/runtime/node/community/local-community/publication-store.js +29 -7
  57. package/dist/browser/runtime/node/community/local-community/publication-store.js.map +1 -1
  58. package/dist/browser/runtime/node/community/local-community/publication-validation.d.ts +13 -3
  59. package/dist/browser/runtime/node/community/local-community/publication-validation.js +63 -28
  60. package/dist/browser/runtime/node/community/local-community/publication-validation.js.map +1 -1
  61. package/dist/browser/runtime/node/community/local-community.d.ts +2 -2
  62. package/dist/browser/runtime/node/community/local-community.js +6 -4
  63. package/dist/browser/runtime/node/community/local-community.js.map +1 -1
  64. package/dist/browser/schema.d.ts +8 -0
  65. package/dist/browser/types.d.ts +1 -0
  66. package/dist/bundled/bundle-manifest.json +26 -26
  67. package/dist/bundled/chunks/{helia-for-pkc-ZbhRl9a-.js → helia-for-pkc-CQM2gwO-.js} +2 -2
  68. package/dist/bundled/chunks/{local-community-Cu95rtju.js → local-community-CaK2PibY.js} +1 -1
  69. package/dist/bundled/chunks/{local-community-L-1IkV1x.js → local-community-Cad8EnIh.js} +160 -61
  70. package/dist/bundled/chunks/{node-DaN6R9HB.js → node-C6LbmJAq.js} +19 -8
  71. package/dist/bundled/chunks/{rpc-local-community-aV790d8_.js → rpc-local-community-Dciiw7xH.js} +275 -103
  72. package/dist/bundled/chunks/{schema-gif6qroG.js → schema-CRAfzWYa.js} +8 -3
  73. package/dist/bundled/chunks/{util-BsJoElMm.js → util-BWhDfSw9.js} +1 -1
  74. package/dist/bundled/index.js +1 -1
  75. package/dist/bundled/rpc/src/index.js +9 -4
  76. package/dist/node/clients/base-client-manager.d.ts +1 -0
  77. package/dist/node/clients/base-client-manager.js +72 -11
  78. package/dist/node/clients/base-client-manager.js.map +1 -1
  79. package/dist/node/community/community-client-manager.d.ts +3 -0
  80. package/dist/node/community/community-client-manager.js +87 -14
  81. package/dist/node/community/community-client-manager.js.map +1 -1
  82. package/dist/node/community/remote-community.js +3 -0
  83. package/dist/node/community/remote-community.js.map +1 -1
  84. package/dist/node/community/schema.d.ts +4 -0
  85. package/dist/node/community/schema.js +7 -1
  86. package/dist/node/community/schema.js.map +1 -1
  87. package/dist/node/constants.d.ts +3 -0
  88. package/dist/node/constants.js +35 -0
  89. package/dist/node/constants.js.map +1 -1
  90. package/dist/node/errors.d.ts +5 -1
  91. package/dist/node/errors.js +7 -1
  92. package/dist/node/errors.js.map +1 -1
  93. package/dist/node/generated-version.d.ts +1 -1
  94. package/dist/node/generated-version.js +1 -1
  95. package/dist/node/index-with-compile-cache.d.ts +2 -0
  96. package/dist/node/index.d.ts +2 -0
  97. package/dist/node/pkc/pkc.d.ts +4 -0
  98. package/dist/node/pkc/pkc.js +30 -1
  99. package/dist/node/pkc/pkc.js.map +1 -1
  100. package/dist/node/pkc-error.d.ts +1 -1
  101. package/dist/node/publications/comment/comment-client-manager.js +11 -0
  102. package/dist/node/publications/comment/comment-client-manager.js.map +1 -1
  103. package/dist/node/publications/comment/comment.js +8 -6
  104. package/dist/node/publications/comment/comment.js.map +1 -1
  105. package/dist/node/publications/comment/crosspost-runtime.js +3 -2
  106. package/dist/node/publications/comment/crosspost-runtime.js.map +1 -1
  107. package/dist/node/rpc/src/index.js +6 -0
  108. package/dist/node/rpc/src/index.js.map +1 -1
  109. package/dist/node/rpc/src/lib/pkc-js/index.d.ts +1 -0
  110. package/dist/node/rpc/src/schema.d.ts +6 -0
  111. package/dist/node/runtime/node/community/challenges/exclude/exclude.d.ts +11 -1
  112. package/dist/node/runtime/node/community/challenges/exclude/exclude.js +32 -21
  113. package/dist/node/runtime/node/community/challenges/exclude/exclude.js.map +1 -1
  114. package/dist/node/runtime/node/community/challenges/index.d.ts +10 -3
  115. package/dist/node/runtime/node/community/challenges/index.js +82 -16
  116. package/dist/node/runtime/node/community/challenges/index.js.map +1 -1
  117. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js +7 -4
  118. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/blacklist.js.map +1 -1
  119. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js +13 -5
  120. package/dist/node/runtime/node/community/challenges/pkc-js-challenges/whitelist.js.map +1 -1
  121. package/dist/node/runtime/node/community/local-community/author-identity.d.ts +37 -2
  122. package/dist/node/runtime/node/community/local-community/author-identity.js +73 -13
  123. package/dist/node/runtime/node/community/local-community/author-identity.js.map +1 -1
  124. package/dist/node/runtime/node/community/local-community/challenges.d.ts +16 -2
  125. package/dist/node/runtime/node/community/local-community/challenges.js +40 -9
  126. package/dist/node/runtime/node/community/local-community/challenges.js.map +1 -1
  127. package/dist/node/runtime/node/community/local-community/editing.js +7 -2
  128. package/dist/node/runtime/node/community/local-community/editing.js.map +1 -1
  129. package/dist/node/runtime/node/community/local-community/publication-store.d.ts +13 -2
  130. package/dist/node/runtime/node/community/local-community/publication-store.js +29 -7
  131. package/dist/node/runtime/node/community/local-community/publication-store.js.map +1 -1
  132. package/dist/node/runtime/node/community/local-community/publication-validation.d.ts +13 -3
  133. package/dist/node/runtime/node/community/local-community/publication-validation.js +63 -28
  134. package/dist/node/runtime/node/community/local-community/publication-validation.js.map +1 -1
  135. package/dist/node/runtime/node/community/local-community.d.ts +2 -2
  136. package/dist/node/runtime/node/community/local-community.js +6 -4
  137. package/dist/node/runtime/node/community/local-community.js.map +1 -1
  138. package/dist/node/schema.d.ts +8 -0
  139. package/dist/node/types.d.ts +1 -0
  140. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-2rV9d50f.js";
2
- import { A as doesDomainAddressHaveCapitalLetter, At as refreshTrackedCommentAliases, B as ipnsNameToIpnsOverPubsubTopic, Br as stringifyPrimitive, Bt as TimeoutError, Cn as CommentIpfsSchema, Cr as messages, D as createAbortError, Dr as setErrorMap, Dt as listStartedCommunities, Et as findUpdatingCommunity, H as isIpfsCid, Lt as untrackUpdatingComment, O as deepMergeRuntimeFields, On as CommentUpdateForChallengeVerificationSchema, Ot as listUpdatingComments, Pt as trackUpdatingComment, R as hideClassPrivateProps, Rr as joinValues, Sr as PKCError, Tt as findUpdatingComment, V as isAbortError, Vt as pTimeout, W as isIpns, _r as FailedToFetchCommentIpfsFromGatewaysError, _t as sleepUntilTimeoutOrAbort, a as ChallengeRequestMessageSchema, ar as t$1, b as areEquivalentCommunityAddresses, bt as timestamp, dt as resolveWhenPredicateIsTrue, fn as PubsubTopicSchema, gr as require_retry, gt as shortifyCid, ht as shortifyAddress, it as rejectWhenCommunityStopsOrAborts, jn as CommentUpdateSchema, kt as listUpdatingCommunities, lr as r, lt as removeUndefinedValuesRecursively, mn as isStringDomain, on as CommunityIpfsSchema, or as e, pt as retryKuboIpfsAdd, r as ChallengeMessageSchema, rr as n$1, rt as rejectWhenAbortSignalFires, s as ChallengeVerificationMessageSchema, sr as e$1, t as ChallengeAnswerMessageSchema, tn as CommunityAnchorSchema, tr as n$2, ut as replaceXWithY, wr as logger_default, wt as findStartedCommunity, xt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, y as version_default, yt as throwIfAbortSignalAborted, zr as parsedType, zt as require_sha256 } from "./schema-gif6qroG.js";
3
- import { $ as parseRawPages, $n as RpcSuccessResultSchema, $t as getPKCAddressFromPublicKeySync, An as parseRpcCommentUpdateEventWithPKCErrorIfItFails, At as verifyCommentEdit, Bn as RpcCommunityPageParamSchema, Bt as getAuthorNameFromRuntime, Cn as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, Dn as parseJsonWithPKCErrorIfFails, Dt as verifyChallengeMessage, En as parseDecryptedChallengeWithPKCErrorIfItFails, Fn as RpcAuthorNameParamSchema, Gn as RpcExportCommunityResultSchema, Gt as getCommunityNameFromWire, H as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, Hn as RpcExportCommunityModLogsParamSchema, Ht as normalizeCreatePublicationAuthor, In as RpcCancelExportParamSchema, It as verifyCommunityEdit, Jn as RpcPublishAnchorRecordParamSchema, Jt as decode, Kn as RpcFetchCidParamSchema, Kt as getCommunityPublicKeyFromWire, L as listCommunitiesSync, Ln as RpcCidParamSchema, Lt as verifyVote, Mt as verifyCommentModeration, Nn as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, Nt as verifyCommentPubsubMessage, O as createKuboRpcClient, On as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, P as getDefaultDataPath, Pn as RpcAnchorPublishPreparationResultSchema, Pt as verifyCommentUpdate, Qn as RpcSubscriptionIdResultSchema, R as monitorCommunitiesDirectory, Rn as RpcCommentRepliesPageParamSchema, Rt as buildRuntimeAuthor, S as encryptEd25519AesGcm, Sn as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Tn as parseDecryptedChallengeVerification, Tt as signVote, U as CommentClientsManager, Un as RpcExportCommunityModLogsResultSchema, Ut as buildRuntimeCommunityFields, V as setNativeFunctions$1, Vn as RpcEditCommunityParamSchema, Wn as RpcExportCommunityParamSchema, Wt as getCommunityAddressFromRecord, X as extractCommunityRuntimeFieldsFromParsedPages, Xn as RpcPublishedAnchorRecordResultSchema, Xt as getBufferedPKCAddressFromPublicKey, Yn as RpcPublishChallengeAnswersParamSchema, Z as findCommentInPageInstanceRecursively, Zn as RpcResolveAuthorNameResultSchema, _n as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, an as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, at as stripNameResolvedFromCrosspost, b as decryptEd25519AesGcm, bt as signCommentModeration, c as TrackedInstanceRegistry, cn as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, ct as InflightFetchManager, dt as PKCTypedEmitter, er as RpcUnsubscribeParamSchema, et as RepliesPages, f as KeyvBetterSqlite3, ft as require_lib$1, g as decodeRpcChallengeVerificationPubsubMsg, gn as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, gt as signChallengeRequest, h as decodeRpcChallengeRequestPubsubMsg, hn as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, hr as require_undici, jn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, jt as verifyCommentIpfs, kn as parseRpcCommentEventWithPKCErrorIfItFails, kt as verifyChallengeVerification, l as LRUCache, ln as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, lr as t$2, m as decodeRpcChallengePubsubMsg, mr as nativeFunctions$2, mt as signChallengeAnswer, n as RpcRemoteCommunity, nn as parseCidStringSchemaWithPKCErrorIfItFails, nt as cloneCrosspostForRuntime, o as pkcJsChallenges, on as parseCommentIpfsSchemaWithPKCErrorIfItFails, or as t$3, ot as PublicationClientsManager, p as decodeRpcChallengeAnswerPubsubMsg, pn as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, pt as cleanUpBeforePublishing, qn as RpcFetchCidResultSchema, qt as normalizeCommunityInputFromCommunity, rr as t$4, rt as collectCrosspostAuthorsToResolve, sr as n$3, st as PKCClientsManager, t as RpcLocalCommunity, tt as applyNameResolvedCacheToCrosspost, u as RemoteCommunity, un as parseCommunityAddressWithPKCErrorIfItFails, ur as t$5, v as createSigner, vn as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, vt as signComment, wn as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, wt as signCommunityEdit, xn as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, y as createAnchorIpnsRecord$1, yt as signCommentEdit, zn as RpcCommunityIdentifierParamSchema, zt as cleanWireAuthor } from "./rpc-local-community-aV790d8_.js";
4
- import { o as getHeliaDebugContext } from "./util-BsJoElMm.js";
2
+ import { A as doesDomainAddressHaveCapitalLetter, At as refreshTrackedCommentAliases, B as ipnsNameToIpnsOverPubsubTopic, Br as stringifyPrimitive, Bt as TimeoutError, Cn as CommentIpfsSchema, Cr as messages, D as createAbortError, Dr as setErrorMap, Dt as listStartedCommunities, Et as findUpdatingCommunity, H as isIpfsCid, Lt as untrackUpdatingComment, O as deepMergeRuntimeFields, On as CommentUpdateForChallengeVerificationSchema, Ot as listUpdatingComments, Pt as trackUpdatingComment, R as hideClassPrivateProps, Rr as joinValues, Sr as PKCError, Tt as findUpdatingComment, V as isAbortError, Vt as pTimeout, W as isIpns, _r as FailedToFetchCommentIpfsFromGatewaysError, _t as sleepUntilTimeoutOrAbort, a as ChallengeRequestMessageSchema, ar as t$1, b as areEquivalentCommunityAddresses, bt as timestamp, dt as resolveWhenPredicateIsTrue, fn as PubsubTopicSchema, gr as require_retry, gt as shortifyCid, ht as shortifyAddress, it as rejectWhenCommunityStopsOrAborts, jn as CommentUpdateSchema, kt as listUpdatingCommunities, lr as r, lt as removeUndefinedValuesRecursively, mn as isStringDomain, on as CommunityIpfsSchema, or as e, pt as retryKuboIpfsAdd, r as ChallengeMessageSchema, rr as n$1, rt as rejectWhenAbortSignalFires, s as ChallengeVerificationMessageSchema, sr as e$1, t as ChallengeAnswerMessageSchema, tn as CommunityAnchorSchema, tr as n$2, ut as replaceXWithY, wr as logger_default, wt as findStartedCommunity, xt as waitForUpdateInCommunityInstanceWithErrorAndTimeout, y as version_default, yt as throwIfAbortSignalAborted, zr as parsedType, zt as require_sha256 } from "./schema-CRAfzWYa.js";
3
+ import { $ as findCommentInPageInstanceRecursively, $n as RpcResolveAuthorNameResultSchema, A as createKuboRpcClient, An as parsePKCUserOptionsSchemaWithPKCErrorIfItFails, B as monitorCommunitiesDirectory, Bn as RpcCommentRepliesPageParamSchema, Bt as buildRuntimeAuthor, Cn as parseCreateRemoteCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, Dn as parseDecryptedChallengeVerification, Dt as signVote, En as parseDecryptedChallengeAnswerWithPKCErrorIfItFails, Et as signCommunityEdit, Fn as parseVotePubsubMessagePublicationSchemaWithPKCErrorIfItFails, Ft as verifyCommentPubsubMessage, G as CommentClientsManager, Gn as RpcExportCommunityModLogsResultSchema, Gt as buildRuntimeCommunityFields, Hn as RpcCommunityPageParamSchema, Ht as getAuthorNameFromRuntime, I as getDefaultDataPath, In as RpcAnchorPublishPreparationResultSchema, It as verifyCommentUpdate, Jn as RpcFetchCidParamSchema, Jt as getCommunityPublicKeyFromWire, Kn as RpcExportCommunityParamSchema, Kt as getCommunityAddressFromRecord, Ln as RpcAuthorNameParamSchema, Mn as parseRpcCommentUpdateEventWithPKCErrorIfItFails, Mt as verifyCommentEdit, Nn as parseSetNewSettingsPKCWsServerSchemaWithPKCErrorIfItFails, Nt as verifyCommentIpfs, On as parseDecryptedChallengeWithPKCErrorIfItFails, Pt as verifyCommentModeration, Q as extractCommunityRuntimeFieldsFromParsedPages, Qn as RpcPublishedAnchorRecordResultSchema, Qt as getBufferedPKCAddressFromPublicKey, Rn as RpcCancelExportParamSchema, Rt as verifyCommunityEdit, S as decryptEd25519AesGcm, St as signCommentModeration, Tn as parseCreateVoteOptionsSchemaWithPKCErrorIfItFails, U as setNativeFunctions$1, Un as RpcEditCommunityParamSchema, Vn as RpcCommunityIdentifierParamSchema, Vt as cleanWireAuthor, W as tryToDeleteCommunitiesThatFailedToBeDeletedBefore, Wn as RpcExportCommunityModLogsParamSchema, Wt as normalizeCreatePublicationAuthor, Xn as RpcPublishAnchorRecordParamSchema, Xt as decode, Yn as RpcFetchCidResultSchema, Yt as normalizeCommunityInputFromCommunity, Zn as RpcPublishChallengeAnswersParamSchema, _ as decodeRpcChallengeRequestPubsubMsg, _n as parseCreateCommentEditOptionsSchemaWithPKCErrorIfItFails, ar as t$4, at as collectCrosspostAuthorsToResolve, b as createSigner, bn as parseCreateCommunityEditPublicationOptionsSchemaWithPKCErrorIfItFails, br as require_undici, bt as signComment, cn as parseCommentIpfsSchemaWithPKCErrorIfItFails, cr as t$3, ct as PublicationClientsManager, d as LRUCache, dn as parseCommentPubsubMessagePublicationWithPKCErrorIfItFails, dr as t$2, er as RpcSubscriptionIdResultSchema, f as RemoteCommunity, fn as parseCommunityAddressWithPKCErrorIfItFails, fr as t$5, g as decodeRpcChallengePubsubMsg, gr as NAME_RESOLVE_FAILED_RETRY_FLOOR_MS, gt as signChallengeAnswer, h as decodeRpcChallengeAnswerPubsubMsg, hn as parseCommunityEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, hr as NAME_RESOLVED_TRUE_TTL_MS, ht as cleanUpBeforePublishing, in as parseCidStringSchemaWithPKCErrorIfItFails, it as cloneCrosspostForRuntime, jn as parseRpcCommentEventWithPKCErrorIfItFails, jt as verifyChallengeVerification, kn as parseJsonWithPKCErrorIfFails, kt as verifyChallengeMessage, lr as n$3, lt as PKCClientsManager, m as KeyvBetterSqlite3, mr as NAME_RESOLVED_FALSE_TTL_MS, mt as require_lib$1, n as RpcRemoteCommunity, nr as RpcUnsubscribeParamSchema, nt as RepliesPages, o as pkcJsChallenges, pt as PKCTypedEmitter, qn as RpcExportCommunityResultSchema, qt as getCommunityNameFromWire, rt as applyNameResolvedCacheToCrosspost, sn as parseCommentEditPubsubMessagePublicationSchemaWithPKCErrorIfItFails, st as stripNameResolvedFromCrosspost, t as RpcLocalCommunity, tn as getPKCAddressFromPublicKeySync, tr as RpcSuccessResultSchema, tt as parseRawPages, u as TrackedInstanceRegistry, un as parseCommentModerationPubsubMessagePublicationSchemaWithPKCErrorIfItFails, ut as InflightFetchManager, v as decodeRpcChallengeVerificationPubsubMsg, vn as parseCreateCommentModerationOptionsSchemaWithPKCErrorIfItFails, vt as signChallengeRequest, w as encryptEd25519AesGcm, wn as parseCreateRpcCommunityFunctionArgumentSchemaWithPKCErrorIfItFails, x as createAnchorIpnsRecord$1, xt as signCommentEdit, yn as parseCreateCommentOptionsSchemaWithPKCErrorIfItFails, yr as nativeFunctions$2, z as listCommunitiesSync, zn as RpcCidParamSchema, zt as verifyVote } from "./rpc-local-community-Dciiw7xH.js";
4
+ import { o as getHeliaDebugContext } from "./util-BWhDfSw9.js";
5
5
  import path from "path";
6
6
  import assert from "assert";
7
7
  import fs from "fs";
@@ -1249,7 +1249,7 @@ var Comment = class extends Publication {
1249
1249
  _resolveAuthorNamesInBackground() {
1250
1250
  if (!this._pkc.resolveAuthorNames) return;
1251
1251
  const domain = getAuthorNameFromRuntime(this.author);
1252
- const ownAuthor = domain && typeof this.author.nameResolved !== "boolean" ? [{
1252
+ const ownAuthor = domain ? [{
1253
1253
  authorName: domain,
1254
1254
  signaturePublicKey: this.signature.publicKey
1255
1255
  }] : [];
@@ -1258,7 +1258,7 @@ var Comment = class extends Publication {
1258
1258
  if (!page) continue;
1259
1259
  for (const comment of page.comments) {
1260
1260
  const commentDomain = getAuthorNameFromRuntime(comment.author);
1261
- if (commentDomain && typeof comment.author.nameResolved !== "boolean") replyAuthors.push({
1261
+ if (commentDomain) replyAuthors.push({
1262
1262
  authorName: commentDomain,
1263
1263
  signaturePublicKey: comment.signature.publicKey
1264
1264
  });
@@ -6937,6 +6937,10 @@ var PKC$1 = class extends PKCTypedEmitter {
6937
6937
  this._publishingPublications = /* @__PURE__ */ new Set();
6938
6938
  this.destroyed = false;
6939
6939
  this._storageLRUs = {};
6940
+ this._nameResolvedFalseTtlMs = NAME_RESOLVED_FALSE_TTL_MS;
6941
+ this._nameResolvedTrueTtlMs = NAME_RESOLVED_TRUE_TTL_MS;
6942
+ this._nameResolveFailedRetryFloorMs = NAME_RESOLVE_FAILED_RETRY_FLOOR_MS;
6943
+ this._authorNameResolvesInFlight = /* @__PURE__ */ new Set();
6940
6944
  this._timeouts = {
6941
6945
  "community-ipns": 300 * 1e3,
6942
6946
  "community-ipfs": 60 * 1e3,
@@ -7016,7 +7020,14 @@ var PKC$1 = class extends PKCTypedEmitter {
7016
7020
  }),
7017
7021
  pageCidToSortTypes: new LRUCache({ max: 5e3 }),
7018
7022
  pagesMaxSize: new LRUCache({ max: 5e4 }),
7019
- nameResolvedCache: new LRUCache({ max: 5e3 })
7023
+ nameResolvedCache: new LRUCache({
7024
+ max: 5e3,
7025
+ ttl: NAME_RESOLVED_TRUE_TTL_MS
7026
+ }),
7027
+ nameResolveFailedCache: new LRUCache({
7028
+ max: 5e3,
7029
+ ttl: NAME_RESOLVE_FAILED_RETRY_FLOOR_MS
7030
+ })
7020
7031
  };
7021
7032
  }
7022
7033
  async _initKuboRpcClientsIfNeeded() {
@@ -7054,7 +7065,7 @@ var PKC$1 = class extends PKCTypedEmitter {
7054
7065
  this.clients.libp2pJsClients = {};
7055
7066
  if (!this.libp2pJsClientsOptions) return;
7056
7067
  if (!this.httpRoutersOptions) throw Error("httpRoutersOptions is required for libp2pJsClient");
7057
- const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-ZbhRl9a-.js");
7068
+ const { createLibp2pJsClientOrUseExistingOne } = await import("./helia-for-pkc-CQM2gwO-.js");
7058
7069
  for (const clientOptions of this.libp2pJsClientsOptions) {
7059
7070
  const heliaNode = await createLibp2pJsClientOrUseExistingOne({
7060
7071
  ...clientOptions,
@@ -7333,7 +7344,7 @@ var PKC$1 = class extends PKCTypedEmitter {
7333
7344
  const log = logger_default("pkc-js:pkc:createLocalCommunity");
7334
7345
  log.trace("Received community options to create a local community instance:", options);
7335
7346
  if (!this._canCreateNewLocalCommunity()) throw new PKCError("ERR_CAN_NOT_CREATE_A_LOCAL_COMMUNITY", { pkcOptions: this._userPKCOptions });
7336
- const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-Cu95rtju.js");
7347
+ const { LocalCommunity, createNewLocalCommunityDb, updateInstancePropsWithStartedCommunityOrDb } = await import("./local-community-CaK2PibY.js");
7337
7348
  const isLocalCommunity = (await listCommunitiesSync(this)).includes(options.address);
7338
7349
  const community = new LocalCommunity(this);
7339
7350
  if (isLocalCommunity) {