@blocklet/pages-kit 0.2.370 → 0.2.372
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/lib/cjs/builtin/async/ai-runtime/api/session.js +48 -50
- package/lib/cjs/builtin/async/ai-runtime/components/AgentInputField/LanguageField.js +18 -33
- package/lib/cjs/builtin/async/ai-runtime/index.js +3 -1
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +6 -2
- package/lib/cjs/builtin/async/ai-runtime/state/session.js +3 -2
- package/lib/cjs/builtin/async/ai-runtime/utils/languages.js +36 -0
- package/lib/cjs/builtin/components.js +8 -0
- package/lib/cjs/builtin/mui/material.js +3 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/builtin.js +1 -0
- package/lib/cjs/utils/inject-global-components.js +2 -0
- package/lib/esm/builtin/async/ai-runtime/api/session.js +48 -50
- package/lib/esm/builtin/async/ai-runtime/components/AgentInputField/LanguageField.js +20 -35
- package/lib/esm/builtin/async/ai-runtime/index.js +1 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/AutoForm/index.js +6 -2
- package/lib/esm/builtin/async/ai-runtime/state/session.js +3 -2
- package/lib/esm/builtin/async/ai-runtime/utils/languages.js +33 -0
- package/lib/esm/builtin/components.js +1 -0
- package/lib/esm/builtin/mui/material.js +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/builtin.js +1 -0
- package/lib/esm/utils/inject-global-components.js +2 -0
- package/lib/types/builtin/async/ai-runtime/api/session.d.ts +16 -5
- package/lib/types/builtin/async/ai-runtime/index.d.ts +1 -0
- package/lib/types/builtin/async/ai-runtime/utils/languages.d.ts +8 -0
- package/lib/types/builtin/components.d.ts +1 -0
- package/lib/types/builtin/mui/material.d.ts +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/builtin.d.ts +1 -0
- package/package.json +12 -11
package/lib/esm/utils/builtin.js
CHANGED
|
@@ -37,6 +37,7 @@ export const BuiltinModules = {
|
|
|
37
37
|
// The following packages are lazy loading
|
|
38
38
|
'@blocklet/pages-kit/builtin/async/react-scroll-to-bottom': reactScrollToBottom,
|
|
39
39
|
// The following packages are ignored at server side
|
|
40
|
+
'@blocklet/pages-kit/builtin/components': {},
|
|
40
41
|
'@blocklet/pages-kit/builtin/session': {},
|
|
41
42
|
'@blocklet/pages-kit/builtin/locale': {},
|
|
42
43
|
'@blocklet/pages-kit/builtin/page/header': {},
|
|
@@ -6,6 +6,7 @@ import * as reactMarkdown from '../builtin/async/react-markdown';
|
|
|
6
6
|
import * as reactScrollToBottom from '../builtin/async/react-scroll-to-bottom';
|
|
7
7
|
import * as reactSyntaxHighlighter from '../builtin/async/react-syntax-highlighter';
|
|
8
8
|
import * as call from '../builtin/call';
|
|
9
|
+
import * as components from '../builtin/components';
|
|
9
10
|
import * as dayjs from '../builtin/dayjs';
|
|
10
11
|
import * as emotionCss from '../builtin/emotion/css';
|
|
11
12
|
import * as iconifyReact from '../builtin/iconify/react';
|
|
@@ -51,6 +52,7 @@ function injectGlobalComponents() {
|
|
|
51
52
|
'@blocklet/pages-kit/builtin/react-router-dom': reactRouterDOM,
|
|
52
53
|
'@blocklet/pages-kit/builtin/arcblock/ux': arcblockUx,
|
|
53
54
|
'@blocklet/pages-kit/builtin/page/header': pageHeader,
|
|
55
|
+
'@blocklet/pages-kit/builtin/components': components,
|
|
54
56
|
// The following packages are lazy loading
|
|
55
57
|
'@blocklet/pages-kit/builtin/async/react-scroll-to-bottom': reactScrollToBottom,
|
|
56
58
|
'@blocklet/pages-kit/builtin/async/react-markdown': reactMarkdown,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReadableStream } from 'node:stream/web';
|
|
1
2
|
import { RunAssistantResponse } from '@blocklet/ai-runtime/types';
|
|
2
3
|
export interface Session {
|
|
3
4
|
id: string;
|
|
@@ -41,10 +42,20 @@ export declare function deleteSession({ sessionId, }: {
|
|
|
41
42
|
deleted: Session;
|
|
42
43
|
sessions: Session[];
|
|
43
44
|
}>;
|
|
44
|
-
export
|
|
45
|
-
aid: string;
|
|
46
|
-
sessionId: string;
|
|
45
|
+
export interface RunAgentInput {
|
|
47
46
|
blockletDid?: string;
|
|
48
47
|
working?: boolean;
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
aid: string;
|
|
49
|
+
sessionId: string;
|
|
50
|
+
inputs?: {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export declare function runAgent(input: RunAgentInput & {
|
|
55
|
+
responseType?: undefined;
|
|
56
|
+
}): Promise<{
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>;
|
|
59
|
+
export declare function runAgent(input: RunAgentInput & {
|
|
60
|
+
responseType: 'stream';
|
|
61
|
+
}): Promise<ReadableStream<RunAssistantResponse>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LanguageField } from './async/ai-runtime/components/AgentInputField/LanguageField';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Checkbox, ListItemText, Alert, AlertTitle, Autocomplete, Avatar, Box, Button, IconButton, ButtonGroup, Card, CardActionArea, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, ClickAwayListener, Collapse, Container, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Fade, GlobalStyles, Grid, Grow, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListSubheader, Menu, MenuItem, MenuList, Paper, Popper, Slide, Stack, Switch, TextField, ThemeProvider, Tooltip, Typography, Zoom, alpha, createTheme, styled, useMediaQuery, useTheme, } from '@mui/material';
|
|
1
|
+
export { Checkbox, ListItemText, Alert, AlertTitle, Autocomplete, Avatar, Box, Button, IconButton, ButtonGroup, Card, CardActionArea, CardActions, CardContent, CardHeader, CardMedia, CircularProgress, ClickAwayListener, Collapse, Container, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Fade, GlobalStyles, Grid, Grow, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemSecondaryAction, ListSubheader, Menu, MenuItem, MenuList, Paper, Popper, Select, Slide, Stack, Switch, TextField, ThemeProvider, Tooltip, Typography, Zoom, alpha, createTheme, styled, useMediaQuery, useTheme, } from '@mui/material';
|