@genesislcap/foundation-ai 14.438.1 → 14.439.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/dts/ai-provider.d.ts +9 -3
  2. package/dist/dts/ai-provider.d.ts.map +1 -1
  3. package/dist/dts/index.d.ts +5 -2
  4. package/dist/dts/index.d.ts.map +1 -1
  5. package/dist/dts/providers/anthropic-provider.d.ts +26 -0
  6. package/dist/dts/providers/anthropic-provider.d.ts.map +1 -0
  7. package/dist/dts/transports/anthropic-transport.d.ts +93 -0
  8. package/dist/dts/transports/anthropic-transport.d.ts.map +1 -0
  9. package/dist/dts/transports/gemini-transport.d.ts +19 -2
  10. package/dist/dts/transports/gemini-transport.d.ts.map +1 -1
  11. package/dist/dts/transports/server-openai-transport.d.ts +1 -0
  12. package/dist/dts/transports/server-openai-transport.d.ts.map +1 -1
  13. package/dist/dts/types/chat.types.d.ts +25 -0
  14. package/dist/dts/types/chat.types.d.ts.map +1 -1
  15. package/dist/dts/types/config.types.d.ts +33 -2
  16. package/dist/dts/types/config.types.d.ts.map +1 -1
  17. package/dist/dts/types/status.types.d.ts +7 -0
  18. package/dist/dts/types/status.types.d.ts.map +1 -1
  19. package/dist/dts/types/transports.types.d.ts +22 -0
  20. package/dist/dts/types/transports.types.d.ts.map +1 -1
  21. package/dist/esm/ai-provider.js +24 -1
  22. package/dist/esm/index.js +3 -1
  23. package/dist/esm/providers/anthropic-provider.js +64 -0
  24. package/dist/esm/providers/gemini-provider.js +1 -1
  25. package/dist/esm/providers/openai-provider.js +2 -2
  26. package/dist/esm/transports/anthropic-transport.js +367 -0
  27. package/dist/esm/transports/gemini-transport.js +50 -3
  28. package/dist/esm/transports/server-openai-transport.js +16 -1
  29. package/dist/esm/types/config.types.js +6 -0
  30. package/dist/foundation-ai.api.json +1351 -7
  31. package/dist/foundation-ai.d.ts +230 -6
  32. package/package.json +11 -11
@@ -257,6 +257,15 @@
257
257
  "text": "GeminiAIConfig",
258
258
  "canonicalReference": "@genesislcap/foundation-ai!GeminiAIConfig:interface"
259
259
  },
260
+ {
261
+ "kind": "Content",
262
+ "text": " | "
263
+ },
264
+ {
265
+ "kind": "Reference",
266
+ "text": "AnthropicAIConfig",
267
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig:interface"
268
+ },
260
269
  {
261
270
  "kind": "Content",
262
271
  "text": ";"
@@ -267,7 +276,7 @@
267
276
  "name": "AIConfig",
268
277
  "typeTokenRange": {
269
278
  "startIndex": 1,
270
- "endIndex": 6
279
+ "endIndex": 8
271
280
  }
272
281
  },
273
282
  {
@@ -711,7 +720,7 @@
711
720
  },
712
721
  {
713
722
  "kind": "Content",
714
- "text": "'openai' | 'chrome' | 'gemini' | 'none'"
723
+ "text": "'openai' | 'chrome' | 'gemini' | 'anthropic' | 'none'"
715
724
  },
716
725
  {
717
726
  "kind": "Content",
@@ -769,6 +778,33 @@
769
778
  "endIndex": 2
770
779
  }
771
780
  },
781
+ {
782
+ "kind": "PropertySignature",
783
+ "canonicalReference": "@genesislcap/foundation-ai!AIStatus#contextLimit:member",
784
+ "docComment": "/**\n * Maximum input context window for the active model, in tokens. Used by the chat UI to render context utilisation. Optional — providers without a well-defined limit (e.g. Chrome on-device) leave it undefined and the UI hides the indicator.\n */\n",
785
+ "excerptTokens": [
786
+ {
787
+ "kind": "Content",
788
+ "text": "contextLimit?: "
789
+ },
790
+ {
791
+ "kind": "Content",
792
+ "text": "number"
793
+ },
794
+ {
795
+ "kind": "Content",
796
+ "text": ";"
797
+ }
798
+ ],
799
+ "isReadonly": false,
800
+ "isOptional": true,
801
+ "releaseTag": "Beta",
802
+ "name": "contextLimit",
803
+ "propertyTypeTokenRange": {
804
+ "startIndex": 1,
805
+ "endIndex": 2
806
+ }
807
+ },
772
808
  {
773
809
  "kind": "PropertySignature",
774
810
  "canonicalReference": "@genesislcap/foundation-ai!AIStatus#model:member",
@@ -825,7 +861,1026 @@
825
861
  }
826
862
  }
827
863
  ],
