@genesislcap/foundation-ai 14.467.1 → 14.467.2-GENC-1369.2

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.
@@ -8,7 +8,7 @@ export { AI_FEATURE_FLAG, isAIFeatureEnabled } from './utils/feature-flags';
8
8
  export { ChatTemperature } from './utils/temperature';
9
9
  export { SUPPORTED_ANTHROPIC_MODEL_IDS, SUPPORTED_GEMINI_MODEL_IDS } from './types';
10
10
  export type { AIConfig, AIStatus, AIProviderType, AnthropicAIConfig, AnthropicModelId, ChromeAIConfig, ChromeAvailability, GeminiAIConfig, GeminiModelId, ServerAIConfig, } from './types';
11
- export type { AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatDriverResult, ChatInputDuringExecutionMode, ChatMessage, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, ChatSuggestionsConfig, InteractionPresentation, InteractionRequestOptions, InteractionResult, SubAgentFailureReason, SubAgentRequestOptions, } from './types/chat.types';
11
+ export type { AgentPickerMode, ChatAgentConfig, ChatAgentPickerConfig, ChatAnimationsConfig, ChatAttachment, ChatConfig, ChatDriverResult, ChatInputDuringExecutionMode, ChatMessage, ChatInteraction, ChatRequestOptions, ChatResponseMeta, ChatRole, ChatStreamChunk, ChatToolCall, ChatToolCallUnknown, ChatToolChoice, ChatToolDefinition, ChatToolHandlers, ChatToolResult, ChatUiConfig, CondensePolicy, CondenseResult, CondenseTrigger, ChatSuggestionsConfig, InteractionPresentation, InteractionRequestOptions, InteractionResult, SubAgentFailureReason, SubAgentRequestOptions, } from './types/chat.types';
12
12
  export { isChatToolCallUnknown } from './types/chat.types';
13
13
  export type { ChatTransport } from './types/chat-transport.types';
14
14
  export type { CostReportingTransport } from './types/transports.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AACpF,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,4BAA4B,EAC5B,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,GACvB,MAA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EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,4BAA4B,EAC5B,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,YAAY,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -388,6 +388,92 @@ export interface InteractionRequestOptions {
388
388
  * @beta
389
389
  */
390
390
  export type SubAgentFailureReason = 'max_iterations' | 'malformed_tool_call' | 'empty_response' | 'unknown_tool_limit' | 'timeout';
