Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/v2/telegram #56

Open
wants to merge 79 commits into
base: feature/v2/groq
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
8370be0
update quick action links
madjin Mar 19, 2025
a613ac6
Merge branch 'v2-develop' of github.com:elizaOS/eliza into jin-docs-v2
madjin Mar 19, 2025
93bc999
add thumbnails, update frontpage links
madjin Mar 20, 2025
f252328
cleanup core docs
madjin Mar 20, 2025
da094d8
update sidebars and intro
madjin Mar 20, 2025
0bddf26
fetch latest news
madjin Mar 20, 2025
cb0b576
fix syntax highlighting
madjin Mar 20, 2025
11c697f
add redpill plugin
HashWarlock Mar 21, 2025
3599bf3
update readme
HashWarlock Mar 21, 2025
ba88aa5
update package json
HashWarlock Mar 21, 2025
647d3f3
Merge branch 'v2-develop' into jin-docs-v2
madjin Mar 21, 2025
558d41a
update llms.txt files
madjin Mar 22, 2025
1dec6bc
update analysis files
madjin Mar 22, 2025
4fc5b75
update repomix configs
madjin Mar 22, 2025
fea5f3a
update blog
madjin Mar 22, 2025
3de4c9a
update blog post
madjin Mar 22, 2025
a2da8a5
update post
madjin Mar 22, 2025
5f45553
remove extra
madjin Mar 22, 2025
bc50b39
update config
madjin Mar 22, 2025
e2e91b0
update news
madjin Mar 22, 2025
ad87dc1
Merge branch 'v2-develop' into jin-docs-v2
madjin Mar 22, 2025
f20951f
fixed add plugin command quickstart.md
antman1p Mar 22, 2025
4074cb5
Merge pull request #4047 from antman1p/patch-5
madjin Mar 22, 2025
7733821
Merge branch 'v2-develop' into jin-docs-v2
madjin Mar 22, 2025
f68c7fb
add new blog post
madjin Mar 22, 2025
28e1e3b
Merge pull request #4045 from elizaOS/hash/add-redpill
lalalune Mar 23, 2025
e002e38
Merge pull request #4044 from meta-introspector/feature/v2/groq
lalalune Mar 23, 2025
40f2fa1
Merge branch 'v2-develop' into jin-docs-v2
madjin Mar 23, 2025
16cd5c9
add llms.txt generator workflow
madjin Mar 23, 2025
ce75ea2
Merge branch 'jin-docs-v2' of github.com:elizaOS/eliza into jin-docs-v2
madjin Mar 23, 2025
5a18419
fix: tg negative id
Mar 23, 2025
0954a7e
feat: add partial agent update
Mar 20, 2025
2df73bd
feat: make partial updates by navbars in char settings
Mar 20, 2025
b927f2d
feat: restructure update by panels
Mar 20, 2025
f7ffc36
chore: remove debug logs
Mar 20, 2025
91fb23d
chore: remove logs & fix avatar size
Mar 20, 2025
a7bdd72
chore: optimize logic for update
Mar 20, 2025
8f3b643
fix: remove unused vars
Mar 20, 2025
45d3763
chore: ensure min req for agent start
Mar 20, 2025
86d2ece
chore: remove unused function
Mar 20, 2025
6ed42d3
chore: enahnce settings update on agent
Mar 21, 2025
eade2a5
chore: clean the code
Mar 22, 2025
bb9c3be
chore: temp disable usePlugins
Mar 22, 2025
d70c3e0
fix: send only text response
Mar 23, 2025
495577b
add mermaid / bun notes
madjin Mar 23, 2025
dc2ce5c
fix: env drag and drop
Mar 23, 2025
ef8982b
add new links at footer, add copy page button
madjin Mar 24, 2025
bab0c6d
remove artifacts
madjin Mar 24, 2025
dceef56
fix chatgpt link, and sidebars order
madjin Mar 24, 2025
d849b44
add some svgs of worlds / rooms / entities
madjin Mar 24, 2025
861a25b
Merge pull request #4032 from elizaOS/jin-docs-v2
madjin Mar 24, 2025
e688afa
test existing salting
wtfsayo Mar 24, 2025
769acf2
handle salt without agentId
wtfsayo Mar 24, 2025
28b2542
clean up
wtfsayo Mar 24, 2025
6756d41
Merge branch 'v2-develop' into ELI2-130/change-agent-update-to-send-o…
wtfsayo Mar 24, 2025
00e5102
Merge pull request #4026 from 0xbbjoker/ELI2-130/change-agent-update-…
wtfsayo Mar 24, 2025
ca8fc5f
Merge branch 'v2-develop' into test-secret-encryption
wtfsayo Mar 24, 2025
c9bd2b7
Merge branch 'v2-develop' into fix/telegram-negative-chatid-uuid
wtfsayo Mar 24, 2025
feaa91d
Merge pull request #4052 from 0xbbjoker/fix/telegram-negative-chatid-…
wtfsayo Mar 24, 2025
337e066
Merge branch 'v2-develop' into test-secret-encryption
wtfsayo Mar 24, 2025
41ee10d
show client on received messages memory
wtfsayo Mar 24, 2025
aedfcdb
Merge pull request #4058 from elizaOS/minor-memory-viewer
wtfsayo Mar 24, 2025
fbea9f2
chore: encrypt character secrets from GUI
Mar 24, 2025
b6314ce
Merge pull request #4059 from 0xbbjoker/chore/gui-secret-encryption
wtfsayo Mar 24, 2025
c135a27
Merge branch 'v2-develop' into test-secret-encryption
wtfsayo Mar 24, 2025
b556504
Merge pull request #4056 from elizaOS/test-secret-encryption
wtfsayo Mar 24, 2025
cbd1b76
fix agent details display on cli
wtfsayo Mar 25, 2025
42d8fd9
better error for connection
wtfsayo Mar 25, 2025
0f2ebb2
fix display banner
wtfsayo Mar 25, 2025
69f7873
fix remaining cli issues
wtfsayo Mar 25, 2025
905545a
Merge pull request #4061 from elizaOS/cli-fixes
wtfsayo Mar 25, 2025
734eed2
change default director for models and cache for localai
wtfsayo Mar 25, 2025
e20bd81
Merge pull request #4062 from elizaOS/v2-local-ai-default-dir
wtfsayo Mar 25, 2025
3b7cd02
adding in branch name
Mar 25, 2025
9efd7c8
try again
Mar 25, 2025
37158ce
revert changes
Mar 25, 2025
1f42919
only show text animation once
tcm390 Mar 25, 2025
2e6faa0
JMD: rebase again and again
Mar 26, 2025
5e8a26e
builds
Mar 26, 2025
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
Prev Previous commit
Next Next commit
chore: ensure min req for agent start
  • Loading branch information