828
- "extendsTokenRanges": []
864
+ "extendsTokenRanges": []
865
+ },
866
+ {
867
+ "kind": "Interface",
868
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig:interface",
869
+ "docComment": "/**\n * Anthropic server-proxy AI configuration (client calls your server; server calls Anthropic).\n *\n * @remarks\n *\n * API key stays on the server. URL defaults to `/gwf/ai-service/anthropic/chat`. When `apiKey` is provided, the transport calls `api.anthropic.com/v1/messages` directly (browser direct calls require `anthropic-dangerous-direct-browser-access: true`, which the transport sends automatically — only use this in trusted contexts).\n *\n * @beta\n */\n",
870
+ "excerptTokens": [
871
+ {
872
+ "kind": "Content",
873
+ "text": "export interface AnthropicAIConfig extends "
874
+ },
875
+ {
876
+ "kind": "Reference",
877
+ "text": "AIProviderConfig",
878
+ "canonicalReference": "@genesislcap/foundation-ai!~AIProviderConfig:interface"
879
+ },
880
+ {
881
+ "kind": "Content",
882
+ "text": " "
883
+ }
884
+ ],
885
+ "fileUrlPath": "src/types/config.types.ts",
886
+ "releaseTag": "Beta",
887
+ "name": "AnthropicAIConfig",
888
+ "preserveMemberOrder": false,
889
+ "members": [
890
+ {
891
+ "kind": "PropertySignature",
892
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig#apiKey:member",
893
+ "docComment": "",
894
+ "excerptTokens": [
895
+ {
896
+ "kind": "Content",
897
+ "text": "apiKey?: "
898
+ },
899
+ {
900
+ "kind": "Content",
901
+ "text": "string"
902
+ },
903
+ {
904
+ "kind": "Content",
905
+ "text": ";"
906
+ }
907
+ ],
908
+ "isReadonly": false,
909
+ "isOptional": true,
910
+ "releaseTag": "Beta",
911
+ "name": "apiKey",
912
+ "propertyTypeTokenRange": {
913
+ "startIndex": 1,
914
+ "endIndex": 2
915
+ }
916
+ },
917
+ {
918
+ "kind": "PropertySignature",
919
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig#maxTokens:member",
920
+ "docComment": "/**\n * Hard cap on tokens generated per response. Anthropic's `max_tokens` is a required field on every request. Defaults to 4096.\n */\n",
921
+ "excerptTokens": [
922
+ {
923
+ "kind": "Content",
924
+ "text": "maxTokens?: "
925
+ },
926
+ {
927
+ "kind": "Content",
928
+ "text": "number"
929
+ },
930
+ {
931
+ "kind": "Content",
932
+ "text": ";"
933
+ }
934
+ ],
935
+ "isReadonly": false,
936
+ "isOptional": true,
937
+ "releaseTag": "Beta",
938
+ "name": "maxTokens",
939
+ "propertyTypeTokenRange": {
940
+ "startIndex": 1,
941
+ "endIndex": 2
942
+ }
943
+ },
944
+ {
945
+ "kind": "PropertySignature",
946
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig#model:member",
947
+ "docComment": "/**\n * Defaults to `claude-haiku-4-5-20251001`. Only {@link SUPPORTED_ANTHROPIC_MODEL_IDS} are accepted at runtime.\n */\n",
948
+ "excerptTokens": [
949
+ {
950
+ "kind": "Content",
951
+ "text": "model?: "
952
+ },
953
+ {
954
+ "kind": "Reference",
955
+ "text": "AnthropicModelId",
956
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicModelId:type"
957
+ },
958
+ {
959
+ "kind": "Content",
960
+ "text": ";"
961
+ }
962
+ ],
963
+ "isReadonly": false,
964
+ "isOptional": true,
965
+ "releaseTag": "Beta",
966
+ "name": "model",
967
+ "propertyTypeTokenRange": {
968
+ "startIndex": 1,
969
+ "endIndex": 2
970
+ }
971
+ },
972
+ {
973
+ "kind": "PropertySignature",
974
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig#providerType:member",
975
+ "docComment": "",
976
+ "excerptTokens": [
977
+ {
978
+ "kind": "Content",
979
+ "text": "providerType: "
980
+ },
981
+ {
982
+ "kind": "Content",
983
+ "text": "'anthropic'"
984
+ },
985
+ {
986
+ "kind": "Content",
987
+ "text": ";"
988
+ }
989
+ ],
990
+ "isReadonly": false,
991
+ "isOptional": false,
992
+ "releaseTag": "Beta",
993
+ "name": "providerType",
994
+ "propertyTypeTokenRange": {
995
+ "startIndex": 1,
996
+ "endIndex": 2
997
+ }
998
+ },
999
+ {
1000
+ "kind": "PropertySignature",
1001
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicAIConfig#serverEndpoint:member",
1002
+ "docComment": "",
1003
+ "excerptTokens": [
1004
+ {
1005
+ "kind": "Content",
1006
+ "text": "serverEndpoint?: "
1007
+ },
1008
+ {
1009
+ "kind": "Content",
1010
+ "text": "string"
1011
+ },
1012
+ {
1013
+ "kind": "Content",
1014
+ "text": ";"
1015
+ }
1016
+ ],
1017
+ "isReadonly": false,
1018
+ "isOptional": true,
1019
+ "releaseTag": "Beta",
1020
+ "name": "serverEndpoint",
1021
+ "propertyTypeTokenRange": {
1022
+ "startIndex": 1,
1023
+ "endIndex": 2
1024
+ }
1025
+ }
1026
+ ],
1027
+ "extendsTokenRanges": [
1028
+ {
1029
+ "startIndex": 1,
1030
+ "endIndex": 2
1031
+ }
1032
+ ]
1033
+ },
1034
+ {
1035
+ "kind": "TypeAlias",
1036
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicModelId:type",
1037
+ "docComment": "/**\n * Anthropic Messages API model ids supported by {@link AnthropicTransport}.\n *\n * @beta\n */\n",
1038
+ "excerptTokens": [
1039
+ {
1040
+ "kind": "Content",
1041
+ "text": "export type AnthropicModelId = "
1042
+ },
1043
+ {
1044
+ "kind": "Content",
1045
+ "text": "'claude-opus-4-7' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001'"
1046
+ },
1047
+ {
1048
+ "kind": "Content",
1049
+ "text": ";"
1050
+ }
1051
+ ],
1052
+ "fileUrlPath": "src/types/config.types.ts",
1053
+ "releaseTag": "Beta",
1054
+ "name": "AnthropicModelId",
1055
+ "typeTokenRange": {
1056
+ "startIndex": 1,
1057
+ "endIndex": 2
1058
+ }
1059
+ },
1060
+ {
1061
+ "kind": "Class",
1062
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider:class",
1063
+ "docComment": "/**\n * Anthropic Claude AI provider. Uses {@link AnthropicTransport} to handle requests. Implements criteria interpretation and multi-turn chat.\n *\n * @beta\n */\n",
1064
+ "excerptTokens": [
1065
+ {
1066
+ "kind": "Content",
1067
+ "text": "export declare class AnthropicProvider implements "
1068
+ },
1069
+ {
1070
+ "kind": "Reference",
1071
+ "text": "AIProvider",
1072
+ "canonicalReference": "@genesislcap/foundation-ai!AIProvider:interface"
1073
+ },
1074
+ {
1075
+ "kind": "Content",
1076
+ "text": " "
1077
+ }
1078
+ ],
1079
+ "fileUrlPath": "src/providers/anthropic-provider.ts",
1080
+ "releaseTag": "Beta",
1081
+ "isAbstract": false,
1082
+ "name": "AnthropicProvider",
1083
+ "preserveMemberOrder": false,
1084
+ "members": [
1085
+ {
1086
+ "kind": "Constructor",
1087
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider:constructor(1)",
1088
+ "docComment": "/**\n * Constructs a new instance of the `AnthropicProvider` class\n */\n",
1089
+ "excerptTokens": [
1090
+ {
1091
+ "kind": "Content",
1092
+ "text": "constructor(config: "
1093
+ },
1094
+ {
1095
+ "kind": "Reference",
1096
+ "text": "AnthropicProviderConfig",
1097
+ "canonicalReference": "@genesislcap/foundation-ai!~AnthropicProviderConfig:interface"
1098
+ },
1099
+ {
1100
+ "kind": "Content",
1101
+ "text": ", transport: "
1102
+ },
1103
+ {
1104
+ "kind": "Reference",
1105
+ "text": "AnthropicTransport",
1106
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport:class"
1107
+ },
1108
+ {
1109
+ "kind": "Content",
1110
+ "text": ");"
1111
+ }
1112
+ ],
1113
+ "releaseTag": "Beta",
1114
+ "isProtected": false,
1115
+ "overloadIndex": 1,
1116
+ "parameters": [
1117
+ {
1118
+ "parameterName": "config",
1119
+ "parameterTypeTokenRange": {
1120
+ "startIndex": 1,
1121
+ "endIndex": 2
1122
+ },
1123
+ "isOptional": false
1124
+ },
1125
+ {
1126
+ "parameterName": "transport",
1127
+ "parameterTypeTokenRange": {
1128
+ "startIndex": 3,
1129
+ "endIndex": 4
1130
+ },
1131
+ "isOptional": false
1132
+ }
1133
+ ]
1134
+ },
1135
+ {
1136
+ "kind": "Method",
1137
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider#chat:member(1)",
1138
+ "docComment": "",
1139
+ "excerptTokens": [
1140
+ {
1141
+ "kind": "Content",
1142
+ "text": "chat(history: "
1143
+ },
1144
+ {
1145
+ "kind": "Reference",
1146
+ "text": "ChatMessage",
1147
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1148
+ },
1149
+ {
1150
+ "kind": "Content",
1151
+ "text": "[]"
1152
+ },
1153
+ {
1154
+ "kind": "Content",
1155
+ "text": ", userMessage: "
1156
+ },
1157
+ {
1158
+ "kind": "Content",
1159
+ "text": "string"
1160
+ },
1161
+ {
1162
+ "kind": "Content",
1163
+ "text": ", options?: "
1164
+ },
1165
+ {
1166
+ "kind": "Reference",
1167
+ "text": "ChatRequestOptions",
1168
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
1169
+ },
1170
+ {
1171
+ "kind": "Content",
1172
+ "text": "): "
1173
+ },
1174
+ {
1175
+ "kind": "Reference",
1176
+ "text": "Promise",
1177
+ "canonicalReference": "!Promise:interface"
1178
+ },
1179
+ {
1180
+ "kind": "Content",
1181
+ "text": "<"
1182
+ },
1183
+ {
1184
+ "kind": "Reference",
1185
+ "text": "ChatMessage",
1186
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1187
+ },
1188
+ {
1189
+ "kind": "Content",
1190
+ "text": ">"
1191
+ },
1192
+ {
1193
+ "kind": "Content",
1194
+ "text": ";"
1195
+ }
1196
+ ],
1197
+ "isStatic": false,
1198
+ "returnTypeTokenRange": {
1199
+ "startIndex": 8,
1200
+ "endIndex": 12
1201
+ },
1202
+ "releaseTag": "Beta",
1203
+ "isProtected": false,
1204
+ "overloadIndex": 1,
1205
+ "parameters": [
1206
+ {
1207
+ "parameterName": "history",
1208
+ "parameterTypeTokenRange": {
1209
+ "startIndex": 1,
1210
+ "endIndex": 3
1211
+ },
1212
+ "isOptional": false
1213
+ },
1214
+ {
1215
+ "parameterName": "userMessage",
1216
+ "parameterTypeTokenRange": {
1217
+ "startIndex": 4,
1218
+ "endIndex": 5
1219
+ },
1220
+ "isOptional": false
1221
+ },
1222
+ {
1223
+ "parameterName": "options",
1224
+ "parameterTypeTokenRange": {
1225
+ "startIndex": 6,
1226
+ "endIndex": 7
1227
+ },
1228
+ "isOptional": true
1229
+ }
1230
+ ],
1231
+ "isOptional": false,
1232
+ "isAbstract": false,
1233
+ "name": "chat"
1234
+ },
1235
+ {
1236
+ "kind": "Method",
1237
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider#getStatus:member(1)",
1238
+ "docComment": "",
1239
+ "excerptTokens": [
1240
+ {
1241
+ "kind": "Content",
1242
+ "text": "getStatus(): "
1243
+ },
1244
+ {
1245
+ "kind": "Reference",
1246
+ "text": "Promise",
1247
+ "canonicalReference": "!Promise:interface"
1248
+ },
1249
+ {
1250
+ "kind": "Content",
1251
+ "text": "<"
1252
+ },
1253
+ {
1254
+ "kind": "Reference",
1255
+ "text": "AIStatus",
1256
+ "canonicalReference": "@genesislcap/foundation-ai!AIStatus:interface"
1257
+ },
1258
+ {
1259
+ "kind": "Content",
1260
+ "text": ">"
1261
+ },
1262
+ {
1263
+ "kind": "Content",
1264
+ "text": ";"
1265
+ }
1266
+ ],
1267
+ "isStatic": false,
1268
+ "returnTypeTokenRange": {
1269
+ "startIndex": 1,
1270
+ "endIndex": 5
1271
+ },
1272
+ "releaseTag": "Beta",
1273
+ "isProtected": false,
1274
+ "overloadIndex": 1,
1275
+ "parameters": [],
1276
+ "isOptional": false,
1277
+ "isAbstract": false,
1278
+ "name": "getStatus"
1279
+ },
1280
+ {
1281
+ "kind": "Method",
1282
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider#interpretCriteria:member(1)",
1283
+ "docComment": "",
1284
+ "excerptTokens": [
1285
+ {
1286
+ "kind": "Content",
1287
+ "text": "interpretCriteria(input: "
1288
+ },
1289
+ {
1290
+ "kind": "Content",
1291
+ "text": "string"
1292
+ },
1293
+ {
1294
+ "kind": "Content",
1295
+ "text": ", context: "
1296
+ },
1297
+ {
1298
+ "kind": "Reference",
1299
+ "text": "CriteriaInterpretContext",
1300
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretContext:interface"
1301
+ },
1302
+ {
1303
+ "kind": "Content",
1304
+ "text": "): "
1305
+ },
1306
+ {
1307
+ "kind": "Reference",
1308
+ "text": "Promise",
1309
+ "canonicalReference": "!Promise:interface"
1310
+ },
1311
+ {
1312
+ "kind": "Content",
1313
+ "text": "<"
1314
+ },
1315
+ {
1316
+ "kind": "Reference",
1317
+ "text": "CriteriaInterpretationResult",
1318
+ "canonicalReference": "@genesislcap/foundation-ai!CriteriaInterpretationResult:interface"
1319
+ },
1320
+ {
1321
+ "kind": "Content",
1322
+ "text": " | null>"
1323
+ },
1324
+ {
1325
+ "kind": "Content",
1326
+ "text": ";"
1327
+ }
1328
+ ],
1329
+ "isStatic": false,
1330
+ "returnTypeTokenRange": {
1331
+ "startIndex": 5,
1332
+ "endIndex": 9
1333
+ },
1334
+ "releaseTag": "Beta",
1335
+ "isProtected": false,
1336
+ "overloadIndex": 1,
1337
+ "parameters": [
1338
+ {
1339
+ "parameterName": "input",
1340
+ "parameterTypeTokenRange": {
1341
+ "startIndex": 1,
1342
+ "endIndex": 2
1343
+ },
1344
+ "isOptional": false
1345
+ },
1346
+ {
1347
+ "parameterName": "context",
1348
+ "parameterTypeTokenRange": {
1349
+ "startIndex": 3,
1350
+ "endIndex": 4
1351
+ },
1352
+ "isOptional": false
1353
+ }
1354
+ ],
1355
+ "isOptional": false,
1356
+ "isAbstract": false,
1357
+ "name": "interpretCriteria"
1358
+ },
1359
+ {
1360
+ "kind": "Method",
1361
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider#prompt:member(1)",
1362
+ "docComment": "",
1363
+ "excerptTokens": [
1364
+ {
1365
+ "kind": "Content",
1366
+ "text": "prompt(message: "
1367
+ },
1368
+ {
1369
+ "kind": "Content",
1370
+ "text": "string"
1371
+ },
1372
+ {
1373
+ "kind": "Content",
1374
+ "text": ", options?: "
1375
+ },
1376
+ {
1377
+ "kind": "Reference",
1378
+ "text": "ChatRequestOptions",
1379
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
1380
+ },
1381
+ {
1382
+ "kind": "Content",
1383
+ "text": "): "
1384
+ },
1385
+ {
1386
+ "kind": "Reference",
1387
+ "text": "Promise",
1388
+ "canonicalReference": "!Promise:interface"
1389
+ },
1390
+ {
1391
+ "kind": "Content",
1392
+ "text": "<string>"
1393
+ },
1394
+ {
1395
+ "kind": "Content",
1396
+ "text": ";"
1397
+ }
1398
+ ],
1399
+ "isStatic": false,
1400
+ "returnTypeTokenRange": {
1401
+ "startIndex": 5,
1402
+ "endIndex": 7
1403
+ },
1404
+ "releaseTag": "Beta",
1405
+ "isProtected": false,
1406
+ "overloadIndex": 1,
1407
+ "parameters": [
1408
+ {
1409
+ "parameterName": "message",
1410
+ "parameterTypeTokenRange": {
1411
+ "startIndex": 1,
1412
+ "endIndex": 2
1413
+ },
1414
+ "isOptional": false
1415
+ },
1416
+ {
1417
+ "parameterName": "options",
1418
+ "parameterTypeTokenRange": {
1419
+ "startIndex": 3,
1420
+ "endIndex": 4
1421
+ },
1422
+ "isOptional": true
1423
+ }
1424
+ ],
1425
+ "isOptional": false,
1426
+ "isAbstract": false,
1427
+ "name": "prompt"
1428
+ },
1429
+ {
1430
+ "kind": "Method",
1431
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicProvider#streamChat:member(1)",
1432
+ "docComment": "",
1433
+ "excerptTokens": [
1434
+ {
1435
+ "kind": "Content",
1436
+ "text": "streamChat(history: "
1437
+ },
1438
+ {
1439
+ "kind": "Reference",
1440
+ "text": "ChatMessage",
1441
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1442
+ },
1443
+ {
1444
+ "kind": "Content",
1445
+ "text": "[]"
1446
+ },
1447
+ {
1448
+ "kind": "Content",
1449
+ "text": ", userMessage: "
1450
+ },
1451
+ {
1452
+ "kind": "Content",
1453
+ "text": "string"
1454
+ },
1455
+ {
1456
+ "kind": "Content",
1457
+ "text": ", options?: "
1458
+ },
1459
+ {
1460
+ "kind": "Reference",
1461
+ "text": "ChatRequestOptions",
1462
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
1463
+ },
1464
+ {
1465
+ "kind": "Content",
1466
+ "text": "): "
1467
+ },
1468
+ {
1469
+ "kind": "Reference",
1470
+ "text": "AsyncIterable",
1471
+ "canonicalReference": "!AsyncIterable:interface"
1472
+ },
1473
+ {
1474
+ "kind": "Content",
1475
+ "text": "<"
1476
+ },
1477
+ {
1478
+ "kind": "Reference",
1479
+ "text": "ChatStreamChunk",
1480
+ "canonicalReference": "@genesislcap/foundation-ai!ChatStreamChunk:interface"
1481
+ },
1482
+ {
1483
+ "kind": "Content",
1484
+ "text": ">"
1485
+ },
1486
+ {
1487
+ "kind": "Content",
1488
+ "text": ";"
1489
+ }
1490
+ ],
1491
+ "isStatic": false,
1492
+ "returnTypeTokenRange": {
1493
+ "startIndex": 8,
1494
+ "endIndex": 12
1495
+ },
1496
+ "releaseTag": "Beta",
1497
+ "isProtected": false,
1498
+ "overloadIndex": 1,
1499
+ "parameters": [
1500
+ {
1501
+ "parameterName": "history",
1502
+ "parameterTypeTokenRange": {
1503
+ "startIndex": 1,
1504
+ "endIndex": 3
1505
+ },
1506
+ "isOptional": false
1507
+ },
1508
+ {
1509
+ "parameterName": "userMessage",
1510
+ "parameterTypeTokenRange": {
1511
+ "startIndex": 4,
1512
+ "endIndex": 5
1513
+ },
1514
+ "isOptional": false
1515
+ },
1516
+ {
1517
+ "parameterName": "options",
1518
+ "parameterTypeTokenRange": {
1519
+ "startIndex": 6,
1520
+ "endIndex": 7
1521
+ },
1522
+ "isOptional": true
1523
+ }
1524
+ ],
1525
+ "isOptional": false,
1526
+ "isAbstract": false,
1527
+ "name": "streamChat"
1528
+ }
1529
+ ],
1530
+ "implementsTokenRanges": [
1531
+ {
1532
+ "startIndex": 1,
1533
+ "endIndex": 2
1534
+ }
1535
+ ]
1536
+ },
1537
+ {
1538
+ "kind": "Class",
1539
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport:class",
1540
+ "docComment": "/**\n * Transport for Anthropic Claude. Calls the Messages API directly when `apiKey` is provided, otherwise falls back to a server-proxy endpoint (if `serverEndpoint` is configured).\n *\n * Implements `AITransport` (structured prompt via tool-forcing) and `ChatTransport` (multi-turn chat).\n *\n * @beta\n */\n",
1541
+ "excerptTokens": [
1542
+ {
1543
+ "kind": "Content",
1544
+ "text": "export declare class AnthropicTransport implements "
1545
+ },
1546
+ {
1547
+ "kind": "Reference",
1548
+ "text": "AITransport",
1549
+ "canonicalReference": "@genesislcap/foundation-ai!~AITransport:interface"
1550
+ },
1551
+ {
1552
+ "kind": "Content",
1553
+ "text": ", "
1554
+ },
1555
+ {
1556
+ "kind": "Reference",
1557
+ "text": "ChatTransport",
1558
+ "canonicalReference": "@genesislcap/foundation-ai!ChatTransport:interface"
1559
+ },
1560
+ {
1561
+ "kind": "Content",
1562
+ "text": ", "
1563
+ },
1564
+ {
1565
+ "kind": "Reference",
1566
+ "text": "CostReportingTransport",
1567
+ "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport:interface"
1568
+ },
1569
+ {
1570
+ "kind": "Content",
1571
+ "text": " "
1572
+ }
1573
+ ],
1574
+ "fileUrlPath": "src/transports/anthropic-transport.ts",
1575
+ "releaseTag": "Beta",
1576
+ "isAbstract": false,
1577
+ "name": "AnthropicTransport",
1578
+ "preserveMemberOrder": false,
1579
+ "members": [
1580
+ {
1581
+ "kind": "Constructor",
1582
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport:constructor(1)",
1583
+ "docComment": "/**\n * Constructs a new instance of the `AnthropicTransport` class\n */\n",
1584
+ "excerptTokens": [
1585
+ {
1586
+ "kind": "Content",
1587
+ "text": "constructor(config?: "
1588
+ },
1589
+ {
1590
+ "kind": "Reference",
1591
+ "text": "AnthropicTransportConfig",
1592
+ "canonicalReference": "@genesislcap/foundation-ai!~AnthropicTransportConfig:interface"
1593
+ },
1594
+ {
1595
+ "kind": "Content",
1596
+ "text": ");"
1597
+ }
1598
+ ],
1599
+ "releaseTag": "Beta",
1600
+ "isProtected": false,
1601
+ "overloadIndex": 1,
1602
+ "parameters": [
1603
+ {
1604
+ "parameterName": "config",
1605
+ "parameterTypeTokenRange": {
1606
+ "startIndex": 1,
1607
+ "endIndex": 2
1608
+ },
1609
+ "isOptional": true
1610
+ }
1611
+ ]
1612
+ },
1613
+ {
1614
+ "kind": "Method",
1615
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport#getConfig:member(1)",
1616
+ "docComment": "",
1617
+ "excerptTokens": [
1618
+ {
1619
+ "kind": "Content",
1620
+ "text": "getConfig(): "
1621
+ },
1622
+ {
1623
+ "kind": "Content",
1624
+ "text": "{\n provider: 'anthropic';\n model: "
1625
+ },
1626
+ {
1627
+ "kind": "Reference",
1628
+ "text": "AnthropicModelId",
1629
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicModelId:type"
1630
+ },
1631
+ {
1632
+ "kind": "Content",
1633
+ "text": ";\n contextLimit: number;\n }"
1634
+ },
1635
+ {
1636
+ "kind": "Content",
1637
+ "text": ";"
1638
+ }
1639
+ ],
1640
+ "isStatic": false,
1641
+ "returnTypeTokenRange": {
1642
+ "startIndex": 1,
1643
+ "endIndex": 4
1644
+ },
1645
+ "releaseTag": "Beta",
1646
+ "isProtected": false,
1647
+ "overloadIndex": 1,
1648
+ "parameters": [],
1649
+ "isOptional": false,
1650
+ "isAbstract": false,
1651
+ "name": "getConfig"
1652
+ },
1653
+ {
1654
+ "kind": "Method",
1655
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport#getLifetimeCost:member(1)",
1656
+ "docComment": "/**\n * Estimated USD cost accumulated across every successful request on this transport instance.\n */\n",
1657
+ "excerptTokens": [
1658
+ {
1659
+ "kind": "Content",
1660
+ "text": "getLifetimeCost(): "
1661
+ },
1662
+ {
1663
+ "kind": "Content",
1664
+ "text": "number"
1665
+ },
1666
+ {
1667
+ "kind": "Content",
1668
+ "text": ";"
1669
+ }
1670
+ ],
1671
+ "isStatic": false,
1672
+ "returnTypeTokenRange": {
1673
+ "startIndex": 1,
1674
+ "endIndex": 2
1675
+ },
1676
+ "releaseTag": "Beta",
1677
+ "isProtected": false,
1678
+ "overloadIndex": 1,
1679
+ "parameters": [],
1680
+ "isOptional": false,
1681
+ "isAbstract": false,
1682
+ "name": "getLifetimeCost"
1683
+ },
1684
+ {
1685
+ "kind": "Method",
1686
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport#resetLifetimeCost:member(1)",
1687
+ "docComment": "/**\n * Reset the lifetime cost counter. Intended for chat-clear / new-session flows.\n */\n",
1688
+ "excerptTokens": [
1689
+ {
1690
+ "kind": "Content",
1691
+ "text": "resetLifetimeCost(): "
1692
+ },
1693
+ {
1694
+ "kind": "Content",
1695
+ "text": "void"
1696
+ },
1697
+ {
1698
+ "kind": "Content",
1699
+ "text": ";"
1700
+ }
1701
+ ],
1702
+ "isStatic": false,
1703
+ "returnTypeTokenRange": {
1704
+ "startIndex": 1,
1705
+ "endIndex": 2
1706
+ },
1707
+ "releaseTag": "Beta",
1708
+ "isProtected": false,
1709
+ "overloadIndex": 1,
1710
+ "parameters": [],
1711
+ "isOptional": false,
1712
+ "isAbstract": false,
1713
+ "name": "resetLifetimeCost"
1714
+ },
1715
+ {
1716
+ "kind": "Method",
1717
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport#sendChatMessage:member(1)",
1718
+ "docComment": "",
1719
+ "excerptTokens": [
1720
+ {
1721
+ "kind": "Content",
1722
+ "text": "sendChatMessage(history: "
1723
+ },
1724
+ {
1725
+ "kind": "Reference",
1726
+ "text": "ChatMessage",
1727
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1728
+ },
1729
+ {
1730
+ "kind": "Content",
1731
+ "text": "[]"
1732
+ },
1733
+ {
1734
+ "kind": "Content",
1735
+ "text": ", userMessage: "
1736
+ },
1737
+ {
1738
+ "kind": "Content",
1739
+ "text": "string"
1740
+ },
1741
+ {
1742
+ "kind": "Content",
1743
+ "text": ", options?: "
1744
+ },
1745
+ {
1746
+ "kind": "Reference",
1747
+ "text": "ChatRequestOptions",
1748
+ "canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface"
1749
+ },
1750
+ {
1751
+ "kind": "Content",
1752
+ "text": "): "
1753
+ },
1754
+ {
1755
+ "kind": "Reference",
1756
+ "text": "Promise",
1757
+ "canonicalReference": "!Promise:interface"
1758
+ },
1759
+ {
1760
+ "kind": "Content",
1761
+ "text": "<"
1762
+ },
1763
+ {
1764
+ "kind": "Reference",
1765
+ "text": "ChatMessage",
1766
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
1767
+ },
1768
+ {
1769
+ "kind": "Content",
1770
+ "text": ">"
1771
+ },
1772
+ {
1773
+ "kind": "Content",
1774
+ "text": ";"
1775
+ }
1776
+ ],
1777
+ "isStatic": false,
1778
+ "returnTypeTokenRange": {
1779
+ "startIndex": 8,
1780
+ "endIndex": 12
1781
+ },
1782
+ "releaseTag": "Beta",
1783
+ "isProtected": false,
1784
+ "overloadIndex": 1,
1785
+ "parameters": [
1786
+ {
1787
+ "parameterName": "history",
1788
+ "parameterTypeTokenRange": {
1789
+ "startIndex": 1,
1790
+ "endIndex": 3
1791
+ },
1792
+ "isOptional": false
1793
+ },
1794
+ {
1795
+ "parameterName": "userMessage",
1796
+ "parameterTypeTokenRange": {
1797
+ "startIndex": 4,
1798
+ "endIndex": 5
1799
+ },
1800
+ "isOptional": false
1801
+ },
1802
+ {
1803
+ "parameterName": "options",
1804
+ "parameterTypeTokenRange": {
1805
+ "startIndex": 6,
1806
+ "endIndex": 7
1807
+ },
1808
+ "isOptional": true
1809
+ }
1810
+ ],
1811
+ "isOptional": false,
1812
+ "isAbstract": false,
1813
+ "name": "sendChatMessage"
1814
+ },
1815
+ {
1816
+ "kind": "Method",
1817
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicTransport#sendStructuredPrompt:member(1)",
1818
+ "docComment": "",
1819
+ "excerptTokens": [
1820
+ {
1821
+ "kind": "Content",
1822
+ "text": "sendStructuredPrompt(options: "
1823
+ },
1824
+ {
1825
+ "kind": "Reference",
1826
+ "text": "StructuredPromptOptions",
1827
+ "canonicalReference": "@genesislcap/foundation-ai!~StructuredPromptOptions:interface"
1828
+ },
1829
+ {
1830
+ "kind": "Content",
1831
+ "text": "): "
1832
+ },
1833
+ {
1834
+ "kind": "Reference",
1835
+ "text": "Promise",
1836
+ "canonicalReference": "!Promise:interface"
1837
+ },
1838
+ {
1839
+ "kind": "Content",
1840
+ "text": "<string>"
1841
+ },
1842
+ {
1843
+ "kind": "Content",
1844
+ "text": ";"
1845
+ }
1846
+ ],
1847
+ "isStatic": false,
1848
+ "returnTypeTokenRange": {
1849
+ "startIndex": 3,
1850
+ "endIndex": 5
1851
+ },
1852
+ "releaseTag": "Beta",
1853
+ "isProtected": false,
1854
+ "overloadIndex": 1,
1855
+ "parameters": [
1856
+ {
1857
+ "parameterName": "options",
1858
+ "parameterTypeTokenRange": {
1859
+ "startIndex": 1,
1860
+ "endIndex": 2
1861
+ },
1862
+ "isOptional": false
1863
+ }
1864
+ ],
1865
+ "isOptional": false,
1866
+ "isAbstract": false,
1867
+ "name": "sendStructuredPrompt"
1868
+ }
1869
+ ],
1870
+ "implementsTokenRanges": [
1871
+ {
1872
+ "startIndex": 1,
1873
+ "endIndex": 2
1874
+ },
1875
+ {
1876
+ "startIndex": 3,
1877
+ "endIndex": 4
1878
+ },
1879
+ {
1880
+ "startIndex": 5,
1881
+ "endIndex": 6
1882
+ }
1883
+ ]
829
1884
  },
