Merge pull request #279 from ggozad/chore/dep-update
Update dependencies
This commit is contained in:
commit
8e67d0212e
6 changed files with 1678 additions and 1637 deletions
|
|
@ -15,7 +15,6 @@ import {
|
||||||
useContext,
|
useContext,
|
||||||
useEffect,
|
useEffect,
|
||||||
useMemo,
|
useMemo,
|
||||||
useRef,
|
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { BrainIcon, FilterIcon } from "../lib/icons";
|
import { BrainIcon, FilterIcon } from "../lib/icons";
|
||||||
|
|
@ -459,49 +458,6 @@ function ChatContentInner({
|
||||||
}
|
}
|
||||||
}, [agent, ck]);
|
}, [agent, ck]);
|
||||||
|
|
||||||
// Strip the scroll view's internal paddingBottom (inline style set by
|
|
||||||
// CopilotChatView to reserve space for its absolutely-positioned input
|
|
||||||
// container, which we've overridden to flow in a flex layout).
|
|
||||||
// Uses a ref callback so it runs when the element actually mounts.
|
|
||||||
const paddingObserver = useRef<MutationObserver | null>(null);
|
|
||||||
const scrollAreaRef = useRef<HTMLDivElement | null>(null);
|
|
||||||
const scrollAreaCallbackRef = useCallback((node: HTMLDivElement | null) => {
|
|
||||||
scrollAreaRef.current = node;
|
|
||||||
if (paddingObserver.current) {
|
|
||||||
paddingObserver.current.disconnect();
|
|
||||||
paddingObserver.current = null;
|
|
||||||
}
|
|
||||||
if (!node) return;
|
|
||||||
const strip = () => {
|
|
||||||
for (const div of node.querySelectorAll<HTMLElement>("div")) {
|
|
||||||
if (div.style.paddingBottom && div.style.paddingBottom !== "1rem") {
|
|
||||||
div.style.paddingBottom = "1rem";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
strip();
|
|
||||||
const observer = new MutationObserver(strip);
|
|
||||||
observer.observe(node, {
|
|
||||||
subtree: true,
|
|
||||||
attributes: true,
|
|
||||||
attributeFilter: ["style"],
|
|
||||||
});
|
|
||||||
paddingObserver.current = observer;
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
// Auto-scroll to bottom when messages change or agent is streaming
|
|
||||||
// biome-ignore lint/correctness/useExhaustiveDependencies: JSON.stringify tracks content changes
|
|
||||||
useEffect(() => {
|
|
||||||
const el = scrollAreaRef.current;
|
|
||||||
if (!el) return;
|
|
||||||
// Find the actual scrollable child (CopilotKit's scroll container)
|
|
||||||
const scrollable =
|
|
||||||
el.querySelector("[data-radix-scroll-area-viewport]") ??
|
|
||||||
el.querySelector("[style*='overflow']") ??
|
|
||||||
el;
|
|
||||||
scrollable.scrollTop = scrollable.scrollHeight;
|
|
||||||
}, [JSON.stringify(agent.messages), agent.isRunning]);
|
|
||||||
|
|
||||||
const sessionContext = chatState.session_context;
|
const sessionContext = chatState.session_context;
|
||||||
const documentFilter = chatState.document_filter;
|
const documentFilter = chatState.document_filter;
|
||||||
const initialContext = chatState.initial_context ?? "";
|
const initialContext = chatState.initial_context ?? "";
|
||||||
|
|
@ -565,18 +521,13 @@ function ChatContentInner({
|
||||||
messageView={MessageViewWithCitations}
|
messageView={MessageViewWithCitations}
|
||||||
messages={messages}
|
messages={messages}
|
||||||
isRunning={agent.isRunning}
|
isRunning={agent.isRunning}
|
||||||
inputProps={{
|
onSubmitMessage={onSubmitMessage}
|
||||||
onSubmitMessage,
|
onStop={onStop}
|
||||||
onStop,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{({ scrollView, feather, inputContainer }) => (
|
{({ scrollView, input }) => (
|
||||||
<div className="chat-layout">
|
<div className="chat-layout">
|
||||||
<div ref={scrollAreaCallbackRef} className="chat-scroll-area">
|
<div className="chat-scroll-area">{scrollView}</div>
|
||||||
{scrollView}
|
<div className="chat-input-area">{input}</div>
|
||||||
{feather}
|
|
||||||
</div>
|
|
||||||
<div className="chat-input-area">{inputContainer}</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</CopilotChatView>
|
</CopilotChatView>
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,15 @@
|
||||||
"format": "biome check --write app components lib"
|
"format": "biome check --write app components lib"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ag-ui/client": "^0.0.42",
|
"@ag-ui/client": "^0.0.43",
|
||||||
"@copilotkit/react-core": "^1.51.3",
|
"@copilotkit/react-core": "^1.51.4",
|
||||||
"@copilotkit/runtime": "^1.51.3",
|
"@copilotkit/runtime": "^1.51.4",
|
||||||
"next": "^16.1.1",
|
"next": "^16.1.1",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0"
|
"react-dom": "^19.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.2.6",
|
"@biomejs/biome": "2.4.2",
|
||||||
"@types/node": "^22",
|
"@types/node": "^22",
|
||||||
"@types/react": "^19",
|
"@types/react": "^19",
|
||||||
"@types/react-dom": "^19",
|
"@types/react-dom": "^19",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -12,7 +12,7 @@ dependencies = [
|
||||||
"pydantic-ai-slim[evals,logfire]>=1.46.0",
|
"pydantic-ai-slim[evals,logfire]>=1.46.0",
|
||||||
"datasets>=4.5.0",
|
"datasets>=4.5.0",
|
||||||
"huggingface_hub>=0.20.0",
|
"huggingface_hub>=0.20.0",
|
||||||
"typer>=0.19.2,<0.20.0",
|
"typer>=0.21.0,<0.22.0",
|
||||||
"python-dotenv>=1.2.1",
|
"python-dotenv>=1.2.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,23 +22,23 @@ classifiers = [
|
||||||
]
|
]
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"docling-core==2.60.1",
|
"docling-core==2.65.1",
|
||||||
"httpx>=0.28.1",
|
"httpx>=0.28.1",
|
||||||
"jsonpatch>=1.33",
|
"jsonpatch>=1.33",
|
||||||
"lancedb==0.27.0",
|
"lancedb==0.29.2",
|
||||||
"pathspec>=1.0.3",
|
"pathspec>=1.0.3",
|
||||||
"pydantic>=2.12.5",
|
"pydantic>=2.12.5",
|
||||||
"pydantic-ai-slim[openai,fastmcp,logfire,ag-ui]>=1.46.0",
|
"pydantic-ai-slim[openai,fastmcp,logfire,ag-ui]>=1.46.0",
|
||||||
"python-dotenv>=1.2.1",
|
"python-dotenv>=1.2.1",
|
||||||
"pyyaml>=6.0.3",
|
"pyyaml>=6.0.3",
|
||||||
"rich>=14.2.0",
|
"rich>=14.2.0",
|
||||||
"typer>=0.19.2,<0.20.0",
|
"typer>=0.21.0,<0.22.0",
|
||||||
"watchfiles>=1.1.1",
|
"watchfiles>=1.1.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
# Document processing
|
# Document processing
|
||||||
docling = ["docling==2.69.1", "opencv-python-headless>=4.13.0.90"]
|
docling = ["docling==2.73.1", "opencv-python-headless>=4.13.0.90"]
|
||||||
# Embedding providers
|
# Embedding providers
|
||||||
voyageai = ["pydantic-ai-slim[voyageai]"]
|
voyageai = ["pydantic-ai-slim[voyageai]"]
|
||||||
# Rerankers
|
# Rerankers
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue