@genesislcap/foundation-ai 14.476.0-GENC-1410.3 → 14.476.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 +2 -31
- 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 +15 -52
- package/dist/esm/transports/gemini-transport.js +17 -14
- package/dist/esm/types/config.types.js +0 -1
- package/dist/foundation-ai.api.json +4 -85
- package/dist/foundation-ai.d.ts +3 -32
- 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;AAiF7B,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IAC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eAAe;CAexB"}
|
|
@@ -192,30 +192,7 @@ export interface ChatMessage {
|
|
|
192
192
|
toolResult?: ChatToolResult;
|
|
193
193
|
attachments?: ChatAttachment[];
|
|
194
194
|
interaction?: ChatInteraction;
|
|
195
|
-
/**
|
|
196
|
-
* @deprecated Legacy flag for "reasoning-ish content, hidden by default". Superseded by
|
|
197
|
-
* {@link ChatMessage.category} `=== 'reasoning'`. Still honoured on read (transport wire-skip,
|
|
198
|
-
* `messageType`, `filterVisibleMessages`) so sessions persisted before the reasoning/narration
|
|
199
|
-
* split still hide their reasoning; new messages set `category` instead.
|
|
200
|
-
*/
|
|
201
195
|
thinking?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Display sub-category of an assistant message, decided by the driver when it splits a single
|
|
204
|
-
* model response into separate messages (see the ChatDriver `isThinkingStep` branch):
|
|
205
|
-
* - `'reasoning'` — the model's chain-of-thought summary; hidden unless `showThinkingSteps`.
|
|
206
|
-
* - `'narration'` — interstitial prose the model emitted alongside a tool call; hidden unless
|
|
207
|
-
* `showNarration`. (A standalone final assistant message has NO category and is always shown.)
|
|
208
|
-
* Both are UI-only: like `thinking` before them, they are skipped when building the provider
|
|
209
|
-
* request. The message still has `role: 'assistant'`.
|
|
210
|
-
*/
|
|
211
|
-
category?: 'reasoning' | 'narration';
|
|
212
|
-
/**
|
|
213
|
-
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
214
|
-
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
215
|
-
* `content` and the reasoning summary here. The driver reads it, emits a separate
|
|
216
|
-
* `category: 'reasoning'` message, and clears this field — it is NOT stored on history messages.
|
|
217
|
-
*/
|
|
218
|
-
reasoning?: string;
|
|
219
196
|
/** Name of the agent that produced this message. Set by OrchestratingDriver. */
|
|
220
197
|
agentName?: string;
|
|
221
198
|
/**
|
|
@@ -787,7 +764,7 @@ export type ModelTagAppearance = 'neutral' | 'primary' | 'secondary' | 'tertiary
|
|
|
787
764
|
/**
|
|
788
765
|
* UI display configuration for the chat assistant.
|
|
789
766
|
*
|
|
790
|
-
* For toggle flags (`showToolCalls`, `showThinkingSteps
|
|
767
|
+
* For toggle flags (`showToolCalls`, `showThinkingSteps`):
|
|
791
768
|
* - `true` — default on, user can toggle off
|
|
792
769
|
* - `false` — default off, user can toggle on
|
|
793
770
|
* - `null` / `undefined` — completely disabled, no UI control shown
|
|
@@ -797,14 +774,8 @@ export type ModelTagAppearance = 'neutral' | 'primary' | 'secondary' | 'tertiary
|
|
|
797
774
|
export interface ChatUiConfig {
|
|
798
775
|
/** Show tool call details in the chat UI. */
|
|
799
776
|
showToolCalls?: boolean | null;
|
|
800
|
-
/** Show
|
|
777
|
+
/** Show model thinking/reasoning steps. */
|
|
801
778
|
showThinkingSteps?: boolean | null;
|
|
802
|
-
/**
|
|
803
|
-
* Show the model's narration — interstitial prose it emits alongside a tool call. Separate
|
|
804
|
-
* from `showThinkingSteps` (reasoning) so hosts can reveal one without the other. Default off:
|
|
805
|
-
* narration is process chatter, not the assistant's final answer (which is always shown).
|
|
806
|
-
*/
|
|
807
|
-
showNarration?: boolean | null;
|
|
808
779
|
/** Show a button to download the full chat history as JSON. */
|
|
809
780
|
allowDebugDownload?: boolean;
|
|
810
781
|
/** 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,C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,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,iFAAiF;IACjF,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,gEAAgE;IAChE,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IACE,gCAAgC;IAChC,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"}
|
|
@@ -17,7 +17,7 @@ export declare const SUPPORTED_GEMINI_MODEL_IDS: readonly GeminiModelId[];
|
|
|
17
17
|
*
|
|
18
18
|
* @beta
|
|
19
19
|
*/
|
|
20
|
-
export type AnthropicModelId = 'claude-opus-4-7' | 'claude-sonnet-
|
|
20
|
+
export type AnthropicModelId = 'claude-opus-4-7' | '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,
|
|
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,EAI3D,CAAC;AAEX;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAErE;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,QAAQ,EAAE,oBAAoB,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,YAAY,EAAE,QAAQ,CAAC;IACvB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,YAAY,EAAE,WAAW,CAAC;IAC1B,mHAAmH;IACnH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;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,7 +30,6 @@ function toAnthropicToolChoice(choice) {
|
|
|
30
30
|
*/
|
|
31
31
|
const ANTHROPIC_CONTEXT_LIMITS = {
|
|
32
32
|
'claude-opus-4-7': 1000000,
|
|
33
|
-
'claude-sonnet-5': 1000000,
|
|
34
33
|
'claude-sonnet-4-6': 1000000,
|
|
35
34
|
'claude-haiku-4-5-20251001': 200000,
|
|
36
35
|
};
|
|
@@ -52,34 +51,12 @@ function estimatedAnthropicRatesUsdPerMillion(model) {
|
|
|
52
51
|
if (model === 'claude-haiku-4-5-20251001') {
|
|
53
52
|
return { promptPerMillion: 1, candidatePerMillion: 5 };
|
|
54
53
|
}
|
|
55
|
-
|
|
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') {
|
|
54
|
+
if (model === 'claude-sonnet-4-6') {
|
|
58
55
|
return { promptPerMillion: 3, candidatePerMillion: 15 };
|
|
59
56
|
}
|
|
60
57
|
// Opus 4.7
|
|
61
58
|
return { promptPerMillion: 5, candidatePerMillion: 25 };
|
|
62
59
|
}
|
|
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. Only Sonnet 5 runs adaptive thinking here (older models
|
|
72
|
-
* keep thinking off by omitting the field). `display: 'summarized'` so the reasoning summary is
|
|
73
|
-
* always returned (its cost is billed regardless; the host decides visibility). Disabled when the
|
|
74
|
-
* request forces a tool call — the structured-output extractor and sub-agent completion tool don't
|
|
75
|
-
* benefit from reasoning, and it sidesteps any forced-tool + thinking interplay. Returns undefined
|
|
76
|
-
* to omit the field (older models, which then run without thinking).
|
|
77
|
-
*/
|
|
78
|
-
function anthropicThinking(model, forcedToolCall) {
|
|
79
|
-
if (model !== 'claude-sonnet-5')
|
|
80
|
-
return undefined;
|
|
81
|
-
return forcedToolCall ? { type: 'disabled' } : { type: 'adaptive', display: 'summarized' };
|
|
82
|
-
}
|
|
83
60
|
/**
|
|
84
61
|
* Prompt-cache pricing multipliers, applied to the model's base input rate
|
|
85
62
|
* (`promptPerMillion`) — https://docs.claude.com/en/docs/build-with-claude/prompt-caching
|
|
@@ -217,10 +194,6 @@ export class AnthropicTransport {
|
|
|
217
194
|
body.tools = tools;
|
|
218
195
|
body.tool_choice = { type: 'tool', name: STRUCTURED_OUTPUT_TOOL_NAME };
|
|
219
196
|
}
|
|
220
|
-
// Sonnet 5 runs adaptive thinking by default; disable it for structured/one-shot prompts — the
|
|
221
|
-
// reasoning would be billed but discarded (only text / the forced tool_use block is read back).
|
|
222
|
-
if (this.model === 'claude-sonnet-5')
|
|
223
|
-
body.thinking = { type: 'disabled' };
|
|
224
197
|
const response = yield this.post(body);
|
|
225
198
|
if (responseSchema) {
|
|
226
199
|
const toolUse = ((_a = response.content) !== null && _a !== void 0 ? _a : []).find((b) => b.type === 'tool_use' && b.name === STRUCTURED_OUTPUT_TOOL_NAME);
|
|
@@ -235,7 +208,7 @@ export class AnthropicTransport {
|
|
|
235
208
|
// ── ChatTransport (multi-turn chat) ────────────────────────────────────
|
|
236
209
|
sendChatMessage(history, userMessage, options) {
|
|
237
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
-
var _a, _b
|
|
211
|
+
var _a, _b;
|
|
239
212
|
const messages = this.toAnthropicMessages(history, userMessage, options === null || options === void 0 ? void 0 : options.attachments);
|
|
240
213
|
const body = {
|
|
241
214
|
model: this.model,
|
|
@@ -254,23 +227,17 @@ export class AnthropicTransport {
|
|
|
254
227
|
// Map the requested tool-call mode to Anthropic's tool_choice — only
|
|
255
228
|
// meaningful when tools exist. `'required'`/`{ tool }` force a tool call so
|
|
256
229
|
// 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.
|
|
257
233
|
if ((_b = body.tools) === null || _b === void 0 ? void 0 : _b.length) {
|
|
258
234
|
const toolChoice = toAnthropicToolChoice(options === null || options === void 0 ? void 0 : options.toolChoice);
|
|
259
235
|
if (toolChoice)
|
|
260
236
|
body.tool_choice = toolChoice;
|
|
261
237
|
}
|
|
262
|
-
//
|
|
263
|
-
//
|
|
264
|
-
|
|
265
|
-
// structured-output extractor and sub-agent completion tool — don't benefit from reasoning.
|
|
266
|
-
const forcedToolCall = ((_c = body.tool_choice) === null || _c === void 0 ? void 0 : _c.type) === 'any' || ((_d = body.tool_choice) === null || _d === void 0 ? void 0 : _d.type) === 'tool';
|
|
267
|
-
const thinking = anthropicThinking(this.model, forcedToolCall);
|
|
268
|
-
if (thinking)
|
|
269
|
-
body.thinking = thinking;
|
|
270
|
-
// Normalized [0,1] temperature → Anthropic's native range, anchored so 0.5 maps to its default.
|
|
271
|
-
// (Default == max here, so the upper half is flat.) Skipped on models that reject sampling
|
|
272
|
-
// params (Opus 4.7+ / Sonnet 5), where sending `temperature` is a 400.
|
|
273
|
-
if ((options === null || options === void 0 ? void 0 : options.temperature) != null && !rejectsSamplingParams(this.model)) {
|
|
238
|
+
// Normalized [0,1] temperature → Anthropic's native range, anchored so 0.5
|
|
239
|
+
// maps to its default. (Default == max here, so the upper half is flat.)
|
|
240
|
+
if ((options === null || options === void 0 ? void 0 : options.temperature) != null) {
|
|
274
241
|
body.temperature = scaleTemperature(options.temperature, {
|
|
275
242
|
defaultTemp: ANTHROPIC_DEFAULT_TEMPERATURE,
|
|
276
243
|
maxTemp: ANTHROPIC_MAX_TEMPERATURE,
|
|
@@ -413,10 +380,7 @@ export class AnthropicTransport {
|
|
|
413
380
|
if (msg.role === 'system' ||
|
|
414
381
|
msg.role === 'system-event' ||
|
|
415
382
|
msg.role === 'synthetic-user' ||
|
|
416
|
-
msg.
|
|
417
|
-
msg.category === 'narration' ||
|
|
418
|
-
msg.thinking // legacy pre-split sessions
|
|
419
|
-
)
|
|
383
|
+
msg.thinking)
|
|
420
384
|
continue;
|
|
421
385
|
if (msg.toolResult) {
|
|
422
386
|
pushBlock('user', {
|
|
@@ -513,14 +477,13 @@ export class AnthropicTransport {
|
|
|
513
477
|
if (response.stop_reason === 'max_tokens' && toolCalls.length > 0) {
|
|
514
478
|
throw new ResponseTruncatedError(this.model, this.maxTokens, outputTokens, toolCalls.map((tc) => tc.name));
|
|
515
479
|
}
|
|
516
|
-
// Reasoning (extended-thinking summary) and answer/narration travel in separate channels:
|
|
517
|
-
// `content` is the answer text, `reasoning` is the summary. The driver splits them into
|
|
518
|
-
// separate category-tagged messages. (Previously `thoughtParts.join('') || textParts.join('')`
|
|
519
|
-
// put reasoning in `content` and DROPPED the answer text whenever thinking was present.)
|
|
520
|
-
const reasoning = thoughtParts.join('') || undefined;
|
|
521
480
|
const base = toolCalls.length > 0
|
|
522
|
-
? {
|
|
523
|
-
|
|
481
|
+
? {
|
|
482
|
+
role: 'assistant',
|
|
483
|
+
content: thoughtParts.join('') || textParts.join(''),
|
|
484
|
+
toolCalls,
|
|
485
|
+
}
|
|
486
|
+
: { role: 'assistant', content: textParts.join('') };
|
|
524
487
|
if (inputTokens != null)
|
|
525
488
|
base.inputTokens = inputTokens;
|
|
526
489
|
if (outputTokens != null)
|
|
@@ -304,10 +304,7 @@ export class GeminiTransport {
|
|
|
304
304
|
if (msg.role === 'system' ||
|
|
305
305
|
msg.role === 'system-event' ||
|
|
306
306
|
msg.role === 'synthetic-user' ||
|
|
307
|
-
msg.
|
|
308
|
-
msg.category === 'narration' ||
|
|
309
|
-
msg.thinking // legacy pre-split sessions
|
|
310
|
-
)
|
|
307
|
+
msg.thinking)
|
|
311
308
|
continue;
|
|
312
309
|
const role = msg.role === 'user' ? 'user' : 'model';
|
|
313
310
|
if (msg.toolResult) {
|
|
@@ -434,23 +431,29 @@ export class GeminiTransport {
|
|
|
434
431
|
}
|
|
435
432
|
toolCalls.push({ id: crypto.randomUUID(), name: repaired.name, args: repaired.args });
|
|
436
433
|
}
|
|
437
|
-
// The model's official thinking (thought-summary parts, returned because we
|
|
438
|
-
// `thinkingConfig.includeThoughts`)
|
|
439
|
-
// tool-call narration:
|
|
440
|
-
//
|
|
441
|
-
//
|
|
442
|
-
//
|
|
443
|
-
|
|
434
|
+
// The model's official thinking (thought-summary parts, returned because we
|
|
435
|
+
// set `thinkingConfig.includeThoughts`) is surfaced through the SAME channel
|
|
436
|
+
// as its tool-call narration: both go in `content`, which the driver tags as
|
|
437
|
+
// a toggleable "thinking" block. We combine them so neither is dropped.
|
|
438
|
+
// NOTE: for now real thinking and narration share one block; if the real
|
|
439
|
+
// thinking proves too verbose we may want to split it into its own channel.
|
|
440
|
+
// Final answers surface only the answer text — thought summaries are
|
|
441
|
+
// deliberately not promoted to be the answer.
|
|
442
|
+
const thinking = thoughtParts.join('');
|
|
444
443
|
const narration = textParts.join('');
|
|
445
444
|
const base = toolCalls.length > 0
|
|
446
|
-
? {
|
|
447
|
-
|
|
445
|
+
? {
|
|
446
|
+
role: 'assistant',
|
|
447
|
+
content: [thinking, narration].filter(Boolean).join('\n\n'),
|
|
448
|
+
toolCalls,
|
|
449
|
+
}
|
|
450
|
+
: { role: 'assistant', content: narration };
|
|
448
451
|
// Blank / non-STOP finishes are the recurring failure mode (especially empty
|
|
449
452
|
// STOP on 2.5 Pro). Log the full shape so the cause is legible from the
|
|
450
453
|
// breakdown rather than inferred. MALFORMED is excluded — it has its own
|
|
451
454
|
// repair/throw path above.
|
|
452
455
|
const finishReason = firstCandidate === null || firstCandidate === void 0 ? void 0 : firstCandidate.finishReason;
|
|
453
|
-
const isBlank = toolCalls.length === 0 && !
|
|
456
|
+
const isBlank = toolCalls.length === 0 && !thinking && !narration;
|
|
454
457
|
if (isBlank ||
|
|
455
458
|
(finishReason && finishReason !== 'STOP' && finishReason !== 'MALFORMED_FUNCTION_CALL')) {
|
|
456
459
|
this.logAbnormalResponse(response, {
|
|
@@ -1441,7 +1441,7 @@
|
|
|
1441
1441
|
},
|
|
1442
1442
|
{
|
|
1443
1443
|
"kind": "Content",
|
|
1444
|
-
"text": "'claude-opus-4-7' | 'claude-sonnet-
|
|
1444
|
+
"text": "'claude-opus-4-7' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001'"
|
|
1445
1445
|
},
|
|
1446
1446
|
{
|
|
1447
1447
|
"kind": "Content",
|
|
@@ -3439,33 +3439,6 @@
|
|
|
3439
3439
|
"endIndex": 3
|
|
3440
3440
|
}
|
|
3441
3441
|
},
|
|
3442
|
-
{
|
|
3443
|
-
"kind": "PropertySignature",
|
|
3444
|
-
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#category:member",
|
|
3445
|
-
"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",
|
|
3446
|
-
"excerptTokens": [
|
|
3447
|
-
{
|
|
3448
|
-
"kind": "Content",
|
|
3449
|
-
"text": "category?: "
|
|
3450
|
-
},
|
|
3451
|
-
{
|
|
3452
|
-
"kind": "Content",
|
|
3453
|
-
"text": "'reasoning' | 'narration'"
|
|
3454
|
-
},
|
|
3455
|
-
{
|
|
3456
|
-
"kind": "Content",
|
|
3457
|
-
"text": ";"
|
|
3458
|
-
}
|
|
3459
|
-
],
|
|
3460
|
-
"isReadonly": false,
|
|
3461
|
-
"isOptional": true,
|
|
3462
|
-
"releaseTag": "Beta",
|
|
3463
|
-
"name": "category",
|
|
3464
|
-
"propertyTypeTokenRange": {
|
|
3465
|
-
"startIndex": 1,
|
|
3466
|
-
"endIndex": 2
|
|
3467
|
-
}
|
|
3468
|
-
},
|
|
3469
3442
|
{
|
|
3470
3443
|
"kind": "PropertySignature",
|
|
3471
3444
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#content:member",
|
|
@@ -3711,33 +3684,6 @@
|
|
|
3711
3684
|
"endIndex": 2
|
|
3712
3685
|
}
|
|
3713
3686
|
},
|
|
3714
|
-
{
|
|
3715
|
-
"kind": "PropertySignature",
|
|
3716
|
-
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#reasoning:member",
|
|
3717
|
-
"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",
|
|
3718
|
-
"excerptTokens": [
|
|
3719
|
-
{
|
|
3720
|
-
"kind": "Content",
|
|
3721
|
-
"text": "reasoning?: "
|
|
3722
|
-
},
|
|
3723
|
-
{
|
|
3724
|
-
"kind": "Content",
|
|
3725
|
-
"text": "string"
|
|
3726
|
-
},
|
|
3727
|
-
{
|
|
3728
|
-
"kind": "Content",
|
|
3729
|
-
"text": ";"
|
|
3730
|
-
}
|
|
3731
|
-
],
|
|
3732
|
-
"isReadonly": false,
|
|
3733
|
-
"isOptional": true,
|
|
3734
|
-
"releaseTag": "Beta",
|
|
3735
|
-
"name": "reasoning",
|
|
3736
|
-
"propertyTypeTokenRange": {
|
|
3737
|
-
"startIndex": 1,
|
|
3738
|
-
"endIndex": 2
|
|
3739
|
-
}
|
|
3740
|
-
},
|
|
3741
3687
|
{
|
|
3742
3688
|
"kind": "PropertySignature",
|
|
3743
3689
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#responseMeta:member",
|
|
@@ -3797,7 +3743,7 @@
|
|
|
3797
3743
|
{
|
|
3798
3744
|
"kind": "PropertySignature",
|
|
3799
3745
|
"canonicalReference": "@genesislcap/foundation-ai!ChatMessage#thinking:member",
|
|
3800
|
-
"docComment": "
|
|
3746
|
+
"docComment": "",
|
|
3801
3747
|
"excerptTokens": [
|
|
3802
3748
|
{
|
|
3803
3749
|
"kind": "Content",
|
|
@@ -5079,7 +5025,7 @@
|
|
|
5079
5025
|
{
|
|
5080
5026
|
"kind": "Interface",
|
|
5081
5027
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig:interface",
|
|
5082
|
-
"docComment": "/**\n * UI display configuration for the chat assistant.\n *\n * For toggle flags (`showToolCalls`, `showThinkingSteps
|
|
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",
|
|
5083
5029
|
"excerptTokens": [
|
|
5084
5030
|
{
|
|
5085
5031
|
"kind": "Content",
|
|
@@ -5362,33 +5308,6 @@
|
|
|
5362
5308
|
"endIndex": 2
|
|
5363
5309
|
}
|
|
5364
5310
|
},
|
|
5365
|
-
{
|
|
5366
|
-
"kind": "PropertySignature",
|
|
5367
|
-
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showNarration:member",
|
|
5368
|
-
"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",
|
|
5369
|
-
"excerptTokens": [
|
|
5370
|
-
{
|
|
5371
|
-
"kind": "Content",
|
|
5372
|
-
"text": "showNarration?: "
|
|
5373
|
-
},
|
|
5374
|
-
{
|
|
5375
|
-
"kind": "Content",
|
|
5376
|
-
"text": "boolean | null"
|
|
5377
|
-
},
|
|
5378
|
-
{
|
|
5379
|
-
"kind": "Content",
|
|
5380
|
-
"text": ";"
|
|
5381
|
-
}
|
|
5382
|
-
],
|
|
5383
|
-
"isReadonly": false,
|
|
5384
|
-
"isOptional": true,
|
|
5385
|
-
"releaseTag": "Beta",
|
|
5386
|
-
"name": "showNarration",
|
|
5387
|
-
"propertyTypeTokenRange": {
|
|
5388
|
-
"startIndex": 1,
|
|
5389
|
-
"endIndex": 2
|
|
5390
|
-
}
|
|
5391
|
-
},
|
|
5392
5311
|
{
|
|
5393
5312
|
"kind": "PropertySignature",
|
|
5394
5313
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showSplash:member",
|
|
@@ -5419,7 +5338,7 @@
|
|
|
5419
5338
|
{
|
|
5420
5339
|
"kind": "PropertySignature",
|
|
5421
5340
|
"canonicalReference": "@genesislcap/foundation-ai!ChatUiConfig#showThinkingSteps:member",
|
|
5422
|
-
"docComment": "/**\n * Show
|
|
5341
|
+
"docComment": "/**\n * Show model thinking/reasoning steps.\n */\n",
|
|
5423
5342
|
"excerptTokens": [
|
|
5424
5343
|
{
|
|
5425
5344
|
"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-
|
|
223
|
+
export declare type AnthropicModelId = 'claude-opus-4-7' | '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.
|
|
@@ -608,30 +608,7 @@ export declare interface ChatMessage {
|
|
|
608
608
|
toolResult?: ChatToolResult;
|
|
609
609
|
attachments?: ChatAttachment[];
|
|
610
610
|
interaction?: ChatInteraction;
|
|
611
|
-
/**
|
|
612
|
-
* @deprecated Legacy flag for "reasoning-ish content, hidden by default". Superseded by
|
|
613
|
-
* {@link ChatMessage.category} `=== 'reasoning'`. Still honoured on read (transport wire-skip,
|
|
614
|
-
* `messageType`, `filterVisibleMessages`) so sessions persisted before the reasoning/narration
|
|
615
|
-
* split still hide their reasoning; new messages set `category` instead.
|
|
616
|
-
*/
|
|
617
611
|
thinking?: boolean;
|
|
618
|
-
/**
|
|
619
|
-
* Display sub-category of an assistant message, decided by the driver when it splits a single
|
|
620
|
-
* model response into separate messages (see the ChatDriver `isThinkingStep` branch):
|
|
621
|
-
* - `'reasoning'` — the model's chain-of-thought summary; hidden unless `showThinkingSteps`.
|
|
622
|
-
* - `'narration'` — interstitial prose the model emitted alongside a tool call; hidden unless
|
|
623
|
-
* `showNarration`. (A standalone final assistant message has NO category and is always shown.)
|
|
624
|
-
* Both are UI-only: like `thinking` before them, they are skipped when building the provider
|
|
625
|
-
* request. The message still has `role: 'assistant'`.
|
|
626
|
-
*/
|
|
627
|
-
category?: 'reasoning' | 'narration';
|
|
628
|
-
/**
|
|
629
|
-
* Transport→driver carrier ONLY. A transport returns a single {@link ChatMessage}, so when a
|
|
630
|
-
* response contains both a reasoning summary and answer/narration text it puts the answer in
|
|
631
|
-
* `content` and the reasoning summary here. The driver reads it, emits a separate
|
|
632
|
-
* `category: 'reasoning'` message, and clears this field — it is NOT stored on history messages.
|
|
633
|
-
*/
|
|
634
|
-
reasoning?: string;
|
|
635
612
|
/** Name of the agent that produced this message. Set by OrchestratingDriver. */
|
|
636
613
|
agentName?: string;
|
|
637
614
|
/**
|
|
@@ -1098,7 +1075,7 @@ export declare interface ChatTransport {
|
|
|
1098
1075
|
/**
|
|
1099
1076
|
* UI display configuration for the chat assistant.
|
|
1100
1077
|
*
|
|
1101
|
-
* For toggle flags (`showToolCalls`, `showThinkingSteps
|
|
1078
|
+
* For toggle flags (`showToolCalls`, `showThinkingSteps`):
|
|
1102
1079
|
* - `true` — default on, user can toggle off
|
|
1103
1080
|
* - `false` — default off, user can toggle on
|
|
1104
1081
|
* - `null` / `undefined` — completely disabled, no UI control shown
|
|
@@ -1108,14 +1085,8 @@ export declare interface ChatTransport {
|
|
|
1108
1085
|
export declare interface ChatUiConfig {
|
|
1109
1086
|
/** Show tool call details in the chat UI. */
|
|
1110
1087
|
showToolCalls?: boolean | null;
|
|
1111
|
-
/** Show
|
|
1088
|
+
/** Show model thinking/reasoning steps. */
|
|
1112
1089
|
showThinkingSteps?: boolean | null;
|
|
1113
|
-
/**
|
|
1114
|
-
* Show the model's narration — interstitial prose it emits alongside a tool call. Separate
|
|
1115
|
-
* from `showThinkingSteps` (reasoning) so hosts can reveal one without the other. Default off:
|
|
1116
|
-
* narration is process chatter, not the assistant's final answer (which is always shown).
|
|
1117
|
-
*/
|
|
1118
|
-
showNarration?: boolean | null;
|
|
1119
1090
|
/** Show a button to download the full chat history as JSON. */
|
|
1120
1091
|
allowDebugDownload?: boolean;
|
|
1121
1092
|
/** 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.476.0
|
|
4
|
+
"version": "14.476.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.476.0
|
|
56
|
-
"@genesislcap/genx": "14.476.0
|
|
57
|
-
"@genesislcap/rollup-builder": "14.476.0
|
|
58
|
-
"@genesislcap/ts-builder": "14.476.0
|
|
59
|
-
"@genesislcap/uvu-playwright-builder": "14.476.0
|
|
60
|
-
"@genesislcap/vite-builder": "14.476.0
|
|
61
|
-
"@genesislcap/webpack-builder": "14.476.0
|
|
55
|
+
"@genesislcap/foundation-testing": "14.476.0",
|
|
56
|
+
"@genesislcap/genx": "14.476.0",
|
|
57
|
+
"@genesislcap/rollup-builder": "14.476.0",
|
|
58
|
+
"@genesislcap/ts-builder": "14.476.0",
|
|
59
|
+
"@genesislcap/uvu-playwright-builder": "14.476.0",
|
|
60
|
+
"@genesislcap/vite-builder": "14.476.0",
|
|
61
|
+
"@genesislcap/webpack-builder": "14.476.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@genesislcap/foundation-logger": "14.476.0
|
|
65
|
-
"@genesislcap/foundation-utils": "14.476.0
|
|
64
|
+
"@genesislcap/foundation-logger": "14.476.0",
|
|
65
|
+
"@genesislcap/foundation-utils": "14.476.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": "0103e4203276998db0d28a1e26545fd0b229a5d6"
|
|
77
77
|
}
|