@friendlyrobot/discord-pi-agent 0.10.0 → 0.10.2
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 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,11 +109,6 @@ async function collectReply(session, prompt, options = {}) {
|
|
|
109
109
|
let toolCount = 0;
|
|
110
110
|
const model = session.model ? `${session.model.provider}/${session.model.id}` : "none";
|
|
111
111
|
debugPrint(prompt, "Full Prompt");
|
|
112
|
-
logger3.debug({
|
|
113
|
-
promptLength: prompt.length,
|
|
114
|
-
model,
|
|
115
|
-
prompt
|
|
116
|
-
}, "prompt start");
|
|
117
112
|
const unsubscribe = session.subscribe((event) => {
|
|
118
113
|
eventCount += 1;
|
|
119
114
|
if (event.type === "message_update") {
|
|
@@ -126,15 +121,15 @@ async function collectReply(session, prompt, options = {}) {
|
|
|
126
121
|
toolCount += 1;
|
|
127
122
|
logger3.debug({
|
|
128
123
|
toolName: event.toolName,
|
|
129
|
-
input:
|
|
130
|
-
}, `tool [${event.toolName}]
|
|
124
|
+
input: event.toolName === "bash" ? event.args.command : event.args
|
|
125
|
+
}, `tool start: [${event.toolName}] `);
|
|
131
126
|
}
|
|
132
127
|
if (event.type === "tool_execution_end") {
|
|
133
128
|
logger3.debug({
|
|
134
129
|
toolName: event.toolName,
|
|
135
130
|
isError: event.isError,
|
|
136
131
|
output: truncateForLog(extractToolOutput(event.result))
|
|
137
|
-
}, `tool [${event.toolName}]
|
|
132
|
+
}, `tool end: [${event.toolName}]`);
|
|
138
133
|
}
|
|
139
134
|
if (event.type === "agent_end") {
|
|
140
135
|
logger3.debug({
|