830
1885
  {
831
1886
  "kind": "Interface",
@@ -1719,6 +2774,33 @@
1719
2774
  "endIndex": 2
1720
2775
  }
1721
2776
  },
2777
+ {
2778
+ "kind": "PropertySignature",
2779
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#cost:member",
2780
+ "docComment": "/**\n * Estimated USD cost for the single request that produced this message, derived from the active model's input/output rates. Set by transports. Hosts can sum this across the message list to display a running session cost without re-deriving rates.\n */\n",
2781
+ "excerptTokens": [
2782
+ {
2783
+ "kind": "Content",
2784
+ "text": "cost?: "
2785
+ },
2786
+ {
2787
+ "kind": "Content",
2788
+ "text": "number"
2789
+ },
2790
+ {
2791
+ "kind": "Content",
2792
+ "text": ";"
2793
+ }
2794
+ ],
2795
+ "isReadonly": false,
2796
+ "isOptional": true,
2797
+ "releaseTag": "Beta",
2798
+ "name": "cost",
2799
+ "propertyTypeTokenRange": {
2800
+ "startIndex": 1,
2801
+ "endIndex": 2
2802
+ }
2803
+ },
1722
2804
  {
1723
2805
  "kind": "PropertySignature",
1724
2806
  "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#inputTokens:member",
@@ -1774,6 +2856,33 @@
1774
2856
  "endIndex": 2
1775
2857
  }
