@dudousxd/nestjs-agent-react 0.6.0 → 0.6.1
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/README.md +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/markdown.d.cts +2 -3
- package/dist/markdown.d.ts +2 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -278,7 +278,7 @@ const sources = useMemo(
|
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
Each item carries its provenance twice: as a `hint` the rendered row right-aligns
|
|
281
|
-
(`tenant:
|
|
281
|
+
(`tenant:berlin · overrides global`), and raw on `data` as `{ scope, shadows? }` for a host that
|
|
282
282
|
wants to draw it differently. `shadows` is present only on a clash, so "there is no org default" and
|
|
283
283
|
"there is one and yours wins" stay distinguishable. The list arrives ordered most-specific-scope
|
|
284
284
|
first, then alphabetically — that order IS the precedence, and it is passed through untouched. The
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import * as ai from 'ai';
|
|
|
2
2
|
import { ChatTransport, UIMessage, UIMessageChunk, ToolUIPart, DynamicToolUIPart } from 'ai';
|
|
3
3
|
import * as _dudousxd_nestjs_agent_core from '@dudousxd/nestjs-agent-core';
|
|
4
4
|
import { StoredMessage, ThreadSummary, SkillCatalogEntry, ThreadDetail, MessageAttachment, QuotaView } from '@dudousxd/nestjs-agent-core';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import React from 'react';
|
|
7
6
|
|
|
8
7
|
/** Identity surfaced by the backend's `meta` SSE frame / response headers. */
|
|
@@ -288,7 +287,7 @@ interface ChatInputProps {
|
|
|
288
287
|
* cancel next to send. No design-system or icon-library deps —
|
|
289
288
|
* style it entirely through the `*ClassName` props.
|
|
290
289
|
*/
|
|
291
|
-
declare function ChatInput({ onSubmit, disabled, placeholder, rows, enableSpeech, speechLang, sendLabel, onStop, isStreaming, stopLabel, className, textareaClassName, sendButtonClassName, micButtonClassName, stopButtonClassName, renderMic, }: ChatInputProps):
|
|
290
|
+
declare function ChatInput({ onSubmit, disabled, placeholder, rows, enableSpeech, speechLang, sendLabel, onStop, isStreaming, stopLabel, className, textareaClassName, sendButtonClassName, micButtonClassName, stopButtonClassName, renderMic, }: ChatInputProps): React.JSX.Element;
|
|
292
291
|
|
|
293
292
|
/** A tool UI part on a `UIMessage` — a static `tool-*` part or the `dynamic-tool` part. */
|
|
294
293
|
type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
@@ -792,9 +791,9 @@ interface MessageItemViewProps extends MessageRenderSlots {
|
|
|
792
791
|
* All of the logic lives in `useTranscriptItem`; this is one rendering of it. An app that wants
|
|
793
792
|
* different markup drives that hook and writes its own.
|
|
794
793
|
*/
|
|
795
|
-
declare function MessageItem({ message, isStreaming, editable, onEditSubmit, regeneratable, onRegenerate, onFork, usage, createdAt, ...slots }: MessageItemProps):
|
|
794
|
+
declare function MessageItem({ message, isStreaming, editable, onEditSubmit, regeneratable, onRegenerate, onFork, usage, createdAt, ...slots }: MessageItemProps): React.JSX.Element;
|
|
796
795
|
/** The default markup for one modelled message — what `MessageItem` renders once it has an item. */
|
|
797
|
-
declare function MessageItemView({ item, ...slots }: MessageItemViewProps):
|
|
796
|
+
declare function MessageItemView({ item, ...slots }: MessageItemViewProps): React.JSX.Element;
|
|
798
797
|
|
|
799
798
|
interface MessageListClassNames {
|
|
800
799
|
root?: string;
|
|
@@ -852,7 +851,7 @@ interface MessageListProps {
|
|
|
852
851
|
* Every decision here comes from `useChatTranscript`; the file below it is markup. A host that
|
|
853
852
|
* wants a different layout drives that hook directly and never imports this component.
|
|
854
853
|
*/
|
|
855
|
-
declare function MessageList({ messages, status, renderToolPart, renderToolGroup, renderText, renderReasoning, renderFiles, reasoningLabel, getMeta, onFork, editable, onEditSubmit, regeneratable, onRegenerate, getUsage, getCreatedAt, emptyState, typingIndicator, followUps, onFollowUpClick, error, onRetry, classNames, }: MessageListProps):
|
|
854
|
+
declare function MessageList({ messages, status, renderToolPart, renderToolGroup, renderText, renderReasoning, renderFiles, reasoningLabel, getMeta, onFork, editable, onEditSubmit, regeneratable, onRegenerate, getUsage, getCreatedAt, emptyState, typingIndicator, followUps, onFollowUpClick, error, onRetry, classNames, }: MessageListProps): React.JSX.Element;
|
|
856
855
|
|
|
857
856
|
/**
|
|
858
857
|
* Languages the dictation mic offers. The Web Speech API expects a
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as ai from 'ai';
|
|
|
2
2
|
import { ChatTransport, UIMessage, UIMessageChunk, ToolUIPart, DynamicToolUIPart } from 'ai';
|
|
3
3
|
import * as _dudousxd_nestjs_agent_core from '@dudousxd/nestjs-agent-core';
|
|
4
4
|
import { StoredMessage, ThreadSummary, SkillCatalogEntry, ThreadDetail, MessageAttachment, QuotaView } from '@dudousxd/nestjs-agent-core';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import React from 'react';
|
|
7
6
|
|
|
8
7
|
/** Identity surfaced by the backend's `meta` SSE frame / response headers. */
|
|
@@ -288,7 +287,7 @@ interface ChatInputProps {
|
|
|
288
287
|
* cancel next to send. No design-system or icon-library deps —
|
|
289
288
|
* style it entirely through the `*ClassName` props.
|
|
290
289
|
*/
|
|
291
|
-
declare function ChatInput({ onSubmit, disabled, placeholder, rows, enableSpeech, speechLang, sendLabel, onStop, isStreaming, stopLabel, className, textareaClassName, sendButtonClassName, micButtonClassName, stopButtonClassName, renderMic, }: ChatInputProps):
|
|
290
|
+
declare function ChatInput({ onSubmit, disabled, placeholder, rows, enableSpeech, speechLang, sendLabel, onStop, isStreaming, stopLabel, className, textareaClassName, sendButtonClassName, micButtonClassName, stopButtonClassName, renderMic, }: ChatInputProps): React.JSX.Element;
|
|
292
291
|
|
|
293
292
|
/** A tool UI part on a `UIMessage` — a static `tool-*` part or the `dynamic-tool` part. */
|
|
294
293
|
type AnyToolUIPart = ToolUIPart | DynamicToolUIPart;
|
|
@@ -792,9 +791,9 @@ interface MessageItemViewProps extends MessageRenderSlots {
|
|
|
792
791
|
* All of the logic lives in `useTranscriptItem`; this is one rendering of it. An app that wants
|
|
793
792
|
* different markup drives that hook and writes its own.
|
|
794
793
|
*/
|
|
795
|
-
declare function MessageItem({ message, isStreaming, editable, onEditSubmit, regeneratable, onRegenerate, onFork, usage, createdAt, ...slots }: MessageItemProps):
|
|
794
|
+
declare function MessageItem({ message, isStreaming, editable, onEditSubmit, regeneratable, onRegenerate, onFork, usage, createdAt, ...slots }: MessageItemProps): React.JSX.Element;
|
|
796
795
|
/** The default markup for one modelled message — what `MessageItem` renders once it has an item. */
|
|
797
|
-
declare function MessageItemView({ item, ...slots }: MessageItemViewProps):
|
|
796
|
+
declare function MessageItemView({ item, ...slots }: MessageItemViewProps): React.JSX.Element;
|
|
798
797
|
|
|
799
798
|
interface MessageListClassNames {
|
|
800
799
|
root?: string;
|
|
@@ -852,7 +851,7 @@ interface MessageListProps {
|
|
|
852
851
|
* Every decision here comes from `useChatTranscript`; the file below it is markup. A host that
|
|
853
852
|
* wants a different layout drives that hook directly and never imports this component.
|
|
854
853
|
*/
|
|
855
|
-
declare function MessageList({ messages, status, renderToolPart, renderToolGroup, renderText, renderReasoning, renderFiles, reasoningLabel, getMeta, onFork, editable, onEditSubmit, regeneratable, onRegenerate, getUsage, getCreatedAt, emptyState, typingIndicator, followUps, onFollowUpClick, error, onRetry, classNames, }: MessageListProps):
|
|
854
|
+
declare function MessageList({ messages, status, renderToolPart, renderToolGroup, renderText, renderReasoning, renderFiles, reasoningLabel, getMeta, onFork, editable, onEditSubmit, regeneratable, onRegenerate, getUsage, getCreatedAt, emptyState, typingIndicator, followUps, onFollowUpClick, error, onRetry, classNames, }: MessageListProps): React.JSX.Element;
|
|
856
855
|
|
|
857
856
|
/**
|
|
858
857
|
* Languages the dictation mic offers. The Web Speech API expects a
|
package/dist/markdown.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
3
2
|
import { Streamdown } from 'streamdown';
|
|
4
3
|
|
|
5
4
|
type StreamdownProps = ComponentProps<typeof Streamdown>;
|
|
@@ -34,6 +33,6 @@ interface AgentMarkdownProps {
|
|
|
34
33
|
* Pass it to a `MessageItem`/`MessageList` `renderText` slot:
|
|
35
34
|
* `renderText={(text, { isStreaming }) => <AgentMarkdown isStreaming={isStreaming}>{text}</AgentMarkdown>}`
|
|
36
35
|
*/
|
|
37
|
-
declare function AgentMarkdown({ children, isStreaming, remarkPlugins, components, allowedTags, literalTagContent, }: AgentMarkdownProps):
|
|
36
|
+
declare function AgentMarkdown({ children, isStreaming, remarkPlugins, components, allowedTags, literalTagContent, }: AgentMarkdownProps): React.JSX.Element;
|
|
38
37
|
|
|
39
38
|
export { AgentMarkdown, type AgentMarkdownProps };
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
3
2
|
import { Streamdown } from 'streamdown';
|
|
4
3
|
|
|
5
4
|
type StreamdownProps = ComponentProps<typeof Streamdown>;
|
|
@@ -34,6 +33,6 @@ interface AgentMarkdownProps {
|
|
|
34
33
|
* Pass it to a `MessageItem`/`MessageList` `renderText` slot:
|
|
35
34
|
* `renderText={(text, { isStreaming }) => <AgentMarkdown isStreaming={isStreaming}>{text}</AgentMarkdown>}`
|
|
36
35
|
*/
|
|
37
|
-
declare function AgentMarkdown({ children, isStreaming, remarkPlugins, components, allowedTags, literalTagContent, }: AgentMarkdownProps):
|
|
36
|
+
declare function AgentMarkdown({ children, isStreaming, remarkPlugins, components, allowedTags, literalTagContent, }: AgentMarkdownProps): React.JSX.Element;
|
|
38
37
|
|
|
39
38
|
export { AgentMarkdown, type AgentMarkdownProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-agent-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@dudousxd/nestjs-agent-core": "0.
|
|
47
|
+
"@dudousxd/nestjs-agent-core": "0.14.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@ai-sdk/react": "^4.0.0",
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"@streamdown/mermaid": "1.0.2",
|
|
109
109
|
"@testing-library/dom": "10.4.0",
|
|
110
110
|
"@testing-library/react": "16.3.0",
|
|
111
|
-
"@types/react": "19.2.
|
|
111
|
+
"@types/react": "19.2.18",
|
|
112
112
|
"ai": "7.0.16",
|
|
113
113
|
"jsdom": "26.1.0",
|
|
114
114
|
"katex": "0.16.45",
|
|
115
115
|
"prism-react-renderer": "2.4.1",
|
|
116
|
-
"react": "19.2.
|
|
117
|
-
"react-dom": "19.2.
|
|
116
|
+
"react": "19.2.8",
|
|
117
|
+
"react-dom": "19.2.8",
|
|
118
118
|
"react-markdown": "10.1.0",
|
|
119
119
|
"rehype-katex": "7.0.1",
|
|
120
120
|
"rehype-sanitize": "6.0.0",
|