@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.js CHANGED
@@ -823,6 +823,14 @@ function createProxyServer(config, analyzer, overrideUpstreamUrl) {
823
823
  const rawBody = await readBody(req);
824
824
  const body = JSON.parse(rawBody);
825
825
  const messages = body.messages;
826
+ if (Array.isArray(messages)) {
827
+ for (const m of messages) {
828
+ if (m.role === "user" || m.role === "system") {
829
+ const preview = typeof m.content === "string" ? m.content.slice(0, 200) : "(non-string)";
830
+ console.log(`[become] msg ${m.role}${m.name ? ` name=${m.name}` : ""}: ${preview.replace(/\n/g, "\\n")}`);
831
+ }
832
+ }
833
+ }
826
834
  if (Array.isArray(messages)) {
827
835
  const skills = getSkills().slice(0, config.max_skills_per_call);
828
836
  if (skills.length > 0) {