1776
2858
  },
2859
+ {
2860
+ "kind": "PropertySignature",
2861
+ "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#outputTokens:member",
2862
+ "docComment": "/**\n * Total output (generated) tokens for the request that produced this message. Set by transports that return usage metadata. Used alongside `cost`.\n */\n",
2863
+ "excerptTokens": [
2864
+ {
2865
+ "kind": "Content",
2866
+ "text": "outputTokens?: "
2867
+ },
2868
+ {
2869
+ "kind": "Content",
2870
+ "text": "number"
2871
+ },
2872
+ {
2873
+ "kind": "Content",
2874
+ "text": ";"
2875
+ }
2876
+ ],
2877
+ "isReadonly": false,
2878
+ "isOptional": true,
2879
+ "releaseTag": "Beta",
2880
+ "name": "outputTokens",
2881
+ "propertyTypeTokenRange": {
2882
+ "startIndex": 1,
2883
+ "endIndex": 2
2884
+ }
2885
+ },
1777
2886
  {
1778
2887
  "kind": "PropertySignature",
1779
2888
  "canonicalReference": "@genesislcap/foundation-ai!ChatMessage#role:member",
@@ -2878,6 +3987,33 @@
2878
3987
  "endIndex": 2
2879
3988
  }
2880
3989
  },
