@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folotoy/folotoy-openclaw-plugin",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Empower your FoloToy with OpenClaw AI capabilities.",
5
5
  "keywords": [
6
6
  "folotoy",
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 = 0
137
+ let order = 1
138
138
 
139
- // Send a quick soothing acknowledgment before AI processing
140
- const notificationTopic = buildNotificationTopic(credentials.toy_sn)
141
- const soothingMsg: NotificationMessage = {
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: 'send_notification',
144
- outParams: { text: pickSoothingReply(text) },
143
+ identifier: 'chat_output',
144
+ outParams: { content: pickSoothingReply(text), recording_id, order, is_finished: false },
145
145
  }
146
- client.publish(notificationTopic, JSON.stringify(soothingMsg))
146
+ client.publish(outboundTopic, JSON.stringify(ackMsg))
147
147
 
148
148
  const inboundCtx = channelRuntime.reply.finalizeInboundContext({
149
149
  Body: text,