@happyvertical/smrt-cli 0.54.1 → 0.54.3
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/dist/{ApiKey-BZmbOTnL-BbZupUZ3.js → ApiKey-CVmlf3V6-BAeHuH48.js} +13 -5
- package/dist/{ApiKeyCollection-Bfb_nw81-DYAZwx0O.js → ApiKeyCollection-CiiDNFdD-CMGF3_ul.js} +5 -5
- package/dist/{AuditLogCollection-B1YonCAP-BDUrNGcS.js → AuditLogCollection-WDHL-_AF-BH_fVbtQ.js} +33 -15
- package/dist/{NostrIdentity-n70E0vck-Di3_eNCq.js → NostrIdentity-AC8fAdxe-DKxKyu_a.js} +12 -4
- package/dist/{NostrIdentityCollection-Ca74dkaL-DvjOg9Xy.js → NostrIdentityCollection-CctlECpX-fkAPnK02.js} +4 -4
- package/dist/{OidcIdentity-Cb1bxreM-DfO_c0Yh.js → OidcIdentity-BjRu3n1g-DLxby4jH.js} +11 -3
- package/dist/{OidcIdentityCollection-TV8VdK69-DzOkoWHQ.js → OidcIdentityCollection-B4jYh36_-By9emBa2.js} +5 -5
- package/dist/{ProfileAssetCollection-B9hacUJa-CX2PYc46.js → ProfileAssetCollection-HeMtjBc0-oIL6YSUZ.js} +16 -7
- package/dist/{ProfileCollection-DuJT7Mum-BOIdjUTp.js → ProfileCollection-Bt6IJK49-B1_oDwPG.js} +53 -29
- package/dist/{ProfileLinkCollection-4uNURz32-Csdzv-Qv.js → ProfileLinkCollection-u1hhzKTm-Dr0Nz06-.js} +14 -6
- package/dist/{ProfileMetadataCollection-DQhbfEfa-TpoZQSA0.js → ProfileMetadataCollection-BIYKy4Y3-DIyfp9vR.js} +13 -5
- package/dist/{ProfileMetafieldCollection-CoBuM_5G-BIXiLNZ0.js → ProfileMetafieldCollection-Buz7gzag-DTX_ZzEU.js} +13 -5
- package/dist/{ProfileRelationshipCollection-DUVgaIqf-CXEhCV9T.js → ProfileRelationshipCollection-C4g_QLI4-DbDLX7wE.js} +16 -8
- package/dist/{ProfileRelationshipTermCollection-DtA9OM23-BoGhQBSQ.js → ProfileRelationshipTermCollection-C9J7mC7P-ChIFqjCg.js} +12 -4
- package/dist/{ProfileRelationshipType-BRiRka6t-Dezjv5jP.js → ProfileRelationshipType-U7IwF6Wf-DNavf24e.js} +12 -4
- package/dist/{ProfileRelationshipTypeCollection-BdXwd7Kf-HoTmV1q-.js → ProfileRelationshipTypeCollection-_n22WqTb-DiZUWvev.js} +5 -5
- package/dist/cli-generator.d.ts.map +1 -1
- package/dist/{commands-BD5X9cMG.js → commands-D3EYdGNp.js} +2 -2
- package/dist/dist-BJgUA7Bn.js +1778 -0
- package/dist/{dist-MTTwaasL.js → dist-Bzshoi-0.js} +18 -2
- package/dist/dist-D5MGUBs8.js +4112 -0
- package/dist/{dist-WHmitm0L.js → dist-DE7COF_x.js} +29 -5
- package/dist/dist-KGK8QWAS.js +20 -0
- package/dist/index.js +26 -16
- package/dist/{oidcProvisioningPrimitives-D9OYu5-F-BVIJD3mI.js → oidcProvisioningPrimitives-CYood-2M-5BmKJPFx.js} +17 -7
- package/dist/{resolveIdentity-B-PK6RwU-CWEkXCVC.js → resolveIdentity-CvGDegU6--sWLCFfc.js} +19 -19
- package/package.json +15 -15
- package/dist/dist-BtFwpdXy.js +0 -3850
- package/dist/dist-DFLWw0iq.js +0 -1705
- package/dist/dist-mz-yUYw6.js +0 -20
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { l as withSystemContext } from "./dist-
|
|
3
|
-
import { n as __exportAll$1, t as NostrIdentity, u as verifyAuthEvent } from "./NostrIdentity-
|
|
4
|
-
import { t as ApiKey } from "./ApiKey-
|
|
5
|
-
import { t as OidcIdentity } from "./OidcIdentity-
|
|
6
|
-
import { c as coordinateOidcProvisioning, l as isOidcProvisioningRaceConflict, u as normalizeIdentityEmail } from "./ProfileCollection-
|
|
7
|
-
import { a as createOidcProvisioningPerson, o as insertOidcProvisioningIdentity } from "./oidcProvisioningPrimitives-
|
|
2
|
+
import { l as withSystemContext } from "./dist-Bzshoi-0.js";
|
|
3
|
+
import { n as __exportAll$1, t as NostrIdentity, u as verifyAuthEvent } from "./NostrIdentity-AC8fAdxe-DKxKyu_a.js";
|
|
4
|
+
import { t as ApiKey } from "./ApiKey-CVmlf3V6-BAeHuH48.js";
|
|
5
|
+
import { t as OidcIdentity } from "./OidcIdentity-BjRu3n1g-DLxby4jH.js";
|
|
6
|
+
import { c as coordinateOidcProvisioning, l as isOidcProvisioningRaceConflict, u as normalizeIdentityEmail } from "./ProfileCollection-Bt6IJK49-B1_oDwPG.js";
|
|
7
|
+
import { a as createOidcProvisioningPerson, o as insertOidcProvisioningIdentity } from "./oidcProvisioningPrimitives-CYood-2M-5BmKJPFx.js";
|
|
8
8
|
import { resolveDatabase } from "@happyvertical/smrt-core";
|
|
9
|
-
//#region ../profiles/dist/chunks/resolveIdentity-
|
|
10
|
-
var
|
|
9
|
+
//#region ../profiles/dist/chunks/resolveIdentity-CvGDegU6.js
|
|
10
|
+
var resolveIdentity_CvGDegU6_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
i: () => resolveIdentity_exports,
|
|
12
12
|
n: () => createProfileFromOidc,
|
|
13
13
|
r: () => resolveIdentity,
|
|
@@ -72,13 +72,13 @@ async function resolveIdentity(context) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
async function findProfileByExternalId(provider, externalId, options) {
|
|
75
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-
|
|
75
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-By9emBa2.js").then((n) => n.r).then((n) => n.r);
|
|
76
76
|
const identities = await (await OidcIdentityCollection.create(options)).findByProvider(provider);
|
|
77
77
|
for (const identity of identities) if (identity.subject === externalId || identity.email?.includes(externalId)) {
|
|
78
78
|
const profile = await identity.getProfile();
|
|
79
79
|
if (profile) return profile;
|
|
80
80
|
}
|
|
81
|
-
const { ProfileCollection } = await import("./ProfileCollection-
|
|
81
|
+
const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-B1_oDwPG.js").then((n) => n.o).then((n) => n.r);
|
|
82
82
|
const profiles = await (await ProfileCollection.create(options)).list({
|
|
83
83
|
where: { email: `${externalId}@users.noreply.github.com` },
|
|
84
84
|
limit: 1
|
|
@@ -99,7 +99,7 @@ async function reuseExistingOidcIdentityForProfile(profileId, claims, provider,
|
|
|
99
99
|
createConcurrencyError: (cause) => new Error("Concurrent exact OIDC identity reuse did not converge.", cause === void 0 ? void 0 : { cause }),
|
|
100
100
|
rebindRootResult: rebindOidcProfileResult,
|
|
101
101
|
provision: (tx) => withSystemContext(async () => {
|
|
102
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-
|
|
102
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-By9emBa2.js").then((n) => n.r).then((n) => n.r);
|
|
103
103
|
const identity = await (await OidcIdentityCollection.create({ db: tx })).findBySubject(normalizedClaims.iss, normalizedClaims.sub);
|
|
104
104
|
if (!identity) throw new Error("OidcIdentity.findOrCreate() no longer creates authentication links; use UserCollection.getOrCreateFromOidc() or createProfileFromOidc().");
|
|
105
105
|
if (identity.profileId !== profileId) throw new Error(`OIDC identity ${normalizedClaims.iss} subject ${normalizedClaims.sub} belongs to a different Profile.`);
|
|
@@ -133,7 +133,7 @@ async function coordinateProfileOidcProvisioning(claims, provider, options) {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
async function provisionOidcProfile(claims, provider, options) {
|
|
136
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-
|
|
136
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-By9emBa2.js").then((n) => n.r).then((n) => n.r);
|
|
137
137
|
const existingIdentity = await (await OidcIdentityCollection.create(options)).findBySubject(claims.iss, claims.sub);
|
|
138
138
|
if (existingIdentity) {
|
|
139
139
|
const profile2 = await existingIdentity.getProfile();
|
|
@@ -148,7 +148,7 @@ async function provisionOidcProfile(claims, provider, options) {
|
|
|
148
148
|
created: false
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
const { ProfileCollection } = await import("./ProfileCollection-
|
|
151
|
+
const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-B1_oDwPG.js").then((n) => n.o).then((n) => n.r);
|
|
152
152
|
const profileCollection = await ProfileCollection.create(options);
|
|
153
153
|
if (claims.email) {
|
|
154
154
|
if (await profileCollection.findUniqueGlobalPersonByEmail(claims.email)) {
|
|
@@ -175,8 +175,8 @@ async function provisionOidcProfile(claims, provider, options) {
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
async function rebindOidcProfileResult(result, rootDb) {
|
|
178
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-
|
|
179
|
-
const { ProfileCollection } = await import("./ProfileCollection-
|
|
178
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-By9emBa2.js").then((n) => n.r).then((n) => n.r);
|
|
179
|
+
const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-B1_oDwPG.js").then((n) => n.o).then((n) => n.r);
|
|
180
180
|
const profileId = requireOidcProfileId(result.profile.id);
|
|
181
181
|
const identityId = requireOidcProfileId(result.oidcIdentity.id);
|
|
182
182
|
const [profile, oidcIdentity] = await withSystemContext(async () => {
|
|
@@ -225,11 +225,11 @@ async function createProfileFromNostr(email, nostrData, options) {
|
|
|
225
225
|
created: false
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
const { Person } = await import("./oidcProvisioningPrimitives-
|
|
229
|
-
const { ProfileTypeCollection } = await import("./oidcProvisioningPrimitives-
|
|
228
|
+
const { Person } = await import("./oidcProvisioningPrimitives-CYood-2M-5BmKJPFx.js").then((n) => n.s).then((n) => n.o);
|
|
229
|
+
const { ProfileTypeCollection } = await import("./oidcProvisioningPrimitives-CYood-2M-5BmKJPFx.js").then((n) => n.s).then((n) => n.c);
|
|
230
230
|
let personType = await (await ProfileTypeCollection.create(options)).getBySlug("person");
|
|
231
231
|
if (!personType) {
|
|
232
|
-
const { ProfileType } = await import("./ProfileCollection-
|
|
232
|
+
const { ProfileType } = await import("./ProfileCollection-Bt6IJK49-B1_oDwPG.js").then((n) => n.o).then((n) => n.h);
|
|
233
233
|
personType = new ProfileType({
|
|
234
234
|
...options,
|
|
235
235
|
slug: "person",
|
|
@@ -266,4 +266,4 @@ async function createProfileFromNostr(email, nostrData, options) {
|
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
//#endregion
|
|
269
|
-
export {
|
|
269
|
+
export { resolveIdentity_CvGDegU6_exports as i, createProfileFromOidc as n, resolveIdentity as r, createProfileFromNostr as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-cli",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.3",
|
|
4
4
|
"description": "Developer CLI for SMRT framework - introspection, testing, and project management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@happyvertical/ai": "^0.
|
|
33
|
-
"@happyvertical/files": "^0.
|
|
34
|
-
"@happyvertical/logger": "^0.
|
|
35
|
-
"@happyvertical/smrt-agents": "0.54.
|
|
36
|
-
"@happyvertical/smrt-app-runtime": "0.54.
|
|
37
|
-
"@happyvertical/smrt-config": "0.54.
|
|
38
|
-
"@happyvertical/smrt-core": "0.54.
|
|
39
|
-
"@happyvertical/smrt-dev-mcp": "0.54.
|
|
40
|
-
"@happyvertical/smrt-ledgers": "0.54.
|
|
41
|
-
"@happyvertical/smrt-playground": "0.54.
|
|
42
|
-
"@happyvertical/smrt-types": "0.54.
|
|
43
|
-
"@happyvertical/smrt-users": "0.54.
|
|
44
|
-
"@happyvertical/sql": "^0.
|
|
45
|
-
"@happyvertical/utils": "^0.
|
|
32
|
+
"@happyvertical/ai": "^0.102.1",
|
|
33
|
+
"@happyvertical/files": "^0.102.1",
|
|
34
|
+
"@happyvertical/logger": "^0.102.1",
|
|
35
|
+
"@happyvertical/smrt-agents": "0.54.3",
|
|
36
|
+
"@happyvertical/smrt-app-runtime": "0.54.3",
|
|
37
|
+
"@happyvertical/smrt-config": "0.54.3",
|
|
38
|
+
"@happyvertical/smrt-core": "0.54.3",
|
|
39
|
+
"@happyvertical/smrt-dev-mcp": "0.54.3",
|
|
40
|
+
"@happyvertical/smrt-ledgers": "0.54.3",
|
|
41
|
+
"@happyvertical/smrt-playground": "0.54.3",
|
|
42
|
+
"@happyvertical/smrt-types": "0.54.3",
|
|
43
|
+
"@happyvertical/smrt-users": "0.54.3",
|
|
44
|
+
"@happyvertical/sql": "^0.102.1",
|
|
45
|
+
"@happyvertical/utils": "^0.102.1",
|
|
46
46
|
"acorn": "^8.18.0",
|
|
47
47
|
"fast-glob": "3.3.3",
|
|
48
48
|
"tar": "^7.5.22",
|