@hunt-labs/bytekit-mcp 0.3.17 → 0.3.18
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/CHANGELOG.md +152 -0
- package/dist/client.js +1 -1
- package/dist/docs-bundle/docs-bundle.json +96 -61
- package/dist/scrape-contract.generated.d.ts +15 -2
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ export interface ScrapeTable {
|
|
|
30
30
|
cols: number;
|
|
31
31
|
}
|
|
32
32
|
export interface ScrapeWarning {
|
|
33
|
-
code: 'lossy_table' | 'complex_math' | 'unsupported_element' | 'extraction_fallback' | 'truncated' | 'query_no_match' | 'mode_disabled_fallback' | 'artifact_unavailable' | 'llm_clean_unavailable' | 'llm_clean_failed' | 'low_quality_extraction' | 'fragment_menu_stripped';
|
|
33
|
+
code: 'lossy_table' | 'complex_math' | 'unsupported_element' | 'extraction_fallback' | 'truncated' | 'query_no_match' | 'mode_disabled_fallback' | 'artifact_unavailable' | 'llm_clean_unavailable' | 'llm_clean_failed' | 'low_quality_extraction' | 'fragment_menu_stripped' | 'extract_validation_failed' | 'exhausted_retries' | 'content_truncated' | 'model_refusal' | 'empty_extraction' | 'short_content' | 'frames_skipped';
|
|
34
34
|
message: string;
|
|
35
35
|
element: string | null;
|
|
36
36
|
}
|
|
@@ -39,7 +39,7 @@ export interface ScrapeStats {
|
|
|
39
39
|
tokens: number;
|
|
40
40
|
blocks: number;
|
|
41
41
|
}
|
|
42
|
-
export type ScrapeEnvelopeErrorCode = 'validation_error' | 'invalid_url' | 'request_too_large' | 'payload_too_large' | 'unsupported_content_type' | 'rate_limited' | 'upstream_error' | 'timeout' | 'blocked' | 'internal_error';
|
|
42
|
+
export type ScrapeEnvelopeErrorCode = 'validation_error' | 'invalid_url' | 'request_too_large' | 'payload_too_large' | 'unsupported_content_type' | 'rate_limited' | 'upstream_error' | 'timeout' | 'blocked' | 'target_rate_limited' | 'internal_error';
|
|
43
43
|
export interface ScrapeFormats {
|
|
44
44
|
/**
|
|
45
45
|
* The untouched upstream source of whatever the URL served — HTML, JSON, XML or
|
|
@@ -50,6 +50,13 @@ export interface ScrapeFormats {
|
|
|
50
50
|
markdown?: string;
|
|
51
51
|
links?: string[] | ScrapeScoredLink[];
|
|
52
52
|
images?: string[] | ScrapeScoredImage[];
|
|
53
|
+
json?: ScrapeJsonResult;
|
|
54
|
+
}
|
|
55
|
+
/** The `json` format's result (issue #5130). `data` is null whenever `validated` is false. */
|
|
56
|
+
export interface ScrapeJsonResult {
|
|
57
|
+
data: Record<string, unknown> | null;
|
|
58
|
+
validated: boolean;
|
|
59
|
+
model: string;
|
|
53
60
|
}
|
|
54
61
|
export interface ScrapeMetadata {
|
|
55
62
|
title?: string | null;
|
|
@@ -148,6 +155,12 @@ export interface ScrapeErrorEnvelope {
|
|
|
148
155
|
message: string;
|
|
149
156
|
/** Upstream HTTP status (#1971: renamed from httpStatus). Strict-optional — omitted when absent. */
|
|
150
157
|
http_status?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Whole seconds the target asked us to wait (issue #4869). Present only on the inline
|
|
160
|
+
* `POST /v1/scrape` `target_rate_limited` failure when the target sent a usable `Retry-After`;
|
|
161
|
+
* informational, never enforced. Strict-optional — omitted when absent.
|
|
162
|
+
*/
|
|
163
|
+
retry_after_seconds?: number;
|
|
151
164
|
/** ISO timestamp of failure (#1971: renamed from failedAt). */
|
|
152
165
|
failed_at: string;
|
|
153
166
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hunt-labs/bytekit-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "ByteKit MCP server — exposes ByteKit web-data tools (scrape, screenshot, search, docs) to AI agents over the Model Context Protocol, hosted or as a local stdio server.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|