@tuned-tensor/cli 0.28.1 → 0.29.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/README.md +7 -0
- package/dist/chunk-CT2RXESA.js +1272 -0
- package/dist/chunk-CT2RXESA.js.map +1 -0
- package/dist/chunk-G3KT4AYL.js +1623 -0
- package/dist/chunk-G3KT4AYL.js.map +1 -0
- package/dist/chunk-HKWPQPOJ.js +260 -0
- package/dist/chunk-HKWPQPOJ.js.map +1 -0
- package/dist/chunk-MM75IAY3.js +138 -0
- package/dist/chunk-MM75IAY3.js.map +1 -0
- package/dist/{chunk-7CO5DBCY.js → chunk-UY3SU2XA.js} +4949 -4843
- package/dist/chunk-UY3SU2XA.js.map +1 -0
- package/dist/contracts-4MEIRTIN.js +72 -0
- package/dist/dataset-Y5NEUKI5.js +22 -0
- package/dist/dataset-Y5NEUKI5.js.map +1 -0
- package/dist/index.js +782 -319
- package/dist/index.js.map +1 -1
- package/dist/local-runtime.js +84 -467
- package/dist/local-runtime.js.map +1 -1
- package/dist/model-server-7BNWDXHP.js +18 -0
- package/dist/model-server-7BNWDXHP.js.map +1 -0
- package/dist/{prefetch-LBIOO7ZO.js → prefetch-ZFCK4IBD.js} +3 -2
- package/dist/prefetch-ZFCK4IBD.js.map +1 -0
- package/docs/local-runtime/model-quality.md +103 -0
- package/docs/spec-workflow.md +9 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/README.md +364 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +778 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js +76 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +123 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +774 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts +15 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js +72 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/numeric-range.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +932 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/numeric-range.ts +79 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
- package/node_modules/minimatch/README.md +125 -107
- package/node_modules/minimatch/dist/commonjs/index.d.ts +49 -38
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/commonjs/index.js +782 -359
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/minimatch/dist/esm/index.d.ts +49 -38
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/esm/index.js +781 -356
- package/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/minimatch/package.json +5 -4
- package/package.json +3 -2
- package/training/adapter/src/train.py +16 -1
- package/dist/chunk-7CO5DBCY.js.map +0 -1
- package/dist/chunk-FSVTMX4L.js +0 -2820
- package/dist/chunk-FSVTMX4L.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.js +0 -845
- package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.js +0 -841
- package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
- /package/dist/{prefetch-LBIOO7ZO.js.map → contracts-4MEIRTIN.js.map} +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { type Form } from './parse-class.js';
|
|
2
|
+
export type { Form };
|
|
3
|
+
export type MatcherOptions = {
|
|
4
|
+
/** perform a case-insensitive match */
|
|
5
|
+
nocase?: boolean;
|
|
6
|
+
/** do not treat strings starting with `.` specially */
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
/** do not match extglobs (treat them as normal strings) */
|
|
9
|
+
noext?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* normalize unicode in the pattern and the tested strings, with
|
|
12
|
+
* this form. `true` means `'NFC'`.
|
|
13
|
+
*/
|
|
14
|
+
normalize?: boolean | Form;
|
|
15
|
+
/**
|
|
16
|
+
* A char that marks a numeric range in the pattern, as
|
|
17
|
+
* `<mark><lo>..<hi><mark>`, where `lo` and `hi` are integers. It
|
|
18
|
+
* matches the strings that the bash brace expansion `{<lo>..<hi>}`
|
|
19
|
+
* makes, such as `{1..100}` or `{001..100}`, without making each
|
|
20
|
+
* one. A mark is never escaped by a `\` before it. Inside a `[...]`
|
|
21
|
+
* class, a mark is a char of the class.
|
|
22
|
+
*/
|
|
23
|
+
rangeMark?: string;
|
|
24
|
+
};
|
|
25
|
+
export type Item = {
|
|
26
|
+
t: 'lit';
|
|
27
|
+
ch: string;
|
|
28
|
+
} | {
|
|
29
|
+
t: 'any' | 'star';
|
|
30
|
+
} | {
|
|
31
|
+
t: 'class';
|
|
32
|
+
re: RegExp;
|
|
33
|
+
} | {
|
|
34
|
+
t: 'ext';
|
|
35
|
+
type: string;
|
|
36
|
+
alts: Item[][];
|
|
37
|
+
};
|
|
38
|
+
export type Token = Item | {
|
|
39
|
+
t: 'open';
|
|
40
|
+
type: string;
|
|
41
|
+
} | {
|
|
42
|
+
t: 'bar';
|
|
43
|
+
} | {
|
|
44
|
+
t: 'close';
|
|
45
|
+
};
|
|
46
|
+
export type NegNode = {
|
|
47
|
+
t: 'neg';
|
|
48
|
+
id: number;
|
|
49
|
+
sub: Node;
|
|
50
|
+
next: Node;
|
|
51
|
+
};
|
|
52
|
+
export type SplitNode = {
|
|
53
|
+
t: 'split';
|
|
54
|
+
id: number;
|
|
55
|
+
out: Node[];
|
|
56
|
+
};
|
|
57
|
+
export type Node = ({
|
|
58
|
+
t: 'lit';
|
|
59
|
+
id: number;
|
|
60
|
+
next: Node;
|
|
61
|
+
} & Lit) | {
|
|
62
|
+
t: 'any' | 'star';
|
|
63
|
+
id: number;
|
|
64
|
+
next: Node;
|
|
65
|
+
} | {
|
|
66
|
+
t: 'class';
|
|
67
|
+
id: number;
|
|
68
|
+
re: RegExp;
|
|
69
|
+
next: Node;
|
|
70
|
+
} | SplitNode | NegNode | {
|
|
71
|
+
t: 'match';
|
|
72
|
+
id: number;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* A literal char. With `nocase:true`, `re` folds case, and `ascii`
|
|
76
|
+
* holds its results for ASCII chars, by char code: 1 for a match,
|
|
77
|
+
* and 2 for not.
|
|
78
|
+
*/
|
|
79
|
+
export type Lit = {
|
|
80
|
+
ch: string;
|
|
81
|
+
re?: RegExp;
|
|
82
|
+
ascii?: Uint8Array;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* For each node id, the gen of the last state that has the node as
|
|
86
|
+
* a thread, and of the last state that walked through it. A state is
|
|
87
|
+
* built to the end before the states around it go on, and the nodes
|
|
88
|
+
* of a negated sub-pattern are only in its states (other than the
|
|
89
|
+
* match node, which is never marked). So one mark for each node is
|
|
90
|
+
* enough to know if the state being built has it. The Sims of a
|
|
91
|
+
* matcher never run at the same time, so they share one Marks.
|
|
92
|
+
*/
|
|
93
|
+
export type Marks = {
|
|
94
|
+
has: Float64Array;
|
|
95
|
+
seen: Float64Array;
|
|
96
|
+
gen: number;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* A node in a graph with no splits or negations. Such a graph is a
|
|
100
|
+
* chain of nodes that each match one char, or a `*`.
|
|
101
|
+
*/
|
|
102
|
+
export type LinearNode = Exclude<Node, SplitNode | NegNode | {
|
|
103
|
+
t: 'match';
|
|
104
|
+
}>;
|
|
105
|
+
export declare class Matcher {
|
|
106
|
+
#private;
|
|
107
|
+
pattern: string;
|
|
108
|
+
options: MatcherOptions;
|
|
109
|
+
constructor(pattern: string, options?: MatcherOptions);
|
|
110
|
+
test(s: string): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The same as {@link Matcher#test}, but the string is not checked
|
|
113
|
+
* for `/` chars, so the result for a string that has one is not
|
|
114
|
+
* defined. Only use it for a string that is known to be one path
|
|
115
|
+
* portion, such as a part of a path that was split on `/`. It can
|
|
116
|
+
* be faster, because some patterns do not need to look at each char
|
|
117
|
+
* of the string.
|
|
118
|
+
*/
|
|
119
|
+
testUnchecked(s: string): boolean;
|
|
120
|
+
/** a readable listing of the state machine */
|
|
121
|
+
toString(): string;
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,kBAAkB,CAAA;AAExD,YAAY,EAAE,IAAI,EAAE,CAAA;AAEpB,MAAM,MAAM,cAAc,GAAG;IAC3B,uCAAuC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,uDAAuD;IACvD,GAAG,CAAC,EAAE,OAAO,C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