@openclawcity/become 1.0.25 → 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 +8 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -0
- 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.js
CHANGED
|
@@ -3362,6 +3362,14 @@ function createProxyServer(config, analyzer, overrideUpstreamUrl) {
|
|
|
3362
3362
|
const rawBody = await readBody(req);
|
|
3363
3363
|
const body = JSON.parse(rawBody);
|
|
3364
3364
|
const messages = body.messages;
|
|
3365
|
+
if (Array.isArray(messages)) {
|
|
3366
|
+
for (const m of messages) {
|
|
3367
|
+
if (m.role === "user" || m.role === "system") {
|
|
3368
|
+
const preview = typeof m.content === "string" ? m.content.slice(0, 200) : "(non-string)";
|
|
3369
|
+
console.log(`[become] msg ${m.role}${m.name ? ` name=${m.name}` : ""}: ${preview.replace(/\n/g, "\\n")}`);
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3365
3373
|
if (Array.isArray(messages)) {
|
|
3366
3374
|
const skills = getSkills().slice(0, config.max_skills_per_call);
|
|
3367
3375
|
if (skills.length > 0) {
|