@dudousxd/nestjs-agent-react 0.35.1 → 0.35.3
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/{generative-ui-D1efzu_K.d.ts → generative-ui-DySIh0up.d.ts} +3 -0
- package/dist/{generative-ui-ClYT7OgL.d.cts → generative-ui-Pz1t-Ap3.d.cts} +3 -0
- package/dist/genui-json-render.cjs +88 -45
- package/dist/genui-json-render.cjs.map +1 -1
- package/dist/genui-json-render.d.cts +1 -1
- package/dist/genui-json-render.d.ts +1 -1
- package/dist/genui-json-render.js +91 -46
- package/dist/genui-json-render.js.map +1 -1
- package/dist/genui.cjs +88 -45
- package/dist/genui.cjs.map +1 -1
- package/dist/genui.d.cts +1 -1
- package/dist/genui.d.ts +1 -1
- package/dist/genui.js +91 -46
- package/dist/genui.js.map +1 -1
- package/dist/index.cjs +172 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +251 -161
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ import * as React from 'react';
|
|
|
8
8
|
import React__default, { ReactNode, Context } from 'react';
|
|
9
9
|
import { UiCapabilities } from '@dudousxd/nestjs-agent-core/genui';
|
|
10
10
|
export { UiCapabilities } from '@dudousxd/nestjs-agent-core/genui';
|
|
11
|
-
import { g as GenuiProviderValue, T as TranscriptUiBlock, A as ApproveOptions, k as ApprovalTarget, l as TranscriptBlock, U as UsageSummary, m as TimestampInfo, C as ChatStatus, n as TranscriptFile, M as MessageUsageInfo, o as ToolCatalog, p as AnyToolUIPart } from './generative-ui-
|
|
12
|
-
export { q as ApprovalBlockOptions, B as BuildBlocksOptions, r as CoercibleQuestion, D as DescribeToolCallOptions, E as ElicitationBlockOptions, s as GroupToolActivityOptions, R as RawAnswer, t as ResolvedReading, v as ResolvedResultView, w as RetrievedPassage, S as SettleAction, x as ToolActivityGroup, y as ToolCallDescription, z as ToolCallState, F as ToolCallStatus, H as TranscriptApproval, I as TranscriptApprovalStatus, J as TranscriptElicitationBlock, K as TranscriptElicitationOutcome, L as TranscriptFilesBlock, N as TranscriptQuestion, O as TranscriptQuestionOption, P as TranscriptReasoningBlock, Q as TranscriptSettleState, V as TranscriptSource, W as TranscriptSourcesBlock, X as TranscriptTextBlock, Y as TranscriptToolBlock, Z as TranscriptToolCall, _ as buildTranscriptBlocks, $ as coerceAnswer, a0 as correctedCallIds, a1 as describeTimestamp, a2 as describeToolCall, a3 as describeUsage, a4 as extractMessageText, a5 as fillTemplate, a6 as formatRelativeTime, a7 as groupToolActivity, a8 as inferResultView, a9 as isActionCall, aa as phraseFor, ab as proposalNeedsPolling, ac as readPath, ad as reconcileProposalMessages, ae as resolveResultView, af as toolCallState, ag as toolCatalogFrom } from './generative-ui-
|
|
11
|
+
import { g as GenuiProviderValue, T as TranscriptUiBlock, A as ApproveOptions, k as ApprovalTarget, l as TranscriptBlock, U as UsageSummary, m as TimestampInfo, C as ChatStatus, n as TranscriptFile, M as MessageUsageInfo, o as ToolCatalog, p as AnyToolUIPart } from './generative-ui-Pz1t-Ap3.cjs';
|
|
12
|
+
export { q as ApprovalBlockOptions, B as BuildBlocksOptions, r as CoercibleQuestion, D as DescribeToolCallOptions, E as ElicitationBlockOptions, s as GroupToolActivityOptions, R as RawAnswer, t as ResolvedReading, v as ResolvedResultView, w as RetrievedPassage, S as SettleAction, x as ToolActivityGroup, y as ToolCallDescription, z as ToolCallState, F as ToolCallStatus, H as TranscriptApproval, I as TranscriptApprovalStatus, J as TranscriptElicitationBlock, K as TranscriptElicitationOutcome, L as TranscriptFilesBlock, N as TranscriptQuestion, O as TranscriptQuestionOption, P as TranscriptReasoningBlock, Q as TranscriptSettleState, V as TranscriptSource, W as TranscriptSourcesBlock, X as TranscriptTextBlock, Y as TranscriptToolBlock, Z as TranscriptToolCall, _ as buildTranscriptBlocks, $ as coerceAnswer, a0 as correctedCallIds, a1 as describeTimestamp, a2 as describeToolCall, a3 as describeUsage, a4 as extractMessageText, a5 as fillTemplate, a6 as formatRelativeTime, a7 as groupToolActivity, a8 as inferResultView, a9 as isActionCall, aa as phraseFor, ab as proposalNeedsPolling, ac as readPath, ad as reconcileProposalMessages, ae as resolveResultView, af as toolCallState, ag as toolCatalogFrom } from './generative-ui-Pz1t-Ap3.cjs';
|
|
13
13
|
import './types-COuArD3c.cjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -2072,6 +2072,11 @@ declare class QuotaBlockedError extends Error {
|
|
|
2072
2072
|
interface ActionProposalsState {
|
|
2073
2073
|
items: ActionProposalView[];
|
|
2074
2074
|
error: Error | null;
|
|
2075
|
+
/**
|
|
2076
|
+
* The server does not serve proposals: its `action-proposals` route answered `404`, `405` or
|
|
2077
|
+
* `501`. Nothing is read again for the rest of the session — no polling, no refetch on focus.
|
|
2078
|
+
*/
|
|
2079
|
+
unsupported: boolean;
|
|
2075
2080
|
refresh(): Promise<void>;
|
|
2076
2081
|
}
|
|
2077
2082
|
declare function useActionProposals(backend: AgentBackend, threadId: string | undefined, setMessages: (update: (current: UIMessage[]) => UIMessage[]) => void, refreshKey: string, pollMs?: number): ActionProposalsState;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import * as React from 'react';
|
|
|
8
8
|
import React__default, { ReactNode, Context } from 'react';
|
|
9
9
|
import { UiCapabilities } from '@dudousxd/nestjs-agent-core/genui';
|
|
10
10
|
export { UiCapabilities } from '@dudousxd/nestjs-agent-core/genui';
|
|
11
|
-
import { g as GenuiProviderValue, T as TranscriptUiBlock, A as ApproveOptions, k as ApprovalTarget, l as TranscriptBlock, U as UsageSummary, m as TimestampInfo, C as ChatStatus, n as TranscriptFile, M as MessageUsageInfo, o as ToolCatalog, p as AnyToolUIPart } from './generative-ui-
|
|
12
|
-
export { q as ApprovalBlockOptions, B as BuildBlocksOptions, r as CoercibleQuestion, D as DescribeToolCallOptions, E as ElicitationBlockOptions, s as GroupToolActivityOptions, R as RawAnswer, t as ResolvedReading, v as ResolvedResultView, w as RetrievedPassage, S as SettleAction, x as ToolActivityGroup, y as ToolCallDescription, z as ToolCallState, F as ToolCallStatus, H as TranscriptApproval, I as TranscriptApprovalStatus, J as TranscriptElicitationBlock, K as TranscriptElicitationOutcome, L as TranscriptFilesBlock, N as TranscriptQuestion, O as TranscriptQuestionOption, P as TranscriptReasoningBlock, Q as TranscriptSettleState, V as TranscriptSource, W as TranscriptSourcesBlock, X as TranscriptTextBlock, Y as TranscriptToolBlock, Z as TranscriptToolCall, _ as buildTranscriptBlocks, $ as coerceAnswer, a0 as correctedCallIds, a1 as describeTimestamp, a2 as describeToolCall, a3 as describeUsage, a4 as extractMessageText, a5 as fillTemplate, a6 as formatRelativeTime, a7 as groupToolActivity, a8 as inferResultView, a9 as isActionCall, aa as phraseFor, ab as proposalNeedsPolling, ac as readPath, ad as reconcileProposalMessages, ae as resolveResultView, af as toolCallState, ag as toolCatalogFrom } from './generative-ui-
|
|
11
|
+
import { g as GenuiProviderValue, T as TranscriptUiBlock, A as ApproveOptions, k as ApprovalTarget, l as TranscriptBlock, U as UsageSummary, m as TimestampInfo, C as ChatStatus, n as TranscriptFile, M as MessageUsageInfo, o as ToolCatalog, p as AnyToolUIPart } from './generative-ui-DySIh0up.js';
|
|
12
|
+
export { q as ApprovalBlockOptions, B as BuildBlocksOptions, r as CoercibleQuestion, D as DescribeToolCallOptions, E as ElicitationBlockOptions, s as GroupToolActivityOptions, R as RawAnswer, t as ResolvedReading, v as ResolvedResultView, w as RetrievedPassage, S as SettleAction, x as ToolActivityGroup, y as ToolCallDescription, z as ToolCallState, F as ToolCallStatus, H as TranscriptApproval, I as TranscriptApprovalStatus, J as TranscriptElicitationBlock, K as TranscriptElicitationOutcome, L as TranscriptFilesBlock, N as TranscriptQuestion, O as TranscriptQuestionOption, P as TranscriptReasoningBlock, Q as TranscriptSettleState, V as TranscriptSource, W as TranscriptSourcesBlock, X as TranscriptTextBlock, Y as TranscriptToolBlock, Z as TranscriptToolCall, _ as buildTranscriptBlocks, $ as coerceAnswer, a0 as correctedCallIds, a1 as describeTimestamp, a2 as describeToolCall, a3 as describeUsage, a4 as extractMessageText, a5 as fillTemplate, a6 as formatRelativeTime, a7 as groupToolActivity, a8 as inferResultView, a9 as isActionCall, aa as phraseFor, ab as proposalNeedsPolling, ac as readPath, ad as reconcileProposalMessages, ae as resolveResultView, af as toolCallState, ag as toolCatalogFrom } from './generative-ui-DySIh0up.js';
|
|
13
13
|
import './types-COuArD3c.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -2072,6 +2072,11 @@ declare class QuotaBlockedError extends Error {
|
|
|
2072
2072
|
interface ActionProposalsState {
|
|
2073
2073
|
items: ActionProposalView[];
|
|
2074
2074
|
error: Error | null;
|
|
2075
|
+
/**
|
|
2076
|
+
* The server does not serve proposals: its `action-proposals` route answered `404`, `405` or
|
|
2077
|
+
* `501`. Nothing is read again for the rest of the session — no polling, no refetch on focus.
|
|
2078
|
+
*/
|
|
2079
|
+
unsupported: boolean;
|
|
2075
2080
|
refresh(): Promise<void>;
|
|
2076
2081
|
}
|
|
2077
2082
|
declare function useActionProposals(backend: AgentBackend, threadId: string | undefined, setMessages: (update: (current: UIMessage[]) => UIMessage[]) => void, refreshKey: string, pollMs?: number): ActionProposalsState;
|