@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/cli.cjs
CHANGED
|
@@ -862,6 +862,14 @@ function createProxyServer(config, analyzer, overrideUpstreamUrl) {
|
|
|
862
862
|
const rawBody = await readBody(req);
|
|
863
863
|
const body = JSON.parse(rawBody);
|
|
864
864
|
const messages = body.messages;
|
|
865
|
+
if (Array.isArray(messages)) {
|
|
866
|
+
for (const m of messages) {
|
|
867
|
+
if (m.role === "user" || m.role === "system") {
|
|
868
|
+
const preview = typeof m.content === "string" ? m.content.slice(0, 200) : "(non-string)";
|
|
869
|
+
console.log(`[become] msg ${m.role}${m.name ? ` name=${m.name}` : ""}: ${preview.replace(/\n/g, "\\n")}`);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
865
873
|
if (Array.isArray(messages)) {
|
|
866
874
|
const skills = getSkills().slice(0, config.max_skills_per_call);
|
|
867
875
|
if (skills.length > 0) {
|