@photon-ai/flux 0.5.8 → 0.6.0
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/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52167,19 +52167,18 @@ var FluxClient = class {
|
|
|
52167
52167
|
if (response) {
|
|
52168
52168
|
const messages = splitIntoMessages(response);
|
|
52169
52169
|
for (const msg of messages) {
|
|
52170
|
-
await this.sendMessage(message.userPhoneNumber, msg
|
|
52170
|
+
await this.sendMessage(message.userPhoneNumber, msg);
|
|
52171
52171
|
}
|
|
52172
52172
|
}
|
|
52173
52173
|
}
|
|
52174
52174
|
}
|
|
52175
52175
|
})();
|
|
52176
52176
|
}
|
|
52177
|
-
async sendMessage(to, text
|
|
52177
|
+
async sendMessage(to, text) {
|
|
52178
52178
|
if (!this.client) throw new Error("Not connected. Call connect() first.");
|
|
52179
52179
|
const result = await this.client.FluxService.sendMessage({
|
|
52180
52180
|
userPhoneNumber: to,
|
|
52181
|
-
text
|
|
52182
|
-
chatGuid
|
|
52181
|
+
text
|
|
52183
52182
|
});
|
|
52184
52183
|
if (!result.success) {
|
|
52185
52184
|
console.error(`[FLUX] Send failed: ${result.error}`);
|
|
@@ -52517,7 +52516,6 @@ async function runProd() {
|
|
|
52517
52516
|
message: message.text,
|
|
52518
52517
|
userPhoneNumber: message.userPhoneNumber,
|
|
52519
52518
|
messageGuid: message.messageGuid,
|
|
52520
|
-
chatGuid: message.chatGuid,
|
|
52521
52519
|
imageBase64: message.imageBase64
|
|
52522
52520
|
});
|
|
52523
52521
|
console.log(`[FLUX] Agent response: ${response}`);
|