@happyvertical/smrt-cli 0.51.35 → 0.51.36

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 (30) hide show
  1. package/dist/{ApiKey-BZmbOTnL-CVc-W1iw.js → ApiKey-BZmbOTnL-DFaDP-b6.js} +2 -2
  2. package/dist/ApiKeyCollection-Bfb_nw81-BeRRfRAm.js +2 -0
  3. package/dist/AuditLogCollection-B1YonCAP-CMG7sWXy.js +2 -0
  4. package/dist/{NostrIdentity-n70E0vck-DzdWal46.js → NostrIdentity-n70E0vck-DrsBsVdM.js} +3 -3
  5. package/dist/NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js +2 -0
  6. package/dist/{OidcIdentity-K8V4u0CR-Q2Y-eBk7.js → OidcIdentity-K8V4u0CR-B83oeGgc.js} +2 -2
  7. package/dist/OidcIdentityCollection-gnrLoF08-DZmUZJ7n.js +2 -0
  8. package/dist/ProfileAssetCollection-CmbeSgDi-CZd7FlZc.js +2 -0
  9. package/dist/{ProfileCollection-DTT4KNpQ-CuNU_rYT.js → ProfileCollection-DTT4KNpQ-W-i9HYqJ.js} +25 -25
  10. package/dist/{ProfileMetadataCollection-DxX_BJKV-BOFBzqhP.js → ProfileMetadataCollection-DxX_BJKV-B-MXK4EO.js} +1 -1
  11. package/dist/{ProfileMetafieldCollection-CMKhVi2I-aA6_Wt6b.js → ProfileMetafieldCollection-CMKhVi2I-DwSc-ddy.js} +1 -1
  12. package/dist/{ProfileRelationshipCollection-DUVgaIqf-DXS9BmG0.js → ProfileRelationshipCollection-DUVgaIqf-BRYWVgMq.js} +1 -1
  13. package/dist/{ProfileRelationshipTermCollection-DtA9OM23-D2fMCc6T.js → ProfileRelationshipTermCollection-DtA9OM23--nhvlG-p.js} +1 -1
  14. package/dist/{ProfileRelationshipType-BRiRka6t-DZp8Go3h.js → ProfileRelationshipType-BRiRka6t-DV02FHol.js} +1 -1
  15. package/dist/{ProfileRelationshipTypeCollection-BdXwd7Kf-Bmni6nSz.js → ProfileRelationshipTypeCollection-BdXwd7Kf-CBnBn5ZM.js} +1 -1
  16. package/dist/{commands-CHdjS3FI.js → commands-BJDXUk2q.js} +2 -2
  17. package/dist/{dist-Bn1IyGne.js → dist-BgeWeEDz.js} +25 -25
  18. package/dist/{dist-CkH3UZLK.js → dist-CLQM99qd.js} +3 -3
  19. package/dist/{dist-BBBb5F35.js → dist-DIYJ3dBa.js} +4 -4
  20. package/dist/{dist-HGWbnZDg.js → dist-lDUkSpZb.js} +2 -2
  21. package/dist/index.js +9 -9
  22. package/dist/{oidcProvisioningPrimitives-0-3n3D6f-BHWYUybH.js → oidcProvisioningPrimitives-0-3n3D6f-CA27GRJ8.js} +4 -4
  23. package/dist/resolveIdentity-BrJDCjYi-2Md9cPRe.js +2 -0
  24. package/package.json +14 -14
  25. package/dist/ApiKeyCollection-Bfb_nw81-B1mHnR_0.js +0 -2
  26. package/dist/AuditLogCollection-B1YonCAP-7uoTlchu.js +0 -2
  27. package/dist/NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js +0 -2
  28. package/dist/OidcIdentityCollection-gnrLoF08-CoxIY2Tp.js +0 -2
  29. package/dist/ProfileAssetCollection-CmbeSgDi-D9xqhqIY.js +0 -2
  30. package/dist/resolveIdentity-BrJDCjYi-D9fYHNDk.js +0 -2
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DzdWal46.js";
2
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DrsBsVdM.js";
3
3
  import { SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
4
4
  import { createHash, randomBytes } from "node:crypto";
5
5
  //#region ../profiles/dist/chunks/ApiKey-BZmbOTnL.js
@@ -127,7 +127,7 @@ var ApiKey = class extends SmrtObject {
127
127
  */
128
128
  static async verify(key, options = {}) {
129
129
  const keyHash = ApiKey.hashKey(key);
130
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-B1mHnR_0.js").then((n) => n.n);
130
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-BeRRfRAm.js").then((n) => n.n);
131
131
  const apiKey = await (await ApiKeyCollection.create(options)).findOne({ where: { keyHash } });
132
132
  if (!apiKey) return null;
133
133
  if (!apiKey.isValid()) return null;
@@ -0,0 +1,2 @@
1
+ import { j as ApiKeyCollection_exports } from "./dist-BgeWeEDz.js";
2
+ export { ApiKeyCollection_exports as n };
@@ -0,0 +1,2 @@
1
+ import { k as AuditLogCollection_exports } from "./dist-BgeWeEDz.js";
2
+ export { AuditLogCollection_exports as n };
@@ -4097,21 +4097,21 @@ var NostrIdentity = class extends SmrtObject {
4097
4097
  * Find identity by public key
4098
4098
  */
4099
4099
  static async findByPubkey(pubkey, options = {}) {
4100
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js").then((n) => n.n);
4100
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js").then((n) => n.n);
4101
4101
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { pubkey } });
4102
4102
  }
4103
4103
  /**
4104
4104
  * Find identity by email
4105
4105
  */
4106
4106
  static async findByEmail(email, options = {}) {
4107
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js").then((n) => n.n);
4107
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js").then((n) => n.n);
4108
4108
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { email: email.toLowerCase() } });
4109
4109
  }