3990
+ {
3991
+ "kind": "PropertySignature",
3992
+ "canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showActiveModel:member",
3993
+ "docComment": "/**\n * Show the active model id in the settings panel. - `true` or `undefined` (default) — shown when the provider exposes a model - `false` — hidden\n */\n",
3994
+ "excerptTokens": [
3995
+ {
3996
+ "kind": "Content",
3997
+ "text": "showActiveModel?: "
3998
+ },
3999
+ {
4000
+ "kind": "Content",
4001
+ "text": "boolean"
4002
+ },
4003
+ {
4004
+ "kind": "Content",
4005
+ "text": ";"
4006
+ }
4007
+ ],
4008
+ "isReadonly": false,
4009
+ "isOptional": true,
4010
+ "releaseTag": "Beta",
4011
+ "name": "showActiveModel",
4012
+ "propertyTypeTokenRange": {
4013
+ "startIndex": 1,
4014
+ "endIndex": 2
4015
+ }
4016
+ },
2881
4017
  {
2882
4018
  "kind": "PropertySignature",
2883
4019
  "canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showAgentSwitchIndicator:member",
@@ -2932,6 +4068,33 @@
2932
4068
  "endIndex": 2
2933
4069
  }
2934
4070
  },
4071
+ {
4072
+ "kind": "PropertySignature",
4073
+ "canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showSessionCost:member",
4074
+ "docComment": "/**\n * Show the running session cost (aggregated USD across all chat turns) in the settings panel. - `true` or `undefined` (default) — shown when cost data is available - `false` — hidden\n */\n",
4075
+ "excerptTokens": [
4076
+ {
4077
+ "kind": "Content",
4078
+ "text": "showSessionCost?: "
4079
+ },
4080
+ {
4081
+ "kind": "Content",
4082
+ "text": "boolean"
4083
+ },
4084
+ {
4085
+ "kind": "Content",
4086
+ "text": ";"
4087
+ }
4088
+ ],
4089
+ "isReadonly": false,
4090
+ "isOptional": true,
4091
+ "releaseTag": "Beta",
4092
+ "name": "showSessionCost",
4093
+ "propertyTypeTokenRange": {
4094
+ "startIndex": 1,
4095
+ "endIndex": 2
4096
+ }
4097
+ },
2935
4098
  {
2936
4099
  "kind": "PropertySignature",
2937
4100
  "canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showSplash:member",
@@ -3155,6 +4318,80 @@
3155
4318
  "endIndex": 2
3156
4319
  }
