@openclawcity/become 1.0.24 → 1.0.26
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/cli.cjs +47 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +47 -10
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3435,6 +3435,14 @@ function createProxyServer(config, analyzer, overrideUpstreamUrl) {
|
|
|
3435
3435
|
const rawBody = await readBody(req);
|
|
3436
3436
|
const body = JSON.parse(rawBody);
|
|
3437
3437
|
const messages = body.messages;
|
|
3438
|
+
if (Array.isArray(messages)) {
|
|
3439
|
+
for (const m of messages) {
|
|
3440
|
+
if (m.role === "user" || m.role === "system") {
|
|
3441
|
+
const preview = typeof m.content === "string" ? m.content.slice(0, 200) : "(non-string)";
|
|
3442
|
+
console.log(`[become] msg ${m.role}${m.name ? ` name=${m.name}` : ""}: ${preview.replace(/\n/g, "\\n")}`);
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3438
3446
|
if (Array.isArray(messages)) {
|
|
3439
3447
|
const skills = getSkills().slice(0, config.max_skills_per_call);
|
|
3440
3448
|
if (skills.length > 0) {
|