4110
4110
  /**
4111
4111
  * Find identity by NIP-05 username
4112
4112
  */
4113
4113
  static async findByNip05(username, options = {}) {
4114
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js").then((n) => n.n);
4114
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js").then((n) => n.n);
4115
4115
  return await (await NostrIdentityCollection.create(options)).findOne({ where: { nip05Username: username.toLowerCase() } });
4116
4116
  }
4117
4117
  /**
@@ -0,0 +1,2 @@
1
+ import { E as NostrIdentityCollection_exports } from "./dist-BgeWeEDz.js";
2
+ export { NostrIdentityCollection_exports as n };
@@ -35,7 +35,7 @@ var OidcIdentity = class extends SmrtObject {
35
35
  * Find identity by issuer and subject
36
36
  */
37
37
  static async findBySubject(issuer, subject, options = {}) {
38
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CoxIY2Tp.js").then((n) => n.r);
38
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-DZmUZJ7n.js").then((n) => n.r);
39
39
  return await (await OidcIdentityCollection.create(options)).findBySubject(issuer, subject);
40
40
  }
41
41
  /** Build the collision-free natural key for one OIDC issuer subject. */
@@ -58,7 +58,7 @@ var OidcIdentity = class extends SmrtObject {
58
58
  static async findOrCreate(profile, oidcData, options = {}) {
59
59
  const profileId = profile.id;
60
60
  if (typeof profileId !== "string" || !profileId) throw new Error("OidcIdentity.findOrCreate() requires a saved Profile.");
61
- const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-BrJDCjYi-D9fYHNDk.js").then((n) => n.i);
61
+ const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-BrJDCjYi-2Md9cPRe.js").then((n) => n.i);
62
62
  const profileOptions = profile.options ?? {};
63
63
  return (await reuseExistingOidcIdentityForProfile(profileId, {
64
64
  email: oidcData.email,
@@ -0,0 +1,2 @@
1
+ import { w as OidcIdentityCollection_exports } from "./dist-BgeWeEDz.js";
2
+ export { OidcIdentityCollection_exports as r };
@@ -0,0 +1,2 @@
1
+ import { x as ProfileAssetCollection_exports } from "./dist-BgeWeEDz.js";
2
+ export { ProfileAssetCollection_exports as n };
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { a as queryGlobal, c as withSystemContext, i as tenantId, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, t as definePrompt } from "./dist-HGWbnZDg.js";
3
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DzdWal46.js";
4
- import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-CkH3UZLK.js";
2
+ import { a as queryGlobal, c as withSystemContext, i as tenantId, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, t as definePrompt } from "./dist-lDUkSpZb.js";
3
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DrsBsVdM.js";
4
+ import { a as removeOwnedAssetFromCollection, i as getOwnedAssetsFromCollection, n as assertValidOwnedAssetRelationship, o as resolveOwnedAssetsById, r as assertValidOwnedAssetSortOrder, t as addOwnedAssetFromCollection } from "./dist-CLQM99qd.js";
5
5
  import { RuntimeError, SmrtCollection, SmrtObject, ValidationError, field, foreignKey, isAbortedTransactionError, oneToMany, smrt } from "@happyvertical/smrt-core";
6
6
  import { BackfillTableUnavailableError, BackfillTracker } from "@happyvertical/smrt-core/migrations";
7
7
  //#region ../profiles/dist/chunks/ProfileCollection-DTT4KNpQ.js
@@ -428,8 +428,8 @@ var Profile = class extends SmrtObject {
428
428
  * @param value - The value to set
429
429
  */
430
430
  async addMetadata(metafieldSlug, value) {
431
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-aA6_Wt6b.js").then((n) => n.n);
432
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-BOFBzqhP.js").then((n) => n.n);
431
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-DwSc-ddy.js").then((n) => n.n);
432
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B-MXK4EO.js").then((n) => n.n);
433
433
  const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
434
434
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
435
435
  await metafield.validateValue(value);
@@ -460,7 +460,7 @@ var Profile = class extends SmrtObject {
460
460
  * @returns Object with metafield slugs as keys
461
461
  */
462
462
  async getMetadata() {
463
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-BOFBzqhP.js").then((n) => n.n);
463
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B-MXK4EO.js").then((n) => n.n);
464
464
  return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
465
465
  }
466
466
  /**
@@ -477,8 +477,8 @@ var Profile = class extends SmrtObject {
477
477
  * @param metafieldSlug - The slug of the metafield to remove
478
478
  */
479
479
  async removeMetadata(metafieldSlug) {
480
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-aA6_Wt6b.js").then((n) => n.n);
481
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-BOFBzqhP.js").then((n) => n.n);
480
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CMKhVi2I-DwSc-ddy.js").then((n) => n.n);
481
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DxX_BJKV-B-MXK4EO.js").then((n) => n.n);
482
482
  const metafield = await (await ProfileMetafieldCollection.create(this.options)).getBySlug(metafieldSlug);
483
483
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
484
484
  const existing = await (await ProfileMetadataCollection.create(this.options)).list({
@@ -491,7 +491,7 @@ var Profile = class extends SmrtObject {
491
491
  if (existing.length > 0) await existing[0].delete();
492
492
  }
493
493
  async getProfileAssetCollection() {
494
- const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-D9xqhqIY.js").then((n) => n.n);
494
+ const { ProfileAssetCollection } = await import("./ProfileAssetCollection-CmbeSgDi-CZd7FlZc.js").then((n) => n.n);
495
495
  return ProfileAssetCollection.create({ db: this.db });
496
496
  }
497
497
  async getAssets(relationship) {
@@ -521,9 +521,9 @@ var Profile = class extends SmrtObject {
521
521
  * @param contextProfile - Optional context profile for tertiary relationships
522
522
  */
523
523
  async addRelationship(toProfile, relationshipSlug, contextProfile) {
524
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Bmni6nSz.js").then((n) => n.n);
525
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DXS9BmG0.js").then((n) => n.n);
526
- const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-DZp8Go3h.js").then((n) => n.n).then((n) => n.n);
524
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-CBnBn5ZM.js").then((n) => n.n);
525
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BRYWVgMq.js").then((n) => n.n);
526
+ const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-DV02FHol.js").then((n) => n.n).then((n) => n.n);
527
527
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
528
528
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
529
529
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
@@ -547,8 +547,8 @@ var Profile = class extends SmrtObject {
547
547
  * @returns Array of ProfileRelationship instances
548
548
  */
549
549
  async getRelationships(options) {
550
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DXS9BmG0.js").then((n) => n.n);
551
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Bmni6nSz.js").then((n) => n.n);
550
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BRYWVgMq.js").then((n) => n.n);
551
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-CBnBn5ZM.js").then((n) => n.n);
552
552
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
553
553
  const direction = options?.direction || "all";
554
554
  let typeId;
@@ -591,8 +591,8 @@ var Profile = class extends SmrtObject {
591
591
  * @param relationshipSlug - The type of relationship to remove
592
592
  */
593
593
  async removeRelationship(toProfile, relationshipSlug) {
594
- const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-Bmni6nSz.js").then((n) => n.n);
595
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DXS9BmG0.js").then((n) => n.n);
594
+ const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-CBnBn5ZM.js").then((n) => n.n);
595
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-BRYWVgMq.js").then((n) => n.n);
596
596
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
597
597
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
598
598
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
@@ -685,7 +685,7 @@ var Profile = class extends SmrtObject {
685
685
  * @returns Array of API keys
686
686
  */
687
687
  async getApiKeys() {
688
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-B1mHnR_0.js").then((n) => n.n);
688
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-BeRRfRAm.js").then((n) => n.n);
689
689
  return await (await ApiKeyCollection.create(this.options)).findByProfile(this.id);
690
690
  }
691
691
  /**
@@ -694,7 +694,7 @@ var Profile = class extends SmrtObject {
694
694
  * @returns Array of active API keys
695
695
  */
696
696
  async getActiveApiKeys() {
697
- const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-B1mHnR_0.js").then((n) => n.n);
697
+ const { ApiKeyCollection } = await import("./ApiKeyCollection-Bfb_nw81-BeRRfRAm.js").then((n) => n.n);
698
698
  return await (await ApiKeyCollection.create(this.options)).findActiveByProfile(this.id);
699
699
  }
700
700
  /**
@@ -704,7 +704,7 @@ var Profile = class extends SmrtObject {
704
704
  * @returns The generated key (plaintext) and ApiKey record
705
705
  */
706
706
  async generateApiKey(options) {
707
- const { ApiKey } = await import("./ApiKey-BZmbOTnL-CVc-W1iw.js").then((n) => n.n).then((n) => n.n);
707
+ const { ApiKey } = await import("./ApiKey-BZmbOTnL-DFaDP-b6.js").then((n) => n.n).then((n) => n.n);
708
708
  return await ApiKey.generate(this, {
709
709
  ...options,
710
710
  db: this.options?.db
@@ -716,7 +716,7 @@ var Profile = class extends SmrtObject {
716
716
  * @returns Array of OIDC identity records
717
717
  */
718
718
  async getOidcIdentities() {
719
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CoxIY2Tp.js").then((n) => n.r);
719
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-DZmUZJ7n.js").then((n) => n.r);
720
720
  return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
721
721
  }
722
722
  /**
@@ -729,7 +729,7 @@ var Profile = class extends SmrtObject {
729
729
  * type, but refuses to create or rebind authority.
730
730
  */
731
731
  async linkOidcIdentity(oidcData) {
732
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-CoxIY2Tp.js").then((n) => n.r);
732
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-gnrLoF08-DZmUZJ7n.js").then((n) => n.r);
733
733
  return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
734
734
  }
735
735
  /**
@@ -738,7 +738,7 @@ var Profile = class extends SmrtObject {
738
738
  * @returns Array of Nostr identity records
739
739
  */
740
740
  async getNostrIdentities() {
741
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js").then((n) => n.n);
741
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js").then((n) => n.n);
742
742
  return await (await NostrIdentityCollection.create(this.options)).findByProfile(this.id);
743
743
  }
744
744
  /**
@@ -748,7 +748,7 @@ var Profile = class extends SmrtObject {
748
748
  * @returns The linked Nostr identity record
749
749
  */
750
750
  async linkNostrIdentity(nostrData) {
751
- const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BVRXYY9N.js").then((n) => n.n);
751
+ const { NostrIdentityCollection } = await import("./NostrIdentityCollection-Ca74dkaL-BU7MAvyP.js").then((n) => n.n);
752
752
  return await (await NostrIdentityCollection.create(this.options)).linkToProfile(this, nostrData);
753
753
  }
754
754
  /**
@@ -758,7 +758,7 @@ var Profile = class extends SmrtObject {
758
758
  * @returns Array of audit log entries
759
759
  */
760
760
  async getAuditLogs(limit = 50) {
761
- const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-7uoTlchu.js").then((n) => n.n);
761
+ const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CMG7sWXy.js").then((n) => n.n);
762
762
  return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
763
763
  }
764
764
  /**
@@ -768,7 +768,7 @@ var Profile = class extends SmrtObject {
768
768
  * @returns The created audit log entry
769
769
  */
770
770
  async recordAction(options) {
771
- const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-7uoTlchu.js").then((n) => n.n);
771
+ const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CMG7sWXy.js").then((n) => n.n);
772
772
  return await (await AuditLogCollection.create(this.options)).record({
773
773
  profile: this,
774
774
  ...options
@@ -1,2 +1,2 @@
1
- import { v as ProfileMetadataCollection_exports } from "./dist-Bn1IyGne.js";
1
+ import { v as ProfileMetadataCollection_exports } from "./dist-BgeWeEDz.js";
2
2
  export { ProfileMetadataCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { h as ProfileMetafieldCollection_exports } from "./dist-Bn1IyGne.js";
1
+ import { h as ProfileMetafieldCollection_exports } from "./dist-BgeWeEDz.js";
2
2
  export { ProfileMetafieldCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { f as ProfileRelationshipCollection_exports } from "./dist-Bn1IyGne.js";
1
+ import { f as ProfileRelationshipCollection_exports } from "./dist-BgeWeEDz.js";
2
2
  export { ProfileRelationshipCollection_exports as n };
@@ -1,2 +1,2 @@
1
- import { l as ProfileRelationshipTermCollection_exports } from "./dist-Bn1IyGne.js";
1
+ import { l as ProfileRelationshipTermCollection_exports } from "./dist-BgeWeEDz.js";
2
2
  export { ProfileRelationshipTermCollection_exports as n };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DzdWal46.js";
2
+ import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-DrsBsVdM.js";
3
3
  import { SmrtObject, field, smrt } from "@happyvertical/smrt-core";
4
4
  //#region ../profiles/dist/chunks/ProfileRelationshipType-BRiRka6t.js
5
5
  var ProfileRelationshipType_BRiRka6t_exports = /* @__PURE__ */ __exportAll({
@@ -1,2 +1,2 @@
1
- import { o as ProfileRelationshipTypeCollection_exports } from "./dist-Bn1IyGne.js";
1
+ import { o as ProfileRelationshipTypeCollection_exports } from "./dist-BgeWeEDz.js";
2
2
  export { ProfileRelationshipTypeCollection_exports as n };
@@ -6948,7 +6948,7 @@ var dbMaterializeTenantHierarchyCommand = {
6948
6948
  if (!config.database?.url || config.database.url === ":memory:") throw new Error("Database configuration required for db:materialize-tenant-hierarchy. Configure database.url in smrt.config.ts (or DATABASE_URL).");
6949
6949
  const dbType = config.database.type || "sqlite";
6950
6950
  const { getDatabase } = await import("@happyvertical/sql");
6951
- const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-Bn1IyGne.js");
6951
+ const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-BgeWeEDz.js");
6952
6952
  db = await getDatabase({
6953
6953
  type: dbType,
6954
6954
  url: config.database.url
@@ -7157,7 +7157,7 @@ var dbMigrateLedgerAccountsCommand = {
7157
7157
  if (dbType !== "postgres") throw new Error("db:migrate-ledger-accounts currently supports PostgreSQL only; no changes were made. See the smrt-ledgers README for SQLite.");
7158
7158
  await autoDiscoverAndLoad();
7159
7159
  const { getDatabase } = await import("@happyvertical/sql");
7160
- const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-BBBb5F35.js");
7160
+ const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-DIYJ3dBa.js");
7161
7161
  db = await getDatabase({
7162
7162
  type: dbType,
7163
7163
  url: config.database.url