@atmaticai/agent-tools 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.mts +169 -0
- package/dist/a2a/index.d.ts +169 -0
- package/dist/a2a/index.js +6012 -0
- package/dist/a2a/index.js.map +1 -0
- package/dist/a2a/index.mjs +5934 -0
- package/dist/a2a/index.mjs.map +1 -0
- package/dist/archive/index.d.mts +1 -0
- package/dist/archive/index.d.ts +1 -0
- package/dist/archive/index.js +90 -0
- package/dist/archive/index.js.map +1 -0
- package/dist/archive/index.mjs +80 -0
- package/dist/archive/index.mjs.map +1 -0
- package/dist/cli.js +4441 -164
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +4408 -161
- package/dist/cli.mjs.map +1 -1
- package/dist/color/index.d.mts +1 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.js +347 -0
- package/dist/color/index.js.map +1 -0
- package/dist/color/index.mjs +336 -0
- package/dist/color/index.mjs.map +1 -0
- package/dist/crypto/index.d.mts +1 -0
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +116 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/crypto/index.mjs +108 -0
- package/dist/crypto/index.mjs.map +1 -0
- package/dist/csv/index.d.mts +1 -0
- package/dist/csv/index.d.ts +1 -0
- package/dist/csv/index.js +371 -0
- package/dist/csv/index.js.map +1 -0
- package/dist/csv/index.mjs +348 -0
- package/dist/csv/index.mjs.map +1 -0
- package/dist/datetime/index.d.mts +1 -0
- package/dist/datetime/index.d.ts +1 -0
- package/dist/datetime/index.js +234 -0
- package/dist/datetime/index.js.map +1 -0
- package/dist/datetime/index.mjs +224 -0
- package/dist/datetime/index.mjs.map +1 -0
- package/dist/diff/index.d.mts +2 -0
- package/dist/diff/index.d.ts +2 -0
- package/dist/diff/index.js +84 -0
- package/dist/diff/index.js.map +1 -0
- package/dist/diff/index.mjs +78 -0
- package/dist/diff/index.mjs.map +1 -0
- package/dist/excel/index.d.mts +1 -0
- package/dist/excel/index.d.ts +1 -0
- package/dist/excel/index.js +163 -0
- package/dist/excel/index.js.map +1 -0
- package/dist/excel/index.mjs +153 -0
- package/dist/excel/index.mjs.map +1 -0
- package/dist/image/index.d.mts +1 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +123 -0
- package/dist/image/index.js.map +1 -0
- package/dist/image/index.mjs +107 -0
- package/dist/image/index.mjs.map +1 -0
- package/dist/index--vbnYfdE.d.mts +142 -0
- package/dist/index--vbnYfdE.d.ts +142 -0
- package/dist/index-7FZQloN-.d.mts +62 -0
- package/dist/index-7FZQloN-.d.ts +62 -0
- package/dist/index-7XgaTVH5.d.mts +93 -0
- package/dist/index-7XgaTVH5.d.ts +93 -0
- package/dist/index-7bvFmh45.d.mts +87 -0
- package/dist/index-7bvFmh45.d.ts +87 -0
- package/dist/index-BDZcIVCU.d.mts +53 -0
- package/dist/index-BDZcIVCU.d.ts +53 -0
- package/dist/index-BKeYao0B.d.mts +320 -0
- package/dist/index-BKeYao0B.d.ts +320 -0
- package/dist/index-BN00EnUU.d.mts +55 -0
- package/dist/index-BN00EnUU.d.ts +55 -0
- package/dist/index-BZDcrPs-.d.mts +316 -0
- package/dist/index-BZDcrPs-.d.ts +316 -0
- package/dist/index-CQ1EukC4.d.mts +59 -0
- package/dist/index-CQ1EukC4.d.ts +59 -0
- package/dist/index-CgRVnFOt.d.mts +91 -0
- package/dist/index-CgRVnFOt.d.ts +91 -0
- package/dist/index-Dh47fgVS.d.mts +216 -0
- package/dist/index-Dh47fgVS.d.ts +216 -0
- package/dist/index-DjBDZzuj.d.mts +54 -0
- package/dist/index-DjBDZzuj.d.ts +54 -0
- package/dist/index-FFrvmr-n.d.mts +50 -0
- package/dist/index-FFrvmr-n.d.ts +50 -0
- package/dist/index-QWC8yIgW.d.mts +106 -0
- package/dist/index-QWC8yIgW.d.ts +106 -0
- package/dist/index-fJD8SORm.d.mts +61 -0
- package/dist/index-fJD8SORm.d.ts +61 -0
- package/dist/index-pPy_XDQU.d.mts +56 -0
- package/dist/index-pPy_XDQU.d.ts +56 -0
- package/dist/index-rwh9hdD9.d.mts +68 -0
- package/dist/index-rwh9hdD9.d.ts +68 -0
- package/dist/index-uXdkAfea.d.mts +93 -0
- package/dist/index-uXdkAfea.d.ts +93 -0
- package/dist/index.d.mts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +5195 -147
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5145 -145
- package/dist/index.mjs.map +1 -1
- package/dist/json/index.d.mts +1 -0
- package/dist/json/index.d.ts +1 -0
- package/dist/json/index.js +599 -0
- package/dist/json/index.js.map +1 -0
- package/dist/json/index.mjs +552 -0
- package/dist/json/index.mjs.map +1 -0
- package/dist/markdown/index.d.mts +1 -0
- package/dist/markdown/index.d.ts +1 -0
- package/dist/markdown/index.js +151 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/index.mjs +139 -0
- package/dist/markdown/index.mjs.map +1 -0
- package/dist/math/index.d.mts +1 -0
- package/dist/math/index.d.ts +1 -0
- package/dist/math/index.js +247 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/index.mjs +240 -0
- package/dist/math/index.mjs.map +1 -0
- package/dist/pdf/index.d.mts +1 -0
- package/dist/pdf/index.d.ts +1 -0
- package/dist/pdf/index.js +628 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/index.mjs +598 -0
- package/dist/pdf/index.mjs.map +1 -0
- package/dist/physics/index.d.mts +1 -0
- package/dist/physics/index.d.ts +1 -0
- package/dist/physics/index.js +467 -0
- package/dist/physics/index.js.map +1 -0
- package/dist/physics/index.mjs +435 -0
- package/dist/physics/index.mjs.map +1 -0
- package/dist/regex/index.d.mts +1 -0
- package/dist/regex/index.d.ts +1 -0
- package/dist/regex/index.js +93 -0
- package/dist/regex/index.js.map +1 -0
- package/dist/regex/index.mjs +88 -0
- package/dist/regex/index.mjs.map +1 -0
- package/dist/settings/index.d.mts +41 -0
- package/dist/settings/index.d.ts +41 -0
- package/dist/settings/index.js +150 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/index.mjs +143 -0
- package/dist/settings/index.mjs.map +1 -0
- package/dist/sql/index.d.mts +1 -0
- package/dist/sql/index.d.ts +1 -0
- package/dist/sql/index.js +146 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/index.mjs +139 -0
- package/dist/sql/index.mjs.map +1 -0
- package/dist/structural/index.d.mts +1 -0
- package/dist/structural/index.d.ts +1 -0
- package/dist/structural/index.js +608 -0
- package/dist/structural/index.js.map +1 -0
- package/dist/structural/index.mjs +588 -0
- package/dist/structural/index.mjs.map +1 -0
- package/dist/text/index.d.mts +1 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.js +250 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/index.mjs +242 -0
- package/dist/text/index.mjs.map +1 -0
- package/dist/xml/index.d.mts +1 -0
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.js +188 -0
- package/dist/xml/index.js.map +1 -0
- package/dist/xml/index.mjs +180 -0
- package/dist/xml/index.mjs.map +1 -0
- package/package.json +138 -6
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
type MarkdownConvertFormat = 'html' | 'text' | 'markdown';
|
|
2
|
+
interface MarkdownConvertOptions {
|
|
3
|
+
from: MarkdownConvertFormat;
|
|
4
|
+
to: MarkdownConvertFormat;
|
|
5
|
+
gfm?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface MarkdownTocEntry {
|
|
8
|
+
level: number;
|
|
9
|
+
text: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
}
|
|
12
|
+
interface MarkdownLinkInfo {
|
|
13
|
+
text: string;
|
|
14
|
+
href: string;
|
|
15
|
+
line: number;
|
|
16
|
+
}
|
|
17
|
+
interface MarkdownStats {
|
|
18
|
+
words: number;
|
|
19
|
+
characters: number;
|
|
20
|
+
lines: number;
|
|
21
|
+
paragraphs: number;
|
|
22
|
+
headings: number;
|
|
23
|
+
links: number;
|
|
24
|
+
images: number;
|
|
25
|
+
codeBlocks: number;
|
|
26
|
+
lists: number;
|
|
27
|
+
sizeBytes: number;
|
|
28
|
+
}
|
|
29
|
+
interface MarkdownFormatOptions {
|
|
30
|
+
lineWidth?: number;
|
|
31
|
+
bullet?: '-' | '*' | '+';
|
|
32
|
+
emphasis?: '_' | '*';
|
|
33
|
+
strong?: '__' | '**';
|
|
34
|
+
}
|
|
35
|
+
interface MarkdownFrontmatter {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare function convert(input: string, options: MarkdownConvertOptions): string;
|
|
40
|
+
|
|
41
|
+
declare function generateToc(input: string): MarkdownTocEntry[];
|
|
42
|
+
declare function renderToc(entries: MarkdownTocEntry[]): string;
|
|
43
|
+
|
|
44
|
+
declare function extractLinks(input: string): MarkdownLinkInfo[];
|
|
45
|
+
declare function extractFrontmatter(input: string): MarkdownFrontmatter | null;
|
|
46
|
+
declare function stripFrontmatter(input: string): string;
|
|
47
|
+
|
|
48
|
+
declare function getStats(input: string): MarkdownStats;
|
|
49
|
+
|
|
50
|
+
type index_MarkdownConvertFormat = MarkdownConvertFormat;
|
|
51
|
+
type index_MarkdownConvertOptions = MarkdownConvertOptions;
|
|
52
|
+
type index_MarkdownFormatOptions = MarkdownFormatOptions;
|
|
53
|
+
type index_MarkdownFrontmatter = MarkdownFrontmatter;
|
|
54
|
+
type index_MarkdownLinkInfo = MarkdownLinkInfo;
|
|
55
|
+
type index_MarkdownStats = MarkdownStats;
|
|
56
|
+
type index_MarkdownTocEntry = MarkdownTocEntry;
|
|
57
|
+
declare const index_convert: typeof convert;
|
|
58
|
+
declare const index_extractFrontmatter: typeof extractFrontmatter;
|
|
59
|
+
declare const index_extractLinks: typeof extractLinks;
|
|
60
|
+
declare const index_generateToc: typeof generateToc;
|
|
61
|
+
declare const index_getStats: typeof getStats;
|
|
62
|
+
declare const index_renderToc: typeof renderToc;
|
|
63
|
+
declare const index_stripFrontmatter: typeof stripFrontmatter;
|
|
64
|
+
declare namespace index {
|
|
65
|
+
export { type index_MarkdownConvertFormat as MarkdownConvertFormat, type index_MarkdownConvertOptions as MarkdownConvertOptions, type index_MarkdownFormatOptions as MarkdownFormatOptions, type index_MarkdownFrontmatter as MarkdownFrontmatter, type index_MarkdownLinkInfo as MarkdownLinkInfo, type index_MarkdownStats as MarkdownStats, type index_MarkdownTocEntry as MarkdownTocEntry, index_convert as convert, index_extractFrontmatter as extractFrontmatter, index_extractLinks as extractLinks, index_generateToc as generateToc, index_getStats as getStats, index_renderToc as renderToc, index_stripFrontmatter as stripFrontmatter };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { type MarkdownConvertFormat as M, type MarkdownConvertOptions as a, type MarkdownFormatOptions as b, type MarkdownFrontmatter as c, type MarkdownLinkInfo as d, type MarkdownStats as e, type MarkdownTocEntry as f, convert as g, extractFrontmatter as h, index as i, extractLinks as j, generateToc as k, getStats as l, renderToc as r, stripFrontmatter as s };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
type MarkdownConvertFormat = 'html' | 'text' | 'markdown';
|
|
2
|
+
interface MarkdownConvertOptions {
|
|
3
|
+
from: MarkdownConvertFormat;
|
|
4
|
+
to: MarkdownConvertFormat;
|
|
5
|
+
gfm?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface MarkdownTocEntry {
|
|
8
|
+
level: number;
|
|
9
|
+
text: string;
|
|
10
|
+
slug: string;
|
|
11
|
+
}
|
|
12
|
+
interface MarkdownLinkInfo {
|
|
13
|
+
text: string;
|
|
14
|
+
href: string;
|
|
15
|
+
line: number;
|
|
16
|
+
}
|
|
17
|
+
interface MarkdownStats {
|
|
18
|
+
words: number;
|
|
19
|
+
characters: number;
|
|
20
|
+
lines: number;
|
|
21
|
+
paragraphs: number;
|
|
22
|
+
headings: number;
|
|
23
|
+
links: number;
|
|
24
|
+
images: number;
|
|
25
|
+
codeBlocks: number;
|
|
26
|
+
lists: number;
|
|
27
|
+
sizeBytes: number;
|
|
28
|
+
}
|
|
29
|
+
interface MarkdownFormatOptions {
|
|
30
|
+
lineWidth?: number;
|
|
31
|
+
bullet?: '-' | '*' | '+';
|
|
32
|
+
emphasis?: '_' | '*';
|
|
33
|
+
strong?: '__' | '**';
|
|
34
|
+
}
|
|
35
|
+
interface MarkdownFrontmatter {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare function convert(input: string, options: MarkdownConvertOptions): string;
|
|
40
|
+
|
|
41
|
+
declare function generateToc(input: string): MarkdownTocEntry[];
|
|
42
|
+
declare function renderToc(entries: MarkdownTocEntry[]): string;
|
|
43
|
+
|
|
44
|
+
declare function extractLinks(input: string): MarkdownLinkInfo[];
|
|
45
|
+
declare function extractFrontmatter(input: string): MarkdownFrontmatter | null;
|
|
46
|
+
declare function stripFrontmatter(input: string): string;
|
|
47
|
+
|
|
48
|
+
declare function getStats(input: string): MarkdownStats;
|
|
49
|
+
|
|
50
|
+
type index_MarkdownConvertFormat = MarkdownConvertFormat;
|
|
51
|
+
type index_MarkdownConvertOptions = MarkdownConvertOptions;
|
|
52
|
+
type index_MarkdownFormatOptions = MarkdownFormatOptions;
|
|
53
|
+
type index_MarkdownFrontmatter = MarkdownFrontmatter;
|
|
54
|
+
type index_MarkdownLinkInfo = MarkdownLinkInfo;
|
|
55
|
+
type index_MarkdownStats = MarkdownStats;
|
|
56
|
+
type index_MarkdownTocEntry = MarkdownTocEntry;
|
|
57
|
+
declare const index_convert: typeof convert;
|
|
58
|
+
declare const index_extractFrontmatter: typeof extractFrontmatter;
|
|
59
|
+
declare const index_extractLinks: typeof extractLinks;
|
|
60
|
+
declare const index_generateToc: typeof generateToc;
|
|
61
|
+
declare const index_getStats: typeof getStats;
|
|
62
|
+
declare const index_renderToc: typeof renderToc;
|
|
63
|
+
declare const index_stripFrontmatter: typeof stripFrontmatter;
|
|
64
|
+
declare namespace index {
|
|
65
|
+
export { type index_MarkdownConvertFormat as MarkdownConvertFormat, type index_MarkdownConvertOptions as MarkdownConvertOptions, type index_MarkdownFormatOptions as MarkdownFormatOptions, type index_MarkdownFrontmatter as MarkdownFrontmatter, type index_MarkdownLinkInfo as MarkdownLinkInfo, type index_MarkdownStats as MarkdownStats, type index_MarkdownTocEntry as MarkdownTocEntry, index_convert as convert, index_extractFrontmatter as extractFrontmatter, index_extractLinks as extractLinks, index_generateToc as generateToc, index_getStats as getStats, index_renderToc as renderToc, index_stripFrontmatter as stripFrontmatter };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { type MarkdownConvertFormat as M, type MarkdownConvertOptions as a, type MarkdownFormatOptions as b, type MarkdownFrontmatter as c, type MarkdownLinkInfo as d, type MarkdownStats as e, type MarkdownTocEntry as f, convert as g, extractFrontmatter as h, index as i, extractLinks as j, generateToc as k, getStats as l, renderToc as r, stripFrontmatter as s };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
type LengthUnit = 'mm' | 'cm' | 'm' | 'km' | 'in' | 'ft' | 'yd' | 'mi';
|
|
2
|
+
type WeightUnit = 'mg' | 'g' | 'kg' | 'oz' | 'lb' | 'ton';
|
|
3
|
+
type TemperatureUnit = 'celsius' | 'fahrenheit' | 'kelvin';
|
|
4
|
+
type DataUnit = 'b' | 'kb' | 'mb' | 'gb' | 'tb';
|
|
5
|
+
type UnitCategory = 'length' | 'weight' | 'temperature' | 'data';
|
|
6
|
+
type NumberBase = 'binary' | 'octal' | 'decimal' | 'hex';
|
|
7
|
+
interface UnitConversionResult {
|
|
8
|
+
value: number;
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
result: number;
|
|
12
|
+
}
|
|
13
|
+
interface BaseConversionResult {
|
|
14
|
+
input: string;
|
|
15
|
+
fromBase: NumberBase;
|
|
16
|
+
binary: string;
|
|
17
|
+
octal: string;
|
|
18
|
+
decimal: string;
|
|
19
|
+
hex: string;
|
|
20
|
+
}
|
|
21
|
+
interface StatisticsResult {
|
|
22
|
+
count: number;
|
|
23
|
+
sum: number;
|
|
24
|
+
mean: number;
|
|
25
|
+
median: number;
|
|
26
|
+
mode: number[];
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
range: number;
|
|
30
|
+
standardDeviation: number;
|
|
31
|
+
variance: number;
|
|
32
|
+
percentiles: {
|
|
33
|
+
p25: number;
|
|
34
|
+
p50: number;
|
|
35
|
+
p75: number;
|
|
36
|
+
p90: number;
|
|
37
|
+
p99: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
interface NumberFormatOptions {
|
|
41
|
+
locale?: string;
|
|
42
|
+
style?: 'decimal' | 'currency' | 'percent';
|
|
43
|
+
currency?: string;
|
|
44
|
+
minimumFractionDigits?: number;
|
|
45
|
+
maximumFractionDigits?: number;
|
|
46
|
+
}
|
|
47
|
+
interface PercentageResult {
|
|
48
|
+
value: number;
|
|
49
|
+
total: number;
|
|
50
|
+
percentage: number;
|
|
51
|
+
formatted: string;
|
|
52
|
+
}
|
|
53
|
+
interface PercentageChangeResult {
|
|
54
|
+
from: number;
|
|
55
|
+
to: number;
|
|
56
|
+
change: number;
|
|
57
|
+
formatted: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare function convertUnit(value: number, from: string, to: string, category: UnitCategory): UnitConversionResult;
|
|
61
|
+
|
|
62
|
+
declare function convertBase(input: string, fromBase: NumberBase): BaseConversionResult;
|
|
63
|
+
|
|
64
|
+
declare function calculateStats(numbers: number[]): StatisticsResult;
|
|
65
|
+
|
|
66
|
+
declare function formatNumber(value: number, options?: NumberFormatOptions): string;
|
|
67
|
+
|
|
68
|
+
declare function percentage(value: number, total: number): PercentageResult;
|
|
69
|
+
declare function percentageChange(from: number, to: number): PercentageChangeResult;
|
|
70
|
+
|
|
71
|
+
type index_BaseConversionResult = BaseConversionResult;
|
|
72
|
+
type index_DataUnit = DataUnit;
|
|
73
|
+
type index_LengthUnit = LengthUnit;
|
|
74
|
+
type index_NumberBase = NumberBase;
|
|
75
|
+
type index_NumberFormatOptions = NumberFormatOptions;
|
|
76
|
+
type index_PercentageChangeResult = PercentageChangeResult;
|
|
77
|
+
type index_PercentageResult = PercentageResult;
|
|
78
|
+
type index_StatisticsResult = StatisticsResult;
|
|
79
|
+
type index_TemperatureUnit = TemperatureUnit;
|
|
80
|
+
type index_UnitCategory = UnitCategory;
|
|
81
|
+
type index_UnitConversionResult = UnitConversionResult;
|
|
82
|
+
type index_WeightUnit = WeightUnit;
|
|
83
|
+
declare const index_calculateStats: typeof calculateStats;
|
|
84
|
+
declare const index_convertBase: typeof convertBase;
|
|
85
|
+
declare const index_convertUnit: typeof convertUnit;
|
|
86
|
+
declare const index_formatNumber: typeof formatNumber;
|
|
87
|
+
declare const index_percentage: typeof percentage;
|
|
88
|
+
declare const index_percentageChange: typeof percentageChange;
|
|
89
|
+
declare namespace index {
|
|
90
|
+
export { type index_BaseConversionResult as BaseConversionResult, type index_DataUnit as DataUnit, type index_LengthUnit as LengthUnit, type index_NumberBase as NumberBase, type index_NumberFormatOptions as NumberFormatOptions, type index_PercentageChangeResult as PercentageChangeResult, type index_PercentageResult as PercentageResult, type index_StatisticsResult as StatisticsResult, type index_TemperatureUnit as TemperatureUnit, type index_UnitCategory as UnitCategory, type index_UnitConversionResult as UnitConversionResult, type index_WeightUnit as WeightUnit, index_calculateStats as calculateStats, index_convertBase as convertBase, index_convertUnit as convertUnit, index_formatNumber as formatNumber, index_percentage as percentage, index_percentageChange as percentageChange };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { type BaseConversionResult as B, type DataUnit as D, type LengthUnit as L, type NumberBase as N, type PercentageChangeResult as P, type StatisticsResult as S, type TemperatureUnit as T, type UnitCategory as U, type WeightUnit as W, type NumberFormatOptions as a, type PercentageResult as b, type UnitConversionResult as c, calculateStats as d, convertBase as e, convertUnit as f, formatNumber as g, percentageChange as h, index as i, percentage as p };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
type LengthUnit = 'mm' | 'cm' | 'm' | 'km' | 'in' | 'ft' | 'yd' | 'mi';
|
|
2
|
+
type WeightUnit = 'mg' | 'g' | 'kg' | 'oz' | 'lb' | 'ton';
|
|
3
|
+
type TemperatureUnit = 'celsius' | 'fahrenheit' | 'kelvin';
|
|
4
|
+
type DataUnit = 'b' | 'kb' | 'mb' | 'gb' | 'tb';
|
|
5
|
+
type UnitCategory = 'length' | 'weight' | 'temperature' | 'data';
|
|
6
|
+
type NumberBase = 'binary' | 'octal' | 'decimal' | 'hex';
|
|
7
|
+
interface UnitConversionResult {
|
|
8
|
+
value: number;
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
result: number;
|
|
12
|
+
}
|
|
13
|
+
interface BaseConversionResult {
|
|
14
|
+
input: string;
|
|
15
|
+
fromBase: NumberBase;
|
|
16
|
+
binary: string;
|
|
17
|
+
octal: string;
|
|
18
|
+
decimal: string;
|
|
19
|
+
hex: string;
|
|
20
|
+
}
|
|
21
|
+
interface StatisticsResult {
|
|
22
|
+
count: number;
|
|
23
|
+
sum: number;
|
|
24
|
+
mean: number;
|
|
25
|
+
median: number;
|
|
26
|
+
mode: number[];
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
range: number;
|
|
30
|
+
standardDeviation: number;
|
|
31
|
+
variance: number;
|
|
32
|
+
percentiles: {
|
|
33
|
+
p25: number;
|
|
34
|
+
p50: number;
|
|
35
|
+
p75: number;
|
|
36
|
+
p90: number;
|
|
37
|
+
p99: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
interface NumberFormatOptions {
|
|
41
|
+
locale?: string;
|
|
42
|
+
style?: 'decimal' | 'currency' | 'percent';
|
|
43
|
+
currency?: string;
|
|
44
|
+
minimumFractionDigits?: number;
|
|
45
|
+
maximumFractionDigits?: number;
|
|
46
|
+
}
|
|
47
|
+
interface PercentageResult {
|
|
48
|
+
value: number;
|
|
49
|
+
total: number;
|
|
50
|
+
percentage: number;
|
|
51
|
+
formatted: string;
|
|
52
|
+
}
|
|
53
|
+
interface PercentageChangeResult {
|
|
54
|
+
from: number;
|
|
55
|
+
to: number;
|
|
56
|
+
change: number;
|
|
57
|
+
formatted: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare function convertUnit(value: number, from: string, to: string, category: UnitCategory): UnitConversionResult;
|
|
61
|
+
|
|
62
|
+
declare function convertBase(input: string, fromBase: NumberBase): BaseConversionResult;
|
|
63
|
+
|
|
64
|
+
declare function calculateStats(numbers: number[]): StatisticsResult;
|
|
65
|
+
|
|
66
|
+
declare function formatNumber(value: number, options?: NumberFormatOptions): string;
|
|
67
|
+
|
|
68
|
+
declare function percentage(value: number, total: number): PercentageResult;
|
|
69
|
+
declare function percentageChange(from: number, to: number): PercentageChangeResult;
|
|
70
|
+
|
|
71
|
+
type index_BaseConversionResult = BaseConversionResult;
|
|
72
|
+
type index_DataUnit = DataUnit;
|
|
73
|
+
type index_LengthUnit = LengthUnit;
|
|
74
|
+
type index_NumberBase = NumberBase;
|
|
75
|
+
type index_NumberFormatOptions = NumberFormatOptions;
|
|
76
|
+
type index_PercentageChangeResult = PercentageChangeResult;
|
|
77
|
+
type index_PercentageResult = PercentageResult;
|
|
78
|
+
type index_StatisticsResult = StatisticsResult;
|
|
79
|
+
type index_TemperatureUnit = TemperatureUnit;
|
|
80
|
+
type index_UnitCategory = UnitCategory;
|
|
81
|
+
type index_UnitConversionResult = UnitConversionResult;
|
|
82
|
+
type index_WeightUnit = WeightUnit;
|
|
83
|
+
declare const index_calculateStats: typeof calculateStats;
|
|
84
|
+
declare const index_convertBase: typeof convertBase;
|
|
85
|
+
declare const index_convertUnit: typeof convertUnit;
|
|
86
|
+
declare const index_formatNumber: typeof formatNumber;
|
|
87
|
+
declare const index_percentage: typeof percentage;
|
|
88
|
+
declare const index_percentageChange: typeof percentageChange;
|
|
89
|
+
declare namespace index {
|
|
90
|
+
export { type index_BaseConversionResult as BaseConversionResult, type index_DataUnit as DataUnit, type index_LengthUnit as LengthUnit, type index_NumberBase as NumberBase, type index_NumberFormatOptions as NumberFormatOptions, type index_PercentageChangeResult as PercentageChangeResult, type index_PercentageResult as PercentageResult, type index_StatisticsResult as StatisticsResult, type index_TemperatureUnit as TemperatureUnit, type index_UnitCategory as UnitCategory, type index_UnitConversionResult as UnitConversionResult, type index_WeightUnit as WeightUnit, index_calculateStats as calculateStats, index_convertBase as convertBase, index_convertUnit as convertUnit, index_formatNumber as formatNumber, index_percentage as percentage, index_percentageChange as percentageChange };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { type BaseConversionResult as B, type DataUnit as D, type LengthUnit as L, type NumberBase as N, type PercentageChangeResult as P, type StatisticsResult as S, type TemperatureUnit as T, type UnitCategory as U, type WeightUnit as W, type NumberFormatOptions as a, type PercentageResult as b, type UnitConversionResult as c, calculateStats as d, convertBase as e, convertUnit as f, formatNumber as g, percentageChange as h, index as i, percentage as p };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
export { i as json } from './index--vbnYfdE.mjs';
|
|
2
|
+
import { F as Filter, E as ExportFormat } from './index-QWC8yIgW.mjs';
|
|
3
|
+
export { i as csv } from './index-QWC8yIgW.mjs';
|
|
4
|
+
import { P as PDFMetadata, a as PDFTemplate } from './index-Dh47fgVS.mjs';
|
|
5
|
+
export { i as pdf } from './index-Dh47fgVS.mjs';
|
|
6
|
+
export { i as xml } from './index-7FZQloN-.mjs';
|
|
7
|
+
export { i as excel } from './index-CQ1EukC4.mjs';
|
|
8
|
+
export { i as image } from './index-7XgaTVH5.mjs';
|
|
9
|
+
export { i as markdown } from './index-rwh9hdD9.mjs';
|
|
10
|
+
export { i as archive } from './index-FFrvmr-n.mjs';
|
|
11
|
+
export { i as regex } from './index-BDZcIVCU.mjs';
|
|
12
|
+
export { i as diff } from './index-BN00EnUU.mjs';
|
|
13
|
+
export { i as sql } from './index-pPy_XDQU.mjs';
|
|
14
|
+
export { i as crypto } from './index-fJD8SORm.mjs';
|
|
15
|
+
export { i as datetime } from './index-CgRVnFOt.mjs';
|
|
16
|
+
export { i as text } from './index-DjBDZzuj.mjs';
|
|
17
|
+
export { i as math } from './index-uXdkAfea.mjs';
|
|
18
|
+
export { i as color } from './index-7bvFmh45.mjs';
|
|
19
|
+
export { i as physics } from './index-BZDcrPs-.mjs';
|
|
20
|
+
export { i as structural } from './index-BKeYao0B.mjs';
|
|
1
21
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
22
|
import * as http from 'http';
|
|
3
|
-
import
|
|
23
|
+
import 'diff';
|
|
4
24
|
|
|
5
25
|
declare function createServer(): Server<{
|
|
6
26
|
method: string;
|
|
@@ -387,7 +407,7 @@ declare const csvTools: ({
|
|
|
387
407
|
};
|
|
388
408
|
handler: (args: {
|
|
389
409
|
input: string;
|
|
390
|
-
filters:
|
|
410
|
+
filters: Filter[];
|
|
391
411
|
}) => Promise<{
|
|
392
412
|
content: {
|
|
393
413
|
type: "text";
|
|
@@ -509,7 +529,7 @@ declare const csvTools: ({
|
|
|
509
529
|
};
|
|
510
530
|
handler: (args: {
|
|
511
531
|
input: string;
|
|
512
|
-
format:
|
|
532
|
+
format: ExportFormat;
|
|
513
533
|
headers?: boolean;
|
|
514
534
|
}) => Promise<{
|
|
515
535
|
content: {
|
|
@@ -768,7 +788,7 @@ declare const pdfTools: ({
|
|
|
768
788
|
};
|
|
769
789
|
handler: (args: {
|
|
770
790
|
file: string;
|
|
771
|
-
metadata:
|
|
791
|
+
metadata: PDFMetadata;
|
|
772
792
|
}) => Promise<{
|
|
773
793
|
content: {
|
|
774
794
|
type: "text";
|
|
@@ -940,7 +960,7 @@ declare const pdfTools: ({
|
|
|
940
960
|
required: string[];
|
|
941
961
|
};
|
|
942
962
|
handler: (args: {
|
|
943
|
-
template:
|
|
963
|
+
template: PDFTemplate;
|
|
944
964
|
data?: Record<string, string>;
|
|
945
965
|
missingFieldBehavior?: string;
|
|
946
966
|
}) => Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
export { i as json } from './index--vbnYfdE.js';
|
|
2
|
+
import { F as Filter, E as ExportFormat } from './index-QWC8yIgW.js';
|
|
3
|
+
export { i as csv } from './index-QWC8yIgW.js';
|
|
4
|
+
import { P as PDFMetadata, a as PDFTemplate } from './index-Dh47fgVS.js';
|
|
5
|
+
export { i as pdf } from './index-Dh47fgVS.js';
|
|
6
|
+
export { i as xml } from './index-7FZQloN-.js';
|
|
7
|
+
export { i as excel } from './index-CQ1EukC4.js';
|
|
8
|
+
export { i as image } from './index-7XgaTVH5.js';
|
|
9
|
+
export { i as markdown } from './index-rwh9hdD9.js';
|
|
10
|
+
export { i as archive } from './index-FFrvmr-n.js';
|
|
11
|
+
export { i as regex } from './index-BDZcIVCU.js';
|
|
12
|
+
export { i as diff } from './index-BN00EnUU.js';
|
|
13
|
+
export { i as sql } from './index-pPy_XDQU.js';
|
|
14
|
+
export { i as crypto } from './index-fJD8SORm.js';
|
|
15
|
+
export { i as datetime } from './index-CgRVnFOt.js';
|
|
16
|
+
export { i as text } from './index-DjBDZzuj.js';
|
|
17
|
+
export { i as math } from './index-uXdkAfea.js';
|
|
18
|
+
export { i as color } from './index-7bvFmh45.js';
|
|
19
|
+
export { i as physics } from './index-BZDcrPs-.js';
|
|
20
|
+
export { i as structural } from './index-BKeYao0B.js';
|
|
1
21
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
22
|
import * as http from 'http';
|
|
3
|
-
import
|
|
23
|
+
import 'diff';
|
|
4
24
|
|
|
5
25
|
declare function createServer(): Server<{
|
|
6
26
|
method: string;
|
|
@@ -387,7 +407,7 @@ declare const csvTools: ({
|
|
|
387
407
|
};
|
|
388
408
|
handler: (args: {
|
|
389
409
|
input: string;
|
|
390
|
-
filters:
|
|
410
|
+
filters: Filter[];
|
|
391
411
|
}) => Promise<{
|
|
392
412
|
content: {
|
|
393
413
|
type: "text";
|
|
@@ -509,7 +529,7 @@ declare const csvTools: ({
|
|
|
509
529
|
};
|
|
510
530
|
handler: (args: {
|
|
511
531
|
input: string;
|
|
512
|
-
format:
|
|
532
|
+
format: ExportFormat;
|
|
513
533
|
headers?: boolean;
|
|
514
534
|
}) => Promise<{
|
|
515
535
|
content: {
|
|
@@ -768,7 +788,7 @@ declare const pdfTools: ({
|
|
|
768
788
|
};
|
|
769
789
|
handler: (args: {
|
|
770
790
|
file: string;
|
|
771
|
-
metadata:
|
|
791
|
+
metadata: PDFMetadata;
|
|
772
792
|
}) => Promise<{
|
|
773
793
|
content: {
|
|
774
794
|
type: "text";
|
|
@@ -940,7 +960,7 @@ declare const pdfTools: ({
|
|
|
940
960
|
required: string[];
|
|
941
961
|
};
|
|
942
962
|
handler: (args: {
|
|
943
|
-
template:
|
|
963
|
+
template: PDFTemplate;
|
|
944
964
|
data?: Record<string, string>;
|
|
945
965
|
missingFieldBehavior?: string;
|
|
946
966
|
}) => Promise<{
|