@futdevpro/nts-dynamo 1.14.29 → 1.14.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +0 -3
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +20 -15
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +0 -2
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js.map +1 -1
- package/build/_modules/assistant/_collections/ass.util.d.ts +2 -2
- package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts +5 -9
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.js +9 -10
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts +26 -10
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.js +49 -4
- package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -1
- package/build/_modules/assistant/index.d.ts +1 -1
- package/build/_modules/assistant/index.d.ts.map +1 -1
- package/build/_modules/assistant/index.js +1 -1
- package/build/_modules/assistant/index.js.map +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-message.interface.js → bot-channel-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-command.interface.d.ts +2 -2
- package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +16 -13
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-channel.interface.js → bot-user-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +0 -7
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +10 -2
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts +67 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js +391 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts +1 -4
- package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.js +2 -5
- package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +3 -3
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js +2 -2
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts +59 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/{dyb-messaging-provider.service.js → dyb-messaging-provider.control-service.js} +130 -108
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.js +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts +55 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js +132 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.js +1 -3
- package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts +55 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js +132 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.js +1 -3
- package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts +8 -11
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.js +60 -15
- package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.d.ts +16 -17
- package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.js +60 -51
- package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.d.ts +17 -37
- package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.js +107 -263
- package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts +70 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js +16 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts +6 -9
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-routines.control-service.js +29 -9
- package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -1
- package/build/_modules/bot/index.d.ts +3 -7
- package/build/_modules/bot/index.d.ts.map +1 -1
- package/build/_modules/bot/index.js +9 -7
- package/build/_modules/bot/index.js.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.js +0 -5
- package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.d.ts +2 -2
- package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.js.map +1 -1
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +0 -9
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +0 -25
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.js +180 -125
- package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -1
- package/build/_modules/messaging/index.d.ts +0 -1
- package/build/_modules/messaging/index.d.ts.map +1 -1
- package/build/_modules/messaging/index.js +1 -1
- package/build/_modules/messaging/index.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +4 -4
- package/src/_modules/ai/_services/ai-llm.service-base.ts +2 -2
- package/src/_modules/ai/_services/ai-provider.service-base.ts +2 -1
- package/src/_modules/assistant/_collections/ass.util.ts +2 -2
- package/src/_modules/assistant/_services/ass-io.control-service.ts +17 -48
- package/src/_modules/assistant/_services/ass-main.control-service.ts +83 -32
- package/src/_modules/assistant/index.ts +1 -1
- package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +24 -0
- package/src/_modules/bot/_models/bot-command.interface.ts +2 -2
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +1 -1
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +18 -18
- package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +35 -0
- package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +8 -7
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +521 -0
- package/src/_modules/bot/_modules/discord-bot/index.ts +2 -5
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +8 -5
- package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +431 -0
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +1 -2
- package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.ts +186 -0
- package/src/_modules/bot/_modules/slack-bot/index.ts +1 -3
- package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.ts +186 -0
- package/src/_modules/bot/_modules/teams-bot/index.ts +1 -4
- package/src/_modules/bot/_services/bot-commands.control-service.ts +64 -34
- package/src/_modules/bot/_services/bot-io.control-service.ts +86 -95
- package/src/_modules/bot/_services/bot-main.control-service.ts +249 -240
- package/src/_modules/bot/_services/bot-messaging-provider.service-base.ts +152 -0
- package/src/_modules/bot/_services/bot-routines.control-service.ts +39 -44
- package/src/_modules/bot/index.ts +9 -7
- package/src/_modules/messaging/README.md +2 -7
- package/src/_modules/messaging/_collections/msg-global-settings.const.ts +0 -6
- package/src/_modules/messaging/_collections/msg.util.ts +2 -2
- package/src/_modules/messaging/_models/msg-global-settings.interface.ts +0 -12
- package/src/_modules/messaging/_services/msg-integration.control-service.ts +180 -179
- package/src/_modules/messaging/index.ts +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts +0 -22
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js +0 -187
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts +0 -27
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js +0 -277
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts +0 -23
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +0 -319
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts +0 -118
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js +0 -460
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.d.ts +0 -33
- package/build/_modules/assistant/_services/ass.service-base.d.ts.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.js +0 -58
- package/build/_modules/assistant/_services/ass.service-base.js.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.d.ts +0 -21
- package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.js +0 -74
- package/build/_modules/bot/_collections/bot-operations.util.js.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.d.ts +0 -15
- package/build/_modules/bot/_models/bot-message.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts +0 -68
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js +0 -3
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-user.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.js +0 -3
- package/build/_modules/bot/_models/bot-user.interface.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +0 -13
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +0 -5
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +0 -19
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts +0 -56
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js +0 -379
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +0 -5
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js +0 -26
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts +0 -55
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts +0 -6
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js +0 -47
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js.map +0 -1
- package/src/_modules/assistant/_services/ass.service-base.ts +0 -100
- package/src/_modules/bot/_collections/bot-operations.util.ts +0 -149
- package/src/_modules/bot/_models/bot-channel.interface.ts +0 -7
- package/src/_modules/bot/_models/bot-message.interface.ts +0 -14
- package/src/_modules/bot/_models/bot-messaging-provider.interface.ts +0 -88
- package/src/_modules/bot/_models/bot-user.interface.ts +0 -7
- package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +0 -20
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.ts +0 -475
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +0 -26
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.ts +0 -403
- package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_services/bot-messaging-provider-factory.service.ts +0 -56
|
@@ -5,7 +5,6 @@ export * from './_collections/msg-global-settings.const';
|
|
|
5
5
|
export * from './_collections/msg.util';
|
|
6
6
|
export * from './_services/msg-conversation.data-service';
|
|
7
7
|
export * from './_services/msg-events.service';
|
|
8
|
-
export * from './_services/msg-integration.control-service';
|
|
9
8
|
export * from './_services/msg-main.control-service';
|
|
10
9
|
export * from './_services/msg-message.data-service';
|
|
11
10
|
export * from './_services/msg.controller';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAC;AAGhD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AAMxC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAC;AAGhD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AAMxC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAE/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC"}
|
|
@@ -21,7 +21,7 @@ tslib_1.__exportStar(require("./_collections/msg.util"), exports);
|
|
|
21
21
|
// SERVICES
|
|
22
22
|
tslib_1.__exportStar(require("./_services/msg-conversation.data-service"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./_services/msg-events.service"), exports);
|
|
24
|
-
|
|
24
|
+
/* export * from './_services/msg-integration.control-service'; */
|
|
25
25
|
tslib_1.__exportStar(require("./_services/msg-main.control-service"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./_services/msg-message.data-service"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./_services/msg.controller"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,EAAE;AACF,mEAAmE;AACnE,4CAA4C;AAC5C,wCAAwC;AACxC,EAAE;;;AAEF,uBAAuB;AACvB,0EAAgD;AAEhD,SAAS;AACT,kFAAwD;AAExD,cAAc;AACd,2FAAiE;AACjE,mFAAyD;AACzD,kEAAwC;AAExC,QAAQ;AACR,2DAA2D;AAE3D,WAAW;AACX,oFAA0D;AAC1D,yEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/messaging/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mBAAmB;AACnB,EAAE;AACF,mEAAmE;AACnE,4CAA4C;AAC5C,wCAAwC;AACxC,EAAE;;;AAEF,uBAAuB;AACvB,0EAAgD;AAEhD,SAAS;AACT,kFAAwD;AAExD,cAAc;AACd,2FAAiE;AACjE,mFAAyD;AACzD,kEAAwC;AAExC,QAAQ;AACR,2DAA2D;AAE3D,WAAW;AACX,oFAA0D;AAC1D,yEAA+C;AAC/C,kEAAkE;AAClE,+EAAqD;AACrD,+EAAqD;AACrD,qEAA2C"}
|
package/package.json
CHANGED
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
|
|
44
44
|
export class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase {
|
|
45
45
|
|
|
46
|
-
readonly defaultErrorUserMsg: string =
|
|
46
|
+
/* readonly defaultErrorUserMsg: string =
|
|
47
47
|
`We encountered an unhandled Control Service Error, ` +
|
|
48
|
-
`\nplease contact the responsible development team.`;
|
|
48
|
+
`\nplease contact the responsible development team.`; */
|
|
49
49
|
|
|
50
50
|
openai: OpenAI;
|
|
51
51
|
|
|
@@ -657,7 +657,7 @@ export class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase {
|
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
protected getDefaultErrorSettings(
|
|
660
|
+
/* protected getDefaultErrorSettings(
|
|
661
661
|
fnName: string,
|
|
662
662
|
error: DyFM_AnyError,
|
|
663
663
|
issuer: string
|
|
@@ -673,7 +673,7 @@ export class DyNTS_OAI_LLM_ServiceBase extends DyNTS_AI_LLM_ServiceBase {
|
|
|
673
673
|
issuerService: this.constructor?.name,
|
|
674
674
|
error: error,
|
|
675
675
|
};
|
|
676
|
-
}
|
|
676
|
+
} */
|
|
677
677
|
|
|
678
678
|
//#endregion
|
|
679
679
|
|
|
@@ -69,11 +69,11 @@ export abstract class DyNTS_AI_LLM_ServiceBase extends DyNTS_AI_Provider_Service
|
|
|
69
69
|
abstract sendMessage(set: DyFM_AI_SimpleMessage_Input): Promise<string>;
|
|
70
70
|
|
|
71
71
|
// Helper methods
|
|
72
|
-
protected abstract getDefaultErrorSettings(
|
|
72
|
+
/* protected abstract getDefaultErrorSettings(
|
|
73
73
|
method: string,
|
|
74
74
|
error: any,
|
|
75
75
|
issuer?: string
|
|
76
|
-
): DyFM_Error_Settings;
|
|
76
|
+
): DyFM_Error_Settings; */
|
|
77
77
|
|
|
78
78
|
protected abstract getTextListAsText(list: string[]): string;
|
|
79
79
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
2
2
|
import { DyFM_AI_ProviderCapabilities } from '@futdevpro/fsm-dynamo/ai';
|
|
3
3
|
import { DyFM_AI_Config } from '@futdevpro/fsm-dynamo/ai';
|
|
4
|
+
import { DyNTS_SingletonService } from '../../../_services/base/singleton.service';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Abstract base class for all AI providers
|
|
7
8
|
* Defines the common interface that all AI providers must implement
|
|
8
9
|
*/
|
|
9
|
-
export abstract class DyNTS_AI_Provider_ServiceBase {
|
|
10
|
+
export abstract class DyNTS_AI_Provider_ServiceBase extends DyNTS_SingletonService {
|
|
10
11
|
/** The AI provider this service represents */
|
|
11
12
|
abstract readonly aiProvider: DyFM_AI_Provider;
|
|
12
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyNTS_Bot_MessageWrapper } from '../../bot/_models/bot-message-wrapper.interface';
|
|
2
2
|
import { DyFM_AI_Message, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
|
|
3
3
|
import { DyNTS_Ass_global_settings } from './ass-global-settings.const';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ export class DyNTS_Ass_Util {
|
|
|
8
8
|
* Uses EXISTING DyFM_AI_Message type from fsm-dynamo
|
|
9
9
|
* Same logic as DiAs_Util.convertDiscordMessagesToOAIConversation but platform-agnostic
|
|
10
10
|
*/
|
|
11
|
-
static convertBotMessagesToAIConversation<T_BotMessage extends
|
|
11
|
+
static convertBotMessagesToAIConversation<T_BotMessage extends DyNTS_Bot_MessageWrapper<any>>(
|
|
12
12
|
set: {
|
|
13
13
|
messages: T_BotMessage[],
|
|
14
14
|
botClientId: string,
|
|
@@ -1,73 +1,45 @@
|
|
|
1
|
-
import { DyFM_Error
|
|
1
|
+
import { DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
2
2
|
import { DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
|
|
3
3
|
import { DyNTS_Bot_IO_ControlService } from '../../bot/_services/bot-io.control-service';
|
|
4
|
-
import { DyNTS_Bot_Message } from '../../bot/_models/bot-message.interface';
|
|
5
4
|
import { DyNTS_Bot_MessageWrapper } from '../../bot/_models/bot-message-wrapper.interface';
|
|
6
|
-
import {
|
|
7
|
-
import { DyNTS_Bot_User } from '../../bot/_models/bot-user.interface';
|
|
8
|
-
import { DyNTS_Bot_MessagingProvider } from '../../bot/_models/bot-messaging-provider.interface';
|
|
9
|
-
import { DyNTS_Ass_Main_ControlService } from './ass-main.control-service';
|
|
5
|
+
/* import { DyNTS_Ass_Main_ControlService } from './ass-main.control-service'; */
|
|
10
6
|
import { DyNTS_Ass_Util } from '../_collections/ass.util';
|
|
11
7
|
import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
|
|
12
8
|
import { DyNTS_AI_LLMChat_ServiceBase } from '../../ai/_services/ai-llm-chat.service-base';
|
|
9
|
+
import { DyNTS_Ass_Main_ControlService } from './ass-main.control-service';
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
* Assistant IO Control Service
|
|
16
13
|
* Handles message processing with AI provider
|
|
17
14
|
* EXACT SAME LOGIC as DiAs_IO_ControlService but platform and AI provider agnostic
|
|
18
15
|
*/
|
|
19
|
-
export abstract class DyNTS_Ass_IO_ControlService
|
|
20
|
-
T_PlatformChannel extends DyNTS_Bot_Channel<any> = DyNTS_Bot_Channel<any>,
|
|
21
|
-
T_PlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>,
|
|
22
|
-
T_PlatformUser extends DyNTS_Bot_User<any> = DyNTS_Bot_User<any>,
|
|
23
|
-
T_CommsProvider extends DyNTS_Bot_MessagingProvider<
|
|
24
|
-
T_PlatformChannel,
|
|
25
|
-
T_PlatformMessage,
|
|
26
|
-
T_PlatformUser
|
|
27
|
-
> = DyNTS_Bot_MessagingProvider<
|
|
28
|
-
T_PlatformChannel,
|
|
29
|
-
T_PlatformMessage,
|
|
30
|
-
T_PlatformUser
|
|
31
|
-
>
|
|
32
|
-
> extends DyNTS_Bot_IO_ControlService<T_PlatformChannel, T_PlatformMessage, T_PlatformUser, T_CommsProvider> {
|
|
16
|
+
export abstract class DyNTS_Ass_IO_ControlService extends DyNTS_Bot_IO_ControlService {
|
|
33
17
|
|
|
34
|
-
protected abstract override getMainBotControlService(): DyNTS_Ass_Main_ControlService
|
|
35
|
-
|
|
36
|
-
T_PlatformMessage,
|
|
37
|
-
T_PlatformUser,
|
|
38
|
-
T_CommsProvider
|
|
39
|
-
>;
|
|
40
|
-
|
|
41
|
-
protected abstract override mainBot_CS: DyNTS_Ass_Main_ControlService<
|
|
42
|
-
T_PlatformChannel,
|
|
43
|
-
T_PlatformMessage,
|
|
44
|
-
T_PlatformUser,
|
|
45
|
-
T_CommsProvider
|
|
46
|
-
>;
|
|
18
|
+
protected abstract override getMainBotControlService(): DyNTS_Ass_Main_ControlService;
|
|
19
|
+
declare mainBot_CS: DyNTS_Ass_Main_ControlService;
|
|
47
20
|
|
|
48
21
|
get aiProvider(): DyNTS_AI_LLMChat_ServiceBase {
|
|
49
|
-
return this.mainBot_CS
|
|
22
|
+
return this.mainBot_CS.aiProvider;
|
|
50
23
|
}
|
|
51
24
|
|
|
52
25
|
/**
|
|
53
26
|
* Handle incoming message with AI
|
|
54
27
|
* EXACT SAME LOGIC as dias-io.control-service.ts handleMessage()
|
|
55
28
|
*/
|
|
56
|
-
|
|
57
|
-
message:
|
|
58
|
-
wrapper: DyNTS_Bot_MessageWrapper<T_PlatformMessage>,
|
|
29
|
+
async handleMessage(
|
|
30
|
+
message: DyNTS_Bot_MessageWrapper<any>,
|
|
59
31
|
issuer: string
|
|
60
|
-
): Promise<
|
|
32
|
+
): Promise<DyNTS_Bot_MessageWrapper<any>> {
|
|
61
33
|
try {
|
|
62
34
|
// Gather messages from comms platform using wrapper's provider
|
|
63
|
-
const messages:
|
|
35
|
+
const messages: DyNTS_Bot_MessageWrapper<any>[] = await this.mainBot_CS.gatherMessagesForMessage(message);
|
|
64
36
|
|
|
65
37
|
// Convert to AI conversation format (uses EXISTING DyFM_AI_Message)
|
|
66
38
|
const aiMessages: DyFM_AI_Message[] =
|
|
67
39
|
DyNTS_Ass_Util.convertBotMessagesToAIConversation({
|
|
68
40
|
messages: messages,
|
|
69
|
-
botClientId:
|
|
70
|
-
botDisplayName:
|
|
41
|
+
botClientId: message.provider.botId,
|
|
42
|
+
botDisplayName: message.provider.botDisplayName,
|
|
71
43
|
issuer: issuer,
|
|
72
44
|
});
|
|
73
45
|
|
|
@@ -81,19 +53,16 @@ export abstract class DyNTS_Ass_IO_ControlService<
|
|
|
81
53
|
});
|
|
82
54
|
|
|
83
55
|
// Reply via same provider the message came from
|
|
84
|
-
return await
|
|
56
|
+
return await message.provider.replyToMessage(message, aiResult);
|
|
85
57
|
} catch (error) {
|
|
86
58
|
DyFM_Error.logSimple('❌❌ Error handleMessage:', error);
|
|
87
59
|
|
|
88
60
|
if (!this.dontSendErrorReply && DyNTS_global_settings.bot_settings?.debugLevel >= 1) {
|
|
89
|
-
await
|
|
90
|
-
message
|
|
91
|
-
message.channelId,
|
|
61
|
+
await message.provider.replyToMessage(
|
|
62
|
+
message,
|
|
92
63
|
`[SYSTEM|ERROR|${DyNTS_global_settings.systemShortCodeName}|DyNTS-Ass-IOCS-H0] Error occurred while handling the message:\n` +
|
|
93
64
|
DyFM_Error.getAnyMessage(error)
|
|
94
|
-
)
|
|
95
|
-
DyFM_Error.logSimple('❌❌ Error sending error reply:', error);
|
|
96
|
-
});
|
|
65
|
+
);
|
|
97
66
|
}
|
|
98
67
|
|
|
99
68
|
throw new DyFM_Error({
|
|
@@ -1,38 +1,89 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyNTS_Bot_Main_ControlService } from '../../bot/_services/bot-main.control-service';
|
|
2
|
+
import { DyNTS_Bot_MessageWrapper } from '../../bot/_models/bot-message-wrapper.interface';
|
|
3
|
+
import { DyNTS_AI_LLMChat_ServiceBase } from '../../ai/_services/ai-llm-chat.service-base';
|
|
4
|
+
import { DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
|
|
5
|
+
import { DyNTS_Ass_global_settings } from '../_collections/ass-global-settings.const';
|
|
6
|
+
import { DyNTS_global_settings } from '../../../_collections/global-settings.const';
|
|
7
|
+
import { DyNTS_Ass_Util } from '../_collections/ass.util';
|
|
2
8
|
import { DyNTS_Ass_IO_ControlService } from './ass-io.control-service';
|
|
3
|
-
import {
|
|
4
|
-
import { DyNTS_Bot_Message } from '../../bot/_models/bot-message.interface';
|
|
5
|
-
import { DyNTS_Bot_User } from '../../bot/_models/bot-user.interface';
|
|
6
|
-
import { DyNTS_Bot_MessagingProvider } from '../../bot/_models/bot-messaging-provider.interface';
|
|
9
|
+
import { DyNTS_Bot_MessagingProvider_Type } from '../../bot/_enums/bot-message-provider.enum';
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
|
-
* Assistant
|
|
10
|
-
*
|
|
12
|
+
* Assistant Service Base
|
|
13
|
+
* Integrates commsProvider (bot) and aiProvider (LLMChat) to create AI-powered assistant
|
|
14
|
+
* USES EXISTING AI ABSTRACTIONS - no duplication
|
|
11
15
|
*/
|
|
12
16
|
export abstract class DyNTS_Ass_Main_ControlService<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
protected abstract override getBotIOControlService(): DyNTS_Ass_IO_ControlService
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
T_MessagingPlatformProvider_Type extends DyNTS_Bot_MessagingProvider_Type | string = DyNTS_Bot_MessagingProvider_Type,
|
|
18
|
+
> extends DyNTS_Bot_Main_ControlService<T_MessagingPlatformProvider_Type> {
|
|
19
|
+
|
|
20
|
+
// AI Provider - uses EXISTING abstraction
|
|
21
|
+
protected _aiProvider: DyNTS_AI_LLMChat_ServiceBase;
|
|
22
|
+
|
|
23
|
+
get aiProvider(): DyNTS_AI_LLMChat_ServiceBase {
|
|
24
|
+
return this._aiProvider;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
protected abstract getAIProvider(): DyNTS_AI_LLMChat_ServiceBase;
|
|
28
|
+
|
|
29
|
+
// Override botIO to use assistant IO
|
|
30
|
+
/* protected abstract override getBotIOControlService(): DyNTS_Ass_IO_ControlService; */
|
|
31
|
+
|
|
32
|
+
protected abstract override getBotIOControlService(): DyNTS_Ass_IO_ControlService;
|
|
33
|
+
declare botIO_CS: DyNTS_Ass_IO_ControlService;
|
|
34
|
+
|
|
35
|
+
// Assistant-specific settings
|
|
36
|
+
defaultSystemPrompt: string = DyNTS_Ass_global_settings.defaultSystemPrompt;
|
|
37
|
+
|
|
38
|
+
protected constructor() {
|
|
39
|
+
super();
|
|
40
|
+
|
|
41
|
+
// Initialize AI provider
|
|
42
|
+
this._aiProvider = this.getAIProvider();
|
|
43
|
+
|
|
44
|
+
// Apply system prompt
|
|
45
|
+
if (this._aiProvider.defaultSettings) {
|
|
46
|
+
this._aiProvider.defaultSettings.systemPrompt = this.defaultSystemPrompt;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Set global settings
|
|
50
|
+
DyNTS_global_settings.assistant_settings ??= DyNTS_Ass_global_settings;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Gather messages from comms platform (any platform)
|
|
55
|
+
* Same as dias.service-base but platform-agnostic
|
|
56
|
+
* Now uses wrapper's provider to ensure messages from correct platform
|
|
57
|
+
*/
|
|
58
|
+
async gatherMessagesForMessage(
|
|
59
|
+
message: DyNTS_Bot_MessageWrapper<any>,
|
|
60
|
+
limit: number = 100
|
|
61
|
+
): Promise<DyNTS_Bot_MessageWrapper<any>[]> {
|
|
62
|
+
// Use wrapper's provider to fetch messages from the correct platform
|
|
63
|
+
const messages: DyNTS_Bot_MessageWrapper<any>[] = await message.provider.fetchMessagesForMessage(message, limit);
|
|
64
|
+
|
|
65
|
+
// Filter out messages with skip flags
|
|
66
|
+
return messages.filter(
|
|
67
|
+
msg => !DyNTS_Ass_global_settings.skipConversationMessagesFlags.some(
|
|
68
|
+
flag => msg.content.includes(flag)
|
|
69
|
+
)
|
|
70
|
+
).sort((a, b) => a.timestamp - b.timestamp);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Convert gathered messages to AI conversation using EXISTING DyFM_AI_Message
|
|
75
|
+
*/
|
|
76
|
+
async gatherMessagesAsAIConversation(
|
|
77
|
+
message: DyNTS_Bot_MessageWrapper<any>,
|
|
78
|
+
issuer: string,
|
|
79
|
+
): Promise<DyFM_AI_Message[]> {
|
|
80
|
+
const messages: DyNTS_Bot_MessageWrapper<any>[] = await this.gatherMessagesForMessage(message);
|
|
81
|
+
|
|
82
|
+
return DyNTS_Ass_Util.convertBotMessagesToAIConversation({
|
|
83
|
+
messages: messages,
|
|
84
|
+
botClientId: message.provider.botId,
|
|
85
|
+
botDisplayName: message.provider.botDisplayName,
|
|
86
|
+
issuer: issuer,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
38
89
|
}
|
|
@@ -13,7 +13,7 @@ export * from './_collections/ass.util';
|
|
|
13
13
|
export * from './_collections/ass-global-settings.const';
|
|
14
14
|
|
|
15
15
|
// SERVICES
|
|
16
|
-
export * from './_services/ass.service
|
|
16
|
+
export * from './_services/ass-main.control-service';
|
|
17
17
|
export * from './_services/ass-main.control-service';
|
|
18
18
|
export * from './_services/ass-io.control-service';
|
|
19
19
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DyNTS_Bot_MessagingProvider_ServiceBase } from '../_services/bot-messaging-provider.service-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a bot channel with provider context
|
|
5
|
+
* This ensures channels include the provider information needed for platform-specific operations
|
|
6
|
+
*/
|
|
7
|
+
export interface DyNTS_Bot_ChannelWrapper<
|
|
8
|
+
T_MessagingPlatformChannel extends any = any
|
|
9
|
+
> {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
isTextBased: boolean;
|
|
13
|
+
isDM: boolean;
|
|
14
|
+
rawPlatformChannel: T_MessagingPlatformChannel;
|
|
15
|
+
|
|
16
|
+
/** Reference to the provider instance for platform-specific operations */
|
|
17
|
+
provider: DyNTS_Bot_MessagingProvider_ServiceBase<
|
|
18
|
+
T_MessagingPlatformChannel,
|
|
19
|
+
any, //DyNTS_Bot_MessageWrapper<any>,
|
|
20
|
+
any, //DyNTS_Bot_UserWrapper<any>,
|
|
21
|
+
any
|
|
22
|
+
>;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyNTS_Bot_MessageWrapper } from './bot-message-wrapper.interface';
|
|
2
2
|
|
|
3
|
-
export interface DyNTS_Bot_Command<T_MessagingPlatformMessage extends
|
|
3
|
+
export interface DyNTS_Bot_Command<T_MessagingPlatformMessage extends DyNTS_Bot_MessageWrapper<any> = DyNTS_Bot_MessageWrapper<any>> {
|
|
4
4
|
command: string;
|
|
5
5
|
description: string;
|
|
6
6
|
commandHandler: (message: T_MessagingPlatformMessage) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DyNTS_Bot_Command } from './bot-command.interface';
|
|
2
|
-
import { DyNTS_Bot_MessagingProvider_Config } from '
|
|
2
|
+
import { DyNTS_Bot_MessagingProvider_Config } from '../_services/bot-messaging-provider.service-base';
|
|
3
3
|
|
|
4
4
|
export interface DyNTS_Bot_Global_Settings {
|
|
5
5
|
/**
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DyNTS_Bot_Channel } from './bot-channel.interface';
|
|
3
|
-
import { DyNTS_Bot_User } from './bot-user.interface';
|
|
4
|
-
import { DyNTS_Bot_MessagingProvider } from './bot-messaging-provider.interface';
|
|
5
|
-
import { DyNTS_Bot_MessagingProvider_Type } from '../_enums/bot-message-provider.enum';
|
|
1
|
+
import { DyNTS_Bot_MessagingProvider_ServiceBase } from '../_services/bot-messaging-provider.service-base';
|
|
6
2
|
|
|
7
3
|
/**
|
|
8
4
|
* Wraps a bot message with provider context
|
|
@@ -10,23 +6,27 @@ import { DyNTS_Bot_MessagingProvider_Type } from '../_enums/bot-message-provider
|
|
|
10
6
|
* back through the correct platform
|
|
11
7
|
*/
|
|
12
8
|
export interface DyNTS_Bot_MessageWrapper<
|
|
13
|
-
T_MessagingPlatformMessage extends
|
|
14
|
-
|
|
9
|
+
T_MessagingPlatformMessage extends any = any,
|
|
15
10
|
> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
id: string;
|
|
12
|
+
content: string;
|
|
13
|
+
authorId: string;
|
|
14
|
+
authorName: string;
|
|
15
|
+
authorDisplayName: string;
|
|
16
|
+
channelId: string;
|
|
17
|
+
channelName: string;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
isBot: boolean;
|
|
20
|
+
replyToMessageId?: string;
|
|
21
|
+
mentions: string[]; // user IDs
|
|
22
|
+
rawPlatformMessage: T_MessagingPlatformMessage; // Original platform message for platform-specific operations
|
|
24
23
|
|
|
25
24
|
/** Reference to the provider instance for sending replies */
|
|
26
|
-
provider:
|
|
27
|
-
|
|
25
|
+
provider: DyNTS_Bot_MessagingProvider_ServiceBase<
|
|
26
|
+
any,
|
|
28
27
|
T_MessagingPlatformMessage,
|
|
29
|
-
|
|
28
|
+
any, //DyNTS_Bot_ChannelWrapper<any>,
|
|
29
|
+
any //DyNTS_Bot_UserWrapper<any>
|
|
30
30
|
>;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DyNTS_Bot_MessagingProvider_ServiceBase } from '../_services/bot-messaging-provider.service-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a bot user with provider context
|
|
5
|
+
* This ensures users include the provider information needed for platform-specific operations
|
|
6
|
+
*/
|
|
7
|
+
export interface DyNTS_Bot_UserWrapper<
|
|
8
|
+
T_MessagingPlatformUser extends any = any,
|
|
9
|
+
/* T_MessagingPlatformService extends DyNTS_Bot_MessagingProvider_ServiceBase<
|
|
10
|
+
any, //DyNTS_Bot_ChannelWrapper<any> ,
|
|
11
|
+
any, //DyNTS_Bot_MessageWrapper<any> ,
|
|
12
|
+
T_MessagingPlatformUser,
|
|
13
|
+
any
|
|
14
|
+
> = DyNTS_Bot_MessagingProvider_ServiceBase<
|
|
15
|
+
any, //DyNTS_Bot_ChannelWrapper<any> ,
|
|
16
|
+
any, //DyNTS_Bot_MessageWrapper<any> ,
|
|
17
|
+
T_MessagingPlatformUser,
|
|
18
|
+
any
|
|
19
|
+
> */
|
|
20
|
+
|
|
21
|
+
> {
|
|
22
|
+
id: string;
|
|
23
|
+
username: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
isBot: boolean;
|
|
26
|
+
rawPlatformUser: T_MessagingPlatformUser;
|
|
27
|
+
|
|
28
|
+
/** Reference to the provider instance for platform-specific operations */
|
|
29
|
+
provider:/* T_MessagingPlatformService; */ DyNTS_Bot_MessagingProvider_ServiceBase<
|
|
30
|
+
any, //DyNTS_Bot_ChannelWrapper<any> ,
|
|
31
|
+
any, //DyNTS_Bot_MessageWrapper<any> ,
|
|
32
|
+
T_MessagingPlatformUser
|
|
33
|
+
>;
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Message, TextChannel, GuildMember } from 'discord.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/* import { Message, TextChannel, GuildMember, Channel } from 'discord.js';
|
|
2
|
+
import { DyNTS_Bot_MessageWrapper } from '../../../_models/bot-message-wrapper.interface';
|
|
3
|
+
import { DyNTS_Bot_ChannelWrapper } from '../../../_models/bot-channel-wrapper.interface';
|
|
4
|
+
import { DyNTS_Bot_UserWrapper } from '../../../_models/bot-user-wrapper.interface';
|
|
5
5
|
|
|
6
6
|
// Discord Bot Platform-Specific Types
|
|
7
|
-
export type DyNTS_DiB_Message =
|
|
8
|
-
export type DyNTS_DiB_Channel =
|
|
9
|
-
export type DyNTS_DiB_User =
|
|
7
|
+
export type DyNTS_DiB_Message = DyNTS_Bot_MessageWrapper<Message>;
|
|
8
|
+
export type DyNTS_DiB_Channel = DyNTS_Bot_ChannelWrapper<Channel>;
|
|
9
|
+
export type DyNTS_DiB_User = DyNTS_Bot_UserWrapper<GuildMember>;
|
|
10
|
+
*/
|