391
+ /**
392
+ * When a tool call's declared payload(s) become stale and should be condensed
393
+ * out of the to-model history. The kinds form a spectrum of widening staleness
394
+ * horizons — call, model-call, request, and agent-flow.
395
+ *
396
+ * - `superseded` — keep only the LATEST call sharing `by` in the history sent
397
+ * to the model; collapse the targeted payload of all earlier ones. The natural
398
+ * key is the resource identity (e.g. a file path), so reads and writes of the
399
+ * same path share a `by` and an earlier read collapses once a later write/read
400
+ * of the same path lands. A re-call with the same `by` re-arms automatically.
401
+ * - `age` — a tool result first reaches the model on the model-call AFTER the
402
+ * call, so `turns` is how many model-calls may see the full result before it
403
+ * collapses: `turns: 1` lets the model read it on exactly one model-call, then
404
+ * collapses it; `turns: 2` keeps it for two; and so on. Use `turns >= 1`. The
405
+ * clock is monotonic across user turns (a sub-agent invocation counts as one
406
+ * call in the parent loop). For keyless payloads (grep / source / doc dumps).
407
+ * - `turnEnd` — collapse once the user turn (`sendMessage`) that made the call
408
+ * has ended: the payload stays full for the rest of that request, then
409
+ * collapses on every later one. "Relevant only to the request that fetched it."
410
+ * This is the right choice for a non-pinned agent (one that answers and hands
411
+ * straight back to the user); reach for it whenever the payload is per-request.
412
+ * - `agentEnd` — collapse once the agent's *continuous activation* ends. An
413
+ * activation spans every turn the agent stays in control — a pinned stateful
414
+ * flow is one activation across all its turns (mid-flow `requestInteraction`
415
+ * round-trips and turn boundaries do NOT end it) — and it ends only when the
416
+ * agent hands off to a different agent or releases its pin (`releaseAgent` /
417
+ * `completeSubAgent`). The right choice for a multi-turn stateful flow whose
418
+ * payload is needed throughout but dead afterwards (where `turnEnd` would be too
419
+ * eager). NOTE: for a non-pinned agent, "the agent" is only considered to have
420
+ * ended when routing actually moves to a *different* agent — if the classifier
421
+ * re-selects the same agent on the next turn it is treated as the same
422
+ * activation, so use `turnEnd` (not `agentEnd`) when you want per-request
423
+ * collapse on a non-stateful agent.
424
+ *
425
+ * @beta
426
+ */
427
+ export type CondenseTrigger = {
428
+ kind: 'superseded';
429
+ by: string;
430
+ } | {
431
+ kind: 'age';
432
+ turns: number;
433
+ } | {
434
+ kind: 'turnEnd';
435
+ } | {
436
+ kind: 'agentEnd';
437
+ };
438
+ /**
439
+ * How a stale payload is replaced in the to-model slice.
440
+ *
441
+ * - `'pointer'` — a framework-generated, re-readable stub with a "re-call to
442
+ * restore" hint. Safe ONLY for idempotent tools (re-calling reproduces the
443
+ * content); the framework cannot detect idempotency, so the author asserts it
444
+ * by choosing `'pointer'`.
445
+ * - `'drop'` — a minimal placeholder, no breadcrumb. Use when the content is
446
+ * provably never needed again (e.g. superseded write args).
447
+ * - `{ replaceWith }` — a tool-authored summary string, computed at declaration
448
+ * time (the handler has the content then). Left verbatim — no restore hint —
449
+ * so it is the correct choice for non-idempotent tools and semantic summaries.
450
+ *
451
+ * @beta
452
+ */
453
+ export type CondenseResult = 'pointer' | 'drop' | {
454
+ replaceWith: string;
455
+ };
456
+ /**
457
+ * Declarative policy passed to `condenseWhen`. The trigger(s) (`on`) are shared
458
+ * by both payloads of the call; the args and response are replaced independently.
459
+ * Presence of `args` / `response` IS the target — at least one must be set.
460
+ *
461
+ * @beta
462
+ */
463
+ export interface CondensePolicy {
464
+ /**
465
+ * When the call's payload(s) go stale. A single trigger, or an array of
466
+ * triggers combined with OR — the FIRST one to fire collapses the payload
467
+ * (e.g. `[{ kind: 'superseded', by: path }, { kind: 'turnEnd' }]` = "collapse
468
+ * when re-read, or at the end of this request, whichever comes first"). All
469
+ * triggers are monotonic, so a collapse never reverts.
470
+ */
471
+ on: CondenseTrigger | CondenseTrigger[];
472
+ /** Condense the tool-call ARGS (on the assistant message). Omit to leave untouched. */
473
+ args?: CondenseResult;
474
+ /** Condense the tool RESULT (on the tool message). Omit to leave untouched. */
475
+ response?: CondenseResult;
476
+ }
391
477
  /**
392
478
  * Map of tool name to async handler function.
393
479
  *
@@ -449,6 +535,21 @@ export type ChatToolHandlers<TSubAgent extends {
449
535
  * guards the flow can release.
450
536
  */
451
537
  releaseAgent?: () => void;
