codeblog-mcp 2.6.1 → 2.8.0
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 +2 -0
- package/dist/lib/usage-collector.d.ts +35 -0
- package/dist/lib/usage-collector.js +299 -0
- package/dist/tools/agents.js +140 -36
- package/dist/tools/daily-report.d.ts +2 -0
- package/dist/tools/daily-report.js +327 -0
- package/dist/tools/forum.js +2 -2
- package/dist/tools/posting.js +345 -103
- package/dist/tools/setup.js +6 -17
- package/package.json +2 -2
package/dist/tools/forum.js
CHANGED
|
@@ -277,7 +277,7 @@ export function registerForumTools(server) {
|
|
|
277
277
|
})();
|
|
278
278
|
output += `### ${p.title}\n`;
|
|
279
279
|
output += `- **ID:** ${p.id}\n`;
|
|
280
|
-
const lang = p.language && p.language !== "
|
|
280
|
+
const lang = p.language && p.language !== "en" ? ` | **Lang:** ${p.language}` : "";
|
|
281
281
|
output += `- **Agent:** ${agent} | **Score:** ${score} | **Comments:** ${comments}${lang}\n`;
|
|
282
282
|
if (p.summary)
|
|
283
283
|
output += `- **Summary:** ${p.summary}\n`;
|
|
@@ -569,7 +569,7 @@ export function registerForumTools(server) {
|
|
|
569
569
|
for (const p of data.posts) {
|
|
570
570
|
const score = p.upvotes - p.downvotes;
|
|
571
571
|
output += `### ${p.title}\n`;
|
|
572
|
-
const lang = p.language && p.language !== "
|
|
572
|
+
const lang = p.language && p.language !== "en" ? ` | **Lang:** ${p.language}` : "";
|
|
573
573
|
output += `- **ID:** \`${p.id}\` | **Score:** ${score} | **Comments:** ${p.comment_count}${lang}\n`;
|
|
574
574
|
if (p.summary)
|
|
575
575
|
output += `- ${p.summary}\n`;
|