From 24aa66a2f996eaf87aad870e3eb8a08860768498 Mon Sep 17 00:00:00 2001 From: HZG System Date: Mon, 29 Jun 2026 16:59:15 +0800 Subject: [PATCH 01/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20[=E5=BA=94=E7=94=A8=E8=AE=BE=E7=BD=AE]","Messag?= =?UTF-8?q?eType":1,"Modules":[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index 06ab323..20a906d 100644 --- a/.collaboration +++ b/.collaboration @@ -183,8 +183,18 @@ }, { "ModuleName": "ApplicationSetting", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-29T16:59:15.5452592+08:00", "ModuleType": 8, - "IconType": 10 + "IconType": 10, + "ToRemoveFiles": [ + "ApplicationSettings.json", + "favicon.ico" + ] }, { "ModuleName": "Theme", -- Gitee From 044717672ffb5cec34dbcce618a69e199b55593f Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 10:09:44 +0800 Subject: [PATCH 02/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20sys=5Flog,=20chat=5Flog,=20[=E9=99=84=E4=BB=B6]?= =?UTF-8?q?","MessageType":1,"Modules":[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index 20a906d..4ed0fc8 100644 --- a/.collaboration +++ b/.collaboration @@ -1,14 +1,34 @@ [ { "ModuleName": "Table/chat_log", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:09:44.1050806+08:00", "ModuleType": 7, "IconType": 24, + "ToRemoveFiles": [ + "Tables\\chat_log.json", + "ForguncyDB.sqlite3" + ], "ExclusiveType": 0 }, { "ModuleName": "Table/sys_log", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:09:44.1050095+08:00", "ModuleType": 7, "IconType": 24, + "ToRemoveFiles": [ + "Tables\\sys_log.json", + "ForguncyDB.sqlite3" + ], "ExclusiveType": 0 }, { @@ -258,8 +278,20 @@ }, { "ModuleName": "Upload", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:09:44.1060139+08:00", "ModuleType": 26, - "IconType": 30 + "IconType": 30, + "ToRemoveFiles": [ + "Upload\\.arsenal-keep", + "Upload\\agents-out", + "Upload\\aios-agent-outbox", + "Upload\\arsenal\\data\\1779769183737.sqlite3" + ] }, { "ModuleName": "PublishConfiguration", -- Gitee From ebfd4970e52ef277aa271aa8e222cc6573e958d1 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 10:29:42 +0800 Subject: [PATCH 03/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20index","MessageType":1,"Modules":[],"Version":"?= =?UTF-8?q?v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index 4ed0fc8..6a1e6ce 100644 --- a/.collaboration +++ b/.collaboration @@ -350,8 +350,20 @@ }, { "ModuleName": "PCPage/index", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:29:42.7230006+08:00", "ModuleType": 1, - "IconType": 1 + "IconType": 1, + "ToRemoveFiles": [ + "Pages\\index.json", + "Pages\\index.rd", + "Pages\\fd3aa45e8162433b9f76045917133e8.json", + "Pages\\fd3aa45e8162433b9f76045917133e8.rd" + ] }, { "ModuleName": "Image/robot (1).png", -- Gitee From 95c16df09c692bf24ef67526289abeb75af767a7 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 10:46:39 +0800 Subject: [PATCH 04/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20sendMessage","MessageType":1,"Modules":[],"Vers?= =?UTF-8?q?ion":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.collaboration b/.collaboration index 6a1e6ce..c38e548 100644 --- a/.collaboration +++ b/.collaboration @@ -183,8 +183,17 @@ }, { "ModuleName": "ServerCommand/sendMessage", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:46:39.5486503+08:00", "ModuleType": 15, - "IconType": 15 + "IconType": 15, + "ToRemoveFiles": [ + "ServerCommands\\会话\\sendMessage.json" + ] }, { "ModuleName": "ServerCommand/sendFile", @@ -355,7 +364,7 @@ "UserName": "XA-GCSCN-WILL\\NingWei", "Email": "will.ning@grapecity.com" }, - "LockDateTime": "2026-06-30T10:29:42.7230006+08:00", + "LockDateTime": "2026-06-30T10:46:39.5490226+08:00", "ModuleType": 1, "IconType": 1, "ToRemoveFiles": [ -- Gitee From d2ace4dd35e4cd102e1b7f7857012bc7af0a3416 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 10:48:11 +0800 Subject: [PATCH 05/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20sendFile,=20uploadFile","MessageType":1,"Module?= =?UTF-8?q?s":[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index c38e548..46a04fc 100644 --- a/.collaboration +++ b/.collaboration @@ -197,8 +197,17 @@ }, { "ModuleName": "ServerCommand/sendFile", + "State": 2, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:48:11.1093858+08:00", "ModuleType": 15, - "IconType": 15 + "IconType": 15, + "ToRemoveFiles": [ + "ServerCommands\\会话\\sendFile.json" + ] }, { "ModuleName": "ServerCommandPrivate/onRecieved", @@ -418,5 +427,16 @@ "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", "ModuleType": 27, "IconType": 16 + }, + { + "ModuleName": "ServerCommandPrivate/uploadFile", + "State": 3, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T10:48:11.109398+08:00", + "ModuleType": 27, + "IconType": 16 } ] \ No newline at end of file -- Gitee From 18ab762c85dfb83345211c9da38ac725834b6685 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 13:33:57 +0800 Subject: [PATCH 06/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20ensureMQTTSubscription","MessageType":1,"Module?= =?UTF-8?q?s":[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index 46a04fc..101e82a 100644 --- a/.collaboration +++ b/.collaboration @@ -425,8 +425,17 @@ }, { "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T13:33:57.8015616+08:00", "ModuleType": 27, - "IconType": 16 + "IconType": 16, + "ToRemoveFiles": [ + "ServerCommands\\监听\\ensureMQTTSubscription.json" + ] }, { "ModuleName": "ServerCommandPrivate/uploadFile", -- Gitee From 3924f20a35cae10b0189db68f0d50ce1bbdd5ea1 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 13:35:01 +0800 Subject: [PATCH 07/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20ensureMQTTConnection","MessageType":1,"Modules"?= =?UTF-8?q?:[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.collaboration b/.collaboration index 101e82a..7c45cb8 100644 --- a/.collaboration +++ b/.collaboration @@ -420,8 +420,17 @@ }, { "ModuleName": "ServerCommandPrivate/ensureMQTTConnection", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T13:35:01.5555846+08:00", "ModuleType": 27, - "IconType": 16 + "IconType": 16, + "ToRemoveFiles": [ + "ServerCommands\\监听\\ensureMQTTConnection.json" + ] }, { "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", -- Gitee From f0f24f589959704beddc1887f10b1335a45a29d3 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 13:38:19 +0800 Subject: [PATCH 08/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20onRecieved","MessageType":1,"Modules":[],"Versi?= =?UTF-8?q?on":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.collaboration b/.collaboration index 7c45cb8..0bf146b 100644 --- a/.collaboration +++ b/.collaboration @@ -211,8 +211,17 @@ }, { "ModuleName": "ServerCommandPrivate/onRecieved", + "State": 1, + "LockedBy": { + "UserName": "XA-GCSCN-WILL\\NingWei", + "Email": "will.ning@grapecity.com" + }, + "LockDateTime": "2026-06-30T13:38:19.814676+08:00", "ModuleType": 27, - "IconType": 16 + "IconType": 16, + "ToRemoveFiles": [ + "ServerCommands\\监听\\onRecieved.json" + ] }, { "ModuleName": "Notification/MessageRecieved", @@ -439,7 +448,7 @@ "UserName": "XA-GCSCN-WILL\\NingWei", "Email": "will.ning@grapecity.com" }, - "LockDateTime": "2026-06-30T13:33:57.8015616+08:00", + "LockDateTime": "2026-06-30T13:38:19.8147033+08:00", "ModuleType": 27, "IconType": 16, "ToRemoveFiles": [ -- Gitee From 9c0e6191932b5da89227774e540d1839355696e8 Mon Sep 17 00:00:00 2001 From: HZG System Date: Tue, 30 Jun 2026 13:41:27 +0800 Subject: [PATCH 09/10] =?UTF-8?q?{"Message":"=E7=AD=BE=E5=87=BA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20:=20","MessageType":1,"Modules":[],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.collaboration b/.collaboration index 0bf146b..640a627 100644 --- a/.collaboration +++ b/.collaboration @@ -443,12 +443,12 @@ }, { "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", - "State": 1, + "State": 2, "LockedBy": { "UserName": "XA-GCSCN-WILL\\NingWei", "Email": "will.ning@grapecity.com" }, - "LockDateTime": "2026-06-30T13:38:19.8147033+08:00", + "LockDateTime": "2026-06-30T13:41:27.0387652+08:00", "ModuleType": 27, "IconType": 16, "ToRemoveFiles": [ -- Gitee From 5c79c0fd708d12c755bb9b24d89e72f0194225a1 Mon Sep 17 00:00:00 2001 From: "XA-GCSCN-WILL\\NingWei" Date: Tue, 30 Jun 2026 16:03:46 +0800 Subject: [PATCH 10/10] =?UTF-8?q?{"Message":"=E4=BC=98=E5=8C=96=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E9=80=BB=E8=BE=91","MessageType":2,"Modules":[{"State?= =?UTF-8?q?":1,"Type":7,"IconType":24,"Name":"Table/chat=5Flog","Exclusive?= =?UTF-8?q?Type":0},{"State":1,"Type":7,"IconType":24,"Name":"Table/sys=5F?= =?UTF-8?q?log","ExclusiveType":0},{"State":1,"Type":15,"IconType":15,"Nam?= =?UTF-8?q?e":"ServerCommand/sendMessage"},{"State":2,"Type":15,"IconType"?= =?UTF-8?q?:15,"Name":"ServerCommand/sendFile"},{"State":1,"Type":27,"Icon?= =?UTF-8?q?Type":16,"Name":"ServerCommandPrivate/onRecieved"},{"State":1,"?= =?UTF-8?q?Type":8,"IconType":10,"Name":"ApplicationSetting"},{"State":1,"?= =?UTF-8?q?Type":26,"IconType":30,"Name":"Upload"},{"State":1,"Type":1,"Ic?= =?UTF-8?q?onType":1,"Name":"PCPage/index"},{"State":1,"Type":27,"IconType?= =?UTF-8?q?":16,"Name":"ServerCommandPrivate/ensureMQTTConnection"},{"Stat?= =?UTF-8?q?e":2,"Type":27,"IconType":16,"Name":"ServerCommandPrivate/ensur?= =?UTF-8?q?eMQTTSubscription"},{"State":3,"Type":27,"IconType":16,"Name":"?= =?UTF-8?q?ServerCommandPrivate/uploadFile"}],"Version":"v1"}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .collaboration | 127 +---- ApplicationSettings.json | 11 +- ForguncyDB.sqlite3 | Bin 20480 -> 20480 bytes Pages/index.json | 161 ++++-- .../sendMessage.json" | 165 +++++- .../\344\274\232\350\257\235/uploadFile.json" | 280 +--------- .../ensureMQTTConnection.json" | 99 +++- .../ensureMQTTSubscription.json" | 139 ----- .../\347\233\221\345\220\254/onRecieved.json" | 487 ++++++++++-------- 9 files changed, 659 insertions(+), 810 deletions(-) rename "ServerCommands/\344\274\232\350\257\235/sendFile.json" => "ServerCommands/\344\274\232\350\257\235/uploadFile.json" (47%) delete mode 100644 "ServerCommands/\347\233\221\345\220\254/ensureMQTTSubscription.json" diff --git a/.collaboration b/.collaboration index 640a627..08e2586 100644 --- a/.collaboration +++ b/.collaboration @@ -1,34 +1,14 @@ [ { "ModuleName": "Table/chat_log", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:09:44.1050806+08:00", "ModuleType": 7, "IconType": 24, - "ToRemoveFiles": [ - "Tables\\chat_log.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { "ModuleName": "Table/sys_log", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:09:44.1050095+08:00", "ModuleType": 7, "IconType": 24, - "ToRemoveFiles": [ - "Tables\\sys_log.json", - "ForguncyDB.sqlite3" - ], "ExclusiveType": 0 }, { @@ -183,45 +163,13 @@ }, { "ModuleName": "ServerCommand/sendMessage", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:46:39.5486503+08:00", "ModuleType": 15, - "IconType": 15, - "ToRemoveFiles": [ - "ServerCommands\\会话\\sendMessage.json" - ] - }, - { - "ModuleName": "ServerCommand/sendFile", - "State": 2, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:48:11.1093858+08:00", - "ModuleType": 15, - "IconType": 15, - "ToRemoveFiles": [ - "ServerCommands\\会话\\sendFile.json" - ] + "IconType": 15 }, { "ModuleName": "ServerCommandPrivate/onRecieved", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T13:38:19.814676+08:00", "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\监听\\onRecieved.json" - ] + "IconType": 16 }, { "ModuleName": "Notification/MessageRecieved", @@ -230,18 +178,8 @@ }, { "ModuleName": "ApplicationSetting", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-29T16:59:15.5452592+08:00", "ModuleType": 8, - "IconType": 10, - "ToRemoveFiles": [ - "ApplicationSettings.json", - "favicon.ico" - ] + "IconType": 10 }, { "ModuleName": "Theme", @@ -305,20 +243,8 @@ }, { "ModuleName": "Upload", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:09:44.1060139+08:00", "ModuleType": 26, - "IconType": 30, - "ToRemoveFiles": [ - "Upload\\.arsenal-keep", - "Upload\\agents-out", - "Upload\\aios-agent-outbox", - "Upload\\arsenal\\data\\1779769183737.sqlite3" - ] + "IconType": 30 }, { "ModuleName": "PublishConfiguration", @@ -377,20 +303,8 @@ }, { "ModuleName": "PCPage/index", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:46:39.5490226+08:00", "ModuleType": 1, - "IconType": 1, - "ToRemoveFiles": [ - "Pages\\index.json", - "Pages\\index.rd", - "Pages\\fd3aa45e8162433b9f76045917133e8.json", - "Pages\\fd3aa45e8162433b9f76045917133e8.rd" - ] + "IconType": 1 }, { "ModuleName": "Image/robot (1).png", @@ -429,40 +343,11 @@ }, { "ModuleName": "ServerCommandPrivate/ensureMQTTConnection", - "State": 1, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T13:35:01.5555846+08:00", - "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\监听\\ensureMQTTConnection.json" - ] - }, - { - "ModuleName": "ServerCommandPrivate/ensureMQTTSubscription", - "State": 2, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T13:41:27.0387652+08:00", "ModuleType": 27, - "IconType": 16, - "ToRemoveFiles": [ - "ServerCommands\\监听\\ensureMQTTSubscription.json" - ] + "IconType": 16 }, { "ModuleName": "ServerCommandPrivate/uploadFile", - "State": 3, - "LockedBy": { - "UserName": "XA-GCSCN-WILL\\NingWei", - "Email": "will.ning@grapecity.com" - }, - "LockDateTime": "2026-06-30T10:48:11.109398+08:00", "ModuleType": 27, "IconType": 16 } diff --git a/ApplicationSettings.json b/ApplicationSettings.json index 37f6468..9d34ab4 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 GIT binary patch delta 35 jcmZozz}T>Wae}mV@BbP2@CuIakd6N delta 35 icmZozz}T>Wae}lU0}zOS2nb+gn5bjS$gnYCfj> \"&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 b81ec4b..0000000 --- "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 ac0d7f3..16f24af 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" } ] }, -- Gitee