@utilix-tech/sdk 0.1.2 → 0.2.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.
@@ -0,0 +1 @@
1
+ export { C as ChunkStrategy, b as CompressHtmlResult, c as CompressJsonResult, d as CompressMarkdownResult, e as CostEstimate, D as DedupeResult, f as DedupeStrategy, g as DiffEntry2, h as DiffOp2, i as DiffResult2, E as Entity2, j as EntityType2, k as ExtractJsonResult, l as ExtractKeywordsResult, m as ExtractUrlsResult, I as InjectionDetectResult, n as InjectionFinding, J as JsonBlock, o as JsonRepairResult, K as Keyword, M as MODEL_PRICING, p as MergeResult, q as MergeStrategy, r as ModelPricing, P as PiiDetectResult, s as PiiFinding, t as PiiType, R as RankedChunk, u as RelevanceResult, S as SanitizeResult, v as SecretDetectResult, w as SecretFinding, x as SecretType, y as SummaryResult, T as TableResult2, z as TextChunk, A as TokenEstimate, B as TokenEstimateResult, F as TrimResult, G as TrimStrategy, U as UrlMatch, V as ValidationError, H as ValidationResult, L as chunkText, N as compressHtml, O as compressJson, Q as compressMarkdown, W as deduplicateLines, X as detectPii, Y as detectPromptInjection, Z as detectSecrets, _ as diffJson, $ as estimateCost, a0 as estimateTokens, a1 as expandQuery, a2 as extractEntities, a3 as extractJson, a4 as extractKeywords, a5 as extractTables, a6 as extractUrls, a7 as flattenJson, a8 as mergeJson, a9 as redactPii, aa as repairJson, ab as rerankChunks, ac as sanitizeHtml, ad as scoreRelevance, ae as summarizeForLlm, af as trimToTokens, ag as unflattenJson, ah as validateJsonSchema } from '../ai_agent-CcpkV2DR.cjs';
@@ -0,0 +1 @@
1
+ export { C as ChunkStrategy, b as CompressHtmlResult, c as CompressJsonResult, d as CompressMarkdownResult, e as CostEstimate, D as DedupeResult, f as DedupeStrategy, g as DiffEntry2, h as DiffOp2, i as DiffResult2, E as Entity2, j as EntityType2, k as ExtractJsonResult, l as ExtractKeywordsResult, m as ExtractUrlsResult, I as InjectionDetectResult, n as InjectionFinding, J as JsonBlock, o as JsonRepairResult, K as Keyword, M as MODEL_PRICING, p as MergeResult, q as MergeStrategy, r as ModelPricing, P as PiiDetectResult, s as PiiFinding, t as PiiType, R as RankedChunk, u as RelevanceResult, S as SanitizeResult, v as SecretDetectResult, w as SecretFinding, x as SecretType, y as SummaryResult, T as TableResult2, z as TextChunk, A as TokenEstimate, B as TokenEstimateResult, F as TrimResult, G as TrimStrategy, U as UrlMatch, V as ValidationError, H as ValidationResult, L as chunkText, N as compressHtml, O as compressJson, Q as compressMarkdown, W as deduplicateLines, X as detectPii, Y as detectPromptInjection, Z as detectSecrets, _ as diffJson, $ as estimateCost, a0 as estimateTokens, a1 as expandQuery, a2 as extractEntities, a3 as extractJson, a4 as extractKeywords, a5 as extractTables, a6 as extractUrls, a7 as flattenJson, a8 as mergeJson, a9 as redactPii, aa as repairJson, ab as rerankChunks, ac as sanitizeHtml, ad as scoreRelevance, ae as summarizeForLlm, af as trimToTokens, ag as unflattenJson, ah as validateJsonSchema } from '../ai_agent-CcpkV2DR.js';
@@ -0,0 +1,2 @@
1
+ export { MODEL_PRICING, chunkText, compressHtml, compressJson, compressMarkdown, deduplicateLines, detectPii, detectPromptInjection, detectSecrets, diffJson, estimateCost, estimateTokens, expandQuery, extractEntities, extractJson, extractKeywords, extractTables, extractUrls, flattenJson, mergeJson, redactPii, repairJson, rerankChunks, sanitizeHtml, scoreRelevance, summarizeForLlm, trimToTokens, unflattenJson, validateJsonSchema } from '../chunk-M35VJETW.js';
2
+ import '../chunk-MLKGABMK.js';
@@ -2168,6 +2168,69 @@ function envToExport(input) {
2168
2168
  function validateEnvKey(key) {
2169
2169
  return /^[A-Za-z_][A-Za-z0-9_]*$/.test(key);
2170
2170
  }
2171
+ function _calcCssResult(input, output) {
2172
+ const originalSize = input.length;
2173
+ const outputSize = output.length;
2174
+ const savingsPercent = originalSize === 0 ? 0 : Math.round((originalSize - outputSize) / originalSize * 100 * 100) / 100;
2175
+ return { output, originalSize, outputSize, savingsPercent };
2176
+ }
2177
+ function minifyCss(input) {
2178
+ let output = input;
2179
+ output = output.replace(/\/\*[\s\S]*?\*\//g, "");
2180
+ output = output.replace(/\s+/g, " ");
2181
+ output = output.replace(/\s*{\s*/g, "{");
2182
+ output = output.replace(/\s*}\s*/g, "}");
2183
+ output = output.replace(/\s*:\s*/g, ":");
2184
+ output = output.replace(/\s*;\s*/g, ";");
2185
+ output = output.replace(/\s*,\s*/g, ",");
2186
+ output = output.replace(/;}/g, "}");
2187
+ output = output.trim();
2188
+ return _calcCssResult(input, output);
2189
+ }
2190
+ function formatCss(input, indentSize = 2) {
2191
+ const indent = " ".repeat(indentSize);
2192
+ const { output: minified } = minifyCss(input);
2193
+ let result = "";
2194
+ let insideBlock = false;
2195
+ let i = 0;
2196
+ while (i < minified.length) {
2197
+ const char = minified[i];
2198
+ if (char === "{") {
2199
+ result += " {\n";
2200
+ insideBlock = true;
2201
+ } else if (char === "}") {
2202
+ result = result.trimEnd() + "\n";
2203
+ result += "}\n\n";
2204
+ insideBlock = false;
2205
+ } else if (char === ";" && insideBlock) {
2206
+ result += ";\n";
2207
+ if (i + 1 < minified.length && minified[i + 1] !== "}") result += indent;
2208
+ } else {
2209
+ if (insideBlock && result.endsWith("{\n")) result += indent;
2210
+ result += char;
2211
+ }
2212
+ i++;
2213
+ }
2214
+ return _calcCssResult(input, result.trimEnd());
2215
+ }
2216
+ function countRules(css) {
2217
+ return (css.match(/{/g) ?? []).length;
2218
+ }
2219
+ function countProperties(css) {
2220
+ let count = 0;
2221
+ let insideBlock = false;
2222
+ for (const char of css) {
2223
+ if (char === "{") insideBlock = true;
2224
+ else if (char === "}") insideBlock = false;
2225
+ else if (char === ";" && insideBlock) count++;
2226
+ }
2227
+ css.replace(/{[^{}]*}/g, (block) => {
2228
+ const last = block.slice(1, -1).trim().split(";").pop()?.trim();
2229
+ if (last?.includes(":")) count++;
2230
+ return block;
2231
+ });
2232
+ return count;
2233
+ }
2171
2234
 
2172
2235
  exports.ALL_FLAGS = ALL_FLAGS;
2173
2236
  exports.CHEATSHEET = CHEATSHEET;
@@ -2178,10 +2241,13 @@ exports.buildDockerRun = buildDockerRun;
2178
2241
  exports.buildGitCommand = buildGitCommand;
2179
2242
  exports.collapseHtmlWhitespace = collapseHtmlWhitespace;
2180
2243
  exports.collapseJsWhitespace = collapseJsWhitespace;
2244
+ exports.countProperties = countProperties;
2245
+ exports.countRules = countRules;
2181
2246
  exports.detectDialect = detectDialect;
2182
2247
  exports.detectOperationType = detectOperationType;
2183
2248
  exports.envToExport = envToExport;
2184
2249
  exports.envToJson = envToJson;
2250
+ exports.formatCss = formatCss;
2185
2251
  exports.formatGql = formatGql;
2186
2252
  exports.formatHtml = formatHtml;
2187
2253
  exports.formatSql = formatSql;
@@ -2190,6 +2256,7 @@ exports.getHtmlStats = getHtmlStats;
2190
2256
  exports.getJsStats = getJsStats;
2191
2257
  exports.getMethodColor = getMethodColor;
2192
2258
  exports.isValidTag = isValidTag;
2259
+ exports.minifyCss = minifyCss;
2193
2260
  exports.minifyGql = minifyGql;
2194
2261
  exports.minifyHtml = minifyHtml;
2195
2262
  exports.minifyJs = minifyJs;
@@ -1 +1 @@
1
- export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, D as DockerImageRef, E as EnvEntry, e as EnvParseResult, G as GitCommandConfig, f as GitCommandResult, g as GitOperation, h as GqlFormatResult, H as HtmlFormatResult, i as HtmlMinifyOptions, j as HtmlMinifyResult, J as JsMinifyOptions, k as JsMinifyResult, M as MatchResult, O as OPERATIONS, P as ParsedSpec, R as RegexError, l as RegexFlag, m as RegexMatch, n as RegexResult, o as RegexSuccess, S as SQL_DEFAULT_OPTIONS, p as Segment, q as SpecVersion, r as SqlDialect, s as SqlFormatOptions, T as TestPatternResult, t as buildDockerPull, u as buildDockerRun, v as buildGitCommand, w as collapseHtmlWhitespace, x as collapseJsWhitespace, y as detectDialect, z as detectOperationType, B as envToExport, F as envToJson, I as formatGql, K as formatHtml, L as formatSql, N as getEndpointsByTag, Q as getHtmlStats, U as getJsStats, V as getMethodColor, W as isValidTag, X as minifyGql, Y as minifyHtml, Z as minifyJs, _ as minifySql, $ as normalizeRef, a0 as parseDockerImage, a1 as parseEnv, a2 as parseGitCommand, a3 as parseSpec, a4 as removeConsoleCalls, a5 as removeEmptyAttributes, a6 as removeHtmlComments, a7 as removeJsComments, a8 as removeRedundantAttributes, a9 as searchCheatsheet, aa as searchEndpoints, ab as splitStatements, ac as testPattern, ad as testRegex, ae as validateEnvKey } from '../code-QNrdLIR3.cjs';
1
+ export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as CssResult, D as DockerImageRef, E as EnvEntry, f as EnvParseResult, G as GitCommandConfig, g as GitCommandResult, h as GitOperation, i as GqlFormatResult, H as HtmlFormatResult, j as HtmlMinifyOptions, k as HtmlMinifyResult, J as JsMinifyOptions, l as JsMinifyResult, M as MatchResult, O as OPERATIONS, P as ParsedSpec, R as RegexError, m as RegexFlag, n as RegexMatch, o as RegexResult, p as RegexSuccess, S as SQL_DEFAULT_OPTIONS, q as Segment, r as SpecVersion, s as SqlDialect, t as SqlFormatOptions, T as TestPatternResult, u as buildDockerPull, v as buildDockerRun, w as buildGitCommand, x as collapseHtmlWhitespace, y as collapseJsWhitespace, z as countProperties, B as countRules, F as detectDialect, I as detectOperationType, K as envToExport, L as envToJson, N as formatCss, Q as formatGql, U as formatHtml, V as formatSql, W as getEndpointsByTag, X as getHtmlStats, Y as getJsStats, Z as getMethodColor, _ as isValidTag, $ as minifyCss, a0 as minifyGql, a1 as minifyHtml, a2 as minifyJs, a3 as minifySql, a4 as normalizeRef, a5 as parseDockerImage, a6 as parseEnv, a7 as parseGitCommand, a8 as parseSpec, a9 as removeConsoleCalls, aa as removeEmptyAttributes, ab as removeHtmlComments, ac as removeJsComments, ad as removeRedundantAttributes, ae as searchCheatsheet, af as searchEndpoints, ag as splitStatements, ah as testPattern, ai as testRegex, aj as validateEnvKey } from '../code-BUqyaofO.cjs';
@@ -1 +1 @@
1
- export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, D as DockerImageRef, E as EnvEntry, e as EnvParseResult, G as GitCommandConfig, f as GitCommandResult, g as GitOperation, h as GqlFormatResult, H as HtmlFormatResult, i as HtmlMinifyOptions, j as HtmlMinifyResult, J as JsMinifyOptions, k as JsMinifyResult, M as MatchResult, O as OPERATIONS, P as ParsedSpec, R as RegexError, l as RegexFlag, m as RegexMatch, n as RegexResult, o as RegexSuccess, S as SQL_DEFAULT_OPTIONS, p as Segment, q as SpecVersion, r as SqlDialect, s as SqlFormatOptions, T as TestPatternResult, t as buildDockerPull, u as buildDockerRun, v as buildGitCommand, w as collapseHtmlWhitespace, x as collapseJsWhitespace, y as detectDialect, z as detectOperationType, B as envToExport, F as envToJson, I as formatGql, K as formatHtml, L as formatSql, N as getEndpointsByTag, Q as getHtmlStats, U as getJsStats, V as getMethodColor, W as isValidTag, X as minifyGql, Y as minifyHtml, Z as minifyJs, _ as minifySql, $ as normalizeRef, a0 as parseDockerImage, a1 as parseEnv, a2 as parseGitCommand, a3 as parseSpec, a4 as removeConsoleCalls, a5 as removeEmptyAttributes, a6 as removeHtmlComments, a7 as removeJsComments, a8 as removeRedundantAttributes, a9 as searchCheatsheet, aa as searchEndpoints, ab as splitStatements, ac as testPattern, ad as testRegex, ae as validateEnvKey } from '../code-QNrdLIR3.js';
1
+ export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as CssResult, D as DockerImageRef, E as EnvEntry, f as EnvParseResult, G as GitCommandConfig, g as GitCommandResult, h as GitOperation, i as GqlFormatResult, H as HtmlFormatResult, j as HtmlMinifyOptions, k as HtmlMinifyResult, J as JsMinifyOptions, l as JsMinifyResult, M as MatchResult, O as OPERATIONS, P as ParsedSpec, R as RegexError, m as RegexFlag, n as RegexMatch, o as RegexResult, p as RegexSuccess, S as SQL_DEFAULT_OPTIONS, q as Segment, r as SpecVersion, s as SqlDialect, t as SqlFormatOptions, T as TestPatternResult, u as buildDockerPull, v as buildDockerRun, w as buildGitCommand, x as collapseHtmlWhitespace, y as collapseJsWhitespace, z as countProperties, B as countRules, F as detectDialect, I as detectOperationType, K as envToExport, L as envToJson, N as formatCss, Q as formatGql, U as formatHtml, V as formatSql, W as getEndpointsByTag, X as getHtmlStats, Y as getJsStats, Z as getMethodColor, _ as isValidTag, $ as minifyCss, a0 as minifyGql, a1 as minifyHtml, a2 as minifyJs, a3 as minifySql, a4 as normalizeRef, a5 as parseDockerImage, a6 as parseEnv, a7 as parseGitCommand, a8 as parseSpec, a9 as removeConsoleCalls, aa as removeEmptyAttributes, ab as removeHtmlComments, ac as removeJsComments, ad as removeRedundantAttributes, ae as searchCheatsheet, af as searchEndpoints, ag as splitStatements, ah as testPattern, ai as testRegex, aj as validateEnvKey } from '../code-BUqyaofO.js';
@@ -1,2 +1,2 @@
1
- export { ALL_FLAGS, CHEATSHEET, OPERATIONS, SQL_DEFAULT_OPTIONS, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, detectDialect, detectOperationType, envToExport, envToJson, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testPattern, testRegex, validateEnvKey } from '../chunk-ZKL2VX2G.js';
1
+ export { ALL_FLAGS, CHEATSHEET, OPERATIONS, SQL_DEFAULT_OPTIONS, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testPattern, testRegex, validateEnvKey } from '../chunk-NSOARQCM.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -1,5 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var QRCode = require('qrcode');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var QRCode__default = /*#__PURE__*/_interopDefault(QRCode);
8
+
3
9
  // src/tools/misc.ts
