diff --git a/.collaboration b/.collaboration index 06ab323808f32d12094e769d573e570404b89b47..08e2586071a00441b6c9c7d89e9983630159edd9 100644 --- a/.collaboration +++ b/.collaboration @@ -166,11 +166,6 @@ "ModuleType": 15, "IconType": 15 }, - { - "ModuleName": "ServerCommand/sendFile", - "ModuleType": 15, - "IconType": 15 - }, { "ModuleName": "ServerCommandPrivate/onRecieved", "ModuleType": 27, @@ -352,7 +347,7 @@ "IconType": 16 }, { - "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", + "ModuleName": "ServerCommandPrivate/uploadFile", "ModuleType": 27, "IconType": 16 } diff --git a/ApplicationSettings.json b/ApplicationSettings.json index 37f6468214946da5398c982dc57a81915c317837..9d34ab4a6d6b89be44fe78e0ce79dd590377b97f 100644 --- a/ApplicationSettings.json +++ b/ApplicationSettings.json @@ -13,17 +13,17 @@ }, { "Name": "AIOS_MQTT_CHANNEL_PASSWORD", - "Value": "aebewoa8GTJuPitZZ0j8K1qnnCWWT56z", + "Value": "R0CSnz2EPJJG4Fh3qhG3AZM2Pov8g_6J", "Remark": "" }, { "Name": "AIOS_S3_SECRET_ACCESS_KEY", - "Value": "F5GM6xW0aOHbypNhFDxQdwiP0yfNQZf6", + "Value": "SJ5ZkfCJZ4P86gbER9zWf-0mad2u6Jc7", "Remark": "" }, { "Name": "AIOS_MANAGEMENT_CONSOLE_TOKEN", - "Value": "sk-E3Sa19awL2GfJQdKjHWKXdL2", + "Value": "sk-1234567890qwertyuiop", "Remark": "" }, { @@ -80,6 +80,11 @@ "Name": "MQTT_CONNECTION_NAME", "Value": "aios_conn_", "Remark": "" + }, + { + "Name": "MQTT_TOPIC_FILTER", + "Value": "aios/agent/#", + "Remark": "" } ], "WebSitePort": 27964, diff --git a/ForguncyDB.sqlite3 b/ForguncyDB.sqlite3 index 2707a515da1800ad2006a42cd5401ab02d333377..bf20f49f3e917a03c330eb426fa2e24883b409df 100644 Binary files a/ForguncyDB.sqlite3 and b/ForguncyDB.sqlite3 differ diff --git a/Pages/index.json b/Pages/index.json index b5cbe6056b916fedf579a21ca1ae33cad909bf1b..19d88ab5561aee81b387a86531be4d4a330d3a19 100644 --- a/Pages/index.json +++ b/Pages/index.json @@ -406,11 +406,46 @@ "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=index!新消息.内容" } + }, + { + "$type": "Forguncy.Model.RequestServerCommandListviewParam, ServerDesignerCommon", + "ParamName": "files", + "RequestServerCommandListviewParamType": 0, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=index!pendingFiles" + }, + "Columns": [ + { + "ArrayItemName": "name" + }, + { + "ArrayItemName": "attachment" + } + ] } ], "RefreshAfterFinish": true, "CheckDataValidation": true, "BreakpointIdentity": "d453b778-209b-4067-943a-605ef8eedf13" + }, + { + "$type": "CollectionOperationKit.ClientSideArrayOp, CollectionOperationKit", + "OutParamaterName": "empty", + "BreakpointIdentity": "6fde28bf-dd73-4b63-82b4-6e436628089e" + }, + { + "$type": "Forguncy.Model.SetNormalPagePropertyValueCommand, ServerDesignerCommon", + "UserControlProperties": [ + { + "PropertyName": "pendingFiles", + "PropertyValue": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=index!empty" + } + } + ], + "BreakpointIdentity": "b2f98662-7eba-412f-ada9-8783cb9482ec" } ], "ParamProperties": { @@ -428,37 +463,38 @@ "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", "Commands": [ { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "sendFile", - "Parameters": [ + "$type": "CollectionOperationKit.ClientSideObjectOp, CollectionOperationKit", + "OperationParamaterPairs": [ { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "agentId", + "Name": "name", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=index!currentAgentId" + "SerializeProperty": "=index!文件名" } }, { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "attachment", + "Name": "attachment", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=index!附件值" } - }, - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "fileName", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=index!文件名" - } } ], - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "6ce57f08-df1e-4436-9bb0-0a785f607895" + "OutParamaterName": "file", + "BreakpointIdentity": "2fc629a4-cee8-4628-b0ba-455a5f58fb74" + }, + { + "$type": "CollectionOperationKit.ClientSideArrayOp, CollectionOperationKit", + "Operation": 4, + "InParamaterName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=index!pendingFiles" + }, + "OperationParamaterAName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=index!file" + }, + "BreakpointIdentity": "24e49eec-ff9f-4c94-8829-316fd99bf39c" }, { "$type": "Forguncy.Model.OperateCellTypeCommand, ServerDesignerCommon", @@ -1107,6 +1143,10 @@ "Name": "availableAgents", "DefaultValue": "", "IsPrivate": true + }, + { + "Name": "pendingFiles", + "IsPrivate": true } ], "CommandDefinitions": [], @@ -1118,17 +1158,34 @@ "ConditionAndCommandPairList": [ { "Condition": { - "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", - "param": { - "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", - "cellLocations": [ - { - "SerializeProperty": "=index!currentAgentId" - } - ] - }, - "value": "%Null%", - "compareType": 1 + "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", + "SubConditions": [ + { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=index!属性名" + } + ] + }, + "value": "currentAgentId" + }, + { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=index!新值" + } + ] + }, + "value": "%Null%", + "compareType": 1 + } + ] }, "CommandList": [ { @@ -1230,11 +1287,41 @@ } }, "BreakpointIdentity": "c39e10b6-fe25-45ba-be17-e0928ae1d6b9" + }, + { + "$type": "CollectionOperationKit.ClientSideArrayOp, CollectionOperationKit", + "OutParamaterName": "empty", + "BreakpointIdentity": "988e5f03-2154-4488-88e3-1e7339d8d7c4" + }, + { + "$type": "Forguncy.Model.SetNormalPagePropertyValueCommand, ServerDesignerCommon", + "UserControlProperties": [ + { + "PropertyName": "pendingFiles", + "PropertyValue": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=index!empty" + } + } + ], + "BreakpointIdentity": "2951cc2e-a8b3-464d-ac31-4d7e62d814d0" } ], - "ID": "997c4c7a-52c3-4524-9e38-7d06f6ad987b" + "ID": "a06b0abb-7687-4442-be03-e367487d6797" }, { + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionPageElementParam, ServerDesignerCommon", + "cellLocations": [ + { + "SerializeProperty": "=index!属性名" + } + ] + }, + "value": "currentAgentId" + }, "CommandList": [ { "$type": "Forguncy.Model.SetCellPropertyCommand, ServerDesignerCommon", @@ -1256,13 +1343,13 @@ "Value": false } ], - "BreakpointIdentity": "0bc84e4f-cdff-49f6-a55a-1a5a36726e1f" + "BreakpointIdentity": "ffd3c06f-4c95-461d-9b97-2247bc281668" } ], - "ID": "b88bd8ce-4f90-4b93-a740-7de44af6e4f2" + "ID": "816d432b-03b1-4148-8b7b-c96762716a3b" } ], - "BreakpointIdentity": "854ef42b-0fa8-41ac-870c-8c780d4d5c9f" + "BreakpointIdentity": "e8b572ec-1028-4cfd-a6ed-f6df2c177d37" } ], "ParamProperties": { @@ -1422,13 +1509,13 @@ "BreakpointIdentity": "0d2291fc-f197-425c-8b30-b09665b81af1" } ], - "ID": "7aa09c2a-0421-4705-8f25-ccbae4764454" + "ID": "b531eb09-56aa-4414-8dcb-7abbd892d3a8" } ], "BreakpointIdentity": "b2043636-3fb5-4af9-9710-cea6c192facd" } ], - "ID": "a180de65-de14-43f0-850d-093f200ac04a" + "ID": "a0fa4822-462c-482b-8e87-cb2075c18317" } ], "BreakpointIdentity": "04ae65ca-194c-4ade-8869-ec54fc962fda" @@ -1471,4 +1558,4 @@ "Formula": "index!$A$8" } ] -}//0NxraxdTkkgmXX0I0f+twATaj/hHUO29nv32TBTbe1xziTb50JfX8m5AGrpbw26uh1wIuDNDcghj5zW59yEmMjZOpqDU5JU3hNVdiyl4nvXrpa6cHX1sU+3/cGFO0ZV1NSYXfLAk4BQ1lkn0DbXvKXY9WhU4Ack9+CuqiY+qaQelJKfOuHtoAE15JeKN2rUa6JcpL+EG7YeD6cRstAVvtlx0I/QgDNXi27/lTKo2bm4TTA80pfnIXkb0uWX39PZk20RV54m6eerL3kK562Y9eYGy8RDdkYl1ajoRfijTnbpMYKS2LCd9sPiBJKo1/RJwi2f3jTYt5/zXrd4k4Ad+kkWawTFeSdLU9+MTLyDCpNswkh26pPgR/QCOFuvb8XyKtTVGxDcOd+kJFaRhgyd5Yr8ewfqo62LYr7OTFnLGw7QSM0MiFEq6mQpk6DpZTGmlxkd3d5IN2PCg0PMO7nndhBUY7YYvhsNkx1+JzcgxeRsUEVXJv1b7L/SeD60hsp7sjYufJOE8rfiBhw7EbhwZEf7ucdd29tVt3/GWrbl5q63xkaSwYjIkuTevu1zv8TnJ27v4CI2efhW5DzNzVxuShUl3suIBHUsD1h+DrlFUJHRztA5AUQ7dGuxmMMSxF0ap+m082jeko9fwefA2gRwYHCtz0v5Vw9A8DEF1PJJYWJvLKnpCS33fCnnMXAAbhvcatKJ3/IXahIlxjt0B/S0JWn6T2m4ENXDMvWzihM3hFru2CxUZ7Fy7IpH0oVuVj9Vnq2c23UrES1I/jW1wG5B3RL2wEe+RAJUxdcfXdF2fpR1DGF5vbspc97WWecnPz2HLxCq1zhr8OqAhu8xEWa60zEhwKwLsC8slZEXnrwzX5c0d0H/KeLh0ADC7f2/t6EIwleIX2pB0cGM6GVVjbxbo4MjEcyGNRJiz7ECiI1Glo8gIrOAIbSzTJQs44tqG0Z/gQzfFTo6gK0j2XxrTi0gjndbPNjoGECfdHguzY27okv/lFlo3OT0rKMkkYq4VMiyhJQ7P5ANR+9NnbOhWjrMAtAkEDURyj5QDktnLdUJJYK3FK9K7s2E0+7Auh86Bt2HieToVK4Ytf7XJ0n5w2nDTwRB9BGuag94Cxemi4ZCTlSbM1hOc297pWqoa4xct0QFEk4U2jy6PWJkiN/GN+E6wCZLR2aHMqMkI94YqJ07K+yuVwFbjEx14AANxniM0LTEUJBpESwwRy2p4L1LdhVJwUDfVqlDEclVFP5cOUSc/yusPTJy/tyBkO7+3dAbYbJlZ0HBA4UVHT5GwFBSBkzPc+E/QvdoW3r72RJ59NBqpPZSK3oRFad4LXuq7rSR3Asoe3idJGEvIy2zmD92zO0krs+W4bJ5pKxP6zmGGn7jX3vqF1jsMpjihNaI+lhM0Evk0a0qwL1wXTBIsdXO6i73/BlM0A+h3KnS5m5IgCp7x4/5Q97esir+u98CpIoZ3/Fp1Z9OePyMnXDCLhHuSSYsTTz98fPGLg7xrrQIFKxzFK4bDjDJNtL/KWDmg1mcc1mtaqB29t1lUKA1Dpmtbql5+xAdiwLVkFHKZfJ/rmFKf+NuCcwxbrgUICrhaaQajkAcvZ+2D5fTjfM1VkdEOAGV+YreSvLO9S/7wH8PGN/LeniZxm1vi0wPC0aXBrCZOCTXZ1eRnsBBjEahXGcuhgLiPPHjjUNz+YEUosH8iASiJjOQejtH10eSgDRAHz+VO8FVv8NX9Yim41/x+TR8d+LDmL83X2Nhb2+U1uz0UhOuebhbVzYACTtM8PuV+V71Cu1caE5x+d0Hwf3+YK196mE8zi1yCM9kxfPuBzhcaD9OW3jFtJVNHZw2mgEoV2IqJC8wI7E8hIyDLa7NgJoHlEJdbDQhIoeao/RRxZjeryYLtg71x5ccpJgO6otNcVxjPmxcgRI2HwPJ9RfaJ3OUkpkLJJQ==|1944 \ No newline at end of file +}//p35rb1jHRok0s9SyfTl5IEBi8o3xsT92y2hldyJQn842ADNMmKDsxuhwIuODOOS+M6QqpXwz0z9FvIy/Vynm5q3JeFB40Gk6eYn0vgkSvvksBn9xPOMm+NReoEkZvRNvd1jowyNmmZz+e/EOR2ZcWMfaRTXPDavoPSvZ0qmDGwe2L5sF3iHwOaXlVJWeQGh119+XxKSOr+n+OIqF3s2OkTMUsCf8qCuvns3O4/TanI7fLDmRPXt79d57/WgQiXyKjKH+8I6Ss2xYkTCdqYpNWNwfSoZDV2p93jcLrWod5PQKXxM5byRMNVCGFPFgZpO5zPinwddWaBWL50+udhqCwgu0qdsB3Dr+vZ8aFp0OQ0kB6470fgt7UDitl1U7RORbOz9JAMUHsIA1UDh36FTkBwef/TXzxEN8A+2zEjsbFOT5YZWvjbquAaerS6fVNpjK/+zyK6l0B28sIpkPrn+cN1g0hiRFv7haxb0Y+fWB/9NMAtZCSWgT9uQ5xLYlgVa172UliiY2shb9pZpUYFZf58l5fwKqCXnHXmzDQW0wIt7Hle6YWHWulCUA9r8q6rUvgPer+yHNXKER6+xpUfSomalF8HebXgMYa3EFss+J6h5dyQN7Y/6JIWjXQxzH1RTB2XfgoAjQBieWNy4oD6Mh6qGugIiucBzMDUkzqtJzaR7l8rL0+BoKwAqmWPKbRw1NtvmwjKqkgjEze9R5w8Jv3gPQKjt49B1DLrQC6U0h9UxBptTtFt8JoRKfYjdlnPcYG3uYoXau7ioSTYRfvnTDKGcQrpGEkLfriegofpeg0xINzdggY9q04/n6MuWSH4uEXLJM4e6ZmTxm+FZyA/xEv1HwxeZ763S9GkvceMPFcyIMdXOYwDO+SsLminNc0SvXXowzxzIY5GNpPUgXfM+mbgocglLPGLTOkhKBuyO7aXyS72yWV4tS7JzDiLT0McaPmqIRuMTxETZEffqYIHvTd7SGbvHum/J3WkGkgcREMkpRaM2NvNUSxqHnT6GpQtSZ6iE26uFdfs6VReV/TX+XfwbEk+KHx+5j50QCP0pKPMNe6a9WsAOyujdz7uqEvA2YLc96PTGbv66IU6WOhrc5QmwE2PQVAlXgcGGd2iamCP8E3usbt2OyqTq3TV3GGl3OiLZV7BkqJyzvXjVkWxd1NknI4UTINdspdIRExdssHBEiEvn2mEM2oc94UByTHLLC+RCIKmaugDYJlEqtO/9PyTCoKpXqUI383gTMXhGiEeOx5CLv8aWyEcRbj2ztTH60oU8CTnksLT8tmnMTIKT769g7SbntbAeUPE5s+dRZYL32MlkvSzNOn9KUQrEWfY+NgnlFDlgl0Fv4DL9nQfwWbdCEizShkaHg8X92H4Ev6kCY2Bs+PeZ8X83DCROjGs4zh6/p51tVrn9Ol0DeM5q/bfUPZgrRvc7qDTVzCtRgpUX4M5YdadPT/6bmtLJe3VhGbP0DzcP4gCamzwo5GEfjwPcIDu3Kf7et1P5rpDp6WkdiX0BQqAYjelTFOQeVXlwVrlpv0UwcYGGRrrS+xnzo/2AyM082KPOp2hElHjui70T0YA34fPWomUOeD9DHZlZZJGr7/rt8LkM1HE9G8o+ipx7kn40NRXpp2/ZTViTBT+Wh8f+gEFJ0xviiZfzeYsxZuOmsU5pkDWUnx20o4wbRSsIsjJRechnFWVH1FBanJlxo6+8iTLNriHQ+qOYmzjBD6CxAl3EavURzuASXnm4dWQmTCADnYY6a2mXqsKS7iE6DLEpZ4WzA/PI2KvZBLobYlOC5O0VJzHl9lvvVQZP604beDiey6UpidowNknXp4/zmO+36DnulgfWUyMsGNBt2YphPbWo73iXx1xpdxtMaX8bKxw5XPueLqns+sSxtvD9L2/oT6tSJKUPTicL3rOxWw53tGU4IWi+eieIWVGSG1Q==|1944 \ No newline at end of file diff --git "a/ServerCommands/\344\274\232\350\257\235/sendMessage.json" "b/ServerCommands/\344\274\232\350\257\235/sendMessage.json" index a799b9896c9c42b8849ad4e084a2b53e55c8e5ff..258fb2e4a56d709e61557dc6f50a99eaf3e705d2 100644 --- "a/ServerCommands/\344\274\232\350\257\235/sendMessage.json" +++ "b/ServerCommands/\344\274\232\350\257\235/sendMessage.json" @@ -46,6 +46,33 @@ "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" } + }, + { + "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", + "Name": "files", + "DataValidationInfo": { + "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" + }, + "Type": 1, + "ArrayParamItems": { + "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ParameterItemSaveData, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.SaveLoad.ParameterItemSaveData, ServerDesignerCommon", + "Name": "name", + "DataValidationInfo": { + "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" + } + }, + { + "$type": "Forguncy.SaveLoad.ParameterItemSaveData, ServerDesignerCommon", + "Name": "attachment", + "DataValidationInfo": { + "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" + } + } + ] + } } ] } @@ -112,24 +139,44 @@ "BreakpointIdentity": "c338ae15-ad16-4d2d-8018-8153f5429b4e" }, { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "ensureMQTTSubscription", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "outboundTopic", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=outbound" - } + "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", + "ParamObject": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=text" + } + }, + "value": "/fix", + "compareType": 10 + }, + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", + "ParameterName": "text", + "ParameterValue": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"先重新读取 AGENTS.md,然后重新读取Skills列表。\"&text" + }, + "ID": "50c967974ce24e90a95d35e07f6e94d6", + "BreakpointIdentity": "544114ed-ea92-4a11-83da-44fd14a08883" + } + ] + }, + "ID": "fe1e9d90-2d20-47ad-b7a4-c0f339333c2e" } ] }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "5c13d9c6-c911-4ac5-89f1-0892c7c7669d" + "BreakpointIdentity": "ce36c68e-8516-46a9-9e66-70a0606e8987" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", @@ -144,11 +191,11 @@ "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=text" + "SerializeProperty": "=files.Count" } }, - "value": "/fix", - "compareType": 10 + "value": "0", + "compareType": 2 }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", @@ -158,18 +205,94 @@ "ParameterName": "text", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"先重新读取 AGENTS.md,然后重新读取Skills列表。\"&text" + "SerializeProperty": "=text&CHAR(10)&CHAR(13)&\"附件:\"" }, - "ID": "4cb764892c5c4c95934ff526b85cafa3", - "BreakpointIdentity": "544114ed-ea92-4a11-83da-44fd14a08883" + "ID": "3de5e1182472415f95fb1f5c24b8814c", + "BreakpointIdentity": "21b1e09e-5983-4e88-92a2-d70f3a9ee075" + }, + { + "$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon", + "LoopInfo": { + "$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon", + "LoopCount": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=files" + }, + "LoopItemParamName": "fileObj" + }, + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "uploadFile", + "Parameters": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "agentId", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=agentId" + } + }, + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "attachment", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=fileObj.attachment" + } + }, + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "fileName", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=fileObj.name" + } + } + ] + }, + "ReturnPropertiesTo": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "uri", + "ResultTo": { + "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", + "SerializeProperty": "uri" + } + } + ] + }, + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "ddc35038-ca52-43a1-b1b6-0ab1ee1c0260" + }, + { + "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", + "ParameterName": "text", + "ParameterValue": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=text&CHAR(10)&CHAR(13)&uri" + }, + "ID": "00cb13cdfd2b420488b73835c1530d45", + "BreakpointIdentity": "40602872-e060-4dcd-8ce8-3b847c4b177b" + } + ] + }, + "BreakpointIdentity": "7901c61c-8871-4502-98e8-a1c9b9c914e1" } ] }, - "ID": "1ce8f78d-4a65-4504-9756-f06aca264a8e" + "ID": "102ecadc-ad9f-48be-ad54-43ed21d1b7cf" } ] }, - "BreakpointIdentity": "ce36c68e-8516-46a9-9e66-70a0606e8987" + "BreakpointIdentity": "79e0a3d6-4b23-4b05-810e-8b490277fd6a" }, { "$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit", diff --git "a/ServerCommands/\344\274\232\350\257\235/sendFile.json" "b/ServerCommands/\344\274\232\350\257\235/uploadFile.json" similarity index 47% rename from "ServerCommands/\344\274\232\350\257\235/sendFile.json" rename to "ServerCommands/\344\274\232\350\257\235/uploadFile.json" index 620c102b7390ce36fafe89614e36056bb3ea1c0f..8f172247c2e8d4e3f03402cdd71bc359fcad2a2d 100644 --- "a/ServerCommands/\344\274\232\350\257\235/sendFile.json" +++ "b/ServerCommands/\344\274\232\350\257\235/uploadFile.json" @@ -1,35 +1,12 @@ { "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", - "Name": "sendFile", + "Name": "uploadFile", "Enabled": true, "Triggers": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", - "Permission": { - "$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon", - "PermissionData": { - "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", - "permissionResource": { - "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" - }, - "permissionBindings": { - "$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", - "roleNames": { - "$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib", - "$values": [ - "FGC_LoginUser" - ] - } - } - ] - } - } - }, + "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ @@ -62,82 +39,6 @@ "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "getSession", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "agentId", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=agentId" - } - } - ] - }, - "ReturnPropertiesTo": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "sessionId", - "ResultTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "sessionId" - } - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "inboundTopic", - "ResultTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "inboundTopic" - } - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "outboundTopic", - "ResultTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "outboundTopic" - } - } - ] - }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "7c015b59-4619-490c-855e-58aae46bba81" - }, - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "ensureMQTTConnection", - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "6c13e896-b563-4bee-8b01-f5375da45eae" - }, - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "ensureMQTTSubscription", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "outboundTopic", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=outboundTopic" - } - } - ] - }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "c13dbc25-b9c2-4c06-93f7-14aa5e30a627" - }, { "$type": "S3OSSConnector.ListBucket, S3OSSConnector", "ReturnTo": "BucketNameList", @@ -229,7 +130,7 @@ } ] }, - "ID": "3fc1cbca-24bd-472b-bacd-1844fe45fd93" + "ID": "fe875218-41da-4dbd-841d-a7dad8759020" } ] }, @@ -257,7 +158,7 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "8123a175-478c-41ce-8101-c76784eeb769" + "GUID": "eae04cc0-da68-498e-bde6-b5f92e575c11" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", @@ -270,7 +171,7 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "user_name", - "GUID": "dba20f78-3dca-4501-9fc8-357aa3200944" + "GUID": "631e705b-9cfb-4b81-bc65-c04d7d6c8ff3" }, "Value": "%CurrentUser.UserName%" } @@ -285,7 +186,7 @@ "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=agentId&\"/\"&RANDBETWEEN(1000000,99999999)&\"_\"&fileName" }, - "ID": "c8a2a2fc16854c3bbfeafd0199d59994", + "ID": "2887db39d9e34fd390ebb27bf169c75e", "BreakpointIdentity": "6cdf1c41-dadc-4933-981a-cb611c644d5b" }, { @@ -322,179 +223,40 @@ }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", - "ParameterName": "text", + "ParameterName": "uri", "ParameterValue": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=\"file_input://\"&AIOS_S3_AGENT_INBOX_BUCKET&\"/\"&remotePath" }, - "ID": "cd9a29716dca498d9c1f8640202ab08c", + "ID": "3e0b05aadf1b4def8f275e3951325e74", "BreakpointIdentity": "9fa3260c-f3f7-4931-8d3b-a1bee8d8b60b" }, { - "$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit", - "OperationParamaterPairs": { - "$type": "System.Collections.Generic.List`1[[CollectionOperationKit.PropertyValueObject, CollectionOperationKit]], System.Private.CoreLib", + "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", + "CustomReturns": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", - "Name": "senderId", - "Value": "%CurrentUser%" - }, - { - "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", - "Name": "text", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=text" - } - }, - { - "$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit", - "Name": "sessionId", + "$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon", + "ReturnPropertyName": "uri", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=sessionId" + "SerializeProperty": "=uri" } } ] }, - "OutParamaterName": "messageBody", - "BreakpointIdentity": "c310bf93-521c-46a6-91bc-60c2a287c12f" - }, - { - "$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand", - "SourceObject": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messageBody" - }, - "ToParameter": "messageInJSON", - "BreakpointIdentity": "9f3633f8-b80b-4ad4-9ad8-80c4a66102f2" - }, - { - "$type": "MQTTClient.MqttPublishCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "Topic": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=inboundTopic" - }, - "Payload": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messageInJSON" - }, - "QoS": 1, - "BreakpointIdentity": "209e3404-cf4f-4a88-a2c7-db1626e90e7b" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "263aa81d-a4f0-4b4c-815e-a37b47ff5c7e" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"Send file to \"&agentId&\" : \"&text" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "user_name", - "GUID": "f6013054-e75b-49a5-8060-40d6986a6353" - }, - "Value": "%CurrentUser.UserName%" - } - ] - }, - "BreakpointIdentity": "0b3b2897-a5da-4ff6-9436-aa17e0da1ad1" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "chat_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "session_id", - "GUID": "aaaf081f-dcda-49cd-b248-d010e4fdbefc" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=sessionId" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "role", - "GUID": "499dca1b-024c-413e-9255-4bd195b5399b" - }, - "Value": "user" - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "raw_message", - "GUID": "fd56b1f6-57d3-4fff-93af-386ff266e2fc" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=text" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "agent_id", - "GUID": "67361639-7168-40ac-9be2-f8167f01c04d" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=agentId" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "use_name", - "GUID": "63dbd34c-7eda-45ae-8e0f-b625519bdc8b" - }, - "Value": "%CurrentUser.UserName%" - } - ] - }, - "BreakpointIdentity": "9d610b9b-bbb4-4b71-83ec-c6bfc639b147" + "BreakpointIdentity": "15249253-f3ef-429a-a29e-1c00602e85f5" } ] }, "ReturnProperties": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [] + "$values": [ + { + "$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon", + "Name": "uri" + } + ] } } \ No newline at end of file diff --git "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" index ea3e3703c7bc6f55a6c82b8fe21fd658359998b3..613beb638f2ecb3bca051ee58ba89a2e95dbb881 100644 --- "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" +++ "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTConnection.json" @@ -84,7 +84,7 @@ }, "EnableRetry": true, "RetryCount": 600, - "ExecuteStatusCode": "subCode", + "ExecuteStatusCode": "connCode", "BreakpointIdentity": "3b26753c-dda3-4e4a-8b72-d6bbf3c36790" }, { @@ -100,11 +100,11 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "23ce3735-b5d4-42be-b5b5-de1745f41739" + "GUID": "ab68fedb-2add-4b91-b729-a04cd4dac4da" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"建立连接(\"&AIOS_SERVER_IP&\":\"&AIOS_MQTT_CHANNEL_PORT&\")>> \"&subCode" + "SerializeProperty": "=\"建立连接(\"&AIOS_SERVER_IP&\":\"&AIOS_MQTT_CHANNEL_PORT&\")>> \"&connCode" } }, { @@ -113,17 +113,106 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "user_name", - "GUID": "fc742300-e145-4aa6-af10-9f2deeedc72e" + "GUID": "d0d54c1b-79a7-4f42-9dfd-a08d366ebfb1" }, "Value": "%CurrentUser.UserName%" } ] }, "BreakpointIdentity": "ebda3b7e-f005-42e4-ad0b-a6a90ade11ac" + }, + { + "$type": "MQTTClient.MqttSubscribeCommand, MQTTClient", + "ConnectionName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_CONNECTION_NAME" + }, + "TopicName": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=MQTT_TOPIC_FILTER" + }, + "QoS": 1, + "ReceiveMessageCallBack": { + "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", + "Commands": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "onRecieved", + "Parameters": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "messageInJSON", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=接受消息" + } + }, + { + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "topic", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=接受主题" + } + } + ] + }, + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "849c0b9a-bd18-4e05-9aa3-0d1d091ead05" + } + ] + }, + "ParamProperties": { + "$type": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", + "receiveMessage": "接受消息", + "receiveTopic": "接受主题" + } + }, + "ExecuteStatusCode": "subCode", + "BreakpointIdentity": "a0b17679-dc01-4ae6-b9f6-430a5d884277" + }, + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "sys_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "log_entry", + "GUID": "dcaaa838-6ac0-45f8-b761-3f7f8189db4f" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"完成订阅(\"&MQTT_TOPIC_FILTER&\"):\"&subCode" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "user_name", + "GUID": "e87cce07-c4e7-4a7e-ba37-e7cec12692e7" + }, + "Value": "%CurrentUser.UserName%" + } + ] + }, + "BreakpointIdentity": "7f2ad70a-a91c-4459-97dc-e396b2f680d3" } ] }, - "ID": "2b9ee013-ccb2-4112-a888-b97520a49892" + "ID": "3790deaa-749b-4672-9a05-997f132f032d" } ] }, diff --git "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" "b/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" deleted file mode 100644 index b81ec4b7cb1e1b29ef90dcdfb946fe0e38ee03c9..0000000000000000000000000000000000000000 --- "a/ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" +++ /dev/null @@ -1,139 +0,0 @@ -{ - "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", - "Name": "ensureMQTTSubscription", - "Enabled": true, - "Triggers": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", - "Name": "outboundTopic", - "DataValidationInfo": { - "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" - } - } - ] - } - } - ] - }, - "Commands": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon", - "TryCommandPart": { - "$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon", - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "MQTTClient.MqttUnsubscribeTopicCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "TopicName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=outboundTopic" - }, - "BreakpointIdentity": "88d4b7ba-f7ec-4163-9e7d-89110c76e79b" - } - ] - } - }, - "BreakpointIdentity": "6994e41c-ea08-43a5-ac84-107f96adef94" - }, - { - "$type": "MQTTClient.MqttSubscribeCommand, MQTTClient", - "ConnectionName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=MQTT_CONNECTION_NAME" - }, - "TopicName": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=outboundTopic" - }, - "QoS": 1, - "ReceiveMessageCallBack": { - "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", - "Commands": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "onRecieved", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "messageInJSON", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=接受消息" - } - } - ] - }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "26296a3d-2254-4398-930c-008a1d09d588" - } - ] - }, - "ParamProperties": { - "$type": "System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib],[System.String, System.Private.CoreLib]], System.Private.CoreLib", - "receiveMessage": "接受消息", - "receiveTopic": "接受主题" - } - }, - "ExecuteStatusCode": "subCode", - "BreakpointIdentity": "127cd98a-11e7-45eb-b066-f4cfc3e381db" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "ec3721fd-55f0-4c24-832b-5497b415084e" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"重新建立监听(\"&outboundTopic&\") >> \"&subCode" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "user_name", - "GUID": "59e98127-8132-4939-86a9-d918408f8363" - }, - "Value": "%CurrentUser.UserName%" - } - ] - }, - "BreakpointIdentity": "467b0818-3bfb-4072-a4a3-71bbd8230af3" - } - ] - }, - "ReturnProperties": { - "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [] - } -} \ No newline at end of file diff --git "a/ServerCommands/\347\233\221\345\220\254/onRecieved.json" "b/ServerCommands/\347\233\221\345\220\254/onRecieved.json" index ac0d7f39ea034d0844445876b7213a8e3db9a965..16f24af4b3aa2f884ca01fed69809cd26499ddaa 100644 --- "a/ServerCommands/\347\233\221\345\220\254/onRecieved.json" +++ "b/ServerCommands/\347\233\221\345\220\254/onRecieved.json" @@ -17,6 +17,13 @@ "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" } + }, + { + "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", + "Name": "topic", + "DataValidationInfo": { + "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon" + } } ] } @@ -26,97 +33,6 @@ "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "ca3340f7-9e95-45d3-aeeb-9edc31cf01c2" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"收到AIOS发来的消息 >> \"&messageInJSON" - } - } - ] - }, - "BreakpointIdentity": "ef8669f4-ab12-433f-9e84-3a424e6ccac9" - }, - { - "$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand", - "JsonString": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messageInJSON" - }, - "SampleJson": "{\"senderId\":\"openclaw\",\"text\":\"...\",\"kind\":\"final\",\"sessionId\":\"conn-test2\",\"ts\":1700000000000}", - "ToParameter": "messsage", - "BreakpointIdentity": "e209415b-87b3-4a64-b7a3-6fef9a2e268e" - }, - { - "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", - "ServerCommandName": "getContextBySessionId", - "Parameters": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", - "ParamName": "sessionId", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messsage.sessionId" - } - } - ] - }, - "ResultErrorCodeTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "code" - }, - "ReturnPropertiesTo": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib", - "$values": [ - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "inboundTopic" - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "outboundTopic" - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "agentName" - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "agentId", - "ResultTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "agentId" - } - }, - { - "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", - "ResultPropertyName": "userName", - "ResultTo": { - "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", - "SerializeProperty": "userName" - } - } - ] - }, - "RefreshAfterFinish": true, - "CheckDataValidation": true, - "BreakpointIdentity": "b0ebe11b-9e88-4627-9f54-d020176406f2" - }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { @@ -130,11 +46,11 @@ "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=code" + "SerializeProperty": "=topic" } }, - "value": "0", - "compareType": 1 + "value": "/outbound", + "compareType": 8 }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", @@ -152,183 +68,304 @@ "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "sys_log", "ColumnName": "log_entry", - "GUID": "6dc22407-f5f8-4569-a8da-6feae97d293a" + "GUID": "59316b29-984a-48c9-b8a2-1c20efdc5df8" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"AIOS发来的消息中包含的会话不存在 >> \"&messsage.sessionId" + "SerializeProperty": "=\"收到消息 >> \"&messageInJSON" } } ] }, - "BreakpointIdentity": "59536136-f9a7-4122-beb1-609814b6476e" - } - ] - }, - "ID": "bfc01dbe-ecc8-4f1d-bc6d-5997fe879d8c" - }, - { - "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", - "CommandList": { - "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", - "$values": [ + "BreakpointIdentity": "177b2fcd-37eb-41d4-ae08-335d8db750f1" + }, { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "sys_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand", + "JsonString": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=messageInJSON" + }, + "SampleJson": "{\"senderId\":\"openclaw\",\"text\":\"...\",\"kind\":\"final\",\"sessionId\":\"conn-test2\",\"ts\":1700000000000}", + "ToParameter": "messsage", + "BreakpointIdentity": "950fc2aa-72de-4e4f-a48c-8467e4b73e6c" + }, + { + "$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon", + "ServerCommandName": "getContextBySessionId", + "Parameters": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "log_entry", - "GUID": "3d5ccb9b-f404-4225-8ec7-43b41dcf7a2c" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=\"将AIOS返回的消息发送给前端 >> \"&agentId" - } - }, - { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "sys_log", - "ColumnName": "user_name", - "GUID": "75c1600a-9254-4128-bf87-7d920b3ef667" - }, + "$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon", + "ParamName": "sessionId", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=userName" + "SerializeProperty": "=messsage.sessionId" } } ] }, - "BreakpointIdentity": "fec473af-c4c8-4591-b588-2447764add2d" - }, - { - "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", - "TableName": "chat_log", - "UpdateType": "add", - "UpdateBindingValues": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "ResultErrorCodeTo": { + "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", + "SerializeProperty": "code" + }, + "ReturnPropertiesTo": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "session_id", - "GUID": "e35de67d-5ca1-4e5e-949f-bd292a036b04" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messsage.sessionId" - } + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "inboundTopic" }, { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "role", - "GUID": "4a76db62-c9cb-4f2b-8a71-de2521040bce" - }, - "Value": "assistant" + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "outboundTopic" }, { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "raw_message", - "GUID": "37710a1f-040b-4744-99ba-1a2c89b4b7cb" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messsage.text" - } + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "agentName" }, { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "agent_id", - "GUID": "515cd8eb-a745-4fc8-b9ff-27c28deca6b4" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=agentId" + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "agentId", + "ResultTo": { + "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", + "SerializeProperty": "agentId" } }, { - "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", - "BindingInfo": { - "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", - "TableName": "chat_log", - "ColumnName": "use_name", - "GUID": "386dc07b-8e62-4c9b-8553-eaac90e131ab" - }, - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=userName" + "$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon", + "ResultPropertyName": "userName", + "ResultTo": { + "$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon", + "SerializeProperty": "userName" } } ] }, - "BreakpointIdentity": "26825d0a-d4c1-47e6-875b-d043f531ae8f" + "RefreshAfterFinish": true, + "CheckDataValidation": true, + "BreakpointIdentity": "84b11e3a-a8fd-4a6a-a544-6927e6c37b85" }, { - "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", - "NotificationName": "MessageRecieved", - "SendType": 1, - "UserNames": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=userName" - }, - "Params": { - "$type": "System.Collections.Generic.List`1[[Forguncy.Model.NotificationMessageParam, ServerDesignerCommon]], System.Private.CoreLib", + "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", + "ConditionAndCommandPairList": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { - "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", - "Name": "message", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messsage.text" - } - }, - { - "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", - "Name": "kind", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=messsage.kind" - } + "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", + "Condition": { + "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", + "param": { + "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", + "ParamObject": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=code" + } + }, + "value": "0", + "compareType": 1 + }, + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "sys_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "log_entry", + "GUID": "0d9978d0-79ab-48b1-a02b-9a44b519d609" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"消息中包含的会话不存在 >> \"&messsage.sessionId" + } + } + ] + }, + "BreakpointIdentity": "01820aa5-c33b-42f3-9e7c-c9da3634cbbd" + } + ] + }, + "ID": "8da16d89-83ca-4cae-b710-6ceb8e87e791" }, { - "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", - "Name": "agentId", - "Value": { - "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", - "SerializeProperty": "=agentId" - } + "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", + "CommandList": { + "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "sys_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "log_entry", + "GUID": "7eaec481-171e-48af-93a0-bc769400d3a3" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=\"将消息发送给前端 >> \"&agentId" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "sys_log", + "ColumnName": "user_name", + "GUID": "431f6065-803f-4dc2-976f-37aeb3e7b35d" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=userName" + } + } + ] + }, + "BreakpointIdentity": "faca08e3-0d8f-42dd-a6ae-5a378a15e91a" + }, + { + "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", + "TableName": "chat_log", + "UpdateType": "add", + "UpdateBindingValues": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "chat_log", + "ColumnName": "session_id", + "GUID": "ae8a242b-eeff-42de-88d4-c7bdd5ff7ffc" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=messsage.sessionId" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "chat_log", + "ColumnName": "role", + "GUID": "a5b54752-fdbf-4754-af70-516c0eaa2295" + }, + "Value": "assistant" + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "chat_log", + "ColumnName": "raw_message", + "GUID": "af3ad027-eb9e-4501-b768-12d8de5ff7d3" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=messsage.text" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "chat_log", + "ColumnName": "agent_id", + "GUID": "b7b82767-bee8-45a4-a70b-1f9829183195" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=agentId" + } + }, + { + "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", + "BindingInfo": { + "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", + "TableName": "chat_log", + "ColumnName": "use_name", + "GUID": "5895c36c-0c85-4e0a-881c-baa35989380b" + }, + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=userName" + } + } + ] + }, + "BreakpointIdentity": "479c948b-26d1-4f3e-b1e4-f091061f0500" + }, + { + "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", + "NotificationName": "MessageRecieved", + "SendType": 1, + "UserNames": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=userName" + }, + "Params": { + "$type": "System.Collections.Generic.List`1[[Forguncy.Model.NotificationMessageParam, ServerDesignerCommon]], System.Private.CoreLib", + "$values": [ + { + "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", + "Name": "message", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=messsage.text" + } + }, + { + "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", + "Name": "kind", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=messsage.kind" + } + }, + { + "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", + "Name": "agentId", + "Value": { + "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", + "SerializeProperty": "=agentId" + } + } + ] + }, + "ID": "e6a861c902b049969f4364424059a790", + "BreakpointIdentity": "1c18b58f-6773-4df1-8078-cd653bc36fde" + } + ] + }, + "ID": "278f256f-9556-4072-b681-9999775cd555" } ] }, - "ID": "85890ad1abe84585bd835725427973f5", - "BreakpointIdentity": "6f0738de-2170-4542-88eb-63bdf394e099" + "BreakpointIdentity": "45d5cef3-d6b4-4245-8e7b-3a2c72f5df79" } ] }, - "ID": "497fbd63-04a0-44b0-a806-3ee7f1e64115" + "ID": "a1e6a5ad-1a16-48ce-ab84-ba9e7da39c9a" } ] }, - "BreakpointIdentity": "2921017b-8a43-4c32-b401-82c1902b7f83" + "BreakpointIdentity": "1ab536ee-0de3-4f8f-a32b-84a1cef835a6" } ] },