@genesislcap/foundation-ai 14.479.1-alpha-af2aa5c.0 → 14.481.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/transports/anthropic-transport.d.ts.map +1 -1
- package/dist/dts/transports/gemini-transport.d.ts.map +1 -1
- package/dist/dts/types/chat.types.d.ts +40 -2
- package/dist/dts/types/chat.types.d.ts.map +1 -1
- package/dist/dts/types/config.types.d.ts +1 -1
- package/dist/dts/types/config.types.d.ts.map +1 -1
- package/dist/esm/transports/anthropic-transport.js +58 -15
- package/dist/esm/transports/gemini-transport.js +14 -17
- package/dist/esm/types/config.types.js +1 -0
- package/dist/foundation-ai.api.json +112 -4
- package/dist/foundation-ai.d.ts +41 -3
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-transport.d.ts","sourceRoot":"","sources":["../../../src/transports/anthropic-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAGV,WAAW,EACX,kBAAkB,EAGnB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"anthropic-transport.d.ts","sourceRoot":"","sources":["../../../src/transports/anthropic-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAGV,WAAW,EACX,kBAAkB,EAGnB,MAAM,qBAAqB,CAAC;AAgH7B,MAAM,WAAW,wBAAwB;IACvC;;;OAG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CAAC,eAAe;CAexB"}
|
|
@@ -163,6 +163,15 @@ export interface ChatInteraction {
|
|
|
163
163
|
* with the session and re-renders identically from history.
|
|
164
164
|
*/
|
|
165
165
|
presentation?: InteractionPresentation;
|
|
166
|
+
/**
|
|
167
|
+
* Id of the assistant host elected by the driver to render (and thus run) this interaction's
|
|
168
|
+
* widget. When several views share one driver (e.g. a bubble and a docked panel), only the
|
|
169
|
+
* matching host renders the live widget so its side effect fires once; the others render a
|
|
170
|
+
* passive placeholder until it resolves. Stamped by the driver at request time from the most
|
|
171
|
+
* recently active host, with a deterministic fallback. Absent only when no host is registered
|
|
172
|
+
* (the widget then renders on every view — fail-open). @beta
|
|
173
|
+
*/
|
|
174
|
+
ownerHostId?: string;
|
|
166
175
|
}
|
|
167
176
|
/**
|
|
168
177
|
* A file attachment included with a user message.
|
|
@@ -192,7 +201,30 @@ export interface ChatMessage {
|
|
|
192
201
|
toolResult?: ChatToolResult;
|
|
193
202
|
attachments?: ChatAttachment[];
|
|
194
203
|
interaction?: ChatInteraction;
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated Legacy flag for "reasoning-ish content, hidden by default". Superseded by
|
|
206
|
+
* {@link ChatMessage.category} `=== 'reasoning'`. Still honoured on read (transport wire-skip,
|
|
207
|
+
* `messageType`, `filterVisibleMessages`) so sessions persisted before the reasoning/narration
|
|
208
|
+
* split still hide their reasoning; new messages set `category` instead.
|
|
209
|
+
*/
|
|
195
210
|
thinking?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Display sub-category of an assistant message, decided by the driver when it splits a single
|
|
213
|
+
* model response into separate messages (see the ChatDriver `isThinkingStep` branch):
|
|
214
|
+
* - `'reasoning'` — the model's chain-of-thought summary; hidden unless `showThinkingSteps`.
|
|
215
|
+
* - `'narration'` — interstitial prose the model emitted alongside a tool call; hidden unless
|
|
216
|
+
* `showNarration`. (A standalone final assistant message has NO category and is always shown.)
|
|
217
|
+
* Both are UI-only: like `thinking` before them, they are skipped when building the provider
|
|
218
|
+
* request. The message still has `role: 'assistant'`.
|
|
219
|
+
*/
|
|
220
|
+
category?: 'reasoning' | 'narration';
|
|
221
|
+
/**
|
|
222
|
+
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
223
|
+
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
224
|
+
* `content` and the reasoning summary here. The driver reads it, emits a separate
|
|
225
|
+
* `category: 'reasoning'` message, and clears this field — it is NOT stored on history messages.
|
|
226
|
+
*/
|
|
227
|
+
reasoning?: string;
|
|
196
228
|
/** Name of the agent that produced this message. Set by OrchestratingDriver. */
|
|
197
229
|
agentName?: string;
|
|
198
230
|
/**
|
|
@@ -764,7 +796,7 @@ export type ModelTagAppearance = 'neutral' | 'primary' | 'secondary' | 'tertiary
|
|
|
764
796
|
/**
|
|
765
797
|
* UI display configuration for the chat assistant.
|
|
766
798
|
*
|
|
767
|
-
* For toggle flags (`showToolCalls`, `showThinkingSteps`):
|
|
799
|
+
* For toggle flags (`showToolCalls`, `showThinkingSteps`, `showNarration`):
|
|
768
800
|
* - `true` — default on, user can toggle off
|
|
769
801
|
* - `false` — default off, user can toggle on
|
|
770
802
|
* - `null` / `undefined` — completely disabled, no UI control shown
|
|
@@ -774,8 +806,14 @@ export type ModelTagAppearance = 'neutral' | 'primary' | 'secondary' | 'tertiary
|
|
|
774
806
|
export interface ChatUiConfig {
|
|
775
807
|
/** Show tool call details in the chat UI. */
|
|
776
808
|
showToolCalls?: boolean | null;
|
|
777
|
-
/** Show model
|
|
809
|
+
/** Show the model's reasoning (chain-of-thought summary) messages. */
|
|
778
810
|
showThinkingSteps?: boolean | null;
|
|
811
|
+
/**
|
|
812
|
+
* Show the model's narration — interstitial prose it emits alongside a tool call. Separate
|
|
813
|
+
* from `showThinkingSteps` (reasoning) so hosts can reveal one without the other. Default off:
|
|
814
|
+
* narration is process chatter, not the assistant's final answer (which is always shown).
|
|
815
|
+
*/
|
|
816
|
+
showNarration?: boolean | null;
|
|
779
817
|
/** Show a button to download the full chat history as JSON. */
|
|
780
818
|
allowDebugDownload?: boolean;
|
|
781
819
|
/** Comma-separated list of accepted file extensions for upload, e.g., ".txt,.md,.csv". 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,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;;;;;;;;;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;IACzB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,YAAY,GAAG,EAAE,IAAI,mBAAmB,CAEjF;A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_IDS: readonly GeminiModelId[];
|
|
|
17
17
|
*
|
|
18
18
|
* @beta
|
|
19
19
|
*/
|
|
20
|
-
export type AnthropicModelId = 'claude-opus-4-7' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001';
|
|
20
|
+
export type AnthropicModelId = 'claude-opus-4-7' | 'claude-sonnet-5' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001';
|
|
21
21
|
/** @beta */
|
|
22
22
|
export declare const SUPPORTED_ANTHROPIC_MODEL_IDS: readonly AnthropicModelId[];
|
|
23
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../src/types/config.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GAEvB,wBAAwB,CAAC;AAE7B,YAAY;AACZ,eAAO,MAAM,0BAA0B,EAAE,SAAS,aAAa,EAOrD,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACxB,iBAAiB,GACjB,mBAAmB,GACnB,2BAA2B,CAAC;AAEhC,YAAY;AACZ,eAAO,MAAM,6BAA6B,EAAE,SAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../src/types/config.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB,gBAAgB,GAChB,kBAAkB,GAClB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GAEvB,wBAA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;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,cAAc,GAAG,cAAc,GAAG,iBAAiB,CAAC"}
|
|
@@ -30,6 +30,7 @@ function toAnthropicToolChoice(choice) {
|
|
|
30
30
|
*/
|
|
31
31
|
const ANTHROPIC_CONTEXT_LIMITS = {
|
|
32
32
|
'claude-opus-4-7': 1000000,
|
|
33
|
+
'claude-sonnet-5': 1000000,
|
|
33
34
|
'claude-sonnet-4-6': 1000000,
|
|
34
35
|
'claude-haiku-4-5-20251001': 200000,
|
|
35
36
|
};
|
|
@@ -51,12 +52,39 @@ function estimatedAnthropicRatesUsdPerMillion(model) {
|
|
|
51
52
|
if (model === 'claude-haiku-4-5-20251001') {
|
|
52
53
|
return { promptPerMillion: 1, candidatePerMillion: 5 };
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
// Sonnet 5 and Sonnet 4.6 share the standard Sonnet tier ($3 / $15 per MTok). Sonnet 5's
|
|
56
|
+
// introductory rate ($2 / $10 through 2026-08-31) is deliberately NOT used here — standard rates.
|
|
57
|
+
if (model === 'claude-sonnet-5' || model === 'claude-sonnet-4-6') {
|
|
55
58
|
return { promptPerMillion: 3, candidatePerMillion: 15 };
|
|
56
59
|
}
|
|
57
60
|
// Opus 4.7
|
|
58
61
|
return { promptPerMillion: 5, candidatePerMillion: 25 };
|
|
59
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Models that reject non-default sampling parameters (`temperature`/`top_p`/`top_k`) with a 400 —
|
|
65
|
+
* the Opus 4.7+ generation. Sonnet 4.6 and Haiku 4.5 still accept them.
|
|
66
|
+
*/
|
|
67
|
+
function rejectsSamplingParams(model) {
|
|
68
|
+
return model === 'claude-opus-4-7' || model === 'claude-sonnet-5';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Extended-thinking posture for a request. Sonnet 5 always runs adaptive thinking with
|
|
72
|
+
* `display:'summarized'` — regardless of `tool_choice`. First-party has no forced-tool-vs-thinking
|
|
73
|
+
* restriction (that's Bedrock-only), and "adaptive" self-regulates (the model thinks little on
|
|
74
|
+
* trivial/mechanical turns on its own), so there is no reason to special-case forced tool calls.
|
|
75
|
+
* `display:'summarized'` means the reasoning summary is always returned (billed regardless; the
|
|
76
|
+
* host's toggle decides visibility).
|
|
77
|
+
*
|
|
78
|
+
* Every other model returns undefined → `thinking` is omitted → it runs WITHOUT thinking on the
|
|
79
|
+
* chat path. So the older "forced tool + thinking is incompatible" restriction never applies to
|
|
80
|
+
* them (you can't hit it when thinking is off). If thinking is ever enabled for a non-Sonnet-5
|
|
81
|
+
* model, revisit the forced-tool interaction for that model then.
|
|
82
|
+
*/
|
|
83
|
+
function anthropicThinking(model) {
|
|
84
|
+
if (model !== 'claude-sonnet-5')
|
|
85
|
+
return undefined;
|
|
86
|
+
return { type: 'adaptive', display: 'summarized' };
|
|
87
|
+
}
|
|
60
88
|
/**
|
|
61
89
|
* Prompt-cache pricing multipliers, applied to the model's base input rate
|
|
62
90
|
* (`promptPerMillion`) — https://docs.claude.com/en/docs/build-with-claude/prompt-caching
|
|
@@ -133,7 +161,10 @@ export class AnthropicTransport {
|
|
|
133
161
|
const model = (_a = config.model) !== null && _a !== void 0 ? _a : DEFAULT_MODEL;
|
|
134
162
|
assertSupportedAnthropicModel(model);
|
|
135
163
|
this.model = model;
|
|
136
|
-
if (model === 'claude-sonnet-
|
|
164
|
+
if (model === 'claude-sonnet-5') {
|
|
165
|
+
logger.warn('AnthropicTransport: using claude-sonnet-5 — standard Sonnet tier, higher cost than Haiku, and adaptive thinking runs by default so reasoning tokens add to output cost. Use for stronger reasoning or agent tasks.');
|
|
166
|
+
}
|
|
167
|
+
else if (model === 'claude-sonnet-4-6') {
|
|
137
168
|
logger.warn('AnthropicTransport: using claude-sonnet-4-6 — higher cost than Haiku; use for stronger reasoning or agent tasks.');
|
|
138
169
|
}
|
|
139
170
|
else if (model === 'claude-opus-4-7') {
|
|
@@ -194,6 +225,10 @@ export class AnthropicTransport {
|
|
|
194
225
|
body.tools = tools;
|
|
195
226
|
body.tool_choice = { type: 'tool', name: STRUCTURED_OUTPUT_TOOL_NAME };
|
|
196
227
|
}
|
|
228
|
+
// Sonnet 5 runs adaptive thinking by default; disable it for structured/one-shot prompts — the
|
|
229
|
+
// reasoning would be billed but discarded (only text / the forced tool_use block is read back).
|
|
230
|
+
if (this.model === 'claude-sonnet-5')
|
|
231
|
+
body.thinking = { type: 'disabled' };
|
|
197
232
|
const response = yield this.post(body);
|
|
198
233
|
if (responseSchema) {
|
|
199
234
|
const toolUse = ((_a = response.content) !== null && _a !== void 0 ? _a : []).find((b) => b.type === 'tool_use' && b.name === STRUCTURED_OUTPUT_TOOL_NAME);
|
|
@@ -227,17 +262,21 @@ export class AnthropicTransport {
|
|
|
227
262
|
// Map the requested tool-call mode to Anthropic's tool_choice — only
|
|
228
263
|
// meaningful when tools exist. `'required'`/`{ tool }` force a tool call so
|
|
229
264
|
// a turn can only end via one (e.g. a sub-agent's completion tool).
|
|
230
|
-
// NOTE: Anthropic rejects forced tool use when extended/adaptive thinking
|
|
231
|
-
// is enabled; this transport never sets `thinking` on the chat path, so the
|
|
232
|
-
// two never collide. Keep that invariant if `thinking` is ever added here.
|
|
233
265
|
if ((_b = body.tools) === null || _b === void 0 ? void 0 : _b.length) {
|
|
234
266
|
const toolChoice = toAnthropicToolChoice(options === null || options === void 0 ? void 0 : options.toolChoice);
|
|
235
267
|
if (toolChoice)
|
|
236
268
|
body.tool_choice = toolChoice;
|
|
237
269
|
}
|
|
238
|
-
//
|
|
239
|
-
//
|
|
240
|
-
|
|
270
|
+
// Extended thinking (Sonnet 5). Always adaptive regardless of `tool_choice` — first-party has
|
|
271
|
+
// no forced-tool-vs-thinking restriction (that's Bedrock-only) and adaptive self-regulates on
|
|
272
|
+
// mechanical turns. Older models omit it (see `anthropicThinking`).
|
|
273
|
+
const thinking = anthropicThinking(this.model);
|
|
274
|
+
if (thinking)
|
|
275
|
+
body.thinking = thinking;
|
|
276
|
+
// Normalized [0,1] temperature → Anthropic's native range, anchored so 0.5 maps to its default.
|
|
277
|
+
// (Default == max here, so the upper half is flat.) Skipped on models that reject sampling
|
|
278
|
+
// params (Opus 4.7+ / Sonnet 5), where sending `temperature` is a 400.
|
|
279
|
+
if ((options === null || options === void 0 ? void 0 : options.temperature) != null && !rejectsSamplingParams(this.model)) {
|
|
241
280
|
body.temperature = scaleTemperature(options.temperature, {
|
|
242
281
|
defaultTemp: ANTHROPIC_DEFAULT_TEMPERATURE,
|
|
243
282
|
maxTemp: ANTHROPIC_MAX_TEMPERATURE,
|
|
@@ -380,7 +419,10 @@ export class AnthropicTransport {
|
|
|
380
419
|
if (msg.role === 'system' ||
|
|
381
420
|
msg.role === 'system-event' ||
|
|
382
421
|
msg.role === 'synthetic-user' ||
|
|
383
|
-
msg.
|
|
422
|
+
msg.category === 'reasoning' ||
|
|
423
|
+
msg.category === 'narration' ||
|
|
424
|
+
msg.thinking // legacy pre-split sessions
|
|
425
|
+
)
|
|
384
426
|
continue;
|
|
385
427
|
if (msg.toolResult) {
|
|
386
428
|
pushBlock('user', {
|
|
@@ -477,13 +519,14 @@ export class AnthropicTransport {
|
|
|
477
519
|
if (response.stop_reason === 'max_tokens' && toolCalls.length > 0) {
|
|
478
520
|
throw new ResponseTruncatedError(this.model, this.maxTokens, outputTokens, toolCalls.map((tc) => tc.name));
|
|
479
521
|
}
|
|
522
|
+
// Reasoning (extended-thinking summary) and answer/narration travel in separate channels:
|
|
523
|
+
// `content` is the answer text, `reasoning` is the summary. The driver splits them into
|
|
524
|
+
// separate category-tagged messages. (Previously `thoughtParts.join('') || textParts.join('')`
|
|
525
|
+
// put reasoning in `content` and DROPPED the answer text whenever thinking was present.)
|
|
526
|
+
const reasoning = thoughtParts.join('') || undefined;
|
|
480
527
|
const base = toolCalls.length > 0
|
|
481
|
-
? {
|
|
482
|
-
|
|
483
|
-
content: thoughtParts.join('') || textParts.join(''),
|
|
484
|
-
toolCalls,
|
|
485
|
-
}
|
|
486
|
-
: { role: 'assistant', content: textParts.join('') };
|
|
528
|
+
? { role: 'assistant', content: textParts.join(''), reasoning, toolCalls }
|
|
529
|
+
: { role: 'assistant', content: textParts.join(''), reasoning };
|
|
487
530
|
if (inputTokens != null)
|
|
488
531
|
base.inputTokens = inputTokens;
|
|
489
532
|
if (outputTokens != null)
|
|
@@ -304,7 +304,10 @@ export class GeminiTransport {
|
|
|
304
304
|
if (msg.role === 'system' ||
|
|
305
305
|
msg.role === 'system-event' ||
|
|
306
306
|
msg.role === 'synthetic-user' ||
|
|
307
|
-
msg.
|
|
307
|
+
msg.category === 'reasoning' ||
|
|
308
|
+
msg.category === 'narration' ||
|
|
309
|
+
msg.thinking // legacy pre-split sessions
|
|
310
|
+
)
|
|
308
311
|
continue;
|
|
309
312
|
const role = msg.role === 'user' ? 'user' : 'model';
|
|
310
313
|
if (msg.toolResult) {
|
|
@@ -431,29 +434,23 @@ export class GeminiTransport {
|
|
|
431
434
|
}
|
|
432
435
|
toolCalls.push({ id: crypto.randomUUID(), name: repaired.name, args: repaired.args });
|
|
433
436
|
}
|
|
434
|
-
// The model's official thinking (thought-summary parts, returned because we
|
|
435
|
-
//
|
|
436
|
-
//
|
|
437
|
-
//
|
|
438
|
-
//
|
|
439
|
-
//
|
|
440
|
-
|
|
441
|
-
// deliberately not promoted to be the answer.
|
|
442
|
-
const thinking = thoughtParts.join('');
|
|
437
|
+
// The model's official thinking (thought-summary parts, returned because we set
|
|
438
|
+
// `thinkingConfig.includeThoughts`) travels in its OWN channel, distinct from the answer /
|
|
439
|
+
// tool-call narration: `content` carries the answer text, `reasoning` carries the summary. The
|
|
440
|
+
// driver splits them into separate category-tagged messages (reasoning vs narration) so each has
|
|
441
|
+
// its own visibility toggle and log category. Final answers surface only the answer text; the
|
|
442
|
+
// reasoning summary rides `reasoning` and is deliberately not promoted to be the answer.
|
|
443
|
+
const reasoning = thoughtParts.join('');
|
|
443
444
|
const narration = textParts.join('');
|
|
444
445
|
const base = toolCalls.length > 0
|
|
445
|
-
? {
|
|
446
|
-
|
|
447
|
-
content: [thinking, narration].filter(Boolean).join('\n\n'),
|
|
448
|
-
toolCalls,
|
|
449
|
-
}
|
|
450
|
-
: { role: 'assistant', content: narration };
|
|
446
|
+
? { role: 'assistant', content: narration, reasoning: reasoning || undefined, toolCalls }
|
|
447
|
+
: { role: 'assistant', content: narration, reasoning: reasoning || undefined };
|
|
451
448
|
// Blank / non-STOP finishes are the recurring failure mode (especially empty
|
|
452
449
|
// STOP on 2.5 Pro). Log the full shape so the cause is legible from the
|
|
453
450
|
// breakdown rather than inferred. MALFORMED is excluded — it has its own
|
|
454
451
|
// repair/throw path above.
|
|
455
452
|
const finishReason = firstCandidate === null || firstCandidate === void 0 ? void 0 : firstCandidate.finishReason;
|
|
456
|
-
const isBlank = toolCalls.length === 0 && !
|
|
453
|
+
const isBlank = toolCalls.length === 0 && !reasoning && !narration;
|
|
457
454
|
if (isBlank ||
|
|
458
455
|
(finishReason && finishReason !== 'STOP' && finishReason !== 'MALFORMED_FUNCTION_CALL')) {
|
|
459
456
|
this.logAbnormalResponse(response, {
|
|
@@ -1441,7 +1441,7 @@
|
|
|
1441
1441
|
},
|
|
1442
1442
|
{
|
|
1443
1443
|
"kind": "Content",
|
|
1444
|
-
"text": "'claude-opus-4-7' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001'"
|
|
1444
|
+
"text": "'claude-opus-4-7' | 'claude-sonnet-5' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001'"
|
|
1445
1445
|
},
|
|
1446
1446
|
{
|
|
1447
1447
|
"kind": "Content",
|
|
@@ -3275,6 +3275,33 @@
|
|
|
3275
3275
|
"endIndex": 2
|
|
3276
3276
|
}
|
|
3277
3277
|
},
|
|
3278
|
+
{
|
|
3279
|
+
"kind": "PropertySignature",
|
|
3280
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#ownerHostId:member",
|
|
3281
|
+
"docComment": "/**\n * Id of the assistant host elected by the driver to render (and thus run) this interaction's widget. When several views share one driver (e.g. a bubble and a docked panel), only the matching host renders the live widget so its side effect fires once; the others render a passive placeholder until it resolves. Stamped by the driver at request time from the most recently active host, with a deterministic fallback. Absent only when no host is registered (the widget then renders on every view — fail-open).\n *\n * @beta\n */\n",
|
|
3282
|
+
"excerptTokens": [
|
|
3283
|
+
{
|
|
3284
|
+
"kind": "Content",
|
|
3285
|
+
"text": "ownerHostId?: "
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
"kind": "Content",
|
|
3289
|
+
"text": "string"
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
"kind": "Content",
|
|
3293
|
+
"text": ";"
|
|
3294
|
+
}
|
|
3295
|
+
],
|
|
3296
|
+
"isReadonly": false,
|
|
3297
|
+
"isOptional": true,
|
|
3298
|
+
"releaseTag": "Beta",
|
|
3299
|
+
"name": "ownerHostId",
|
|
3300
|
+
"propertyTypeTokenRange": {
|
|
3301
|
+
"startIndex": 1,
|
|
3302
|
+
"endIndex": 2
|
|
3303
|
+
}
|
|
3304
|
+
},
|
|
3278
3305
|
{
|
|
3279
3306
|
"kind": "PropertySignature",
|
|
3280
3307
|
"canonicalReference": "@genesislcap/foundation-ai!ChatInteraction#presentation:member",
|
|
@@ -3439,6 +3466,33 @@
|
|
|
3439
3466
|
"endIndex": 3
|
|
3440
3467
|
}
|
|
3441
3468
|
},
|
|
3469
|
+
{
|
|
3470
|
+
"kind": "PropertySignature",
|
|
3471
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#category:member",
|
|
3472
|
+
"docComment": "/**\n * Display sub-category of an assistant message, decided by the driver when it splits a single model response into separate messages (see the ChatDriver `isThinkingStep` branch): - `'reasoning'` — the model's chain-of-thought summary; hidden unless `showThinkingSteps`. - `'narration'` — interstitial prose the model emitted alongside a tool call; hidden unless `showNarration`. (A standalone final assistant message has NO category and is always shown.) Both are UI-only: like `thinking` before them, they are skipped when building the provider request. The message still has `role: 'assistant'`.\n */\n",
|
|
3473
|
+
"excerptTokens": [
|
|
3474
|
+
{
|
|
3475
|
+
"kind": "Content",
|
|
3476
|
+
"text": "category?: "
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"kind": "Content",
|
|
3480
|
+
"text": "'reasoning' | 'narration'"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"kind": "Content",
|
|
3484
|
+
"text": ";"
|
|
3485
|
+
}
|
|
3486
|
+
],
|
|
3487
|
+
"isReadonly": false,
|
|
3488
|
+
"isOptional": true,
|
|
3489
|
+
"releaseTag": "Beta",
|
|
3490
|
+
"name": "category",
|
|
3491
|
+
"propertyTypeTokenRange": {
|
|
3492
|
+
"startIndex": 1,
|
|
3493
|
+
"endIndex": 2
|
|
3494
|
+
}
|
|
3495
|
+
},
|
|
3442
3496
|
{
|
|
3443
3497
|
"kind": "PropertySignature",
|
|
3444
3498
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#content:member",
|
|
@@ -3684,6 +3738,33 @@
|
|
|
3684
3738
|
"endIndex": 2
|
|
3685
3739
|
}
|
|
3686
3740
|
},
|
|
3741
|
+
{
|
|
3742
|
+
"kind": "PropertySignature",
|
|
3743
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#reasoning:member",
|
|
3744
|
+
"docComment": "/**\n * Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a response contains both a reasoning summary and answer/narration text it puts the answer in `content` and the reasoning summary here. The driver reads it, emits a separate `category: 'reasoning'` message, and clears this field — it is NOT stored on history messages.\n */\n",
|
|
3745
|
+
"excerptTokens": [
|
|
3746
|
+
{
|
|
3747
|
+
"kind": "Content",
|
|
3748
|
+
"text": "reasoning?: "
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"kind": "Content",
|
|
3752
|
+
"text": "string"
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
"kind": "Content",
|
|
3756
|
+
"text": ";"
|
|
3757
|
+
}
|
|
3758
|
+
],
|
|
3759
|
+
"isReadonly": false,
|
|
3760
|
+
"isOptional": true,
|
|
3761
|
+
"releaseTag": "Beta",
|
|
3762
|
+
"name": "reasoning",
|
|
3763
|
+
"propertyTypeTokenRange": {
|
|
3764
|
+
"startIndex": 1,
|
|
3765
|
+
"endIndex": 2
|
|
3766
|
+
}
|
|
3767
|
+
},
|
|
3687
3768
|
{
|
|
3688
3769
|
"kind": "PropertySignature",
|
|
3689
3770
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#responseMeta:member",
|
|
@@ -3743,7 +3824,7 @@
|
|
|
3743
3824
|
{
|
|
3744
3825
|
"kind": "PropertySignature",
|
|
3745
3826
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#thinking:member",
|
|
3746
|
-
"docComment": "",
|
|
3827
|
+
"docComment": "/**\n * @deprecated\n *\n * Legacy flag for \"reasoning-ish content, hidden by default\". Superseded by {@link ChatMessage.category} `=== 'reasoning'`. Still honoured on read (transport wire-skip, `messageType`, `filterVisibleMessages`) so sessions persisted before the reasoning/narration split still hide their reasoning; new messages set `category` instead.\n */\n",
|
|
3747
3828
|
"excerptTokens": [
|
|
3748
3829
|
{
|
|
3749
3830
|
"kind": "Content",
|
|
@@ -5025,7 +5106,7 @@
|
|
|
5025
5106
|
{
|
|
5026
5107
|
"kind": "Interface",
|
|
5027
5108
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig:interface",
|
|
5028
|
-
"docComment": "/**\n * UI display configuration for the chat assistant.\n *\n * For toggle flags (`showToolCalls`, `showThinkingSteps`): - `true` — default on, user can toggle off - `false` — default off, user can toggle on - `null` / `undefined` — completely disabled, no UI control shown\n *\n * @beta\n */\n",
|
|
5109
|
+
"docComment": "/**\n * UI display configuration for the chat assistant.\n *\n * For toggle flags (`showToolCalls`, `showThinkingSteps`, `showNarration`): - `true` — default on, user can toggle off - `false` — default off, user can toggle on - `null` / `undefined` — completely disabled, no UI control shown\n *\n * @beta\n */\n",
|
|
5029
5110
|
"excerptTokens": [
|
|
5030
5111
|
{
|
|
5031
5112
|
"kind": "Content",
|
|
@@ -5308,6 +5389,33 @@
|
|
|
5308
5389
|
"endIndex": 2
|
|
5309
5390
|
}
|
|
5310
5391
|
},
|
|
5392
|
+
{
|
|
5393
|
+
"kind": "PropertySignature",
|
|
5394
|
+
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showNarration:member",
|
|
5395
|
+
"docComment": "/**\n * Show the model's narration — interstitial prose it emits alongside a tool call. Separate from `showThinkingSteps` (reasoning) so hosts can reveal one without the other. Default off: narration is process chatter, not the assistant's final answer (which is always shown).\n */\n",
|
|
5396
|
+
"excerptTokens": [
|
|
5397
|
+
{
|
|
5398
|
+
"kind": "Content",
|
|
5399
|
+
"text": "showNarration?: "
|
|
5400
|
+
},
|
|
5401
|
+
{
|
|
5402
|
+
"kind": "Content",
|
|
5403
|
+
"text": "boolean | null"
|
|
5404
|
+
},
|
|
5405
|
+
{
|
|
5406
|
+
"kind": "Content",
|
|
5407
|
+
"text": ";"
|
|
5408
|
+
}
|
|
5409
|
+
],
|
|
5410
|
+
"isReadonly": false,
|
|
5411
|
+
"isOptional": true,
|
|
5412
|
+
"releaseTag": "Beta",
|
|
5413
|
+
"name": "showNarration",
|
|
5414
|
+
"propertyTypeTokenRange": {
|
|
5415
|
+
"startIndex": 1,
|
|
5416
|
+
"endIndex": 2
|
|
5417
|
+
}
|
|
5418
|
+
},
|
|
5311
5419
|
{
|
|
5312
5420
|
"kind": "PropertySignature",
|
|
5313
5421
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showSplash:member",
|
|
@@ -5338,7 +5446,7 @@
|
|
|
5338
5446
|
{
|
|
5339
5447
|
"kind": "PropertySignature",
|
|
5340
5448
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showThinkingSteps:member",
|
|
5341
|
-
"docComment": "/**\n * Show model
|
|
5449
|
+
"docComment": "/**\n * Show the model's reasoning (chain-of-thought summary) messages.\n */\n",
|
|
5342
5450
|
"excerptTokens": [
|
|
5343
5451
|
{
|
|
5344
5452
|
"kind": "Content",
|
package/dist/foundation-ai.d.ts
CHANGED
|
@@ -220,7 +220,7 @@ export declare interface AnthropicAIConfig extends AIProviderConfig {
|
|
|
220
220
|
*
|
|
221
221
|
* @beta
|
|
222
222
|
*/
|
|
223
|
-
export declare type AnthropicModelId = 'claude-opus-4-7' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001';
|
|
223
|
+
export declare type AnthropicModelId = 'claude-opus-4-7' | 'claude-sonnet-5' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001';
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Anthropic Claude AI provider. Uses {@link AnthropicTransport} to handle requests.
|
|
@@ -588,6 +588,15 @@ export declare interface ChatInteraction {
|
|
|
588
588
|
* with the session and re-renders identically from history.
|
|
589
589
|
*/
|
|
590
590
|
presentation?: InteractionPresentation;
|
|
591
|
+
/**
|
|
592
|
+
* Id of the assistant host elected by the driver to render (and thus run) this interaction's
|
|
593
|
+
* widget. When several views share one driver (e.g. a bubble and a docked panel), only the
|
|
594
|
+
* matching host renders the live widget so its side effect fires once; the others render a
|
|
595
|
+
* passive placeholder until it resolves. Stamped by the driver at request time from the most
|
|
596
|
+
* recently active host, with a deterministic fallback. Absent only when no host is registered
|
|
597
|
+
* (the widget then renders on every view — fail-open). @beta
|
|
598
|
+
*/
|
|
599
|
+
ownerHostId?: string;
|
|
591
600
|
}
|
|
592
601
|
|
|
593
602
|
/**
|
|
@@ -608,7 +617,30 @@ export declare interface ChatMessage {
|
|
|
608
617
|
toolResult?: ChatToolResult;
|
|
609
618
|
attachments?: ChatAttachment[];
|
|
610
619
|
interaction?: ChatInteraction;
|
|
620
|
+
/**
|
|
621
|
+
* @deprecated Legacy flag for "reasoning-ish content, hidden by default". Superseded by
|
|
622
|
+
* {@link ChatMessage.category} `=== 'reasoning'`. Still honoured on read (transport wire-skip,
|
|
623
|
+
* `messageType`, `filterVisibleMessages`) so sessions persisted before the reasoning/narration
|
|
624
|
+
* split still hide their reasoning; new messages set `category` instead.
|
|
625
|
+
*/
|
|
611
626
|
thinking?: boolean;
|
|
627
|
+
/**
|
|
628
|
+
* Display sub-category of an assistant message, decided by the driver when it splits a single
|
|
629
|
+
* model response into separate messages (see the ChatDriver `isThinkingStep` branch):
|
|
630
|
+
* - `'reasoning'` — the model's chain-of-thought summary; hidden unless `showThinkingSteps`.
|
|
631
|
+
* - `'narration'` — interstitial prose the model emitted alongside a tool call; hidden unless
|
|
632
|
+
* `showNarration`. (A standalone final assistant message has NO category and is always shown.)
|
|
633
|
+
* Both are UI-only: like `thinking` before them, they are skipped when building the provider
|
|
634
|
+
* request. The message still has `role: 'assistant'`.
|
|
635
|
+
*/
|
|
636
|
+
category?: 'reasoning' | 'narration';
|
|
637
|
+
/**
|
|
638
|
+
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
639
|
+
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
640
|
+
* `content` and the reasoning summary here. The driver reads it, emits a separate
|
|
641
|
+
* `category: 'reasoning'` message, and clears this field — it is NOT stored on history messages.
|
|
642
|
+
*/
|
|
643
|
+
reasoning?: string;
|
|
612
644
|
/** Name of the agent that produced this message. Set by OrchestratingDriver. */
|
|
613
645
|
agentName?: string;
|
|
614
646
|
/**
|
|
@@ -1075,7 +1107,7 @@ export declare interface ChatTransport {
|
|
|
1075
1107
|
/**
|
|
1076
1108
|
* UI display configuration for the chat assistant.
|
|
1077
1109
|
*
|
|
1078
|
-
* For toggle flags (`showToolCalls`, `showThinkingSteps`):
|
|
1110
|
+
* For toggle flags (`showToolCalls`, `showThinkingSteps`, `showNarration`):
|
|
1079
1111
|
* - `true` — default on, user can toggle off
|
|
1080
1112
|
* - `false` — default off, user can toggle on
|
|
1081
1113
|
* - `null` / `undefined` — completely disabled, no UI control shown
|
|
@@ -1085,8 +1117,14 @@ export declare interface ChatTransport {
|
|
|
1085
1117
|
export declare interface ChatUiConfig {
|
|
1086
1118
|
/** Show tool call details in the chat UI. */
|
|
1087
1119
|
showToolCalls?: boolean | null;
|
|
1088
|
-
/** Show model
|
|
1120
|
+
/** Show the model's reasoning (chain-of-thought summary) messages. */
|
|
1089
1121
|
showThinkingSteps?: boolean | null;
|
|
1122
|
+
/**
|
|
1123
|
+
* Show the model's narration — interstitial prose it emits alongside a tool call. Separate
|
|
1124
|
+
* from `showThinkingSteps` (reasoning) so hosts can reveal one without the other. Default off:
|
|
1125
|
+
* narration is process chatter, not the assistant's final answer (which is always shown).
|
|
1126
|
+
*/
|
|
1127
|
+
showNarration?: boolean | null;
|
|
1090
1128
|
/** Show a button to download the full chat history as JSON. */
|
|
1091
1129
|
allowDebugDownload?: boolean;
|
|
1092
1130
|
/** Comma-separated list of accepted file extensions for upload, e.g., ".txt,.md,.csv". If undefined or empty, file uploads are disabled. */
|
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.481.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.481.0",
|
|
56
|
+
"@genesislcap/genx": "14.481.0",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.481.0",
|
|
58
|
+
"@genesislcap/ts-builder": "14.481.0",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.481.0",
|
|
60
|
+
"@genesislcap/vite-builder": "14.481.0",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.481.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@genesislcap/foundation-logger": "14.
|
|
65
|
-
"@genesislcap/foundation-utils": "14.
|
|
64
|
+
"@genesislcap/foundation-logger": "14.481.0",
|
|
65
|
+
"@genesislcap/foundation-utils": "14.481.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": "b04758f893b431ad94aa651341b27e85d6d5bdbc"
|
|
77
77
|
}
|