mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-03-24 03:37:51 -04:00
Fix branching logic and robot action timing
- Remove onCompleted() call after branch selection to prevent count increment - Add proper duration estimation for speech actions (word count + emotion overhead) - Add say_with_emotion and wave_goodbye to built-in actions - Add identifier field to admin.ts plugin creation
This commit is contained in:
@@ -927,11 +927,17 @@ export const adminRouter = createTRPCRouter({
|
||||
|
||||
if (existingPlugin.length === 0) {
|
||||
// Create new plugin
|
||||
const pluginName = pluginData.name ?? "unknown";
|
||||
const slugIdentifier = pluginName
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9]+/g, "-")
|
||||
.replace(/^-|-$/g, "");
|
||||
const newPlugin = await db
|
||||
.insert(plugins)
|
||||
.values({
|
||||
identifier: slugIdentifier,
|
||||
robotId,
|
||||
name: pluginData.name ?? "",
|
||||
name: pluginName,
|
||||
version: pluginData.version ?? "",
|
||||
description: pluginData.description,
|
||||
author:
|
||||
|
||||
Reference in New Issue
Block a user