@folotoy/folotoy-openclaw-plugin 0.3.0 → 0.3.1
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/package.json +1 -1
- package/src/index.ts +7 -7
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -134,16 +134,16 @@ const folotoyChannel: ChannelPlugin<FlatChannelConfig> = {
|
|
|
134
134
|
if (msg.identifier !== 'chat_input' || typeof msg.inputParams?.text !== 'string') return
|
|
135
135
|
|
|
136
136
|
const { msgId, inputParams: { text, recording_id } } = msg
|
|
137
|
-
let order =
|
|
137
|
+
let order = 1
|
|
138
138
|
|
|
139
|
-
// Send a quick soothing acknowledgment before AI processing
|
|
140
|
-
|
|
141
|
-
const
|
|
139
|
+
// Send a quick soothing acknowledgment before AI processing (order=1).
|
|
140
|
+
// AI replies continue from order=2.
|
|
141
|
+
const ackMsg: OutboundMessage = {
|
|
142
142
|
msgId,
|
|
143
|
-
identifier: '
|
|
144
|
-
outParams: {
|
|
143
|
+
identifier: 'chat_output',
|
|
144
|
+
outParams: { content: pickSoothingReply(text), recording_id, order, is_finished: false },
|
|
145
145
|
}
|
|
146
|
-
client.publish(
|
|
146
|
+
client.publish(outboundTopic, JSON.stringify(ackMsg))
|
|
147
147
|
|
|
148
148
|
const inboundCtx = channelRuntime.reply.finalizeInboundContext({
|
|
149
149
|
Body: text,
|