hydro-ai-helper 2.3.0 → 2.4.0
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 -0
- package/dist/handlers/adminConfigHandler.js +30 -0
- package/dist/handlers/adminConfigHandler.js.map +1 -1
- package/dist/handlers/batchSummaryHandler.js +15 -8
- package/dist/handlers/batchSummaryHandler.js.map +1 -1
- package/dist/handlers/studentHandler.js +1 -1
- package/dist/handlers/studentHandler.js.map +1 -1
- package/dist/handlers/teachingSummaryHandler.js +38 -9
- package/dist/handlers/teachingSummaryHandler.js.map +1 -1
- package/dist/models/aiConfig.js +15 -2
- package/dist/models/aiConfig.js.map +1 -1
- package/dist/models/studentSummary.js +13 -0
- package/dist/models/studentSummary.js.map +1 -1
- package/dist/models/teachingSummary.js +2 -0
- package/dist/models/teachingSummary.js.map +1 -1
- package/dist/services/analyzers/errorClusterAnalyzer.js +1 -0
- package/dist/services/analyzers/errorClusterAnalyzer.js.map +1 -1
- package/dist/services/analyzers/findingConsolidator.js +172 -0
- package/dist/services/analyzers/findingConsolidator.js.map +1 -0
- package/dist/services/batchSummaryService.js +79 -38
- package/dist/services/batchSummaryService.js.map +1 -1
- package/dist/services/openaiClient.js +59 -28
- package/dist/services/openaiClient.js.map +1 -1
- package/dist/services/promptService.js +49 -24
- package/dist/services/promptService.js.map +1 -1
- package/dist/services/teachingAnalysisService.js +13 -2
- package/dist/services/teachingAnalysisService.js.map +1 -1
- package/dist/services/teachingSuggestionService.js +43 -44
- package/dist/services/teachingSuggestionService.js.map +1 -1
- package/frontend/admin/BudgetConfigForm.tsx +1 -1
- package/frontend/admin/ConfigPanel.tsx +53 -3
- package/frontend/admin/EndpointManager.tsx +1 -1
- package/frontend/admin/FeedbackForm.tsx +1 -1
- package/frontend/admin/JailbreakLogsViewer.tsx +1 -1
- package/frontend/admin/ScenarioModelSelector.tsx +238 -0
- package/frontend/admin/TelemetrySettings.tsx +1 -1
- package/frontend/admin/VersionBadge.tsx +1 -1
- package/frontend/admin/configTypes.ts +9 -0
- package/frontend/batchSummary/BatchSummaryPanel.tsx +29 -1
- package/frontend/batchSummary/StudentSummaryView.tsx +47 -14
- package/frontend/batchSummary/SummaryCard.tsx +1 -1
- package/frontend/batchSummary/useBatchSummary.ts +26 -8
- package/frontend/components/AIHelperDashboard.tsx +1 -1
- package/frontend/components/ErrorBoundary.tsx +1 -1
- package/frontend/components/ScoreboardTabContainer.tsx +1 -1
- package/frontend/generated/localeFallback.ts +1502 -0
- package/frontend/problem_detail.page.tsx +1 -1
- package/frontend/student/AIAssistantPanel.tsx +1 -1
- package/frontend/student/ChatInput.tsx +1 -1
- package/frontend/student/ChatMessageList.tsx +1 -1
- package/frontend/student/ThinkingBlock.tsx +1 -1
- package/frontend/student/hooks/useChatSession.ts +1 -1
- package/frontend/teacher/AnalyticsPage.tsx +1 -1
- package/frontend/teacher/ClassAnalyticsTable.tsx +1 -1
- package/frontend/teacher/ConversationDetail.tsx +1 -1
- package/frontend/teacher/ConversationDetailModal.tsx +1 -1
- package/frontend/teacher/ConversationList.tsx +1 -1
- package/frontend/teacher/CostDashboard.tsx +1 -1
- package/frontend/teacher/ExportDialog.tsx +1 -1
- package/frontend/teacher/MetricsPanel.tsx +1 -1
- package/frontend/teacher/ProblemAnalyticsTable.tsx +1 -1
- package/frontend/teacher/StudentAnalyticsTable.tsx +1 -1
- package/frontend/teacher/analyticsTypes.ts +1 -1
- package/frontend/teachingSummary/TeachingReviewPanel.tsx +1 -1
- package/frontend/teachingSummary/TeachingSummaryPanel.tsx +525 -175
- package/frontend/teachingSummary/useTeachingSummary.ts +10 -0
- package/frontend/utils/i18n.ts +32 -0
- package/frontend/utils/i18nFallbackCore.ts +30 -0
- package/locales/en.yaml +30 -6
- package/locales/zh.yaml +30 -6
- package/package.json +3 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React, { useState, useEffect, useCallback, useRef } from 'react';
|
|
8
|
-
import { i18n } from '
|
|
8
|
+
import { i18n } from './utils/i18n';
|
|
9
9
|
import { renderComponent } from './utils/renderHelper';
|
|
10
10
|
import { AIAssistantPanel } from './student/AIAssistantPanel';
|
|
11
11
|
import { ErrorBoundary } from './components/ErrorBoundary';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useCallback } from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../utils/i18n';
|
|
3
3
|
import 'highlight.js/styles/github.css';
|
|
4
4
|
import { useChatSession } from './hooks/useChatSession';
|
|
5
5
|
import { useTextSelection } from './hooks/useTextSelection';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../utils/i18n';
|
|
3
3
|
import { renderMarkdown as renderMarkdownSafe, renderStreamingMarkdown } from '../utils/markdown';
|
|
4
4
|
import { ZINDEX } from '../utils/styles';
|
|
5
5
|
import { ThinkingBlock } from './ThinkingBlock';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useReducer, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../../utils/i18n';
|
|
3
3
|
import { buildApiUrl } from '../../utils/domainUtils';
|
|
4
4
|
import {
|
|
5
5
|
clearConversationId as clearStoredConversationId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../utils/i18n';
|
|
3
3
|
import { buildPageUrl } from '../utils/domainUtils';
|
|
4
4
|
import { COLORS, getTableHeaderStyle, getTableRowStyle, TRANSITIONS } from '../utils/styles';
|
|
5
5
|
import {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect } from 'react';
|
|
7
|
-
import { i18n } from '
|
|
7
|
+
import { i18n } from '../utils/i18n';
|
|
8
8
|
import 'highlight.js/styles/github.css';
|
|
9
9
|
import { renderMarkdown } from '../utils/markdown';
|
|
10
10
|
import { buildApiUrl, buildPageUrl } from '../utils/domainUtils';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect, useCallback } from 'react';
|
|
7
|
-
import { i18n } from '
|
|
7
|
+
import { i18n } from '../utils/i18n';
|
|
8
8
|
import 'highlight.js/styles/github.css';
|
|
9
9
|
import { renderMarkdown } from '../utils/markdown';
|
|
10
10
|
import { buildApiUrl } from '../utils/domainUtils';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect } from 'react';
|
|
7
|
-
import { i18n } from '
|
|
7
|
+
import { i18n } from '../utils/i18n';
|
|
8
8
|
import { ExportDialog } from './ExportDialog';
|
|
9
9
|
import { ConversationDetailModal } from './ConversationDetailModal';
|
|
10
10
|
import { buildApiUrl } from '../utils/domainUtils';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
|
-
import { i18n } from '
|
|
7
|
+
import { i18n } from '../utils/i18n';
|
|
8
8
|
import type { ConversationMetricsDTO, MetricsStatus } from './analyticsTypes';
|
|
9
9
|
import {
|
|
10
10
|
COLORS, SPACING, RADIUS, SHADOWS, TYPOGRAPHY,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../utils/i18n';
|
|
3
3
|
import { buildPageUrl } from '../utils/domainUtils';
|
|
4
4
|
import { COLORS, RADIUS, SPACING, TRANSITIONS, getTableHeaderStyle, getTableRowStyle } from '../utils/styles';
|
|
5
5
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { i18n } from '
|
|
2
|
+
import { i18n } from '../utils/i18n';
|
|
3
3
|
import { buildPageUrl } from '../utils/domainUtils';
|
|
4
4
|
import { formatDateTime } from '../utils/formatDate';
|
|
5
5
|
import { COLORS, getTableHeaderStyle, getTableRowStyle, TRANSITIONS } from '../utils/styles';
|