538
+ /**
539
+ * Declare how THIS tool call's payload(s) should be condensed out of the
540
+ * history sent to the model once they go stale (see {@link CondensePolicy}).
541
+ * Applied to the model-bound history only — stored history (UI, debug
542
+ * export) is never mutated. No-op if neither `args` nor `response` is set.
543
+ *
544
+ * Opt-in and computed at call time: the handler can pass different params
545
+ * on each invocation (e.g. `by: args.path`) or skip the call entirely for
546
+ * a payload it wants to keep. Only the first call per tool invocation is
547
+ * honoured; a second call for the same tool call is ignored.
548
+ *
549
+ * `'pointer'` is valid only for idempotent tools (it promises a re-call
550
+ * restores the content); non-idempotent tools must use `replaceWith`.
551
+ */
552
+ condenseWhen: (policy: CondensePolicy) => void;
452
553
  }) => Promise<unknown>>;
453
554
  /**
454
555
  * Controls whether (and how) the model may call a tool on a given turn. Maps to
@@ -1 +1 @@
1
- {"version":3,"file":"chat.types.d.ts","sourceRoot":"","sources":["../../../src/types/chat.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAEpG;;;;GAIG;AACH,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IACnD,OAAO,EAAE,IAAI,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAElE;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AC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -4344,7 +4344,16 @@
4344
4344
  },
4345
4345
  {
4346
4346
  "kind": "Content",
4347
- "text": ";\n }>;\n completeSubAgent?: (result: unknown) => void;\n releaseAgent?: () => void;\n}) => "
4347
+ "text": ";\n }>;\n completeSubAgent?: (result: unknown) => void;\n releaseAgent?: () => void;\n condenseWhen: (policy: "
4348
+ },
4349
+ {
4350
+ "kind": "Reference",
4351
+ "text": "CondensePolicy",
4352
+ "canonicalReference": "@genesislcap/foundation-ai!CondensePolicy:interface"
4353
+ },
4354
+ {
4355
+ "kind": "Content",
4356
+ "text": ") => void;\n}) => "
4348
4357
  },
4349
4358
  {
4350
4359
  "kind": "Reference",
@@ -4378,7 +4387,7 @@
4378
4387
  ],
4379
4388
  "typeTokenRange": {
4380
4389
  "startIndex": 5,
4381
- "endIndex": 21
4390
+ "endIndex": 23
4382
4391
  }
4383
4392
  },
4384
4393
  {
@@ -5201,6 +5210,173 @@
5201
5210
  "endIndex": 2
5202
5211
  }
5203
5212
  },
5213
+ {
5214
+ "kind": "Interface",
5215
+ "canonicalReference": "@genesislcap/foundation-ai!CondensePolicy:interface",
5216
+ "docComment": "/**\n * Declarative policy passed to `condenseWhen`. The trigger(s) (`on`) are shared by both payloads of the call; the args and response are replaced independently. Presence of `args` / `response` IS the target — at least one must be set.\n *\n * @beta\n */\n",
5217
+ "excerptTokens": [
5218
+ {
5219
+ "kind": "Content",
5220
+ "text": "export interface CondensePolicy "
5221
+ }
5222
+ ],
5223
+ "fileUrlPath": "src/types/chat.types.ts",
5224
+ "releaseTag": "Beta",
5225
+ "name": "CondensePolicy",
5226
+ "preserveMemberOrder": false,
5227
+ "members": [
5228
+ {
5229
+ "kind": "PropertySignature",
5230
+ "canonicalReference": "@genesislcap/foundation-ai!CondensePolicy#args:member",
5231
+ "docComment": "/**\n * Condense the tool-call ARGS (on the assistant message). Omit to leave untouched.\n */\n",
5232
+ "excerptTokens": [
5233
+ {
5234
+ "kind": "Content",
5235
+ "text": "args?: "
5236
+ },
5237
+ {
5238
+ "kind": "Reference",
5239
+ "text": "CondenseResult",
5240
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseResult:type"
5241
+ },
5242
+ {
5243
+ "kind": "Content",
5244
+ "text": ";"
5245
+ }
5246
+ ],
5247
+ "isReadonly": false,
5248
+ "isOptional": true,
5249
+ "releaseTag": "Beta",
5250
+ "name": "args",
5251
+ "propertyTypeTokenRange": {
5252
+ "startIndex": 1,
5253
+ "endIndex": 2
5254
+ }
5255
+ },
5256
+ {
5257
+ "kind": "PropertySignature",
5258
+ "canonicalReference": "@genesislcap/foundation-ai!CondensePolicy#on:member",
5259
+ "docComment": "/**\n * When the call's payload(s) go stale. A single trigger, or an array of triggers combined with OR — the FIRST one to fire collapses the payload (e.g. `[{ kind: 'superseded', by: path }, { kind: 'turnEnd' }]` = \"collapse when re-read, or at the end of this request, whichever comes first\"). All triggers are monotonic, so a collapse never reverts.\n */\n",
5260
+ "excerptTokens": [
5261
+ {
5262
+ "kind": "Content",
5263
+ "text": "on: "
5264
+ },
5265
+ {
5266
+ "kind": "Reference",
5267
+ "text": "CondenseTrigger",
5268
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseTrigger:type"
5269
+ },
5270
+ {
5271
+ "kind": "Content",
5272
+ "text": " | "
5273
+ },
5274
+ {
5275
+ "kind": "Reference",
5276
+ "text": "CondenseTrigger",
5277
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseTrigger:type"
5278
+ },
5279
+ {
5280
+ "kind": "Content",
5281
+ "text": "[]"
5282
+ },
5283
+ {
5284
+ "kind": "Content",
5285
+ "text": ";"
5286
+ }
5287
+ ],
5288
+ "isReadonly": false,
5289
+ "isOptional": false,
5290
+ "releaseTag": "Beta",
5291
+ "name": "on",
5292
+ "propertyTypeTokenRange": {
5293
+ "startIndex": 1,
5294
+ "endIndex": 5
5295
+ }
5296
+ },
5297
+ {
5298
+ "kind": "PropertySignature",
5299
+ "canonicalReference": "@genesislcap/foundation-ai!CondensePolicy#response:member",
5300
+ "docComment": "/**\n * Condense the tool RESULT (on the tool message). Omit to leave untouched.\n */\n",
5301
+ "excerptTokens": [
5302
+ {
5303
+ "kind": "Content",
5304
+ "text": "response?: "
5305
+ },
5306
+ {
5307
+ "kind": "Reference",
5308
+ "text": "CondenseResult",
5309
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseResult:type"
5310
+ },
5311
+ {
5312
+ "kind": "Content",
5313
+ "text": ";"
5314
+ }
5315
+ ],
5316
+ "isReadonly": false,
5317
+ "isOptional": true,
5318
+ "releaseTag": "Beta",
5319
+ "name": "response",
5320
+ "propertyTypeTokenRange": {
5321
+ "startIndex": 1,
5322
+ "endIndex": 2
5323
+ }
5324
+ }
5325
+ ],
5326
+ "extendsTokenRanges": []
5327
+ },
5328
+ {
5329
+ "kind": "TypeAlias",
5330
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseResult:type",
5331
+ "docComment": "/**\n * How a stale payload is replaced in the to-model slice.\n *\n * - `'pointer'` — a framework-generated, re-readable stub with a \"re-call to restore\" hint. Safe ONLY for idempotent tools (re-calling reproduces the content); the framework cannot detect idempotency, so the author asserts it by choosing `'pointer'`. - `'drop'` — a minimal placeholder, no breadcrumb. Use when the content is provably never needed again (e.g. superseded write args). - `{ replaceWith }` — a tool-authored summary string, computed at declaration time (the handler has the content then). Left verbatim — no restore hint — so it is the correct choice for non-idempotent tools and semantic summaries.\n *\n * @beta\n */\n",
5332
+ "excerptTokens": [
5333
+ {
5334
+ "kind": "Content",
5335
+ "text": "export type CondenseResult = "
5336
+ },
5337
+ {
5338
+ "kind": "Content",
5339
+ "text": "'pointer' | 'drop' | {\n replaceWith: string;\n}"
5340
+ },
5341
+ {
5342
+ "kind": "Content",
5343
+ "text": ";"
5344
+ }
5345
+ ],
5346
+ "fileUrlPath": "src/types/chat.types.ts",
5347
+ "releaseTag": "Beta",
5348
+ "name": "CondenseResult",
5349
+ "typeTokenRange": {
5350
+ "startIndex": 1,
5351
+ "endIndex": 2
5352
+ }
5353
+ },
5354
+ {
5355
+ "kind": "TypeAlias",
5356
+ "canonicalReference": "@genesislcap/foundation-ai!CondenseTrigger:type",
5357
+ "docComment": "/**\n * When a tool call's declared payload(s) become stale and should be condensed out of the to-model history. The kinds form a spectrum of widening staleness horizons — call, model-call, request, and agent-flow.\n *\n * - `superseded` — keep only the LATEST call sharing `by` in the history sent to the model; collapse the targeted payload of all earlier ones. The natural key is the resource identity (e.g. a file path), so reads and writes of the same path share a `by` and an earlier read collapses once a later write/read of the same path lands. A re-call with the same `by` re-arms automatically. - `age` — a tool result first reaches the model on the model-call AFTER the call, so `turns` is how many model-calls may see the full result before it collapses: `turns: 1` lets the model read it on exactly one model-call, then collapses it; `turns: 2` keeps it for two; and so on. Use `turns >= 1`. The clock is monotonic across user turns (a sub-agent invocation counts as one call in the parent loop). For keyless payloads (grep / source / doc dumps). - `turnEnd` — collapse once the user turn (`sendMessage`) that made the call has ended: the payload stays full for the rest of that request, then collapses on every later one. \"Relevant only to the request that fetched it.\" This is the right choice for a non-pinned agent (one that answers and hands straight back to the user); reach for it whenever the payload is per-request. - `agentEnd` — collapse once the agent's *continuous activation* ends. An activation spans every turn the agent stays in control — a pinned stateful flow is one activation across all its turns (mid-flow `requestInteraction` round-trips and turn boundaries do NOT end it) — and it ends only when the agent hands off to a different agent or releases its pin (`releaseAgent` / `completeSubAgent`). The right choice for a multi-turn stateful flow whose payload is needed throughout but dead afterwards (where `turnEnd` would be too eager). NOTE: for a non-pinned agent, \"the agent\" is only considered to have ended when routing actually moves to a *different* agent — if the classifier re-selects the same agent on the next turn it is treated as the same activation, so use `turnEnd` (not `agentEnd`) when you want per-request collapse on a non-stateful agent.\n *\n * @beta\n */\n",
5358
+ "excerptTokens": [
5359
+ {
5360
+ "kind": "Content",
5361
+ "text": "export type CondenseTrigger = "
5362
+ },
5363
+ {
5364
+ "kind": "Content",
5365
+ "text": "{\n kind: 'superseded';\n by: string;\n} | {\n kind: 'age';\n turns: number;\n} | {\n kind: 'turnEnd';\n} | {\n kind: 'agentEnd';\n}"
5366
+ },
5367
+ {
5368
+ "kind": "Content",
5369
+ "text": ";"
5370
+ }
5371
+ ],
5372
+ "fileUrlPath": "src/types/chat.types.ts",
5373
+ "releaseTag": "Beta",
5374
+ "name": "CondenseTrigger",
5375
+ "typeTokenRange": {
5376
+ "startIndex": 1,
5377
+ "endIndex": 2
5378
+ }
5379
+ },
5204
5380
  {
5205
5381
  "kind": "Interface",
5206
5382
  "canonicalReference": "@genesislcap/foundation-ai!CostReportingTransport:interface",
@@ -874,6 +874,21 @@ export declare type ChatToolHandlers<TSubAgent extends {
874
874
  * guards the flow can release.
875
875
  */
876
876
  releaseAgent?: () => void;
877
+ /**
878
+ * Declare how THIS tool call's payload(s) should be condensed out of the
879
+ * history sent to the model once they go stale (see {@link CondensePolicy}).
880
+ * Applied to the model-bound history only — stored history (UI, debug
881
+ * export) is never mutated. No-op if neither `args` nor `response` is set.
882
+ *
883
+ * Opt-in and computed at call time: the handler can pass different params
884
+ * on each invocation (e.g. `by: args.path`) or skip the call entirely for
885
+ * a payload it wants to keep. Only the first call per tool invocation is
886
+ * honoured; a second call for the same tool call is ignored.
887
+ *
888
+ * `'pointer'` is valid only for idempotent tools (it promises a re-call
889
+ * restores the content); non-idempotent tools must use `replaceWith`.
890
+ */
891
+ condenseWhen: (policy: CondensePolicy) => void;
877
892
  }) => Promise<unknown>>;
