@happyvertical/smrt-cli 0.57.31 → 0.57.33

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 (26) hide show
  1. package/dist/{AuditLogCollection-BBbvr8Qc-CS-pwR93.js → AuditLogCollection-BBbvr8Qc-C7vaibgn.js} +1 -1
  2. package/dist/{OidcIdentity-MVVO3MfG-CW0gRjHH.js → OidcIdentity-MVVO3MfG-CDHPYDKP.js} +2 -2
  3. package/dist/{OidcIdentityCollection-s4mp3n62-DTnGCBp_.js → OidcIdentityCollection-s4mp3n62-ClPe-MxG.js} +1 -1
  4. package/dist/{PasswordCredentialService-DA2Y6H2X-C1wDQMMz.js → PasswordCredentialService-DA2Y6H2X-BkTtZgep.js} +14 -14
  5. package/dist/{ProfileAssetCollection-BuVAdOiv-Cd9LYnjq.js → ProfileAssetCollection-BuVAdOiv-CKDGq0OO.js} +3 -3
  6. package/dist/{ProfileCollection-CMS9dFc0-ou6DCuSN.js → ProfileCollection-CMS9dFc0-B0_kJJIG.js} +17 -17
  7. package/dist/{ProfileLinkCollection-ChK9iEBp-DsyUTF9k.js → ProfileLinkCollection-ChK9iEBp-Beu_n0ym.js} +2 -2
  8. package/dist/{ProfileMetadataCollection-CAgJyjze-D-MPBgxA.js → ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js} +1 -1
  9. package/dist/{ProfileMetafieldCollection-19ae6Lpf-CHnbYx6c.js → ProfileMetafieldCollection-19ae6Lpf-DZnRqyHn.js} +1 -1
  10. package/dist/{ProfileRelationshipCollection-BFSlTQ7J-DAkdWzku.js → ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js} +1 -1
  11. package/dist/{ProfileTypeCollection-B7m698Bl-DxyyJbnp.js → ProfileTypeCollection-B7m698Bl-CKUBK94F.js} +2 -2
  12. package/dist/commands/json-validator.d.ts.map +1 -1
  13. package/dist/{commands-CGjKkRkb.js → commands-CBfRFp3s.js} +17 -8
  14. package/dist/discovery/manifest-discovery.d.ts.map +1 -1
  15. package/dist/{dist-BlRecRqP.js → dist-BecJGLYp.js} +5 -5
  16. package/dist/{dist-DP_7RmP6.js → dist-BwgLxo12.js} +4 -4
  17. package/dist/{dist-Cl_Woozo.js → dist-DcVlOGxM.js} +2 -2
  18. package/dist/{dist-0W96Ab-B.js → dist-Z6JJM0us.js} +3 -3
  19. package/dist/index.js +11 -11
  20. package/dist/{json-validator-CF2oQNDw.js → json-validator-CvSNoBrh.js} +10 -3
  21. package/dist/loaders/npm-loader.d.ts.map +1 -1
  22. package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-CPuL4amA.js → oidcProvisioningPrimitives-Dl9qIcYS-Yu7lvx1k.js} +3 -3
  23. package/dist/{operator-XENg78bg.js → operator-BZ56_M87.js} +2 -2
  24. package/dist/{resolveIdentity-CR5p_g7K-XIGHZpkd.js → resolveIdentity-CR5p_g7K-hJCNYtZ7.js} +14 -14
  25. package/dist/utils/generator.d.ts.map +1 -1
  26. package/package.json +13 -13
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as tenantId, r as TenantScoped } from "./dist-Cl_Woozo.js";
2
+ import { i as tenantId, r as TenantScoped } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
- import { a as getOwnedAssetsFromCollection, o as removeOwnedAssetFromCollection, t as addOwnedAssetFromCollection } from "./dist-0W96Ab-B.js";
4
+ import { a as getOwnedAssetsFromCollection, o as removeOwnedAssetFromCollection, t as addOwnedAssetFromCollection } from "./dist-Z6JJM0us.js";
5
5
  import { SmrtJunction, SmrtObject, crossPackageRef, field, foreignKey, smrt } from "@happyvertical/smrt-core";
6
6
  //#region ../profiles/dist/chunks/ProfileAssetCollection-BuVAdOiv.js
