@utilix-tech/sdk 0.67.0 → 0.68.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
4
4
 
5
+ ## 0.68.0
6
+ - Add `buildRobotsMetaTag`, `parseRobotsMetaTag` (robots-meta-tag-builder): build a `<meta name="robots" content="...">` tag from the same directive vocabulary as X-Robots-Tag, optionally scoped to a crawler via the name attribute, or parse an existing tag into the same shape.
7
+ - Add `extractSvgSpriteSymbols` (svg-sprite-symbol-extractor): parse an SVG sprite sheet's `<symbol>` definitions and list each one's id, viewBox, width, and height, alongside a ready-to-paste `<use href="#id"></use>` usage snippet.
8
+
5
9
  ## 0.67.0
6
10
  - Add `analyzeRegexGroups` (regex-groups): parse a regex pattern's capture groups (numbered and named) and backreferences, flagging any backreference pointing at a group that doesn't exist or hasn't finished being defined yet at that point in the pattern.
7
11
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @utilix-tech/sdk
2
2
 
3
- **684 developer utility functions for Node.js: runs locally, no API key required.**
3
+ **686 developer utility functions for Node.js: runs locally, no API key required.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@utilix-tech/sdk?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@utilix-tech/sdk)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@utilix-tech/sdk?style=flat-square)](https://www.npmjs.com/package/@utilix-tech/sdk)
@@ -676,6 +676,11 @@ parseMultipartFormData('--X\r\nContent-Disposition: form-data; name="a"\r\n\r\nh
676
676
  // Extract the boundary parameter from a Content-Type header value
677
677
  extractMultipartBoundary("multipart/form-data; boundary=----WebKitFormBoundaryABC123");
678
678
  // "----WebKitFormBoundaryABC123"
679
+
680
+ // Build a <meta name="robots" content="..."> tag, the same directive vocabulary as X-Robots-Tag
681
+ import { buildRobotsMetaTag, parseRobotsMetaTag } from "@utilix-tech/sdk/network";
682
+ buildRobotsMetaTag({ flags: ["noindex", "nofollow"], name: "googlebot" });
683
+ // { content: "noindex, nofollow", name: "googlebot", tag: '<meta name="googlebot" content="noindex, nofollow">', directives: [...], notes: [...], warnings: [] }
679
684
  ```
680
685
 
681
686
  ---
@@ -786,6 +791,11 @@ validatePackageExports(JSON.stringify({ exports: { import: "./index.mjs", requir
786
791
  // Classify each package.json dependency's version range and flag wildcards, "latest", git/URL/file deps, and conflicting duplicates
787
792
  auditDependencyRanges(JSON.stringify({ dependencies: { lodash: "^4.17.21", "left-pad": "*" } }));
788
793
  // { totalDependencies: 2, dependencies: [{ name: "lodash", rangeType: "caret", issues: [] }, { name: "left-pad", rangeType: "wildcard", issues: [...] }], duplicates: [], issues: [...] }
794
+
795
+ // List an SVG sprite sheet's <symbol> definitions with id, viewBox, and a ready-to-paste <use> snippet
796
+ import { extractSvgSpriteSymbols } from "@utilix-tech/sdk/code";
797
+ extractSvgSpriteSymbols('<svg><symbol id="icon-home" viewBox="0 0 24 24"></symbol></svg>');
798
+ // { symbolCount: 1, symbols: [{ id: "icon-home", viewBox: "0 0 24 24", width: null, height: null, usageSnippet: '<svg><use href="#icon-home"></use></svg>' }], skippedCount: 0 }
789
799
  ```
790
800
 
791
801
  ---
@@ -943,9 +953,9 @@ inspectGifFrames(new Uint8Array(gifBytes));
943
953
  | `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
944
954
  | `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
945
955
  | `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator, ROI calculator, cash denomination/till calculator, payback period calculator, CD maturity calculator, debt-to-income ratio calculator, freelancer hourly rate calculator, debt snowball/avalanche payoff planner |
946
- | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser |
956
+ | `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser |
947
957
  | `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header |
948
- | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor |
958
+ | `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor, regex capture group/backreference visualizer, SVG sprite symbol extractor |
949
959
  | `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
950
960
  | `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
951
961
  | `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
@@ -28,6 +28,7 @@ __export(network_exports, {
28
28
  buildRangeHeader: () => buildRangeHeader,
29
29
  buildReferrerPolicy: () => buildReferrerPolicy,
30
30
  buildRetryAfterHeader: () => buildRetryAfterHeader,
31
+ buildRobotsMetaTag: () => buildRobotsMetaTag,
31
32
  buildVaryHeader: () => buildVaryHeader,
32
33
  buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
33
34
  buildXRobotsTag: () => buildXRobotsTag,
@@ -65,6 +66,7 @@ __export(network_exports, {
65
66
  parsePreferHeader: () => parsePreferHeader,
66
67
  parsePriorityHeader: () => parsePriorityHeader,
67
68
  parseRetryAfterHeader: () => parseRetryAfterHeader,
69
+ parseRobotsMetaTag: () => parseRobotsMetaTag,
68
70
  parseUserAgent: () => parseUserAgent,
69
71
  parseVaryHeader: () => parseVaryHeader,
70
72
  parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
@@ -3407,5 +3409,76 @@ function lookupOpcode(opcode) {
3407
3409
  }
3408
3410
  return _describeOpcode(opcode);
3409
3411
  }
3412
+ function buildRobotsMetaTag(options) {
3413
+ const built = buildXRobotsTag({
3414
+ flags: options?.flags,
3415
+ maxSnippet: options?.maxSnippet,
3416
+ maxImagePreview: options?.maxImagePreview,
3417
+ maxVideoPreview: options?.maxVideoPreview,
3418
+ unavailableAfter: options?.unavailableAfter
3419
+ });
3420
+ if ("error" in built) return built;
3421
+ const name = options?.name?.trim() || "robots";
3422
+ return {
3423
+ content: built.header,
3424
+ name,
3425
+ tag: `<meta name="${name}" content="${built.header}">`,
3426
+ directives: built.directives,
3427
+ notes: built.notes,
3428
+ warnings: built.warnings
3429
+ };
3430
+ }
3431
+ var _ROBOTS_META_TAG_REGEX = /<meta\b[^>]*>/i;
3432
+ var _ROBOTS_META_NAME_ATTR_REGEX = /\bname\s*=\s*["']([^"']*)["']/i;
3433
+ var _ROBOTS_META_CONTENT_ATTR_REGEX = /\bcontent\s*=\s*["']([^"']*)["']/i;
3434
+ function parseRobotsMetaTag(raw) {
3435
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
3436
+ const trimmed = raw.trim();
3437
+ let name = "robots";
3438
+ let content = trimmed;
3439
+ const tagMatch = trimmed.match(_ROBOTS_META_TAG_REGEX);
3440
+ if (tagMatch) {
3441
+ const nameMatch = tagMatch[0].match(_ROBOTS_META_NAME_ATTR_REGEX);
3442
+ const contentMatch = tagMatch[0].match(_ROBOTS_META_CONTENT_ATTR_REGEX);
3443
+ if (!contentMatch) return { error: "Meta tag is missing a content attribute" };
3444
+ if (nameMatch) name = nameMatch[1].trim() || "robots";
3445
+ content = contentMatch[1];
3446
+ }
3447
+ const tokens = content.split(",").map((t) => t.trim()).filter((t) => t !== "");
3448
+ if (tokens.length === 0) return { error: "No directives found" };
3449
+ const flags = [];
3450
+ let maxSnippet;
3451
+ let maxImagePreview;
3452
+ let maxVideoPreview;
3453
+ let unavailableAfter;
3454
+ for (const token of tokens) {
3455
+ const eq = token.indexOf(":");
3456
+ const directiveName = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
3457
+ const value = eq === -1 ? "" : token.slice(eq + 1).trim();
3458
+ if (eq === -1) {
3459
+ if (!_isXRobotsTagFlag(directiveName)) return { error: `Unrecognized directive "${token}"` };
3460
+ flags.push(directiveName);
3461
+ continue;
3462
+ }
3463
+ if (directiveName === "max-snippet") {
3464
+ const n = Number(value);
3465
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
3466
+ maxSnippet = n;
3467
+ } else if (directiveName === "max-image-preview") {
3468
+ if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
3469
+ maxImagePreview = value;
3470
+ } else if (directiveName === "max-video-preview") {
3471
+ const n = Number(value);
3472
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
3473
+ maxVideoPreview = n;
3474
+ } else if (directiveName === "unavailable_after") {
3475
+ if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
3476
+ unavailableAfter = value;
3477
+ } else {
3478
+ return { error: `Unrecognized directive "${token}"` };
3479
+ }
3480
+ }
3481
+ return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
3482
+ }
3410
3483
 
3411
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
3484
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
@@ -24,6 +24,7 @@ __export(code_exports, {
24
24
  detectRedos: () => detectRedos,
25
25
  envToExport: () => envToExport,
26
26
  envToJson: () => envToJson,
27
+ extractSvgSpriteSymbols: () => extractSvgSpriteSymbols,
27
28
  formatCss: () => formatCss,
28
29
  formatGql: () => formatGql,
29
30
  formatHtml: () => formatHtml,
@@ -3594,5 +3595,35 @@ function analyzeRegexGroups(pattern) {
3594
3595
  }
3595
3596
  return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
3596
3597
  }
3598
+ var SVG_SYMBOL_TAG_REGEX = /<symbol\b([^>]*)>/gi;
3599
+ function extractSvgAttr(attrs, name) {
3600
+ const match = attrs.match(new RegExp(`\\s${name}\\s*=\\s*["']([^"']*)["']`, "i"));
3601
+ return match ? match[1] : null;
3602
+ }
3603
+ function extractSvgSpriteSymbols(svg) {
3604
+ const trimmed = svg.trim();
3605
+ if (!trimmed) return { error: "Empty input" };
3606
+ const symbols = [];
3607
+ let skippedCount = 0;
3608
+ for (const match of trimmed.matchAll(SVG_SYMBOL_TAG_REGEX)) {
3609
+ const attrs = match[1];
3610
+ const id = extractSvgAttr(attrs, "id");
3611
+ if (!id) {
3612
+ skippedCount++;
3613
+ continue;
3614
+ }
3615
+ symbols.push({
3616
+ id,
3617
+ viewBox: extractSvgAttr(attrs, "viewBox"),
3618
+ width: extractSvgAttr(attrs, "width"),
3619
+ height: extractSvgAttr(attrs, "height"),
3620
+ usageSnippet: `<svg><use href="#${id}"></use></svg>`
3621
+ });
3622
+ }
3623
+ if (symbols.length === 0 && skippedCount === 0) {
3624
+ return { error: "No <symbol> elements found" };
3625
+ }
3626
+ return { symbolCount: symbols.length, symbols, skippedCount };
3627
+ }
3597
3628
 
3598
- export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig };
3629
+ export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig };
@@ -27,6 +27,7 @@
27
27
  * - package-json-exports-validator (validatePackageExports)
28
28
  * - package-json-dependency-auditor (auditDependencyRanges)
29
29
  * - regex-groups (analyzeRegexGroups)
30
+ * - svg-sprite-symbol-extractor (extractSvgSpriteSymbols)
30
31
  */
31
32
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
32
33
  declare const ALL_FLAGS: RegexFlag[];
@@ -547,6 +548,29 @@ interface RegexGroupAnalysis {
547
548
  * (plain-English breakdown).
548
549
  */
549
550
  declare function analyzeRegexGroups(pattern: string): RegexGroupAnalysis;
551
+ interface SvgSpriteSymbol {
552
+ id: string;
553
+ viewBox: string | null;
554
+ width: string | null;
555
+ height: string | null;
556
+ usageSnippet: string;
557
+ }
558
+ interface SvgSpriteResult {
559
+ symbolCount: number;
560
+ symbols: SvgSpriteSymbol[];
561
+ skippedCount: number;
562
+ }
563
+ /**
564
+ * Parse an SVG sprite sheet's <symbol> definitions and list each one's id,
565
+ * viewBox, width, and height, alongside a ready-to-paste
566
+ * `<use href="#id"></use>` usage snippet. A symbol with no id is skipped
567
+ * (counted in skippedCount) since it can't be referenced by a `<use>`
568
+ * element at all. Pure regex-based parsing over the raw markup, no DOM/XML
569
+ * parser dependency, matching the SVG Viewer tool's parsing style.
570
+ */
571
+ declare function extractSvgSpriteSymbols(svg: string): SvgSpriteResult | {
572
+ error: string;
573
+ };
550
574
 
551
575
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
552
576
  type code_ApiEndpoint = ApiEndpoint;
@@ -612,6 +636,8 @@ type code_Segment = Segment;
612
636
  type code_SpecVersion = SpecVersion;
613
637
  type code_SqlDialect = SqlDialect;
614
638
  type code_SqlFormatOptions = SqlFormatOptions;
639
+ type code_SvgSpriteResult = SvgSpriteResult;
640
+ type code_SvgSpriteSymbol = SvgSpriteSymbol;
615
641
  type code_TestPatternResult = TestPatternResult;
616
642
  type code_TsconfigIssue = TsconfigIssue;
617
643
  type code_TsconfigValidationResult = TsconfigValidationResult;
@@ -629,6 +655,7 @@ declare const code_detectOperationType: typeof detectOperationType;
629
655
  declare const code_detectRedos: typeof detectRedos;
630
656
  declare const code_envToExport: typeof envToExport;
631
657
  declare const code_envToJson: typeof envToJson;
658
+ declare const code_extractSvgSpriteSymbols: typeof extractSvgSpriteSymbols;
632
659
  declare const code_formatCss: typeof formatCss;
633
660
  declare const code_formatGql: typeof formatGql;
634
661
  declare const code_formatHtml: typeof formatHtml;
@@ -667,7 +694,7 @@ declare const code_validateEnvKey: typeof validateEnvKey;
667
694
  declare const code_validatePackageExports: typeof validatePackageExports;
668
695
  declare const code_validateTsconfig: typeof validateTsconfig;
669
696
  declare namespace code {
670
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
697
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_SvgSpriteResult as SvgSpriteResult, type code_SvgSpriteSymbol as SvgSpriteSymbol, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractSvgSpriteSymbols as extractSvgSpriteSymbols, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
671
698
  }
672
699
 
673
- export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, validatePackageExports as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, isValidTag as aA, lintConventionalCommit as aB, lookupMime as aC, minifyCss as aD, minifyGql as aE, minifyHtml as aF, minifyJs as aG, minifySql as aH, normalizeRef as aI, parseDockerImage as aJ, parseEnv as aK, parseGitCommand as aL, parseGithubUrl as aM, parseSpec as aN, removeConsoleCalls as aO, removeEmptyAttributes as aP, removeHtmlComments as aQ, removeJsComments as aR, removeRedundantAttributes as aS, searchCheatsheet as aT, searchEndpoints as aU, splitStatements as aV, testGitignorePatterns as aW, testPattern as aX, testRegex as aY, validateEditorConfig as aZ, validateEnvKey as a_, type SqlFormatOptions as aa, type TestPatternResult as ab, type TsconfigIssue as ac, type TsconfigValidationResult as ad, analyzeRegexGroups as ae, auditDependencyRanges as af, buildDockerPull as ag, buildDockerRun as ah, buildGitCommand as ai, collapseHtmlWhitespace as aj, collapseJsWhitespace as ak, countProperties as al, countRules as am, detectDialect as an, detectOperationType as ao, detectRedos as ap, envToExport as aq, envToJson as ar, formatCss as as, formatGql as at, formatHtml as au, formatSql as av, getEndpointsByTag as aw, getHtmlStats as ax, getJsStats as ay, getMethodColor as az, type ApiInfo as b, validateTsconfig as b0, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
700
+ export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, testRegex as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, getHtmlStats as aA, getJsStats as aB, getMethodColor as aC, isValidTag as aD, lintConventionalCommit as aE, lookupMime as aF, minifyCss as aG, minifyGql as aH, minifyHtml as aI, minifyJs as aJ, minifySql as aK, normalizeRef as aL, parseDockerImage as aM, parseEnv as aN, parseGitCommand as aO, parseGithubUrl as aP, parseSpec as aQ, removeConsoleCalls as aR, removeEmptyAttributes as aS, removeHtmlComments as aT, removeJsComments as aU, removeRedundantAttributes as aV, searchCheatsheet as aW, searchEndpoints as aX, splitStatements as aY, testGitignorePatterns as aZ, testPattern as a_, type SqlFormatOptions as aa, type SvgSpriteResult as ab, type SvgSpriteSymbol as ac, type TestPatternResult as ad, type TsconfigIssue as ae, type TsconfigValidationResult as af, analyzeRegexGroups as ag, auditDependencyRanges as ah, buildDockerPull as ai, buildDockerRun as aj, buildGitCommand as ak, collapseHtmlWhitespace as al, collapseJsWhitespace as am, countProperties as an, countRules as ao, detectDialect as ap, detectOperationType as aq, detectRedos as ar, envToExport as as, envToJson as at, extractSvgSpriteSymbols as au, formatCss as av, formatGql as aw, formatHtml as ax, formatSql as ay, getEndpointsByTag as az, type ApiInfo as b, validateEditorConfig as b0, validateEnvKey as b1, validatePackageExports as b2, validateTsconfig as b3, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
@@ -27,6 +27,7 @@
27
27
  * - package-json-exports-validator (validatePackageExports)
28
28
  * - package-json-dependency-auditor (auditDependencyRanges)
29
29
  * - regex-groups (analyzeRegexGroups)
30
+ * - svg-sprite-symbol-extractor (extractSvgSpriteSymbols)
30
31
  */
31
32
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
32
33
  declare const ALL_FLAGS: RegexFlag[];
@@ -547,6 +548,29 @@ interface RegexGroupAnalysis {
547
548
  * (plain-English breakdown).
548
549
  */
549
550
  declare function analyzeRegexGroups(pattern: string): RegexGroupAnalysis;
551
+ interface SvgSpriteSymbol {
552
+ id: string;
553
+ viewBox: string | null;
554
+ width: string | null;
555
+ height: string | null;
556
+ usageSnippet: string;
557
+ }
558
+ interface SvgSpriteResult {
559
+ symbolCount: number;
560
+ symbols: SvgSpriteSymbol[];
561
+ skippedCount: number;
562
+ }
563
+ /**
564
+ * Parse an SVG sprite sheet's <symbol> definitions and list each one's id,
565
+ * viewBox, width, and height, alongside a ready-to-paste
566
+ * `<use href="#id"></use>` usage snippet. A symbol with no id is skipped
567
+ * (counted in skippedCount) since it can't be referenced by a `<use>`
568
+ * element at all. Pure regex-based parsing over the raw markup, no DOM/XML
569
+ * parser dependency, matching the SVG Viewer tool's parsing style.
570
+ */
571
+ declare function extractSvgSpriteSymbols(svg: string): SvgSpriteResult | {
572
+ error: string;
573
+ };
550
574
 
551
575
  declare const code_ALL_FLAGS: typeof ALL_FLAGS;
552
576
  type code_ApiEndpoint = ApiEndpoint;
@@ -612,6 +636,8 @@ type code_Segment = Segment;
612
636
  type code_SpecVersion = SpecVersion;
613
637
  type code_SqlDialect = SqlDialect;
614
638
  type code_SqlFormatOptions = SqlFormatOptions;
639
+ type code_SvgSpriteResult = SvgSpriteResult;
640
+ type code_SvgSpriteSymbol = SvgSpriteSymbol;
615
641
  type code_TestPatternResult = TestPatternResult;
616
642
  type code_TsconfigIssue = TsconfigIssue;
617
643
  type code_TsconfigValidationResult = TsconfigValidationResult;
@@ -629,6 +655,7 @@ declare const code_detectOperationType: typeof detectOperationType;
629
655
  declare const code_detectRedos: typeof detectRedos;
630
656
  declare const code_envToExport: typeof envToExport;
631
657
  declare const code_envToJson: typeof envToJson;
658
+ declare const code_extractSvgSpriteSymbols: typeof extractSvgSpriteSymbols;
632
659
  declare const code_formatCss: typeof formatCss;
633
660
  declare const code_formatGql: typeof formatGql;
634
661
  declare const code_formatHtml: typeof formatHtml;
@@ -667,7 +694,7 @@ declare const code_validateEnvKey: typeof validateEnvKey;
667
694
  declare const code_validatePackageExports: typeof validatePackageExports;
668
695
  declare const code_validateTsconfig: typeof validateTsconfig;
669
696
  declare namespace code {
670
- export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
697
+ export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_SvgSpriteResult as SvgSpriteResult, type code_SvgSpriteSymbol as SvgSpriteSymbol, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractSvgSpriteSymbols as extractSvgSpriteSymbols, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
671
698
  }
672
699
 
673
- export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, validatePackageExports as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, isValidTag as aA, lintConventionalCommit as aB, lookupMime as aC, minifyCss as aD, minifyGql as aE, minifyHtml as aF, minifyJs as aG, minifySql as aH, normalizeRef as aI, parseDockerImage as aJ, parseEnv as aK, parseGitCommand as aL, parseGithubUrl as aM, parseSpec as aN, removeConsoleCalls as aO, removeEmptyAttributes as aP, removeHtmlComments as aQ, removeJsComments as aR, removeRedundantAttributes as aS, searchCheatsheet as aT, searchEndpoints as aU, splitStatements as aV, testGitignorePatterns as aW, testPattern as aX, testRegex as aY, validateEditorConfig as aZ, validateEnvKey as a_, type SqlFormatOptions as aa, type TestPatternResult as ab, type TsconfigIssue as ac, type TsconfigValidationResult as ad, analyzeRegexGroups as ae, auditDependencyRanges as af, buildDockerPull as ag, buildDockerRun as ah, buildGitCommand as ai, collapseHtmlWhitespace as aj, collapseJsWhitespace as ak, countProperties as al, countRules as am, detectDialect as an, detectOperationType as ao, detectRedos as ap, envToExport as aq, envToJson as ar, formatCss as as, formatGql as at, formatHtml as au, formatSql as av, getEndpointsByTag as aw, getHtmlStats as ax, getJsStats as ay, getMethodColor as az, type ApiInfo as b, validateTsconfig as b0, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
700
+ export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, testRegex as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, getHtmlStats as aA, getJsStats as aB, getMethodColor as aC, isValidTag as aD, lintConventionalCommit as aE, lookupMime as aF, minifyCss as aG, minifyGql as aH, minifyHtml as aI, minifyJs as aJ, minifySql as aK, normalizeRef as aL, parseDockerImage as aM, parseEnv as aN, parseGitCommand as aO, parseGithubUrl as aP, parseSpec as aQ, removeConsoleCalls as aR, removeEmptyAttributes as aS, removeHtmlComments as aT, removeJsComments as aU, removeRedundantAttributes as aV, searchCheatsheet as aW, searchEndpoints as aX, splitStatements as aY, testGitignorePatterns as aZ, testPattern as a_, type SqlFormatOptions as aa, type SvgSpriteResult as ab, type SvgSpriteSymbol as ac, type TestPatternResult as ad, type TsconfigIssue as ae, type TsconfigValidationResult as af, analyzeRegexGroups as ag, auditDependencyRanges as ah, buildDockerPull as ai, buildDockerRun as aj, buildGitCommand as ak, collapseHtmlWhitespace as al, collapseJsWhitespace as am, countProperties as an, countRules as ao, detectDialect as ap, detectOperationType as aq, detectRedos as ar, envToExport as as, envToJson as at, extractSvgSpriteSymbols as au, formatCss as av, formatGql as aw, formatHtml as ax, formatSql as ay, getEndpointsByTag as az, type ApiInfo as b, validateEditorConfig as b0, validateEnvKey as b1, validatePackageExports as b2, validateTsconfig as b3, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
package/dist/index.cjs CHANGED
@@ -11066,6 +11066,7 @@ __export(network_exports, {
11066
11066
  buildRangeHeader: () => buildRangeHeader,
11067
11067
  buildReferrerPolicy: () => buildReferrerPolicy,
11068
11068
  buildRetryAfterHeader: () => buildRetryAfterHeader,
11069
+ buildRobotsMetaTag: () => buildRobotsMetaTag,
11069
11070
  buildVaryHeader: () => buildVaryHeader,
11070
11071
  buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
11071
11072
  buildXRobotsTag: () => buildXRobotsTag,
@@ -11103,6 +11104,7 @@ __export(network_exports, {
11103
11104
  parsePreferHeader: () => parsePreferHeader,
11104
11105
  parsePriorityHeader: () => parsePriorityHeader,
11105
11106
  parseRetryAfterHeader: () => parseRetryAfterHeader,
11107
+ parseRobotsMetaTag: () => parseRobotsMetaTag,
11106
11108
  parseUserAgent: () => parseUserAgent,
11107
11109
  parseVaryHeader: () => parseVaryHeader,
11108
11110
  parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
@@ -14445,6 +14447,77 @@ function lookupOpcode(opcode) {
14445
14447
  }
14446
14448
  return _describeOpcode(opcode);
14447
14449
  }
14450
+ function buildRobotsMetaTag(options) {
14451
+ const built = buildXRobotsTag({
14452
+ flags: options?.flags,
14453
+ maxSnippet: options?.maxSnippet,
14454
+ maxImagePreview: options?.maxImagePreview,
14455
+ maxVideoPreview: options?.maxVideoPreview,
14456
+ unavailableAfter: options?.unavailableAfter
14457
+ });
14458
+ if ("error" in built) return built;
14459
+ const name = options?.name?.trim() || "robots";
14460
+ return {
14461
+ content: built.header,
14462
+ name,
14463
+ tag: `<meta name="${name}" content="${built.header}">`,
14464
+ directives: built.directives,
14465
+ notes: built.notes,
14466
+ warnings: built.warnings
14467
+ };
14468
+ }
14469
+ var _ROBOTS_META_TAG_REGEX = /<meta\b[^>]*>/i;
14470
+ var _ROBOTS_META_NAME_ATTR_REGEX = /\bname\s*=\s*["']([^"']*)["']/i;
14471
+ var _ROBOTS_META_CONTENT_ATTR_REGEX = /\bcontent\s*=\s*["']([^"']*)["']/i;
14472
+ function parseRobotsMetaTag(raw) {
14473
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
14474
+ const trimmed = raw.trim();
14475
+ let name = "robots";
14476
+ let content = trimmed;
14477
+ const tagMatch = trimmed.match(_ROBOTS_META_TAG_REGEX);
14478
+ if (tagMatch) {
14479
+ const nameMatch = tagMatch[0].match(_ROBOTS_META_NAME_ATTR_REGEX);
14480
+ const contentMatch = tagMatch[0].match(_ROBOTS_META_CONTENT_ATTR_REGEX);
14481
+ if (!contentMatch) return { error: "Meta tag is missing a content attribute" };
14482
+ if (nameMatch) name = nameMatch[1].trim() || "robots";
14483
+ content = contentMatch[1];
14484
+ }
14485
+ const tokens = content.split(",").map((t) => t.trim()).filter((t) => t !== "");
14486
+ if (tokens.length === 0) return { error: "No directives found" };
14487
+ const flags = [];
14488
+ let maxSnippet;
14489
+ let maxImagePreview;
14490
+ let maxVideoPreview;
14491
+ let unavailableAfter;
14492
+ for (const token of tokens) {
14493
+ const eq = token.indexOf(":");
14494
+ const directiveName = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
14495
+ const value = eq === -1 ? "" : token.slice(eq + 1).trim();
14496
+ if (eq === -1) {
14497
+ if (!_isXRobotsTagFlag(directiveName)) return { error: `Unrecognized directive "${token}"` };
14498
+ flags.push(directiveName);
14499
+ continue;
14500
+ }
14501
+ if (directiveName === "max-snippet") {
14502
+ const n = Number(value);
14503
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
14504
+ maxSnippet = n;
14505
+ } else if (directiveName === "max-image-preview") {
14506
+ if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
14507
+ maxImagePreview = value;
14508
+ } else if (directiveName === "max-video-preview") {
14509
+ const n = Number(value);
14510
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
14511
+ maxVideoPreview = n;
14512
+ } else if (directiveName === "unavailable_after") {
14513
+ if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
14514
+ unavailableAfter = value;
14515
+ } else {
14516
+ return { error: `Unrecognized directive "${token}"` };
14517
+ }
14518
+ }
14519
+ return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
14520
+ }
14448
14521
 
14449
14522
  // src/tools/api.ts
14450
14523
  var api_exports = {};
@@ -15777,6 +15850,7 @@ __export(code_exports, {
15777
15850
  detectRedos: () => detectRedos,
15778
15851
  envToExport: () => envToExport2,
15779
15852
  envToJson: () => envToJson2,
15853
+ extractSvgSpriteSymbols: () => extractSvgSpriteSymbols,
15780
15854
  formatCss: () => formatCss,
15781
15855
  formatGql: () => formatGql,
15782
15856
  formatHtml: () => formatHtml,
@@ -19347,6 +19421,36 @@ function analyzeRegexGroups(pattern) {
19347
19421
  }
19348
19422
  return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
19349
19423
  }
19424
+ var SVG_SYMBOL_TAG_REGEX = /<symbol\b([^>]*)>/gi;
19425
+ function extractSvgAttr(attrs, name) {
19426
+ const match = attrs.match(new RegExp(`\\s${name}\\s*=\\s*["']([^"']*)["']`, "i"));
19427
+ return match ? match[1] : null;
19428
+ }
19429
+ function extractSvgSpriteSymbols(svg) {
19430
+ const trimmed = svg.trim();
19431
+ if (!trimmed) return { error: "Empty input" };
19432
+ const symbols = [];
19433
+ let skippedCount = 0;
19434
+ for (const match of trimmed.matchAll(SVG_SYMBOL_TAG_REGEX)) {
19435
+ const attrs = match[1];
19436
+ const id = extractSvgAttr(attrs, "id");
19437
+ if (!id) {
19438
+ skippedCount++;
19439
+ continue;
19440
+ }
19441
+ symbols.push({
19442
+ id,
19443
+ viewBox: extractSvgAttr(attrs, "viewBox"),
19444
+ width: extractSvgAttr(attrs, "width"),
19445
+ height: extractSvgAttr(attrs, "height"),
19446
+ usageSnippet: `<svg><use href="#${id}"></use></svg>`
19447
+ });
19448
+ }
19449
+ if (symbols.length === 0 && skippedCount === 0) {
19450
+ return { error: "No <symbol> elements found" };
19451
+ }
19452
+ return { symbolCount: symbols.length, symbols, skippedCount };
19453
+ }
19350
19454
 
19351
19455
  // src/tools/color.ts
19352
19456
  var color_exports = {};
package/dist/index.d.cts CHANGED
@@ -6,9 +6,9 @@ export { d as data } from './data-26TALa9U.cjs';
6
6
  export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-KqJjdqII.cjs';
8
8
  export { u as units } from './units-DPefgzmH.cjs';
9
- export { n as network } from './network-EHkPJFoe.cjs';
9
+ export { n as network } from './network-BmqYmfqY.cjs';
10
10
  export { a as api } from './api-DmTNE4c1.cjs';
11
- export { c as code } from './code-Cg9mE6b0.cjs';
11
+ export { c as code } from './code-DB-5ZfG4.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
13
13
  export { c as css } from './css-Cf7AMGM-.cjs';
14
14
  export { m as misc } from './misc-CA3N198T.cjs';
package/dist/index.d.ts CHANGED
@@ -6,9 +6,9 @@ export { d as data } from './data-26TALa9U.js';
6
6
  export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-KqJjdqII.js';
8
8
  export { u as units } from './units-DPefgzmH.js';
9
- export { n as network } from './network-EHkPJFoe.js';
9
+ export { n as network } from './network-BmqYmfqY.js';
10
10
  export { a as api } from './api-DmTNE4c1.js';
11
- export { c as code } from './code-Cg9mE6b0.js';
11
+ export { c as code } from './code-DB-5ZfG4.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
13
13
  export { c as css } from './css-Cf7AMGM-.js';
14
14
  export { m as misc } from './misc-CA3N198T.js';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export { media_exports as media } from './chunk-226EH3ZI.js';
2
2
  export { units_exports as units } from './chunk-4HNHEOJL.js';
3
- export { network_exports as network } from './chunk-TTQ2FNUG.js';
3
+ export { network_exports as network } from './chunk-ACGCCOCK.js';
4
4
  export { api_exports as api } from './chunk-52ZDKSIX.js';
5
- export { code_exports as code } from './chunk-XCJJOWTK.js';
5
+ export { code_exports as code } from './chunk-COL3IM7U.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
7
7
  export { css_exports as css } from './chunk-6YPV2AB5.js';
8
8
  export { misc_exports as misc } from './chunk-GX7H6TAX.js';
@@ -30,6 +30,7 @@
30
30
  * - hsts-header-builder: buildHsts, parseHsts
31
31
  * - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
32
32
  * - websocket-opcode-reference: lookupOpcode, listOpcodes
33
+ * - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
33
34
  */
34
35
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
35
36
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -1025,6 +1026,44 @@ declare function listOpcodes(): OpcodeInfo[];
1025
1026
  declare function lookupOpcode(opcode: number): OpcodeInfo | {
1026
1027
  error: string;
1027
1028
  };
1029
+ type RobotsMetaTagFlag = XRobotsTagFlag;
1030
+ interface RobotsMetaTagOptions {
1031
+ flags?: RobotsMetaTagFlag[];
1032
+ maxSnippet?: number;
1033
+ maxImagePreview?: 'none' | 'standard' | 'large';
1034
+ maxVideoPreview?: number;
1035
+ unavailableAfter?: string;
1036
+ name?: string;
1037
+ }
1038
+ interface RobotsMetaTagResult {
1039
+ content: string;
1040
+ name: string;
1041
+ tag: string;
1042
+ directives: string[];
1043
+ notes: string[];
1044
+ warnings: string[];
1045
+ }
1046
+ /**
1047
+ * Build a `<meta name="robots" content="...">` tag from flag directives
1048
+ * (noindex, nofollow, etc.) plus the optional max-snippet, max-image-preview,
1049
+ * max-video-preview, and unavailable_after value directives — the exact same
1050
+ * directive vocabulary as the `X-Robots-Tag` header. Since a meta tag only
1051
+ * works on an HTML page's `<head>`, this is the only option there; scope the
1052
+ * tag to a single crawler by passing `name` (e.g. "googlebot") instead of the
1053
+ * default "robots", which every crawler reads. Pure string assembly; it
1054
+ * never crawls or inspects a live page.
1055
+ */
1056
+ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTagResult | {
1057
+ error: string;
1058
+ };
1059
+ /**
1060
+ * Parse an existing `<meta name="..." content="...">` robots tag (or a bare
1061
+ * content attribute value on its own) back into the same shape
1062
+ * `buildRobotsMetaTag` returns.
1063
+ */
1064
+ declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
1065
+ error: string;
1066
+ };
1028
1067
 
1029
1068
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
1030
1069
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -1101,6 +1140,9 @@ type network_RetryAfterResult = RetryAfterResult;
1101
1140
  type network_RetryAfterSecondsResult = RetryAfterSecondsResult;
1102
1141
  type network_RobotsGroup = RobotsGroup;
1103
1142
  type network_RobotsIssue = RobotsIssue;
1143
+ type network_RobotsMetaTagFlag = RobotsMetaTagFlag;
1144
+ type network_RobotsMetaTagOptions = RobotsMetaTagOptions;
1145
+ type network_RobotsMetaTagResult = RobotsMetaTagResult;
1104
1146
  type network_RobotsRule = RobotsRule;
1105
1147
  type network_RobotsValidationResult = RobotsValidationResult;
1106
1148
  declare const network_STATUS_CODES: typeof STATUS_CODES;
@@ -1140,6 +1182,7 @@ declare const network_buildPriorityHeader: typeof buildPriorityHeader;
1140
1182
  declare const network_buildRangeHeader: typeof buildRangeHeader;
1141
1183
  declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
1142
1184
  declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
1185
+ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
1143
1186
  declare const network_buildVaryHeader: typeof buildVaryHeader;
1144
1187
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1145
1188
  declare const network_buildXRobotsTag: typeof buildXRobotsTag;
@@ -1177,6 +1220,7 @@ declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
1177
1220
  declare const network_parsePreferHeader: typeof parsePreferHeader;
1178
1221
  declare const network_parsePriorityHeader: typeof parsePriorityHeader;
1179
1222
  declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
1223
+ declare const network_parseRobotsMetaTag: typeof parseRobotsMetaTag;
1180
1224
  declare const network_parseUserAgent: typeof parseUserAgent;
1181
1225
  declare const network_parseVaryHeader: typeof parseVaryHeader;
1182
1226
  declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
@@ -1193,7 +1237,7 @@ declare const network_validateManifest: typeof validateManifest;
1193
1237
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1194
1238
  declare const network_validateSitemap: typeof validateSitemap;
1195
1239
  declare namespace network {
1196
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1240
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1197
1241
  }
1198
1242
 
1199
- export { type ParsedClientHint as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildXRobotsTag as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type VaryHeaderEntry as aA, type VaryHeaderResult as aB, type XContentTypeOptionsHeader as aC, type XContentTypeOptionsParseResult as aD, type XRobotsTagFlag as aE, type XRobotsTagOptions as aF, type XRobotsTagResult as aG, X_CONTENT_TYPE_OPTIONS_HEADER as aH, analyzeEmailHeaders as aI, assessContentTypeRisk as aJ, buildAcceptLanguage as aK, buildCacheControl as aL, buildClientHints as aM, buildContentDisposition as aN, buildDnsQueryUrl as aO, buildGeoUrl as aP, buildHsts as aQ, buildLinkHeader as aR, buildMapUrl as aS, buildPermissionsPolicy as aT, buildPreferHeader as aU, buildPriorityHeader as aV, buildRangeHeader as aW, buildReferrerPolicy as aX, buildRetryAfterHeader as aY, buildVaryHeader as aZ, buildXContentTypeOptionsHeader as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsRule as am, type RobotsValidationResult as an, STATUS_CODES as ao, type SameSiteValue as ap, type SitemapIndexEntry as aq, type SitemapIssue as ar, type SitemapSplitFile as as, type SitemapUrlEntry as at, type SitemapValidationResult as au, type SplitSitemapOptions as av, type SplitSitemapResult as aw, type StatusCode as ax, type UaDeviceType as ay, type UserAgentInfo as az, type AuthResultEntry as b, checkSetCookieHeader as b0, countryCodeToFlag as b1, extractMultipartBoundary as b2, formatCoordinates as b3, formatTtl as b4, getByCategory as b5, getHeader as b6, getHeadersByCategory as b7, getStatusByCategory as b8, getStatusCode as b9, parseXContentTypeOptionsHeader as bA, parseXRobotsTag as bB, searchHeaders as bC, searchStatusCodes as bD, splitSitemap as bE, statusCodeToText as bF, typeNumberToLabel as bG, validateDomain as bH, validateHeaderName as bI, validateHeaderValue as bJ, validateManifest as bK, validateRobotsTxt as bL, validateSitemap as bM, isClientError as ba, isServerError as bb, isSuccess as bc, isValidIp as bd, isValidIpv4 as be, isValidIpv6 as bf, listCloseCodes as bg, listOpcodes as bh, lookupCloseCode as bi, lookupOpcode as bj, parseAcceptLanguage as bk, parseClientHintHeaders as bl, parseContentDisposition as bm, parseContentRangeHeader as bn, parseDnsResponse as bo, parseGeoResponse as bp, parseHar as bq, parseHsts as br, parseIpv6Address as bs, parseMultipartFormData as bt, parsePermissionsPolicy as bu, parsePreferHeader as bv, parsePriorityHeader as bw, parseRetryAfterHeader as bx, parseUserAgent as by, parseVaryHeader as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1243
+ export { type ParsedClientHint as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildRetryAfterHeader as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type StatusCode as aA, type UaDeviceType as aB, type UserAgentInfo as aC, type VaryHeaderEntry as aD, type VaryHeaderResult as aE, type XContentTypeOptionsHeader as aF, type XContentTypeOptionsParseResult as aG, type XRobotsTagFlag as aH, type XRobotsTagOptions as aI, type XRobotsTagResult as aJ, X_CONTENT_TYPE_OPTIONS_HEADER as aK, analyzeEmailHeaders as aL, assessContentTypeRisk as aM, buildAcceptLanguage as aN, buildCacheControl as aO, buildClientHints as aP, buildContentDisposition as aQ, buildDnsQueryUrl as aR, buildGeoUrl as aS, buildHsts as aT, buildLinkHeader as aU, buildMapUrl as aV, buildPermissionsPolicy as aW, buildPreferHeader as aX, buildPriorityHeader as aY, buildRangeHeader as aZ, buildReferrerPolicy as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsMetaTagFlag as am, type RobotsMetaTagOptions as an, type RobotsMetaTagResult as ao, type RobotsRule as ap, type RobotsValidationResult as aq, STATUS_CODES as ar, type SameSiteValue as as, type SitemapIndexEntry as at, type SitemapIssue as au, type SitemapSplitFile as av, type SitemapUrlEntry as aw, type SitemapValidationResult as ax, type SplitSitemapOptions as ay, type SplitSitemapResult as az, type AuthResultEntry as b, buildRobotsMetaTag as b0, buildVaryHeader as b1, buildXContentTypeOptionsHeader as b2, buildXRobotsTag as b3, checkSetCookieHeader as b4, countryCodeToFlag as b5, extractMultipartBoundary as b6, formatCoordinates as b7, formatTtl as b8, getByCategory as b9, parsePriorityHeader as bA, parseRetryAfterHeader as bB, parseRobotsMetaTag as bC, parseUserAgent as bD, parseVaryHeader as bE, parseXContentTypeOptionsHeader as bF, parseXRobotsTag as bG, searchHeaders as bH, searchStatusCodes as bI, splitSitemap as bJ, statusCodeToText as bK, typeNumberToLabel as bL, validateDomain as bM, validateHeaderName as bN, validateHeaderValue as bO, validateManifest as bP, validateRobotsTxt as bQ, validateSitemap as bR, getHeader as ba, getHeadersByCategory as bb, getStatusByCategory as bc, getStatusCode as bd, isClientError as be, isServerError as bf, isSuccess as bg, isValidIp as bh, isValidIpv4 as bi, isValidIpv6 as bj, listCloseCodes as bk, listOpcodes as bl, lookupCloseCode as bm, lookupOpcode as bn, parseAcceptLanguage as bo, parseClientHintHeaders as bp, parseContentDisposition as bq, parseContentRangeHeader as br, parseDnsResponse as bs, parseGeoResponse as bt, parseHar as bu, parseHsts as bv, parseIpv6Address as bw, parseMultipartFormData as bx, parsePermissionsPolicy as by, parsePreferHeader as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
@@ -30,6 +30,7 @@
30
30
  * - hsts-header-builder: buildHsts, parseHsts
31
31
  * - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
32
32
  * - websocket-opcode-reference: lookupOpcode, listOpcodes
33
+ * - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
33
34
  */
34
35
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
35
36
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -1025,6 +1026,44 @@ declare function listOpcodes(): OpcodeInfo[];
1025
1026
  declare function lookupOpcode(opcode: number): OpcodeInfo | {
1026
1027
  error: string;
1027
1028
  };
1029
+ type RobotsMetaTagFlag = XRobotsTagFlag;
1030
+ interface RobotsMetaTagOptions {
1031
+ flags?: RobotsMetaTagFlag[];
1032
+ maxSnippet?: number;
1033
+ maxImagePreview?: 'none' | 'standard' | 'large';
1034
+ maxVideoPreview?: number;
1035
+ unavailableAfter?: string;
1036
+ name?: string;
1037
+ }
1038
+ interface RobotsMetaTagResult {
1039
+ content: string;
1040
+ name: string;
1041
+ tag: string;
1042
+ directives: string[];
1043
+ notes: string[];
1044
+ warnings: string[];
1045
+ }
1046
+ /**
1047
+ * Build a `<meta name="robots" content="...">` tag from flag directives
1048
+ * (noindex, nofollow, etc.) plus the optional max-snippet, max-image-preview,
1049
+ * max-video-preview, and unavailable_after value directives — the exact same
1050
+ * directive vocabulary as the `X-Robots-Tag` header. Since a meta tag only
1051
+ * works on an HTML page's `<head>`, this is the only option there; scope the
1052
+ * tag to a single crawler by passing `name` (e.g. "googlebot") instead of the
1053
+ * default "robots", which every crawler reads. Pure string assembly; it
1054
+ * never crawls or inspects a live page.
1055
+ */
1056
+ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTagResult | {
1057
+ error: string;
1058
+ };
1059
+ /**
1060
+ * Parse an existing `<meta name="..." content="...">` robots tag (or a bare
1061
+ * content attribute value on its own) back into the same shape
1062
+ * `buildRobotsMetaTag` returns.
1063
+ */
1064
+ declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
1065
+ error: string;
1066
+ };
1028
1067
 
1029
1068
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
1030
1069
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -1101,6 +1140,9 @@ type network_RetryAfterResult = RetryAfterResult;
1101
1140
  type network_RetryAfterSecondsResult = RetryAfterSecondsResult;
1102
1141
  type network_RobotsGroup = RobotsGroup;
1103
1142
  type network_RobotsIssue = RobotsIssue;
1143
+ type network_RobotsMetaTagFlag = RobotsMetaTagFlag;
1144
+ type network_RobotsMetaTagOptions = RobotsMetaTagOptions;
1145
+ type network_RobotsMetaTagResult = RobotsMetaTagResult;
1104
1146
  type network_RobotsRule = RobotsRule;
1105
1147
  type network_RobotsValidationResult = RobotsValidationResult;
1106
1148
  declare const network_STATUS_CODES: typeof STATUS_CODES;
@@ -1140,6 +1182,7 @@ declare const network_buildPriorityHeader: typeof buildPriorityHeader;
1140
1182
  declare const network_buildRangeHeader: typeof buildRangeHeader;
1141
1183
  declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
1142
1184
  declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
1185
+ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
1143
1186
  declare const network_buildVaryHeader: typeof buildVaryHeader;
1144
1187
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1145
1188
  declare const network_buildXRobotsTag: typeof buildXRobotsTag;
@@ -1177,6 +1220,7 @@ declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
1177
1220
  declare const network_parsePreferHeader: typeof parsePreferHeader;
1178
1221
  declare const network_parsePriorityHeader: typeof parsePriorityHeader;
1179
1222
  declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
1223
+ declare const network_parseRobotsMetaTag: typeof parseRobotsMetaTag;
1180
1224
  declare const network_parseUserAgent: typeof parseUserAgent;
1181
1225
  declare const network_parseVaryHeader: typeof parseVaryHeader;
1182
1226
  declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
@@ -1193,7 +1237,7 @@ declare const network_validateManifest: typeof validateManifest;
1193
1237
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1194
1238
  declare const network_validateSitemap: typeof validateSitemap;
1195
1239
  declare namespace network {
1196
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1240
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1197
1241
  }
1198
1242
 
1199
- export { type ParsedClientHint as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildXRobotsTag as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type VaryHeaderEntry as aA, type VaryHeaderResult as aB, type XContentTypeOptionsHeader as aC, type XContentTypeOptionsParseResult as aD, type XRobotsTagFlag as aE, type XRobotsTagOptions as aF, type XRobotsTagResult as aG, X_CONTENT_TYPE_OPTIONS_HEADER as aH, analyzeEmailHeaders as aI, assessContentTypeRisk as aJ, buildAcceptLanguage as aK, buildCacheControl as aL, buildClientHints as aM, buildContentDisposition as aN, buildDnsQueryUrl as aO, buildGeoUrl as aP, buildHsts as aQ, buildLinkHeader as aR, buildMapUrl as aS, buildPermissionsPolicy as aT, buildPreferHeader as aU, buildPriorityHeader as aV, buildRangeHeader as aW, buildReferrerPolicy as aX, buildRetryAfterHeader as aY, buildVaryHeader as aZ, buildXContentTypeOptionsHeader as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsRule as am, type RobotsValidationResult as an, STATUS_CODES as ao, type SameSiteValue as ap, type SitemapIndexEntry as aq, type SitemapIssue as ar, type SitemapSplitFile as as, type SitemapUrlEntry as at, type SitemapValidationResult as au, type SplitSitemapOptions as av, type SplitSitemapResult as aw, type StatusCode as ax, type UaDeviceType as ay, type UserAgentInfo as az, type AuthResultEntry as b, checkSetCookieHeader as b0, countryCodeToFlag as b1, extractMultipartBoundary as b2, formatCoordinates as b3, formatTtl as b4, getByCategory as b5, getHeader as b6, getHeadersByCategory as b7, getStatusByCategory as b8, getStatusCode as b9, parseXContentTypeOptionsHeader as bA, parseXRobotsTag as bB, searchHeaders as bC, searchStatusCodes as bD, splitSitemap as bE, statusCodeToText as bF, typeNumberToLabel as bG, validateDomain as bH, validateHeaderName as bI, validateHeaderValue as bJ, validateManifest as bK, validateRobotsTxt as bL, validateSitemap as bM, isClientError as ba, isServerError as bb, isSuccess as bc, isValidIp as bd, isValidIpv4 as be, isValidIpv6 as bf, listCloseCodes as bg, listOpcodes as bh, lookupCloseCode as bi, lookupOpcode as bj, parseAcceptLanguage as bk, parseClientHintHeaders as bl, parseContentDisposition as bm, parseContentRangeHeader as bn, parseDnsResponse as bo, parseGeoResponse as bp, parseHar as bq, parseHsts as br, parseIpv6Address as bs, parseMultipartFormData as bt, parsePermissionsPolicy as bu, parsePreferHeader as bv, parsePriorityHeader as bw, parseRetryAfterHeader as bx, parseUserAgent as by, parseVaryHeader as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1243
+ export { type ParsedClientHint as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildRetryAfterHeader as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type StatusCode as aA, type UaDeviceType as aB, type UserAgentInfo as aC, type VaryHeaderEntry as aD, type VaryHeaderResult as aE, type XContentTypeOptionsHeader as aF, type XContentTypeOptionsParseResult as aG, type XRobotsTagFlag as aH, type XRobotsTagOptions as aI, type XRobotsTagResult as aJ, X_CONTENT_TYPE_OPTIONS_HEADER as aK, analyzeEmailHeaders as aL, assessContentTypeRisk as aM, buildAcceptLanguage as aN, buildCacheControl as aO, buildClientHints as aP, buildContentDisposition as aQ, buildDnsQueryUrl as aR, buildGeoUrl as aS, buildHsts as aT, buildLinkHeader as aU, buildMapUrl as aV, buildPermissionsPolicy as aW, buildPreferHeader as aX, buildPriorityHeader as aY, buildRangeHeader as aZ, buildReferrerPolicy as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsMetaTagFlag as am, type RobotsMetaTagOptions as an, type RobotsMetaTagResult as ao, type RobotsRule as ap, type RobotsValidationResult as aq, STATUS_CODES as ar, type SameSiteValue as as, type SitemapIndexEntry as at, type SitemapIssue as au, type SitemapSplitFile as av, type SitemapUrlEntry as aw, type SitemapValidationResult as ax, type SplitSitemapOptions as ay, type SplitSitemapResult as az, type AuthResultEntry as b, buildRobotsMetaTag as b0, buildVaryHeader as b1, buildXContentTypeOptionsHeader as b2, buildXRobotsTag as b3, checkSetCookieHeader as b4, countryCodeToFlag as b5, extractMultipartBoundary as b6, formatCoordinates as b7, formatTtl as b8, getByCategory as b9, parsePriorityHeader as bA, parseRetryAfterHeader as bB, parseRobotsMetaTag as bC, parseUserAgent as bD, parseVaryHeader as bE, parseXContentTypeOptionsHeader as bF, parseXRobotsTag as bG, searchHeaders as bH, searchStatusCodes as bI, splitSitemap as bJ, statusCodeToText as bK, typeNumberToLabel as bL, validateDomain as bM, validateHeaderName as bN, validateHeaderValue as bO, validateManifest as bP, validateRobotsTxt as bQ, validateSitemap as bR, getHeader as ba, getHeadersByCategory as bb, getStatusByCategory as bc, getStatusCode as bd, isClientError as be, isServerError as bf, isSuccess as bg, isValidIp as bh, isValidIpv4 as bi, isValidIpv6 as bj, listCloseCodes as bk, listOpcodes as bl, lookupCloseCode as bm, lookupOpcode as bn, parseAcceptLanguage as bo, parseClientHintHeaders as bp, parseContentDisposition as bq, parseContentRangeHeader as br, parseDnsResponse as bs, parseGeoResponse as bt, parseHar as bu, parseHsts as bv, parseIpv6Address as bw, parseMultipartFormData as bx, parsePermissionsPolicy as by, parsePreferHeader as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
@@ -3535,6 +3535,36 @@ function analyzeRegexGroups(pattern) {
3535
3535
  }
3536
3536
  return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
3537
3537
  }
3538
+ var SVG_SYMBOL_TAG_REGEX = /<symbol\b([^>]*)>/gi;
3539
+ function extractSvgAttr(attrs, name) {
3540
+ const match = attrs.match(new RegExp(`\\s${name}\\s*=\\s*["']([^"']*)["']`, "i"));
3541
+ return match ? match[1] : null;
3542
+ }
3543
+ function extractSvgSpriteSymbols(svg) {
3544
+ const trimmed = svg.trim();
3545
+ if (!trimmed) return { error: "Empty input" };
3546
+ const symbols = [];
3547
+ let skippedCount = 0;
3548
+ for (const match of trimmed.matchAll(SVG_SYMBOL_TAG_REGEX)) {
3549
+ const attrs = match[1];
3550
+ const id = extractSvgAttr(attrs, "id");
3551
+ if (!id) {
3552
+ skippedCount++;
3553
+ continue;
3554
+ }
3555
+ symbols.push({
3556
+ id,
3557
+ viewBox: extractSvgAttr(attrs, "viewBox"),
3558
+ width: extractSvgAttr(attrs, "width"),
3559
+ height: extractSvgAttr(attrs, "height"),
3560
+ usageSnippet: `<svg><use href="#${id}"></use></svg>`
3561
+ });
3562
+ }
3563
+ if (symbols.length === 0 && skippedCount === 0) {
3564
+ return { error: "No <symbol> elements found" };
3565
+ }
3566
+ return { symbolCount: symbols.length, symbols, skippedCount };
3567
+ }
3538
3568
 
3539
3569
  exports.ALL_FLAGS = ALL_FLAGS;
3540
3570
  exports.CHEATSHEET = CHEATSHEET;
@@ -3556,6 +3586,7 @@ exports.detectOperationType = detectOperationType;
3556
3586
  exports.detectRedos = detectRedos;
3557
3587
  exports.envToExport = envToExport;
3558
3588
  exports.envToJson = envToJson;
3589
+ exports.extractSvgSpriteSymbols = extractSvgSpriteSymbols;
3559
3590
  exports.formatCss = formatCss;
3560
3591
  exports.formatGql = formatGql;
3561
3592
  exports.formatHtml = formatHtml;
@@ -1 +1 @@
1
- export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as TestPatternResult, ac as TsconfigIssue, ad as TsconfigValidationResult, ae as analyzeRegexGroups, af as auditDependencyRanges, ag as buildDockerPull, ah as buildDockerRun, ai as buildGitCommand, aj as collapseHtmlWhitespace, ak as collapseJsWhitespace, al as countProperties, am as countRules, an as detectDialect, ao as detectOperationType, ap as detectRedos, aq as envToExport, ar as envToJson, as as formatCss, at as formatGql, au as formatHtml, av as formatSql, aw as getEndpointsByTag, ax as getHtmlStats, ay as getJsStats, az as getMethodColor, aA as isValidTag, aB as lintConventionalCommit, aC as lookupMime, aD as minifyCss, aE as minifyGql, aF as minifyHtml, aG as minifyJs, aH as minifySql, aI as normalizeRef, aJ as parseDockerImage, aK as parseEnv, aL as parseGitCommand, aM as parseGithubUrl, aN as parseSpec, aO as removeConsoleCalls, aP as removeEmptyAttributes, aQ as removeHtmlComments, aR as removeJsComments, aS as removeRedundantAttributes, aT as searchCheatsheet, aU as searchEndpoints, aV as splitStatements, aW as testGitignorePatterns, aX as testPattern, aY as testRegex, aZ as validateEditorConfig, a_ as validateEnvKey, a$ as validatePackageExports, b0 as validateTsconfig } from '../code-Cg9mE6b0.cjs';
1
+ export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as SvgSpriteResult, ac as SvgSpriteSymbol, ad as TestPatternResult, ae as TsconfigIssue, af as TsconfigValidationResult, ag as analyzeRegexGroups, ah as auditDependencyRanges, ai as buildDockerPull, aj as buildDockerRun, ak as buildGitCommand, al as collapseHtmlWhitespace, am as collapseJsWhitespace, an as countProperties, ao as countRules, ap as detectDialect, aq as detectOperationType, ar as detectRedos, as as envToExport, at as envToJson, au as extractSvgSpriteSymbols, av as formatCss, aw as formatGql, ax as formatHtml, ay as formatSql, az as getEndpointsByTag, aA as getHtmlStats, aB as getJsStats, aC as getMethodColor, aD as isValidTag, aE as lintConventionalCommit, aF as lookupMime, aG as minifyCss, aH as minifyGql, aI as minifyHtml, aJ as minifyJs, aK as minifySql, aL as normalizeRef, aM as parseDockerImage, aN as parseEnv, aO as parseGitCommand, aP as parseGithubUrl, aQ as parseSpec, aR as removeConsoleCalls, aS as removeEmptyAttributes, aT as removeHtmlComments, aU as removeJsComments, aV as removeRedundantAttributes, aW as searchCheatsheet, aX as searchEndpoints, aY as splitStatements, aZ as testGitignorePatterns, a_ as testPattern, a$ as testRegex, b0 as validateEditorConfig, b1 as validateEnvKey, b2 as validatePackageExports, b3 as validateTsconfig } from '../code-DB-5ZfG4.cjs';
@@ -1 +1 @@
1
- export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as TestPatternResult, ac as TsconfigIssue, ad as TsconfigValidationResult, ae as analyzeRegexGroups, af as auditDependencyRanges, ag as buildDockerPull, ah as buildDockerRun, ai as buildGitCommand, aj as collapseHtmlWhitespace, ak as collapseJsWhitespace, al as countProperties, am as countRules, an as detectDialect, ao as detectOperationType, ap as detectRedos, aq as envToExport, ar as envToJson, as as formatCss, at as formatGql, au as formatHtml, av as formatSql, aw as getEndpointsByTag, ax as getHtmlStats, ay as getJsStats, az as getMethodColor, aA as isValidTag, aB as lintConventionalCommit, aC as lookupMime, aD as minifyCss, aE as minifyGql, aF as minifyHtml, aG as minifyJs, aH as minifySql, aI as normalizeRef, aJ as parseDockerImage, aK as parseEnv, aL as parseGitCommand, aM as parseGithubUrl, aN as parseSpec, aO as removeConsoleCalls, aP as removeEmptyAttributes, aQ as removeHtmlComments, aR as removeJsComments, aS as removeRedundantAttributes, aT as searchCheatsheet, aU as searchEndpoints, aV as splitStatements, aW as testGitignorePatterns, aX as testPattern, aY as testRegex, aZ as validateEditorConfig, a_ as validateEnvKey, a$ as validatePackageExports, b0 as validateTsconfig } from '../code-Cg9mE6b0.js';
1
+ export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as SvgSpriteResult, ac as SvgSpriteSymbol, ad as TestPatternResult, ae as TsconfigIssue, af as TsconfigValidationResult, ag as analyzeRegexGroups, ah as auditDependencyRanges, ai as buildDockerPull, aj as buildDockerRun, ak as buildGitCommand, al as collapseHtmlWhitespace, am as collapseJsWhitespace, an as countProperties, ao as countRules, ap as detectDialect, aq as detectOperationType, ar as detectRedos, as as envToExport, at as envToJson, au as extractSvgSpriteSymbols, av as formatCss, aw as formatGql, ax as formatHtml, ay as formatSql, az as getEndpointsByTag, aA as getHtmlStats, aB as getJsStats, aC as getMethodColor, aD as isValidTag, aE as lintConventionalCommit, aF as lookupMime, aG as minifyCss, aH as minifyGql, aI as minifyHtml, aJ as minifyJs, aK as minifySql, aL as normalizeRef, aM as parseDockerImage, aN as parseEnv, aO as parseGitCommand, aP as parseGithubUrl, aQ as parseSpec, aR as removeConsoleCalls, aS as removeEmptyAttributes, aT as removeHtmlComments, aU as removeJsComments, aV as removeRedundantAttributes, aW as searchCheatsheet, aX as searchEndpoints, aY as splitStatements, aZ as testGitignorePatterns, a_ as testPattern, a$ as testRegex, b0 as validateEditorConfig, b1 as validateEnvKey, b2 as validatePackageExports, b3 as validateTsconfig } from '../code-DB-5ZfG4.js';
@@ -1,2 +1,2 @@
1
- export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-XCJJOWTK.js';
1
+ export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-COL3IM7U.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -3327,6 +3327,77 @@ function lookupOpcode(opcode) {
3327
3327
  }
3328
3328
  return _describeOpcode(opcode);
3329
3329
  }
3330
+ function buildRobotsMetaTag(options) {
3331
+ const built = buildXRobotsTag({
3332
+ flags: options?.flags,
3333
+ maxSnippet: options?.maxSnippet,
3334
+ maxImagePreview: options?.maxImagePreview,
3335
+ maxVideoPreview: options?.maxVideoPreview,
3336
+ unavailableAfter: options?.unavailableAfter
3337
+ });
3338
+ if ("error" in built) return built;
3339
+ const name = options?.name?.trim() || "robots";
3340
+ return {
3341
+ content: built.header,
3342
+ name,
3343
+ tag: `<meta name="${name}" content="${built.header}">`,
3344
+ directives: built.directives,
3345
+ notes: built.notes,
3346
+ warnings: built.warnings
3347
+ };
3348
+ }
3349
+ var _ROBOTS_META_TAG_REGEX = /<meta\b[^>]*>/i;
3350
+ var _ROBOTS_META_NAME_ATTR_REGEX = /\bname\s*=\s*["']([^"']*)["']/i;
3351
+ var _ROBOTS_META_CONTENT_ATTR_REGEX = /\bcontent\s*=\s*["']([^"']*)["']/i;
3352
+ function parseRobotsMetaTag(raw) {
3353
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
3354
+ const trimmed = raw.trim();
3355
+ let name = "robots";
3356
+ let content = trimmed;
3357
+ const tagMatch = trimmed.match(_ROBOTS_META_TAG_REGEX);
3358
+ if (tagMatch) {
3359
+ const nameMatch = tagMatch[0].match(_ROBOTS_META_NAME_ATTR_REGEX);
3360
+ const contentMatch = tagMatch[0].match(_ROBOTS_META_CONTENT_ATTR_REGEX);
3361
+ if (!contentMatch) return { error: "Meta tag is missing a content attribute" };
3362
+ if (nameMatch) name = nameMatch[1].trim() || "robots";
3363
+ content = contentMatch[1];
3364
+ }
3365
+ const tokens = content.split(",").map((t) => t.trim()).filter((t) => t !== "");
3366
+ if (tokens.length === 0) return { error: "No directives found" };
3367
+ const flags = [];
3368
+ let maxSnippet;
3369
+ let maxImagePreview;
3370
+ let maxVideoPreview;
3371
+ let unavailableAfter;
3372
+ for (const token of tokens) {
3373
+ const eq = token.indexOf(":");
3374
+ const directiveName = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
3375
+ const value = eq === -1 ? "" : token.slice(eq + 1).trim();
3376
+ if (eq === -1) {
3377
+ if (!_isXRobotsTagFlag(directiveName)) return { error: `Unrecognized directive "${token}"` };
3378
+ flags.push(directiveName);
3379
+ continue;
3380
+ }
3381
+ if (directiveName === "max-snippet") {
3382
+ const n = Number(value);
3383
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
3384
+ maxSnippet = n;
3385
+ } else if (directiveName === "max-image-preview") {
3386
+ if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
3387
+ maxImagePreview = value;
3388
+ } else if (directiveName === "max-video-preview") {
3389
+ const n = Number(value);
3390
+ if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
3391
+ maxVideoPreview = n;
3392
+ } else if (directiveName === "unavailable_after") {
3393
+ if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
3394
+ unavailableAfter = value;
3395
+ } else {
3396
+ return { error: `Unrecognized directive "${token}"` };
3397
+ }
3398
+ }
3399
+ return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
3400
+ }
3330
3401
 
3331
3402
  exports.CLIENT_HINTS = CLIENT_HINTS;
3332
3403
  exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
@@ -3353,6 +3424,7 @@ exports.buildPriorityHeader = buildPriorityHeader;
3353
3424
  exports.buildRangeHeader = buildRangeHeader;
3354
3425
  exports.buildReferrerPolicy = buildReferrerPolicy;
3355
3426
  exports.buildRetryAfterHeader = buildRetryAfterHeader;
3427
+ exports.buildRobotsMetaTag = buildRobotsMetaTag;
3356
3428
  exports.buildVaryHeader = buildVaryHeader;
3357
3429
  exports.buildXContentTypeOptionsHeader = buildXContentTypeOptionsHeader;
3358
3430
  exports.buildXRobotsTag = buildXRobotsTag;
@@ -3390,6 +3462,7 @@ exports.parsePermissionsPolicy = parsePermissionsPolicy;
3390
3462
  exports.parsePreferHeader = parsePreferHeader;
3391
3463
  exports.parsePriorityHeader = parsePriorityHeader;
3392
3464
  exports.parseRetryAfterHeader = parseRetryAfterHeader;
3465
+ exports.parseRobotsMetaTag = parseRobotsMetaTag;
3393
3466
  exports.parseUserAgent = parseUserAgent;
3394
3467
  exports.parseVaryHeader = parseVaryHeader;
3395
3468
  exports.parseXContentTypeOptionsHeader = parseXContentTypeOptionsHeader;
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsRule, an as RobotsValidationResult, ao as STATUS_CODES, ap as SameSiteValue, aq as SitemapIndexEntry, ar as SitemapIssue, as as SitemapSplitFile, at as SitemapUrlEntry, au as SitemapValidationResult, av as SplitSitemapOptions, aw as SplitSitemapResult, ax as StatusCode, ay as UaDeviceType, az as UserAgentInfo, aA as VaryHeaderEntry, aB as VaryHeaderResult, aC as XContentTypeOptionsHeader, aD as XContentTypeOptionsParseResult, aE as XRobotsTagFlag, aF as XRobotsTagOptions, aG as XRobotsTagResult, aH as X_CONTENT_TYPE_OPTIONS_HEADER, aI as analyzeEmailHeaders, aJ as assessContentTypeRisk, aK as buildAcceptLanguage, aL as buildCacheControl, aM as buildClientHints, aN as buildContentDisposition, aO as buildDnsQueryUrl, aP as buildGeoUrl, aQ as buildHsts, aR as buildLinkHeader, aS as buildMapUrl, aT as buildPermissionsPolicy, aU as buildPreferHeader, aV as buildPriorityHeader, aW as buildRangeHeader, aX as buildReferrerPolicy, aY as buildRetryAfterHeader, aZ as buildVaryHeader, a_ as buildXContentTypeOptionsHeader, a$ as buildXRobotsTag, b0 as checkSetCookieHeader, b1 as countryCodeToFlag, b2 as extractMultipartBoundary, b3 as formatCoordinates, b4 as formatTtl, b5 as getByCategory, b6 as getHeader, b7 as getHeadersByCategory, b8 as getStatusByCategory, b9 as getStatusCode, ba as isClientError, bb as isServerError, bc as isSuccess, bd as isValidIp, be as isValidIpv4, bf as isValidIpv6, bg as listCloseCodes, bh as listOpcodes, bi as lookupCloseCode, bj as lookupOpcode, bk as parseAcceptLanguage, bl as parseClientHintHeaders, bm as parseContentDisposition, bn as parseContentRangeHeader, bo as parseDnsResponse, bp as parseGeoResponse, bq as parseHar, br as parseHsts, bs as parseIpv6Address, bt as parseMultipartFormData, bu as parsePermissionsPolicy, bv as parsePreferHeader, bw as parsePriorityHeader, bx as parseRetryAfterHeader, by as parseUserAgent, bz as parseVaryHeader, bA as parseXContentTypeOptionsHeader, bB as parseXRobotsTag, bC as searchHeaders, bD as searchStatusCodes, bE as splitSitemap, bF as statusCodeToText, bG as typeNumberToLabel, bH as validateDomain, bI as validateHeaderName, bJ as validateHeaderValue, bK as validateManifest, bL as validateRobotsTxt, bM as validateSitemap } from '../network-EHkPJFoe.cjs';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsMetaTagFlag, an as RobotsMetaTagOptions, ao as RobotsMetaTagResult, ap as RobotsRule, aq as RobotsValidationResult, ar as STATUS_CODES, as as SameSiteValue, at as SitemapIndexEntry, au as SitemapIssue, av as SitemapSplitFile, aw as SitemapUrlEntry, ax as SitemapValidationResult, ay as SplitSitemapOptions, az as SplitSitemapResult, aA as StatusCode, aB as UaDeviceType, aC as UserAgentInfo, aD as VaryHeaderEntry, aE as VaryHeaderResult, aF as XContentTypeOptionsHeader, aG as XContentTypeOptionsParseResult, aH as XRobotsTagFlag, aI as XRobotsTagOptions, aJ as XRobotsTagResult, aK as X_CONTENT_TYPE_OPTIONS_HEADER, aL as analyzeEmailHeaders, aM as assessContentTypeRisk, aN as buildAcceptLanguage, aO as buildCacheControl, aP as buildClientHints, aQ as buildContentDisposition, aR as buildDnsQueryUrl, aS as buildGeoUrl, aT as buildHsts, aU as buildLinkHeader, aV as buildMapUrl, aW as buildPermissionsPolicy, aX as buildPreferHeader, aY as buildPriorityHeader, aZ as buildRangeHeader, a_ as buildReferrerPolicy, a$ as buildRetryAfterHeader, b0 as buildRobotsMetaTag, b1 as buildVaryHeader, b2 as buildXContentTypeOptionsHeader, b3 as buildXRobotsTag, b4 as checkSetCookieHeader, b5 as countryCodeToFlag, b6 as extractMultipartBoundary, b7 as formatCoordinates, b8 as formatTtl, b9 as getByCategory, ba as getHeader, bb as getHeadersByCategory, bc as getStatusByCategory, bd as getStatusCode, be as isClientError, bf as isServerError, bg as isSuccess, bh as isValidIp, bi as isValidIpv4, bj as isValidIpv6, bk as listCloseCodes, bl as listOpcodes, bm as lookupCloseCode, bn as lookupOpcode, bo as parseAcceptLanguage, bp as parseClientHintHeaders, bq as parseContentDisposition, br as parseContentRangeHeader, bs as parseDnsResponse, bt as parseGeoResponse, bu as parseHar, bv as parseHsts, bw as parseIpv6Address, bx as parseMultipartFormData, by as parsePermissionsPolicy, bz as parsePreferHeader, bA as parsePriorityHeader, bB as parseRetryAfterHeader, bC as parseRobotsMetaTag, bD as parseUserAgent, bE as parseVaryHeader, bF as parseXContentTypeOptionsHeader, bG as parseXRobotsTag, bH as searchHeaders, bI as searchStatusCodes, bJ as splitSitemap, bK as statusCodeToText, bL as typeNumberToLabel, bM as validateDomain, bN as validateHeaderName, bO as validateHeaderValue, bP as validateManifest, bQ as validateRobotsTxt, bR as validateSitemap } from '../network-BmqYmfqY.cjs';
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsRule, an as RobotsValidationResult, ao as STATUS_CODES, ap as SameSiteValue, aq as SitemapIndexEntry, ar as SitemapIssue, as as SitemapSplitFile, at as SitemapUrlEntry, au as SitemapValidationResult, av as SplitSitemapOptions, aw as SplitSitemapResult, ax as StatusCode, ay as UaDeviceType, az as UserAgentInfo, aA as VaryHeaderEntry, aB as VaryHeaderResult, aC as XContentTypeOptionsHeader, aD as XContentTypeOptionsParseResult, aE as XRobotsTagFlag, aF as XRobotsTagOptions, aG as XRobotsTagResult, aH as X_CONTENT_TYPE_OPTIONS_HEADER, aI as analyzeEmailHeaders, aJ as assessContentTypeRisk, aK as buildAcceptLanguage, aL as buildCacheControl, aM as buildClientHints, aN as buildContentDisposition, aO as buildDnsQueryUrl, aP as buildGeoUrl, aQ as buildHsts, aR as buildLinkHeader, aS as buildMapUrl, aT as buildPermissionsPolicy, aU as buildPreferHeader, aV as buildPriorityHeader, aW as buildRangeHeader, aX as buildReferrerPolicy, aY as buildRetryAfterHeader, aZ as buildVaryHeader, a_ as buildXContentTypeOptionsHeader, a$ as buildXRobotsTag, b0 as checkSetCookieHeader, b1 as countryCodeToFlag, b2 as extractMultipartBoundary, b3 as formatCoordinates, b4 as formatTtl, b5 as getByCategory, b6 as getHeader, b7 as getHeadersByCategory, b8 as getStatusByCategory, b9 as getStatusCode, ba as isClientError, bb as isServerError, bc as isSuccess, bd as isValidIp, be as isValidIpv4, bf as isValidIpv6, bg as listCloseCodes, bh as listOpcodes, bi as lookupCloseCode, bj as lookupOpcode, bk as parseAcceptLanguage, bl as parseClientHintHeaders, bm as parseContentDisposition, bn as parseContentRangeHeader, bo as parseDnsResponse, bp as parseGeoResponse, bq as parseHar, br as parseHsts, bs as parseIpv6Address, bt as parseMultipartFormData, bu as parsePermissionsPolicy, bv as parsePreferHeader, bw as parsePriorityHeader, bx as parseRetryAfterHeader, by as parseUserAgent, bz as parseVaryHeader, bA as parseXContentTypeOptionsHeader, bB as parseXRobotsTag, bC as searchHeaders, bD as searchStatusCodes, bE as splitSitemap, bF as statusCodeToText, bG as typeNumberToLabel, bH as validateDomain, bI as validateHeaderName, bJ as validateHeaderValue, bK as validateManifest, bL as validateRobotsTxt, bM as validateSitemap } from '../network-EHkPJFoe.js';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsMetaTagFlag, an as RobotsMetaTagOptions, ao as RobotsMetaTagResult, ap as RobotsRule, aq as RobotsValidationResult, ar as STATUS_CODES, as as SameSiteValue, at as SitemapIndexEntry, au as SitemapIssue, av as SitemapSplitFile, aw as SitemapUrlEntry, ax as SitemapValidationResult, ay as SplitSitemapOptions, az as SplitSitemapResult, aA as StatusCode, aB as UaDeviceType, aC as UserAgentInfo, aD as VaryHeaderEntry, aE as VaryHeaderResult, aF as XContentTypeOptionsHeader, aG as XContentTypeOptionsParseResult, aH as XRobotsTagFlag, aI as XRobotsTagOptions, aJ as XRobotsTagResult, aK as X_CONTENT_TYPE_OPTIONS_HEADER, aL as analyzeEmailHeaders, aM as assessContentTypeRisk, aN as buildAcceptLanguage, aO as buildCacheControl, aP as buildClientHints, aQ as buildContentDisposition, aR as buildDnsQueryUrl, aS as buildGeoUrl, aT as buildHsts, aU as buildLinkHeader, aV as buildMapUrl, aW as buildPermissionsPolicy, aX as buildPreferHeader, aY as buildPriorityHeader, aZ as buildRangeHeader, a_ as buildReferrerPolicy, a$ as buildRetryAfterHeader, b0 as buildRobotsMetaTag, b1 as buildVaryHeader, b2 as buildXContentTypeOptionsHeader, b3 as buildXRobotsTag, b4 as checkSetCookieHeader, b5 as countryCodeToFlag, b6 as extractMultipartBoundary, b7 as formatCoordinates, b8 as formatTtl, b9 as getByCategory, ba as getHeader, bb as getHeadersByCategory, bc as getStatusByCategory, bd as getStatusCode, be as isClientError, bf as isServerError, bg as isSuccess, bh as isValidIp, bi as isValidIpv4, bj as isValidIpv6, bk as listCloseCodes, bl as listOpcodes, bm as lookupCloseCode, bn as lookupOpcode, bo as parseAcceptLanguage, bp as parseClientHintHeaders, bq as parseContentDisposition, br as parseContentRangeHeader, bs as parseDnsResponse, bt as parseGeoResponse, bu as parseHar, bv as parseHsts, bw as parseIpv6Address, bx as parseMultipartFormData, by as parsePermissionsPolicy, bz as parsePreferHeader, bA as parsePriorityHeader, bB as parseRetryAfterHeader, bC as parseRobotsMetaTag, bD as parseUserAgent, bE as parseVaryHeader, bF as parseXContentTypeOptionsHeader, bG as parseXRobotsTag, bH as searchHeaders, bI as searchStatusCodes, bJ as splitSitemap, bK as statusCodeToText, bL as typeNumberToLabel, bM as validateDomain, bN as validateHeaderName, bO as validateHeaderValue, bP as validateManifest, bQ as validateRobotsTxt, bR as validateSitemap } from '../network-BmqYmfqY.js';
@@ -1,2 +1,2 @@
1
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-TTQ2FNUG.js';
1
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-ACGCCOCK.js';
2
2
  import '../chunk-MLKGABMK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilix-tech/sdk",
3
- "version": "0.67.0",
3
+ "version": "0.68.0",
4
4
  "description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",