@blocklet/pages-kit 0.2.296 → 0.2.298
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/components/RuntimeProvider.js +7 -2
- package/lib/cjs/builtin/async/ai-runtime/components/common/UserInfo.js +56 -0
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/ChatOutput/MessageItemView.js +16 -12
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/ChatOutput/index.js +13 -2
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/PhotoGallery/index.js +10 -18
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/PhotoGalleryItem/index.js +40 -26
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/SimpleChat/index.js +21 -17
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/SimpleOutput/index.js +2 -2
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/components/SimplePage/index.js +10 -18
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/constants.js +6 -0
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/contexts/CurrentAgent.js +11 -1
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/index.js +64 -11
- package/lib/cjs/builtin/async/ai-runtime/components/runtime/state/runtime.js +5 -1
- package/lib/cjs/builtin/async/ai-runtime/index.js +2 -2
- package/lib/cjs/builtin/async/ai-runtime/locales/index.js +7 -1
- package/lib/esm/builtin/async/ai-runtime/components/RuntimeProvider.js +5 -2
- package/lib/esm/builtin/async/ai-runtime/components/common/UserInfo.js +47 -0
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/ChatOutput/MessageItemView.js +16 -12
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/ChatOutput/index.js +13 -2
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/PhotoGallery/index.js +10 -18
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/PhotoGalleryItem/index.js +38 -27
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/SimpleChat/index.js +21 -17
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/SimpleOutput/index.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/components/runtime/components/SimplePage/index.js +10 -18
- package/lib/esm/builtin/async/ai-runtime/components/runtime/constants.js +3 -0
- package/lib/esm/builtin/async/ai-runtime/components/runtime/contexts/CurrentAgent.js +11 -1
- package/lib/esm/builtin/async/ai-runtime/components/runtime/index.js +44 -14
- package/lib/esm/builtin/async/ai-runtime/components/runtime/state/runtime.js +5 -1
- package/lib/esm/builtin/async/ai-runtime/index.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +7 -1
- package/lib/types/builtin/async/ai-runtime/components/RuntimeProvider.d.ts +3 -0
- package/lib/types/builtin/async/ai-runtime/components/common/UserInfo.d.ts +17 -0
- package/lib/types/builtin/async/ai-runtime/components/runtime/components/ChatOutput/index.d.ts +4 -1
- package/lib/types/builtin/async/ai-runtime/components/runtime/components/SimpleOutput/index.d.ts +1 -1
- package/lib/types/builtin/async/ai-runtime/components/runtime/constants.d.ts +3 -0
- package/lib/types/builtin/async/ai-runtime/components/runtime/contexts/CurrentAgent.d.ts +3 -0
- package/lib/types/builtin/async/ai-runtime/components/runtime/state/runtime.d.ts +1 -0
- package/lib/types/builtin/async/ai-runtime/index.d.ts +1 -1
- package/lib/types/builtin/async/ai-runtime/locales/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { RuntimeOutputVariable } from '@blocklet/ai-runtime/types';
|
|
3
2
|
import { Stack, ThemeProvider, Typography, createTheme, useTheme } from '@mui/material';
|
|
4
3
|
import { Suspense, useMemo } from 'react';
|
|
5
4
|
import Balancer, { Provider } from 'react-wrap-balancer';
|
|
@@ -8,12 +7,7 @@ import CurrentAgentProvider, { useCurrentAgent } from '../../contexts/CurrentAge
|
|
|
8
7
|
import CurrentMessageProvider from '../../contexts/CurrentMessage';
|
|
9
8
|
import { useRuntimeState } from '../../state/runtime';
|
|
10
9
|
export default function SimplePage({ resultTitle, primaryColor }) {
|
|
11
|
-
|
|
12
|
-
const { agent, appearancePage } = useRuntimeState();
|
|
13
|
-
const children = useMemo(() => {
|
|
14
|
-
var _a, _b;
|
|
15
|
-
return (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.children)) === null || _b === void 0 ? void 0 : _b.initialValue;
|
|
16
|
-
}, [agent]);
|
|
10
|
+
const { agent, appearancePage, childAgentId } = useRuntimeState();
|
|
17
11
|
const inheritedTheme = useTheme();
|
|
18
12
|
const theme = useMemo(() => {
|
|
19
13
|
let { primary } = inheritedTheme.palette;
|
|
@@ -32,15 +26,15 @@ export default function SimplePage({ resultTitle, primaryColor }) {
|
|
|
32
26
|
},
|
|
33
27
|
});
|
|
34
28
|
}, [inheritedTheme, primaryColor]);
|
|
35
|
-
|
|
29
|
+
const title = (appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.name) || agent.name;
|
|
30
|
+
const description = (appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.description) || agent.description;
|
|
31
|
+
return (_jsx(ThemeProvider, { theme: theme, children: _jsxs(Stack, { gap: 2, maxWidth: "md", width: "100%", mx: "auto", px: { xs: 2, sm: 3 }, children: [_jsx(Stack, { gap: 2, mt: 8, mb: 4, children: _jsxs(Provider, { children: [title && (_jsx(Typography, { component: "h5", fontSize: 30, fontWeight: 700, textAlign: "center", children: _jsx(Balancer, { children: title }) })), description && (_jsx(Typography, { textAlign: "center", children: _jsx(Balancer, { children: description }) }))] }) }), _jsx(Stack, { children: _jsx(CurrentAgentProvider, { agentId: childAgentId, children: _jsx(AgentInputRender, {}) }) }), _jsx(Stack, { children: _jsx(OutputView, { resultTitle: resultTitle }) })] }) }));
|
|
36
32
|
}
|
|
37
33
|
function AgentInputRender() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const input = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.appearanceInput)) === null || _b === void 0 ? void 0 : _b.initialValue;
|
|
41
|
-
if (!(input === null || input === void 0 ? void 0 : input.componentId))
|
|
34
|
+
const { appearanceInput } = useCurrentAgent();
|
|
35
|
+
if (!(appearanceInput === null || appearanceInput === void 0 ? void 0 : appearanceInput.componentId))
|
|
42
36
|
return null;
|
|
43
|
-
return (_jsx(Stack, { children: _jsx(CustomComponentRenderer, { componentId:
|
|
37
|
+
return (_jsx(Stack, { children: _jsx(CustomComponentRenderer, { componentId: appearanceInput.componentId, properties: appearanceInput.componentProps }) }));
|
|
44
38
|
}
|
|
45
39
|
function OutputView({ resultTitle }) {
|
|
46
40
|
var _a;
|
|
@@ -49,10 +43,8 @@ function OutputView({ resultTitle }) {
|
|
|
49
43
|
return (_jsx(Stack, { gap: 2, children: lastMessage && (_jsxs(_Fragment, { children: [_jsx(Stack, { children: resultTitle && (_jsx(Typography, { component: "h5", fontSize: 36, fontWeight: 700, textAlign: "center", children: _jsx(Balancer, { children: resultTitle }) })) }), _jsx(Stack, { children: _jsx(CurrentAgentProvider, { agentId: lastMessage.assistantId, children: _jsx(CurrentMessageProvider, { message: lastMessage, children: _jsx(Suspense, { children: _jsx(OutputItemView, {}) }) }) }) })] })) }));
|
|
50
44
|
}
|
|
51
45
|
function OutputItemView() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const input = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.appearanceOutput)) === null || _b === void 0 ? void 0 : _b.initialValue;
|
|
55
|
-
if (!(input === null || input === void 0 ? void 0 : input.componentId))
|
|
46
|
+
const { appearanceOutput } = useCurrentAgent();
|
|
47
|
+
if (!(appearanceOutput === null || appearanceOutput === void 0 ? void 0 : appearanceOutput.componentId))
|
|
56
48
|
return null;
|
|
57
|
-
return _jsx(CustomComponentRenderer, { componentId:
|
|
49
|
+
return (_jsx(CustomComponentRenderer, { componentId: appearanceOutput.componentId, properties: appearanceOutput.componentProps }));
|
|
58
50
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RuntimeOutputVariable } from '@blocklet/ai-runtime/types';
|
|
2
3
|
import { createContext, useContext, useMemo } from 'react';
|
|
3
4
|
import { parseIdentity, stringifyIdentity } from '../../../utils';
|
|
5
|
+
import { DEFAULT_INPUT_COMPONENT_ID, DEFAULT_OUTPUT_COMPONENT_ID } from '../constants';
|
|
4
6
|
import { useAssistantState } from '../state/assistant';
|
|
5
7
|
import { useRuntimeState } from '../state/runtime';
|
|
6
8
|
const context = createContext(undefined);
|
|
@@ -18,5 +20,13 @@ export function useCurrentAgent() {
|
|
|
18
20
|
throw new Error('No such current agent state. You should use `useCurrentAgent` within the `CurrentAgentProvider`');
|
|
19
21
|
}
|
|
20
22
|
const [agent] = useAssistantState({ aid: current.aid, working });
|
|
21
|
-
|
|
23
|
+
const appearanceInput = useMemo(() => {
|
|
24
|
+
var _a, _b, _c;
|
|
25
|
+
return (_c = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.appearanceInput)) === null || _b === void 0 ? void 0 : _b.initialValue) !== null && _c !== void 0 ? _c : { componentId: DEFAULT_INPUT_COMPONENT_ID };
|
|
26
|
+
}, [agent]);
|
|
27
|
+
const appearanceOutput = useMemo(() => {
|
|
28
|
+
var _a, _b, _c;
|
|
29
|
+
return (_c = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.appearanceOutput)) === null || _b === void 0 ? void 0 : _b.initialValue) !== null && _c !== void 0 ? _c : { componentId: DEFAULT_OUTPUT_COMPONENT_ID };
|
|
30
|
+
}, [agent]);
|
|
31
|
+
return Object.assign(Object.assign({}, current), { agent, appearanceInput, appearanceOutput });
|
|
22
32
|
}
|
|
@@ -1,36 +1,66 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { Box } from '@mui/material';
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, useMediaQuery, useTheme } from '@mui/material';
|
|
4
3
|
import { useEffect } from 'react';
|
|
5
4
|
import { Helmet } from 'react-helmet';
|
|
6
5
|
import CustomComponentRenderer from '../../../../../components/CustomComponentRenderer';
|
|
7
|
-
import { Avatar } from '../../../../arcblock/ux';
|
|
6
|
+
import { Avatar, DID } from '../../../../arcblock/ux';
|
|
7
|
+
import { useLocaleContext } from '../../../../locale';
|
|
8
8
|
import { useHeaderState } from '../../../../page/header';
|
|
9
|
-
import RuntimeProvider from '../RuntimeProvider';
|
|
9
|
+
import RuntimeProvider, { RuntimeLocaleProvider } from '../RuntimeProvider';
|
|
10
|
+
import SocialShare from '../SocialShare';
|
|
11
|
+
import { DEFAULT_PAGE_COMPONENT_ID } from './constants';
|
|
10
12
|
import { useRuntimeState } from './state/runtime';
|
|
13
|
+
const logoSize = 44;
|
|
14
|
+
function AgentCreatedBy({ agent }) {
|
|
15
|
+
const { t } = useLocaleContext();
|
|
16
|
+
return (_jsxs(_Fragment, { children: [t('by'), " ", _jsx(Box, { component: DID, did: agent.createdBy, copyable: false, responsive: true })] }));
|
|
17
|
+
}
|
|
11
18
|
export default function Runtime() {
|
|
12
|
-
var _a
|
|
19
|
+
var _a;
|
|
13
20
|
const { agent, appearancePage, sessionState } = useRuntimeState();
|
|
21
|
+
const theme = useTheme();
|
|
22
|
+
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));
|
|
23
|
+
const { locale } = useLocaleContext();
|
|
14
24
|
useEffect(() => {
|
|
15
25
|
useHeaderState.setState((state) => {
|
|
16
26
|
var _a;
|
|
17
27
|
const logo = (_a = appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.logo) === null || _a === void 0 ? void 0 : _a.url;
|
|
18
|
-
state.logo = logo && _jsx(Box, { component: Avatar, src: logo, did: blocklet === null || blocklet === void 0 ? void 0 : blocklet.appId, borderRadius: 1, size:
|
|
19
|
-
|
|
28
|
+
state.logo = logo && (_jsx(Box, { component: Avatar, src: logo, did: blocklet === null || blocklet === void 0 ? void 0 : blocklet.appId, borderRadius: 1, size: logoSize, sx: {
|
|
29
|
+
width: logoSize,
|
|
30
|
+
height: logoSize,
|
|
31
|
+
} }));
|
|
32
|
+
if (!isMobile) {
|
|
33
|
+
state.brand = (_jsx(Box, { sx: {
|
|
34
|
+
height: 18,
|
|
35
|
+
fontSize: 18,
|
|
36
|
+
}, children: (appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.name) || agent.name }));
|
|
37
|
+
state.description = agent.createdBy && (_jsx(RuntimeLocaleProvider, { children: _jsx(Box, { sx: {
|
|
38
|
+
display: 'inline-flex',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
gap: 0.5,
|
|
41
|
+
mt: 0.5,
|
|
42
|
+
height: 12,
|
|
43
|
+
fontSize: 12,
|
|
44
|
+
}, children: _jsx(AgentCreatedBy, { agent: agent }) }) }));
|
|
45
|
+
}
|
|
46
|
+
const shareContent = `${agent.name}
|
|
47
|
+
|
|
48
|
+
${agent === null || agent === void 0 ? void 0 : agent.description}
|
|
49
|
+
`;
|
|
50
|
+
state.addons = (...exists) => [_jsx(SocialShare, { content: shareContent }), ...exists].filter(Boolean);
|
|
20
51
|
});
|
|
21
52
|
return () => {
|
|
22
53
|
useHeaderState.setState((state) => {
|
|
23
54
|
state.logo = undefined;
|
|
24
55
|
state.brand = undefined;
|
|
56
|
+
state.description = undefined;
|
|
57
|
+
state.addons = (...exists) => [...exists];
|
|
25
58
|
});
|
|
26
59
|
};
|
|
27
|
-
}, [appearancePage]);
|
|
60
|
+
}, [appearancePage, locale, isMobile]);
|
|
28
61
|
useEffect(() => {
|
|
29
62
|
sessionState.load();
|
|
30
63
|
}, []);
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
if (!componentId)
|
|
34
|
-
throw new Error('Missing output `appearance`');
|
|
35
|
-
return (_jsxs(RuntimeProvider, { children: [appearancePage && (_jsxs(Helmet, { children: [appearancePage.name && _jsx("title", { children: appearancePage.name }), appearancePage.description && _jsx("meta", { name: "description", content: appearancePage.description })] })), _jsx(CustomComponentRenderer, { componentId: componentId, properties: appearance.componentProps })] }));
|
|
64
|
+
const componentId = (_a = appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.componentId) !== null && _a !== void 0 ? _a : DEFAULT_PAGE_COMPONENT_ID;
|
|
65
|
+
return (_jsxs(RuntimeProvider, { children: [appearancePage && (_jsxs(Helmet, { children: [appearancePage.name && _jsx("title", { children: appearancePage.name }), appearancePage.description && _jsx("meta", { name: "description", content: appearancePage.description })] })), _jsx(CustomComponentRenderer, { componentId: componentId, properties: appearancePage === null || appearancePage === void 0 ? void 0 : appearancePage.componentProps })] }));
|
|
36
66
|
}
|
|
@@ -48,5 +48,9 @@ export function useRuntimeState() {
|
|
|
48
48
|
const initialValue = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.appearancePage)) === null || _b === void 0 ? void 0 : _b.initialValue;
|
|
49
49
|
return initialValue;
|
|
50
50
|
}, [agent]);
|
|
51
|
-
|
|
51
|
+
const childAgentId = useMemo(() => {
|
|
52
|
+
var _a, _b, _c, _d, _e, _f;
|
|
53
|
+
return ((_f = (_e = (_d = (_c = (_b = (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.children)) === null || _b === void 0 ? void 0 : _b.initialValue) === null || _c === void 0 ? void 0 : _c.agents) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.id) !== null && _f !== void 0 ? _f : agent.id);
|
|
54
|
+
}, [agent]);
|
|
55
|
+
return { aid, working, agent, appearancePage, sessionState, childAgentId, execute };
|
|
52
56
|
}
|
|
@@ -21,7 +21,7 @@ export { default as SimplePage } from './components/runtime/components/SimplePag
|
|
|
21
21
|
export { default as SimpleChat } from './components/runtime/components/SimpleChat';
|
|
22
22
|
export { default as PhotoGallery } from './components/runtime/components/PhotoGallery';
|
|
23
23
|
export { default as AutoForm } from './components/runtime/components/AutoForm';
|
|
24
|
-
export { default as
|
|
24
|
+
export { default as SimpleOutput } from './components/runtime/components/SimpleOutput';
|
|
25
25
|
export { default as ChatOutput } from './components/runtime/components/ChatOutput';
|
|
26
26
|
export { default as PhotoGalleryItem } from './components/runtime/components/PhotoGalleryItem';
|
|
27
27
|
export default function App(props) {
|
|
@@ -15,6 +15,9 @@ export const translations = {
|
|
|
15
15
|
dialog: {
|
|
16
16
|
title: 'AI Art Image',
|
|
17
17
|
prompt: 'Prompt',
|
|
18
|
+
metadata: 'Metadata',
|
|
19
|
+
author: 'Author',
|
|
20
|
+
time: 'Creation Time',
|
|
18
21
|
},
|
|
19
22
|
},
|
|
20
23
|
questionPlaceholder: 'Ask Anything...',
|
|
@@ -90,7 +93,7 @@ export const translations = {
|
|
|
90
93
|
loadMore: 'Load More',
|
|
91
94
|
},
|
|
92
95
|
zh: {
|
|
93
|
-
by: '
|
|
96
|
+
by: '作者',
|
|
94
97
|
socialShare: {
|
|
95
98
|
title: '分享',
|
|
96
99
|
shareToX: '分享到 X',
|
|
@@ -105,6 +108,9 @@ export const translations = {
|
|
|
105
108
|
dialog: {
|
|
106
109
|
title: 'AI 艺术图片',
|
|
107
110
|
prompt: '提示词',
|
|
111
|
+
metadata: '元数据',
|
|
112
|
+
author: '作者',
|
|
113
|
+
time: '创作时间',
|
|
108
114
|
},
|
|
109
115
|
},
|
|
110
116
|
questionPlaceholder: '问点什么...',
|
|
@@ -2,3 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export default function RuntimeProvider({ children }: {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function RuntimeLocaleProvider({ children }: {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StackProps, TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export default function UserInfo({ avatar, showDID, did, name, time, children, reverse, ...restProps }: StackProps & {
|
|
4
|
+
avatar?: string;
|
|
5
|
+
showDID?: boolean;
|
|
6
|
+
did?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
time?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
reverse?: boolean;
|
|
11
|
+
} & StackProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function UserName({ children, sx, ...restProps }: TypographyProps & {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function UserTime({ time, ...restProps }: TypographyProps & {
|
|
16
|
+
time: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
package/lib/types/builtin/async/ai-runtime/components/runtime/components/SimpleOutput/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function
|
|
1
|
+
export default function SimpleOutput(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RuntimeOutputAppearance } from '@blocklet/ai-runtime/types';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
export interface CurrentAgentState {
|
|
3
4
|
aid: string;
|
|
@@ -8,5 +9,7 @@ export default function CurrentAgentProvider({ agentId, children }: {
|
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export declare function useCurrentAgent(): {
|
|
10
11
|
agent: import("../../../api/assistant").Assistant;
|
|
12
|
+
appearanceInput: RuntimeOutputAppearance;
|
|
13
|
+
appearanceOutput: RuntimeOutputAppearance;
|
|
11
14
|
aid: string;
|
|
12
15
|
};
|
|
@@ -5,6 +5,7 @@ export declare function useRuntimeState(): {
|
|
|
5
5
|
agent: import("../../../api/assistant").Assistant;
|
|
6
6
|
appearancePage: RuntimeOutputAppearancePage | undefined;
|
|
7
7
|
sessionState: import("./session").SessionState;
|
|
8
|
+
childAgentId: string;
|
|
8
9
|
execute: (options: {
|
|
9
10
|
aid: string;
|
|
10
11
|
working?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export { default as SimplePage } from './components/runtime/components/SimplePag
|
|
|
9
9
|
export { default as SimpleChat } from './components/runtime/components/SimpleChat';
|
|
10
10
|
export { default as PhotoGallery } from './components/runtime/components/PhotoGallery';
|
|
11
11
|
export { default as AutoForm } from './components/runtime/components/AutoForm';
|
|
12
|
-
export { default as
|
|
12
|
+
export { default as SimpleOutput } from './components/runtime/components/SimpleOutput';
|
|
13
13
|
export { default as ChatOutput } from './components/runtime/components/ChatOutput';
|
|
14
14
|
export { default as PhotoGalleryItem } from './components/runtime/components/PhotoGalleryItem';
|
|
15
15
|
export default function App(props: {
|
|
@@ -15,6 +15,9 @@ export declare const translations: {
|
|
|
15
15
|
dialog: {
|
|
16
16
|
title: string;
|
|
17
17
|
prompt: string;
|
|
18
|
+
metadata: string;
|
|
19
|
+
author: string;
|
|
20
|
+
time: string;
|
|
18
21
|
};
|
|
19
22
|
};
|
|
20
23
|
questionPlaceholder: string;
|
|
@@ -93,6 +96,9 @@ export declare const translations: {
|
|
|
93
96
|
dialog: {
|
|
94
97
|
title: string;
|
|
95
98
|
prompt: string;
|
|
99
|
+
metadata: string;
|
|
100
|
+
author: string;
|
|
101
|
+
time: string;
|
|
96
102
|
};
|
|
97
103
|
};
|
|
98
104
|
questionPlaceholder: string;
|