7
7
  var ProfileAssetCollection_BuVAdOiv_exports = /* @__PURE__ */ __exportAll({
@@ -84,7 +84,7 @@ var ProfileAssetCollection = class extends SmrtJunction {
84
84
  profileCollectionPromise = null;
85
85
  async getProfileCollection() {
86
86
  if (!this.profileCollectionPromise) {
87
- const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-ou6DCuSN.js").then((n) => n.r).then((n) => n.r);
87
+ const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-B0_kJJIG.js").then((n) => n.r).then((n) => n.r);
88
88
  this.profileCollectionPromise = ProfileCollection.create({ db: this.db });
89
89
  }
90
90
  return this.profileCollectionPromise;
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { d as getTenantId, i as tenantId, m as withSystemContext, n as resolvePrompt, o as queryGlobal, r as TenantScoped, s as queryWithGlobals, t as definePrompt } from "./dist-Cl_Woozo.js";
2
+ import { d as getTenantId, i as tenantId, m as withSystemContext, n as resolvePrompt, o as queryGlobal, r as TenantScoped, s as queryWithGlobals, t as definePrompt } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
- import { a as getOwnedAssetsFromCollection, i as assertValidOwnedAssetSortOrder, n as assertAssetLinkable, o as removeOwnedAssetFromCollection, r as assertValidOwnedAssetRelationship, s as resolveOwnedAssetsById, t as addOwnedAssetFromCollection } from "./dist-0W96Ab-B.js";
4
+ import { a as getOwnedAssetsFromCollection, i as assertValidOwnedAssetSortOrder, n as assertAssetLinkable, o as removeOwnedAssetFromCollection, r as assertValidOwnedAssetRelationship, s as resolveOwnedAssetsById, t as addOwnedAssetFromCollection } from "./dist-Z6JJM0us.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-CMS9dFc0.js
@@ -435,7 +435,7 @@ var Profile = class extends SmrtObject {
435
435
  async getTypeSlug() {
436
436
  const tenantId2 = this.tenantId || getTenantId();
437
437
  if (this.typeId && tenantId2) {
438
- const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-DxyyJbnp.js").then((n) => n.n).then((n) => n.n);
438
+ const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-CKUBK94F.js").then((n) => n.n).then((n) => n.n);
439
439
  return (await (await ProfileTypeCollection.create(this.options)).getAvailableById(this.typeId, tenantId2))?.slug ?? "";
440
440
  }
441
441
  return (await this.loadRelated("typeId"))?.slug || "";
@@ -458,8 +458,8 @@ var Profile = class extends SmrtObject {
458
458
  * @param value - The value to set
459
459
  */
460
460
  async addMetadata(metafieldSlug, value) {
461
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-CHnbYx6c.js").then((n) => n.t).then((n) => n.n);
462
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-D-MPBgxA.js").then((n) => n.t).then((n) => n.n);
461
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-DZnRqyHn.js").then((n) => n.t).then((n) => n.n);
462
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js").then((n) => n.t).then((n) => n.n);
463
463
  const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
464
464
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
465
465
  await metafield.validateValue(value);
@@ -492,7 +492,7 @@ var Profile = class extends SmrtObject {
492
492
  * @returns Object with metafield slugs as keys
493
493
  */
494
494
  async getMetadata() {
495
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-D-MPBgxA.js").then((n) => n.t).then((n) => n.n);
495
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js").then((n) => n.t).then((n) => n.n);
496
496
  return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
497
497
  }
498
498
  /**
@@ -509,8 +509,8 @@ var Profile = class extends SmrtObject {
509
509
  * @param metafieldSlug - The slug of the metafield to remove
510
510
  */
511
511
  async removeMetadata(metafieldSlug) {
512
- const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-CHnbYx6c.js").then((n) => n.t).then((n) => n.n);
513
- const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-D-MPBgxA.js").then((n) => n.t).then((n) => n.n);
512
+ const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-DZnRqyHn.js").then((n) => n.t).then((n) => n.n);
513
+ const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js").then((n) => n.t).then((n) => n.n);
514
514
  const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
515
515
  if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
516
516
  const existing = await (await ProfileMetadataCollection.create(this.options)).list({
@@ -535,7 +535,7 @@ var Profile = class extends SmrtObject {
535
535
  return candidates.find((candidate) => ownerTenantId && candidate.tenantId === ownerTenantId) ?? candidates.find((candidate) => !candidate.tenantId) ?? null;
536
536
  }
537
537
  async getProfileLinkCollection() {
538
- const { ProfileLinkCollection } = await import("./ProfileLinkCollection-ChK9iEBp-DsyUTF9k.js").then((n) => n.t).then((n) => n.r);
538
+ const { ProfileLinkCollection } = await import("./ProfileLinkCollection-ChK9iEBp-Beu_n0ym.js").then((n) => n.t).then((n) => n.r);
539
539
  return ProfileLinkCollection.create({ db: this.db });
540
540
  }
541
541
  /** This profile's web links in display order. */
@@ -552,7 +552,7 @@ var Profile = class extends SmrtObject {
552
552
  return (await this.getProfileLinkCollection()).replaceForProfile(this.id, links);
553
553
  }
554
554
  async getProfileAssetCollection() {
555
- const { ProfileAssetCollection } = await import("./ProfileAssetCollection-BuVAdOiv-Cd9LYnjq.js").then((n) => n.t).then((n) => n.n);
555
+ const { ProfileAssetCollection } = await import("./ProfileAssetCollection-BuVAdOiv-CKDGq0OO.js").then((n) => n.t).then((n) => n.n);
556
556
  return ProfileAssetCollection.create({ db: this.db });
557
557
  }
558
558
  async getAssets(relationship) {
@@ -584,7 +584,7 @@ var Profile = class extends SmrtObject {
584
584
  */
585
585
  async addRelationship(toProfile, relationshipSlug, contextProfile) {
586
586
  const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
587
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-DAkdWzku.js").then((n) => n.t).then((n) => n.n);
587
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js").then((n) => n.t).then((n) => n.n);
588
588
  const { ProfileRelationshipType } = await import("./ProfileRelationshipType-Cevy-vaF-G82Gg40q.js").then((n) => n.n).then((n) => n.n);
589
589
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
590
590
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
@@ -609,7 +609,7 @@ var Profile = class extends SmrtObject {
609
609
  * @returns Array of ProfileRelationship instances
610
610
  */
611
611
  async getRelationships(options) {
612
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-DAkdWzku.js").then((n) => n.t).then((n) => n.n);
612
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js").then((n) => n.t).then((n) => n.n);
613
613
  const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
614
614
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
615
615
  const direction = options?.direction || "all";
@@ -654,7 +654,7 @@ var Profile = class extends SmrtObject {
654
654
  */
655
655
  async removeRelationship(toProfile, relationshipSlug) {
656
656
  const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
657
- const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-DAkdWzku.js").then((n) => n.t).then((n) => n.n);
657
+ const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js").then((n) => n.t).then((n) => n.n);
658
658
  const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
659
659
  if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
660
660
  const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
@@ -778,7 +778,7 @@ var Profile = class extends SmrtObject {
778
778
  * @returns Array of OIDC identity records
779
779
  */
780
780
  async getOidcIdentities() {
781
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-DTnGCBp_.js").then((n) => n.r).then((n) => n.r);
781
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-ClPe-MxG.js").then((n) => n.r).then((n) => n.r);
782
782
  return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
783
783
  }
784
784
  /**
@@ -791,7 +791,7 @@ var Profile = class extends SmrtObject {
791
791
  * type, but refuses to create or rebind authority.
792
792
  */
793
793
  async linkOidcIdentity(oidcData) {
794
- const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-DTnGCBp_.js").then((n) => n.r).then((n) => n.r);
794
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-ClPe-MxG.js").then((n) => n.r).then((n) => n.r);
795
795
  return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
796
796
  }
797
797
  /**
@@ -820,7 +820,7 @@ var Profile = class extends SmrtObject {
820
820
  * @returns Array of audit log entries
821
821
  */
822
822
  async getAuditLogs(limit = 50) {
823
- const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-CS-pwR93.js").then((n) => n.t).then((n) => n.n);
823
+ const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-C7vaibgn.js").then((n) => n.t).then((n) => n.n);
824
824
  return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
825
825
  }
826
826
  /**
@@ -830,7 +830,7 @@ var Profile = class extends SmrtObject {
830
830
  * @returns The created audit log entry
831
831
  */
832
832
  async recordAction(options) {
833
- const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-CS-pwR93.js").then((n) => n.t).then((n) => n.n);
833
+ const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-C7vaibgn.js").then((n) => n.t).then((n) => n.n);
834
834
  return await (await AuditLogCollection.create(this.options)).record({
835
835
  profile: this,
836
836
  ...options
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as tenantId, r as TenantScoped } from "./dist-Cl_Woozo.js";
2
+ import { i as tenantId, r as TenantScoped } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
4
  import { SmrtCollection, SmrtObject, field, foreignKey, isEmbeddedDatabase, smrt, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
5
5
  //#region ../profiles/dist/chunks/ProfileLinkCollection-ChK9iEBp.js
@@ -203,7 +203,7 @@ var ProfileLinkCollection = class ProfileLinkCollection extends SmrtCollection {
203
203
  /** The profile's tenant; throws when the profile is not visible here. */
204
204
  async requireProfileTenant(profileId) {
205
205
  if (!profileId) throw new Error("A profile link needs a profile");
206
- const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-ou6DCuSN.js").then((n) => n.r).then((n) => n.r);
206
+ const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-B0_kJJIG.js").then((n) => n.r).then((n) => n.r);
207
207
  const profile = await (await ProfileCollection.create({ db: this.db })).get({ id: profileId });
208
208
  if (!profile) throw new Error(`Profile '${profileId}' not found`);
209
209
  return profile.tenantId ?? null;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as tenantId, r as TenantScoped } from "./dist-Cl_Woozo.js";
2
+ import { i as tenantId, r as TenantScoped } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
4
  import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
5
5
  //#region ../profiles/dist/chunks/ProfileMetadataCollection-CAgJyjze.js
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as tenantId, r as TenantScoped } from "./dist-Cl_Woozo.js";
2
+ import { i as tenantId, r as TenantScoped } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
4
  import { SmrtCollection, SmrtObject, field, smrt } from "@happyvertical/smrt-core";
5
5
  //#region ../profiles/dist/chunks/ProfileMetafieldCollection-19ae6Lpf.js
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { i as tenantId, r as TenantScoped } from "./dist-Cl_Woozo.js";
2
+ import { i as tenantId, r as TenantScoped } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
4
  import { SmrtCollection, SmrtObject, foreignKey, oneToMany, smrt } from "@happyvertical/smrt-core";
5
5
  //#region ../profiles/dist/chunks/ProfileRelationshipCollection-BFSlTQ7J.js
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { l as withTenantGlobalRead, p as isSystemContext } from "./dist-Cl_Woozo.js";
2
+ import { l as withTenantGlobalRead, p as isSystemContext } from "./dist-DcVlOGxM.js";
3
3
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
- import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-ou6DCuSN.js";
4
+ import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-B0_kJJIG.js";
5
5
  import { SmrtCollection } from "@happyvertical/smrt-core";
6
6
  //#region ../profiles/dist/chunks/ProfileTypeCollection-B7m698Bl.js
7
7
  var ProfileTypeCollection_B7m698Bl_exports = /* @__PURE__ */ __exportAll({
@@ -1 +1 @@
1
- {"version":3,"file":"json-validator.d.ts","sourceRoot":"","sources":["../../src/commands/json-validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAyB/B,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACnC,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqDxB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAM3E;AAuFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,UAAU,CAAgC;gBAEtC,OAAO,EAAE,gBAAgB;IAMrC;;OAEG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4B/D;;;;;;;OAOG;YACW,YAAY;IAwB1B;;OAEG;YACW,YAAY;IA8F1B;;OAEG;IACH,OAAO,CAAC,cAAc;IAoFtB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAqEzB;;;;;;;;OAQG;IACH,OAAO,CAAC,aAAa;IAoErB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA2HzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyF3B;;;;;;;;;;;;;;OAcG;YACW,mBAAmB;IAuGjC;;;;;;;;;OASG;IACG,UAAU,CAAC,aAAa,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAoEnE;;OAEG;IACH,eAAe,CACb,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAChB,YAAY,GAAE,MAAM,GAAG,IAAW,GACjC,iBAAiB;IAkCpB;;OAEG;IACH,OAAO,CAAC,YAAY;CAkBrB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,OAAO,GACf,IAAI,CA0EN"}
1
+ {"version":3,"file":"json-validator.d.ts","sourceRoot":"","sources":["../../src/commands/json-validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAyB/B,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CACnC,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA2DxB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAO3E;AAuFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,UAAU,CAAgC;gBAEtC,OAAO,EAAE,gBAAgB;IAMrC;;OAEG;IACG,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA4B/D;;;;;;;OAOG;YACW,YAAY;IAwB1B;;OAEG;YACW,YAAY;IA8F1B;;OAEG;IACH,OAAO,CAAC,cAAc;IAoFtB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAqEzB;;;;;;;;OAQG;IACH,OAAO,CAAC,aAAa;IAoErB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA2HzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyF3B;;;;;;;;;;;;;;OAcG;YACW,mBAAmB;IAuGjC;;;;;;;;;OASG;IACG,UAAU,CAAC,aAAa,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAoEnE;;OAEG;IACH,eAAe,CACb,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,EAAE,MAAM,EAChB,YAAY,GAAE,MAAM,GAAG,IAAW,GACjC,iBAAiB;IAkCpB;;OAEG;IACH,OAAO,CAAC,YAAY;CAkBrB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,OAAO,GACf,IAAI,CA0EN"}
@@ -17,7 +17,7 @@ import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
17
17
  import { extract } from "tar";
18
18
  import { access, cp, mkdir, open, readFile, rm, writeFile } from "node:fs/promises";
19
19
  import { createLogger } from "@happyvertical/logger";
20
- import glob from "fast-glob";
20
+ import { glob } from "tinyglobby";
21
21
  import { getPackageConfig, loadConfig, toAIClientOptions, tryResolveConfiguredAIProvider } from "@happyvertical/smrt-config";
22
22
  import { toSnakeCase as toSnakeCase$1 } from "@happyvertical/smrt-core/utils";
23
23
  import { checkKnowledgeGraphFreshness, discoverScopedPackageDirectories, readAgentModuleDocs, readPackageAgentDoc, resolveAgentModuleDocPaths } from "@happyvertical/smrt-core/knowledge";
@@ -416,6 +416,7 @@ async function findPackageManifests(projectRoot) {
416
416
  try {
417
417
  const packageJsonFiles = await glob("**/package.json", {
418
418
  cwd: nodeModulesPath,
419
+ expandDirectories: false,
419
420
  ignore: ["**/node_modules/**"],
420
421
  absolute: true,
421
422
  followSymbolicLinks: true
@@ -3097,9 +3098,9 @@ async function assertNoUnsupportedMigrationFiles(config, projectRoot = process.c
3097
3098
  const directory = resolve(projectRoot, config.migrations?.directory ?? "./migrations");
3098
3099
  const files = await glob(["*.sql", "*.ts"], {
3099
3100
  cwd: directory,
3101
+ expandDirectories: false,
3100
3102
  absolute: false,
3101
3103
  onlyFiles: true,
3102
- suppressErrors: true,
3103
3104
  ignore: ["*.d.ts"]
3104
3105
  });
3105
3106
  if (files.length > 0) throw new UnsupportedFileMigrationsError(files.sort(), directory);
@@ -6254,7 +6255,10 @@ async function findTemplateInPackages(shortName) {
6254
6255
  `${nodeModulesPath}/*/templates/${shortName}/template.config.{js,ts}`
6255
6256
  ];
6256
6257
  for (const pattern of patterns) {
6257
- const matches = await glob(pattern, { absolute: true });
6258
+ const matches = await glob(pattern, {
6259
+ absolute: true,
6260
+ expandDirectories: false
6261
+ });
6258
6262
  if (matches.length > 0) {
6259
6263
  const configPath = matches[0];
6260
6264
  return dirname(configPath);
@@ -6272,7 +6276,10 @@ async function discoverInstalledTemplates() {
6272
6276
  const patterns = [`${nodeModulesPath}/@*/templates/*/template.config.{js,ts}`, `${nodeModulesPath}/*/template.config.{js,ts}`];
6273
6277
  const templates = [];
6274
6278
  for (const pattern of patterns) {
6275
- const matches = await glob(pattern, { absolute: true });
6279
+ const matches = await glob(pattern, {
6280
+ absolute: true,
6281
+ expandDirectories: false
6282
+ });
6276
6283
  for (const configPath of matches) try {
6277
6284
  const module = await import(pathToFileURL(configPath).href);
6278
6285
  const config = module.default || module;
@@ -6502,6 +6509,7 @@ async function overlayTemplate(source, config, outputDir) {
6502
6509
  }
6503
6510
  const files = await glob("**/*", {
6504
6511
  cwd: sourceDir,
6512
+ expandDirectories: false,
6505
6513
  dot: true,
6506
6514
  onlyFiles: true,
6507
6515
  ignore: ["**/.gitkeep"]
@@ -6577,6 +6585,7 @@ async function processPlaceholders(outputDir, config, options) {
6577
6585
  else replacements[placeholder] = String(replacer);
6578
6586
  const files = await glob("**/*.{ts,js,mjs,cjs,json,svelte,html,css,md,txt,yml,yaml}", {
6579
6587
  cwd: outputDir,
6588
+ expandDirectories: false,
6580
6589
  onlyFiles: true,
6581
6590
  ignore: [
6582
6591
  "**/node_modules/**",
@@ -8404,7 +8413,7 @@ var dbMaterializeTenantHierarchyCommand = {
8404
8413
  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).");
8405
8414
  const dbType = config.database.type || "sqlite";
8406
8415
  const { getDatabase } = await import("@happyvertical/sql");
8407
- const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-DP_7RmP6.js");
8416
+ const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-BwgLxo12.js");
8408
8417
  db = await getDatabase({
8409
8418
  type: dbType,
8410
8419
  url: config.database.url
@@ -8613,7 +8622,7 @@ var dbMigrateLedgerAccountsCommand = {
8613
8622
  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.");
8614
8623
  await autoDiscoverAndLoad();
8615
8624
  const { getDatabase } = await import("@happyvertical/sql");
8616
- const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-BlRecRqP.js");
8625
+ const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-BecJGLYp.js");
8617
8626
  db = await getDatabase({
8618
8627
  type: dbType,
8619
8628
  url: config.database.url
@@ -10788,7 +10797,7 @@ var usersProvisionOwnerCommand = {
10788
10797
  const config = getPackageConfig("cli", DEFAULT_CLI_CONFIG);
10789
10798
  if (config.database?.type !== "postgres" || !config.database.url) throw new Error(FAILURE);
10790
10799
  const { getDatabase } = await import("@happyvertical/sql");
10791
- const { provisionPasswordOwner } = await import("./operator-XENg78bg.js");
10800
+ const { provisionPasswordOwner } = await import("./operator-BZ56_M87.js");
10792
10801
  db = await getDatabase({
10793
10802
  type: "postgres",
10794
10803
  url: config.database.url
@@ -11608,7 +11617,7 @@ export default testManifest;
11608
11617
  }
11609
11618
  }
11610
11619
  try {
11611
- const { resolveDataPath, discoverJsonFiles, JsonDatabaseValidator, displayValidationResults } = await import("./json-validator-CF2oQNDw.js");
11620
+ const { resolveDataPath, discoverJsonFiles, JsonDatabaseValidator, displayValidationResults } = await import("./json-validator-CvSNoBrh.js");
11612
11621
  const dataPath = await resolveDataPath(options.data);
11613
11622
  if (!dataPath) {
11614
11623
  console.error("\n❌ Could not find data directory");
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-discovery.d.ts","sourceRoot":"","sources":["../../src/discovery/manifest-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAQD;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CA0ChD;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,GAAE,MAAsB,GAClC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAY/B;AA0LD;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,CAAC,CAY7B;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBtE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,GAAE,MAAsB,GAClC,OAAO,CAAC;IACT,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAyBD"}
1
+ {"version":3,"file":"manifest-discovery.d.ts","sourceRoot":"","sources":["../../src/discovery/manifest-discovery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAQD;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CA0ChD;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,GAAE,MAAsB,GAClC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAY/B;AA2LD;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,CAAC,CAY7B;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBtE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,GAAE,MAAsB,GAClC,OAAO,CAAC;IACT,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAyBD"}