4
10
  var NAMED_HTML_ENTITIES = {
5
11
  34: "&quot;",
@@ -1044,10 +1050,135 @@ function generateData(config) {
1044
1050
  }
1045
1051
  return results;
1046
1052
  }
1053
+ var DEFAULT_QR_OPTIONS = {
1054
+ errorLevel: "M",
1055
+ size: 256,
1056
+ margin: 1,
1057
+ darkColor: "#000000",
1058
+ lightColor: "#ffffff"
1059
+ };
1060
+ async function generateQrSvg(text, options) {
1061
+ const o = { ...DEFAULT_QR_OPTIONS, ...options };
1062
+ return QRCode__default.default.toString(text, {
1063
+ type: "svg",
1064
+ errorCorrectionLevel: o.errorLevel,
1065
+ margin: o.margin,
1066
+ color: { dark: o.darkColor, light: o.lightColor }
1067
+ });
1068
+ }
1069
+ async function generateQrDataUrl(text, options) {
1070
+ const o = { ...DEFAULT_QR_OPTIONS, ...options };
1071
+ return QRCode__default.default.toDataURL(text, {
1072
+ width: o.size,
1073
+ errorCorrectionLevel: o.errorLevel,
1074
+ margin: o.margin,
1075
+ color: { dark: o.darkColor, light: o.lightColor }
1076
+ });
1077
+ }
1078
+ function _getMetaContent(html, property) {
1079
+ const esc = property.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1080
+ const patterns = [
1081
+ new RegExp(`<meta[^>]+property=["']${esc}["'][^>]+content=["']([^"']*)["']`, "i"),
1082
+ new RegExp(`<meta[^>]+content=["']([^"']*)["'][^>]+property=["']${esc}["']`, "i"),
1083
+ new RegExp(`<meta[^>]+name=["']${esc}["'][^>]+content=["']([^"']*)["']`, "i"),
1084
+ new RegExp(`<meta[^>]+content=["']([^"']*)["'][^>]+name=["']${esc}["']`, "i")
1085
+ ];
1086
+ for (const p of patterns) {
1087
+ const m = html.match(p);
1088
+ if (m) return m[1];
1089
+ }
1090
+ return void 0;
1091
+ }
1092
+ function parseMetaTags(html) {
1093
+ const titleMatch = html.match(/<title[^>]*>([^<]*)<\/title>/i);
1094
+ const canonicalMatch = html.match(/<link[^>]+rel=["']canonical["'][^>]+href=["']([^"']*)["']/i) || html.match(/<link[^>]+href=["']([^"']*)["'][^>]+rel=["']canonical["']/i);
1095
+ const charsetMatch = html.match(/<meta[^>]+charset=["']([^"']*)["']/i) || html.match(/<meta[^>]+charset=([^\s>]*)/i);
1096
+ return {
1097
+ og: {
1098
+ title: _getMetaContent(html, "og:title"),
1099
+ description: _getMetaContent(html, "og:description"),
1100
+ image: _getMetaContent(html, "og:image"),
1101
+ imageAlt: _getMetaContent(html, "og:image:alt"),
1102
+ imageWidth: _getMetaContent(html, "og:image:width"),
1103
+ imageHeight: _getMetaContent(html, "og:image:height"),
1104
+ url: _getMetaContent(html, "og:url"),
1105
+ type: _getMetaContent(html, "og:type"),
1106
+ siteName: _getMetaContent(html, "og:site_name"),
1107
+ locale: _getMetaContent(html, "og:locale")
1108
+ },
1109
+ twitter: {
1110
+ card: _getMetaContent(html, "twitter:card"),
1111
+ site: _getMetaContent(html, "twitter:site"),
1112
+ creator: _getMetaContent(html, "twitter:creator"),
1113
+ title: _getMetaContent(html, "twitter:title"),
1114
+ description: _getMetaContent(html, "twitter:description"),
1115
+ image: _getMetaContent(html, "twitter:image")
1116
+ },
1117
+ standard: {
1118
+ title: titleMatch ? titleMatch[1].trim() : void 0,
1119
+ description: _getMetaContent(html, "description"),
1120
+ keywords: _getMetaContent(html, "keywords"),
1121
+ canonical: canonicalMatch ? canonicalMatch[1] : void 0,
1122
+ robots: _getMetaContent(html, "robots"),
1123
+ viewport: _getMetaContent(html, "viewport"),
1124
+ charset: charsetMatch ? charsetMatch[1] : void 0
1125
+ }
1126
+ };
1127
+ }
1128
+ function validateOgTags(tags) {
1129
+ const warnings = [];
1130
+ const missing = [];
1131
+ const required = ["title", "description", "image", "url", "type"];
1132
+ for (const field of required) {
1133
+ if (!tags[field]) missing.push(`og:${field}`);
1134
+ }
1135
+ if (tags.image && !/^https?:\/\//i.test(tags.image))
1136
+ warnings.push("og:image should be an absolute URL");
1137
+ if (tags.url && !/^https?:\/\//i.test(tags.url))
1138
+ warnings.push("og:url should be an absolute URL");
1139
+ if (tags.title && tags.title.length > 95)
1140
+ warnings.push("og:title is longer than 95 characters and may be truncated");
1141
+ if (tags.description && tags.description.length > 300)
1142
+ warnings.push("og:description is longer than 300 characters and may be truncated");
1143
+ const standardTypes = ["website", "article", "video.movie", "video.episode", "music.song", "music.album", "book", "profile"];
1144
+ if (tags.type && !standardTypes.includes(tags.type))
1145
+ warnings.push(`og:type "${tags.type}" is not a standard type`);
1146
+ return { warnings, missing };
1147
+ }
1148
+ function generateMetaHtml(tags) {
1149
+ const lines = [];
1150
+ const ogMap = {
1151
+ title: "og:title",
1152
+ description: "og:description",
1153
+ image: "og:image",
1154
+ imageAlt: "og:image:alt",
1155
+ imageWidth: "og:image:width",
1156
+ imageHeight: "og:image:height",
1157
+ url: "og:url",
1158
+ type: "og:type",
1159
+ siteName: "og:site_name",
1160
+ locale: "og:locale"
1161
+ };
1162
+ const twitterMap = {
1163
+ card: "twitter:card",
1164
+ site: "twitter:site",
1165
+ creator: "twitter:creator"
1166
+ };
1167
+ for (const [key, property] of Object.entries(ogMap)) {
1168
+ const v = tags[key];
1169
+ if (v) lines.push(`<meta property="${property}" content="${v}" />`);
1170
+ }
1171
+ for (const [key, name] of Object.entries(twitterMap)) {
1172
+ const v = tags[key];
1173
+ if (v) lines.push(`<meta name="${name}" content="${v}" />`);
1174
+ }
1175
+ return lines.join("\n");
1176
+ }
1047
1177
 
1048
1178
  exports.COLOR_PRESETS = COLOR_PRESETS;
1049
1179
  exports.DATA_TYPES = DATA_TYPES;
1050
1180
  exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
1181
+ exports.DEFAULT_QR_OPTIONS = DEFAULT_QR_OPTIONS;
1051
1182
  exports.FORMAT_EXTENSIONS = FORMAT_EXTENSIONS;
1052
1183
  exports.FORMAT_LABELS = FORMAT_LABELS;
1053
1184
  exports.analyzeString = analyzeString;
@@ -1063,6 +1194,9 @@ exports.formatLabel = formatLabel;
1063
1194
  exports.formatSvg = formatSvg;
1064
1195
  exports.fromUnicodeEscape = fromUnicodeEscape;
1065
1196
  exports.generateData = generateData;
1197
+ exports.generateMetaHtml = generateMetaHtml;
1198
+ exports.generateQrDataUrl = generateQrDataUrl;
1199
+ exports.generateQrSvg = generateQrSvg;
1066
1200
  exports.generateSingle = generateSingle;
1067
1201
  exports.generateSvgFavicon = generateSvgFavicon;
1068
1202
  exports.getConversionWarnings = getConversionWarnings;
@@ -1076,7 +1210,9 @@ exports.numberToRoman = numberToRoman;
1076
1210
  exports.numberToWords = numberToWords;
1077
1211
  exports.optimizeSvg = optimizeSvg;
1078
1212
  exports.ordinalWords = ordinalWords;
1213
+ exports.parseMetaTags = parseMetaTags;
1079
1214
  exports.romanToNumber = romanToNumber;
1080
1215
  exports.sanitizeSvg = sanitizeSvg;
1081
1216
  exports.svgToDataUrl = svgToDataUrl;
1082
1217
  exports.toUnicodeEscape = toUnicodeEscape;
1218
+ exports.validateOgTags = validateOgTags;
@@ -1 +1 @@
1
- export { C as COLOR_PRESETS, a as CodePoint, b as CompressionOptions, c as CompressionResult, d as ConversionOptions, e as ConvertImageFormat, D as DATA_TYPES, f as DEFAULT_CONFIG, g as DataType, F as FORMAT_EXTENSIONS, h as FORMAT_LABELS, i as FaviconConfig, I as ImageFormat, R as RandomConfig, S as Shape, j as SvgInfo, k as analyzeString, l as analyzeSvg, n as calcResizeDimensions, o as calcSavings, p as charToCodePoint, q as codePointToChar, r as detectFormatFromDataUrl, s as detectFormatFromFilename, t as formatBytes, u as formatLabel, v as formatSvg, w as fromUnicodeEscape, x as generateData, y as generateSingle, z as generateSvgFavicon, A as getConversionWarnings, B as getDefaultQuality, E as getDownloadFilename, G as getSupportedFormats, H as getSupportedOutputFormats, J as minifySvg, K as numberToOrdinal, L as numberToRoman, M as numberToWords, N as optimizeSvg, O as ordinalWords, P as romanToNumber, Q as sanitizeSvg, T as svgToDataUrl, U as toUnicodeEscape } from '../misc-DcVBManm.cjs';
1
+ export { C as COLOR_PRESETS, a as CodePoint, b as CompressionOptions, c as CompressionResult, d as ConversionOptions, e as ConvertImageFormat, D as DATA_TYPES, f as DEFAULT_CONFIG, g as DEFAULT_QR_OPTIONS, h as DataType, F as FORMAT_EXTENSIONS, i as FORMAT_LABELS, j as FaviconConfig, I as ImageFormat, M as MetaTags, O as OgTags, Q as QrErrorLevel, k as QrOptions, R as RandomConfig, S as Shape, l as SvgInfo, T as TwitterTags, n as analyzeString, o as analyzeSvg, p as calcResizeDimensions, q as calcSavings, r as charToCodePoint, s as codePointToChar, t as detectFormatFromDataUrl, u as detectFormatFromFilename, v as formatBytes, w as formatLabel, x as formatSvg, y as fromUnicodeEscape, z as generateData, A as generateMetaHtml, B as generateQrDataUrl, E as generateQrSvg, G as generateSingle, H as generateSvgFavicon, J as getConversionWarnings, K as getDefaultQuality, L as getDownloadFilename, N as getSupportedFormats, P as getSupportedOutputFormats, U as minifySvg, V as numberToOrdinal, W as numberToRoman, X as numberToWords, Y as optimizeSvg, Z as ordinalWords, _ as parseMetaTags, $ as romanToNumber, a0 as sanitizeSvg, a1 as svgToDataUrl, a2 as toUnicodeEscape, a3 as validateOgTags } from '../misc-CA3N198T.cjs';
@@ -1 +1 @@
1
- export { C as COLOR_PRESETS, a as CodePoint, b as CompressionOptions, c as CompressionResult, d as ConversionOptions, e as ConvertImageFormat, D as DATA_TYPES, f as DEFAULT_CONFIG, g as DataType, F as FORMAT_EXTENSIONS, h as FORMAT_LABELS, i as FaviconConfig, I as ImageFormat, R as RandomConfig, S as Shape, j as SvgInfo, k as analyzeString, l as analyzeSvg, n as calcResizeDimensions, o as calcSavings, p as charToCodePoint, q as codePointToChar, r as detectFormatFromDataUrl, s as detectFormatFromFilename, t as formatBytes, u as formatLabel, v as formatSvg, w as fromUnicodeEscape, x as generateData, y as generateSingle, z as generateSvgFavicon, A as getConversionWarnings, B as getDefaultQuality, E as getDownloadFilename, G as getSupportedFormats, H as getSupportedOutputFormats, J as minifySvg, K as numberToOrdinal, L as numberToRoman, M as numberToWords, N as optimizeSvg, O as ordinalWords, P as romanToNumber, Q as sanitizeSvg, T as svgToDataUrl, U as toUnicodeEscape } from '../misc-DcVBManm.js';
1
+ export { C as COLOR_PRESETS, a as CodePoint, b as CompressionOptions, c as CompressionResult, d as ConversionOptions, e as ConvertImageFormat, D as DATA_TYPES, f as DEFAULT_CONFIG, g as DEFAULT_QR_OPTIONS, h as DataType, F as FORMAT_EXTENSIONS, i as FORMAT_LABELS, j as FaviconConfig, I as ImageFormat, M as MetaTags, O as OgTags, Q as QrErrorLevel, k as QrOptions, R as RandomConfig, S as Shape, l as SvgInfo, T as TwitterTags, n as analyzeString, o as analyzeSvg, p as calcResizeDimensions, q as calcSavings, r as charToCodePoint, s as codePointToChar, t as detectFormatFromDataUrl, u as detectFormatFromFilename, v as formatBytes, w as formatLabel, x as formatSvg, y as fromUnicodeEscape, z as generateData, A as generateMetaHtml, B as generateQrDataUrl, E as generateQrSvg, G as generateSingle, H as generateSvgFavicon, J as getConversionWarnings, K as getDefaultQuality, L as getDownloadFilename, N as getSupportedFormats, P as getSupportedOutputFormats, U as minifySvg, V as numberToOrdinal, W as numberToRoman, X as numberToWords, Y as optimizeSvg, Z as ordinalWords, _ as parseMetaTags, $ as romanToNumber, a0 as sanitizeSvg, a1 as svgToDataUrl, a2 as toUnicodeEscape, a3 as validateOgTags } from '../misc-CA3N198T.js';
@@ -1,2 +1,2 @@
1
- export { COLOR_PRESETS, DATA_TYPES, DEFAULT_CONFIG, FORMAT_EXTENSIONS, FORMAT_LABELS, analyzeString, analyzeSvg, calcResizeDimensions, calcSavings, charToCodePoint, codePointToChar, detectFormatFromDataUrl, detectFormatFromFilename, formatBytes, formatLabel, formatSvg, fromUnicodeEscape, generateData, generateSingle, generateSvgFavicon, getConversionWarnings, getDefaultQuality, getDownloadFilename, getSupportedFormats, getSupportedOutputFormats, minifySvg, numberToOrdinal, numberToRoman, numberToWords, optimizeSvg, ordinalWords, romanToNumber, sanitizeSvg, svgToDataUrl, toUnicodeEscape } from '../chunk-L6KCTHUW.js';
1
+ export { COLOR_PRESETS, DATA_TYPES, DEFAULT_CONFIG, DEFAULT_QR_OPTIONS, FORMAT_EXTENSIONS, FORMAT_LABELS, analyzeString, analyzeSvg, calcResizeDimensions, calcSavings, charToCodePoint, codePointToChar, detectFormatFromDataUrl, detectFormatFromFilename, formatBytes, formatLabel, formatSvg, fromUnicodeEscape, generateData, generateMetaHtml, generateQrDataUrl, generateQrSvg, generateSingle, generateSvgFavicon, getConversionWarnings, getDefaultQuality, getDownloadFilename, getSupportedFormats, getSupportedOutputFormats, minifySvg, numberToOrdinal, numberToRoman, numberToWords, optimizeSvg, ordinalWords, parseMetaTags, romanToNumber, sanitizeSvg, svgToDataUrl, toUnicodeEscape, validateOgTags } from '../chunk-OKSWDVOM.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.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "100+ 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",
@@ -100,6 +100,11 @@
100
100
  "import": "./dist/tools/misc.js",
101
101
  "require": "./dist/tools/misc.cjs",
102
102
  "types": "./dist/tools/misc.d.ts"
103
+ },
104
+ "./ai_agent": {
105
+ "import": "./dist/tools/ai_agent.js",
106
+ "require": "./dist/tools/ai_agent.cjs",
107
+ "types": "./dist/tools/ai_agent.d.ts"
103
108
  }
104
109
  },
105
110
  "files": [