@genesislcap/foundation-ai 14.458.3 → 14.460.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.
package/dist/dts/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { AI_FEATURE_FLAG, isAIFeatureEnabled } from './utils/feature-flags';
|
|
|
8
8
|
export { ChatTemperature } from './utils/temperature';
|
|
9
9
|
export { SUPPORTED_ANTHROPIC_MODEL_IDS, SUPPORTED_GEMINI_MODEL_IDS } from './types';
|
|
10
10
|
export type { AIConfig, AIStatus, AIProviderType, AnthropicAIConfig, AnthropicModelId, ChromeAIConfig, ChromeAvailability, GeminiAIConfig, GeminiModelId, ServerAIConfig, } from './types';
|
|
11
|
-
export type { AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatDriverResult, ChatInputDuringExecutionMode, ChatMessage, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, ChatSuggestionsConfig, InteractionRequestOptions, InteractionResult, SubAgentFailureReason, SubAgentRequestOptions, } from './types/chat.types';
|
|
11
|
+
export type { AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatDriverResult, ChatInputDuringExecutionMode, ChatMessage, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, ChatSuggestionsConfig, InteractionPresentation, InteractionRequestOptions, InteractionResult, SubAgentFailureReason, SubAgentRequestOptions, } from './types/chat.types';
|
|
12
12
|
export { isChatToolCallUnknown } from './types/chat.types';
|
|
13
13
|
export type { ChatTransport } from './types/chat-transport.types';
|
|
14
14
|
export type { CostReportingTransport } from './types/transports.types';
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,6BAA6B,EAC7B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AACpF,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,4BAA4B,EAC5B,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM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M,SAAS,CAAC;AACjB,YAAY,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,4BAA4B,EAC5B,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -126,6 +126,24 @@ export type InteractionResult<T = unknown> = {
|
|
|
126
126
|
*/
|
|
127
127
|
costUsd?: number;
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* How the host frames an interaction widget in the chat transcript. The
|
|
131
|
+
* assistant avatar is always shown; this controls only the bubble and the
|
|
132
|
+
* "Assistant" sender label drawn around the widget.
|
|
133
|
+
*
|
|
134
|
+
* - `'label'` (default): the "Assistant" label above the widget with no chat
|
|
135
|
+
* bubble — the widget renders full-width and owns its body. Historical
|
|
136
|
+
* behaviour.
|
|
137
|
+
* - `'bubble'`: the widget is wrapped in the standard assistant message bubble
|
|
138
|
+
* (label, gradient/border/shadow, avatar-left row layout) so it reads exactly
|
|
139
|
+
* like a normal assistant chat message. Widgets shown this way must not draw
|
|
140
|
+
* their own outer bubble background/padding or it will double up.
|
|
141
|
+
* - `'bare'`: neither label nor bubble — only the avatar. The widget owns the
|
|
142
|
+
* entire presentation below the avatar.
|
|
143
|
+
*
|
|
144
|
+
* @beta
|
|
145
|
+
*/
|
|
146
|
+
export type InteractionPresentation = 'label' | 'bubble' | 'bare';
|
|
129
147
|
/**
|
|
130
148
|
* A user interaction component request.
|
|
131
149
|
*
|
|
@@ -137,6 +155,13 @@ export interface ChatInteraction {
|
|
|
137
155
|
data: any;
|
|
138
156
|
/** The result when the interaction has been resolved. Truthy check indicates resolved state; value is available for widgets to display. */
|
|
139
157
|
resolved?: InteractionResult<unknown>;
|
|
158
|
+
/**
|
|
159
|
+
* How the host frames this widget — see {@link InteractionPresentation}.
|
|
160
|
+
* Defaults to `'label'`. Copied from
|
|
161
|
+
* {@link InteractionRequestOptions.presentation} by the driver so it persists
|
|
162
|
+
* with the session and re-renders identically from history.
|
|
163
|
+
*/
|
|
164
|
+
presentation?: InteractionPresentation;
|
|
140
165
|
}
|
|
141
166
|
/**
|
|
142
167
|
* A file attachment included with a user message.
|
|
@@ -316,6 +341,14 @@ export interface InteractionRequestOptions {
|
|
|
316
341
|
* means no timeout — the interaction waits indefinitely.
|
|
317
342
|
*/
|
|
318
343
|
timeoutMs?: number;
|
|
344
|
+
/**
|
|
345
|
+
* How the host frames this widget in the transcript — see
|
|
346
|
+
* {@link InteractionPresentation}. Defaults to `'label'` (the historical
|
|
347
|
+
* "Assistant" label with no bubble). Use `'bubble'` to render the widget
|
|
348
|
+
* inside a standard assistant message bubble, or `'bare'` to suppress both
|
|
349
|
+
* the label and the bubble so the widget owns its full presentation.
|
|
350
|
+
*/
|
|
351
|
+
presentation?: InteractionPresentation;
|
|
319
352
|
}
|
|
320
353
|
/**
|
|
321
354
|
* Why a sub-agent run ended without producing a structured result via
|
|
@@ -523,8 +556,10 @@ export interface ChatUiConfig {
|
|
|
523
556
|
/** Comma-separated list of accepted file extensions for upload, e.g., ".txt,.md,.csv". If undefined or empty, file uploads are disabled. */
|
|
524
557
|
acceptedFiles?: string;
|
|
525
558
|
/**
|
|
526
|
-
* Seconds to wait before showing the loading
|
|
527
|
-
*
|
|
559
|
+
* Seconds to wait before showing the loading indicator. Default: 0 (shown
|
|
560
|
+
* immediately when a request is in flight). Increase to suppress the
|
|
561
|
+
* indicator for fast responses. Applies to both loading-indicator styles
|
|
562
|
+
* (the dots and the waves).
|
|
528
563
|
*/
|
|
529
564
|
loadingDelay?: number;
|
|
530
565
|
/** Animations feature configuration. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../../../src/types/chat.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAEpG;;;;GAIG;AACH,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IACnD,OAAO,EAAE,IAAI,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IAC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,QAAQ,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,GACD;IACE;;;OAGG;IACH,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -3010,6 +3010,34 @@
|
|
|
3010
3010
|
"endIndex": 2
|
|
3011
3011
|
}
|
|
3012
3012
|
},
|
|
3013
|
+
{
|
|
3014
|
+
"kind": "PropertySignature",
|
|
3015
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#presentation:member",
|
|
3016
|
+
"docComment": "/**\n * How the host frames this widget — see {@link InteractionPresentation}. Defaults to `'label'`. Copied from {@link InteractionRequestOptions.presentation} by the driver so it persists with the session and re-renders identically from history.\n */\n",
|
|
3017
|
+
"excerptTokens": [
|
|
3018
|
+
{
|
|
3019
|
+
"kind": "Content",
|
|
3020
|
+
"text": "presentation?: "
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"kind": "Reference",
|
|
3024
|
+
"text": "InteractionPresentation",
|
|
3025
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionPresentation:type"
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"kind": "Content",
|
|
3029
|
+
"text": ";"
|
|
3030
|
+
}
|
|
3031
|
+
],
|
|
3032
|
+
"isReadonly": false,
|
|
3033
|
+
"isOptional": true,
|
|
3034
|
+
"releaseTag": "Beta",
|
|
3035
|
+
"name": "presentation",
|
|
3036
|
+
"propertyTypeTokenRange": {
|
|
3037
|
+
"startIndex": 1,
|
|
3038
|
+
"endIndex": 2
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3013
3041
|
{
|
|
3014
3042
|
"kind": "PropertySignature",
|
|
3015
3043
|
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#resolved:member",
|
|
@@ -4737,7 +4765,7 @@
|
|
|
4737
4765
|
{
|
|
4738
4766
|
"kind": "PropertySignature",
|
|
4739
4767
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#loadingDelay:member",
|
|
4740
|
-
"docComment": "/**\n * Seconds to wait before showing the loading
|
|
4768
|
+
"docComment": "/**\n * Seconds to wait before showing the loading indicator. Default: 0 (shown immediately when a request is in flight). Increase to suppress the indicator for fast responses. Applies to both loading-indicator styles (the dots and the waves).\n */\n",
|
|
4741
4769
|
"excerptTokens": [
|
|
4742
4770
|
{
|
|
4743
4771
|
"kind": "Content",
|
|
@@ -6565,6 +6593,32 @@
|
|
|
6565
6593
|
}
|
|
6566
6594
|
]
|
|
6567
6595
|
},
|
|
6596
|
+
{
|
|
6597
|
+
"kind": "TypeAlias",
|
|
6598
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionPresentation:type",
|
|
6599
|
+
"docComment": "/**\n * How the host frames an interaction widget in the chat transcript. The assistant avatar is always shown; this controls only the bubble and the \"Assistant\" sender label drawn around the widget.\n *\n * - `'label'` (default): the \"Assistant\" label above the widget with no chat bubble — the widget renders full-width and owns its body. Historical behaviour. - `'bubble'`: the widget is wrapped in the standard assistant message bubble (label, gradient/border/shadow, avatar-left row layout) so it reads exactly like a normal assistant chat message. Widgets shown this way must not draw their own outer bubble background/padding or it will double up. - `'bare'`: neither label nor bubble — only the avatar. The widget owns the entire presentation below the avatar.\n *\n * @beta\n */\n",
|
|
6600
|
+
"excerptTokens": [
|
|
6601
|
+
{
|
|
6602
|
+
"kind": "Content",
|
|
6603
|
+
"text": "export type InteractionPresentation = "
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
"kind": "Content",
|
|
6607
|
+
"text": "'label' | 'bubble' | 'bare'"
|
|
6608
|
+
},
|
|
6609
|
+
{
|
|
6610
|
+
"kind": "Content",
|
|
6611
|
+
"text": ";"
|
|
6612
|
+
}
|
|
6613
|
+
],
|
|
6614
|
+
"fileUrlPath": "src/types/chat.types.ts",
|
|
6615
|
+
"releaseTag": "Beta",
|
|
6616
|
+
"name": "InteractionPresentation",
|
|
6617
|
+
"typeTokenRange": {
|
|
6618
|
+
"startIndex": 1,
|
|
6619
|
+
"endIndex": 2
|
|
6620
|
+
}
|
|
6621
|
+
},
|
|
6568
6622
|
{
|
|
6569
6623
|
"kind": "Interface",
|
|
6570
6624
|
"canonicalReference": "@genesislcap/foundation-ai!InteractionRequestOptions:interface",
|
|
@@ -6608,6 +6662,34 @@
|
|
|
6608
6662
|
"endIndex": 2
|
|
6609
6663
|
}
|
|
6610
6664
|
},
|
|
6665
|
+
{
|
|
6666
|
+
"kind": "PropertySignature",
|
|
6667
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionRequestOptions#presentation:member",
|
|
6668
|
+
"docComment": "/**\n * How the host frames this widget in the transcript — see {@link InteractionPresentation}. Defaults to `'label'` (the historical \"Assistant\" label with no bubble). Use `'bubble'` to render the widget inside a standard assistant message bubble, or `'bare'` to suppress both the label and the bubble so the widget owns its full presentation.\n */\n",
|
|
6669
|
+
"excerptTokens": [
|
|
6670
|
+
{
|
|
6671
|
+
"kind": "Content",
|
|
6672
|
+
"text": "presentation?: "
|
|
6673
|
+
},
|
|
6674
|
+
{
|
|
6675
|
+
"kind": "Reference",
|
|
6676
|
+
"text": "InteractionPresentation",
|
|
6677
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionPresentation:type"
|
|
6678
|
+
},
|
|
6679
|
+
{
|
|
6680
|
+
"kind": "Content",
|
|
6681
|
+
"text": ";"
|
|
6682
|
+
}
|
|
6683
|
+
],
|
|
6684
|
+
"isReadonly": false,
|
|
6685
|
+
"isOptional": true,
|
|
6686
|
+
"releaseTag": "Beta",
|
|
6687
|
+
"name": "presentation",
|
|
6688
|
+
"propertyTypeTokenRange": {
|
|
6689
|
+
"startIndex": 1,
|
|
6690
|
+
"endIndex": 2
|
|
6691
|
+
}
|
|
6692
|
+
},
|
|
6611
6693
|
{
|
|
6612
6694
|
"kind": "PropertySignature",
|
|
6613
6695
|
"canonicalReference": "@genesislcap/foundation-ai!InteractionRequestOptions#timeoutMs:member",
|
package/dist/foundation-ai.d.ts
CHANGED
|
@@ -464,6 +464,13 @@ export declare interface ChatInteraction {
|
|
|
464
464
|
data: any;
|
|
465
465
|
/** The result when the interaction has been resolved. Truthy check indicates resolved state; value is available for widgets to display. */
|
|
466
466
|
resolved?: InteractionResult<unknown>;
|
|
467
|
+
/**
|
|
468
|
+
* How the host frames this widget — see {@link InteractionPresentation}.
|
|
469
|
+
* Defaults to `'label'`. Copied from
|
|
470
|
+
* {@link InteractionRequestOptions.presentation} by the driver so it persists
|
|
471
|
+
* with the session and re-renders identically from history.
|
|
472
|
+
*/
|
|
473
|
+
presentation?: InteractionPresentation;
|
|
467
474
|
}
|
|
468
475
|
|
|
469
476
|
/**
|
|
@@ -896,8 +903,10 @@ export declare interface ChatUiConfig {
|
|
|
896
903
|
/** Comma-separated list of accepted file extensions for upload, e.g., ".txt,.md,.csv". If undefined or empty, file uploads are disabled. */
|
|
897
904
|
acceptedFiles?: string;
|
|
898
905
|
/**
|
|
899
|
-
* Seconds to wait before showing the loading
|
|
900
|
-
*
|
|
906
|
+
* Seconds to wait before showing the loading indicator. Default: 0 (shown
|
|
907
|
+
* immediately when a request is in flight). Increase to suppress the
|
|
908
|
+
* indicator for fast responses. Applies to both loading-indicator styles
|
|
909
|
+
* (the dots and the waves).
|
|
901
910
|
*/
|
|
902
911
|
loadingDelay?: number;
|
|
903
912
|
/** Animations feature configuration. */
|
|
@@ -1199,6 +1208,25 @@ declare interface GeminiTransportConfig {
|
|
|
1199
1208
|
serverEndpoint?: string;
|
|
1200
1209
|
}
|
|
1201
1210
|
|
|
1211
|
+
/**
|
|
1212
|
+
* How the host frames an interaction widget in the chat transcript. The
|
|
1213
|
+
* assistant avatar is always shown; this controls only the bubble and the
|
|
1214
|
+
* "Assistant" sender label drawn around the widget.
|
|
1215
|
+
*
|
|
1216
|
+
* - `'label'` (default): the "Assistant" label above the widget with no chat
|
|
1217
|
+
* bubble — the widget renders full-width and owns its body. Historical
|
|
1218
|
+
* behaviour.
|
|
1219
|
+
* - `'bubble'`: the widget is wrapped in the standard assistant message bubble
|
|
1220
|
+
* (label, gradient/border/shadow, avatar-left row layout) so it reads exactly
|
|
1221
|
+
* like a normal assistant chat message. Widgets shown this way must not draw
|
|
1222
|
+
* their own outer bubble background/padding or it will double up.
|
|
1223
|
+
* - `'bare'`: neither label nor bubble — only the avatar. The widget owns the
|
|
1224
|
+
* entire presentation below the avatar.
|
|
1225
|
+
*
|
|
1226
|
+
* @beta
|
|
1227
|
+
*/
|
|
1228
|
+
export declare type InteractionPresentation = 'label' | 'bubble' | 'bare';
|
|
1229
|
+
|
|
1202
1230
|
/**
|
|
1203
1231
|
* Options passed to `requestInteraction` at call time.
|
|
1204
1232
|
*
|
|
@@ -1222,6 +1250,14 @@ export declare interface InteractionRequestOptions {
|
|
|
1222
1250
|
* means no timeout — the interaction waits indefinitely.
|
|
1223
1251
|
*/
|
|
1224
1252
|
timeoutMs?: number;
|
|
1253
|
+
/**
|
|
1254
|
+
* How the host frames this widget in the transcript — see
|
|
1255
|
+
* {@link InteractionPresentation}. Defaults to `'label'` (the historical
|
|
1256
|
+
* "Assistant" label with no bubble). Use `'bubble'` to render the widget
|
|
1257
|
+
* inside a standard assistant message bubble, or `'bare'` to suppress both
|
|
1258
|
+
* the label and the bubble so the widget owns its full presentation.
|
|
1259
|
+
*/
|
|
1260
|
+
presentation?: InteractionPresentation;
|
|
1225
1261
|
}
|
|
1226
1262
|
|
|
1227
1263
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ai",
|
|
3
3
|
"description": "Genesis Foundation AI - Provider-agnostic AI configuration and shared utilities",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.460.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@genesislcap/foundation-testing": "14.
|
|
56
|
-
"@genesislcap/genx": "14.
|
|
57
|
-
"@genesislcap/rollup-builder": "14.
|
|
58
|
-
"@genesislcap/ts-builder": "14.
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
60
|
-
"@genesislcap/vite-builder": "14.
|
|
61
|
-
"@genesislcap/webpack-builder": "14.
|
|
55
|
+
"@genesislcap/foundation-testing": "14.460.0",
|
|
56
|
+
"@genesislcap/genx": "14.460.0",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.460.0",
|
|
58
|
+
"@genesislcap/ts-builder": "14.460.0",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.460.0",
|
|
60
|
+
"@genesislcap/vite-builder": "14.460.0",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.460.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@genesislcap/foundation-logger": "14.
|
|
65
|
-
"@genesislcap/foundation-utils": "14.
|
|
64
|
+
"@genesislcap/foundation-logger": "14.460.0",
|
|
65
|
+
"@genesislcap/foundation-utils": "14.460.0",
|
|
66
66
|
"@microsoft/fast-foundation": "2.50.0"
|
|
67
67
|
},
|
|
68
68
|
"repository": {
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "12d48ef6ec786b6fc0ad12bccb3682d0792e508c"
|
|
77
77
|
}
|