@happyvertical/smrt-cli 0.57.23 → 0.57.24
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/{AuditLogCollection-BBbvr8Qc-DZYbzYx8.js → AuditLogCollection-BBbvr8Qc-Dqw-ynXC.js} +1 -1
- package/dist/{OidcIdentity-MVVO3MfG-DIltE6ey.js → OidcIdentity-MVVO3MfG-x9rYWS8z.js} +2 -2
- package/dist/{OidcIdentityCollection-s4mp3n62-Dik4MTJN.js → OidcIdentityCollection-s4mp3n62-D_BbQAjO.js} +1 -1
- package/dist/{PasswordCredentialService-DA2Y6H2X-Dhg6UkSO.js → PasswordCredentialService-DA2Y6H2X-dHs-1zBY.js} +14 -14
- package/dist/{ProfileAssetCollection-BuVAdOiv-CPMuilwv.js → ProfileAssetCollection-BuVAdOiv-BXX-fyoG.js} +3 -3
- package/dist/{ProfileCollection-CMS9dFc0-DNzpDx4K.js → ProfileCollection-CMS9dFc0-BmdemWaJ.js} +17 -17
- package/dist/{ProfileLinkCollection-ChK9iEBp-DF-YBKA6.js → ProfileLinkCollection-ChK9iEBp-BKdqxXEM.js} +2 -2
- package/dist/{ProfileMetadataCollection-CAgJyjze-B5IXB2tC.js → ProfileMetadataCollection-CAgJyjze-hWkqEsus.js} +1 -1
- package/dist/{ProfileMetafieldCollection-19ae6Lpf-DP-FUB0i.js → ProfileMetafieldCollection-19ae6Lpf-DA5BbxIt.js} +1 -1
- package/dist/{ProfileRelationshipCollection-BFSlTQ7J-B2hsfBOv.js → ProfileRelationshipCollection-BFSlTQ7J-DRU6gEOa.js} +1 -1
- package/dist/{ProfileTypeCollection-B7m698Bl-8O9DxQC4.js → ProfileTypeCollection-B7m698Bl-DdKMi0rF.js} +2 -2
- package/dist/{commands-CCURMRtb.js → commands-BKqW6iBo.js} +3 -3
- package/dist/{dist-fhRWoLuV.js → dist-CnTtCmgs.js} +3 -3
- package/dist/{dist-BQ4PVpYU.js → dist-Druho0zc.js} +5 -5
- package/dist/{dist-DzCtC4gS.js → dist-DxocbtSn.js} +4 -4
- package/dist/{dist-BrXuCmDv.js → dist-_PKbgmou.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-CfP3nz3g.js → oidcProvisioningPrimitives-Dl9qIcYS-8a2XpagG.js} +3 -3
- package/dist/{operator-DZPD9ZHf.js → operator-htxpDDY_.js} +2 -2
- package/dist/{resolveIdentity-CR5p_g7K-9JKdT5OJ.js → resolveIdentity-CR5p_g7K-KXtHAblr.js} +14 -14
- package/package.json +10 -10
|
@@ -283,7 +283,7 @@ async function runTenantHierarchyReadScope(scope, callback) {
|
|
|
283
283
|
createLogger({ level: "info" });
|
|
284
284
|
//#endregion
|
|
285
285
|
//#region ../tenancy/dist/index.js
|
|
286
|
-
ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-tenancy","packageVersion":"0.57.
|
|
286
|
+
ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-tenancy","packageVersion":"0.57.24","objects":{"@happyvertical/smrt-tenancy:BillingRelationship":{"name":"billingrelationship","className":"BillingRelationship","qualifiedName":"@happyvertical/smrt-tenancy:BillingRelationship","collection":"billingrelationships","filePath":"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts","packageName":"@happyvertical/smrt-tenancy","fields":{"childTenantId":{"type":"crossPackageRef","required":true,"related":"@happyvertical/smrt-users:Tenant","_meta":{"required":true}},"resellerTenantId":{"type":"crossPackageRef","required":true,"related":"@happyvertical/smrt-users:Tenant","_meta":{"required":true}},"billingOwnerMode":{"type":"text","required":false,"default":"self","enum":["self","reseller"]}},"methods":{},"decoratorConfig":{"tableName":"_smrt_billing_relationships","conflictColumns":["child_tenant_id"],"api":false,"cli":false,"mcp":false},"extends":"SmrtObject","exportName":"BillingRelationship","collectionExportName":"BillingRelationshipCollection","validationRules":[{"field":"childTenantId","rule":"required","fieldType":"crossPackageRef"},{"field":"resellerTenantId","rule":"required","fieldType":"crossPackageRef"}],"schema":{"tableName":"_smrt_billing_relationships","ddl":"CREATE TABLE IF NOT EXISTS \\"_smrt_billing_relationships\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"child_tenant_id\\" UUID NOT NULL,\\n \\"reseller_tenant_id\\" UUID NOT NULL,\\n \\"billing_owner_mode\\" TEXT DEFAULT 'self'\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"child_tenant_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":true,"unique":false},"reseller_tenant_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":true,"unique":false},"billing_owner_mode":{"type":"TEXT","notNull":false,"unique":false,"default":"self"}},"indexes":[{"name":"_smrt_billing_relationships_child_tenant_id_idx","columns":["child_tenant_id"],"unique":true},{"name":"_smrt_billing_relationships_slug_context_idx","columns":["slug","context"]},{"name":"_smrt_billing_relationships_created_at_idx","columns":["created_at"]},{"name":"_smrt_billing_relationships_reseller_tenant_id_idx","columns":["reseller_tenant_id"]}],"version":"4d7f410a"},"importPath":"@happyvertical/smrt-tenancy"},"@happyvertical/smrt-tenancy:BillingRelationshipCollection":{"name":"billingrelationshipcollection","className":"BillingRelationshipCollection","qualifiedName":"@happyvertical/smrt-tenancy:BillingRelationshipCollection","collection":"billingrelationships","filePath":"/home/runner/work/smrt/smrt/packages/tenancy/src/billing-relationship.ts","packageName":"@happyvertical/smrt-tenancy","fields":{},"methods":{},"decoratorConfig":{"tableName":"_smrt_billing_relationships","api":false,"mcp":false,"cli":false},"extends":"SmrtCollection","extendsTypeArg":"BillingRelationship","exportName":"BillingRelationshipCollection","collectionExportName":"BillingRelationshipCollectionCollection","schema":{"tableName":"_smrt_billing_relationships","ddl":"CREATE TABLE IF NOT EXISTS \\"_smrt_billing_relationships\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"child_tenant_id\\" UUID NOT NULL,\\n \\"reseller_tenant_id\\" UUID NOT NULL,\\n \\"billing_owner_mode\\" TEXT DEFAULT 'self'\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"child_tenant_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":true,"unique":false},"reseller_tenant_id":{"type":"UUID","referenceKind":"crossPackageRef","notNull":true,"unique":false},"billing_owner_mode":{"type":"TEXT","notNull":false,"unique":false,"default":"self"}},"indexes":[{"name":"_smrt_billing_relationships_child_tenant_id_idx","columns":["child_tenant_id"],"unique":true},{"name":"_smrt_billing_relationships_slug_context_idx","columns":["slug","context"]},{"name":"_smrt_billing_relationships_created_at_idx","columns":["created_at"]},{"name":"_smrt_billing_relationships_reseller_tenant_id_idx","columns":["reseller_tenant_id"]}],"version":"4d7f410a"},"importPath":"@happyvertical/smrt-tenancy"}},"moduleType":"smrt","smrtDependencies":["@happyvertical/smrt-core"],"browser":{"status":"server-only","issues":["#3624"],"reason":"node:async_hooks"},"stampsConstructors":true}`));
|
|
287
287
|
var __defProp$2 = Object.defineProperty;
|
|
288
288
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
289
289
|
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
@@ -398,7 +398,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
398
398
|
if (!no_symbols) __defProp$1(target, Symbol.toStringTag, { value: "Module" });
|
|
399
399
|
return target;
|
|
400
400
|
};
|
|
401
|
-
ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-prompts","packageVersion":"0.57.
|
|
401
|
+
ObjectRegistry.registerPackageManifest(JSON.parse(`{"version":"1.0.0","timestamp":0,"packageName":"@happyvertical/smrt-prompts","packageVersion":"0.57.24","objects":{"@happyvertical/smrt-prompts:PromptOverrideCollection":{"name":"promptoverridecollection","className":"PromptOverrideCollection","qualifiedName":"@happyvertical/smrt-prompts:PromptOverrideCollection","collection":"promptoverrides","filePath":"/home/runner/work/smrt/smrt/packages/prompts/src/collections/PromptOverrideCollection.ts","packageName":"@happyvertical/smrt-prompts","fields":{},"methods":{"getAppOverride":{"name":"getAppOverride","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"options","type":"object","optional":true,"memberTypes":["string"]}],"returnType":"Promise<PromptOverride | null>","isStatic":false,"isPublic":true},"getTenantOverride":{"name":"getTenantOverride","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"tenantId","type":"string","optional":false},{"name":"options","type":"object","optional":true,"memberTypes":["string"]}],"returnType":"Promise<PromptOverride | null>","isStatic":false,"isPublic":true},"getResolutionLayers":{"name":"getResolutionLayers","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"tenantId","type":"string | null","optional":true,"unionBranches":[{"type":"string"},{"type":"null"}]},{"name":"options","type":"object","optional":true,"memberTypes":["string"]}],"returnType":"Promise<object>","isStatic":false,"isPublic":true},"getOverrideMapForKeys":{"name":"getOverrideMapForKeys","async":true,"parameters":[{"name":"keys","type":"string[]","optional":false},{"name":"scopeType","type":"PromptOverrideScopeType","optional":false},{"name":"scopeId","type":"string","optional":false}],"returnType":"Promise<Map<string, PromptOverride>>","isStatic":false,"isPublic":true},"findByScope":{"name":"findByScope","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"scopeType","type":"PromptOverrideScopeType","optional":false},{"name":"scopeId","type":"string","optional":false}],"returnType":"Promise<PromptOverride | null>","isStatic":false,"isPublic":true},"setTemplateOverride":{"name":"setTemplateOverride","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"scopeType","type":"PromptOverrideScopeType","optional":false},{"name":"scopeId","type":"string","optional":false},{"name":"template","type":"string | null","optional":false,"unionBranches":[{"type":"string"},{"type":"null"}]}],"returnType":"Promise<PromptOverride>","isStatic":false,"isPublic":true},"removeOverride":{"name":"removeOverride","async":true,"parameters":[{"name":"key","type":"string","optional":false},{"name":"scopeType","type":"PromptOverrideScopeType","optional":false},{"name":"scopeId","type":"string","optional":false}],"returnType":"Promise<boolean>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"_smrt_prompt_overrides","api":false,"mcp":false,"cli":false},"extends":"SmrtCollection","extendsTypeArg":"PromptOverride","exportName":"PromptOverrideCollection","collectionExportName":"PromptOverrideCollectionCollection","schema":{"tableName":"_smrt_prompt_overrides","ddl":"CREATE TABLE IF NOT EXISTS \\"_smrt_prompt_overrides\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"key\\" TEXT NOT NULL DEFAULT '',\\n \\"tenant_id\\" UUID,\\n \\"template\\" TEXT,\\n \\"profile\\" TEXT,\\n \\"model\\" TEXT,\\n \\"params\\" TEXT\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"key":{"type":"TEXT","notNull":true,"unique":false,"default":""},"tenant_id":{"type":"UUID","notNull":false,"unique":false},"template":{"type":"TEXT","notNull":false,"unique":false},"profile":{"type":"TEXT","notNull":false,"unique":false},"model":{"type":"TEXT","notNull":false,"unique":false},"params":{"type":"TEXT","notNull":false,"unique":false}},"indexes":[{"name":"_smrt_prompt_overrides_key_context_idx","columns":["key","context"],"unique":true},{"name":"_smrt_prompt_overrides_slug_context_idx","columns":["slug","context"]},{"name":"_smrt_prompt_overrides_created_at_idx","columns":["created_at"]}],"version":"38f505e7"},"importPath":"@happyvertical/smrt-prompts"},"@happyvertical/smrt-prompts:PromptOverride":{"name":"promptoverride","className":"PromptOverride","qualifiedName":"@happyvertical/smrt-prompts:PromptOverride","collection":"promptoverrides","filePath":"/home/runner/work/smrt/smrt/packages/prompts/src/models/PromptOverride.ts","packageName":"@happyvertical/smrt-prompts","fields":{"key":{"type":"text","required":true,"default":"","_meta":{"required":true}},"tenantId":{"type":"text","required":false,"_meta":{"sqlType":"UUID","nullable":true}},"template":{"type":"text","required":false,"_meta":{"nullable":true}},"profile":{"type":"text","required":false,"_meta":{"nullable":true}},"model":{"type":"text","required":false,"_meta":{"nullable":true}},"params":{"type":"text","required":false,"_meta":{"nullable":true}}},"methods":{"getParams":{"name":"getParams","async":false,"parameters":[],"returnType":"PromptParams","isStatic":false,"isPublic":true},"setParams":{"name":"setParams","async":false,"parameters":[{"name":"params","type":"PromptParams | null","optional":false,"unionBranches":[{"type":"PromptParams"},{"type":"null"}]}],"returnType":"void","isStatic":false,"isPublic":true},"toPromptLayer":{"name":"toPromptLayer","async":false,"parameters":[],"returnType":"PromptLayer","isStatic":false,"isPublic":true},"save":{"name":"save","async":true,"parameters":[],"returnType":"Promise<this>","isStatic":false,"isPublic":true},"delete":{"name":"delete","async":true,"parameters":[],"returnType":"Promise<void>","isStatic":false,"isPublic":true}},"decoratorConfig":{"tableName":"_smrt_prompt_overrides","conflictColumns":["key","context"],"api":false,"cli":false,"mcp":false},"extends":"SmrtObject","exportName":"PromptOverride","collectionExportName":"PromptOverrideCollection","validationRules":[{"field":"key","rule":"required","fieldType":"text"}],"schema":{"tableName":"_smrt_prompt_overrides","ddl":"CREATE TABLE IF NOT EXISTS \\"_smrt_prompt_overrides\\" (\\n \\"id\\" UUID PRIMARY KEY NOT NULL,\\n \\"slug\\" TEXT NOT NULL,\\n \\"context\\" TEXT NOT NULL DEFAULT '',\\n \\"created_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"updated_at\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\"key\\" TEXT NOT NULL DEFAULT '',\\n \\"tenant_id\\" UUID,\\n \\"template\\" TEXT,\\n \\"profile\\" TEXT,\\n \\"model\\" TEXT,\\n \\"params\\" TEXT\\n);","columns":{"id":{"type":"UUID","primaryKey":true,"referenceKind":"id","notNull":true},"slug":{"type":"TEXT","notNull":true},"context":{"type":"TEXT","notNull":true,"default":""},"created_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"updated_at":{"type":"TIMESTAMP","notNull":true,"default":"current_timestamp"},"key":{"type":"TEXT","notNull":true,"unique":false,"default":""},"tenant_id":{"type":"UUID","notNull":false,"unique":false},"template":{"type":"TEXT","notNull":false,"unique":false},"profile":{"type":"TEXT","notNull":false,"unique":false},"model":{"type":"TEXT","notNull":false,"unique":false},"params":{"type":"TEXT","notNull":false,"unique":false}},"indexes":[{"name":"_smrt_prompt_overrides_key_context_idx","columns":["key","context"],"unique":true},{"name":"_smrt_prompt_overrides_slug_context_idx","columns":["slug","context"]},{"name":"_smrt_prompt_overrides_created_at_idx","columns":["created_at"]}],"version":"38f505e7"},"importPath":"@happyvertical/smrt-prompts"}},"moduleType":"smrt","smrtDependencies":["@happyvertical/smrt-core","@happyvertical/smrt-tenancy"],"browser":{"status":"server-only","issues":["#3624"],"via":["@happyvertical/smrt-tenancy"]},"stampsConstructors":true}`));
|
|
402
402
|
var PROMPT_CACHE_TTL_MS = 3e4;
|
|
403
403
|
var promptCache = /* @__PURE__ */ new Map();
|
|
404
404
|
var cacheGenerations = /* @__PURE__ */ new Map();
|
package/dist/index.js
CHANGED
|
@@ -51,77 +51,77 @@ var _cookbookCommands = null;
|
|
|
51
51
|
var _kitchenCommands = null;
|
|
52
52
|
async function getGnodeCommands() {
|
|
53
53
|
if (!_gnodeCommands) {
|
|
54
|
-
const { gnodeCommands } = await import("./commands-
|
|
54
|
+
const { gnodeCommands } = await import("./commands-BKqW6iBo.js");
|
|
55
55
|
_gnodeCommands = gnodeCommands;
|
|
56
56
|
}
|
|
57
57
|
return _gnodeCommands;
|
|
58
58
|
}
|
|
59
59
|
async function getGitCommands() {
|
|
60
60
|
if (!_gitCommands) {
|
|
61
|
-
const { gitCommands } = await import("./commands-
|
|
61
|
+
const { gitCommands } = await import("./commands-BKqW6iBo.js");
|
|
62
62
|
_gitCommands = gitCommands;
|
|
63
63
|
}
|
|
64
64
|
return _gitCommands;
|
|
65
65
|
}
|
|
66
66
|
async function getGenerateCommands() {
|
|
67
67
|
if (!_generateCommands) {
|
|
68
|
-
const { generateCommands } = await import("./commands-
|
|
68
|
+
const { generateCommands } = await import("./commands-BKqW6iBo.js");
|
|
69
69
|
_generateCommands = generateCommands;
|
|
70
70
|
}
|
|
71
71
|
return _generateCommands;
|
|
72
72
|
}
|
|
73
73
|
async function getInitCommands() {
|
|
74
74
|
if (!_initCommands) {
|
|
75
|
-
const { initCommands } = await import("./commands-
|
|
75
|
+
const { initCommands } = await import("./commands-BKqW6iBo.js");
|
|
76
76
|
_initCommands = initCommands;
|
|
77
77
|
}
|
|
78
78
|
return _initCommands;
|
|
79
79
|
}
|
|
80
80
|
async function getUtilityCommands() {
|
|
81
81
|
if (!_utilityCommands) {
|
|
82
|
-
const { utilityCommands } = await import("./commands-
|
|
82
|
+
const { utilityCommands } = await import("./commands-BKqW6iBo.js");
|
|
83
83
|
_utilityCommands = utilityCommands;
|
|
84
84
|
}
|
|
85
85
|
return _utilityCommands;
|
|
86
86
|
}
|
|
87
87
|
async function getDispatchCommands() {
|
|
88
88
|
if (!_dispatchCommands) {
|
|
89
|
-
const { dispatchCommands } = await import("./commands-
|
|
89
|
+
const { dispatchCommands } = await import("./commands-BKqW6iBo.js");
|
|
90
90
|
_dispatchCommands = dispatchCommands;
|
|
91
91
|
}
|
|
92
92
|
return _dispatchCommands;
|
|
93
93
|
}
|
|
94
94
|
async function getDocsCommands() {
|
|
95
95
|
if (!_docsCommands) {
|
|
96
|
-
const { docsCommands } = await import("./commands-
|
|
96
|
+
const { docsCommands } = await import("./commands-BKqW6iBo.js");
|
|
97
97
|
_docsCommands = docsCommands;
|
|
98
98
|
}
|
|
99
99
|
return _docsCommands;
|
|
100
100
|
}
|
|
101
101
|
async function getPlaygroundCommands() {
|
|
102
102
|
if (!_playgroundCommands) {
|
|
103
|
-
const { playgroundCommands } = await import("./commands-
|
|
103
|
+
const { playgroundCommands } = await import("./commands-BKqW6iBo.js");
|
|
104
104
|
_playgroundCommands = playgroundCommands;
|
|
105
105
|
}
|
|
106
106
|
return _playgroundCommands;
|
|
107
107
|
}
|
|
108
108
|
async function getCookbookCommands() {
|
|
109
109
|
if (!_cookbookCommands) {
|
|
110
|
-
const { cookbookCommands } = await import("./commands-
|
|
110
|
+
const { cookbookCommands } = await import("./commands-BKqW6iBo.js");
|
|
111
111
|
_cookbookCommands = cookbookCommands;
|
|
112
112
|
}
|
|
113
113
|
return _cookbookCommands;
|
|
114
114
|
}
|
|
115
115
|
async function getKitchenCommands() {
|
|
116
116
|
if (!_kitchenCommands) {
|
|
117
|
-
const { kitchenCommands } = await import("./commands-
|
|
117
|
+
const { kitchenCommands } = await import("./commands-BKqW6iBo.js");
|
|
118
118
|
_kitchenCommands = kitchenCommands;
|
|
119
119
|
}
|
|
120
120
|
return _kitchenCommands;
|
|
121
121
|
}
|
|
122
122
|
async function getWorkbenchCommands() {
|
|
123
123
|
if (!_workbenchCommands) {
|
|
124
|
-
const { workbenchCommands } = await import("./commands-
|
|
124
|
+
const { workbenchCommands } = await import("./commands-BKqW6iBo.js");
|
|
125
125
|
_workbenchCommands = workbenchCommands;
|
|
126
126
|
}
|
|
127
127
|
return _workbenchCommands;
|
|
@@ -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-MVVO3MfG-
|
|
4
|
-
import { c as saveOidcRaceArbiter, n as ProfileCollection, t as Profile } from "./ProfileCollection-CMS9dFc0-
|
|
5
|
-
import { t as ProfileTypeCollection } from "./ProfileTypeCollection-B7m698Bl-
|
|
3
|
+
import { t as OidcIdentity } from "./OidcIdentity-MVVO3MfG-x9rYWS8z.js";
|
|
4
|
+
import { c as saveOidcRaceArbiter, n as ProfileCollection, t as Profile } from "./ProfileCollection-CMS9dFc0-BmdemWaJ.js";
|
|
5
|
+
import { t as ProfileTypeCollection } from "./ProfileTypeCollection-B7m698Bl-DdKMi0rF.js";
|
|
6
6
|
import { smrt } from "@happyvertical/smrt-core";
|
|
7
7
|
//#region ../profiles/dist/chunks/oidcProvisioningPrimitives-Dl9qIcYS.js
|
|
8
8
|
var oidcProvisioningPrimitives_Dl9qIcYS_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as withSystemContext } from "./dist-
|
|
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-DA2Y6H2X-
|
|
1
|
+
import { m as withSystemContext } from "./dist-_PKbgmou.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-DA2Y6H2X-dHs-1zBY.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-
|
|
2
|
+
import { m as withSystemContext } from "./dist-_PKbgmou.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-MVVO3MfG-
|
|
6
|
-
import { a as coordinateOidcProvisioning, o as isOidcProvisioningRaceConflict, s as normalizeIdentityEmail } from "./ProfileCollection-CMS9dFc0-
|
|
7
|
-
import { n as insertOidcProvisioningIdentity, t as createOidcProvisioningPerson } from "./oidcProvisioningPrimitives-Dl9qIcYS-
|
|
5
|
+
import { t as OidcIdentity } from "./OidcIdentity-MVVO3MfG-x9rYWS8z.js";
|
|
6
|
+
import { a as coordinateOidcProvisioning, o as isOidcProvisioningRaceConflict, s as normalizeIdentityEmail } from "./ProfileCollection-CMS9dFc0-BmdemWaJ.js";
|
|
7
|
+
import { n as insertOidcProvisioningIdentity, t as createOidcProvisioningPerson } from "./oidcProvisioningPrimitives-Dl9qIcYS-8a2XpagG.js";
|
|
8
8
|
import { resolveDatabase } from "@happyvertical/smrt-core";
|
|
9
9
|
//#region ../profiles/dist/chunks/resolveIdentity-CR5p_g7K.js
|
|
10
10
|
var resolveIdentity_CR5p_g7K_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-s4mp3n62-
|
|
75
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-D_BbQAjO.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-CMS9dFc0-
|
|
81
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-BmdemWaJ.js").then((n) => n.r).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-s4mp3n62-
|
|
102
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-D_BbQAjO.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-s4mp3n62-
|
|
136
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-D_BbQAjO.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-CMS9dFc0-
|
|
151
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-BmdemWaJ.js").then((n) => n.r).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-s4mp3n62-
|
|
179
|
-
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-
|
|
178
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-D_BbQAjO.js").then((n) => n.r).then((n) => n.r);
|
|
179
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-BmdemWaJ.js").then((n) => n.r).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-Dl9qIcYS-
|
|
229
|
-
const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-
|
|
228
|
+
const { Person } = await import("./oidcProvisioningPrimitives-Dl9qIcYS-8a2XpagG.js").then((n) => n.r).then((n) => n.o);
|
|
229
|
+
const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-DdKMi0rF.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-CMS9dFc0-
|
|
232
|
+
const { ProfileType } = await import("./ProfileCollection-CMS9dFc0-BmdemWaJ.js").then((n) => n.r).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.57.
|
|
3
|
+
"version": "0.57.24",
|
|
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.106.0",
|
|
34
34
|
"@happyvertical/files": "^0.106.0",
|
|
35
35
|
"@happyvertical/logger": "^0.106.0",
|
|
36
|
-
"@happyvertical/smrt-agents": "0.57.
|
|
37
|
-
"@happyvertical/smrt-app-runtime": "0.57.
|
|
38
|
-
"@happyvertical/smrt-config": "0.57.
|
|
39
|
-
"@happyvertical/smrt-core": "0.57.
|
|
40
|
-
"@happyvertical/smrt-dev-mcp": "0.57.
|
|
41
|
-
"@happyvertical/smrt-ledgers": "0.57.
|
|
42
|
-
"@happyvertical/smrt-playground": "0.57.
|
|
43
|
-
"@happyvertical/smrt-types": "0.57.
|
|
44
|
-
"@happyvertical/smrt-users": "0.57.
|
|
36
|
+
"@happyvertical/smrt-agents": "0.57.24",
|
|
37
|
+
"@happyvertical/smrt-app-runtime": "0.57.24",
|
|
38
|
+
"@happyvertical/smrt-config": "0.57.24",
|
|
39
|
+
"@happyvertical/smrt-core": "0.57.24",
|
|
40
|
+
"@happyvertical/smrt-dev-mcp": "0.57.24",
|
|
41
|
+
"@happyvertical/smrt-ledgers": "0.57.24",
|
|
42
|
+
"@happyvertical/smrt-playground": "0.57.24",
|
|
43
|
+
"@happyvertical/smrt-types": "0.57.24",
|
|
44
|
+
"@happyvertical/smrt-users": "0.57.24",
|
|
45
45
|
"@happyvertical/sql": "^0.106.0",
|
|
46
46
|
"@happyvertical/utils": "^0.106.0",
|
|
47
47
|
"@modelcontextprotocol/server": "2.3.1",
|