@happyvertical/smrt-cli 0.54.4 → 0.55.0

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 (25) hide show
  1. package/dist/{AuditLogCollection-WDHL-_AF-Cm6c206j.js → AuditLogCollection-WDHL-_AF-DX3E2T8N.js} +1 -1
  2. package/dist/{OidcIdentity-BjRu3n1g-DPfoJOJq.js → OidcIdentity-BjRu3n1g-CDe9x3H4.js} +2 -2
  3. package/dist/{OidcIdentityCollection-B4jYh36_-CDCS-lBk.js → OidcIdentityCollection-B4jYh36_-C1oRTUpg.js} +1 -1
  4. package/dist/{ProfileAssetCollection-HeMtjBc0-BnvWWbZ6.js → ProfileAssetCollection-HeMtjBc0-CgCD0JbD.js} +3 -3
  5. package/dist/{ProfileCollection-Bt6IJK49-ir8YINdu.js → ProfileCollection-Bt6IJK49-DBqiNPOC.js} +16 -16
  6. package/dist/{ProfileLinkCollection-u1hhzKTm-DN7eng_7.js → ProfileLinkCollection-u1hhzKTm-CpUpK0hy.js} +2 -2
  7. package/dist/{ProfileMetadataCollection-BIYKy4Y3-BUDJszIc.js → ProfileMetadataCollection-BIYKy4Y3-BxG7J_LE.js} +1 -1
  8. package/dist/{ProfileMetafieldCollection-Buz7gzag-DDlih_5j.js → ProfileMetafieldCollection-Buz7gzag-C6-M3UC5.js} +1 -1
  9. package/dist/{ProfileRelationshipCollection-C4g_QLI4-QJJ__ROk.js → ProfileRelationshipCollection-C4g_QLI4-CBcKkX8B.js} +1 -1
  10. package/dist/cli-generator.d.ts.map +1 -1
  11. package/dist/commands/db-command-utils.d.ts +8 -14
  12. package/dist/commands/db-command-utils.d.ts.map +1 -1
  13. package/dist/commands/utilities.d.ts.map +1 -1
  14. package/dist/{commands-iFti-f80.js → commands-CMSkayf7.js} +62 -123
  15. package/dist/db-command-utils-Cn8tjy7N.js +40 -0
  16. package/dist/{dist-DIGbZpp6.js → dist-BohGxrxH.js} +4 -4
  17. package/dist/{dist-Bqg09MUx.js → dist-BqPmty2V.js} +2 -2
  18. package/dist/{dist-DJOzoOZn.js → dist-CZX3a2M0.js} +3 -3
  19. package/dist/{dist-D5GdZ8W6.js → dist-CzyJ1JlI.js} +15 -15
  20. package/dist/dist-cID_nI8e.js +20 -0
  21. package/dist/index.js +13 -10
  22. package/dist/{oidcProvisioningPrimitives-CYood-2M-D8npRnlS.js → oidcProvisioningPrimitives-CYood-2M-DBI73_rU.js} +3 -3
  23. package/dist/{resolveIdentity-CvGDegU6-DkEz2oV8.js → resolveIdentity-CvGDegU6-BCmnlTTo.js} +14 -14
  24. package/package.json +10 -10
  25. package/dist/dist-CrzK6GwA.js +0 -20
