Add TriggerV2

This commit is contained in:
Kwaroran
2025-02-15 21:29:37 +09:00
parent dffc5ee65e
commit d2fce340bb
14 changed files with 3087 additions and 38 deletions

View File

@@ -240,6 +240,129 @@ export const languageEnglish = {
finallyOption2: "No",
finallyOption2Desc: "This will disable advanced tools, and make the UI more simple. Recommended for new users.",
},
triggerDesc: {
v2Header: "Header",
v2HeaderDesc: "Header",
v2If: "If",
v2IfDesc: "If {{source}} {{condition}} {{target}}",
v2Else: "Else",
v2ElseDesc: "Else",
v2EndIndent: "End Indent",
v2EndIndentDesc: "End Indent",
v2SetVar: "Set Variable",
v2SetVarDesc: "Set Variable {{var}} {{operator}} {{value}}",
v2Loop: "Loop Forever",
v2LoopDesc: "Loop Forever",
v2BreakLoop: "Break Loop",
v2BreakLoopDesc: "Break Loop",
v2RunTrigger: "Run Trigger",
v2RunTriggerDesc: "Run Trigger {{target}}",
v2ConsoleLog: "Console Log",
v2ConsoleLogDesc: "Console Log {{source}}",
v2StopTrigger: "Stop Trigger",
v2StopTriggerDesc: "Stop Trigger",
v2CutChat: "Cut Chat",
v2CutChatDesc: "Cut Chat from {{start}} to {{end}}",
v2ModifyChat: "Modify Chat",
v2ModifyChatDesc: "Modify Chat at index {{index}} with {{value}}",
v2SystemPrompt: "Add System Prompt",
v2SystemPromptDesc: "Add System Prompt at {{location}} with {{value}}",
v2Impersonate: "Send Chat",
v2ImpersonateDesc: "Send Chat as {{role}} with {{value}}",
v2Command: "Run Command",
v2CommandDesc: "Run command with {{value}}",
v2SendAIprompt: "Send AI Prompt",
v2SendAIpromptDesc: "Send AI Prompt",
v2ImgGen: "Image Generation",
v2ImgGenDesc: "Generate image from {{value}}, negative from {{negValue}} => {{outputVar}}",
v2CheckSimilarity: "Check Similarity",
v2CheckSimilarityDesc: "Check similarity between {{source}} and {{value}} => {{outputVar}}",
v2RunLLM: "Run Model",
v2RunLLMDesc: "Send request to model from {{value}} => {{outputVar}}",
v2ShowAlert: "Show Alert",
v2ShowAlertDesc: "Show alert with {{value}}",
v2ExtractRegex: "Extract Regex",
v2ExtractRegexDesc: "Extract text from {{value}} with regex {{regexType}} {{regex}} and flags {{flagsType}} {{flags}}, then store result as {{resultType}} {{result}} => {{outputVar}}",
v2GetLastMessage: "Get Last Message",
v2GetLastMessageDesc: "Get Last Message => {{outputVar}}",
v2GetMessageAtIndex: "Get Message at Index",
v2GetMessageAtIndexDesc: "Get Message at Index {{index}} => {{outputVar}}",
v2GetMessageCount: "Get Message Count",
v2GetMessageCountDesc: "Get Message Count => {{outputVar}}",
v2GetLorebook: "Get Lorebook",
v2GetLorebookDesc: "Get Lorebook named {{target}} => {{outputVar}}",
v2GetLorebookCount: "Get Lorebook Count",
v2GetLorebookCountDesc: "Get Lorebook Count => {{outputVar}}",
v2GetLorebookEntry: "Get Lorebook with index",
v2GetLorebookEntryDesc: "Get Lorebook with index {{index}} => {{outputVar}}",
v2SetLorebookActivation: "Set Lorebook Activation",
v2SetLorebookActivationDesc: "Set Lorebook with index {{index}}'s activation state to {{value}}",
v2GetLorebookIndexViaName: "Get Lorebook Index via Name",
v2GetLorebookIndexViaNameDesc: "Get Lorebook Index via Name {{name}} => {{outputVar}}",
v2ModifyLorebook: "Modify Lorebook",
v2ModifyLorebookDesc: "Modify Lorebook named {{target}} with {{value}}",
v2LoopNTimes: "Loop N Times",
v2LoopNTimesDesc: "Loop {{value}} Times",
v2Random: "Random",
v2RandomDesc: "Random from {{min}} to {{max}} => {{outputVar}}",
v2GetCharAt: "Get Character at Index",
v2GetCharAtDesc: "Get Character at Index {{index}} from {{source}} => {{outputVar}}",
v2GetCharCount: "Get Character Count",
v2GetCharCountDesc: "Get Character Count from {{source}} => {{outputVar}}",
v2ToLowerCase: "Convert to Lower Case",
v2ToLowerCaseDesc: "Convert {{source}} to Lower Case => {{outputVar}}",
v2ToUpperCase: "Convert to Upper Case",
v2ToUpperCaseDesc: "Convert {{source}} to Upper Case => {{outputVar}}",
v2SetCharAt: "Set Character at Index",
v2SetCharAtDesc: "Set Character at Index {{index}} in {{source}} to {{value}} => {{outputVar}}",
v2SplitString: "Split String",
v2SplitStringDesc: "Split {{source}} by {{delimiter}} => {{outputVar}}",
v2GetCharacterDesc: "Get Character Description",
v2GetCharacterDescDesc: "Get Character Description => {{outputVar}}",
v2SetCharacterDesc: "Set Character Description",
v2SetCharacterDescDesc: "Set Character Description to {{value}}",
v2MakeArrayVar: "Make Array Variable",
v2MakeArrayVarDesc: "Make Array Variable {{var}}",
v2GetArrayVarLength: "Get Array Variable Length",
v2GetArrayVarLengthDesc: "Get Length of Array Variable {{var}} => {{outputVar}}",
v2GetArrayVar: "Get Array Variable",
v2GetArrayVarDesc: "Get Value at Index {{index}} from Array Variable {{var}} => {{outputVar}}",
v2SetArrayVar: "Set Array Variable",
v2SetArrayVarDesc: "Set Value at Index {{index}} in Array Variable {{var}} to {{value}}",
v2PushArrayVar: "Add to Array Variable",
v2PushArrayVarDesc: "Add {{value}} to Array Variable {{var}}",
v2PopArrayVar: "Remove last value from Array Variable and get",
v2PopArrayVarDesc: "Remove last value from Array Variable {{var}} => {{outputVar}}",
v2ShiftArrayVar: "Remove first value from from Array Variable and get",
v2ShiftArrayVarDesc: "Remove first value from Array Variable {{var}} => {{outputVar}}",
v2UnshiftArrayVar: "Add to Array Variable as first value",
v2UnshiftArrayVarDesc: "Add {{value}} as first value of Array Variable {{var}}",
v2SpliceArrayVar: "Add to Array Variable in Index",
v2SpliceArrayVarDesc: "Add {{value}} as {{start}} value of Array Variable {{var}}",
v2SliceArrayVar: "Slice Array Variable",
v2SliceArrayVarDesc: "Slice Array Variable {{var}} from {{start}} to {{end}} => {{outputVar}}",
v2GetIndexOfValueInArrayVar: "Get Index of Value in Array Variable",
v2GetIndexOfValueInArrayVarDesc: "Get Index of {{value}} in Array Variable {{var}} => {{outputVar}}",
v2RemoveIndexFromArrayVar: "Remove Index from Array Variable",
v2RemoveIndexFromArrayVarDesc: "Remove Value at Index {{index}} from Array Variable {{var}}",
v2ConcatString: "Concatenate Strings",
v2ConcatStringDesc: "Concatenate {{source1}} and {{source2}} => {{outputVar}}",
v2GetLastUserMessage: "Get Last User Message",
v2GetLastUserMessageDesc: "Get Last User Message => {{outputVar}}",
v2GetLastCharMessage: "Get Last Character Message",
v2GetLastCharMessageDesc: "Get Last Character Message => {{outputVar}}",
v2GetFirstMessage: "Get First Message",
v2GetFirstMessageDesc: "Get First Message => {{outputVar}}",
v2GetAlertInput: "Get Alert Input",
v2GetAlertInputDesc: "Get Alert Input => {{outputVar}}",
v2UnsupportedTrigger: "Unsupported Trigger",
v2UnsupportedTriggerDesc: "Unsupported Trigger",
v2GetDisplayState: "Get Display State",
v2GetDisplayStateDesc: "Get Display State => {{outputVar}}",
v2SetDisplayState: "Set Display State",
v2SetDisplayStateDesc: "Set Display State to {{value}}",
},
confirm: "Confirm",
goback: "Go Back",
botSettings:'Bot Settings',
@@ -843,4 +966,22 @@ export const languageEnglish = {
showPromptComparison: "Show Prompt Comparison",
hypaV3Desc: "HypaMemory V3 is a long-term memory system that use both summarized data and vector search.",
inlayErrorResponse: "Inlay Error Response",
triggerOn: "Trigger On",
noConfig: "No Config",
varName: "Variable Name",
var: "Variable",
condition: "Condition",
trigger: "Trigger",
outputVar: "Output Variable",
source: "Source",
cmd: "Command",
sysStart: "System Start",
sysHistoryEnd: "System History End",
sysPromptEnd: "System Prompt End",
target: "Target",
addElse: "Add Else",
min: "Min",
max: "Max",
delimiter: "Delimiter",
deleteCount: "Delete Count",
}