@friendlyrobot/discord-pi-agent 0.4.4 → 0.4.5
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.d.ts +0 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DiscordPiBridge, DiscordPiBridgeConfig } from "./types";
|
|
2
2
|
export { buildTimeContextPrompt, type TimeContextPromptOptions, } from "./prompt-context";
|
|
3
|
-
export { transformMarkdownTablesToCodeBlocks } from "./markdown-table-transformer";
|
|
4
3
|
export { loadDiscordPiBridgeConfigFromEnv, resolveConfig } from "./config";
|
|
5
4
|
export type { AgentStatus, DiscordPiBridge, DiscordPiBridgeConfig, PromptTransform, ResolvedDiscordPiBridgeConfig, } from "./types";
|
|
6
5
|
export declare function startDiscordPiBridge(config: DiscordPiBridgeConfig): Promise<DiscordPiBridge>;
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,12 @@ async function collectReply(session, prompt, options = {}) {
|
|
|
101
101
|
}
|
|
102
102
|
if (finalText) {
|
|
103
103
|
const transformed = await transformMarkdownTablesToCodeBlocks(finalText);
|
|
104
|
+
console.log("[DEBUG] Table transformation comparison:", `
|
|
105
|
+
=== RAW finalText ===
|
|
106
|
+
` + finalText + `
|
|
107
|
+
=== TRANSFORMED ===
|
|
108
|
+
` + transformed + `
|
|
109
|
+
=== END ===`);
|
|
104
110
|
return transformed;
|
|
105
111
|
}
|
|
106
112
|
return "No response generated.";
|
|
@@ -796,7 +802,6 @@ function registerSignalHandlers(stop) {
|
|
|
796
802
|
});
|
|
797
803
|
}
|
|
798
804
|
export {
|
|
799
|
-
transformMarkdownTablesToCodeBlocks,
|
|
800
805
|
startDiscordPiBridge,
|
|
801
806
|
resolveConfig,
|
|
802
807
|
loadDiscordPiBridgeConfigFromEnv,
|