@genesislcap/foundation-ai 15.58.2 → 15.60.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
|
@@ -22,7 +22,7 @@ export { ANTHROPIC_CACHE_READ_MULTIPLIER, ANTHROPIC_CACHE_WRITE_1H_MULTIPLIER, A
|
|
|
22
22
|
export type { AnthropicUsageRecord, GeminiUsageRecord, TokenCost, TokenCostBreakdown, TokenRates, } from './utils/token-cost';
|
|
23
23
|
export { SUPPORTED_ANTHROPIC_MODEL_IDS, SUPPORTED_GEMINI_MODEL_IDS, vendorOfModel } from './types';
|
|
24
24
|
export type { AIConfig, AIStatus, AIProviderType, AnthropicAIConfig, AnthropicModelId, ChromeAIConfig, ChromeAvailability, GeminiAIConfig, GeminiModelId, ServerAIConfig, } from './types';
|
|
25
|
-
export type { AggregateUsage, AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatContextConfig, ChatCostHistoryConfig, ChatDebugLogSubmission, ChatDebugLogNoteConfig, ChatDebugLogSubmitConfig, ChatDriverResult, ChatFallback, ChatImageAttachment, ChatInputDuringExecutionMode, CachePolicy, ChatMessage, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatTextAttachment, ChatThinkingLevel, ChatThinkingPolicy, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, CondensePolicy, CondenseResult, CondenseTrigger, ChatSuggestionsConfig, InteractionPresentation, InteractionRequestOptions, InteractionResult, MessageCompaction, ModelTagAppearance, SubAgentFailureReason, SubAgentRequestOptions, TimestampDisplay, TurnFailureReason, } from './types/chat.types';
|
|
25
|
+
export type { AggregateUsage, AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatContextConfig, ChatCostHistoryConfig, ChatDebugLogSubmission, ChatDebugLogNoteConfig, ChatDebugLogSubmitConfig, ChatDriverResult, ChatFallback, ChatHandlerCapabilities, ChatImageAttachment, ChatInputDuringExecutionMode, CachePolicy, ChatMessage, ChatMessageFeedback, ChatMessageFeedbackConfig, ChatMessageFeedbackRating, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatTextAttachment, ChatThinkingLevel, ChatThinkingPolicy, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, CondensePolicy, CondenseResult, CondenseTrigger, ChatSuggestionsConfig, InteractionPresentation, InteractionRequestOptions, InteractionResult, MessageCompaction, ModelTagAppearance, SubAgentFailureReason, SubAgentRequestOptions, TimestampDisplay, TurnFailureReason, } from './types/chat.types';
|
|
26
26
|
export { isChatToolCallUnknown } from './types/chat.types';
|
|
27
27
|
export type { ChatTransport } from './types/chat-transport.types';
|
|
28
28
|
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,gBAAgB,EAChB,8BAA8B,EAC9B,yBAAyB,EACzB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,kCAAk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,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,GAClB,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"}
|
|
@@ -206,6 +206,16 @@ export interface ChatInteraction {
|
|
|
206
206
|
* the widget, and never sent to a model: no transport, summary or suggestion reads it.
|
|
207
207
|
*/
|
|
208
208
|
outcome?: unknown;
|
|
209
|
+
/**
|
|
210
|
+
* Who answered it, stamped by the driver when it resolved (GENC-1660): the id of the
|
|
211
|
+
* interceptor that settled it through its own hold, such as `'autopilot'`, or `'user'` for any
|
|
212
|
+
* other answer — a click is the person's even on a widget a claimant held. Absent before it resolves, when it closed
|
|
213
|
+
* unanswered (a timeout or a stop), and on sessions saved before this existed — read an absent
|
|
214
|
+
* value on a resolved interaction as the person.
|
|
215
|
+
*
|
|
216
|
+
* Lets later steps and summaries tell what the person decided from what was decided for them.
|
|
217
|
+
*/
|
|
218
|
+
answeredBy?: string;
|
|
209
219
|
}
|
|
210
220
|
/**
|
|
211
221
|
* A text file attachment included with a user message. Serialised to the model as
|
|
@@ -329,6 +339,23 @@ export interface ChatMessage {
|
|
|
329
339
|
* Stored history, the UI and the exported debug log all keep the message; only the wire drops it.
|
|
330
340
|
*/
|
|
331
341
|
excludeFromProvider?: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Set when something wrote or sent this message ON THE USER'S BEHALF (GENC-1660): the id of the
|
|
344
|
+
* driver decorator that did, such as `'autopilot'`. Stamped by the platform only, never by a
|
|
345
|
+
* caller, so a message cannot claim to be delegated when it is not, or the other way round.
|
|
346
|
+
*
|
|
347
|
+
* A field, not a role, deliberately: `role` still says what the message is to the model (a
|
|
348
|
+
* delegated `user` message is still the user's turn), and transports drop roles they do not
|
|
349
|
+
* know. A delegated message renders as the assistant, whatever its role, so it is never shown as
|
|
350
|
+
* something the user said.
|
|
351
|
+
*/
|
|
352
|
+
delegate?: string;
|
|
353
|
+
/**
|
|
354
|
+
* For a delegated `user` message: the phrase the model reads in front of its content, e.g.
|
|
355
|
+
* "Answered on the user's behalf, from their brief." Kept on the message, so every request —
|
|
356
|
+
* and every request after a reload — frames it the same way. Never names the decorator.
|
|
357
|
+
*/
|
|
358
|
+
delegateFraming?: string;
|
|
332
359
|
/**
|
|
333
360
|
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
334
361
|
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
@@ -699,6 +726,13 @@ export interface InteractionRequestOptions {
|
|
|
699
726
|
* the label and the bubble so the widget owns its full presentation.
|
|
700
727
|
*/
|
|
701
728
|
presentation?: InteractionPresentation;
|
|
729
|
+
/**
|
|
730
|
+
* Keep this interaction with the person, whatever else is installed. A driver decorator that
|
|
731
|
+
* answers interactions on the user's behalf (an autopilot, a test harness) can never claim one
|
|
732
|
+
* marked `userOnly`. For questions that must be the user's own, the clearest being the decision
|
|
733
|
+
* to delegate in the first place.
|
|
734
|
+
*/
|
|
735
|
+
userOnly?: boolean;
|
|
702
736
|
}
|
|
703
737
|
/**
|
|
704
738
|
* Why a sub-agent run ended without producing a structured result via
|
|
@@ -872,6 +906,24 @@ export interface CondensePolicy {
|
|
|
872
906
|
/** Condense the tool RESULT (on the tool message). Omit to leave untouched. */
|
|
873
907
|
response?: CondenseResult;
|
|
874
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
* Named capabilities a driver decorator adds to every tool handler's context, under
|
|
911
|
+
* `context.capabilities` (GENC-1660). Empty here: a decorator declares its own by augmenting this
|
|
912
|
+
* interface, so handlers get it typed without the context naming any decorator.
|
|
913
|
+
*
|
|
914
|
+
* ```ts
|
|
915
|
+
* declare module '@genesislcap/foundation-ai' {
|
|
916
|
+
* interface ChatHandlerCapabilities {
|
|
917
|
+
* autopilot: { mode: 'paused' | 'running'; setMode(mode: 'paused' | 'running'): void };
|
|
918
|
+
* }
|
|
919
|
+
* }
|
|
920
|
+
* // in a handler: context.capabilities?.autopilot?.setMode('running')
|
|
921
|
+
* ```
|
|
922
|
+
*
|
|
923
|
+
* @beta
|
|
924
|
+
*/
|
|
925
|
+
export interface ChatHandlerCapabilities {
|
|
926
|
+
}
|
|
875
927
|
/**
|
|
876
928
|
* Map of tool name to async handler function.
|
|
877
929
|
*
|
|
@@ -1007,6 +1059,15 @@ export type ChatToolHandlers<TSubAgent extends {
|
|
|
1007
1059
|
* Optional: a host that builds its own context may not supply it.
|
|
1008
1060
|
*/
|
|
1009
1061
|
recordInteractionOutcome?: (outcome: unknown) => boolean;
|
|
1062
|
+
/**
|
|
1063
|
+
* Capabilities added by driver decorators (GENC-1660), e.g. `capabilities.autopilot`. Each is
|
|
1064
|
+
* present only while something provides it, so a handler feature-detects with `?.` and does
|
|
1065
|
+
* not offer what is not there. Typed by augmenting `ChatHandlerCapabilities`.
|
|
1066
|
+
*
|
|
1067
|
+
* Optional: absent when nothing is provided, and a host that builds its own context may not
|
|
1068
|
+
* supply it.
|
|
1069
|
+
*/
|
|
1070
|
+
capabilities?: Partial<ChatHandlerCapabilities>;
|
|
1010
1071
|
}) => Promise<unknown>>;
|
|
1011
1072
|
/**
|
|
1012
1073
|
* Controls whether (and how) the model may call a tool on a given turn. Maps to
|
|
@@ -1567,6 +1628,64 @@ export interface ChatDebugLogSubmitConfig {
|
|
|
1567
1628
|
*/
|
|
1568
1629
|
timeoutMs?: number;
|
|
1569
1630
|
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Which thumb the user pressed on a reply.
|
|
1633
|
+
*
|
|
1634
|
+
* @beta
|
|
1635
|
+
*/
|
|
1636
|
+
export type ChatMessageFeedbackRating = 'positive' | 'negative';
|
|
1637
|
+
/**
|
|
1638
|
+
* What the assistant hands to {@link ChatMessageFeedbackConfig.send} when the user rates a
|
|
1639
|
+
* reply: the rating, the rated reply and its key, plus the context of a
|
|
1640
|
+
* {@link ChatDebugLogSubmission}. The log itself is not built up front — call `getLogJson`
|
|
1641
|
+
* only when this rating should carry it.
|
|
1642
|
+
*
|
|
1643
|
+
* `message` is the user's note, trimmed, and absent when left empty.
|
|
1644
|
+
*
|
|
1645
|
+
* @beta
|
|
1646
|
+
*/
|
|
1647
|
+
export interface ChatMessageFeedback extends Omit<ChatDebugLogSubmission, 'logJson'> {
|
|
1648
|
+
rating: ChatMessageFeedbackRating;
|
|
1649
|
+
/**
|
|
1650
|
+
* The assistant reply the user rated, as it appears in the transcript. Includes the
|
|
1651
|
+
* assistant's own notices (e.g. a timed-out request), which carry `excludeFromProvider`.
|
|
1652
|
+
*/
|
|
1653
|
+
reply: ChatMessage;
|
|
1654
|
+
/**
|
|
1655
|
+
* Identifies the reply across message-object replacement and page reloads, so a host can
|
|
1656
|
+
* tell a re-rating of one reply from ratings of two.
|
|
1657
|
+
*/
|
|
1658
|
+
replyKey: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* Builds the agent log — the same lifetime-stitched JSON the debug-log Download button
|
|
1661
|
+
* saves, with everything {@link ChatDebugLogSubmission.logJson} warns about. It counts
|
|
1662
|
+
* against `timeoutMs` when awaited inside `send`.
|
|
1663
|
+
*/
|
|
1664
|
+
getLogJson: () => Promise<string>;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Enables thumbs up / thumbs down on every assistant reply. Pressing one opens a small
|
|
1668
|
+
* panel for an optional note; Send hands the rating and the reply to the host's `send`
|
|
1669
|
+
* callback. The assistant is vendor-agnostic — the host owns the transport, exactly as with
|
|
1670
|
+
* {@link ChatDebugLogSubmitConfig}.
|
|
1671
|
+
*
|
|
1672
|
+
* @beta
|
|
1673
|
+
*/
|
|
1674
|
+
export interface ChatMessageFeedbackConfig {
|
|
1675
|
+
/**
|
|
1676
|
+
* Deliver the feedback, and SETTLE ONLY WHEN DELIVERY IS KNOWN: a resolved promise marks
|
|
1677
|
+
* the reply as rated, a rejected one keeps the panel open with a retry. A promise that has
|
|
1678
|
+
* not settled after `timeoutMs` is treated as failed.
|
|
1679
|
+
*/
|
|
1680
|
+
send: (feedback: ChatMessageFeedback) => Promise<void>;
|
|
1681
|
+
/**
|
|
1682
|
+
* The disclosure shown under the note. The default mentions only the rating and the note;
|
|
1683
|
+
* a host that attaches the log, or ships to a third party, should say so here.
|
|
1684
|
+
*/
|
|
1685
|
+
description?: string;
|
|
1686
|
+
/** How long `send` may take before the feedback is treated as failed. Default 30000 (30s). */
|
|
1687
|
+
timeoutMs?: number;
|
|
1688
|
+
}
|
|
1570
1689
|
/**
|
|
1571
1690
|
* UI display configuration for the chat assistant.
|
|
1572
1691
|
*
|
|
@@ -1596,6 +1715,11 @@ export interface ChatUiConfig {
|
|
|
1596
1715
|
* whatever the callback does). See {@link ChatDebugLogSubmitConfig}.
|
|
1597
1716
|
*/
|
|
1598
1717
|
debugLogSubmit?: ChatDebugLogSubmitConfig;
|
|
1718
|
+
/**
|
|
1719
|
+
* Show thumbs up / thumbs down on every assistant reply, sent through the host's own
|
|
1720
|
+
* transport. See {@link ChatMessageFeedbackConfig}.
|
|
1721
|
+
*/
|
|
1722
|
+
messageFeedback?: ChatMessageFeedbackConfig;
|
|
1599
1723
|
/**
|
|
1600
1724
|
* Comma-separated list of accepted uploads: extensions (".txt,.md,.csv"), exact MIME types
|
|
1601
1725
|
* ("image/png"), or wildcards ("image/*"). If undefined or empty, file uploads are disabled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../../../src/types/chat.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,WAAW,GACX,QAAQ,GACR,MAAM,GACN,cAAc,GACd,gBAAgB,GAChB,mBAAmB,CAAC;AAExB;;;;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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AAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -5924,6 +5924,23 @@
|
|
|
5924
5924
|
],
|
|
5925
5925
|
"extendsTokenRanges": []
|
|
5926
5926
|
},
|
|
5927
|
+
{
|
|
5928
|
+
"kind": "Interface",
|
|
5929
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatHandlerCapabilities:interface",
|
|
5930
|
+
"docComment": "/**\n * Named capabilities a driver decorator adds to every tool handler's context, under `context.capabilities` (GENC-1660). Empty here: a decorator declares its own by augmenting this interface, so handlers get it typed without the context naming any decorator.\n * ```ts\n * declare module '@genesislcap/foundation-ai' {\n * interface ChatHandlerCapabilities {\n * autopilot: { mode: 'paused' | 'running'; setMode(mode: 'paused' | 'running'): void };\n * }\n * }\n * // in a handler: context.capabilities?.autopilot?.setMode('running')\n * ```\n *\n * @beta\n */\n",
|
|
5931
|
+
"excerptTokens": [
|
|
5932
|
+
{
|
|
5933
|
+
"kind": "Content",
|
|
5934
|
+
"text": "export interface ChatHandlerCapabilities "
|
|
5935
|
+
}
|
|
5936
|
+
],
|
|
5937
|
+
"fileUrlPath": "src/types/chat.types.ts",
|
|
5938
|
+
"releaseTag": "Beta",
|
|
5939
|
+
"name": "ChatHandlerCapabilities",
|
|
5940
|
+
"preserveMemberOrder": false,
|
|
5941
|
+
"members": [],
|
|
5942
|
+
"extendsTokenRanges": []
|
|
5943
|
+
},
|
|
5927
5944
|
{
|
|
5928
5945
|
"kind": "Interface",
|
|
5929
5946
|
"canonicalReference": "@genesislcap/foundation-ai!ChatImageAttachment:interface",
|
|
@@ -6118,6 +6135,33 @@
|
|
|
6118
6135
|
"name": "ChatInteraction",
|
|
6119
6136
|
"preserveMemberOrder": false,
|
|
6120
6137
|
"members": [
|
|
6138
|
+
{
|
|
6139
|
+
"kind": "PropertySignature",
|
|
6140
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#answeredBy:member",
|
|
6141
|
+
"docComment": "/**\n * Who answered it, stamped by the driver when it resolved (GENC-1660): the id of the interceptor that settled it through its own hold, such as `'autopilot'`, or `'user'` for any other answer — a click is the person's even on a widget a claimant held. Absent before it resolves, when it closed unanswered (a timeout or a stop), and on sessions saved before this existed — read an absent value on a resolved interaction as the person.\n *\n * Lets later steps and summaries tell what the person decided from what was decided for them.\n */\n",
|
|
6142
|
+
"excerptTokens": [
|
|
6143
|
+
{
|
|
6144
|
+
"kind": "Content",
|
|
6145
|
+
"text": "answeredBy?: "
|
|
6146
|
+
},
|
|
6147
|
+
{
|
|
6148
|
+
"kind": "Content",
|
|
6149
|
+
"text": "string"
|
|
6150
|
+
},
|
|
6151
|
+
{
|
|
6152
|
+
"kind": "Content",
|
|
6153
|
+
"text": ";"
|
|
6154
|
+
}
|
|
6155
|
+
],
|
|
6156
|
+
"isReadonly": false,
|
|
6157
|
+
"isOptional": true,
|
|
6158
|
+
"releaseTag": "Beta",
|
|
6159
|
+
"name": "answeredBy",
|
|
6160
|
+
"propertyTypeTokenRange": {
|
|
6161
|
+
"startIndex": 1,
|
|
6162
|
+
"endIndex": 2
|
|
6163
|
+
}
|
|
6164
|
+
},
|
|
6121
6165
|
{
|
|
6122
6166
|
"kind": "PropertySignature",
|
|
6123
6167
|
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#componentName:member",
|
|
@@ -6553,6 +6597,60 @@
|
|
|
6553
6597
|
"endIndex": 2
|
|
6554
6598
|
}
|
|
6555
6599
|
},
|
|
6600
|
+
{
|
|
6601
|
+
"kind": "PropertySignature",
|
|
6602
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#delegate:member",
|
|
6603
|
+
"docComment": "/**\n * Set when something wrote or sent this message ON THE USER'S BEHALF (GENC-1660): the id of the driver decorator that did, such as `'autopilot'`. Stamped by the platform only, never by a caller, so a message cannot claim to be delegated when it is not, or the other way round.\n *\n * A field, not a role, deliberately: `role` still says what the message is to the model (a delegated `user` message is still the user's turn), and transports drop roles they do not know. A delegated message renders as the assistant, whatever its role, so it is never shown as something the user said.\n */\n",
|
|
6604
|
+
"excerptTokens": [
|
|
6605
|
+
{
|
|
6606
|
+
"kind": "Content",
|
|
6607
|
+
"text": "delegate?: "
|
|
6608
|
+
},
|
|
6609
|
+
{
|
|
6610
|
+
"kind": "Content",
|
|
6611
|
+
"text": "string"
|
|
6612
|
+
},
|
|
6613
|
+
{
|
|
6614
|
+
"kind": "Content",
|
|
6615
|
+
"text": ";"
|
|
6616
|
+
}
|
|
6617
|
+
],
|
|
6618
|
+
"isReadonly": false,
|
|
6619
|
+
"isOptional": true,
|
|
6620
|
+
"releaseTag": "Beta",
|
|
6621
|
+
"name": "delegate",
|
|
6622
|
+
"propertyTypeTokenRange": {
|
|
6623
|
+
"startIndex": 1,
|
|
6624
|
+
"endIndex": 2
|
|
6625
|
+
}
|
|
6626
|
+
},
|
|
6627
|
+
{
|
|
6628
|
+
"kind": "PropertySignature",
|
|
6629
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#delegateFraming:member",
|
|
6630
|
+
"docComment": "/**\n * For a delegated `user` message: the phrase the model reads in front of its content, e.g. \"Answered on the user's behalf, from their brief.\" Kept on the message, so every request — and every request after a reload — frames it the same way. Never names the decorator.\n */\n",
|
|
6631
|
+
"excerptTokens": [
|
|
6632
|
+
{
|
|
6633
|
+
"kind": "Content",
|
|
6634
|
+
"text": "delegateFraming?: "
|
|
6635
|
+
},
|
|
6636
|
+
{
|
|
6637
|
+
"kind": "Content",
|
|
6638
|
+
"text": "string"
|
|
6639
|
+
},
|
|
6640
|
+
{
|
|
6641
|
+
"kind": "Content",
|
|
6642
|
+
"text": ";"
|
|
6643
|
+
}
|
|
6644
|
+
],
|
|
6645
|
+
"isReadonly": false,
|
|
6646
|
+
"isOptional": true,
|
|
6647
|
+
"releaseTag": "Beta",
|
|
6648
|
+
"name": "delegateFraming",
|
|
6649
|
+
"propertyTypeTokenRange": {
|
|
6650
|
+
"startIndex": 1,
|
|
6651
|
+
"endIndex": 2
|
|
6652
|
+
}
|
|
6653
|
+
},
|
|
6556
6654
|
{
|
|
6557
6655
|
"kind": "PropertySignature",
|
|
6558
6656
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#excludeFromProvider:member",
|
|
@@ -6971,6 +7069,313 @@
|
|
|
6971
7069
|
],
|
|
6972
7070
|
"extendsTokenRanges": []
|
|
6973
7071
|
},
|
|
7072
|
+
{
|
|
7073
|
+
"kind": "Interface",
|
|
7074
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback:interface",
|
|
7075
|
+
"docComment": "/**\n * What the assistant hands to {@link ChatMessageFeedbackConfig.send} when the user rates a reply: the rating, the rated reply and its key, plus the context of a {@link ChatDebugLogSubmission}. The log itself is not built up front — call `getLogJson` only when this rating should carry it.\n *\n * `message` is the user's note, trimmed, and absent when left empty.\n *\n * @beta\n */\n",
|
|
7076
|
+
"excerptTokens": [
|
|
7077
|
+
{
|
|
7078
|
+
"kind": "Content",
|
|
7079
|
+
"text": "export interface ChatMessageFeedback extends "
|
|
7080
|
+
},
|
|
7081
|
+
{
|
|
7082
|
+
"kind": "Reference",
|
|
7083
|
+
"text": "Omit",
|
|
7084
|
+
"canonicalReference": "!Omit:type"
|
|
7085
|
+
},
|
|
7086
|
+
{
|
|
7087
|
+
"kind": "Content",
|
|
7088
|
+
"text": "<"
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
"kind": "Reference",
|
|
7092
|
+
"text": "ChatDebugLogSubmission",
|
|
7093
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatDebugLogSubmission:interface"
|
|
7094
|
+
},
|
|
7095
|
+
{
|
|
7096
|
+
"kind": "Content",
|
|
7097
|
+
"text": ", 'logJson'>"
|
|
7098
|
+
},
|
|
7099
|
+
{
|
|
7100
|
+
"kind": "Content",
|
|
7101
|
+
"text": " "
|
|
7102
|
+
}
|
|
7103
|
+
],
|
|
7104
|
+
"fileUrlPath": "src/types/chat.types.ts",
|
|
7105
|
+
"releaseTag": "Beta",
|
|
7106
|
+
"name": "ChatMessageFeedback",
|
|
7107
|
+
"preserveMemberOrder": false,
|
|
7108
|
+
"members": [
|
|
7109
|
+
{
|
|
7110
|
+
"kind": "PropertySignature",
|
|
7111
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback#getLogJson:member",
|
|
7112
|
+
"docComment": "/**\n * Builds the agent log — the same lifetime-stitched JSON the debug-log Download button saves, with everything {@link ChatDebugLogSubmission.logJson} warns about. It counts against `timeoutMs` when awaited inside `send`.\n */\n",
|
|
7113
|
+
"excerptTokens": [
|
|
7114
|
+
{
|
|
7115
|
+
"kind": "Content",
|
|
7116
|
+
"text": "getLogJson: "
|
|
7117
|
+
},
|
|
7118
|
+
{
|
|
7119
|
+
"kind": "Content",
|
|
7120
|
+
"text": "() => "
|
|
7121
|
+
},
|
|
7122
|
+
{
|
|
7123
|
+
"kind": "Reference",
|
|
7124
|
+
"text": "Promise",
|
|
7125
|
+
"canonicalReference": "!Promise:interface"
|
|
7126
|
+
},
|
|
7127
|
+
{
|
|
7128
|
+
"kind": "Content",
|
|
7129
|
+
"text": "<string>"
|
|
7130
|
+
},
|
|
7131
|
+
{
|
|
7132
|
+
"kind": "Content",
|
|
7133
|
+
"text": ";"
|
|
7134
|
+
}
|
|
7135
|
+
],
|
|
7136
|
+
"isReadonly": false,
|
|
7137
|
+
"isOptional": false,
|
|
7138
|
+
"releaseTag": "Beta",
|
|
7139
|
+
"name": "getLogJson",
|
|
7140
|
+
"propertyTypeTokenRange": {
|
|
7141
|
+
"startIndex": 1,
|
|
7142
|
+
"endIndex": 4
|
|
7143
|
+
}
|
|
7144
|
+
},
|
|
7145
|
+
{
|
|
7146
|
+
"kind": "PropertySignature",
|
|
7147
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback#rating:member",
|
|
7148
|
+
"docComment": "",
|
|
7149
|
+
"excerptTokens": [
|
|
7150
|
+
{
|
|
7151
|
+
"kind": "Content",
|
|
7152
|
+
"text": "rating: "
|
|
7153
|
+
},
|
|
7154
|
+
{
|
|
7155
|
+
"kind": "Reference",
|
|
7156
|
+
"text": "ChatMessageFeedbackRating",
|
|
7157
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackRating:type"
|
|
7158
|
+
},
|
|
7159
|
+
{
|
|
7160
|
+
"kind": "Content",
|
|
7161
|
+
"text": ";"
|
|
7162
|
+
}
|
|
7163
|
+
],
|
|
7164
|
+
"isReadonly": false,
|
|
7165
|
+
"isOptional": false,
|
|
7166
|
+
"releaseTag": "Beta",
|
|
7167
|
+
"name": "rating",
|
|
7168
|
+
"propertyTypeTokenRange": {
|
|
7169
|
+
"startIndex": 1,
|
|
7170
|
+
"endIndex": 2
|
|
7171
|
+
}
|
|
7172
|
+
},
|
|
7173
|
+
{
|
|
7174
|
+
"kind": "PropertySignature",
|
|
7175
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback#reply:member",
|
|
7176
|
+
"docComment": "/**\n * The assistant reply the user rated, as it appears in the transcript. Includes the assistant's own notices (e.g. a timed-out request), which carry `excludeFromProvider`.\n */\n",
|
|
7177
|
+
"excerptTokens": [
|
|
7178
|
+
{
|
|
7179
|
+
"kind": "Content",
|
|
7180
|
+
"text": "reply: "
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
"kind": "Reference",
|
|
7184
|
+
"text": "ChatMessage",
|
|
7185
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage:interface"
|
|
7186
|
+
},
|
|
7187
|
+
{
|
|
7188
|
+
"kind": "Content",
|
|
7189
|
+
"text": ";"
|
|
7190
|
+
}
|
|
7191
|
+
],
|
|
7192
|
+
"isReadonly": false,
|
|
7193
|
+
"isOptional": false,
|
|
7194
|
+
"releaseTag": "Beta",
|
|
7195
|
+
"name": "reply",
|
|
7196
|
+
"propertyTypeTokenRange": {
|
|
7197
|
+
"startIndex": 1,
|
|
7198
|
+
"endIndex": 2
|
|
7199
|
+
}
|
|
7200
|
+
},
|
|
7201
|
+
{
|
|
7202
|
+
"kind": "PropertySignature",
|
|
7203
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback#replyKey:member",
|
|
7204
|
+
"docComment": "/**\n * Identifies the reply across message-object replacement and page reloads, so a host can tell a re-rating of one reply from ratings of two.\n */\n",
|
|
7205
|
+
"excerptTokens": [
|
|
7206
|
+
{
|
|
7207
|
+
"kind": "Content",
|
|
7208
|
+
"text": "replyKey: "
|
|
7209
|
+
},
|
|
7210
|
+
{
|
|
7211
|
+
"kind": "Content",
|
|
7212
|
+
"text": "string"
|
|
7213
|
+
},
|
|
7214
|
+
{
|
|
7215
|
+
"kind": "Content",
|
|
7216
|
+
"text": ";"
|
|
7217
|
+
}
|
|
7218
|
+
],
|
|
7219
|
+
"isReadonly": false,
|
|
7220
|
+
"isOptional": false,
|
|
7221
|
+
"releaseTag": "Beta",
|
|
7222
|
+
"name": "replyKey",
|
|
7223
|
+
"propertyTypeTokenRange": {
|
|
7224
|
+
"startIndex": 1,
|
|
7225
|
+
"endIndex": 2
|
|
7226
|
+
}
|
|
7227
|
+
}
|
|
7228
|
+
],
|
|
7229
|
+
"extendsTokenRanges": [
|
|
7230
|
+
{
|
|
7231
|
+
"startIndex": 1,
|
|
7232
|
+
"endIndex": 5
|
|
7233
|
+
}
|
|
7234
|
+
]
|
|
7235
|
+
},
|
|
7236
|
+
{
|
|
7237
|
+
"kind": "Interface",
|
|
7238
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackConfig:interface",
|
|
7239
|
+
"docComment": "/**\n * Enables thumbs up / thumbs down on every assistant reply. Pressing one opens a small panel for an optional note; Send hands the rating and the reply to the host's `send` callback. The assistant is vendor-agnostic — the host owns the transport, exactly as with {@link ChatDebugLogSubmitConfig}.\n *\n * @beta\n */\n",
|
|
7240
|
+
"excerptTokens": [
|
|
7241
|
+
{
|
|
7242
|
+
"kind": "Content",
|
|
7243
|
+
"text": "export interface ChatMessageFeedbackConfig "
|
|
7244
|
+
}
|
|
7245
|
+
],
|
|
7246
|
+
"fileUrlPath": "src/types/chat.types.ts",
|
|
7247
|
+
"releaseTag": "Beta",
|
|
7248
|
+
"name": "ChatMessageFeedbackConfig",
|
|
7249
|
+
"preserveMemberOrder": false,
|
|
7250
|
+
"members": [
|
|
7251
|
+
{
|
|
7252
|
+
"kind": "PropertySignature",
|
|
7253
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackConfig#description:member",
|
|
7254
|
+
"docComment": "/**\n * The disclosure shown under the note. The default mentions only the rating and the note; a host that attaches the log, or ships to a third party, should say so here.\n */\n",
|
|
7255
|
+
"excerptTokens": [
|
|
7256
|
+
{
|
|
7257
|
+
"kind": "Content",
|
|
7258
|
+
"text": "description?: "
|
|
7259
|
+
},
|
|
7260
|
+
{
|
|
7261
|
+
"kind": "Content",
|
|
7262
|
+
"text": "string"
|
|
7263
|
+
},
|
|
7264
|
+
{
|
|
7265
|
+
"kind": "Content",
|
|
7266
|
+
"text": ";"
|
|
7267
|
+
}
|
|
7268
|
+
],
|
|
7269
|
+
"isReadonly": false,
|
|
7270
|
+
"isOptional": true,
|
|
7271
|
+
"releaseTag": "Beta",
|
|
7272
|
+
"name": "description",
|
|
7273
|
+
"propertyTypeTokenRange": {
|
|
7274
|
+
"startIndex": 1,
|
|
7275
|
+
"endIndex": 2
|
|
7276
|
+
}
|
|
7277
|
+
},
|
|
7278
|
+
{
|
|
7279
|
+
"kind": "PropertySignature",
|
|
7280
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackConfig#send:member",
|
|
7281
|
+
"docComment": "/**\n * Deliver the feedback, and SETTLE ONLY WHEN DELIVERY IS KNOWN: a resolved promise marks the reply as rated, a rejected one keeps the panel open with a retry. A promise that has not settled after `timeoutMs` is treated as failed.\n */\n",
|
|
7282
|
+
"excerptTokens": [
|
|
7283
|
+
{
|
|
7284
|
+
"kind": "Content",
|
|
7285
|
+
"text": "send: "
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"kind": "Content",
|
|
7289
|
+
"text": "(feedback: "
|
|
7290
|
+
},
|
|
7291
|
+
{
|
|
7292
|
+
"kind": "Reference",
|
|
7293
|
+
"text": "ChatMessageFeedback",
|
|
7294
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedback:interface"
|
|
7295
|
+
},
|
|
7296
|
+
{
|
|
7297
|
+
"kind": "Content",
|
|
7298
|
+
"text": ") => "
|
|
7299
|
+
},
|
|
7300
|
+
{
|
|
7301
|
+
"kind": "Reference",
|
|
7302
|
+
"text": "Promise",
|
|
7303
|
+
"canonicalReference": "!Promise:interface"
|
|
7304
|
+
},
|
|
7305
|
+
{
|
|
7306
|
+
"kind": "Content",
|
|
7307
|
+
"text": "<void>"
|
|
7308
|
+
},
|
|
7309
|
+
{
|
|
7310
|
+
"kind": "Content",
|
|
7311
|
+
"text": ";"
|
|
7312
|
+
}
|
|
7313
|
+
],
|
|
7314
|
+
"isReadonly": false,
|
|
7315
|
+
"isOptional": false,
|
|
7316
|
+
"releaseTag": "Beta",
|
|
7317
|
+
"name": "send",
|
|
7318
|
+
"propertyTypeTokenRange": {
|
|
7319
|
+
"startIndex": 1,
|
|
7320
|
+
"endIndex": 6
|
|
7321
|
+
}
|
|
7322
|
+
},
|
|
7323
|
+
{
|
|
7324
|
+
"kind": "PropertySignature",
|
|
7325
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackConfig#timeoutMs:member",
|
|
7326
|
+
"docComment": "/**\n * How long `send` may take before the feedback is treated as failed. Default 30000 (30s).\n */\n",
|
|
7327
|
+
"excerptTokens": [
|
|
7328
|
+
{
|
|
7329
|
+
"kind": "Content",
|
|
7330
|
+
"text": "timeoutMs?: "
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"kind": "Content",
|
|
7334
|
+
"text": "number"
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"kind": "Content",
|
|
7338
|
+
"text": ";"
|
|
7339
|
+
}
|
|
7340
|
+
],
|
|
7341
|
+
"isReadonly": false,
|
|
7342
|
+
"isOptional": true,
|
|
7343
|
+
"releaseTag": "Beta",
|
|
7344
|
+
"name": "timeoutMs",
|
|
7345
|
+
"propertyTypeTokenRange": {
|
|
7346
|
+
"startIndex": 1,
|
|
7347
|
+
"endIndex": 2
|
|
7348
|
+
}
|
|
7349
|
+
}
|
|
7350
|
+
],
|
|
7351
|
+
"extendsTokenRanges": []
|
|
7352
|
+
},
|
|
7353
|
+
{
|
|
7354
|
+
"kind": "TypeAlias",
|
|
7355
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackRating:type",
|
|
7356
|
+
"docComment": "/**\n * Which thumb the user pressed on a reply.\n *\n * @beta\n */\n",
|
|
7357
|
+
"excerptTokens": [
|
|
7358
|
+
{
|
|
7359
|
+
"kind": "Content",
|
|
7360
|
+
"text": "export type ChatMessageFeedbackRating = "
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"kind": "Content",
|
|
7364
|
+
"text": "'positive' | 'negative'"
|
|
7365
|
+
},
|
|
7366
|
+
{
|
|
7367
|
+
"kind": "Content",
|
|
7368
|
+
"text": ";"
|
|
7369
|
+
}
|
|
7370
|
+
],
|
|
7371
|
+
"fileUrlPath": "src/types/chat.types.ts",
|
|
7372
|
+
"releaseTag": "Beta",
|
|
7373
|
+
"name": "ChatMessageFeedbackRating",
|
|
7374
|
+
"typeTokenRange": {
|
|
7375
|
+
"startIndex": 1,
|
|
7376
|
+
"endIndex": 2
|
|
7377
|
+
}
|
|
7378
|
+
},
|
|
6974
7379
|
{
|
|
6975
7380
|
"kind": "Interface",
|
|
6976
7381
|
"canonicalReference": "@genesislcap/foundation-ai!ChatRequestOptions:interface",
|
|
@@ -8175,7 +8580,25 @@
|
|
|
8175
8580
|
},
|
|
8176
8581
|
{
|
|
8177
8582
|
"kind": "Content",
|
|
8178
|
-
"text": ";\n recordInteractionOutcome?: (outcome: unknown) => boolean;\n
|
|
8583
|
+
"text": ";\n recordInteractionOutcome?: (outcome: unknown) => boolean;\n capabilities?: "
|
|
8584
|
+
},
|
|
8585
|
+
{
|
|
8586
|
+
"kind": "Reference",
|
|
8587
|
+
"text": "Partial",
|
|
8588
|
+
"canonicalReference": "!Partial:type"
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "Content",
|
|
8592
|
+
"text": "<"
|
|
8593
|
+
},
|
|
8594
|
+
{
|
|
8595
|
+
"kind": "Reference",
|
|
8596
|
+
"text": "ChatHandlerCapabilities",
|
|
8597
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatHandlerCapabilities:interface"
|
|
8598
|
+
},
|
|
8599
|
+
{
|
|
8600
|
+
"kind": "Content",
|
|
8601
|
+
"text": ">;\n}) => "
|
|
8179
8602
|
},
|
|
8180
8603
|
{
|
|
8181
8604
|
"kind": "Reference",
|
|
@@ -8209,7 +8632,7 @@
|
|
|
8209
8632
|
],
|
|
8210
8633
|
"typeTokenRange": {
|
|
8211
8634
|
"startIndex": 5,
|
|
8212
|
-
"endIndex":
|
|
8635
|
+
"endIndex": 33
|
|
8213
8636
|
}
|
|
8214
8637
|
},
|
|
8215
8638
|
{
|
|
@@ -8734,6 +9157,34 @@
|
|
|
8734
9157
|
"endIndex": 2
|
|
8735
9158
|
}
|
|
8736
9159
|
},
|
|
9160
|
+
{
|
|
9161
|
+
"kind": "PropertySignature",
|
|
9162
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#messageFeedback:member",
|
|
9163
|
+
"docComment": "/**\n * Show thumbs up / thumbs down on every assistant reply, sent through the host's own transport. See {@link ChatMessageFeedbackConfig}.\n */\n",
|
|
9164
|
+
"excerptTokens": [
|
|
9165
|
+
{
|
|
9166
|
+
"kind": "Content",
|
|
9167
|
+
"text": "messageFeedback?: "
|
|
9168
|
+
},
|
|
9169
|
+
{
|
|
9170
|
+
"kind": "Reference",
|
|
9171
|
+
"text": "ChatMessageFeedbackConfig",
|
|
9172
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessageFeedbackConfig:interface"
|
|
9173
|
+
},
|
|
9174
|
+
{
|
|
9175
|
+
"kind": "Content",
|
|
9176
|
+
"text": ";"
|
|
9177
|
+
}
|
|
9178
|
+
],
|
|
9179
|
+
"isReadonly": false,
|
|
9180
|
+
"isOptional": true,
|
|
9181
|
+
"releaseTag": "Beta",
|
|
9182
|
+
"name": "messageFeedback",
|
|
9183
|
+
"propertyTypeTokenRange": {
|
|
9184
|
+
"startIndex": 1,
|
|
9185
|
+
"endIndex": 2
|
|
9186
|
+
}
|
|
9187
|
+
},
|
|
8737
9188
|
{
|
|
8738
9189
|
"kind": "PropertySignature",
|
|
8739
9190
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#resizableInput:member",
|
|
@@ -11861,6 +12312,33 @@
|
|
|
11861
12312
|
"startIndex": 1,
|
|
11862
12313
|
"endIndex": 2
|
|
11863
12314
|
}
|
|
12315
|
+
},
|
|
12316
|
+
{
|
|
12317
|
+
"kind": "PropertySignature",
|
|
12318
|
+
"canonicalReference": "@genesislcap/foundation-ai!InteractionRequestOptions#userOnly:member",
|
|
12319
|
+
"docComment": "/**\n * Keep this interaction with the person, whatever else is installed. A driver decorator that answers interactions on the user's behalf (an autopilot, a test harness) can never claim one marked `userOnly`. For questions that must be the user's own, the clearest being the decision to delegate in the first place.\n */\n",
|
|
12320
|
+
"excerptTokens": [
|
|
12321
|
+
{
|
|
12322
|
+
"kind": "Content",
|
|
12323
|
+
"text": "userOnly?: "
|
|
12324
|
+
},
|
|
12325
|
+
{
|
|
12326
|
+
"kind": "Content",
|
|
12327
|
+
"text": "boolean"
|
|
12328
|
+
},
|
|
12329
|
+
{
|
|
12330
|
+
"kind": "Content",
|
|
12331
|
+
"text": ";"
|
|
12332
|
+
}
|
|
12333
|
+
],
|
|
12334
|
+
"isReadonly": false,
|
|
12335
|
+
"isOptional": true,
|
|
12336
|
+
"releaseTag": "Beta",
|
|
12337
|
+
"name": "userOnly",
|
|
12338
|
+
"propertyTypeTokenRange": {
|
|
12339
|
+
"startIndex": 1,
|
|
12340
|
+
"endIndex": 2
|
|
12341
|
+
}
|
|
11864
12342
|
}
|
|
11865
12343
|
],
|
|
11866
12344
|
"extendsTokenRanges": []
|
package/dist/foundation-ai.d.ts
CHANGED
|
@@ -1411,6 +1411,25 @@ export declare interface ChatFallback {
|
|
|
1411
1411
|
maxTokens?: number;
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* Named capabilities a driver decorator adds to every tool handler's context, under
|
|
1416
|
+
* `context.capabilities` (GENC-1660). Empty here: a decorator declares its own by augmenting this
|
|
1417
|
+
* interface, so handlers get it typed without the context naming any decorator.
|
|
1418
|
+
*
|
|
1419
|
+
* ```ts
|
|
1420
|
+
* declare module '@genesislcap/foundation-ai' {
|
|
1421
|
+
* interface ChatHandlerCapabilities {
|
|
1422
|
+
* autopilot: { mode: 'paused' | 'running'; setMode(mode: 'paused' | 'running'): void };
|
|
1423
|
+
* }
|
|
1424
|
+
* }
|
|
1425
|
+
* // in a handler: context.capabilities?.autopilot?.setMode('running')
|
|
1426
|
+
* ```
|
|
1427
|
+
*
|
|
1428
|
+
* @beta
|
|
1429
|
+
*/
|
|
1430
|
+
export declare interface ChatHandlerCapabilities {
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1414
1433
|
/**
|
|
1415
1434
|
* An image attachment included with a user message or a tool result. Sent as a real image
|
|
1416
1435
|
* content block — an Anthropic `type: 'image'` block or a Gemini `inlineData` part — not
|
|
@@ -1483,6 +1502,16 @@ export declare interface ChatInteraction {
|
|
|
1483
1502
|
* the widget, and never sent to a model: no transport, summary or suggestion reads it.
|
|
1484
1503
|
*/
|
|
1485
1504
|
outcome?: unknown;
|
|
1505
|
+
/**
|
|
1506
|
+
* Who answered it, stamped by the driver when it resolved (GENC-1660): the id of the
|
|
1507
|
+
* interceptor that settled it through its own hold, such as `'autopilot'`, or `'user'` for any
|
|
1508
|
+
* other answer — a click is the person's even on a widget a claimant held. Absent before it resolves, when it closed
|
|
1509
|
+
* unanswered (a timeout or a stop), and on sessions saved before this existed — read an absent
|
|
1510
|
+
* value on a resolved interaction as the person.
|
|
1511
|
+
*
|
|
1512
|
+
* Lets later steps and summaries tell what the person decided from what was decided for them.
|
|
1513
|
+
*/
|
|
1514
|
+
answeredBy?: string;
|
|
1486
1515
|
}
|
|
1487
1516
|
|
|
1488
1517
|
/**
|
|
@@ -1547,6 +1576,23 @@ export declare interface ChatMessage {
|
|
|
1547
1576
|
* Stored history, the UI and the exported debug log all keep the message; only the wire drops it.
|
|
1548
1577
|
*/
|
|
1549
1578
|
excludeFromProvider?: boolean;
|
|
1579
|
+
/**
|
|
1580
|
+
* Set when something wrote or sent this message ON THE USER'S BEHALF (GENC-1660): the id of the
|
|
1581
|
+
* driver decorator that did, such as `'autopilot'`. Stamped by the platform only, never by a
|
|
1582
|
+
* caller, so a message cannot claim to be delegated when it is not, or the other way round.
|
|
1583
|
+
*
|
|
1584
|
+
* A field, not a role, deliberately: `role` still says what the message is to the model (a
|
|
1585
|
+
* delegated `user` message is still the user's turn), and transports drop roles they do not
|
|
1586
|
+
* know. A delegated message renders as the assistant, whatever its role, so it is never shown as
|
|
1587
|
+
* something the user said.
|
|
1588
|
+
*/
|
|
1589
|
+
delegate?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* For a delegated `user` message: the phrase the model reads in front of its content, e.g.
|
|
1592
|
+
* "Answered on the user's behalf, from their brief." Kept on the message, so every request —
|
|
1593
|
+
* and every request after a reload — frames it the same way. Never names the decorator.
|
|
1594
|
+
*/
|
|
1595
|
+
delegateFraming?: string;
|
|
1550
1596
|
/**
|
|
1551
1597
|
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
1552
1598
|
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
@@ -1680,6 +1726,67 @@ export declare interface ChatMessage {
|
|
|
1680
1726
|
provider?: AIProviderType;
|
|
1681
1727
|
}
|
|
1682
1728
|
|
|
1729
|
+
/**
|
|
1730
|
+
* What the assistant hands to {@link ChatMessageFeedbackConfig.send} when the user rates a
|
|
1731
|
+
* reply: the rating, the rated reply and its key, plus the context of a
|
|
1732
|
+
* {@link ChatDebugLogSubmission}. The log itself is not built up front — call `getLogJson`
|
|
1733
|
+
* only when this rating should carry it.
|
|
1734
|
+
*
|
|
1735
|
+
* `message` is the user's note, trimmed, and absent when left empty.
|
|
1736
|
+
*
|
|
1737
|
+
* @beta
|
|
1738
|
+
*/
|
|
1739
|
+
export declare interface ChatMessageFeedback extends Omit<ChatDebugLogSubmission, 'logJson'> {
|
|
1740
|
+
rating: ChatMessageFeedbackRating;
|
|
1741
|
+
/**
|
|
1742
|
+
* The assistant reply the user rated, as it appears in the transcript. Includes the
|
|
1743
|
+
* assistant's own notices (e.g. a timed-out request), which carry `excludeFromProvider`.
|
|
1744
|
+
*/
|
|
1745
|
+
reply: ChatMessage;
|
|
1746
|
+
/**
|
|
1747
|
+
* Identifies the reply across message-object replacement and page reloads, so a host can
|
|
1748
|
+
* tell a re-rating of one reply from ratings of two.
|
|
1749
|
+
*/
|
|
1750
|
+
replyKey: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Builds the agent log — the same lifetime-stitched JSON the debug-log Download button
|
|
1753
|
+
* saves, with everything {@link ChatDebugLogSubmission.logJson} warns about. It counts
|
|
1754
|
+
* against `timeoutMs` when awaited inside `send`.
|
|
1755
|
+
*/
|
|
1756
|
+
getLogJson: () => Promise<string>;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* Enables thumbs up / thumbs down on every assistant reply. Pressing one opens a small
|
|
1761
|
+
* panel for an optional note; Send hands the rating and the reply to the host's `send`
|
|
1762
|
+
* callback. The assistant is vendor-agnostic — the host owns the transport, exactly as with
|
|
1763
|
+
* {@link ChatDebugLogSubmitConfig}.
|
|
1764
|
+
*
|
|
1765
|
+
* @beta
|
|
1766
|
+
*/
|
|
1767
|
+
export declare interface ChatMessageFeedbackConfig {
|
|
1768
|
+
/**
|
|
1769
|
+
* Deliver the feedback, and SETTLE ONLY WHEN DELIVERY IS KNOWN: a resolved promise marks
|
|
1770
|
+
* the reply as rated, a rejected one keeps the panel open with a retry. A promise that has
|
|
1771
|
+
* not settled after `timeoutMs` is treated as failed.
|
|
1772
|
+
*/
|
|
1773
|
+
send: (feedback: ChatMessageFeedback) => Promise<void>;
|
|
1774
|
+
/**
|
|
1775
|
+
* The disclosure shown under the note. The default mentions only the rating and the note;
|
|
1776
|
+
* a host that attaches the log, or ships to a third party, should say so here.
|
|
1777
|
+
*/
|
|
1778
|
+
description?: string;
|
|
1779
|
+
/** How long `send` may take before the feedback is treated as failed. Default 30000 (30s). */
|
|
1780
|
+
timeoutMs?: number;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Which thumb the user pressed on a reply.
|
|
1785
|
+
*
|
|
1786
|
+
* @beta
|
|
1787
|
+
*/
|
|
1788
|
+
export declare type ChatMessageFeedbackRating = 'positive' | 'negative';
|
|
1789
|
+
|
|
1683
1790
|
/**
|
|
1684
1791
|
* Options for a chat request.
|
|
1685
1792
|
*
|
|
@@ -2277,6 +2384,15 @@ export declare type ChatToolHandlers<TSubAgent extends {
|
|
|
2277
2384
|
* Optional: a host that builds its own context may not supply it.
|
|
2278
2385
|
*/
|
|
2279
2386
|
recordInteractionOutcome?: (outcome: unknown) => boolean;
|
|
2387
|
+
/**
|
|
2388
|
+
* Capabilities added by driver decorators (GENC-1660), e.g. `capabilities.autopilot`. Each is
|
|
2389
|
+
* present only while something provides it, so a handler feature-detects with `?.` and does
|
|
2390
|
+
* not offer what is not there. Typed by augmenting `ChatHandlerCapabilities`.
|
|
2391
|
+
*
|
|
2392
|
+
* Optional: absent when nothing is provided, and a host that builds its own context may not
|
|
2393
|
+
* supply it.
|
|
2394
|
+
*/
|
|
2395
|
+
capabilities?: Partial<ChatHandlerCapabilities>;
|
|
2280
2396
|
}) => Promise<unknown>>;
|
|
2281
2397
|
|
|
2282
2398
|
/**
|
|
@@ -2346,6 +2462,11 @@ export declare interface ChatUiConfig {
|
|
|
2346
2462
|
* whatever the callback does). See {@link ChatDebugLogSubmitConfig}.
|
|
2347
2463
|
*/
|
|
2348
2464
|
debugLogSubmit?: ChatDebugLogSubmitConfig;
|
|
2465
|
+
/**
|
|
2466
|
+
* Show thumbs up / thumbs down on every assistant reply, sent through the host's own
|
|
2467
|
+
* transport. See {@link ChatMessageFeedbackConfig}.
|
|
2468
|
+
*/
|
|
2469
|
+
messageFeedback?: ChatMessageFeedbackConfig;
|
|
2349
2470
|
/**
|
|
2350
2471
|
* Comma-separated list of accepted uploads: extensions (".txt,.md,.csv"), exact MIME types
|
|
2351
2472
|
* ("image/png"), or wildcards ("image/*"). If undefined or empty, file uploads are disabled.
|
|
@@ -3160,6 +3281,13 @@ export declare interface InteractionRequestOptions {
|
|
|
3160
3281
|
* the label and the bubble so the widget owns its full presentation.
|
|
3161
3282
|
*/
|
|
3162
3283
|
presentation?: InteractionPresentation;
|
|
3284
|
+
/**
|
|
3285
|
+
* Keep this interaction with the person, whatever else is installed. A driver decorator that
|
|
3286
|
+
* answers interactions on the user's behalf (an autopilot, a test harness) can never claim one
|
|
3287
|
+
* marked `userOnly`. For questions that must be the user's own, the clearest being the decision
|
|
3288
|
+
* to delegate in the first place.
|
|
3289
|
+
*/
|
|
3290
|
+
userOnly?: boolean;
|
|
3163
3291
|
}
|
|
3164
3292
|
|
|
3165
3293
|
/**
|
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": "15.
|
|
4
|
+
"version": "15.60.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@genesislcap/foundation-testing": "15.
|
|
53
|
-
"@genesislcap/genx": "15.
|
|
54
|
-
"@genesislcap/ts-builder": "15.
|
|
55
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
56
|
-
"@genesislcap/vite-builder": "15.
|
|
57
|
-
"@genesislcap/webpack-builder": "15.
|
|
52
|
+
"@genesislcap/foundation-testing": "15.60.0",
|
|
53
|
+
"@genesislcap/genx": "15.60.0",
|
|
54
|
+
"@genesislcap/ts-builder": "15.60.0",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "15.60.0",
|
|
56
|
+
"@genesislcap/vite-builder": "15.60.0",
|
|
57
|
+
"@genesislcap/webpack-builder": "15.60.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@genesislcap/foundation-logger": "15.
|
|
61
|
-
"@genesislcap/foundation-utils": "15.
|
|
60
|
+
"@genesislcap/foundation-logger": "15.60.0",
|
|
61
|
+
"@genesislcap/foundation-utils": "15.60.0",
|
|
62
62
|
"@microsoft/fast-foundation": "2.50.0"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|