@fre4x/hn 1.0.8 → 1.0.11
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42751,7 +42751,7 @@ function handleLimit(content, format) {
|
|
|
42751
42751
|
var storySchema = {
|
|
42752
42752
|
limit: external_exports4.number().int().min(1).max(500).default(20).describe("Number of stories to return"),
|
|
42753
42753
|
offset: external_exports4.number().int().min(0).default(0).describe("Offset for pagination"),
|
|
42754
|
-
response_format: external_exports4.
|
|
42754
|
+
response_format: external_exports4.enum(Object.values(ResponseFormat)).default("markdown" /* MARKDOWN */).describe("Output format (markdown or json)")
|
|
42755
42755
|
};
|
|
42756
42756
|
async function handleStories(ids, params) {
|
|
42757
42757
|
const paginatedIds = ids.slice(params.offset, params.offset + params.limit);
|
|
@@ -42885,7 +42885,7 @@ server.registerTool(
|
|
|
42885
42885
|
description: "Get detailed information about a single Hacker News item (story, comment, job, poll, etc.) by its ID.",
|
|
42886
42886
|
inputSchema: external_exports4.object({
|
|
42887
42887
|
id: external_exports4.number().int().describe("The ID of the item"),
|
|
42888
|
-
response_format: external_exports4.
|
|
42888
|
+
response_format: external_exports4.enum(Object.values(ResponseFormat)).default("markdown" /* MARKDOWN */)
|
|
42889
42889
|
}),
|
|
42890
42890
|
annotations: {
|
|
42891
42891
|
readOnlyHint: true,
|
|
@@ -42929,7 +42929,7 @@ server.registerTool(
|
|
|
42929
42929
|
description: "Retrieve details for a Hacker News user profile by username.",
|
|
42930
42930
|
inputSchema: external_exports4.object({
|
|
42931
42931
|
id: external_exports4.string().describe("The username of the user"),
|
|
42932
|
-
response_format: external_exports4.
|
|
42932
|
+
response_format: external_exports4.enum(Object.values(ResponseFormat)).default("markdown" /* MARKDOWN */)
|
|
42933
42933
|
}),
|
|
42934
42934
|
annotations: {
|
|
42935
42935
|
readOnlyHint: true,
|
|
@@ -42983,7 +42983,7 @@ server.registerTool(
|
|
|
42983
42983
|
title: "Get Updates",
|
|
42984
42984
|
description: "Retrieve recently updated item and profile IDs.",
|
|
42985
42985
|
inputSchema: external_exports4.object({
|
|
42986
|
-
response_format: external_exports4.
|
|
42986
|
+
response_format: external_exports4.enum(Object.values(ResponseFormat)).default("markdown" /* MARKDOWN */)
|
|
42987
42987
|
}),
|
|
42988
42988
|
annotations: {
|
|
42989
42989
|
readOnlyHint: true,
|