@happyvertical/smrt-tags 0.40.64 → 0.40.66
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/index.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +846 -10
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/__smrt-register__.ts
|
|
17
|
-
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-tags\",\"packageVersion\":\"0.40.64\",\"objects\":{\"@happyvertical/smrt-tags:TagAlias\":{\"name\":\"tagalias\",\"className\":\"TagAlias\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagAlias\",\"collection\":\"tagaliases\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag-alias.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tagSlug\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"alias\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"language\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getTag\":{\"name\":\"getTag\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Tag | null>\",\"isStatic\":false,\"isPublic\":true},\"searchByAlias\":{\"name\":\"searchByAlias\",\"async\":true,\"parameters\":[{\"name\":\"_alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"_language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":true,\"isPublic\":true},\"getAliasesForTag\":{\"name\":\"getAliasesForTag\",\"async\":true,\"parameters\":[{\"name\":\"_tagSlug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"TagAlias\",\"collectionExportName\":\"TagAliasCollection\",\"validationRules\":[{\"field\":\"alias\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"tag_aliases\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_aliases\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tag_slug\\\" TEXT DEFAULT '',\\n \\\"alias\\\" TEXT DEFAULT '',\\n \\\"language\\\" TEXT DEFAULT '',\\n \\\"tenant_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tag_slug\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"alias\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"language\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false}},\"indexes\":[{\"name\":\"tag_aliases_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_aliases_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"tag_aliases_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"95a4bc18\"}},\"@happyvertical/smrt-tags:TagAliasCollection\":{\"name\":\"tagaliascollection\",\"className\":\"TagAliasCollection\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagAliasCollection\",\"collection\":\"tagaliases\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag-aliases.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{},\"methods\":{\"addAlias\":{\"name\":\"addAlias\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias>\",\"isStatic\":false,\"isPublic\":true},\"searchByAlias\":{\"name\":\"searchByAlias\",\"async\":true,\"parameters\":[{\"name\":\"alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getAliasesForTag\":{\"name\":\"getAliasesForTag\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"removeAlias\":{\"name\":\"removeAlias\",\"async\":true,\"parameters\":[{\"name\":\"aliasId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"bulkAddAliases\":{\"name\":\"bulkAddAliases\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"aliases\",\"type\":\"Array<object>\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"getAliasesByLanguage\":{\"name\":\"getAliasesByLanguage\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Map<string, string[]>>\",\"isStatic\":false,\"isPublic\":true},\"findMatchingAliases\":{\"name\":\"findMatchingAliases\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"TagAlias\",\"exportName\":\"TagAliasCollection\",\"collectionExportName\":\"TagAliasCollectionCollection\",\"schema\":{\"tableName\":\"tag_alias_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_alias_collections\\\" (\\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);\",\"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\"}},\"indexes\":[{\"name\":\"tag_alias_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_alias_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"1a92c60d\"}},\"@happyvertical/smrt-tags:Tag\":{\"name\":\"tag\",\"className\":\"Tag\",\"qualifiedName\":\"@happyvertical/smrt-tags:Tag\",\"collection\":\"tags\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Tag\",\"_meta\":{\"nullable\":true}},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"level\":{\"type\":\"integer\",\"required\":false,\"default\":0},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"metadata\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"datetime\",\"required\":false},\"updatedAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"TagMetadata\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"TagMetadata\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Partial<TagMetadata>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"_slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"_context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag | null>\",\"isStatic\":true,\"isPublic\":true},\"getRootTags\":{\"name\":\"getRootTags\",\"async\":true,\"parameters\":[{\"name\":\"_context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Tag\",\"collectionExportName\":\"TagCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"tags\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tags\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"parent_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"level\\\" INTEGER DEFAULT 0,\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"metadata\\\" TEXT DEFAULT '',\\n \\\"tenant_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"level\":{\"type\":\"INTEGER\",\"notNull\":false,\"default\":0},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false}},\"indexes\":[{\"name\":\"tags_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tags_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"tags_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"66c31dc7\"}},\"@happyvertical/smrt-tags:TagCollection\":{\"name\":\"tagcollection\",\"className\":\"TagCollection\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagCollection\",\"collection\":\"tags\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tags.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{},\"methods\":{\"getOrCreate\":{\"name\":\"getOrCreate\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag>\",\"isStatic\":false,\"isPublic\":true},\"listByContext\":{\"name\":\"listByContext\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":false},{\"name\":\"parentSlug\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getRootTags\":{\"name\":\"getRootTags\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[{\"name\":\"parentSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagHierarchy>\",\"isStatic\":false,\"isPublic\":true},\"moveTag\":{\"name\":\"moveTag\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"newParentSlug\",\"type\":\"string | null\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"mergeTag\":{\"name\":\"mergeTag\",\"async\":true,\"parameters\":[{\"name\":\"fromSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"toSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"cleanupUnused\":{\"name\":\"cleanupUnused\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"calculateLevel\":{\"name\":\"calculateLevel\",\"async\":true,\"parameters\":[{\"name\":\"parentSlug\",\"type\":\"string | null\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Tag\",\"exportName\":\"TagCollection\",\"collectionExportName\":\"TagCollectionCollection\",\"schema\":{\"tableName\":\"tag_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_collections\\\" (\\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);\",\"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\"}},\"indexes\":[{\"name\":\"tag_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"42236c49\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
17
|
+
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-tags\",\"packageVersion\":\"0.40.66\",\"objects\":{\"@happyvertical/smrt-tags:TagAlias\":{\"name\":\"tagalias\",\"className\":\"TagAlias\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagAlias\",\"collection\":\"tagaliases\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag-alias.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tagSlug\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"alias\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"language\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getTag\":{\"name\":\"getTag\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Tag | null>\",\"isStatic\":false,\"isPublic\":true},\"searchByAlias\":{\"name\":\"searchByAlias\",\"async\":true,\"parameters\":[{\"name\":\"_alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"_language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":true,\"isPublic\":true},\"getAliasesForTag\":{\"name\":\"getAliasesForTag\",\"async\":true,\"parameters\":[{\"name\":\"_tagSlug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"TagAlias\",\"collectionExportName\":\"TagAliasCollection\",\"validationRules\":[{\"field\":\"alias\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"tag_aliases\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_aliases\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tag_slug\\\" TEXT DEFAULT '',\\n \\\"alias\\\" TEXT DEFAULT '',\\n \\\"language\\\" TEXT DEFAULT '',\\n \\\"tenant_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tag_slug\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"alias\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"language\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false}},\"indexes\":[{\"name\":\"tag_aliases_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_aliases_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"tag_aliases_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"95a4bc18\"}},\"@happyvertical/smrt-tags:TagAliasCollection\":{\"name\":\"tagaliascollection\",\"className\":\"TagAliasCollection\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagAliasCollection\",\"collection\":\"tagaliases\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag-aliases.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{},\"methods\":{\"addAlias\":{\"name\":\"addAlias\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias>\",\"isStatic\":false,\"isPublic\":true},\"searchByAlias\":{\"name\":\"searchByAlias\",\"async\":true,\"parameters\":[{\"name\":\"alias\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getAliasesForTag\":{\"name\":\"getAliasesForTag\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"removeAlias\":{\"name\":\"removeAlias\",\"async\":true,\"parameters\":[{\"name\":\"aliasId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"bulkAddAliases\":{\"name\":\"bulkAddAliases\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"aliases\",\"type\":\"Array<object>\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"getAliasesByLanguage\":{\"name\":\"getAliasesByLanguage\",\"async\":true,\"parameters\":[{\"name\":\"tagSlug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Map<string, string[]>>\",\"isStatic\":false,\"isPublic\":true},\"findMatchingAliases\":{\"name\":\"findMatchingAliases\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"language\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<TagAlias[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"TagAlias\",\"exportName\":\"TagAliasCollection\",\"collectionExportName\":\"TagAliasCollectionCollection\",\"schema\":{\"tableName\":\"tag_alias_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_alias_collections\\\" (\\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);\",\"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\"}},\"indexes\":[{\"name\":\"tag_alias_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_alias_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"1a92c60d\"}},\"@happyvertical/smrt-tags:Tag\":{\"name\":\"tag\",\"className\":\"Tag\",\"qualifiedName\":\"@happyvertical/smrt-tags:Tag\",\"collection\":\"tags\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tag.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Tag\",\"_meta\":{\"nullable\":true}},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"level\":{\"type\":\"integer\",\"required\":false,\"default\":0},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"metadata\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"createdAt\":{\"type\":\"datetime\",\"required\":false},\"updatedAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"TagMetadata\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"TagMetadata\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Partial<TagMetadata>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"_slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"_context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag | null>\",\"isStatic\":true,\"isPublic\":true},\"getRootTags\":{\"name\":\"getRootTags\",\"async\":true,\"parameters\":[{\"name\":\"_context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Tag\",\"collectionExportName\":\"TagCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"tags\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tags\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"parent_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"level\\\" INTEGER DEFAULT 0,\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"metadata\\\" TEXT DEFAULT '',\\n \\\"tenant_id\\\" UUID\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"level\":{\"type\":\"INTEGER\",\"notNull\":false,\"default\":0},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false}},\"indexes\":[{\"name\":\"tags_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tags_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"tags_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"66c31dc7\"}},\"@happyvertical/smrt-tags:TagCollection\":{\"name\":\"tagcollection\",\"className\":\"TagCollection\",\"qualifiedName\":\"@happyvertical/smrt-tags:TagCollection\",\"collection\":\"tags\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/tags/src/tags.ts\",\"packageName\":\"@happyvertical/smrt-tags\",\"fields\":{},\"methods\":{\"getOrCreate\":{\"name\":\"getOrCreate\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag>\",\"isStatic\":false,\"isPublic\":true},\"listByContext\":{\"name\":\"listByContext\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":false},{\"name\":\"parentSlug\",\"type\":\"string | null\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getRootTags\":{\"name\":\"getRootTags\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":true,\"default\":\"global\"}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[{\"name\":\"parentSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<TagHierarchy>\",\"isStatic\":false,\"isPublic\":true},\"moveTag\":{\"name\":\"moveTag\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"newParentSlug\",\"type\":\"string | null\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"mergeTag\":{\"name\":\"mergeTag\",\"async\":true,\"parameters\":[{\"name\":\"fromSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"toSlug\",\"type\":\"string\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"cleanupUnused\":{\"name\":\"cleanupUnused\",\"async\":true,\"parameters\":[{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"calculateLevel\":{\"name\":\"calculateLevel\",\"async\":true,\"parameters\":[{\"name\":\"parentSlug\",\"type\":\"string | null\",\"optional\":false},{\"name\":\"context\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Tag[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Tag\",\"exportName\":\"TagCollection\",\"collectionExportName\":\"TagCollectionCollection\",\"schema\":{\"tableName\":\"tag_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"tag_collections\\\" (\\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);\",\"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\"}},\"indexes\":[{\"name\":\"tag_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"tag_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"42236c49\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/tag.ts
|
|
20
20
|
var __defProp$1 = Object.defineProperty;
|
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
+
"sensitiveFieldsExcluded": true,
|
|
3
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
4
5
|
"packageName": "@happyvertical/smrt-tags",
|
|
5
|
-
"packageVersion": "0.40.
|
|
6
|
+
"packageVersion": "0.40.66",
|
|
6
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
8
|
"agentDocPath": "AGENTS.md",
|
|
8
9
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
10
|
+
"manifest": "a635765792beed0a523b702227c74ed3a5f1632048002a01a543ceef7b79490f",
|
|
11
|
+
"packageJson": "7e3e95a0faa880974027aecc6a2cd0396bd3ae5ddce34e00bb98164cdae1324d",
|
|
11
12
|
"agents": "900516b49407d5a521c2f0f2bdb2d4ab0c97e620808115718779f7ecf3ace222"
|
|
12
13
|
},
|
|
13
14
|
"exports": [
|
|
@@ -67,19 +68,22 @@
|
|
|
67
68
|
"name": "tagSlug",
|
|
68
69
|
"type": "text",
|
|
69
70
|
"required": false,
|
|
70
|
-
"columnType": "TEXT"
|
|
71
|
+
"columnType": "TEXT",
|
|
72
|
+
"default": ""
|
|
71
73
|
},
|
|
72
74
|
{
|
|
73
75
|
"name": "alias",
|
|
74
76
|
"type": "text",
|
|
75
77
|
"required": true,
|
|
76
|
-
"columnType": "TEXT"
|
|
78
|
+
"columnType": "TEXT",
|
|
79
|
+
"default": ""
|
|
77
80
|
},
|
|
78
81
|
{
|
|
79
82
|
"name": "language",
|
|
80
83
|
"type": "text",
|
|
81
84
|
"required": false,
|
|
82
|
-
"columnType": "TEXT"
|
|
85
|
+
"columnType": "TEXT",
|
|
86
|
+
"default": ""
|
|
83
87
|
},
|
|
84
88
|
{
|
|
85
89
|
"name": "tenantId",
|
|
@@ -141,6 +145,302 @@
|
|
|
141
145
|
"toPlainObject",
|
|
142
146
|
"toPublicJSON"
|
|
143
147
|
],
|
|
148
|
+
"methodSignatures": [
|
|
149
|
+
{
|
|
150
|
+
"name": "_setLoadedRelationship",
|
|
151
|
+
"params": [
|
|
152
|
+
"fieldName: string",
|
|
153
|
+
"value: any"
|
|
154
|
+
],
|
|
155
|
+
"returns": "void"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "classifyConstraintError",
|
|
159
|
+
"static": true,
|
|
160
|
+
"params": [
|
|
161
|
+
"message: string"
|
|
162
|
+
],
|
|
163
|
+
"returns": "'unique' | 'not_null' | null"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "clearEmbeddings",
|
|
167
|
+
"async": true,
|
|
168
|
+
"returns": "Promise<void>"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "delete",
|
|
172
|
+
"async": true,
|
|
173
|
+
"returns": "Promise<void>"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "describe",
|
|
177
|
+
"async": true,
|
|
178
|
+
"params": [
|
|
179
|
+
"options?: AiOperationOptions"
|
|
180
|
+
],
|
|
181
|
+
"returns": "any"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "destroy",
|
|
185
|
+
"returns": "void"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "do",
|
|
189
|
+
"async": true,
|
|
190
|
+
"params": [
|
|
191
|
+
"instructions: string",
|
|
192
|
+
"options?: AiOperationOptions"
|
|
193
|
+
],
|
|
194
|
+
"returns": "any"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "executeToolCall",
|
|
198
|
+
"async": true,
|
|
199
|
+
"params": [
|
|
200
|
+
"toolCall: ToolCall"
|
|
201
|
+
],
|
|
202
|
+
"returns": "Promise<ToolCallResult>"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "forget",
|
|
206
|
+
"async": true,
|
|
207
|
+
"params": [
|
|
208
|
+
"options: object"
|
|
209
|
+
],
|
|
210
|
+
"returns": "Promise<void>"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "forgetScope",
|
|
214
|
+
"async": true,
|
|
215
|
+
"params": [
|
|
216
|
+
"options: object"
|
|
217
|
+
],
|
|
218
|
+
"returns": "Promise<number>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "generateEmbeddings",
|
|
222
|
+
"async": true,
|
|
223
|
+
"params": [
|
|
224
|
+
"options?: GenerateEmbeddingsOptions"
|
|
225
|
+
],
|
|
226
|
+
"returns": "Promise<void>"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "getAiUsageSnapshot",
|
|
230
|
+
"returns": "AiUsageSnapshot | undefined"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "getAliasesForTag",
|
|
234
|
+
"async": true,
|
|
235
|
+
"static": true,
|
|
236
|
+
"params": [
|
|
237
|
+
"_tagSlug: string"
|
|
238
|
+
],
|
|
239
|
+
"returns": "Promise<TagAlias[]>"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "getAvailableTools",
|
|
243
|
+
"returns": "AITool[]"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "getEmbedding",
|
|
247
|
+
"async": true,
|
|
248
|
+
"params": [
|
|
249
|
+
"fieldName: string",
|
|
250
|
+
"model?: string"
|
|
251
|
+
],
|
|
252
|
+
"returns": "Promise<number[] | null>"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "getFields",
|
|
256
|
+
"async": true,
|
|
257
|
+
"returns": "Promise<any>"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "getId",
|
|
261
|
+
"async": true,
|
|
262
|
+
"returns": "any"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "getRelated",
|
|
266
|
+
"async": true,
|
|
267
|
+
"params": [
|
|
268
|
+
"fieldName: string",
|
|
269
|
+
"opts?: LoadRelatedOptions"
|
|
270
|
+
],
|
|
271
|
+
"returns": "Promise<any>"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "getSavedId",
|
|
275
|
+
"async": true,
|
|
276
|
+
"returns": "any"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "getSlug",
|
|
280
|
+
"async": true,
|
|
281
|
+
"returns": "any"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "getTag",
|
|
285
|
+
"async": true,
|
|
286
|
+
"returns": "Promise<Tag | null>"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "hasStaleEmbeddings",
|
|
290
|
+
"async": true,
|
|
291
|
+
"returns": "Promise<boolean>"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "initialize",
|
|
295
|
+
"async": true,
|
|
296
|
+
"returns": "Promise"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "is",
|
|
300
|
+
"async": true,
|
|
301
|
+
"params": [
|
|
302
|
+
"criteria: string",
|
|
303
|
+
"options?: AiOperationOptions"
|
|
304
|
+
],
|
|
305
|
+
"returns": "any"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "isRelatedLoaded",
|
|
309
|
+
"params": [
|
|
310
|
+
"fieldName: string"
|
|
311
|
+
],
|
|
312
|
+
"returns": "boolean"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "isSaved",
|
|
316
|
+
"async": true,
|
|
317
|
+
"returns": "any"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "listAiUsage",
|
|
321
|
+
"async": true,
|
|
322
|
+
"params": [
|
|
323
|
+
"options?: AiUsageListOptions"
|
|
324
|
+
],
|
|
325
|
+
"returns": "Promise<SmrtAiUsageRecord[]>"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "loadDataFromDb",
|
|
329
|
+
"async": true,
|
|
330
|
+
"params": [
|
|
331
|
+
"data: Record<string>"
|
|
332
|
+
],
|
|
333
|
+
"returns": "any"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "loadFromId",
|
|
337
|
+
"async": true,
|
|
338
|
+
"returns": "any"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "loadFromSlug",
|
|
342
|
+
"async": true,
|
|
343
|
+
"returns": "any"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "loadRelated",
|
|
347
|
+
"async": true,
|
|
348
|
+
"params": [
|
|
349
|
+
"fieldName: string",
|
|
350
|
+
"opts?: LoadRelatedOptions"
|
|
351
|
+
],
|
|
352
|
+
"returns": "Promise<any>"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"name": "loadRelatedMany",
|
|
356
|
+
"async": true,
|
|
357
|
+
"params": [
|
|
358
|
+
"fieldName: string",
|
|
359
|
+
"opts?: LoadRelatedOptions"
|
|
360
|
+
],
|
|
361
|
+
"returns": "Promise<any[]>"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "markAsPersisted",
|
|
365
|
+
"returns": "void"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "recall",
|
|
369
|
+
"async": true,
|
|
370
|
+
"params": [
|
|
371
|
+
"options: object"
|
|
372
|
+
],
|
|
373
|
+
"returns": "Promise"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "recallAll",
|
|
377
|
+
"async": true,
|
|
378
|
+
"params": [
|
|
379
|
+
"options?: object"
|
|
380
|
+
],
|
|
381
|
+
"returns": "Promise<Map<string>>"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "remember",
|
|
385
|
+
"async": true,
|
|
386
|
+
"params": [
|
|
387
|
+
"options: object"
|
|
388
|
+
],
|
|
389
|
+
"returns": "Promise<void>"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "requireInsertOnSave",
|
|
393
|
+
"returns": "void"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "resetAiUsage",
|
|
397
|
+
"returns": "void"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "save",
|
|
401
|
+
"async": true,
|
|
402
|
+
"returns": "any"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "searchByAlias",
|
|
406
|
+
"async": true,
|
|
407
|
+
"static": true,
|
|
408
|
+
"params": [
|
|
409
|
+
"_alias: string",
|
|
410
|
+
"_language?: string"
|
|
411
|
+
],
|
|
412
|
+
"returns": "Promise<Tag[]>"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "summarizeAiUsage",
|
|
416
|
+
"async": true,
|
|
417
|
+
"params": [
|
|
418
|
+
"options?: AiUsageSummaryOptions"
|
|
419
|
+
],
|
|
420
|
+
"returns": "Promise<Record<string, AiUsageStats>>"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "toJSON",
|
|
424
|
+
"returns": "any"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "toPlainObject",
|
|
428
|
+
"returns": "Record<string>"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "toPublicJSON",
|
|
432
|
+
"params": [
|
|
433
|
+
"options?: PublicJsonOptions"
|
|
434
|
+
],
|
|
435
|
+
"returns": "Record<string>"
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
"tenant": {
|
|
439
|
+
"scoped": true,
|
|
440
|
+
"mode": "optional",
|
|
441
|
+
"field": "tenantId"
|
|
442
|
+
},
|
|
443
|
+
"tableStrategy": "sti",
|
|
144
444
|
"surfaces": [
|
|
145
445
|
{
|
|
146
446
|
"kind": "api",
|
|
@@ -258,6 +558,92 @@
|
|
|
258
558
|
"removeAlias",
|
|
259
559
|
"searchByAlias"
|
|
260
560
|
],
|
|
561
|
+
"methodSignatures": [
|
|
562
|
+
{
|
|
563
|
+
"name": "addAlias",
|
|
564
|
+
"async": true,
|
|
565
|
+
"params": [
|
|
566
|
+
"tagSlug: string",
|
|
567
|
+
"alias: string",
|
|
568
|
+
"language?: string",
|
|
569
|
+
"context?: string"
|
|
570
|
+
],
|
|
571
|
+
"returns": "Promise<TagAlias>"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "bulkAddAliases",
|
|
575
|
+
"async": true,
|
|
576
|
+
"params": [
|
|
577
|
+
"tagSlug: string",
|
|
578
|
+
"aliases: Array<object>"
|
|
579
|
+
],
|
|
580
|
+
"returns": "Promise<TagAlias[]>"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "findByTenant",
|
|
584
|
+
"async": true,
|
|
585
|
+
"params": [
|
|
586
|
+
"tenantId: string"
|
|
587
|
+
],
|
|
588
|
+
"returns": "Promise<TagAlias[]>"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "findGlobal",
|
|
592
|
+
"async": true,
|
|
593
|
+
"returns": "Promise<TagAlias[]>"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "findMatchingAliases",
|
|
597
|
+
"async": true,
|
|
598
|
+
"params": [
|
|
599
|
+
"query: string",
|
|
600
|
+
"language?: string"
|
|
601
|
+
],
|
|
602
|
+
"returns": "Promise<TagAlias[]>"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "findWithGlobals",
|
|
606
|
+
"async": true,
|
|
607
|
+
"params": [
|
|
608
|
+
"tenantId: string"
|
|
609
|
+
],
|
|
610
|
+
"returns": "Promise<TagAlias[]>"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "getAliasesByLanguage",
|
|
614
|
+
"async": true,
|
|
615
|
+
"params": [
|
|
616
|
+
"tagSlug: string"
|
|
617
|
+
],
|
|
618
|
+
"returns": "Promise<Map<string, string[]>>"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "getAliasesForTag",
|
|
622
|
+
"async": true,
|
|
623
|
+
"params": [
|
|
624
|
+
"tagSlug: string",
|
|
625
|
+
"language?: string"
|
|
626
|
+
],
|
|
627
|
+
"returns": "Promise<TagAlias[]>"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "removeAlias",
|
|
631
|
+
"async": true,
|
|
632
|
+
"params": [
|
|
633
|
+
"aliasId: string"
|
|
634
|
+
],
|
|
635
|
+
"returns": "Promise<void>"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "searchByAlias",
|
|
639
|
+
"async": true,
|
|
640
|
+
"params": [
|
|
641
|
+
"alias: string",
|
|
642
|
+
"language?: string"
|
|
643
|
+
],
|
|
644
|
+
"returns": "Promise<Tag[]>"
|
|
645
|
+
}
|
|
646
|
+
],
|
|
261
647
|
"surfaces": [],
|
|
262
648
|
"relationshipFeatures": [
|
|
263
649
|
"uuidColumns"
|
|
@@ -296,25 +682,29 @@
|
|
|
296
682
|
"name": "name",
|
|
297
683
|
"type": "text",
|
|
298
684
|
"required": true,
|
|
299
|
-
"columnType": "TEXT"
|
|
685
|
+
"columnType": "TEXT",
|
|
686
|
+
"default": ""
|
|
300
687
|
},
|
|
301
688
|
{
|
|
302
689
|
"name": "level",
|
|
303
690
|
"type": "integer",
|
|
304
691
|
"required": false,
|
|
305
|
-
"columnType": "INTEGER"
|
|
692
|
+
"columnType": "INTEGER",
|
|
693
|
+
"default": 0
|
|
306
694
|
},
|
|
307
695
|
{
|
|
308
696
|
"name": "description",
|
|
309
697
|
"type": "text",
|
|
310
698
|
"required": false,
|
|
311
|
-
"columnType": "TEXT"
|
|
699
|
+
"columnType": "TEXT",
|
|
700
|
+
"default": ""
|
|
312
701
|
},
|
|
313
702
|
{
|
|
314
703
|
"name": "metadata",
|
|
315
704
|
"type": "text",
|
|
316
705
|
"required": false,
|
|
317
|
-
"columnType": "TEXT"
|
|
706
|
+
"columnType": "TEXT",
|
|
707
|
+
"default": ""
|
|
318
708
|
},
|
|
319
709
|
{
|
|
320
710
|
"name": "tenantId",
|
|
@@ -398,6 +788,348 @@
|
|
|
398
788
|
"toPublicJSON",
|
|
399
789
|
"updateMetadata"
|
|
400
790
|
],
|
|
791
|
+
"methodSignatures": [
|
|
792
|
+
{
|
|
793
|
+
"name": "_setLoadedRelationship",
|
|
794
|
+
"params": [
|
|
795
|
+
"fieldName: string",
|
|
796
|
+
"value: any"
|
|
797
|
+
],
|
|
798
|
+
"returns": "void"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "classifyConstraintError",
|
|
802
|
+
"static": true,
|
|
803
|
+
"params": [
|
|
804
|
+
"message: string"
|
|
805
|
+
],
|
|
806
|
+
"returns": "'unique' | 'not_null' | null"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"name": "clearEmbeddings",
|
|
810
|
+
"async": true,
|
|
811
|
+
"returns": "Promise<void>"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "delete",
|
|
815
|
+
"async": true,
|
|
816
|
+
"returns": "Promise<void>"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "describe",
|
|
820
|
+
"async": true,
|
|
821
|
+
"params": [
|
|
822
|
+
"options?: AiOperationOptions"
|
|
823
|
+
],
|
|
824
|
+
"returns": "any"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "destroy",
|
|
828
|
+
"returns": "void"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "do",
|
|
832
|
+
"async": true,
|
|
833
|
+
"params": [
|
|
834
|
+
"instructions: string",
|
|
835
|
+
"options?: AiOperationOptions"
|
|
836
|
+
],
|
|
837
|
+
"returns": "any"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "executeToolCall",
|
|
841
|
+
"async": true,
|
|
842
|
+
"params": [
|
|
843
|
+
"toolCall: ToolCall"
|
|
844
|
+
],
|
|
845
|
+
"returns": "Promise<ToolCallResult>"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "forget",
|
|
849
|
+
"async": true,
|
|
850
|
+
"params": [
|
|
851
|
+
"options: object"
|
|
852
|
+
],
|
|
853
|
+
"returns": "Promise<void>"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "forgetScope",
|
|
857
|
+
"async": true,
|
|
858
|
+
"params": [
|
|
859
|
+
"options: object"
|
|
860
|
+
],
|
|
861
|
+
"returns": "Promise<number>"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "generateEmbeddings",
|
|
865
|
+
"async": true,
|
|
866
|
+
"params": [
|
|
867
|
+
"options?: GenerateEmbeddingsOptions"
|
|
868
|
+
],
|
|
869
|
+
"returns": "Promise<void>"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "getAiUsageSnapshot",
|
|
873
|
+
"returns": "AiUsageSnapshot | undefined"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "getAncestors",
|
|
877
|
+
"async": true,
|
|
878
|
+
"returns": "Promise"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "getAvailableTools",
|
|
882
|
+
"returns": "AITool[]"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "getBySlug",
|
|
886
|
+
"async": true,
|
|
887
|
+
"static": true,
|
|
888
|
+
"params": [
|
|
889
|
+
"_slug: string",
|
|
890
|
+
"_context?: string"
|
|
891
|
+
],
|
|
892
|
+
"returns": "Promise<Tag | null>"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "getChildren",
|
|
896
|
+
"async": true,
|
|
897
|
+
"returns": "Promise"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "getDescendants",
|
|
901
|
+
"async": true,
|
|
902
|
+
"returns": "Promise"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "getEmbedding",
|
|
906
|
+
"async": true,
|
|
907
|
+
"params": [
|
|
908
|
+
"fieldName: string",
|
|
909
|
+
"model?: string"
|
|
910
|
+
],
|
|
911
|
+
"returns": "Promise<number[] | null>"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "getFields",
|
|
915
|
+
"async": true,
|
|
916
|
+
"returns": "Promise<any>"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "getHierarchy",
|
|
920
|
+
"async": true,
|
|
921
|
+
"returns": "Promise<HierarchyView>"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "getId",
|
|
925
|
+
"async": true,
|
|
926
|
+
"returns": "any"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "getMetadata",
|
|
930
|
+
"returns": "TagMetadata"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "getParent",
|
|
934
|
+
"async": true,
|
|
935
|
+
"returns": "Promise<null>"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "getRelated",
|
|
939
|
+
"async": true,
|
|
940
|
+
"params": [
|
|
941
|
+
"fieldName: string",
|
|
942
|
+
"opts?: LoadRelatedOptions"
|
|
943
|
+
],
|
|
944
|
+
"returns": "Promise<any>"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "getRootTags",
|
|
948
|
+
"async": true,
|
|
949
|
+
"static": true,
|
|
950
|
+
"params": [
|
|
951
|
+
"_context?: string"
|
|
952
|
+
],
|
|
953
|
+
"returns": "Promise<Tag[]>"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "getSavedId",
|
|
957
|
+
"async": true,
|
|
958
|
+
"returns": "any"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "getSlug",
|
|
962
|
+
"async": true,
|
|
963
|
+
"returns": "any"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "hasStaleEmbeddings",
|
|
967
|
+
"async": true,
|
|
968
|
+
"returns": "Promise<boolean>"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "initialize",
|
|
972
|
+
"async": true,
|
|
973
|
+
"returns": "Promise"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "is",
|
|
977
|
+
"async": true,
|
|
978
|
+
"params": [
|
|
979
|
+
"criteria: string",
|
|
980
|
+
"options?: AiOperationOptions"
|
|
981
|
+
],
|
|
982
|
+
"returns": "any"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"name": "isRelatedLoaded",
|
|
986
|
+
"params": [
|
|
987
|
+
"fieldName: string"
|
|
988
|
+
],
|
|
989
|
+
"returns": "boolean"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"name": "isSaved",
|
|
993
|
+
"async": true,
|
|
994
|
+
"returns": "any"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "listAiUsage",
|
|
998
|
+
"async": true,
|
|
999
|
+
"params": [
|
|
1000
|
+
"options?: AiUsageListOptions"
|
|
1001
|
+
],
|
|
1002
|
+
"returns": "Promise<SmrtAiUsageRecord[]>"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "loadDataFromDb",
|
|
1006
|
+
"async": true,
|
|
1007
|
+
"params": [
|
|
1008
|
+
"data: Record<string>"
|
|
1009
|
+
],
|
|
1010
|
+
"returns": "any"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "loadFromId",
|
|
1014
|
+
"async": true,
|
|
1015
|
+
"returns": "any"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "loadFromSlug",
|
|
1019
|
+
"async": true,
|
|
1020
|
+
"returns": "any"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "loadRelated",
|
|
1024
|
+
"async": true,
|
|
1025
|
+
"params": [
|
|
1026
|
+
"fieldName: string",
|
|
1027
|
+
"opts?: LoadRelatedOptions"
|
|
1028
|
+
],
|
|
1029
|
+
"returns": "Promise<any>"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "loadRelatedMany",
|
|
1033
|
+
"async": true,
|
|
1034
|
+
"params": [
|
|
1035
|
+
"fieldName: string",
|
|
1036
|
+
"opts?: LoadRelatedOptions"
|
|
1037
|
+
],
|
|
1038
|
+
"returns": "Promise<any[]>"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "markAsPersisted",
|
|
1042
|
+
"returns": "void"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"name": "moveTo",
|
|
1046
|
+
"async": true,
|
|
1047
|
+
"params": [
|
|
1048
|
+
"newParent: string | null"
|
|
1049
|
+
],
|
|
1050
|
+
"returns": "Promise<void>"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "recall",
|
|
1054
|
+
"async": true,
|
|
1055
|
+
"params": [
|
|
1056
|
+
"options: object"
|
|
1057
|
+
],
|
|
1058
|
+
"returns": "Promise"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "recallAll",
|
|
1062
|
+
"async": true,
|
|
1063
|
+
"params": [
|
|
1064
|
+
"options?: object"
|
|
1065
|
+
],
|
|
1066
|
+
"returns": "Promise<Map<string>>"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "remember",
|
|
1070
|
+
"async": true,
|
|
1071
|
+
"params": [
|
|
1072
|
+
"options: object"
|
|
1073
|
+
],
|
|
1074
|
+
"returns": "Promise<void>"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"name": "requireInsertOnSave",
|
|
1078
|
+
"returns": "void"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"name": "resetAiUsage",
|
|
1082
|
+
"returns": "void"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "save",
|
|
1086
|
+
"async": true,
|
|
1087
|
+
"returns": "any"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "setMetadata",
|
|
1091
|
+
"params": [
|
|
1092
|
+
"data: TagMetadata"
|
|
1093
|
+
],
|
|
1094
|
+
"returns": "void"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"name": "summarizeAiUsage",
|
|
1098
|
+
"async": true,
|
|
1099
|
+
"params": [
|
|
1100
|
+
"options?: AiUsageSummaryOptions"
|
|
1101
|
+
],
|
|
1102
|
+
"returns": "Promise<Record<string, AiUsageStats>>"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"name": "toJSON",
|
|
1106
|
+
"returns": "any"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "toPlainObject",
|
|
1110
|
+
"returns": "Record<string>"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "toPublicJSON",
|
|
1114
|
+
"params": [
|
|
1115
|
+
"options?: PublicJsonOptions"
|
|
1116
|
+
],
|
|
1117
|
+
"returns": "Record<string>"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "updateMetadata",
|
|
1121
|
+
"params": [
|
|
1122
|
+
"updates: Partial<TagMetadata>"
|
|
1123
|
+
],
|
|
1124
|
+
"returns": "void"
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
"tenant": {
|
|
1128
|
+
"scoped": true,
|
|
1129
|
+
"mode": "optional",
|
|
1130
|
+
"field": "tenantId"
|
|
1131
|
+
},
|
|
1132
|
+
"tableStrategy": "sti",
|
|
401
1133
|
"surfaces": [
|
|
402
1134
|
{
|
|
403
1135
|
"kind": "api",
|
|
@@ -525,6 +1257,110 @@
|
|
|
525
1257
|
"mergeTag",
|
|
526
1258
|
"moveTag"
|
|
527
1259
|
],
|
|
1260
|
+
"methodSignatures": [
|
|
1261
|
+
{
|
|
1262
|
+
"name": "calculateLevel",
|
|
1263
|
+
"async": true,
|
|
1264
|
+
"params": [
|
|
1265
|
+
"parentSlug: string | null",
|
|
1266
|
+
"context?: string"
|
|
1267
|
+
],
|
|
1268
|
+
"returns": "Promise<number>"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "cleanupUnused",
|
|
1272
|
+
"async": true,
|
|
1273
|
+
"params": [
|
|
1274
|
+
"context?: string"
|
|
1275
|
+
],
|
|
1276
|
+
"returns": "Promise<number>"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "findByTenant",
|
|
1280
|
+
"async": true,
|
|
1281
|
+
"params": [
|
|
1282
|
+
"tenantId: string"
|
|
1283
|
+
],
|
|
1284
|
+
"returns": "Promise<Tag[]>"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "findGlobal",
|
|
1288
|
+
"async": true,
|
|
1289
|
+
"returns": "Promise<Tag[]>"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "findWithGlobals",
|
|
1293
|
+
"async": true,
|
|
1294
|
+
"params": [
|
|
1295
|
+
"tenantId: string"
|
|
1296
|
+
],
|
|
1297
|
+
"returns": "Promise<Tag[]>"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"name": "getChildren",
|
|
1301
|
+
"async": true,
|
|
1302
|
+
"params": [
|
|
1303
|
+
"parentSlug: string",
|
|
1304
|
+
"context?: string"
|
|
1305
|
+
],
|
|
1306
|
+
"returns": "Promise<Tag[]>"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"name": "getHierarchy",
|
|
1310
|
+
"async": true,
|
|
1311
|
+
"params": [
|
|
1312
|
+
"slug: string",
|
|
1313
|
+
"context?: string"
|
|
1314
|
+
],
|
|
1315
|
+
"returns": "Promise<TagHierarchy>"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"name": "getOrCreate",
|
|
1319
|
+
"async": true,
|
|
1320
|
+
"params": [
|
|
1321
|
+
"slug: string",
|
|
1322
|
+
"context?: string"
|
|
1323
|
+
],
|
|
1324
|
+
"returns": "Promise<Tag>"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "getRootTags",
|
|
1328
|
+
"async": true,
|
|
1329
|
+
"params": [
|
|
1330
|
+
"context?: string"
|
|
1331
|
+
],
|
|
1332
|
+
"returns": "Promise<Tag[]>"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"name": "listByContext",
|
|
1336
|
+
"async": true,
|
|
1337
|
+
"params": [
|
|
1338
|
+
"context: string",
|
|
1339
|
+
"parentSlug?: string | null"
|
|
1340
|
+
],
|
|
1341
|
+
"returns": "Promise<Tag[]>"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"name": "mergeTag",
|
|
1345
|
+
"async": true,
|
|
1346
|
+
"params": [
|
|
1347
|
+
"fromSlug: string",
|
|
1348
|
+
"toSlug: string",
|
|
1349
|
+
"context?: string"
|
|
1350
|
+
],
|
|
1351
|
+
"returns": "Promise<void>"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "moveTag",
|
|
1355
|
+
"async": true,
|
|
1356
|
+
"params": [
|
|
1357
|
+
"slug: string",
|
|
1358
|
+
"newParentSlug: string | null",
|
|
1359
|
+
"context?: string"
|
|
1360
|
+
],
|
|
1361
|
+
"returns": "Promise<void>"
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
528
1364
|
"surfaces": [],
|
|
529
1365
|
"relationshipFeatures": [
|
|
530
1366
|
"uuidColumns"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-tags",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.66",
|
|
4
4
|
"description": "Reusable tagging system with hierarchies, contexts, and multi-language support for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"./manifest.json": "./dist/manifest.json"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@happyvertical/ai": "^0.86.
|
|
27
|
-
"@happyvertical/files": "^0.86.
|
|
28
|
-
"@happyvertical/logger": "^0.86.
|
|
29
|
-
"@happyvertical/sql": "^0.86.
|
|
30
|
-
"@happyvertical/utils": "^0.86.
|
|
31
|
-
"@happyvertical/smrt-core": "0.40.
|
|
32
|
-
"@happyvertical/smrt-tenancy": "0.40.
|
|
26
|
+
"@happyvertical/ai": "^0.86.3",
|
|
27
|
+
"@happyvertical/files": "^0.86.3",
|
|
28
|
+
"@happyvertical/logger": "^0.86.3",
|
|
29
|
+
"@happyvertical/sql": "^0.86.3",
|
|
30
|
+
"@happyvertical/utils": "^0.86.3",
|
|
31
|
+
"@happyvertical/smrt-core": "0.40.66",
|
|
32
|
+
"@happyvertical/smrt-tenancy": "0.40.66"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "24.13.2",
|