878
893
 
879
894
  /**
@@ -1011,6 +1026,95 @@ export declare interface ChromeAIConfig extends AIProviderConfig {
1011
1026
  */
1012
1027
  export declare type ChromeAvailability = 'available' | 'downloading' | 'downloadable' | 'unavailable';
1013
1028
 
1029
+ /**
1030
+ * Declarative policy passed to `condenseWhen`. The trigger(s) (`on`) are shared
1031
+ * by both payloads of the call; the args and response are replaced independently.
1032
+ * Presence of `args` / `response` IS the target — at least one must be set.
1033
+ *
1034
+ * @beta
1035
+ */
1036
+ export declare interface CondensePolicy {
1037
+ /**
1038
+ * When the call's payload(s) go stale. A single trigger, or an array of
1039
+ * triggers combined with OR — the FIRST one to fire collapses the payload
1040
+ * (e.g. `[{ kind: 'superseded', by: path }, { kind: 'turnEnd' }]` = "collapse
1041
+ * when re-read, or at the end of this request, whichever comes first"). All
1042
+ * triggers are monotonic, so a collapse never reverts.
1043
+ */
1044
+ on: CondenseTrigger | CondenseTrigger[];
1045
+ /** Condense the tool-call ARGS (on the assistant message). Omit to leave untouched. */
1046
+ args?: CondenseResult;
1047
+ /** Condense the tool RESULT (on the tool message). Omit to leave untouched. */
1048
+ response?: CondenseResult;
1049
+ }
1050
+
1051
+ /**
1052
+ * How a stale payload is replaced in the to-model slice.
1053
+ *
1054
+ * - `'pointer'` — a framework-generated, re-readable stub with a "re-call to
1055
+ * restore" hint. Safe ONLY for idempotent tools (re-calling reproduces the
1056
+ * content); the framework cannot detect idempotency, so the author asserts it
1057
+ * by choosing `'pointer'`.
1058
+ * - `'drop'` — a minimal placeholder, no breadcrumb. Use when the content is
1059
+ * provably never needed again (e.g. superseded write args).
1060
+ * - `{ replaceWith }` — a tool-authored summary string, computed at declaration
1061
+ * time (the handler has the content then). Left verbatim — no restore hint —
1062
+ * so it is the correct choice for non-idempotent tools and semantic summaries.
1063
+ *
1064
+ * @beta
1065
+ */
1066
+ export declare type CondenseResult = 'pointer' | 'drop' | {
1067
+ replaceWith: string;
1068
+ };
1069
+
1070
+ /**
1071
+ * When a tool call's declared payload(s) become stale and should be condensed
1072
+ * out of the to-model history. The kinds form a spectrum of widening staleness
1073
+ * horizons — call, model-call, request, and agent-flow.
1074
+ *
1075
+ * - `superseded` — keep only the LATEST call sharing `by` in the history sent
1076
+ * to the model; collapse the targeted payload of all earlier ones. The natural
1077
+ * key is the resource identity (e.g. a file path), so reads and writes of the
1078
+ * same path share a `by` and an earlier read collapses once a later write/read
1079
+ * of the same path lands. A re-call with the same `by` re-arms automatically.
1080
+ * - `age` — a tool result first reaches the model on the model-call AFTER the
1081
+ * call, so `turns` is how many model-calls may see the full result before it
1082
+ * collapses: `turns: 1` lets the model read it on exactly one model-call, then
1083
+ * collapses it; `turns: 2` keeps it for two; and so on. Use `turns >= 1`. The
1084
+ * clock is monotonic across user turns (a sub-agent invocation counts as one
1085
+ * call in the parent loop). For keyless payloads (grep / source / doc dumps).
1086
+ * - `turnEnd` — collapse once the user turn (`sendMessage`) that made the call
1087
+ * has ended: the payload stays full for the rest of that request, then
1088
+ * collapses on every later one. "Relevant only to the request that fetched it."
1089
+ * This is the right choice for a non-pinned agent (one that answers and hands
1090
+ * straight back to the user); reach for it whenever the payload is per-request.
1091
+ * - `agentEnd` — collapse once the agent's *continuous activation* ends. An
1092
+ * activation spans every turn the agent stays in control — a pinned stateful
1093
+ * flow is one activation across all its turns (mid-flow `requestInteraction`
1094
+ * round-trips and turn boundaries do NOT end it) — and it ends only when the
1095
+ * agent hands off to a different agent or releases its pin (`releaseAgent` /
1096
+ * `completeSubAgent`). The right choice for a multi-turn stateful flow whose
1097
+ * payload is needed throughout but dead afterwards (where `turnEnd` would be too
1098
+ * eager). NOTE: for a non-pinned agent, "the agent" is only considered to have
1099
+ * ended when routing actually moves to a *different* agent — if the classifier
1100
+ * re-selects the same agent on the next turn it is treated as the same
1101
+ * activation, so use `turnEnd` (not `agentEnd`) when you want per-request
1102
+ * collapse on a non-stateful agent.
1103
+ *
1104
+ * @beta
1105
+ */
1106
+ export declare type CondenseTrigger = {
1107
+ kind: 'superseded';
1108
+ by: string;
1109
+ } | {
1110
+ kind: 'age';
1111
+ turns: number;
1112
+ } | {
1113
+ kind: 'turnEnd';
1114
+ } | {
1115
+ kind: 'agentEnd';
1116
+ };
1117
+
1014
1118
  /**
1015
1119
  * Optional capability implemented by transports that can report the estimated
1016
1120
  * USD cost they have incurred over their lifetime.
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.467.1",
4
+ "version": "14.467.2-GENC-1369.2",
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.467.1",
56
- "@genesislcap/genx": "14.467.1",
57
- "@genesislcap/rollup-builder": "14.467.1",
58
- "@genesislcap/ts-builder": "14.467.1",
59
- "@genesislcap/uvu-playwright-builder": "14.467.1",
60
- "@genesislcap/vite-builder": "14.467.1",
61
- "@genesislcap/webpack-builder": "14.467.1"
55
+ "@genesislcap/foundation-testing": "14.467.2-GENC-1369.2",
56
+ "@genesislcap/genx": "14.467.2-GENC-1369.2",
57
+ "@genesislcap/rollup-builder": "14.467.2-GENC-1369.2",
58
+ "@genesislcap/ts-builder": "14.467.2-GENC-1369.2",
59
+ "@genesislcap/uvu-playwright-builder": "14.467.2-GENC-1369.2",
60
+ "@genesislcap/vite-builder": "14.467.2-GENC-1369.2",
61
+ "@genesislcap/webpack-builder": "14.467.2-GENC-1369.2"
62
62
  },
63
63
  "dependencies": {
64
- "@genesislcap/foundation-logger": "14.467.1",
65
- "@genesislcap/foundation-utils": "14.467.1",
64
+ "@genesislcap/foundation-logger": "14.467.2-GENC-1369.2",
65
+ "@genesislcap/foundation-utils": "14.467.2-GENC-1369.2",
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": "2a9820e8efcc82074e74b760b5ec5e216a284d79"
76
+ "gitHead": "913df4bc73575f1eee3bc759a6493a0d821bf1b3"
77
77
  }