@happyvertical/smrt-cli 0.54.2 → 0.54.4
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-BPTsPePh.js → AuditLogCollection-WDHL-_AF-Cm6c206j.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-DO8v8PPX.js → OidcIdentity-BjRu3n1g-DPfoJOJq.js} +11 -3
- package/dist/{OidcIdentityCollection-TV8VdK69-CKJPi8VX.js → OidcIdentityCollection-B4jYh36_-CDCS-lBk.js} +5 -5
- package/dist/{ProfileAssetCollection-B9hacUJa-60k6WDBo.js → ProfileAssetCollection-HeMtjBc0-BnvWWbZ6.js} +16 -7
- package/dist/{ProfileCollection-DuJT7Mum-DuFdSzQj.js → ProfileCollection-Bt6IJK49-ir8YINdu.js} +53 -29
- package/dist/{ProfileLinkCollection-4uNURz32-DMtNzJcf.js → ProfileLinkCollection-u1hhzKTm-DN7eng_7.js} +14 -6
- package/dist/{ProfileMetadataCollection-DQhbfEfa-BKwTBhrv.js → ProfileMetadataCollection-BIYKy4Y3-BUDJszIc.js} +13 -5
- package/dist/{ProfileMetafieldCollection-CoBuM_5G-BMLo_Rie.js → ProfileMetafieldCollection-Buz7gzag-DDlih_5j.js} +13 -5
- package/dist/{ProfileRelationshipCollection-DUVgaIqf-c_BIh5H0.js → ProfileRelationshipCollection-C4g_QLI4-QJJ__ROk.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-D-XOOzpO.js → commands-iFti-f80.js} +2 -2
- package/dist/{dist-DxolxjaP.js → dist-Bqg09MUx.js} +18 -2
- package/dist/dist-CrzK6GwA.js +20 -0
- package/dist/dist-D5GdZ8W6.js +4112 -0
- package/dist/{dist-DWOviNjs.js → dist-DIGbZpp6.js} +29 -5
- package/dist/dist-DJOzoOZn.js +1778 -0
- package/dist/index.js +26 -16
- package/dist/{oidcProvisioningPrimitives-D9OYu5-F-jUSih8OU.js → oidcProvisioningPrimitives-CYood-2M-D8npRnlS.js} +17 -7
- package/dist/{resolveIdentity-B-PK6RwU-Dp7_W7kZ.js → resolveIdentity-CvGDegU6-DkEz2oV8.js} +19 -19
- package/package.json +15 -15
- package/dist/dist-DqXOUqT-.js +0 -20
- package/dist/dist-NvkfhAbI.js +0 -3928
- package/dist/dist-RDQR2enZ.js +0 -1705
package/dist/index.js
CHANGED
|
@@ -49,63 +49,63 @@ var _playgroundCommands = null;
|
|
|
49
49
|
var _workbenchCommands = null;
|
|
50
50
|
async function getGnodeCommands() {
|
|
51
51
|
if (!_gnodeCommands) {
|
|
52
|
-
const { gnodeCommands } = await import("./commands-
|
|
52
|
+
const { gnodeCommands } = await import("./commands-iFti-f80.js");
|
|
53
53
|
_gnodeCommands = gnodeCommands;
|
|
54
54
|
}
|
|
55
55
|
return _gnodeCommands;
|
|
56
56
|
}
|
|
57
57
|
async function getGitCommands() {
|
|
58
58
|
if (!_gitCommands) {
|
|
59
|
-
const { gitCommands } = await import("./commands-
|
|
59
|
+
const { gitCommands } = await import("./commands-iFti-f80.js");
|
|
60
60
|
_gitCommands = gitCommands;
|
|
61
61
|
}
|
|
62
62
|
return _gitCommands;
|
|
63
63
|
}
|
|
64
64
|
async function getGenerateCommands() {
|
|
65
65
|
if (!_generateCommands) {
|
|
66
|
-
const { generateCommands } = await import("./commands-
|
|
66
|
+
const { generateCommands } = await import("./commands-iFti-f80.js");
|
|
67
67
|
_generateCommands = generateCommands;
|
|
68
68
|
}
|
|
69
69
|
return _generateCommands;
|
|
70
70
|
}
|
|
71
71
|
async function getInitCommands() {
|
|
72
72
|
if (!_initCommands) {
|
|
73
|
-
const { initCommands } = await import("./commands-
|
|
73
|
+
const { initCommands } = await import("./commands-iFti-f80.js");
|
|
74
74
|
_initCommands = initCommands;
|
|
75
75
|
}
|
|
76
76
|
return _initCommands;
|
|
77
77
|
}
|
|
78
78
|
async function getUtilityCommands() {
|
|
79
79
|
if (!_utilityCommands) {
|
|
80
|
-
const { utilityCommands } = await import("./commands-
|
|
80
|
+
const { utilityCommands } = await import("./commands-iFti-f80.js");
|
|
81
81
|
_utilityCommands = utilityCommands;
|
|
82
82
|
}
|
|
83
83
|
return _utilityCommands;
|
|
84
84
|
}
|
|
85
85
|
async function getDispatchCommands() {
|
|
86
86
|
if (!_dispatchCommands) {
|
|
87
|
-
const { dispatchCommands } = await import("./commands-
|
|
87
|
+
const { dispatchCommands } = await import("./commands-iFti-f80.js");
|
|
88
88
|
_dispatchCommands = dispatchCommands;
|
|
89
89
|
}
|
|
90
90
|
return _dispatchCommands;
|
|
91
91
|
}
|
|
92
92
|
async function getDocsCommands() {
|
|
93
93
|
if (!_docsCommands) {
|
|
94
|
-
const { docsCommands } = await import("./commands-
|
|
94
|
+
const { docsCommands } = await import("./commands-iFti-f80.js");
|
|
95
95
|
_docsCommands = docsCommands;
|
|
96
96
|
}
|
|
97
97
|
return _docsCommands;
|
|
98
98
|
}
|
|
99
99
|
async function getPlaygroundCommands() {
|
|
100
100
|
if (!_playgroundCommands) {
|
|
101
|
-
const { playgroundCommands } = await import("./commands-
|
|
101
|
+
const { playgroundCommands } = await import("./commands-iFti-f80.js");
|
|
102
102
|
_playgroundCommands = playgroundCommands;
|
|
103
103
|
}
|
|
104
104
|
return _playgroundCommands;
|
|
105
105
|
}
|
|
106
106
|
async function getWorkbenchCommands() {
|
|
107
107
|
if (!_workbenchCommands) {
|
|
108
|
-
const { workbenchCommands } = await import("./commands-
|
|
108
|
+
const { workbenchCommands } = await import("./commands-iFti-f80.js");
|
|
109
109
|
_workbenchCommands = workbenchCommands;
|
|
110
110
|
}
|
|
111
111
|
return _workbenchCommands;
|
|
@@ -778,7 +778,14 @@ var CLIGenerator = class {
|
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
780
|
let command = commands.find((cmd) => cmd.name === parsed.command || parsed.command && cmd.aliases?.includes(parsed.command));
|
|
781
|
-
if (!command && parsed.command)
|
|
781
|
+
if (!command && parsed.command) {
|
|
782
|
+
command = await this.findObjectCommand(parsed.command);
|
|
783
|
+
if (command && matchLeadingCommand(processedArgv, [command], {}).command) {
|
|
784
|
+
const reParsed = parseCliCommandArgs(processedArgv, [command], {});
|
|
785
|
+
parsed.args = reParsed.args;
|
|
786
|
+
parsed.options = reParsed.options;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
782
789
|
if (command) {
|
|
783
790
|
const requiredArgCount = countRequiredArgs(command.args);
|
|
784
791
|
if (parsed.args.length < requiredArgCount) {
|
|
@@ -1215,7 +1222,6 @@ var CLIGenerator = class {
|
|
|
1215
1222
|
}
|
|
1216
1223
|
const spinner = this.createSpinner(`Creating ${objectName}...`);
|
|
1217
1224
|
const result = await (await this.getCollection(objectName)).create(data);
|
|
1218
|
-
await result.save();
|
|
1219
1225
|
spinner.succeed(`Created ${objectName} with ID: ${result.id}`);
|
|
1220
1226
|
if (!options.quiet) console.log(JSON.stringify(result, null, 2));
|
|
1221
1227
|
} catch (error) {
|
|
@@ -1227,7 +1233,8 @@ var CLIGenerator = class {
|
|
|
1227
1233
|
*/
|
|
1228
1234
|
async handleUpdate(objectName, id, options) {
|
|
1229
1235
|
try {
|
|
1230
|
-
const
|
|
1236
|
+
const collection = await this.getCollection(objectName);
|
|
1237
|
+
const existing = await collection.get(id);
|
|
1231
1238
|
if (!existing) {
|
|
1232
1239
|
this.exitWithError(`${objectName} not found`);
|
|
1233
1240
|
return;
|
|
@@ -1246,8 +1253,10 @@ var CLIGenerator = class {
|
|
|
1246
1253
|
}
|
|
1247
1254
|
}
|
|
1248
1255
|
const spinner = this.createSpinner(`Updating ${objectName}...`);
|
|
1249
|
-
|
|
1250
|
-
|
|
1256
|
+
await collection.withAuditMutation(existing, "updated", async (bound) => {
|
|
1257
|
+
Object.assign(bound, data);
|
|
1258
|
+
await bound.save();
|
|
1259
|
+
});
|
|
1251
1260
|
spinner.succeed(`Updated ${objectName}`);
|
|
1252
1261
|
if (!options.quiet) console.log(JSON.stringify(existing, null, 2));
|
|
1253
1262
|
} catch (error) {
|
|
@@ -1259,7 +1268,8 @@ var CLIGenerator = class {
|
|
|
1259
1268
|
*/
|
|
1260
1269
|
async handleDelete(objectName, id, options) {
|
|
1261
1270
|
try {
|
|
1262
|
-
const
|
|
1271
|
+
const collection = await this.getCollection(objectName);
|
|
1272
|
+
const existing = await collection.get(id);
|
|
1263
1273
|
if (!existing) {
|
|
1264
1274
|
this.exitWithError(`${objectName} not found`);
|
|
1265
1275
|
return;
|
|
@@ -1272,7 +1282,7 @@ var CLIGenerator = class {
|
|
|
1272
1282
|
}
|
|
1273
1283
|
}
|
|
1274
1284
|
const spinner = this.createSpinner(`Deleting ${objectName}...`);
|
|
1275
|
-
await
|
|
1285
|
+
await collection.delete(id);
|
|
1276
1286
|
spinner.succeed(`Deleted ${objectName}`);
|
|
1277
1287
|
} catch (error) {
|
|
1278
1288
|
this.exitWithError(error instanceof Error ? error.message : "Unknown error");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { c as isSystemContext } from "./dist-
|
|
3
|
-
import { n as __exportAll$1 } from "./NostrIdentity-
|
|
4
|
-
import { t as OidcIdentity } from "./OidcIdentity-
|
|
5
|
-
import { a as ProfileCollection, f as saveOidcRaceArbiter, i as Profile, s as ProfileType } from "./ProfileCollection-
|
|
2
|
+
import { c as isSystemContext } from "./dist-Bqg09MUx.js";
|
|
3
|
+
import { n as __exportAll$1 } from "./NostrIdentity-AC8fAdxe-DKxKyu_a.js";
|
|
4
|
+
import { t as OidcIdentity } from "./OidcIdentity-BjRu3n1g-DPfoJOJq.js";
|
|
5
|
+
import { a as ProfileCollection, f as saveOidcRaceArbiter, i as Profile, s as ProfileType } from "./ProfileCollection-Bt6IJK49-ir8YINdu.js";
|
|
6
6
|
import { SmrtCollection, smrt } from "@happyvertical/smrt-core";
|
|
7
|
-
//#region ../profiles/dist/chunks/oidcProvisioningPrimitives-
|
|
8
|
-
var
|
|
7
|
+
//#region ../profiles/dist/chunks/oidcProvisioningPrimitives-CYood-2M.js
|
|
8
|
+
var oidcProvisioningPrimitives_CYood_2M_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
a: () => Person,
|
|
10
10
|
c: () => ProfileTypeCollection_exports,
|
|
11
11
|
i: () => Organization,
|
|
@@ -98,29 +98,39 @@ var ProfileTypes_exports = /* @__PURE__ */ __exportAll$1({
|
|
|
98
98
|
});
|
|
99
99
|
var __defProp = Object.defineProperty;
|
|
100
100
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
101
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
configurable: true,
|
|
104
|
+
writable: true,
|
|
105
|
+
value
|
|
106
|
+
}) : obj[key] = value;
|
|
101
107
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
102
108
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
103
109
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
104
110
|
if (kind && result) __defProp(target, key, result);
|
|
105
111
|
return result;
|
|
106
112
|
};
|
|
113
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
107
114
|
var Person = class extends Profile {
|
|
108
115
|
constructor(options = {}) {
|
|
109
116
|
super(options);
|
|
110
117
|
}
|
|
111
118
|
};
|
|
119
|
+
__publicField(Person, "__smrtPackage__", "@happyvertical/smrt-profiles");
|
|
112
120
|
Person = __decorateClass([smrt({ tableStrategy: "sti" })], Person);
|
|
113
121
|
var Organization = class extends Profile {
|
|
114
122
|
constructor(options = {}) {
|
|
115
123
|
super(options);
|
|
116
124
|
}
|
|
117
125
|
};
|
|
126
|
+
__publicField(Organization, "__smrtPackage__", "@happyvertical/smrt-profiles");
|
|
118
127
|
Organization = __decorateClass([smrt({ tableStrategy: "sti" })], Organization);
|
|
119
128
|
var Bot = class extends Profile {
|
|
120
129
|
constructor(options = {}) {
|
|
121
130
|
super(options);
|
|
122
131
|
}
|
|
123
132
|
};
|
|
133
|
+
__publicField(Bot, "__smrtPackage__", "@happyvertical/smrt-profiles");
|
|
124
134
|
Bot = __decorateClass([smrt({ tableStrategy: "sti" })], Bot);
|
|
125
135
|
async function createOidcProvisioningPerson(db, input) {
|
|
126
136
|
const typeId = requireProvisioningId((await (await ProfileTypeCollection.create({ db })).getOrCreateGlobalBySlug("person", {
|
|
@@ -158,4 +168,4 @@ function requireProvisioningId(value, label) {
|
|
|
158
168
|
return value;
|
|
159
169
|
}
|
|
160
170
|
//#endregion
|
|
161
|
-
export { createOidcProvisioningPerson as a, ProfileTypeCollection as i, Organization as n, insertOidcProvisioningIdentity as o, Person as r,
|
|
171
|
+
export { createOidcProvisioningPerson as a, ProfileTypeCollection as i, Organization as n, insertOidcProvisioningIdentity as o, Person as r, oidcProvisioningPrimitives_CYood_2M_exports as s, Bot as t };
|
|
@@ -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-Bqg09MUx.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-DPfoJOJq.js";
|
|
6
|
+
import { c as coordinateOidcProvisioning, l as isOidcProvisioningRaceConflict, u as normalizeIdentityEmail } from "./ProfileCollection-Bt6IJK49-ir8YINdu.js";
|
|
7
|
+
import { a as createOidcProvisioningPerson, o as insertOidcProvisioningIdentity } from "./oidcProvisioningPrimitives-CYood-2M-D8npRnlS.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_-CDCS-lBk.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-ir8YINdu.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_-CDCS-lBk.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_-CDCS-lBk.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-ir8YINdu.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_-CDCS-lBk.js").then((n) => n.r).then((n) => n.r);
|
|
179
|
+
const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-ir8YINdu.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-D8npRnlS.js").then((n) => n.s).then((n) => n.o);
|
|
229
|
+
const { ProfileTypeCollection } = await import("./oidcProvisioningPrimitives-CYood-2M-D8npRnlS.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-ir8YINdu.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.4",
|
|
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.4",
|
|
36
|
+
"@happyvertical/smrt-app-runtime": "0.54.4",
|
|
37
|
+
"@happyvertical/smrt-config": "0.54.4",
|
|
38
|
+
"@happyvertical/smrt-core": "0.54.4",
|
|
39
|
+
"@happyvertical/smrt-dev-mcp": "0.54.4",
|
|
40
|
+
"@happyvertical/smrt-ledgers": "0.54.4",
|
|
41
|
+
"@happyvertical/smrt-playground": "0.54.4",
|
|
42
|
+
"@happyvertical/smrt-types": "0.54.4",
|
|
43
|
+
"@happyvertical/smrt-users": "0.54.4",
|
|
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",
|
package/dist/dist-DqXOUqT-.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
2
|
-
import "./ApiKey-BZmbOTnL-BbZupUZ3.js";
|
|
3
|
-
import "./ApiKeyCollection-Bfb_nw81-DYAZwx0O.js";
|
|
4
|
-
import "./AuditLogCollection-B1YonCAP-BPTsPePh.js";
|
|
5
|
-
import "./NostrIdentityCollection-Ca74dkaL-DvjOg9Xy.js";
|
|
6
|
-
import "./OidcIdentity-Cb1bxreM-DO8v8PPX.js";
|
|
7
|
-
import "./OidcIdentityCollection-TV8VdK69-CKJPi8VX.js";
|
|
8
|
-
import "./ProfileAssetCollection-B9hacUJa-60k6WDBo.js";
|
|
9
|
-
import { a as ProfileCollection } from "./ProfileCollection-DuJT7Mum-DuFdSzQj.js";
|
|
10
|
-
import "./ProfileLinkCollection-4uNURz32-DMtNzJcf.js";
|
|
11
|
-
import "./ProfileMetadataCollection-DQhbfEfa-BKwTBhrv.js";
|
|
12
|
-
import "./ProfileMetafieldCollection-CoBuM_5G-BMLo_Rie.js";
|
|
13
|
-
import "./ProfileRelationshipCollection-DUVgaIqf-c_BIh5H0.js";
|
|
14
|
-
import "./ProfileRelationshipTermCollection-DtA9OM23-BoGhQBSQ.js";
|
|
15
|
-
import "./ProfileRelationshipType-BRiRka6t-Dezjv5jP.js";
|
|
16
|
-
import "./ProfileRelationshipTypeCollection-BdXwd7Kf-HoTmV1q-.js";
|
|
17
|
-
import "./oidcProvisioningPrimitives-D9OYu5-F-jUSih8OU.js";
|
|
18
|
-
import "./resolveIdentity-B-PK6RwU-Dp7_W7kZ.js";
|
|
19
|
-
import "./dist-NvkfhAbI.js";
|
|
20
|
-
export { ProfileCollection };
|