3157
4320
  },
4321
+ {
4322
+ "kind": "Interface",
4323
+ "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport:interface",
4324
+ "docComment": "/**\n * Optional capability implemented by transports that can report the estimated USD cost they have incurred over their lifetime.\n *\n * @remarks\n *\n * Surfaces a transport-lifetime running total for non-chat consumers such as telemetry, debug overlays, or admin dashboards. The chat UI deliberately does not depend on this — it sums per-message `cost` fields instead so the session total stays scoped to chat turns and excludes other call sites (suggestions, criteria interpretation, etc.) that share the same transport.\n *\n * Consumers can either accept a `CostReportingTransport` directly or duck-type with `'getLifetimeCost' in transport`.\n *\n * @beta\n */\n",
4325
+ "excerptTokens": [
4326
+ {
4327
+ "kind": "Content",
4328
+ "text": "export interface CostReportingTransport "
4329
+ }
4330
+ ],
4331
+ "fileUrlPath": "src/types/transports.types.ts",
4332
+ "releaseTag": "Beta",
4333
+ "name": "CostReportingTransport",
4334
+ "preserveMemberOrder": false,
4335
+ "members": [
4336
+ {
4337
+ "kind": "MethodSignature",
4338
+ "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport#getLifetimeCost:member(1)",
4339
+ "docComment": "/**\n * Estimated USD cost accumulated across every successful request on this transport instance.\n */\n",
4340
+ "excerptTokens": [
4341
+ {
4342
+ "kind": "Content",
4343
+ "text": "getLifetimeCost(): "
4344
+ },
4345
+ {
4346
+ "kind": "Content",
4347
+ "text": "number"
4348
+ },
4349
+ {
4350
+ "kind": "Content",
4351
+ "text": ";"
4352
+ }
4353
+ ],
4354
+ "isOptional": false,
4355
+ "returnTypeTokenRange": {
4356
+ "startIndex": 1,
4357
+ "endIndex": 2
4358
+ },
4359
+ "releaseTag": "Beta",
4360
+ "overloadIndex": 1,
4361
+ "parameters": [],
4362
+ "name": "getLifetimeCost"
4363
+ },
4364
+ {
4365
+ "kind": "MethodSignature",
4366
+ "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport#resetLifetimeCost:member(1)",
4367
+ "docComment": "/**\n * Reset the lifetime cost counter. Intended for chat-clear / new-session flows.\n */\n",
4368
+ "excerptTokens": [
4369
+ {
4370
+ "kind": "Content",
4371
+ "text": "resetLifetimeCost(): "
4372
+ },
4373
+ {
4374
+ "kind": "Content",
4375
+ "text": "void"
4376
+ },
4377
+ {
4378
+ "kind": "Content",
4379
+ "text": ";"
4380
+ }
4381
+ ],
4382
+ "isOptional": false,
4383
+ "returnTypeTokenRange": {
4384
+ "startIndex": 1,
4385
+ "endIndex": 2
4386
+ },
4387
+ "releaseTag": "Beta",
4388
+ "overloadIndex": 1,
4389
+ "parameters": [],
4390
+ "name": "resetLifetimeCost"
4391
+ }
4392
+ ],
4393
+ "extendsTokenRanges": []
4394
+ },
3158
4395
  {
3159
4396
  "kind": "Function",
3160
4397
  "canonicalReference": "@genesislcap/foundation-ai!createAIProvider:function(1)",
@@ -4202,6 +5439,15 @@
4202
5439
  "text": "ChatTransport",
4203
5440
  "canonicalReference": "@genesislcap/foundation-ai!ChatTransport:interface"
4204
5441
  },
