@happyvertical/smrt-core 0.40.59 → 0.40.60

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.
@@ -3,7 +3,7 @@ var testManifest = {
3
3
  "version": "1.0.0",
4
4
  "timestamp": 0,
5
5
  "packageName": "@happyvertical/smrt-core",
6
- "packageVersion": "0.40.59",
6
+ "packageVersion": "0.40.60",
7
7
  "objects": {
8
8
  "@happyvertical/smrt-core:SmrtClass": {
9
9
  "name": "smrtclass",
@@ -69894,6 +69894,1246 @@ var testManifest = {
69894
69894
  "version": "c9a22d19"
69895
69895
  }
69896
69896
  },
69897
+ "@happyvertical/smrt-core:McpTextIdWidget": {
69898
+ "name": "mcptextidwidget",
69899
+ "className": "McpTextIdWidget",
69900
+ "qualifiedName": "@happyvertical/smrt-core:McpTextIdWidget",
69901
+ "collection": "mcptextidwidgets",
69902
+ "filePath": "packages/core/src/generators/mcp-schemas.spec.ts",
69903
+ "packageName": "@happyvertical/smrt-core",
69904
+ "fields": { "title": {
69905
+ "type": "text",
69906
+ "required": false,
69907
+ "_meta": {}
69908
+ } },
69909
+ "methods": {},
69910
+ "decoratorConfig": {
69911
+ "idType": "text",
69912
+ "mcp": { "include": [
69913
+ "get",
69914
+ "update",
69915
+ "delete"
69916
+ ] }
69917
+ },
69918
+ "extends": "SmrtObject",
69919
+ "exportName": "McpTextIdWidget",
69920
+ "collectionExportName": "McpTextIdWidgetCollection",
69921
+ "schema": {
69922
+ "tableName": "mcp_text_id_widgets",
69923
+ "ddl": "CREATE TABLE IF NOT EXISTS \"mcp_text_id_widgets\" (\n \"id\" TEXT 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 \"title\" TEXT\n);",
69924
+ "columns": {
69925
+ "id": {
69926
+ "type": "TEXT",
69927
+ "primaryKey": true,
69928
+ "referenceKind": "id",
69929
+ "notNull": true
69930
+ },
69931
+ "slug": {
69932
+ "type": "TEXT",
69933
+ "notNull": true
69934
+ },
69935
+ "context": {
69936
+ "type": "TEXT",
69937
+ "notNull": true,
69938
+ "default": ""
69939
+ },
69940
+ "created_at": {
69941
+ "type": "TIMESTAMP",
69942
+ "notNull": true,
69943
+ "default": "current_timestamp"
69944
+ },
69945
+ "updated_at": {
69946
+ "type": "TIMESTAMP",
69947
+ "notNull": true,
69948
+ "default": "current_timestamp"
69949
+ },
69950
+ "title": {
69951
+ "type": "TEXT",
69952
+ "notNull": false,
69953
+ "unique": false
69954
+ }
69955
+ },
69956
+ "indexes": [{
69957
+ "name": "mcp_text_id_widgets_id_idx",
69958
+ "columns": ["id"]
69959
+ }, {
69960
+ "name": "mcp_text_id_widgets_slug_context_idx",
69961
+ "columns": ["slug", "context"],
69962
+ "unique": true
69963
+ }],
69964
+ "version": "574d148d"
69965
+ }
69966
+ },
69967
+ "@happyvertical/smrt-core:McpStiAnimal": {
69968
+ "name": "mcpstianimal",
69969
+ "className": "McpStiAnimal",
69970
+ "qualifiedName": "@happyvertical/smrt-core:McpStiAnimal",
69971
+ "collection": "mcpstianimals",
69972
+ "filePath": "packages/core/src/generators/mcp-schemas.spec.ts",
69973
+ "packageName": "@happyvertical/smrt-core",
69974
+ "fields": {
69975
+ "created_at": {
69976
+ "type": "datetime",
69977
+ "required": false
69978
+ },
69979
+ "updated_at": {
69980
+ "type": "datetime",
69981
+ "required": false
69982
+ },
69983
+ "name": {
69984
+ "type": "text",
69985
+ "required": true,
69986
+ "_meta": { "required": true }
69987
+ }
69988
+ },
69989
+ "methods": {
69990
+ "getAiUsageSnapshot": {
69991
+ "name": "getAiUsageSnapshot",
69992
+ "async": false,
69993
+ "parameters": [],
69994
+ "returnType": "AiUsageSnapshot | undefined",
69995
+ "isStatic": false,
69996
+ "isPublic": true
69997
+ },
69998
+ "resetAiUsage": {
69999
+ "name": "resetAiUsage",
70000
+ "async": false,
70001
+ "parameters": [],
70002
+ "returnType": "void",
70003
+ "isStatic": false,
70004
+ "isPublic": true
70005
+ },
70006
+ "listAiUsage": {
70007
+ "name": "listAiUsage",
70008
+ "async": true,
70009
+ "parameters": [{
70010
+ "name": "options",
70011
+ "type": "AiUsageListOptions",
70012
+ "optional": true
70013
+ }],
70014
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
70015
+ "isStatic": false,
70016
+ "isPublic": true
70017
+ },
70018
+ "summarizeAiUsage": {
70019
+ "name": "summarizeAiUsage",
70020
+ "async": true,
70021
+ "parameters": [{
70022
+ "name": "options",
70023
+ "type": "AiUsageSummaryOptions",
70024
+ "optional": true
70025
+ }],
70026
+ "returnType": "Promise<Record<string, AiUsageStats>>",
70027
+ "isStatic": false,
70028
+ "isPublic": true
70029
+ },
70030
+ "destroy": {
70031
+ "name": "destroy",
70032
+ "async": false,
70033
+ "parameters": [],
70034
+ "returnType": "void",
70035
+ "isStatic": false,
70036
+ "isPublic": true
70037
+ },
70038
+ "markAsPersisted": {
70039
+ "name": "markAsPersisted",
70040
+ "async": false,
70041
+ "parameters": [],
70042
+ "returnType": "void",
70043
+ "isStatic": false,
70044
+ "isPublic": true
70045
+ },
70046
+ "requireInsertOnSave": {
70047
+ "name": "requireInsertOnSave",
70048
+ "async": false,
70049
+ "parameters": [],
70050
+ "returnType": "void",
70051
+ "isStatic": false,
70052
+ "isPublic": true
70053
+ },
70054
+ "initialize": {
70055
+ "name": "initialize",
70056
+ "async": true,
70057
+ "parameters": [],
70058
+ "returnType": "Promise",
70059
+ "isStatic": false,
70060
+ "isPublic": true
70061
+ },
70062
+ "loadDataFromDb": {
70063
+ "name": "loadDataFromDb",
70064
+ "async": true,
70065
+ "parameters": [{
70066
+ "name": "data",
70067
+ "type": "Record<string>",
70068
+ "optional": false
70069
+ }],
70070
+ "returnType": "any",
70071
+ "isStatic": false,
70072
+ "isPublic": true
70073
+ },
70074
+ "getFields": {
70075
+ "name": "getFields",
70076
+ "async": true,
70077
+ "parameters": [],
70078
+ "returnType": "Promise<any>",
70079
+ "isStatic": false,
70080
+ "isPublic": true
70081
+ },
70082
+ "toJSON": {
70083
+ "name": "toJSON",
70084
+ "async": false,
70085
+ "parameters": [],
70086
+ "returnType": "any",
70087
+ "isStatic": false,
70088
+ "isPublic": true
70089
+ },
70090
+ "toPlainObject": {
70091
+ "name": "toPlainObject",
70092
+ "async": false,
70093
+ "parameters": [],
70094
+ "returnType": "Record<string>",
70095
+ "isStatic": false,
70096
+ "isPublic": true
70097
+ },
70098
+ "toPublicJSON": {
70099
+ "name": "toPublicJSON",
70100
+ "async": false,
70101
+ "parameters": [{
70102
+ "name": "options",
70103
+ "type": "PublicJsonOptions",
70104
+ "optional": true
70105
+ }],
70106
+ "returnType": "Record<string>",
70107
+ "isStatic": false,
70108
+ "isPublic": true
70109
+ },
70110
+ "getId": {
70111
+ "name": "getId",
70112
+ "async": true,
70113
+ "parameters": [],
70114
+ "returnType": "any",
70115
+ "isStatic": false,
70116
+ "isPublic": true
70117
+ },
70118
+ "getSlug": {
70119
+ "name": "getSlug",
70120
+ "async": true,
70121
+ "parameters": [],
70122
+ "returnType": "any",
70123
+ "isStatic": false,
70124
+ "isPublic": true
70125
+ },
70126
+ "getSavedId": {
70127
+ "name": "getSavedId",
70128
+ "async": true,
70129
+ "parameters": [],
70130
+ "returnType": "any",
70131
+ "isStatic": false,
70132
+ "isPublic": true
70133
+ },
70134
+ "isSaved": {
70135
+ "name": "isSaved",
70136
+ "async": true,
70137
+ "parameters": [],
70138
+ "returnType": "any",
70139
+ "isStatic": false,
70140
+ "isPublic": true
70141
+ },
70142
+ "save": {
70143
+ "name": "save",
70144
+ "async": true,
70145
+ "parameters": [],
70146
+ "returnType": "any",
70147
+ "isStatic": false,
70148
+ "isPublic": true
70149
+ },
70150
+ "classifyConstraintError": {
70151
+ "name": "classifyConstraintError",
70152
+ "async": false,
70153
+ "parameters": [{
70154
+ "name": "message",
70155
+ "type": "string",
70156
+ "optional": false
70157
+ }],
70158
+ "returnType": "'unique' | 'not_null' | null",
70159
+ "isStatic": true,
70160
+ "isPublic": true
70161
+ },
70162
+ "loadFromId": {
70163
+ "name": "loadFromId",
70164
+ "async": true,
70165
+ "parameters": [],
70166
+ "returnType": "any",
70167
+ "isStatic": false,
70168
+ "isPublic": true
70169
+ },
70170
+ "loadFromSlug": {
70171
+ "name": "loadFromSlug",
70172
+ "async": true,
70173
+ "parameters": [],
70174
+ "returnType": "any",
70175
+ "isStatic": false,
70176
+ "isPublic": true
70177
+ },
70178
+ "is": {
70179
+ "name": "is",
70180
+ "async": true,
70181
+ "parameters": [{
70182
+ "name": "criteria",
70183
+ "type": "string",
70184
+ "optional": false
70185
+ }, {
70186
+ "name": "options",
70187
+ "type": "AiOperationOptions",
70188
+ "optional": true
70189
+ }],
70190
+ "returnType": "any",
70191
+ "isStatic": false,
70192
+ "isPublic": true
70193
+ },
70194
+ "do": {
70195
+ "name": "do",
70196
+ "async": true,
70197
+ "parameters": [{
70198
+ "name": "instructions",
70199
+ "type": "string",
70200
+ "optional": false
70201
+ }, {
70202
+ "name": "options",
70203
+ "type": "AiOperationOptions",
70204
+ "optional": true
70205
+ }],
70206
+ "returnType": "any",
70207
+ "isStatic": false,
70208
+ "isPublic": true
70209
+ },
70210
+ "describe": {
70211
+ "name": "describe",
70212
+ "async": true,
70213
+ "parameters": [{
70214
+ "name": "options",
70215
+ "type": "AiOperationOptions",
70216
+ "optional": true
70217
+ }],
70218
+ "returnType": "any",
70219
+ "isStatic": false,
70220
+ "isPublic": true
70221
+ },
70222
+ "delete": {
70223
+ "name": "delete",
70224
+ "async": true,
70225
+ "parameters": [],
70226
+ "returnType": "Promise<void>",
70227
+ "isStatic": false,
70228
+ "isPublic": true
70229
+ },
70230
+ "isRelatedLoaded": {
70231
+ "name": "isRelatedLoaded",
70232
+ "async": false,
70233
+ "parameters": [{
70234
+ "name": "fieldName",
70235
+ "type": "string",
70236
+ "optional": false
70237
+ }],
70238
+ "returnType": "boolean",
70239
+ "isStatic": false,
70240
+ "isPublic": true
70241
+ },
70242
+ "_setLoadedRelationship": {
70243
+ "name": "_setLoadedRelationship",
70244
+ "async": false,
70245
+ "parameters": [{
70246
+ "name": "fieldName",
70247
+ "type": "string",
70248
+ "optional": false
70249
+ }, {
70250
+ "name": "value",
70251
+ "type": "any",
70252
+ "optional": false
70253
+ }],
70254
+ "returnType": "void",
70255
+ "isStatic": false,
70256
+ "isPublic": true
70257
+ },
70258
+ "loadRelated": {
70259
+ "name": "loadRelated",
70260
+ "async": true,
70261
+ "parameters": [{
70262
+ "name": "fieldName",
70263
+ "type": "string",
70264
+ "optional": false
70265
+ }, {
70266
+ "name": "opts",
70267
+ "type": "LoadRelatedOptions",
70268
+ "optional": true
70269
+ }],
70270
+ "returnType": "Promise<any>",
70271
+ "isStatic": false,
70272
+ "isPublic": true
70273
+ },
70274
+ "loadRelatedMany": {
70275
+ "name": "loadRelatedMany",
70276
+ "async": true,
70277
+ "parameters": [{
70278
+ "name": "fieldName",
70279
+ "type": "string",
70280
+ "optional": false
70281
+ }, {
70282
+ "name": "opts",
70283
+ "type": "LoadRelatedOptions",
70284
+ "optional": true
70285
+ }],
70286
+ "returnType": "Promise<any[]>",
70287
+ "isStatic": false,
70288
+ "isPublic": true
70289
+ },
70290
+ "getRelated": {
70291
+ "name": "getRelated",
70292
+ "async": true,
70293
+ "parameters": [{
70294
+ "name": "fieldName",
70295
+ "type": "string",
70296
+ "optional": false
70297
+ }, {
70298
+ "name": "opts",
70299
+ "type": "LoadRelatedOptions",
70300
+ "optional": true
70301
+ }],
70302
+ "returnType": "Promise<any>",
70303
+ "isStatic": false,
70304
+ "isPublic": true
70305
+ },
70306
+ "getAvailableTools": {
70307
+ "name": "getAvailableTools",
70308
+ "async": false,
70309
+ "parameters": [],
70310
+ "returnType": "AITool[]",
70311
+ "isStatic": false,
70312
+ "isPublic": true
70313
+ },
70314
+ "executeToolCall": {
70315
+ "name": "executeToolCall",
70316
+ "async": true,
70317
+ "parameters": [{
70318
+ "name": "toolCall",
70319
+ "type": "ToolCall",
70320
+ "optional": false
70321
+ }],
70322
+ "returnType": "Promise<ToolCallResult>",
70323
+ "isStatic": false,
70324
+ "isPublic": true
70325
+ },
70326
+ "remember": {
70327
+ "name": "remember",
70328
+ "async": true,
70329
+ "parameters": [{
70330
+ "name": "options",
70331
+ "type": "object",
70332
+ "optional": false
70333
+ }],
70334
+ "returnType": "Promise<void>",
70335
+ "isStatic": false,
70336
+ "isPublic": true
70337
+ },
70338
+ "recall": {
70339
+ "name": "recall",
70340
+ "async": true,
70341
+ "parameters": [{
70342
+ "name": "options",
70343
+ "type": "object",
70344
+ "optional": false
70345
+ }],
70346
+ "returnType": "Promise",
70347
+ "isStatic": false,
70348
+ "isPublic": true
70349
+ },
70350
+ "recallAll": {
70351
+ "name": "recallAll",
70352
+ "async": true,
70353
+ "parameters": [{
70354
+ "name": "options",
70355
+ "type": "object",
70356
+ "optional": true
70357
+ }],
70358
+ "returnType": "Promise<Map<string>>",
70359
+ "isStatic": false,
70360
+ "isPublic": true
70361
+ },
70362
+ "forget": {
70363
+ "name": "forget",
70364
+ "async": true,
70365
+ "parameters": [{
70366
+ "name": "options",
70367
+ "type": "object",
70368
+ "optional": false
70369
+ }],
70370
+ "returnType": "Promise<void>",
70371
+ "isStatic": false,
70372
+ "isPublic": true
70373
+ },
70374
+ "forgetScope": {
70375
+ "name": "forgetScope",
70376
+ "async": true,
70377
+ "parameters": [{
70378
+ "name": "options",
70379
+ "type": "object",
70380
+ "optional": false
70381
+ }],
70382
+ "returnType": "Promise<number>",
70383
+ "isStatic": false,
70384
+ "isPublic": true
70385
+ },
70386
+ "generateEmbeddings": {
70387
+ "name": "generateEmbeddings",
70388
+ "async": true,
70389
+ "parameters": [{
70390
+ "name": "options",
70391
+ "type": "GenerateEmbeddingsOptions",
70392
+ "optional": true
70393
+ }],
70394
+ "returnType": "Promise<void>",
70395
+ "isStatic": false,
70396
+ "isPublic": true
70397
+ },
70398
+ "getEmbedding": {
70399
+ "name": "getEmbedding",
70400
+ "async": true,
70401
+ "parameters": [{
70402
+ "name": "fieldName",
70403
+ "type": "string",
70404
+ "optional": false
70405
+ }, {
70406
+ "name": "model",
70407
+ "type": "string",
70408
+ "optional": true
70409
+ }],
70410
+ "returnType": "Promise<number[] | null>",
70411
+ "isStatic": false,
70412
+ "isPublic": true
70413
+ },
70414
+ "hasStaleEmbeddings": {
70415
+ "name": "hasStaleEmbeddings",
70416
+ "async": true,
70417
+ "parameters": [],
70418
+ "returnType": "Promise<boolean>",
70419
+ "isStatic": false,
70420
+ "isPublic": true
70421
+ },
70422
+ "clearEmbeddings": {
70423
+ "name": "clearEmbeddings",
70424
+ "async": true,
70425
+ "parameters": [],
70426
+ "returnType": "Promise<void>",
70427
+ "isStatic": false,
70428
+ "isPublic": true
70429
+ }
70430
+ },
70431
+ "decoratorConfig": {
70432
+ "tableStrategy": "sti",
70433
+ "mcp": { "include": ["create", "get"] }
70434
+ },
70435
+ "extends": "SmrtObject",
70436
+ "exportName": "McpStiAnimal",
70437
+ "collectionExportName": "McpStiAnimalCollection",
70438
+ "validationRules": [{
70439
+ "field": "name",
70440
+ "rule": "required",
70441
+ "fieldType": "text"
70442
+ }],
70443
+ "schema": {
70444
+ "tableName": "mcp_sti_animals",
70445
+ "ddl": "CREATE TABLE IF NOT EXISTS \"mcp_sti_animals\" (\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 \"name\" TEXT,\n \"lives\" INTEGER\n);",
70446
+ "columns": {
70447
+ "id": {
70448
+ "type": "UUID",
70449
+ "primaryKey": true,
70450
+ "referenceKind": "id",
70451
+ "notNull": true
70452
+ },
70453
+ "slug": {
70454
+ "type": "TEXT",
70455
+ "notNull": true
70456
+ },
70457
+ "context": {
70458
+ "type": "TEXT",
70459
+ "notNull": true,
70460
+ "default": ""
70461
+ },
70462
+ "_meta_type": {
70463
+ "type": "TEXT",
70464
+ "notNull": true
70465
+ },
70466
+ "_meta_data": {
70467
+ "type": "JSON",
70468
+ "notNull": false
70469
+ },
70470
+ "created_at": {
70471
+ "type": "TIMESTAMP",
70472
+ "notNull": true,
70473
+ "default": "current_timestamp"
70474
+ },
70475
+ "updated_at": {
70476
+ "type": "TIMESTAMP",
70477
+ "notNull": true,
70478
+ "default": "current_timestamp"
70479
+ },
70480
+ "name": {
70481
+ "type": "TEXT",
70482
+ "notNull": false
70483
+ },
70484
+ "lives": {
70485
+ "type": "INTEGER",
70486
+ "notNull": false
70487
+ }
70488
+ },
70489
+ "indexes": [
70490
+ {
70491
+ "name": "mcp_sti_animals_id_idx",
70492
+ "columns": ["id"]
70493
+ },
70494
+ {
70495
+ "name": "mcp_sti_animals_slug_context_meta_type_idx",
70496
+ "columns": [
70497
+ "slug",
70498
+ "context",
70499
+ "_meta_type"
70500
+ ],
70501
+ "unique": true
70502
+ },
70503
+ {
70504
+ "name": "mcp_sti_animals_meta_type_idx",
70505
+ "columns": ["_meta_type"]
70506
+ }
70507
+ ],
70508
+ "version": "ed131f1b"
70509
+ }
70510
+ },
70511
+ "@happyvertical/smrt-core:McpStiCat": {
70512
+ "name": "mcpsticat",
70513
+ "className": "McpStiCat",
70514
+ "qualifiedName": "@happyvertical/smrt-core:McpStiCat",
70515
+ "collection": "mcpstianimals",
70516
+ "filePath": "packages/core/src/generators/mcp-schemas.spec.ts",
70517
+ "packageName": "@happyvertical/smrt-core",
70518
+ "fields": {
70519
+ "created_at": {
70520
+ "type": "datetime",
70521
+ "required": false
70522
+ },
70523
+ "updated_at": {
70524
+ "type": "datetime",
70525
+ "required": false
70526
+ },
70527
+ "name": {
70528
+ "type": "text",
70529
+ "required": true,
70530
+ "_meta": { "required": true }
70531
+ },
70532
+ "lives": {
70533
+ "type": "integer",
70534
+ "required": false,
70535
+ "_meta": {}
70536
+ }
70537
+ },
70538
+ "methods": {
70539
+ "getAiUsageSnapshot": {
70540
+ "name": "getAiUsageSnapshot",
70541
+ "async": false,
70542
+ "parameters": [],
70543
+ "returnType": "AiUsageSnapshot | undefined",
70544
+ "isStatic": false,
70545
+ "isPublic": true
70546
+ },
70547
+ "resetAiUsage": {
70548
+ "name": "resetAiUsage",
70549
+ "async": false,
70550
+ "parameters": [],
70551
+ "returnType": "void",
70552
+ "isStatic": false,
70553
+ "isPublic": true
70554
+ },
70555
+ "listAiUsage": {
70556
+ "name": "listAiUsage",
70557
+ "async": true,
70558
+ "parameters": [{
70559
+ "name": "options",
70560
+ "type": "AiUsageListOptions",
70561
+ "optional": true
70562
+ }],
70563
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
70564
+ "isStatic": false,
70565
+ "isPublic": true
70566
+ },
70567
+ "summarizeAiUsage": {
70568
+ "name": "summarizeAiUsage",
70569
+ "async": true,
70570
+ "parameters": [{
70571
+ "name": "options",
70572
+ "type": "AiUsageSummaryOptions",
70573
+ "optional": true
70574
+ }],
70575
+ "returnType": "Promise<Record<string, AiUsageStats>>",
70576
+ "isStatic": false,
70577
+ "isPublic": true
70578
+ },
70579
+ "destroy": {
70580
+ "name": "destroy",
70581
+ "async": false,
70582
+ "parameters": [],
70583
+ "returnType": "void",
70584
+ "isStatic": false,
70585
+ "isPublic": true
70586
+ },
70587
+ "markAsPersisted": {
70588
+ "name": "markAsPersisted",
70589
+ "async": false,
70590
+ "parameters": [],
70591
+ "returnType": "void",
70592
+ "isStatic": false,
70593
+ "isPublic": true
70594
+ },
70595
+ "requireInsertOnSave": {
70596
+ "name": "requireInsertOnSave",
70597
+ "async": false,
70598
+ "parameters": [],
70599
+ "returnType": "void",
70600
+ "isStatic": false,
70601
+ "isPublic": true
70602
+ },
70603
+ "initialize": {
70604
+ "name": "initialize",
70605
+ "async": true,
70606
+ "parameters": [],
70607
+ "returnType": "Promise",
70608
+ "isStatic": false,
70609
+ "isPublic": true
70610
+ },
70611
+ "loadDataFromDb": {
70612
+ "name": "loadDataFromDb",
70613
+ "async": true,
70614
+ "parameters": [{
70615
+ "name": "data",
70616
+ "type": "Record<string>",
70617
+ "optional": false
70618
+ }],
70619
+ "returnType": "any",
70620
+ "isStatic": false,
70621
+ "isPublic": true
70622
+ },
70623
+ "getFields": {
70624
+ "name": "getFields",
70625
+ "async": true,
70626
+ "parameters": [],
70627
+ "returnType": "Promise<any>",
70628
+ "isStatic": false,
70629
+ "isPublic": true
70630
+ },
70631
+ "toJSON": {
70632
+ "name": "toJSON",
70633
+ "async": false,
70634
+ "parameters": [],
70635
+ "returnType": "any",
70636
+ "isStatic": false,
70637
+ "isPublic": true
70638
+ },
70639
+ "toPlainObject": {
70640
+ "name": "toPlainObject",
70641
+ "async": false,
70642
+ "parameters": [],
70643
+ "returnType": "Record<string>",
70644
+ "isStatic": false,
70645
+ "isPublic": true
70646
+ },
70647
+ "toPublicJSON": {
70648
+ "name": "toPublicJSON",
70649
+ "async": false,
70650
+ "parameters": [{
70651
+ "name": "options",
70652
+ "type": "PublicJsonOptions",
70653
+ "optional": true
70654
+ }],
70655
+ "returnType": "Record<string>",
70656
+ "isStatic": false,
70657
+ "isPublic": true
70658
+ },
70659
+ "getId": {
70660
+ "name": "getId",
70661
+ "async": true,
70662
+ "parameters": [],
70663
+ "returnType": "any",
70664
+ "isStatic": false,
70665
+ "isPublic": true
70666
+ },
70667
+ "getSlug": {
70668
+ "name": "getSlug",
70669
+ "async": true,
70670
+ "parameters": [],
70671
+ "returnType": "any",
70672
+ "isStatic": false,
70673
+ "isPublic": true
70674
+ },
70675
+ "getSavedId": {
70676
+ "name": "getSavedId",
70677
+ "async": true,
70678
+ "parameters": [],
70679
+ "returnType": "any",
70680
+ "isStatic": false,
70681
+ "isPublic": true
70682
+ },
70683
+ "isSaved": {
70684
+ "name": "isSaved",
70685
+ "async": true,
70686
+ "parameters": [],
70687
+ "returnType": "any",
70688
+ "isStatic": false,
70689
+ "isPublic": true
70690
+ },
70691
+ "save": {
70692
+ "name": "save",
70693
+ "async": true,
70694
+ "parameters": [],
70695
+ "returnType": "any",
70696
+ "isStatic": false,
70697
+ "isPublic": true
70698
+ },
70699
+ "classifyConstraintError": {
70700
+ "name": "classifyConstraintError",
70701
+ "async": false,
70702
+ "parameters": [{
70703
+ "name": "message",
70704
+ "type": "string",
70705
+ "optional": false
70706
+ }],
70707
+ "returnType": "'unique' | 'not_null' | null",
70708
+ "isStatic": true,
70709
+ "isPublic": true
70710
+ },
70711
+ "loadFromId": {
70712
+ "name": "loadFromId",
70713
+ "async": true,
70714
+ "parameters": [],
70715
+ "returnType": "any",
70716
+ "isStatic": false,
70717
+ "isPublic": true
70718
+ },
70719
+ "loadFromSlug": {
70720
+ "name": "loadFromSlug",
70721
+ "async": true,
70722
+ "parameters": [],
70723
+ "returnType": "any",
70724
+ "isStatic": false,
70725
+ "isPublic": true
70726
+ },
70727
+ "is": {
70728
+ "name": "is",
70729
+ "async": true,
70730
+ "parameters": [{
70731
+ "name": "criteria",
70732
+ "type": "string",
70733
+ "optional": false
70734
+ }, {
70735
+ "name": "options",
70736
+ "type": "AiOperationOptions",
70737
+ "optional": true
70738
+ }],
70739
+ "returnType": "any",
70740
+ "isStatic": false,
70741
+ "isPublic": true
70742
+ },
70743
+ "do": {
70744
+ "name": "do",
70745
+ "async": true,
70746
+ "parameters": [{
70747
+ "name": "instructions",
70748
+ "type": "string",
70749
+ "optional": false
70750
+ }, {
70751
+ "name": "options",
70752
+ "type": "AiOperationOptions",
70753
+ "optional": true
70754
+ }],
70755
+ "returnType": "any",
70756
+ "isStatic": false,
70757
+ "isPublic": true
70758
+ },
70759
+ "describe": {
70760
+ "name": "describe",
70761
+ "async": true,
70762
+ "parameters": [{
70763
+ "name": "options",
70764
+ "type": "AiOperationOptions",
70765
+ "optional": true
70766
+ }],
70767
+ "returnType": "any",
70768
+ "isStatic": false,
70769
+ "isPublic": true
70770
+ },
70771
+ "delete": {
70772
+ "name": "delete",
70773
+ "async": true,
70774
+ "parameters": [],
70775
+ "returnType": "Promise<void>",
70776
+ "isStatic": false,
70777
+ "isPublic": true
70778
+ },
70779
+ "isRelatedLoaded": {
70780
+ "name": "isRelatedLoaded",
70781
+ "async": false,
70782
+ "parameters": [{
70783
+ "name": "fieldName",
70784
+ "type": "string",
70785
+ "optional": false
70786
+ }],
70787
+ "returnType": "boolean",
70788
+ "isStatic": false,
70789
+ "isPublic": true
70790
+ },
70791
+ "_setLoadedRelationship": {
70792
+ "name": "_setLoadedRelationship",
70793
+ "async": false,
70794
+ "parameters": [{
70795
+ "name": "fieldName",
70796
+ "type": "string",
70797
+ "optional": false
70798
+ }, {
70799
+ "name": "value",
70800
+ "type": "any",
70801
+ "optional": false
70802
+ }],
70803
+ "returnType": "void",
70804
+ "isStatic": false,
70805
+ "isPublic": true
70806
+ },
70807
+ "loadRelated": {
70808
+ "name": "loadRelated",
70809
+ "async": true,
70810
+ "parameters": [{
70811
+ "name": "fieldName",
70812
+ "type": "string",
70813
+ "optional": false
70814
+ }, {
70815
+ "name": "opts",
70816
+ "type": "LoadRelatedOptions",
70817
+ "optional": true
70818
+ }],
70819
+ "returnType": "Promise<any>",
70820
+ "isStatic": false,
70821
+ "isPublic": true
70822
+ },
70823
+ "loadRelatedMany": {
70824
+ "name": "loadRelatedMany",
70825
+ "async": true,
70826
+ "parameters": [{
70827
+ "name": "fieldName",
70828
+ "type": "string",
70829
+ "optional": false
70830
+ }, {
70831
+ "name": "opts",
70832
+ "type": "LoadRelatedOptions",
70833
+ "optional": true
70834
+ }],
70835
+ "returnType": "Promise<any[]>",
70836
+ "isStatic": false,
70837
+ "isPublic": true
70838
+ },
70839
+ "getRelated": {
70840
+ "name": "getRelated",
70841
+ "async": true,
70842
+ "parameters": [{
70843
+ "name": "fieldName",
70844
+ "type": "string",
70845
+ "optional": false
70846
+ }, {
70847
+ "name": "opts",
70848
+ "type": "LoadRelatedOptions",
70849
+ "optional": true
70850
+ }],
70851
+ "returnType": "Promise<any>",
70852
+ "isStatic": false,
70853
+ "isPublic": true
70854
+ },
70855
+ "getAvailableTools": {
70856
+ "name": "getAvailableTools",
70857
+ "async": false,
70858
+ "parameters": [],
70859
+ "returnType": "AITool[]",
70860
+ "isStatic": false,
70861
+ "isPublic": true
70862
+ },
70863
+ "executeToolCall": {
70864
+ "name": "executeToolCall",
70865
+ "async": true,
70866
+ "parameters": [{
70867
+ "name": "toolCall",
70868
+ "type": "ToolCall",
70869
+ "optional": false
70870
+ }],
70871
+ "returnType": "Promise<ToolCallResult>",
70872
+ "isStatic": false,
70873
+ "isPublic": true
70874
+ },
70875
+ "remember": {
70876
+ "name": "remember",
70877
+ "async": true,
70878
+ "parameters": [{
70879
+ "name": "options",
70880
+ "type": "object",
70881
+ "optional": false
70882
+ }],
70883
+ "returnType": "Promise<void>",
70884
+ "isStatic": false,
70885
+ "isPublic": true
70886
+ },
70887
+ "recall": {
70888
+ "name": "recall",
70889
+ "async": true,
70890
+ "parameters": [{
70891
+ "name": "options",
70892
+ "type": "object",
70893
+ "optional": false
70894
+ }],
70895
+ "returnType": "Promise",
70896
+ "isStatic": false,
70897
+ "isPublic": true
70898
+ },
70899
+ "recallAll": {
70900
+ "name": "recallAll",
70901
+ "async": true,
70902
+ "parameters": [{
70903
+ "name": "options",
70904
+ "type": "object",
70905
+ "optional": true
70906
+ }],
70907
+ "returnType": "Promise<Map<string>>",
70908
+ "isStatic": false,
70909
+ "isPublic": true
70910
+ },
70911
+ "forget": {
70912
+ "name": "forget",
70913
+ "async": true,
70914
+ "parameters": [{
70915
+ "name": "options",
70916
+ "type": "object",
70917
+ "optional": false
70918
+ }],
70919
+ "returnType": "Promise<void>",
70920
+ "isStatic": false,
70921
+ "isPublic": true
70922
+ },
70923
+ "forgetScope": {
70924
+ "name": "forgetScope",
70925
+ "async": true,
70926
+ "parameters": [{
70927
+ "name": "options",
70928
+ "type": "object",
70929
+ "optional": false
70930
+ }],
70931
+ "returnType": "Promise<number>",
70932
+ "isStatic": false,
70933
+ "isPublic": true
70934
+ },
70935
+ "generateEmbeddings": {
70936
+ "name": "generateEmbeddings",
70937
+ "async": true,
70938
+ "parameters": [{
70939
+ "name": "options",
70940
+ "type": "GenerateEmbeddingsOptions",
70941
+ "optional": true
70942
+ }],
70943
+ "returnType": "Promise<void>",
70944
+ "isStatic": false,
70945
+ "isPublic": true
70946
+ },
70947
+ "getEmbedding": {
70948
+ "name": "getEmbedding",
70949
+ "async": true,
70950
+ "parameters": [{
70951
+ "name": "fieldName",
70952
+ "type": "string",
70953
+ "optional": false
70954
+ }, {
70955
+ "name": "model",
70956
+ "type": "string",
70957
+ "optional": true
70958
+ }],
70959
+ "returnType": "Promise<number[] | null>",
70960
+ "isStatic": false,
70961
+ "isPublic": true
70962
+ },
70963
+ "hasStaleEmbeddings": {
70964
+ "name": "hasStaleEmbeddings",
70965
+ "async": true,
70966
+ "parameters": [],
70967
+ "returnType": "Promise<boolean>",
70968
+ "isStatic": false,
70969
+ "isPublic": true
70970
+ },
70971
+ "clearEmbeddings": {
70972
+ "name": "clearEmbeddings",
70973
+ "async": true,
70974
+ "parameters": [],
70975
+ "returnType": "Promise<void>",
70976
+ "isStatic": false,
70977
+ "isPublic": true
70978
+ }
70979
+ },
70980
+ "decoratorConfig": {
70981
+ "mcp": { "include": ["create", "get"] },
70982
+ "tableName": "mcp_sti_animals",
70983
+ "tableStrategy": "sti"
70984
+ },
70985
+ "extends": "McpStiAnimal",
70986
+ "exportName": "McpStiCat",
70987
+ "collectionExportName": "McpStiCatCollection",
70988
+ "validationRules": [{
70989
+ "field": "name",
70990
+ "rule": "required",
70991
+ "fieldType": "text"
70992
+ }],
70993
+ "schema": {
70994
+ "tableName": "mcp_sti_animals",
70995
+ "ddl": "CREATE TABLE IF NOT EXISTS \"mcp_sti_animals\" (\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 \"name\" TEXT,\n \"lives\" INTEGER\n);",
70996
+ "columns": {
70997
+ "id": {
70998
+ "type": "UUID",
70999
+ "primaryKey": true,
71000
+ "referenceKind": "id",
71001
+ "notNull": true
71002
+ },
71003
+ "slug": {
71004
+ "type": "TEXT",
71005
+ "notNull": true
71006
+ },
71007
+ "context": {
71008
+ "type": "TEXT",
71009
+ "notNull": true,
71010
+ "default": ""
71011
+ },
71012
+ "_meta_type": {
71013
+ "type": "TEXT",
71014
+ "notNull": true
71015
+ },
71016
+ "_meta_data": {
71017
+ "type": "JSON",
71018
+ "notNull": false
71019
+ },
71020
+ "created_at": {
71021
+ "type": "TIMESTAMP",
71022
+ "notNull": true,
71023
+ "default": "current_timestamp"
71024
+ },
71025
+ "updated_at": {
71026
+ "type": "TIMESTAMP",
71027
+ "notNull": true,
71028
+ "default": "current_timestamp"
71029
+ },
71030
+ "name": {
71031
+ "type": "TEXT",
71032
+ "notNull": false
71033
+ },
71034
+ "lives": {
71035
+ "type": "INTEGER",
71036
+ "notNull": false
71037
+ }
71038
+ },
71039
+ "indexes": [
71040
+ {
71041
+ "name": "mcp_sti_animals_id_idx",
71042
+ "columns": ["id"]
71043
+ },
71044
+ {
71045
+ "name": "mcp_sti_animals_slug_context_meta_type_idx",
71046
+ "columns": [
71047
+ "slug",
71048
+ "context",
71049
+ "_meta_type"
71050
+ ],
71051
+ "unique": true
71052
+ },
71053
+ {
71054
+ "name": "mcp_sti_animals_meta_type_idx",
71055
+ "columns": ["_meta_type"]
71056
+ }
71057
+ ],
71058
+ "version": "d6243633"
71059
+ }
71060
+ },
71061
+ "@happyvertical/smrt-core:McpSensitiveWidget": {
71062
+ "name": "mcpsensitivewidget",
71063
+ "className": "McpSensitiveWidget",
71064
+ "qualifiedName": "@happyvertical/smrt-core:McpSensitiveWidget",
71065
+ "collection": "mcpsensitivewidgets",
71066
+ "filePath": "packages/core/src/generators/mcp-schemas.spec.ts",
71067
+ "packageName": "@happyvertical/smrt-core",
71068
+ "fields": {
71069
+ "title": {
71070
+ "type": "text",
71071
+ "required": false,
71072
+ "_meta": {}
71073
+ },
71074
+ "apiToken": {
71075
+ "type": "text",
71076
+ "required": false,
71077
+ "_meta": { "sensitive": true },
71078
+ "sensitive": true
71079
+ }
71080
+ },
71081
+ "methods": {},
71082
+ "decoratorConfig": { "mcp": { "include": ["get"] } },
71083
+ "extends": "SmrtObject",
71084
+ "exportName": "McpSensitiveWidget",
71085
+ "collectionExportName": "McpSensitiveWidgetCollection",
71086
+ "schema": {
71087
+ "tableName": "mcp_sensitive_widgets",
71088
+ "ddl": "CREATE TABLE IF NOT EXISTS \"mcp_sensitive_widgets\" (\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 \"title\" TEXT,\n \"api_token\" TEXT\n);",
71089
+ "columns": {
71090
+ "id": {
71091
+ "type": "UUID",
71092
+ "primaryKey": true,
71093
+ "referenceKind": "id",
71094
+ "notNull": true
71095
+ },
71096
+ "slug": {
71097
+ "type": "TEXT",
71098
+ "notNull": true
71099
+ },
71100
+ "context": {
71101
+ "type": "TEXT",
71102
+ "notNull": true,
71103
+ "default": ""
71104
+ },
71105
+ "created_at": {
71106
+ "type": "TIMESTAMP",
71107
+ "notNull": true,
71108
+ "default": "current_timestamp"
71109
+ },
71110
+ "updated_at": {
71111
+ "type": "TIMESTAMP",
71112
+ "notNull": true,
71113
+ "default": "current_timestamp"
71114
+ },
71115
+ "title": {
71116
+ "type": "TEXT",
71117
+ "notNull": false,
71118
+ "unique": false
71119
+ },
71120
+ "api_token": {
71121
+ "type": "TEXT",
71122
+ "notNull": false,
71123
+ "unique": false
71124
+ }
71125
+ },
71126
+ "indexes": [{
71127
+ "name": "mcp_sensitive_widgets_id_idx",
71128
+ "columns": ["id"]
71129
+ }, {
71130
+ "name": "mcp_sensitive_widgets_slug_context_idx",
71131
+ "columns": ["slug", "context"],
71132
+ "unique": true
71133
+ }],
71134
+ "version": "1d3ec0c8"
71135
+ }
71136
+ },
69897
71137
  "@happyvertical/smrt-core:McpPublicWidget": {
69898
71138
  "name": "mcppublicwidget",
69899
71139
  "className": "McpPublicWidget",