@genesislcap/ai-assistant 15.24.0 → 15.24.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.
- package/dist/ai-assistant.api.json +2 -2
- package/dist/ai-assistant.d.ts +22 -11
- package/dist/chat-driver.cjs +138 -120
- package/dist/chat-driver.cjs.map +4 -4
- package/dist/chat-driver.mjs +138 -120
- package/dist/chat-driver.mjs.map +4 -4
- package/dist/custom-elements.json +119 -61
- package/dist/dts/components/chat-driver/chat-driver.d.ts +22 -11
- package/dist/dts/components/chat-driver/chat-driver.d.ts.map +1 -1
- package/dist/dts/components/chat-driver/turn-failures.d.ts +96 -0
- package/dist/dts/components/chat-driver/turn-failures.d.ts.map +1 -0
- package/dist/esm/components/chat-driver/chat-driver.js +92 -142
- package/dist/esm/components/chat-driver/turn-failures.js +84 -0
- package/package.json +16 -16
- package/docs/.gitattributes +0 -2
|
@@ -1675,48 +1675,6 @@
|
|
|
1675
1675
|
"declarations": [],
|
|
1676
1676
|
"exports": []
|
|
1677
1677
|
},
|
|
1678
|
-
{
|
|
1679
|
-
"kind": "javascript-module",
|
|
1680
|
-
"path": "src/provider/ai-provider-switcher.ts",
|
|
1681
|
-
"declarations": [
|
|
1682
|
-
{
|
|
1683
|
-
"kind": "variable",
|
|
1684
|
-
"name": "AIProviderSwitcher",
|
|
1685
|
-
"description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
|
|
1686
|
-
}
|
|
1687
|
-
],
|
|
1688
|
-
"exports": [
|
|
1689
|
-
{
|
|
1690
|
-
"kind": "js",
|
|
1691
|
-
"name": "AIProviderSwitcher",
|
|
1692
|
-
"declaration": {
|
|
1693
|
-
"name": "AIProviderSwitcher",
|
|
1694
|
-
"module": "src/provider/ai-provider-switcher.ts"
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
]
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
"kind": "javascript-module",
|
|
1701
|
-
"path": "src/provider/assistant-app-settings.ts",
|
|
1702
|
-
"declarations": [
|
|
1703
|
-
{
|
|
1704
|
-
"kind": "variable",
|
|
1705
|
-
"name": "AssistantAppSettingsProvider",
|
|
1706
|
-
"description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
|
|
1707
|
-
}
|
|
1708
|
-
],
|
|
1709
|
-
"exports": [
|
|
1710
|
-
{
|
|
1711
|
-
"kind": "js",
|
|
1712
|
-
"name": "AssistantAppSettingsProvider",
|
|
1713
|
-
"declaration": {
|
|
1714
|
-
"name": "AssistantAppSettingsProvider",
|
|
1715
|
-
"module": "src/provider/assistant-app-settings.ts"
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
]
|
|
1719
|
-
},
|
|
1720
1678
|
{
|
|
1721
1679
|
"kind": "javascript-module",
|
|
1722
1680
|
"path": "src/main/attachment-controller.ts",
|
|
@@ -4918,6 +4876,48 @@
|
|
|
4918
4876
|
"declarations": [],
|
|
4919
4877
|
"exports": []
|
|
4920
4878
|
},
|
|
4879
|
+
{
|
|
4880
|
+
"kind": "javascript-module",
|
|
4881
|
+
"path": "src/provider/ai-provider-switcher.ts",
|
|
4882
|
+
"declarations": [
|
|
4883
|
+
{
|
|
4884
|
+
"kind": "variable",
|
|
4885
|
+
"name": "AIProviderSwitcher",
|
|
4886
|
+
"description": "The DI token for the (AIProviderSwitcher:interface). Resolves a noop until the app\nregisters one."
|
|
4887
|
+
}
|
|
4888
|
+
],
|
|
4889
|
+
"exports": [
|
|
4890
|
+
{
|
|
4891
|
+
"kind": "js",
|
|
4892
|
+
"name": "AIProviderSwitcher",
|
|
4893
|
+
"declaration": {
|
|
4894
|
+
"name": "AIProviderSwitcher",
|
|
4895
|
+
"module": "src/provider/ai-provider-switcher.ts"
|
|
4896
|
+
}
|
|
4897
|
+
}
|
|
4898
|
+
]
|
|
4899
|
+
},
|
|
4900
|
+
{
|
|
4901
|
+
"kind": "javascript-module",
|
|
4902
|
+
"path": "src/provider/assistant-app-settings.ts",
|
|
4903
|
+
"declarations": [
|
|
4904
|
+
{
|
|
4905
|
+
"kind": "variable",
|
|
4906
|
+
"name": "AssistantAppSettingsProvider",
|
|
4907
|
+
"description": "The DI token for the (AssistantAppSettingsProvider:interface). Resolves a noop\nuntil the host registers one."
|
|
4908
|
+
}
|
|
4909
|
+
],
|
|
4910
|
+
"exports": [
|
|
4911
|
+
{
|
|
4912
|
+
"kind": "js",
|
|
4913
|
+
"name": "AssistantAppSettingsProvider",
|
|
4914
|
+
"declaration": {
|
|
4915
|
+
"name": "AssistantAppSettingsProvider",
|
|
4916
|
+
"module": "src/provider/assistant-app-settings.ts"
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
]
|
|
4920
|
+
},
|
|
4921
4921
|
{
|
|
4922
4922
|
"kind": "javascript-module",
|
|
4923
4923
|
"path": "src/state/ai-assistant-slice.ts",
|
|
@@ -9139,6 +9139,32 @@
|
|
|
9139
9139
|
],
|
|
9140
9140
|
"description": "Build the `done` loop result, carrying the typed failure reason when the turn\nbailed (PTC-0). The discriminant stays `'done'` either way — the same value a\nclean turn returns — so consumers matching on `reason === 'done'` are unchanged;\n`failureReason` is simply present on a failure and absent on success. Omitted\n(rather than set to `undefined`) so a happy-path result stays byte-identical to\nthe historical `{ reason: 'done' }`."
|
|
9141
9141
|
},
|
|
9142
|
+
{
|
|
9143
|
+
"kind": "method",
|
|
9144
|
+
"name": "endTurnWithFailure",
|
|
9145
|
+
"privacy": "private",
|
|
9146
|
+
"return": {
|
|
9147
|
+
"type": {
|
|
9148
|
+
"text": "ChatDriverResult"
|
|
9149
|
+
}
|
|
9150
|
+
},
|
|
9151
|
+
"parameters": [
|
|
9152
|
+
{
|
|
9153
|
+
"name": "exit",
|
|
9154
|
+
"type": {
|
|
9155
|
+
"text": "TurnFailureExit"
|
|
9156
|
+
}
|
|
9157
|
+
},
|
|
9158
|
+
{
|
|
9159
|
+
"name": "overrides",
|
|
9160
|
+
"optional": true,
|
|
9161
|
+
"type": {
|
|
9162
|
+
"text": "{\n copy?: string;\n budget?: BudgetDetail;\n providerRefused?: ProviderRefusedDetail;\n }"
|
|
9163
|
+
}
|
|
9164
|
+
}
|
|
9165
|
+
],
|
|
9166
|
+
"description": "End the turn on a terminal failure: fail upward when this driver is a sub-agent, speak\nto the user when it is not, and hand the reason to the caller either way.\n\nOnly that fork lives here. Each exit keeps its own `recordTurnError` call, because the\ntelemetry payload is what legitimately differs between them — attempt counts, token\nfigures, tool names — and folding it in would mean one optional field per condition.\n\n`overrides.copy` serves the two walls whose prose is composed per occurrence:\n`budgetExhaustedBubble` names the vendor and can offer another, `providerRefusedBubble`\nprefers a host-supplied message. Every other exit reads its copy from the table.\n\nOne exit stays out: the `BudgetExhaustedError` catch. Not because its shape differs —\nits two telemetry payloads are field-for-field identical — but because its main-turn\nbranch calls `reportBudgetExhausted`, which is public and also serves\n`OrchestratingDriver`'s classification phase, where no tool loop is running. That\nmethod has to survive either way, so routing the catch through here would relocate the\nduplication rather than remove it."
|
|
9167
|
+
},
|
|
9142
9168
|
{
|
|
9143
9169
|
"kind": "method",
|
|
9144
9170
|
"name": "reportBudgetExhausted",
|
|
@@ -9174,25 +9200,6 @@
|
|
|
9174
9200
|
},
|
|
9175
9201
|
"description": "The sentence shown when the upstream provider refuses (GENC-1506).\n\nDeliberately far simpler than `budgetExhaustedBubble`: no vendor name, no figures, no\nswitch-provider advice, and no branching on `kind`. The copy is cause-free by design — a user who\ncan see their own remaining spend must not be told about a limit, and we must not imply the bill\nhas gone unpaid — so there is nothing here to compose. A host override wins verbatim."
|
|
9176
9202
|
},
|
|
9177
|
-
{
|
|
9178
|
-
"kind": "method",
|
|
9179
|
-
"name": "reportProviderRefused",
|
|
9180
|
-
"privacy": "private",
|
|
9181
|
-
"return": {
|
|
9182
|
-
"type": {
|
|
9183
|
-
"text": "ChatDriverResult"
|
|
9184
|
-
}
|
|
9185
|
-
},
|
|
9186
|
-
"parameters": [
|
|
9187
|
-
{
|
|
9188
|
-
"name": "e",
|
|
9189
|
-
"type": {
|
|
9190
|
-
"text": "ProviderRefusedError"
|
|
9191
|
-
}
|
|
9192
|
-
}
|
|
9193
|
-
],
|
|
9194
|
-
"description": "Terminal provider-refusal outcome. Mirrors `reportBudgetExhausted` so the two walls behave\nidentically from the caller's side, while keeping their diagnostics distinct.\n\n`kind` reaches the debug log and the result but never the transcript: it is what lets an operator\ntell \"top up the account\" from \"rotate the key\", and with cause-free user copy this is the only\nplace that distinction survives."
|
|
9195
|
-
},
|
|
9196
9203
|
{
|
|
9197
9204
|
"kind": "method",
|
|
9198
9205
|
"name": "failureReasonOf",
|
|
@@ -10364,6 +10371,57 @@
|
|
|
10364
10371
|
}
|
|
10365
10372
|
]
|
|
10366
10373
|
},
|
|
10374
|
+
{
|
|
10375
|
+
"kind": "javascript-module",
|
|
10376
|
+
"path": "src/components/chat-driver/turn-failures.ts",
|
|
10377
|
+
"declarations": [
|
|
10378
|
+
{
|
|
10379
|
+
"kind": "variable",
|
|
10380
|
+
"name": "TURN_FAILURE_EXITS",
|
|
10381
|
+
"type": {
|
|
10382
|
+
"text": "object"
|
|
10383
|
+
},
|
|
10384
|
+
"default": "{\n contextGuard: {\n subReason: 'context_exhausted',\n resultReason: 'context-exhausted',\n copy:\n 'I had to stop here — this conversation has filled the available context. ' +\n 'Compact it to free up room, then ask me to continue.',\n },\n contextOverflow: {\n subReason: 'context_exhausted',\n resultReason: 'context-exhausted',\n copy: DEFAULT_CONTEXT_OVERFLOW_MESSAGE,\n },\n malformedToolCall: {\n subReason: 'malformed_tool_call',\n // Not `malformed-tool-call`: the main-turn reason is named after the provider finish\n // reason (`MALFORMED_FUNCTION_CALL`) that produces it, and is part of the published\n // TurnFailureReason union, so the two names cannot be brought into line here.\n resultReason: 'malformed-function-call',\n copy: 'While working on your request, I repeatedly called my tools incorrectly. This often works on a second try — would you like me to try again? If it happens again, try breaking your request into smaller steps.',\n },\n responseTruncated: {\n subReason: 'response_truncated',\n resultReason: 'response-truncated',\n copy: 'My response was cut off because a single step reached the model output limit. This usually means one step tried to produce too much at once — try breaking your request into smaller steps.',\n },\n timeout: {\n subReason: 'timeout',\n // There is no `timeout` member of TurnFailureReason, so the main turn reports the\n // generic `exception`. A sub-agent gets the specific reason because its parent\n // branches on it to decide whether a retry is worth attempting.\n resultReason: 'exception',\n copy: 'The request timed out. You can ask me to try again, or break this into a smaller step.',\n },\n unknownToolLimit: {\n subReason: 'unknown_tool_limit',\n resultReason: 'unknown-tool-limit',\n copy: \"I'm sorry, I repeatedly tried to use tools that aren't available to me, so I couldn't complete that. If a 'Download agent log' option appears in the Settings (cog) menu, you can download the log and share it with whoever set up this assistant to help fix the issue.\",\n },\n maxIterations: {\n subReason: 'max_iterations',\n resultReason: 'max-iterations',\n copy: \"I've reached my limit for this response. You can ask me to continue and I'll pick up where I left off.\",\n },\n refusal: {\n subReason: 'refusal',\n resultReason: 'refusal',\n copy: 'This request was declined. Try rephrasing it, or breaking it into smaller steps.',\n },\n emptyResponse: {\n subReason: 'empty_response',\n resultReason: 'empty-response',\n copy: 'While working on your request, I repeatedly generated a blank response. This often works on a second try — would you like me to try again? If it happens again, try breaking your request into smaller steps.',\n },\n providerRefused: {\n subReason: 'provider_refused',\n resultReason: 'provider-refused',\n // Overridden per wall by `ChatDriver.providerRefusedBubble`, which prefers a\n // host-supplied message; this is the fallback that method returns.\n copy: DEFAULT_PROVIDER_REFUSED_MESSAGE,\n },\n budgetExhausted: {\n subReason: 'budget_exhausted',\n resultReason: 'budget-exhausted',\n // Overridden per wall by `ChatDriver.budgetExhaustedBubble`, which upgrades this with\n // \"switch to another AI\" when a second vendor is reachable.\n copy: DEFAULT_BUDGET_EXHAUSTED_MESSAGE,\n },\n // `satisfies`, not an annotation: an annotation would widen `resultReason` to\n // `TurnFailureReason` and cost the literal types that let `turn-failures.test.ts` pin the\n // two deliberate divergences at compile time instead of at runtime.\n}",
|
|
10385
|
+
"description": "The terminal outcomes of a tool loop.\n\n`contextGuard` and `contextOverflow` share a `subReason` because one failure is reached\ntwo ways the user experiences differently: the guard stops at the edge of the window with\nthe transcript intact, so its copy can point at compaction, while an overflow means the\nprovider has already rejected the request.\n\nThree entries take their copy from `@genesislcap/foundation-ai`, which owns the default\nmessage for every failure it also exports an error class for. The rest is for conditions\nthis driver detects itself, which have no upstream home."
|
|
10386
|
+
},
|
|
10387
|
+
{
|
|
10388
|
+
"kind": "variable",
|
|
10389
|
+
"name": "satisfies",
|
|
10390
|
+
"description": "The terminal outcomes of a tool loop.\n\n`contextGuard` and `contextOverflow` share a `subReason` because one failure is reached\ntwo ways the user experiences differently: the guard stops at the edge of the window with\nthe transcript intact, so its copy can point at compaction, while an overflow means the\nprovider has already rejected the request.\n\nThree entries take their copy from `@genesislcap/foundation-ai`, which owns the default\nmessage for every failure it also exports an error class for. The rest is for conditions\nthis driver detects itself, which have no upstream home."
|
|
10391
|
+
},
|
|
10392
|
+
{
|
|
10393
|
+
"kind": "variable",
|
|
10394
|
+
"name": "Record",
|
|
10395
|
+
"description": "The terminal outcomes of a tool loop.\n\n`contextGuard` and `contextOverflow` share a `subReason` because one failure is reached\ntwo ways the user experiences differently: the guard stops at the edge of the window with\nthe transcript intact, so its copy can point at compaction, while an overflow means the\nprovider has already rejected the request.\n\nThree entries take their copy from `@genesislcap/foundation-ai`, which owns the default\nmessage for every failure it also exports an error class for. The rest is for conditions\nthis driver detects itself, which have no upstream home."
|
|
10396
|
+
}
|
|
10397
|
+
],
|
|
10398
|
+
"exports": [
|
|
10399
|
+
{
|
|
10400
|
+
"kind": "js",
|
|
10401
|
+
"name": "TURN_FAILURE_EXITS",
|
|
10402
|
+
"declaration": {
|
|
10403
|
+
"name": "TURN_FAILURE_EXITS",
|
|
10404
|
+
"module": "src/components/chat-driver/turn-failures.ts"
|
|
10405
|
+
}
|
|
10406
|
+
},
|
|
10407
|
+
{
|
|
10408
|
+
"kind": "js",
|
|
10409
|
+
"name": "satisfies",
|
|
10410
|
+
"declaration": {
|
|
10411
|
+
"name": "satisfies",
|
|
10412
|
+
"module": "src/components/chat-driver/turn-failures.ts"
|
|
10413
|
+
}
|
|
10414
|
+
},
|
|
10415
|
+
{
|
|
10416
|
+
"kind": "js",
|
|
10417
|
+
"name": "Record",
|
|
10418
|
+
"declaration": {
|
|
10419
|
+
"name": "Record",
|
|
10420
|
+
"module": "src/components/chat-driver/turn-failures.ts"
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
]
|
|
10424
|
+
},
|
|
10367
10425
|
{
|
|
10368
10426
|
"kind": "javascript-module",
|
|
10369
10427
|
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts",
|
|
@@ -196,7 +196,7 @@ export interface ChatDriverConfig {
|
|
|
196
196
|
* Transcript copy appended when the AI-spend budget wall is hit (GENC-1464),
|
|
197
197
|
* used VERBATIM — set it only to own the copy entirely (white-labelling).
|
|
198
198
|
* When unset, the driver composes the bubble per wall: the neutral
|
|
199
|
-
* `
|
|
199
|
+
* `TURN_FAILURE_EXITS.budgetExhausted.copy`, upgraded with "switch to another AI
|
|
200
200
|
* provider" advice only when the 402's `otherVendorAvailable` positively says
|
|
201
201
|
* another metered vendor still has headroom — the same rule the blocked
|
|
202
202
|
* banner applies, so the two surfaces can no longer contradict each other.
|
|
@@ -215,7 +215,7 @@ export interface ChatDriverConfig {
|
|
|
215
215
|
budgetExhaustedMessage?: string;
|
|
216
216
|
/**
|
|
217
217
|
* Overrides the transcript sentence shown when the upstream PROVIDER refuses the account
|
|
218
|
-
* (GENC-1506) — see `
|
|
218
|
+
* (GENC-1506) — see `TURN_FAILURE_EXITS.providerRefused.copy`.
|
|
219
219
|
*
|
|
220
220
|
* Separate from `budgetExhaustedMessage` because the two conditions are separate: ours is a spend
|
|
221
221
|
* cap a host administrator can raise, this is the vendor declining to serve us at all. A host that
|
|
@@ -678,6 +678,26 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
678
678
|
* the historical `{ reason: 'done' }`.
|
|
679
679
|
*/
|
|
680
680
|
private turnDone;
|
|
681
|
+
/**
|
|
682
|
+
* End the turn on a terminal failure: fail upward when this driver is a sub-agent, speak
|
|
683
|
+
* to the user when it is not, and hand the reason to the caller either way.
|
|
684
|
+
*
|
|
685
|
+
* Only that fork lives here. Each exit keeps its own `recordTurnError` call, because the
|
|
686
|
+
* telemetry payload is what legitimately differs between them — attempt counts, token
|
|
687
|
+
* figures, tool names — and folding it in would mean one optional field per condition.
|
|
688
|
+
*
|
|
689
|
+
* `overrides.copy` serves the two walls whose prose is composed per occurrence:
|
|
690
|
+
* `budgetExhaustedBubble` names the vendor and can offer another, `providerRefusedBubble`
|
|
691
|
+
* prefers a host-supplied message. Every other exit reads its copy from the table.
|
|
692
|
+
*
|
|
693
|
+
* One exit stays out: the `BudgetExhaustedError` catch. Not because its shape differs —
|
|
694
|
+
* its two telemetry payloads are field-for-field identical — but because its main-turn
|
|
695
|
+
* branch calls `reportBudgetExhausted`, which is public and also serves
|
|
696
|
+
* `OrchestratingDriver`'s classification phase, where no tool loop is running. That
|
|
697
|
+
* method has to survive either way, so routing the catch through here would relocate the
|
|
698
|
+
* duplication rather than remove it.
|
|
699
|
+
*/
|
|
700
|
+
private endTurnWithFailure;
|
|
681
701
|
/**
|
|
682
702
|
* Terminal budget outcome for a wall hit **outside** the tool loop — today,
|
|
683
703
|
* `OrchestratingDriver`'s classification phase, which calls the provider
|
|
@@ -715,15 +735,6 @@ export declare class ChatDriver extends EventTarget implements AiDriver {
|
|
|
715
735
|
* has gone unpaid — so there is nothing here to compose. A host override wins verbatim.
|
|
716
736
|
*/
|
|
717
737
|
private providerRefusedBubble;
|
|
718
|
-
/**
|
|
719
|
-
* Terminal provider-refusal outcome. Mirrors `reportBudgetExhausted` so the two walls behave
|
|
720
|
-
* identically from the caller's side, while keeping their diagnostics distinct.
|
|
721
|
-
*
|
|
722
|
-
* `kind` reaches the debug log and the result but never the transcript: it is what lets an operator
|
|
723
|
-
* tell "top up the account" from "rotate the key", and with cause-free user copy this is the only
|
|
724
|
-
* place that distinction survives.
|
|
725
|
-
*/
|
|
726
|
-
private reportProviderRefused;
|
|
727
738
|
/** The typed failure reason on a loop result, or `undefined` for a clean turn / handoff. */
|
|
728
739
|
private static failureReasonOf;
|
|
729
740
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAGhB,WAAW,EAIX,cAAc,EAKd,yBAAyB,EAEzB,qBAAqB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,
|
|
1
|
+
{"version":3,"file":"chat-driver.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/chat-driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,gBAAgB,EAGhB,WAAW,EAIX,cAAc,EAKd,yBAAyB,EAEzB,qBAAqB,EAGtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,EAOrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EAKX,iBAAiB,EAKjB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAM1E,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,QAAQ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c;IAMtB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA+BxB,uFAAuF;IACvF,OAAO,CAAC,QAAQ;IAsChB,OAAO,CAAC,aAAa;IAQrB,8EAA8E;IAC9E,OAAO,CAAC,SAAS;IAWjB,mFAAmF;IACnF,OAAO,CAAC,2BAA2B;YAkCrB,WAAW;IA6lCzB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,eAAe;CAoBxB"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type SubAgentFailureReason, type TurnFailureReason } from '@genesislcap/foundation-ai';
|
|
2
|
+
/**
|
|
3
|
+
* One terminal outcome of a tool loop.
|
|
4
|
+
*
|
|
5
|
+
* A failing turn speaks to three audiences at once — a parent driver if this one is a
|
|
6
|
+
* sub-agent, the user if it is not, and always the caller — and each wants the failure in
|
|
7
|
+
* its own vocabulary. Holding the three together is the point: the two reason vocabularies
|
|
8
|
+
* are the same words in different cases *except* where noted on the entries below, and that
|
|
9
|
+
* is not a difference a reader can infer from either one alone.
|
|
10
|
+
*/
|
|
11
|
+
export interface TurnFailureExit {
|
|
12
|
+
/** Typed failure handed to the parent when this driver is a sub-agent. */
|
|
13
|
+
readonly subReason: SubAgentFailureReason;
|
|
14
|
+
/** Reason carried on the `ChatDriverResult`, for the caller and the diagnostics log. */
|
|
15
|
+
readonly resultReason: TurnFailureReason;
|
|
16
|
+
/**
|
|
17
|
+
* Prose shown to the user, on the main turn only — a sub-agent never speaks, it fails
|
|
18
|
+
* upward.
|
|
19
|
+
*
|
|
20
|
+
* Read straight by `ChatDriver.endTurnWithFailure` for the nine exits with nothing to
|
|
21
|
+
* compose. For `providerRefused` and `budgetExhausted` it is instead the base the
|
|
22
|
+
* per-wall composers start from — `ChatDriver.providerRefusedBubble` and
|
|
23
|
+
* `budgetExhaustedBubble` read it here, so the string still has exactly one home.
|
|
24
|
+
*/
|
|
25
|
+
readonly copy: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The terminal outcomes of a tool loop.
|
|
29
|
+
*
|
|
30
|
+
* `contextGuard` and `contextOverflow` share a `subReason` because one failure is reached
|
|
31
|
+
* two ways the user experiences differently: the guard stops at the edge of the window with
|
|
32
|
+
* the transcript intact, so its copy can point at compaction, while an overflow means the
|
|
33
|
+
* provider has already rejected the request.
|
|
34
|
+
*
|
|
35
|
+
* Three entries take their copy from `@genesislcap/foundation-ai`, which owns the default
|
|
36
|
+
* message for every failure it also exports an error class for. The rest is for conditions
|
|
37
|
+
* this driver detects itself, which have no upstream home.
|
|
38
|
+
*/
|
|
39
|
+
export declare const TURN_FAILURE_EXITS: {
|
|
40
|
+
contextGuard: {
|
|
41
|
+
subReason: "context_exhausted";
|
|
42
|
+
resultReason: "context-exhausted";
|
|
43
|
+
copy: string;
|
|
44
|
+
};
|
|
45
|
+
contextOverflow: {
|
|
46
|
+
subReason: "context_exhausted";
|
|
47
|
+
resultReason: "context-exhausted";
|
|
48
|
+
copy: string;
|
|
49
|
+
};
|
|
50
|
+
malformedToolCall: {
|
|
51
|
+
subReason: "malformed_tool_call";
|
|
52
|
+
resultReason: "malformed-function-call";
|
|
53
|
+
copy: string;
|
|
54
|
+
};
|
|
55
|
+
responseTruncated: {
|
|
56
|
+
subReason: "response_truncated";
|
|
57
|
+
resultReason: "response-truncated";
|
|
58
|
+
copy: string;
|
|
59
|
+
};
|
|
60
|
+
timeout: {
|
|
61
|
+
subReason: "timeout";
|
|
62
|
+
resultReason: "exception";
|
|
63
|
+
copy: string;
|
|
64
|
+
};
|
|
65
|
+
unknownToolLimit: {
|
|
66
|
+
subReason: "unknown_tool_limit";
|
|
67
|
+
resultReason: "unknown-tool-limit";
|
|
68
|
+
copy: string;
|
|
69
|
+
};
|
|
70
|
+
maxIterations: {
|
|
71
|
+
subReason: "max_iterations";
|
|
72
|
+
resultReason: "max-iterations";
|
|
73
|
+
copy: string;
|
|
74
|
+
};
|
|
75
|
+
refusal: {
|
|
76
|
+
subReason: "refusal";
|
|
77
|
+
resultReason: "refusal";
|
|
78
|
+
copy: string;
|
|
79
|
+
};
|
|
80
|
+
emptyResponse: {
|
|
81
|
+
subReason: "empty_response";
|
|
82
|
+
resultReason: "empty-response";
|
|
83
|
+
copy: string;
|
|
84
|
+
};
|
|
85
|
+
providerRefused: {
|
|
86
|
+
subReason: "provider_refused";
|
|
87
|
+
resultReason: "provider-refused";
|
|
88
|
+
copy: string;
|
|
89
|
+
};
|
|
90
|
+
budgetExhausted: {
|
|
91
|
+
subReason: "budget_exhausted";
|
|
92
|
+
resultReason: "budget-exhausted";
|
|
93
|
+
copy: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=turn-failures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn-failures.d.ts","sourceRoot":"","sources":["../../../../src/components/chat-driver/turn-failures.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;IAC1C,wFAAwF;IACxF,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC;;;;;;;;OAQG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEY,CAAC"}
|