5442
+ {
5443
+ "kind": "Content",
5444
+ "text": ", "
5445
+ },
5446
+ {
5447
+ "kind": "Reference",
5448
+ "text": "CostReportingTransport",
5449
+ "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport:interface"
5450
+ },
4205
5451
  {
4206
5452
  "kind": "Content",
4207
5453
  "text": " "
@@ -4266,7 +5512,7 @@
4266
5512
  },
4267
5513
  {
4268
5514
  "kind": "Content",
4269
- "text": ";\n }"
5515
+ "text": ";\n contextLimit: number;\n }"
4270
5516
  },
4271
5517
  {
4272
5518
  "kind": "Content",
@@ -4286,6 +5532,68 @@
4286
5532
  "isAbstract": false,
4287
5533
  "name": "getConfig"
4288
5534
  },
5535
+ {
5536
+ "kind": "Method",
5537
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#getLifetimeCost:member(1)",
5538
+ "docComment": "/**\n * Estimated USD cost accumulated across every successful request on this transport instance.\n */\n",
5539
+ "excerptTokens": [
5540
+ {
5541
+ "kind": "Content",
5542
+ "text": "getLifetimeCost(): "
5543
+ },
5544
+ {
5545
+ "kind": "Content",
5546
+ "text": "number"
5547
+ },
5548
+ {
5549
+ "kind": "Content",
5550
+ "text": ";"
5551
+ }
5552
+ ],
5553
+ "isStatic": false,
5554
+ "returnTypeTokenRange": {
5555
+ "startIndex": 1,
5556
+ "endIndex": 2
5557
+ },
5558
+ "releaseTag": "Beta",
5559
+ "isProtected": false,
5560
+ "overloadIndex": 1,
5561
+ "parameters": [],
5562
+ "isOptional": false,
5563
+ "isAbstract": false,
5564
+ "name": "getLifetimeCost"
5565
+ },
5566
+ {
5567
+ "kind": "Method",
5568
+ "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#resetLifetimeCost:member(1)",
5569
+ "docComment": "/**\n * Reset the lifetime cost counter. Intended for chat-clear / new-session flows.\n */\n",
5570
+ "excerptTokens": [
5571
+ {
5572
+ "kind": "Content",
5573
+ "text": "resetLifetimeCost(): "
5574
+ },
5575
+ {
5576
+ "kind": "Content",
5577
+ "text": "void"
5578
+ },
5579
+ {
5580
+ "kind": "Content",
5581
+ "text": ";"
5582
+ }
5583
+ ],
5584
+ "isStatic": false,
5585
+ "returnTypeTokenRange": {
5586
+ "startIndex": 1,
5587
+ "endIndex": 2
5588
+ },
5589
+ "releaseTag": "Beta",
5590
+ "isProtected": false,
5591
+ "overloadIndex": 1,
5592
+ "parameters": [],
5593
+ "isOptional": false,
5594
+ "isAbstract": false,
5595
+ "name": "resetLifetimeCost"
5596
+ },
4289
5597
  {
4290
5598
  "kind": "Method",
4291
5599
  "canonicalReference": "@genesislcap/foundation-ai!GeminiTransport#sendChatMessage:member(1)",
@@ -4449,6 +5757,10 @@
4449
5757
  {
4450
5758
  "startIndex": 3,
4451
5759
  "endIndex": 4
5760
+ },
5761
+ {
5762
+ "startIndex": 5,
5763
+ "endIndex": 6
4452
5764
  }
4453
5765
  ]