0xbbjoker committed Mar 23, 2025
commit 45d3763b635a5c90623b561d07007c716ad76ddf
33 changes: 23 additions & 10 deletions packages/client/src/components/agent-creator.tsx
Original file line number Diff line number Diff line change
@@ -7,25 +7,32 @@ import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import AvatarPanel from './avatar-panel';
import PluginsPanel from './plugins-panel';
import SecretPanel from './secret-panel';
import { SecretPanel } from './secret-panel';
import { useAgentUpdate } from '@/hooks/use-agent-update';

const defaultCharacter = {
// Define a partial agent for initialization
const defaultCharacter: Partial<Agent> = {
name: '',
username: '',
system: '',
bio: [] as string[],
topics: [] as string[],
adjectives: [] as string[],
} as Agent;
plugins: ['@elizaos/plugin-sql', '@elizaos/plugin-local-ai'],
settings: { secrets: {} },
};

export default function AgentCreator() {
const navigate = useNavigate();
const { toast } = useToast();
const queryClient = useQueryClient();
const [characterValue, setCharacterValue] = useState<Agent>({
const [initialCharacter] = useState<Partial<Agent>>({
...defaultCharacter,
});

// Use agent update hook for proper handling of nested fields
const agentState = useAgentUpdate(initialCharacter as Agent);

const ensureRequiredFields = (character: Agent): Agent => {
return {
...character,
@@ -40,6 +47,7 @@ export default function AgentCreator() {
chat: character.style?.chat ?? [],
post: character.style?.post ?? [],
},
settings: character.settings ?? { secrets: {} },
};
};

@@ -70,12 +78,12 @@ export default function AgentCreator() {

return (
<CharacterForm
characterValue={characterValue}
setCharacterValue={setCharacterValue}
characterValue={agentState.agent}
setCharacterValue={agentState}
title="Character Settings"
description="Configure your AI character's behavior and capabilities"
onSubmit={handleSubmit}
onReset={() => setCharacterValue(defaultCharacter)}
onReset={() => agentState.reset()}
onDelete={() => {
navigate('/');
}}
@@ -84,19 +92,24 @@ export default function AgentCreator() {
{
name: 'Plugins',
component: (
<PluginsPanel characterValue={characterValue} setCharacterValue={setCharacterValue} />
<PluginsPanel characterValue={agentState.agent} setCharacterValue={agentState} />
),
},
{
name: 'Secret',
component: (
<SecretPanel characterValue={characterValue} setCharacterValue={setCharacterValue} />
<SecretPanel
characterValue={agentState.agent}
onChange={(updatedAgent) => {
agentState.updateSettings(updatedAgent.settings);
}}
/>
),
},
{
name: 'Avatar',
component: (
<AvatarPanel characterValue={characterValue} setCharacterValue={setCharacterValue} />
<AvatarPanel characterValue={agentState.agent} setCharacterValue={agentState} />
),
},
]}