post_to and post_from tools based on your natural language prompts.fetch and lightweight regex validation for maximum speed and security.or Hub: tupik/lm-post click run
Post me these in there to tupik or admin.
An idea for how to use this database: integrate message checking into the preprocessor so that they are included in the LLM context. This way, a set of custom settings can be stored. Why online and not locally? To decouple from the device. And for syncing between them.
// 1. Username Registration Node
"usernames": {
"$username": {
".read": "auth != null",
// You can create a username if it doesn't exist. You can only overwrite it if you own it.
".write": "auth != null && (!data.exists() || data.val() === auth.uid)"
}
},
// 2. the Chat data base
"lm-chat": {
".indexOn": ["ts"],
// Only authorized users can read the chat logic (our plugin makes them anonymous users)
".read": "auth != null",
"$message_id": {
// A hacker can't delete the entire lm-chat; they can only CREATE a new entry ($message_id)
// and only if the 'uid' field inside the entry matches their anonymous ID
".write": "auth != null && (!data.exists() || data.child('uid').val() === auth.uid)",
".validate": "newData.hasChildren(['from', 'to', 'text', 'ts', 'uid'])"
}
}
npm install
npx tsc
lms dev -i -y