Skip to content
Merged
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
6 changes: 4 additions & 2 deletions apps/chat/app/create/builder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ export default function AgentEditor({
<p className={featureTextClass}>
{featureSpec.displayName ?? featureSpec.name}
</p>
<p className='absolute bottom-3 right-0 left-0 text-xs'>In development.</p>
</div>
</div>
</div>
Expand All @@ -927,7 +928,7 @@ export default function AgentEditor({
<div className={cn('flex flex-row h-full items-center justify-center', step !== 2 && 'hidden')}>
<div className={`flex flex-col w-[400px] h-full`}>

<div className='text-lg font-bold flex flex-row items-center justify-center mb-4'><Icon icon="Chat" className='size-5 mr-2' /> <h2>Test Agent</h2></div>
{/* <div className='text-lg font-bold flex flex-row items-center justify-center mb-4'><Icon icon="Chat" className='size-5 mr-2' /> <h2>Test Agent</h2></div> */}
<div className='h-full w-full relative'>
<Chat
room={room}
Expand All @@ -947,6 +948,7 @@ export default function AgentEditor({
<div className={cn('flex flex-col items-center justify-center h-full', step !== 3 && 'hidden')}>

<Button
size='large'
onClick={() => {
setDeploying(true);
editorForm.current?.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
Expand Down Expand Up @@ -977,7 +979,7 @@ export default function AgentEditor({

{/* assistant */}

<div className={`flex-col relative right-4 bottom-4 h-full w-[300px] bg-white ${isAssistantVisible ? '' : 'hidden'}`}>
<div className={`flex-col relative right-4 bottom-4 h-full w-[300px] ${isAssistantVisible ? '' : ''}`}>
<div className="flex flex-col flex-1 h-[calc(100%-40px)] overflow-scroll px-1 pb-8 pt-6">
{builderMessages.map((message, index) => (
<div key={index} className={cn('flex gap-2 mb-4 px-4')}>
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/app/create/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Modal = ({ icon, title, description, open, close, children, disable

return (
<div className="relative z-10" aria-labelledby="modal-title" role="dialog" aria-modal="true">
<div className="fixed inset-0 bg-gray-700/75 transition-opacity" aria-hidden="true"></div>
<div className="fixed inset-0 bg-gray-700/75 transition-opacity" aria-hidden="true" />
<div className="fixed inset-0 z-10 w-screen overflow-y-auto">
<div className="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" onClick={(e) => e.stopPropagation()}>
<div className="relative transform overflow-hidden border-2 bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg pb-6 pt-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { mkdirp } from 'mkdirp';
import { rimraf } from 'rimraf';
import toml from '@iarna/toml';
import { getCurrentDirname } from '../react-agents/util/path-util.mjs';
import { npmInstall } from '../../../../lib/npm-util.mjs';

const dirname = getCurrentDirname(import.meta, process);
const copyWithStringTransform = async (src, dst, transformFn = (s) => s) => {
Expand Down Expand Up @@ -97,6 +98,9 @@ export const installAgent = async (directory) => {
};
await removeDependencies();

// install local dependencies (from the agent's package.json)
await npmInstall(directory);

// symlink node_modules deps
const addDependencies = async () => {
await Promise.all(dependencies.map(async (name) => {
Expand Down