4454
5766
  },
@@ -4854,7 +6166,7 @@
4854
6166
  {
4855
6167
  "kind": "PropertySignature",
4856
6168
  "canonicalReference": "@genesislcap/foundation-ai!ResolveAIConfigOptions#model:member",
4857
- "docComment": "/**\n * Model name. OpenAI default: gpt-4o-mini. Gemini: only {@link SUPPORTED_GEMINI_MODEL_IDS} (default flash-lite).\n */\n",
6169
+ "docComment": "/**\n * Model name.\n *\n * - OpenAI default: `gpt-4o-mini`. - Gemini: only {@link SUPPORTED_GEMINI_MODEL_IDS} (default `gemini-2.5-flash-lite`). - Anthropic: only {@link SUPPORTED_ANTHROPIC_MODEL_IDS} (default `claude-haiku-4-5-20251001`).\n */\n",
4858
6170
  "excerptTokens": [
4859
6171
  {
4860
6172
  "kind": "Content",
@@ -4908,7 +6220,7 @@
4908
6220
  {
4909
6221
  "kind": "PropertySignature",
4910
6222
  "canonicalReference": "@genesislcap/foundation-ai!ResolveAIConfigOptions#provider:member",
4911
- "docComment": "/**\n * Cloud provider (openai, gemini). Default: openai\n */\n",
6223
+ "docComment": "/**\n * Cloud provider (openai, gemini, anthropic). Default: openai\n */\n",
4912
6224
  "excerptTokens": [
4913
6225
  {
4914
6226
  "kind": "Content",
@@ -4916,7 +6228,7 @@
4916
6228
  },
4917
6229
  {
4918
6230
  "kind": "Content",
4919
- "text": "'openai' | 'gemini'"
6231
+ "text": "'openai' | 'gemini' | 'anthropic'"
4920
6232
  },
4921
6233
  {
4922
6234
  "kind": "Content",
@@ -5190,6 +6502,38 @@
5190
6502
  ],
5191
6503
  "extendsTokenRanges": []
5192
6504
  },
6505
+ {
6506
+ "kind": "Variable",
6507
+ "canonicalReference": "@genesislcap/foundation-ai!SUPPORTED_ANTHROPIC_MODEL_IDS:var",
6508
+ "docComment": "/**\n * @beta\n */\n",
6509
+ "excerptTokens": [
6510
+ {
6511
+ "kind": "Content",
6512
+ "text": "SUPPORTED_ANTHROPIC_MODEL_IDS: "
6513
+ },
6514
+ {
6515
+ "kind": "Content",
6516
+ "text": "readonly "
6517
+ },
6518
+ {
6519
+ "kind": "Reference",
6520
+ "text": "AnthropicModelId",
6521
+ "canonicalReference": "@genesislcap/foundation-ai!AnthropicModelId:type"
6522
+ },
6523
+ {
6524
+ "kind": "Content",
6525
+ "text": "[]"
6526
+ }
6527
+ ],
6528
+ "fileUrlPath": "src/types/config.types.ts",
6529
+ "isReadonly": true,
6530
+ "releaseTag": "Beta",
6531
+ "name": "SUPPORTED_ANTHROPIC_MODEL_IDS",
6532
+ "variableTypeTokenRange": {
6533
+ "startIndex": 1,
6534
+ "endIndex": 4
6535
+ }
6536
+ },
5193
6537
  {
5194
6538
  "kind": "Variable",
5195
6539
  "canonicalReference": "@genesislcap/foundation-ai!SUPPORTED_GEMINI_MODEL_IDS:var",