@happyvertical/smrt-cli 0.60.1 → 0.60.2

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 (21) hide show
  1. package/dist/{AuditLogCollection-BBbvr8Qc-CPM6jm_n.js → AuditLogCollection-BBbvr8Qc-0FVxySJg.js} +1 -1
  2. package/dist/{OidcIdentity-COeMidoC-DpPiuZdR.js → OidcIdentity-COeMidoC-CgiBvArT.js} +2 -2
  3. package/dist/{OidcIdentityCollection-D4DIZv0K-NGE-kBCp.js → OidcIdentityCollection-D4DIZv0K-CUTDzrLP.js} +1 -1
  4. package/dist/{PasswordCredentialService-DHJNKEeJ-le6Zr6Gs.js → PasswordCredentialService-DHJNKEeJ-CBzOjekS.js} +14 -14
  5. package/dist/{ProfileAssetCollection-D5-tG9Mm-Cm8HQsd3.js → ProfileAssetCollection-D5-tG9Mm-BodsDp3U.js} +3 -3
  6. package/dist/{ProfileCollection-CmRaiE9U-BnwWW6-d.js → ProfileCollection-CmRaiE9U-90_S7JNG.js} +17 -17
  7. package/dist/{ProfileLinkCollection-pvPTsysg-CX4emw8G.js → ProfileLinkCollection-pvPTsysg-D80KHdWY.js} +2 -2
  8. package/dist/{ProfileMetadataCollection-CAgJyjze-BfTbHv-f.js → ProfileMetadataCollection-CAgJyjze-DzZ2TwCf.js} +1 -1
  9. package/dist/{ProfileMetafieldCollection-19ae6Lpf-CwvhDPFi.js → ProfileMetafieldCollection-19ae6Lpf-CpLQPOTZ.js} +1 -1
  10. package/dist/{ProfileRelationshipCollection-BFSlTQ7J-CyhZIMyX.js → ProfileRelationshipCollection-BFSlTQ7J-CM6aNQwr.js} +1 -1
  11. package/dist/{ProfileTypeCollection-BRLK8cHS-a1i1QoZS.js → ProfileTypeCollection-BRLK8cHS-rpseucMd.js} +2 -2
  12. package/dist/{commands-BDH3GVgu.js → commands-1iBBR9Ul.js} +3 -3
  13. package/dist/{dist-SHyZa5gZ.js → dist-BFLhH4uK.js} +4 -4
  14. package/dist/{dist-BUmS5kBN.js → dist-Bw6WvsvD.js} +3 -3
  15. package/dist/{dist-CNhP_nYQ.js → dist-CoYKrqy0.js} +2 -2
  16. package/dist/{dist-CQLSglRa.js → dist-DrpDY3b5.js} +5 -5
  17. package/dist/index.js +11 -11
  18. package/dist/{oidcProvisioningPrimitives-KpIiLmG4-Dt76GaT-.js → oidcProvisioningPrimitives-KpIiLmG4-BYM2CSi2.js} +3 -3
  19. package/dist/{operator-Dxx_9-u4.js → operator-DWyDzbf3.js} +2 -2
  20. package/dist/{resolveIdentity-j2WFuKDT-DgYqw2nW.js → resolveIdentity-j2WFuKDT-DNEtYCkY.js} +14 -14
  21. package/package.json +10 -10
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
2
  import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
3
- import { t as OidcIdentity } from "./OidcIdentity-COeMidoC-DpPiuZdR.js";
4
- import { l as saveOidcRaceArbiter, n as Profile, r as ProfileCollection } from "./ProfileCollection-CmRaiE9U-BnwWW6-d.js";
5
- import { t as ProfileTypeCollection } from "./ProfileTypeCollection-BRLK8cHS-a1i1QoZS.js";
3
+ import { t as OidcIdentity } from "./OidcIdentity-COeMidoC-CgiBvArT.js";
4
+ import { l as saveOidcRaceArbiter, n as Profile, r as ProfileCollection } from "./ProfileCollection-CmRaiE9U-90_S7JNG.js";
5
+ import { t as ProfileTypeCollection } from "./ProfileTypeCollection-BRLK8cHS-rpseucMd.js";
6
6
  import { smrt } from "@happyvertical/smrt-core";