@@ -0,0 +1,20 @@
1
+ import "./NostrIdentity-AC8fAdxe-DKxKyu_a.js";
2
+ import "./ApiKey-CVmlf3V6-BAeHuH48.js";
3
+ import "./ApiKeyCollection-CiiDNFdD-CMGF3_ul.js";
4
+ import "./AuditLogCollection-WDHL-_AF-DX3E2T8N.js";
5
+ import "./NostrIdentityCollection-CctlECpX-fkAPnK02.js";
6
+ import "./OidcIdentity-BjRu3n1g-CDe9x3H4.js";
7
+ import "./OidcIdentityCollection-B4jYh36_-C1oRTUpg.js";
8
+ import "./ProfileAssetCollection-HeMtjBc0-CgCD0JbD.js";
9
+ import { a as ProfileCollection } from "./ProfileCollection-Bt6IJK49-DBqiNPOC.js";
10
+ import "./ProfileLinkCollection-u1hhzKTm-CpUpK0hy.js";
11
+ import "./ProfileMetadataCollection-BIYKy4Y3-BxG7J_LE.js";
12
+ import "./ProfileMetafieldCollection-Buz7gzag-C6-M3UC5.js";
13
+ import "./ProfileRelationshipCollection-C4g_QLI4-CBcKkX8B.js";
14
+ import "./ProfileRelationshipTermCollection-C9J7mC7P-ChIFqjCg.js";
15
+ import "./ProfileRelationshipType-U7IwF6Wf-DNavf24e.js";
16
+ import "./ProfileRelationshipTypeCollection-_n22WqTb-DiZUWvev.js";
17
+ import "./oidcProvisioningPrimitives-CYood-2M-DBI73_rU.js";
18
+ import "./resolveIdentity-CvGDegU6-BCmnlTTo.js";
19
+ import "./dist-CzyJ1JlI.js";
20
+ export { ProfileCollection };
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-iFti-f80.js");
52
+ const { gnodeCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
59
+ const { gitCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
66
+ const { generateCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
73
+ const { initCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
80
+ const { utilityCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
87
+ const { dispatchCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
94
+ const { docsCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
101
+ const { playgroundCommands } = await import("./commands-CMSkayf7.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-iFti-f80.js");
108
+ const { workbenchCommands } = await import("./commands-CMSkayf7.js");
109
109
  _workbenchCommands = workbenchCommands;
110
110
  }
111
111
  return _workbenchCommands;
@@ -1486,7 +1486,10 @@ var CLIGenerator = class {
1486
1486
  type: config.database.type,
1487
1487
  url: config.database.url
1488
1488
  });
1489
- if (config.verbose) console.log(`[CLI] Using database: ${config.database.url}`);
1489
+ if (config.verbose) {
1490
+ const { formatDatabaseDisplayUrl } = await import("./db-command-utils-Cn8tjy7N.js").then((n) => n.n);
1491
+ console.log(`[CLI] Using database: ${formatDatabaseDisplayUrl(config.database.type ?? "sqlite", config.database.url ?? "")}`);
1492
+ }
1490
1493
  }
1491
1494
  const collection = new classInfo.collectionConstructor({
1492
1495
  ai: this.context.ai,
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { c as isSystemContext } from "./dist-Bqg09MUx.js";
2
+ import { c as isSystemContext } from "./dist-BqPmty2V.js";
3
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";
4
+ import { t as OidcIdentity } from "./OidcIdentity-BjRu3n1g-CDe9x3H4.js";
5
+ import { a as ProfileCollection, f as saveOidcRaceArbiter, i as Profile, s as ProfileType } from "./ProfileCollection-Bt6IJK49-DBqiNPOC.js";
6
6
  import { SmrtCollection, smrt } from "@happyvertical/smrt-core";
7
7
  //#region ../profiles/dist/chunks/oidcProvisioningPrimitives-CYood-2M.js
8
8
  var oidcProvisioningPrimitives_CYood_2M_exports = /* @__PURE__ */ __exportAll({
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { l as withSystemContext } from "./dist-Bqg09MUx.js";
2
+ import { l as withSystemContext } from "./dist-BqPmty2V.js";
3
3
  import { n as __exportAll$1, t as NostrIdentity, u as verifyAuthEvent } from "./NostrIdentity-AC8fAdxe-DKxKyu_a.js";
4
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";
5
+ import { t as OidcIdentity } from "./OidcIdentity-BjRu3n1g-CDe9x3H4.js";
6
+ import { c as coordinateOidcProvisioning, l as isOidcProvisioningRaceConflict, u as normalizeIdentityEmail } from "./ProfileCollection-Bt6IJK49-DBqiNPOC.js";
7
+ import { a as createOidcProvisioningPerson, o as insertOidcProvisioningIdentity } from "./oidcProvisioningPrimitives-CYood-2M-DBI73_rU.js";
8
8
  import { resolveDatabase } from "@happyvertical/smrt-core";
9
9
  //#region ../profiles/dist/chunks/resolveIdentity-CvGDegU6.js
10
10
  var resolveIdentity_CvGDegU6_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-B4jYh36_-CDCS-lBk.js").then((n) => n.r).then((n) => n.r);
75
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-C1oRTUpg.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-Bt6IJK49-ir8YINdu.js").then((n) => n.o).then((n) => n.r);
81
+ const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-DBqiNPOC.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-B4jYh36_-CDCS-lBk.js").then((n) => n.r).then((n) => n.r);
102
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-C1oRTUpg.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-B4jYh36_-CDCS-lBk.js").then((n) => n.r).then((n) => n.r);
136
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-C1oRTUpg.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-Bt6IJK49-ir8YINdu.js").then((n) => n.o).then((n) => n.r);
151
+ const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-DBqiNPOC.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-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);
178
+ const { OidcIdentityCollection } = await import("./OidcIdentityCollection-B4jYh36_-C1oRTUpg.js").then((n) => n.r).then((n) => n.r);
179
+ const { ProfileCollection } = await import("./ProfileCollection-Bt6IJK49-DBqiNPOC.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-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);
228
+ const { Person } = await import("./oidcProvisioningPrimitives-CYood-2M-DBI73_rU.js").then((n) => n.s).then((n) => n.o);
229
+ const { ProfileTypeCollection } = await import("./oidcProvisioningPrimitives-CYood-2M-DBI73_rU.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-Bt6IJK49-ir8YINdu.js").then((n) => n.o).then((n) => n.h);
232
+ const { ProfileType } = await import("./ProfileCollection-Bt6IJK49-DBqiNPOC.js").then((n) => n.o).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.54.4",
3
+ "version": "0.55.0",
4
4
  "description": "Developer CLI for SMRT framework - introspection, testing, and project management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,15 +32,15 @@
32
32
  "@happyvertical/ai": "^0.102.1",
33
33
  "@happyvertical/files": "^0.102.1",
34
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",
35
+ "@happyvertical/smrt-agents": "0.55.0",
36
+ "@happyvertical/smrt-app-runtime": "0.55.0",
37
+ "@happyvertical/smrt-config": "0.55.0",
38
+ "@happyvertical/smrt-core": "0.55.0",
39
+ "@happyvertical/smrt-dev-mcp": "0.55.0",
40
+ "@happyvertical/smrt-ledgers": "0.55.0",
41
+ "@happyvertical/smrt-playground": "0.55.0",
42
+ "@happyvertical/smrt-types": "0.55.0",
43
+ "@happyvertical/smrt-users": "0.55.0",
44
44
  "@happyvertical/sql": "^0.102.1",
45
45
  "@happyvertical/utils": "^0.102.1",
46
46
  "acorn": "^8.18.0",
@@ -1,20 +0,0 @@
1
- import "./NostrIdentity-AC8fAdxe-DKxKyu_a.js";
2
- import "./ApiKey-CVmlf3V6-BAeHuH48.js";
3
- import "./ApiKeyCollection-CiiDNFdD-CMGF3_ul.js";
4
- import "./AuditLogCollection-WDHL-_AF-Cm6c206j.js";
5
- import "./NostrIdentityCollection-CctlECpX-fkAPnK02.js";
6
- import "./OidcIdentity-BjRu3n1g-DPfoJOJq.js";
7
- import "./OidcIdentityCollection-B4jYh36_-CDCS-lBk.js";
8
- import "./ProfileAssetCollection-HeMtjBc0-BnvWWbZ6.js";
9
- import { a as ProfileCollection } from "./ProfileCollection-Bt6IJK49-ir8YINdu.js";
10
- import "./ProfileLinkCollection-u1hhzKTm-DN7eng_7.js";
11
- import "./ProfileMetadataCollection-BIYKy4Y3-BUDJszIc.js";
12
- import "./ProfileMetafieldCollection-Buz7gzag-DDlih_5j.js";
13
- import "./ProfileRelationshipCollection-C4g_QLI4-QJJ__ROk.js";
14
- import "./ProfileRelationshipTermCollection-C9J7mC7P-ChIFqjCg.js";
15
- import "./ProfileRelationshipType-U7IwF6Wf-DNavf24e.js";
16
- import "./ProfileRelationshipTypeCollection-_n22WqTb-DiZUWvev.js";
17
- import "./oidcProvisioningPrimitives-CYood-2M-D8npRnlS.js";
18
- import "./resolveIdentity-CvGDegU6-DkEz2oV8.js";
19
- import "./dist-D5GdZ8W6.js";
20
- export { ProfileCollection };