@happyvertical/smrt-cli 0.57.33 → 0.57.35
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.
- package/agents/app-commands.md +7 -0
- package/agents/cookbook-apply.md +4 -0
- package/dist/{AuditLogCollection-BBbvr8Qc-C7vaibgn.js → AuditLogCollection-BBbvr8Qc-CjFr0idO.js} +1 -1
- package/dist/{OidcIdentity-MVVO3MfG-CDHPYDKP.js → OidcIdentity-MVVO3MfG-B4pDxYl1.js} +2 -2
- package/dist/{OidcIdentityCollection-s4mp3n62-ClPe-MxG.js → OidcIdentityCollection-s4mp3n62-DjEyQuRJ.js} +1 -1
- package/dist/{PasswordCredentialService-DA2Y6H2X-BkTtZgep.js → PasswordCredentialService-DA2Y6H2X-DsZpTPKo.js} +14 -14
- package/dist/{ProfileAssetCollection-BuVAdOiv-CKDGq0OO.js → ProfileAssetCollection-BuVAdOiv-BL42KBF2.js} +3 -3
- package/dist/{ProfileCollection-CMS9dFc0-B0_kJJIG.js → ProfileCollection-CMS9dFc0-Dns5xTee.js} +17 -17
- package/dist/{ProfileLinkCollection-ChK9iEBp-Beu_n0ym.js → ProfileLinkCollection-ChK9iEBp-BmmP4FbO.js} +2 -2
- package/dist/{ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js → ProfileMetadataCollection-CAgJyjze-DcZ6nrQw.js} +1 -1
- package/dist/{ProfileMetafieldCollection-19ae6Lpf-DZnRqyHn.js → ProfileMetafieldCollection-19ae6Lpf-BRLUdeVY.js} +1 -1
- package/dist/{ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js → ProfileRelationshipCollection-BFSlTQ7J-C35cPV5c.js} +1 -1
- package/dist/{ProfileTypeCollection-B7m698Bl-CKUBK94F.js → ProfileTypeCollection-B7m698Bl-Ce4AaaoE.js} +2 -2
- package/dist/app/cli.d.ts.map +1 -1
- package/dist/app/launchers.d.ts +1 -1
- package/dist/app/launchers.d.ts.map +1 -1
- package/dist/app.js +2 -2
- package/dist/{apply-C7kqOLl6.js → apply-D8dV3HUh.js} +22 -3
- package/dist/{cli-Cgj-996T.js → cli-CBuBU_5T.js} +6 -5
- package/dist/commands/cookbook/apply.d.ts +2 -0
- package/dist/commands/cookbook/apply.d.ts.map +1 -1
- package/dist/commands/cookbook/shared.d.ts.map +1 -1
- package/dist/{commands-CBfRFp3s.js → commands-CwBFXtgx.js} +6 -6
- package/dist/{dist-BwgLxo12.js → dist-BdEB0RqQ.js} +4 -4
- package/dist/{dist-Z6JJM0us.js → dist-BxDpuCty.js} +3 -3
- package/dist/{dist-DcVlOGxM.js → dist-CkYHSCr7.js} +2 -2
- package/dist/{dist-BecJGLYp.js → dist-SezcdZuU.js} +5 -5
- package/dist/index.js +12 -12
- package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-Yu7lvx1k.js → oidcProvisioningPrimitives-Dl9qIcYS-v8sC3E8L.js} +3 -3
- package/dist/{operator-BZ56_M87.js → operator-DQwfV3MU.js} +2 -2
- package/dist/{portability-ClYZy8ut.js → portability-V05XvEu-.js} +1 -1
- package/dist/{resolveIdentity-CR5p_g7K-hJCNYtZ7.js → resolveIdentity-CR5p_g7K-ZnOfbtXX.js} +14 -14
- package/dist/{server-CVEdVgJg.js → server-DEBTDsmH.js} +1 -1
- package/package.json +10 -10
|
@@ -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-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.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-
|
|
4
|
+
import { a as getOwnedAssetsFromCollection, o as removeOwnedAssetFromCollection, t as addOwnedAssetFromCollection } from "./dist-BxDpuCty.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-
|
|
87
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-Dns5xTee.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;
|
package/dist/{ProfileCollection-CMS9dFc0-B0_kJJIG.js → ProfileCollection-CMS9dFc0-Dns5xTee.js}
RENAMED
|
@@ -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-
|
|
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-CkYHSCr7.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-
|
|
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-BxDpuCty.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-
|
|
438
|
+
const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-Ce4AaaoE.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-
|
|
462
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-
|
|
461
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-BRLUdeVY.js").then((n) => n.t).then((n) => n.n);
|
|
462
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-DcZ6nrQw.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-
|
|
495
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-DcZ6nrQw.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-
|
|
513
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-
|
|
512
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-BRLUdeVY.js").then((n) => n.t).then((n) => n.n);
|
|
513
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-DcZ6nrQw.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-
|
|
538
|
+
const { ProfileLinkCollection } = await import("./ProfileLinkCollection-ChK9iEBp-BmmP4FbO.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-
|
|
555
|
+
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-BuVAdOiv-BL42KBF2.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-
|
|
587
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-C35cPV5c.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-
|
|
612
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-C35cPV5c.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-
|
|
657
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-C35cPV5c.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-
|
|
781
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-DjEyQuRJ.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-
|
|
794
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-DjEyQuRJ.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-
|
|
823
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-CjFr0idO.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-
|
|
833
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-CjFr0idO.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-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.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-
|
|
206
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-Dns5xTee.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-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.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-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.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-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.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-
|
|
2
|
+
import { l as withTenantGlobalRead, p as isSystemContext } from "./dist-CkYHSCr7.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
|
-
import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-
|
|
4
|
+
import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-Dns5xTee.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({
|
package/dist/app/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/app/cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiBH,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAKlB,MAAM,cAAc,CAAC;AAGtB,qDAAqD;AACrD,eAAO,MAAM,YAAY,8DACoC,CAAC;AAE9D,8EAA8E;AAC9E,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/app/cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiBH,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAKlB,MAAM,cAAc,CAAC;AAGtB,qDAAqD;AACrD,eAAO,MAAM,YAAY,8DACoC,CAAC;AAE9D,8EAA8E;AAC9E,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqBxD,CAAC;AAEH,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3B,iDAAiD;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAChD;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,CAAC,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,kBAAkB,CAAC;IACzB,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,KAAK,CAAC;CAC7B;AAED,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CA+B9D;AAED,+BAA+B;AAC/B,wBAAgB,aAAa,IAAI,MAAM,CAMtC;AAWD;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,MAAM,CAAC,CA0EjB"}
|
package/dist/app/launchers.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { type AppContext } from './runtime.js';
|
|
|
12
12
|
* local writer is live, establish local storage custody without creating
|
|
13
13
|
* schema or bootstrap records, then run `smrt db:migrate`.
|
|
14
14
|
*/
|
|
15
|
-
export declare function prepareMigration(context: AppContext): Promise<number>;
|
|
15
|
+
export declare function prepareMigration(context: AppContext, args?: readonly string[]): Promise<number>;
|
|
16
16
|
/** Worker kinds. `task` when omitted; anything else is a usage error. */
|
|
17
17
|
export type WorkerKind = 'task' | 'schedule';
|
|
18
18
|
/** Parse `smrt app worker [kind]`, refusing anything but `task`/`schedule`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launchers.d.ts","sourceRoot":"","sources":["../../src/app/launchers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,cAAc,CAAC;AAElE;;;;GAIG;AACH,wBAAsB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"launchers.d.ts","sourceRoot":"","sources":["../../src/app/launchers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,cAAc,CAAC;AAElE;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,IAAI,GAAE,SAAS,MAAM,EAAO,GAC3B,OAAO,CAAC,MAAM,CAAC,CA4CjB;AAED,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAI7C,+EAA+E;AAC/E,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAOnE;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,MAAM,EAAE,GACb,OAAO,CAAC,MAAM,CAAC,CA2GjB;AAED,4EAA4E;AAC5E,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAyC3D;AAED,8EAA8E;AAC9E,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,EAAE,CAOV;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,MAAM,EAAE,GACb,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,MAAM,CAAC,CAkBjB"}
|
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as assertExternalArtifactPath, C as prepareMigration, D as cliExecutablePath, E as validateMcpAppsIfPresent, F as AppCommandError, I as ApplicationStartError, M as resolveApplicationId, N as resolveApplicationStateRoot, O as runtimeEnvironment, P as runtimeConfigurationFingerprint, R as redactSecrets, S as launchVite, T as runWorker, _ as sendTerminationSignal, a as renderAppHelp, b as ViteLauncherError, c as parseTokenLifetime, d as START_OUTPUT_TAIL_BYTES, f as runApplicationOperation, g as readOwnedProcess, h as matchesApplicationProcess, i as errorEnvelope, j as prepareApplicationStateRoot, k as webLauncherPath, l as runTokenOperation, m as checkOwnedProcess, n as APP_RECOVERY, o as runAppCommand, p as WEB_LAUNCHER_NAME, s as TOKEN_USAGE, t as APP_COMMANDS, u as APP_OPERATIONS, v as verifyOwnedProcess, w as resolveViteEntry, x as devServerArguments, y as writeProcessRecord } from "./cli-
|
|
2
|
-
import { C as publishFilesystemAssets, D as stageFilesystemAssets, E as rollbackFilesystemAssets, O as verifyFilesystemAssets, S as markFilesystemAssetsCommitted, T as recoverFilesystemAssets, _ as bundleContentDigest, a as manifestTables, b as finishFilesystemAssets, c as serializeExportBundle, d as AssetPortabilityError, f as MAX_ASSET_BYTES, g as assertAssetRoot, h as MAX_TOTAL_ASSET_BYTES, i as importedRowsMatchBundle, k as verifyPublishedFilesystemAssets, l as validateImportBundle, m as MAX_BUNDLE_BYTES, n as exportApplication, o as planImportTables, p as MAX_ASSET_COUNT, r as importApplication, t as executeImportPlan, u as ASSET_MANIFEST_SCHEMA_VERSION, v as collectFilesystemAssets, w as readSensitiveBundle, x as hasCommittedImportJournal, y as digestBytes } from "./portability-
|
|
1
|
+
import { A as assertExternalArtifactPath, C as prepareMigration, D as cliExecutablePath, E as validateMcpAppsIfPresent, F as AppCommandError, I as ApplicationStartError, M as resolveApplicationId, N as resolveApplicationStateRoot, O as runtimeEnvironment, P as runtimeConfigurationFingerprint, R as redactSecrets, S as launchVite, T as runWorker, _ as sendTerminationSignal, a as renderAppHelp, b as ViteLauncherError, c as parseTokenLifetime, d as START_OUTPUT_TAIL_BYTES, f as runApplicationOperation, g as readOwnedProcess, h as matchesApplicationProcess, i as errorEnvelope, j as prepareApplicationStateRoot, k as webLauncherPath, l as runTokenOperation, m as checkOwnedProcess, n as APP_RECOVERY, o as runAppCommand, p as WEB_LAUNCHER_NAME, s as TOKEN_USAGE, t as APP_COMMANDS, u as APP_OPERATIONS, v as verifyOwnedProcess, w as resolveViteEntry, x as devServerArguments, y as writeProcessRecord } from "./cli-CBuBU_5T.js";
|
|
2
|
+
import { C as publishFilesystemAssets, D as stageFilesystemAssets, E as rollbackFilesystemAssets, O as verifyFilesystemAssets, S as markFilesystemAssetsCommitted, T as recoverFilesystemAssets, _ as bundleContentDigest, a as manifestTables, b as finishFilesystemAssets, c as serializeExportBundle, d as AssetPortabilityError, f as MAX_ASSET_BYTES, g as assertAssetRoot, h as MAX_TOTAL_ASSET_BYTES, i as importedRowsMatchBundle, k as verifyPublishedFilesystemAssets, l as validateImportBundle, m as MAX_BUNDLE_BYTES, n as exportApplication, o as planImportTables, p as MAX_ASSET_COUNT, r as importApplication, t as executeImportPlan, u as ASSET_MANIFEST_SCHEMA_VERSION, v as collectFilesystemAssets, w as readSensitiveBundle, x as hasCommittedImportJournal, y as digestBytes } from "./portability-V05XvEu-.js";
|
|
3
3
|
import { PROVIDER_READINESS_SETTINGS, RECLAIM_MUTEX_FILE, acquireWriterLease, createProviderReadinessProbe, findInstalledPackage, isStaleOperationLock, lockOwnerPid, processExists, readActiveWriterLease, reclaimStaleRecord, resolveReadinessModule, withOperationLock } from "@happyvertical/smrt-app-runtime";
|
|
4
4
|
export { APP_COMMANDS, APP_OPERATIONS, APP_RECOVERY, ASSET_MANIFEST_SCHEMA_VERSION, AppCommandError, ApplicationStartError, AssetPortabilityError, MAX_ASSET_BYTES, MAX_ASSET_COUNT, MAX_BUNDLE_BYTES, MAX_TOTAL_ASSET_BYTES, PROVIDER_READINESS_SETTINGS, RECLAIM_MUTEX_FILE, START_OUTPUT_TAIL_BYTES, TOKEN_USAGE, ViteLauncherError, WEB_LAUNCHER_NAME, acquireWriterLease, assertAssetRoot, assertExternalArtifactPath, bundleContentDigest, checkOwnedProcess, cliExecutablePath, collectFilesystemAssets, createProviderReadinessProbe, devServerArguments, digestBytes, errorEnvelope, executeImportPlan, exportApplication, findInstalledPackage, finishFilesystemAssets, hasCommittedImportJournal, importApplication, importedRowsMatchBundle, isStaleOperationLock, launchVite, lockOwnerPid, manifestTables, markFilesystemAssetsCommitted, matchesApplicationProcess, parseTokenLifetime, planImportTables, prepareApplicationStateRoot, prepareMigration, processExists, publishFilesystemAssets, readActiveWriterLease, readOwnedProcess, readSensitiveBundle, reclaimStaleRecord, recoverFilesystemAssets, redactSecrets, renderAppHelp, resolveApplicationId, resolveApplicationStateRoot, resolveReadinessModule, resolveViteEntry, rollbackFilesystemAssets, runAppCommand, runApplicationOperation, runTokenOperation, runWorker, runtimeConfigurationFingerprint, runtimeEnvironment, sendTerminationSignal, serializeExportBundle, stageFilesystemAssets, validateImportBundle, validateMcpAppsIfPresent, verifyFilesystemAssets, verifyOwnedProcess, verifyPublishedFilesystemAssets, webLauncherPath, withOperationLock, writeProcessRecord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
2
|
-
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
2
|
+
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
@@ -37,6 +37,19 @@ var LOCKFILES = [
|
|
|
37
37
|
"bun.lock",
|
|
38
38
|
"bun.lockb"
|
|
39
39
|
];
|
|
40
|
+
/**
|
|
41
|
+
* The template repository's own metadata, at its root (#4239). It names the
|
|
42
|
+
* template's tracker, forge, memory bank and CI, so a coding agent in the new
|
|
43
|
+
* project would file and claim work against the template repository.
|
|
44
|
+
*/
|
|
45
|
+
var TEMPLATE_REPOSITORY_FILES = [
|
|
46
|
+
".agents",
|
|
47
|
+
".github",
|
|
48
|
+
"AGENTS.md",
|
|
49
|
+
"CLAUDE.md",
|
|
50
|
+
"renovate.json"
|
|
51
|
+
];
|
|
52
|
+
var isTemplateRepositoryFile = (path) => TEMPLATE_REPOSITORY_FILES.includes(path.split("/")[0]);
|
|
40
53
|
var ApplyError = class extends Error {};
|
|
41
54
|
function detectIndent(text) {
|
|
42
55
|
return /^( +|\t)"/m.exec(text)?.[1] ?? 2;
|
|
@@ -291,12 +304,12 @@ function copyTemplate(template, targetDir) {
|
|
|
291
304
|
if (!template.files) {
|
|
292
305
|
cpSync(template.root, targetDir, {
|
|
293
306
|
recursive: true,
|
|
294
|
-
filter: (src) => !skip(basename(src)) && refuseLink(src)
|
|
307
|
+
filter: (src) => !skip(basename(src)) && !isTemplateRepositoryFile(relative(template.root, src).split(sep).join("/")) && refuseLink(src)
|
|
295
308
|
});
|
|
296
309
|
return;
|
|
297
310
|
}
|
|
298
311
|
for (const file of template.files) {
|
|
299
|
-
if (file.split("/").some(skip)) continue;
|
|
312
|
+
if (file.split("/").some(skip) || isTemplateRepositoryFile(file)) continue;
|
|
300
313
|
const from = join(template.root, file);
|
|
301
314
|
refuseLink(from);
|
|
302
315
|
const to = join(targetDir, file);
|
|
@@ -338,6 +351,10 @@ function applyCookbook(options) {
|
|
|
338
351
|
if (mode === "new" && !smrtVersion) warnings.push(`this CLI's version (${options.cliVersion}) is not a published release, so the project keeps the template's @happyvertical/smrt-* ranges; pin them to a released smrt version before relying on the app`);
|
|
339
352
|
let repinnedDependencies = {};
|
|
340
353
|
if (smrtVersion) ({json: baseJson, changes: repinnedDependencies} = pinSmrtDependencies(baseJson, smrtVersion));
|
|
354
|
+
const skippedTemplateFiles = mode === "new" ? TEMPLATE_REPOSITORY_FILES.filter((name) => {
|
|
355
|
+
const { root, files } = template;
|
|
356
|
+
return files ? files.some((file) => file.split("/")[0] === name) : existsSync(join(root, name));
|
|
357
|
+
}) : [];
|
|
341
358
|
const copied = (file) => {
|
|
342
359
|
const { root, files } = template;
|
|
343
360
|
return files ? files.includes(file) : existsSync(join(root, file));
|
|
@@ -368,6 +385,7 @@ function applyCookbook(options) {
|
|
|
368
385
|
smrtVersion,
|
|
369
386
|
repinnedDependencies,
|
|
370
387
|
removedLockfiles,
|
|
388
|
+
skippedTemplateFiles,
|
|
371
389
|
config
|
|
372
390
|
};
|
|
373
391
|
const nextJson = { ...baseJson };
|
|
@@ -964,6 +982,7 @@ function printApplyResult(result, warnings, log = console.log, warn = console.wa
|
|
|
964
982
|
if (plan.smrtVersion) log(` smrt packages pinned to ${plan.smrtVersion} (this CLI's release)`);
|
|
965
983
|
for (const [name, { from, to }] of Object.entries(plan.repinnedDependencies)) log(` ~ ${name}@${to} (template had ${from})`);
|
|
966
984
|
for (const file of plan.removedLockfiles) log(` - ${file} (resolved the template's pins; the install re-resolves)`);
|
|
985
|
+
for (const file of plan.skippedTemplateFiles) log(` - ${file} (the template repository's own metadata, not copied)`);
|
|
967
986
|
for (const [name, range] of Object.entries(plan.addDependencies)) log(` + ${name}@${range}`);
|
|
968
987
|
for (const [name, range] of Object.entries(plan.keptDependencies)) log(` = ${name}@${range} (already declared)`);
|
|
969
988
|
log(` smrt.cookbook.json: ${plan.config}`);
|
|
@@ -363,7 +363,8 @@ function runtimeEnvironment(context, runtime) {
|
|
|
363
363
|
* local writer is live, establish local storage custody without creating
|
|
364
364
|
* schema or bootstrap records, then run `smrt db:migrate`.
|
|
365
365
|
*/
|
|
366
|
-
async function prepareMigration(context) {
|
|
366
|
+
async function prepareMigration(context, args = []) {
|
|
367
|
+
if (args.some((arg) => arg !== "--relax-columns") || args.length > 1) throw new AppCommandError("Usage: smrt app migrate [--relax-columns]", 2);
|
|
367
368
|
const runtime = await context.deps.resolveRuntime(context.sourceRoot);
|
|
368
369
|
const stateRoot = preparedStateRoot(context);
|
|
369
370
|
await withOperationLock(stateRoot, "db:migrate", async () => {
|
|
@@ -387,7 +388,7 @@ async function prepareMigration(context) {
|
|
|
387
388
|
env.DATABASE_URL = paths.database;
|
|
388
389
|
env.SMRT_ASSETS_DIR = paths.assets;
|
|
389
390
|
}
|
|
390
|
-
const result = context.deps.runSmrt(["db:migrate"], {
|
|
391
|
+
const result = context.deps.runSmrt(["db:migrate", ...args], {
|
|
391
392
|
env,
|
|
392
393
|
allowFailure: true
|
|
393
394
|
});
|
|
@@ -1291,7 +1292,7 @@ async function backup(context, args) {
|
|
|
1291
1292
|
async function loadPortabilityAdapter(context) {
|
|
1292
1293
|
const override = join(context.sourceRoot, "scripts", "smrt-portability.mjs");
|
|
1293
1294
|
if (existsSync(override)) return await import(pathToFileURL(override).href);
|
|
1294
|
-
return import("./portability-
|
|
1295
|
+
return import("./portability-V05XvEu-.js").then((n) => n.s);
|
|
1295
1296
|
}
|
|
1296
1297
|
async function portability(context, operation, args, operationLock) {
|
|
1297
1298
|
const adapter = await loadPortabilityAdapter(context);
|
|
@@ -1543,7 +1544,7 @@ var APP_COMMANDS = Object.freeze({
|
|
|
1543
1544
|
"backup [destination]": "Local: copy the private data root to a new directory",
|
|
1544
1545
|
"export [path]": "Write a logical, asset-aware export bundle",
|
|
1545
1546
|
"import <path>": "Import a logical export bundle into an empty application",
|
|
1546
|
-
migrate: "Prepare storage custody and run smrt db:migrate under the lock",
|
|
1547
|
+
"migrate [--relax-columns]": "Prepare storage custody and run smrt db:migrate under the lock",
|
|
1547
1548
|
"token [list|revoke <id>] [--scopes ...]": "Local: issue, list, or revoke a scoped bearer token for a local MCP client",
|
|
1548
1549
|
"worker [task|schedule]": "Deployed: run the task or schedule worker",
|
|
1549
1550
|
"dev [...vite args]": "Run the application's Vite dev server",
|
|
@@ -1634,7 +1635,7 @@ async function runAppCommand(argv, options = {}) {
|
|
|
1634
1635
|
io,
|
|
1635
1636
|
deps
|
|
1636
1637
|
};
|
|
1637
|
-
if (operation === "migrate") return await prepareMigration(context);
|
|
1638
|
+
if (operation === "migrate") return await prepareMigration(context, args);
|
|
1638
1639
|
if (operation === "worker") return await runWorker(context, args);
|
|
1639
1640
|
if (operation === "token") return await runTokenOperation(context, args);
|
|
1640
1641
|
if (!APP_OPERATIONS.includes(operation)) throw new Error(`Unknown app operation: ${operation}`);
|
|
@@ -60,6 +60,8 @@ export interface ApplyPlan {
|
|
|
60
60
|
}>;
|
|
61
61
|
/** Template lockfiles dropped because they resolve the replaced pins. */
|
|
62
62
|
removedLockfiles: string[];
|
|
63
|
+
/** Template repository metadata not copied into the new project (#4239). */
|
|
64
|
+
skippedTemplateFiles: string[];
|
|
63
65
|
config: 'create' | 'update' | 'unchanged';
|
|
64
66
|
}
|
|
65
67
|
export interface ApplyResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../src/commands/cookbook/apply.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AACzD,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../src/commands/cookbook/apply.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/commands/cookbook/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,wBAAgB,UAAU,IAAI,MAAM,CAiBnC;AAKD,wDAAwD;AACxD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBxE;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,KAAG,MAAM,EACD,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,cAAc,CAAC,CAWzB;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAkB,EACzC,IAAI,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAmB,GAC1C,IAAI,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/commands/cookbook/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,wBAAgB,UAAU,IAAI,MAAM,CAiBnC;AAKD,wDAAwD;AACxD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBxE;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,KAAG,MAAM,EACD,CAAC;AAEpE,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,cAAc,CAAC,CAWzB;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,MAAM,EAAE,EAClB,GAAG,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAkB,EACzC,IAAI,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAmB,GAC1C,IAAI,CAqCN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as resolveManifestEntryPackageName } from "./index.js";
|
|
2
2
|
import { a as redactDatabaseUrlsInText, i as quoteIdentifier, r as formatDatabaseDisplayUrl, t as closeDatabaseConnection } from "./db-command-utils-Cn8tjy7N.js";
|
|
3
|
-
import { a as readCookbookSource, d as downloadPackage, f as extractTarball, g as applyCookbook, h as COOKBOOK_CONFIG_FILE, i as printApplyResult, m as ApplyError, n as asList, o as validateCookbookSource, p as lookupPackage, r as cliVersion, t as createCookbookApplier } from "./apply-
|
|
3
|
+
import { a as readCookbookSource, d as downloadPackage, f as extractTarball, g as applyCookbook, h as COOKBOOK_CONFIG_FILE, i as printApplyResult, m as ApplyError, n as asList, o as validateCookbookSource, p as lookupPackage, r as cliVersion, t as createCookbookApplier } from "./apply-D8dV3HUh.js";
|
|
4
4
|
import { t as DEFAULT_CLI_CONFIG } from "./config-CdJRSMRi.js";
|
|
5
5
|
import { addMcpAppsRuntime, assertMcpAppsPluginName, configureMcpAppsConsumerRegistry, mcpAppsCommands, scaffoldMcpAppsPackage, validateMcpAppsPackage } from "./mcp-apps-packaging-CixRnxz_.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -7723,7 +7723,7 @@ var kitchenCommands = {
|
|
|
7723
7723
|
}
|
|
7724
7724
|
},
|
|
7725
7725
|
handler: async (_args, options) => {
|
|
7726
|
-
const { runKitchenMcp } = await import("./server-
|
|
7726
|
+
const { runKitchenMcp } = await import("./server-DEBTDsmH.js");
|
|
7727
7727
|
await runKitchenMcp({
|
|
7728
7728
|
uiSmoke: options["ui-smoke"],
|
|
7729
7729
|
plannerUi: options["planner-ui"],
|
|
@@ -8413,7 +8413,7 @@ var dbMaterializeTenantHierarchyCommand = {
|
|
|
8413
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).");
|
|
8414
8414
|
const dbType = config.database.type || "sqlite";
|
|
8415
8415
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
8416
|
-
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-
|
|
8416
|
+
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-BdEB0RqQ.js");
|
|
8417
8417
|
db = await getDatabase({
|
|
8418
8418
|
type: dbType,
|
|
8419
8419
|
url: config.database.url
|
|
@@ -8622,7 +8622,7 @@ var dbMigrateLedgerAccountsCommand = {
|
|
|
8622
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.");
|
|
8623
8623
|
await autoDiscoverAndLoad();
|
|
8624
8624
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
8625
|
-
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-
|
|
8625
|
+
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-SezcdZuU.js");
|
|
8626
8626
|
db = await getDatabase({
|
|
8627
8627
|
type: dbType,
|
|
8628
8628
|
url: config.database.url
|
|
@@ -10797,7 +10797,7 @@ var usersProvisionOwnerCommand = {
|
|
|
10797
10797
|
const config = getPackageConfig("cli", DEFAULT_CLI_CONFIG);
|
|
10798
10798
|
if (config.database?.type !== "postgres" || !config.database.url) throw new Error(FAILURE);
|
|
10799
10799
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
10800
|
-
const { provisionPasswordOwner } = await import("./operator-
|
|
10800
|
+
const { provisionPasswordOwner } = await import("./operator-DQwfV3MU.js");
|
|
10801
10801
|
db = await getDatabase({
|
|
10802
10802
|
type: "postgres",
|
|
10803
10803
|
url: config.database.url
|
|
@@ -11154,7 +11154,7 @@ var utilityCommands = {
|
|
|
11154
11154
|
description: "Application operations: install, setup, recover, start, stop, doctor, open, backup, export, import, migrate, worker, dev, build (`smrt app help`)",
|
|
11155
11155
|
args: ["[operation]", "[args...]"],
|
|
11156
11156
|
handler: async (args) => {
|
|
11157
|
-
const { runAppCommand } = await import("./cli-
|
|
11157
|
+
const { runAppCommand } = await import("./cli-CBuBU_5T.js").then((n) => n.r);
|
|
11158
11158
|
const code = await runAppCommand(args);
|
|
11159
11159
|
if (code !== 0) process.exitCode = code;
|
|
11160
11160
|
}
|