7
7
  //#region ../profiles/dist/chunks/oidcProvisioningPrimitives-KpIiLmG4.js
8
8
  var oidcProvisioningPrimitives_KpIiLmG4_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
- import { m as withSystemContext } from "./dist-CNhP_nYQ.js";
2
- import { Ct as TenantStatus, E as PasswordCredentialService, K as UserCollection, N as RoleCollection, Q as UsersPasswordCredentialCollection, V as TenantCollection, dt as normalizeUsername, g as MembershipCollection, ht as verifySecretHash, j as PermissionResolver, lt as normalizeEmail, st as isValidEmail, wt as UserStatus, yt as MembershipStatus } from "./PasswordCredentialService-DHJNKEeJ-le6Zr6Gs.js";
1
+ import { m as withSystemContext } from "./dist-CoYKrqy0.js";
2
+ import { Ct as TenantStatus, E as PasswordCredentialService, K as UserCollection, N as RoleCollection, Q as UsersPasswordCredentialCollection, V as TenantCollection, dt as normalizeUsername, g as MembershipCollection, ht as verifySecretHash, j as PermissionResolver, lt as normalizeEmail, st as isValidEmail, wt as UserStatus, yt as MembershipStatus } from "./PasswordCredentialService-DHJNKEeJ-CBzOjekS.js";
3
3
  import { isPostgresDatabase, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
4
4
  //#region ../users/dist/operator.js
5
5
  var OperatorProvisioningError = class extends Error {
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { m as withSystemContext } from "./dist-CNhP_nYQ.js";
2
+ import { m as withSystemContext } from "./dist-CoYKrqy0.js";
3
3
  import { a as verifyAuthEvent, n as __exportAll$1, t as NostrIdentity } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
4
4
  import { t as ApiKey } from "./ApiKey-9YuYcpWy-BdrXOe-N.js";
5
- import { t as OidcIdentity } from "./OidcIdentity-COeMidoC-DpPiuZdR.js";
6
- import { c as normalizeIdentityEmail, o as coordinateOidcProvisioning, s as isOidcProvisioningRaceConflict } from "./ProfileCollection-CmRaiE9U-BnwWW6-d.js";
7
- import { n as insertOidcProvisioningIdentity, t as createOidcProvisioningPerson } from "./oidcProvisioningPrimitives-KpIiLmG4-Dt76GaT-.js";
5
+ import { t as OidcIdentity } from "./OidcIdentity-COeMidoC-CgiBvArT.js";
6
+ import { c as normalizeIdentityEmail, o as coordinateOidcProvisioning, s as isOidcProvisioningRaceConflict } from "./ProfileCollection-CmRaiE9U-90_S7JNG.js";
7
+ import { n as insertOidcProvisioningIdentity, t as createOidcProvisioningPerson } from "./oidcProvisioningPrimitives-KpIiLmG4-BYM2CSi2.js";
8
8
  import { resolveDatabase } from "@happyvertical/smrt-core";
9
9
  //#region ../profiles/dist/chunks/resolveIdentity-j2WFuKDT.js
10
10
  var resolveIdentity_j2WFuKDT_exports = /* @__PURE__ */ __exportAll({
@@ -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-D4DIZv0K-NGE-kBCp.js").then((n) => n.r).then((n) => n.r);
75
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-D4DIZv0K-CUTDzrLP.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-CmRaiE9U-BnwWW6-d.js").then((n) => n.i).then((n) => n.r);
81
+ const { ProfileCollection } = await import("./ProfileCollection-CmRaiE9U-90_S7JNG.js").then((n) => n.i).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-D4DIZv0K-NGE-kBCp.js").then((n) => n.r).then((n) => n.r);
102
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-D4DIZv0K-CUTDzrLP.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-D4DIZv0K-NGE-kBCp.js").then((n) => n.r).then((n) => n.r);
136
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-D4DIZv0K-CUTDzrLP.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-CmRaiE9U-BnwWW6-d.js").then((n) => n.i).then((n) => n.r);
151
+ const { ProfileCollection } = await import("./ProfileCollection-CmRaiE9U-90_S7JNG.js").then((n) => n.i).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-D4DIZv0K-NGE-kBCp.js").then((n) => n.r).then((n) => n.r);
179
- const { ProfileCollection } = await import("./ProfileCollection-CmRaiE9U-BnwWW6-d.js").then((n) => n.i).then((n) => n.r);
178
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-D4DIZv0K-CUTDzrLP.js").then((n) => n.r).then((n) => n.r);
179
+ const { ProfileCollection } = await import("./ProfileCollection-CmRaiE9U-90_S7JNG.js").then((n) => n.i).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-KpIiLmG4-Dt76GaT-.js").then((n) => n.r).then((n) => n.o);
229
- const { ProfileTypeCollection } = await import("./ProfileTypeCollection-BRLK8cHS-a1i1QoZS.js").then((n) => n.n).then((n) => n.n);
228
+ const { Person } = await import("./oidcProvisioningPrimitives-KpIiLmG4-BYM2CSi2.js").then((n) => n.r).then((n) => n.o);
229
+ const { ProfileTypeCollection } = await import("./ProfileTypeCollection-BRLK8cHS-rpseucMd.js").then((n) => n.n).then((n) => n.n);
230
230
  let personType = await (await ProfileTypeCollection.create(options)).getBySlug("person");
231
231
  if (!personType) {
232
- const { ProfileType } = await import("./ProfileCollection-CmRaiE9U-BnwWW6-d.js").then((n) => n.i).then((n) => n.h);
232
+ const { ProfileType } = await import("./ProfileCollection-CmRaiE9U-90_S7JNG.js").then((n) => n.i).then((n) => n.h);
233
233
  personType = new ProfileType({
234
234
  ...options,
235
235
  slug: "person",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-cli",
3
- "version": "0.60.1",
3
+ "version": "0.60.2",
4
4
  "description": "Developer CLI for SMRT framework - introspection, testing, and project management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,15 +33,15 @@
33
33
  "@happyvertical/ai": "^0.111.3",
34
34
  "@happyvertical/files": "^0.111.3",
35
35
  "@happyvertical/logger": "^0.111.3",
36
- "@happyvertical/smrt-agents": "0.60.1",
37
- "@happyvertical/smrt-app-runtime": "0.60.1",
38
- "@happyvertical/smrt-config": "0.60.1",
39
- "@happyvertical/smrt-core": "0.60.1",
40
- "@happyvertical/smrt-dev-mcp": "0.60.1",
41
- "@happyvertical/smrt-ledgers": "0.60.1",
42
- "@happyvertical/smrt-playground": "0.60.1",
43
- "@happyvertical/smrt-types": "0.60.1",
44
- "@happyvertical/smrt-users": "0.60.1",
36
+ "@happyvertical/smrt-agents": "0.60.2",
37
+ "@happyvertical/smrt-app-runtime": "0.60.2",
38
+ "@happyvertical/smrt-config": "0.60.2",
39
+ "@happyvertical/smrt-core": "0.60.2",
40
+ "@happyvertical/smrt-dev-mcp": "0.60.2",
41
+ "@happyvertical/smrt-ledgers": "0.60.2",
42
+ "@happyvertical/smrt-playground": "0.60.2",
43
+ "@happyvertical/smrt-types": "0.60.2",
44
+ "@happyvertical/smrt-users": "0.60.2",
45
45
  "@happyvertical/sql": "^0.111.3",
46
46
  "@happyvertical/utils": "^0.111.3",
47
47
  "@modelcontextprotocol/server": "2.3.1",