Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions plugins/ai-assistant/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/ai-assistant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
]
},
"devDependencies": {
"@kinvolk/headlamp-plugin": "^0.13.1"
"@kinvolk/headlamp-plugin": "^0.14.0"
},
"dependencies": {
"@langchain/anthropic": "^1.3.18",
Expand Down
4 changes: 2 additions & 2 deletions plugins/ai-assistant/src/hooks/useClusterWarnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* This replaces the non-existent Event.useWarningList method
*/

import Event from '@kinvolk/headlamp-plugin/lib/K8s/event';
import Event, { useEventWarningList } from '@kinvolk/headlamp-plugin/lib/K8s/event';
import { useMemo } from 'react';

export interface EventsPerCluster {
Expand All @@ -15,7 +15,7 @@ export interface EventsPerCluster {

export function useClusterWarnings(clusterNames: string[]): EventsPerCluster {
// Get events for all clusters
const warningsPerCluster = Event.useWarningList(clusterNames);
const warningsPerCluster = useEventWarningList(clusterNames);

return useMemo(() => {
const result: EventsPerCluster = {};
Expand Down
13 changes: 0 additions & 13 deletions plugins/ai-assistant/src/textstream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ import AgentThinkingSteps from './components/agent/AgentThinkingSteps';
import ContentRenderer from './ContentRenderer';
import EditorDialog from './editordialog';

declare module '@mui/material/styles' {
interface Palette {
sidebar: {
selectedBackground: string;
};
}
interface PaletteOptions {
sidebar: {
selectedBackground: string;
};
}
}

const TextStreamContainer = React.memo(function TextStreamContainer({
history,
isLoading,
Expand Down
Loading
Loading