@happyvertical/smrt-core 0.40.19 → 0.40.21

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1784615517759,
3
+ "timestamp": 1785008640592,
4
4
  "packageName": "@happyvertical/smrt-core",
5
- "packageVersion": "0.40.19",
5
+ "packageVersion": "0.40.21",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-core:SmrtClass": {
8
8
  "name": "smrtclass",
@@ -0,0 +1,174 @@
1
+ import { balanced } from "../../../../../balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js";
2
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.8/node_modules/brace-expansion/dist/esm/index.js
3
+ var escSlash = "\0SLASH" + Math.random() + "\0";
4
+ var escOpen = "\0OPEN" + Math.random() + "\0";
5
+ var escClose = "\0CLOSE" + Math.random() + "\0";
6
+ var escComma = "\0COMMA" + Math.random() + "\0";
7
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
8
+ var escSlashPattern = new RegExp(escSlash, "g");
9
+ var escOpenPattern = new RegExp(escOpen, "g");
10
+ var escClosePattern = new RegExp(escClose, "g");
11
+ var escCommaPattern = new RegExp(escComma, "g");
12
+ var escPeriodPattern = new RegExp(escPeriod, "g");
13
+ var slashPattern = /\\\\/g;
14
+ var openPattern = /\\{/g;
15
+ var closePattern = /\\}/g;
16
+ var commaPattern = /\\,/g;
17
+ var periodPattern = /\\\./g;
18
+ var EXPANSION_MAX = 1e5;
19
+ var EXPANSION_MAX_LENGTH = 4e6;
20
+ function numeric(str) {
21
+ return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
22
+ }
23
+ function escapeBraces(str) {
24
+ return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
25
+ }
26
+ function unescapeBraces(str) {
27
+ return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
28
+ }
29
+ /**
30
+ * Basically just str.split(","), but handling cases
31
+ * where we have nested braced sections, which should be
32
+ * treated as individual members, like {a,{b,c},d}
33
+ */
34
+ function parseCommaParts(str) {
35
+ if (!str) return [""];
36
+ const parts = [];
37
+ const m = balanced("{", "}", str);
38
+ if (!m) return str.split(",");
39
+ const { pre, body, post } = m;
40
+ const p = pre.split(",");
41
+ p[p.length - 1] += "{" + body + "}";
42
+ const postParts = parseCommaParts(post);
43
+ if (post.length) {
44
+ p[p.length - 1] += postParts.shift();
45
+ p.push.apply(p, postParts);
46
+ }
47
+ parts.push.apply(parts, p);
48
+ return parts;
49
+ }
50
+ function expand(str, options = {}) {
51
+ if (!str) return [];
52
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
53
+ if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
54
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
55
+ }
56
+ function embrace(str) {
57
+ return "{" + str + "}";
58
+ }
59
+ function isPadded(el) {
60
+ return /^-?0\d/.test(el);
61
+ }
62
+ function lte(i, y) {
63
+ return i <= y;
64
+ }
65
+ function gte(i, y) {
66
+ return i >= y;
67
+ }
68
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
69
+ const out = [];
70
+ let length = 0;
71
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
72
+ if (out.length >= max) return out;
73
+ const expansion = acc[a] + pre + values[v];
74
+ if (dropEmpties && !expansion) continue;
75
+ if (length + expansion.length > maxLength) return out;
76
+ out.push(expansion);
77
+ length += expansion.length;
78
+ }
79
+ return out;
80
+ }
81
+ function expandSequence(body, isAlphaSequence, max) {
82
+ const n = body.split(/\.\./);
83
+ const N = [];
84
+ /* c8 ignore start */
85
+ if (n[0] === void 0 || n[1] === void 0) return N;
86
+ /* c8 ignore stop */
87
+ const x = numeric(n[0]);
88
+ const y = numeric(n[1]);
89
+ const width = Math.max(n[0].length, n[1].length);
90
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
91
+ let test = lte;
92
+ if (y < x) {
93
+ incr *= -1;
94
+ test = gte;
95
+ }
96
+ const pad = n.some(isPadded);
97
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
98
+ let c;
99
+ if (isAlphaSequence) {
100
+ c = String.fromCharCode(i);
101
+ if (c === "\\") c = "";
102
+ } else {
103
+ c = String(i);
104
+ if (pad) {
105
+ const need = width - c.length;
106
+ if (need > 0) {
107
+ const z = new Array(need + 1).join("0");
108
+ if (i < 0) c = "-" + z + c.slice(1);
109
+ else c = z + c;
110
+ }
111
+ }
112
+ }
113
+ N.push(c);
114
+ }
115
+ return N;
116
+ }
117
+ function expand_(str, max, maxLength, isTop) {
118
+ let acc = [""];
119
+ let dropEmpties = false;
120
+ let firstGroup = true;
121
+ for (;;) {
122
+ const m = balanced("{", "}", str);
123
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
124
+ const pre = m.pre;
125
+ if (/\$$/.test(pre)) {
126
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
127
+ firstGroup = false;
128
+ if (!m.post.length) break;
129
+ str = m.post;
130
+ continue;
131
+ }
132
+ const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
133
+ const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
134
+ const isSequence = isNumericSequence || isAlphaSequence;
135
+ const isOptions = m.body.indexOf(",") >= 0;
136
+ if (!isSequence && !isOptions) {
137
+ if (m.post.match(/,(?!,).*\}/)) {
138
+ str = m.pre + "{" + m.body + escClose + m.post;
139
+ isTop = true;
140
+ continue;
141
+ }
142
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
143
+ }
144
+ if (firstGroup) {
145
+ dropEmpties = isTop && !isSequence;
146
+ firstGroup = false;
147
+ }
148
+ let values;
149
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max);
150
+ else {
151
+ let n = parseCommaParts(m.body);
152
+ if (n.length === 1 && n[0] !== void 0) {
153
+ n = expand_(n[0], max, maxLength, false).map(embrace);
154
+ /* c8 ignore start */
155
+ if (n.length === 1) {
156
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
157
+ if (!m.post.length) break;
158
+ str = m.post;
159
+ continue;
160
+ }
161
+ }
162
+ values = [];
163
+ for (let j = 0; j < n.length; j++) values.push.apply(values, expand_(n[j], max, maxLength, false));
164
+ }
165
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
166
+ if (!m.post.length) break;
167
+ str = m.post;
168
+ }
169
+ return acc;
170
+ }
171
+ //#endregion
172
+ export { EXPANSION_MAX, EXPANSION_MAX_LENGTH, expand };
173
+
174
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/brace-expansion@5.0.8/node_modules/brace-expansion/dist/esm/index.js"],"sourcesContent":["import { balanced } from 'balanced-match';\nconst escSlash = '\\0SLASH' + Math.random() + '\\0';\nconst escOpen = '\\0OPEN' + Math.random() + '\\0';\nconst escClose = '\\0CLOSE' + Math.random() + '\\0';\nconst escComma = '\\0COMMA' + Math.random() + '\\0';\nconst escPeriod = '\\0PERIOD' + Math.random() + '\\0';\nconst escSlashPattern = new RegExp(escSlash, 'g');\nconst escOpenPattern = new RegExp(escOpen, 'g');\nconst escClosePattern = new RegExp(escClose, 'g');\nconst escCommaPattern = new RegExp(escComma, 'g');\nconst escPeriodPattern = new RegExp(escPeriod, 'g');\nconst slashPattern = /\\\\\\\\/g;\nconst openPattern = /\\\\{/g;\nconst closePattern = /\\\\}/g;\nconst commaPattern = /\\\\,/g;\nconst periodPattern = /\\\\\\./g;\nexport const EXPANSION_MAX = 100_000;\n// `EXPANSION_MAX` caps the *number* of expansions, but not their length. An\n// input like `'{a,b}'.repeat(1500)` stays under that count - its output is\n// truncated to 100k results - while making every result ~1500 characters\n// long. The result set, and the intermediate arrays built while combining\n// brace sets, then grow large enough to exhaust memory and crash the process\n// (CVE-2026-14257). `EXPANSION_MAX_LENGTH` bounds the total number of\n// characters the accumulator may hold at any point, so memory stays flat no\n// matter how many brace groups are chained. The limit sits well above any\n// realistic expansion (100k results hitting `EXPANSION_MAX` measure ~1M\n// characters) so legitimate input is unaffected.\nexport const EXPANSION_MAX_LENGTH = 4_000_000;\nfunction numeric(str) {\n return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);\n}\nfunction escapeBraces(str) {\n return str\n .replace(slashPattern, escSlash)\n .replace(openPattern, escOpen)\n .replace(closePattern, escClose)\n .replace(commaPattern, escComma)\n .replace(periodPattern, escPeriod);\n}\nfunction unescapeBraces(str) {\n return str\n .replace(escSlashPattern, '\\\\')\n .replace(escOpenPattern, '{')\n .replace(escClosePattern, '}')\n .replace(escCommaPattern, ',')\n .replace(escPeriodPattern, '.');\n}\n/**\n * Basically just str.split(\",\"), but handling cases\n * where we have nested braced sections, which should be\n * treated as individual members, like {a,{b,c},d}\n */\nfunction parseCommaParts(str) {\n if (!str) {\n return [''];\n }\n const parts = [];\n const m = balanced('{', '}', str);\n if (!m) {\n return str.split(',');\n }\n const { pre, body, post } = m;\n const p = pre.split(',');\n p[p.length - 1] += '{' + body + '}';\n const postParts = parseCommaParts(post);\n if (post.length) {\n ;\n p[p.length - 1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n parts.push.apply(parts, p);\n return parts;\n}\nexport function expand(str, options = {}) {\n if (!str) {\n return [];\n }\n const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.slice(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.slice(2);\n }\n return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);\n}\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n// Build `{ acc[a] + pre + values[v] }` for every combination, capping the\n// number of results at `max` and the total number of characters at `maxLength`.\n// This is the one place output grows, so bounding it here keeps the single\n// accumulator - and therefore memory - flat regardless of how many brace groups\n// are combined (CVE-2026-14257).\nfunction combine(acc, pre, values, max, maxLength, dropEmpties) {\n const out = [];\n let length = 0;\n for (let a = 0; a < acc.length; a++) {\n for (let v = 0; v < values.length; v++) {\n if (out.length >= max)\n return out;\n const expansion = acc[a] + pre + values[v];\n // Bash drops empty results at the top level. Skip them before they count\n // against `max`, so `max` bounds the number of *kept* results.\n if (dropEmpties && !expansion)\n continue;\n if (length + expansion.length > maxLength)\n return out;\n out.push(expansion);\n length += expansion.length;\n }\n }\n return out;\n}\n// The expansion values of a single numeric (`1..5`) or alphabetic (`a..e..2`)\n// sequence body.\nfunction expandSequence(body, isAlphaSequence, max) {\n const n = body.split(/\\.\\./);\n const N = [];\n // A sequence body always splits into two or three parts, but the compiler\n // can't know that.\n /* c8 ignore start */\n if (n[0] === undefined || n[1] === undefined) {\n return N;\n }\n /* c8 ignore stop */\n const x = numeric(n[0]);\n const y = numeric(n[1]);\n const width = Math.max(n[0].length, n[1].length);\n let incr = n.length === 3 && n[2] !== undefined ?\n Math.max(Math.abs(numeric(n[2])), 1)\n : 1;\n let test = lte;\n const reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n const pad = n.some(isPadded);\n for (let i = x; test(i, y) && N.length < max; i += incr) {\n let c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\') {\n c = '';\n }\n }\n else {\n c = String(i);\n if (pad) {\n const need = width - c.length;\n if (need > 0) {\n const z = new Array(need + 1).join('0');\n if (i < 0) {\n c = '-' + z + c.slice(1);\n }\n else {\n c = z + c;\n }\n }\n }\n }\n N.push(c);\n }\n return N;\n}\nfunction expand_(str, max, maxLength, isTop) {\n // Consume the string's top-level brace groups left to right, threading a\n // running set of combined prefixes (`acc`). Expanding the tail iteratively -\n // rather than recursing on `m.post` once per group - keeps the native stack\n // depth constant, so deeply chained input (`'{a,b}'.repeat(3000)`) can no\n // longer overflow the stack, and leaves a single accumulator whose size\n // `maxLength` bounds directly (CVE-2026-14257).\n let acc = [''];\n // Bash drops empty results, but only when the *first* top-level group is a\n // comma set - a sequence like `{a..\\}` may legitimately yield ''. The drop\n // is on the final strings, so it is applied to whichever `combine` produces\n // them (the one with no brace set left in the tail).\n let dropEmpties = false;\n let firstGroup = true;\n for (;;) {\n const m = balanced('{', '}', str);\n // No brace set left: the rest of the string is literal.\n if (!m) {\n return combine(acc, str, [''], max, maxLength, dropEmpties);\n }\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n const pre = m.pre;\n if (/\\$$/.test(pre)) {\n acc = combine(acc, pre + '{' + m.body + '}', [''], max, maxLength, dropEmpties && !m.post.length);\n firstGroup = false;\n if (!m.post.length)\n break;\n str = m.post;\n continue;\n }\n const isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n const isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n const isSequence = isNumericSequence || isAlphaSequence;\n const isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,(?!,).*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n isTop = true;\n continue;\n }\n // Nothing here expands, so the whole remaining string is literal.\n return combine(acc, pre + '{' + m.body + '}' + m.post, [''], max, maxLength, dropEmpties);\n }\n if (firstGroup) {\n dropEmpties = isTop && !isSequence;\n firstGroup = false;\n }\n let values;\n if (isSequence) {\n values = expandSequence(m.body, isAlphaSequence, max);\n }\n else {\n let n = parseCommaParts(m.body);\n if (n.length === 1 && n[0] !== undefined) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand_(n[0], max, maxLength, false).map(embrace);\n //XXX is this necessary? Can't seem to hit it in tests.\n /* c8 ignore start */\n if (n.length === 1) {\n acc = combine(acc, pre + n[0], [''], max, maxLength, dropEmpties && !m.post.length);\n if (!m.post.length)\n break;\n str = m.post;\n continue;\n }\n /* c8 ignore stop */\n }\n values = [];\n for (let j = 0; j < n.length; j++) {\n values.push.apply(values, expand_(n[j], max, maxLength, false));\n }\n }\n acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);\n if (!m.post.length)\n break;\n str = m.post;\n }\n return acc;\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,UAAU,WAAW,KAAK,OAAO,IAAI;AAC3C,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,YAAY,aAAa,KAAK,OAAO,IAAI;AAC/C,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,iBAAiB,IAAI,OAAO,SAAS,GAAG;AAC9C,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,mBAAmB,IAAI,OAAO,WAAW,GAAG;AAClD,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,eAAe;AACrB,IAAM,eAAe;AACrB,IAAM,gBAAgB;AACtB,IAAa,gBAAgB;AAW7B,IAAa,uBAAuB;AACpC,S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AI,EAAE,KAAK,MAAM,YAAY,GAAG;IAC5B,MAAM,EAAE,MAAM,MAAM,EAAE,OAAO,WAAW,EAAE;IAC1C,QAAQ;IACR;GACJ;GAEA,OAAO,QAAQ,KAAK,MAAM,MAAM,EAAE,OAAO,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,WAAW,WAAW;EAC5F;EACA,IAAI,YAAY;GACZ,cAAc,SAAS,CAAC;GACxB,aAAa;EACjB;EACA,IAAI;EACJ,IAAI,YACA,SAAS,eAAe,EAAE,MAAM,iBAAiB,GAAG;OAEnD;GACD,IAAI,IAAI,gBAAgB,EAAE,IAAI;GAC9B,IAAI,EAAE,WAAW,KAAK,EAAE,OAAO,KAAA,GAAW;IAEtC,IAAI,QAAQ,EAAE,IAAI,KAAK,WAAW,KAAK,CAAC,CAAC,IAAI,OAAO;;IAGpD,IAAI,EAAE,WAAW,GAAG;KAChB,MAAM,QAAQ,KAAK,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,WAAW,eAAe,CAAC,EAAE,KAAK,MAAM;KAClF,IAAI,CAAC,EAAE,KAAK,QACR;KACJ,MAAM,EAAE;KACR;IACJ;GAEJ;GACA,SAAS,CAAC;GACV,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAC1B,OAAO,KAAK,MAAM,QAAQ,QAAQ,EAAE,IAAI,KAAK,WAAW,KAAK,CAAC;EAEtE;EACA,MAAM,QAAQ,KAAK,KAAK,QAAQ,KAAK,WAAW,eAAe,CAAC,EAAE,KAAK,MAAM;EAC7E,IAAI,CAAC,EAAE,KAAK,QACR;EACJ,MAAM,EAAE;CACZ;CACA,OAAO;AACX"}
@@ -1,4 +1,4 @@
1
- import { expand } from "../../../../../brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js";
1
+ import { expand } from "../../../../../brace-expansion@5.0.8/node_modules/brace-expansion/dist/esm/index.js";
2
2
  import { assertValidPattern } from "./assert-valid-pattern.js";
3
3
  import { unescape } from "./unescape.js";
4
4
  import { AST } from "./ast.js";
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-07-21T06:31:55.794Z",
3
+ "generatedAt": "2026-07-25T19:43:58.732Z",
4
4
  "packageName": "@happyvertical/smrt-core",
5
- "packageVersion": "0.40.19",
5
+ "packageVersion": "0.40.21",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "f5b2ceeb08e9fb464e4a9cf44bccdd725248b5b78d9eff24a5c36918d8d3cb85",
10
- "packageJson": "fb8015a07d2093bc4a4e926b11b7e603d8f43bd9e321e1c694e703e9d0c65d19",
9
+ "manifest": "170943c0c866af9ac6ddf23d47d30a6b38d6b7cfd43d76901c5e6c88560c7953",
10
+ "packageJson": "365fa16fe8d56b2b1d537f3bc33ec103f3ec75f95eeddeaaee215cb58694c4de",
11
11
  "agents": "51e716c002ba5e152e5b8f63c8eae21edff8ffb99467b19cb12006c524d3921f"
12
12
  },
13
13
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-core",
3
- "version": "0.40.19",
3
+ "version": "0.40.21",
4
4
  "description": "Core AI agent framework with standardized collections, object-relational mapping, and code generators",
5
5
  "author": "HappyVertical",
6
6
  "type": "module",
@@ -164,9 +164,9 @@
164
164
  "tsx": "^4.23.0",
165
165
  "typescript": "5.9.3",
166
166
  "yaml": "^2.9.0",
167
- "@happyvertical/smrt-config": "0.40.19",
168
- "@happyvertical/smrt-scanner": "0.40.19",
169
- "@happyvertical/smrt-types": "0.40.19"
167
+ "@happyvertical/smrt-config": "0.40.21",
168
+ "@happyvertical/smrt-types": "0.40.21",
169
+ "@happyvertical/smrt-scanner": "0.40.21"
170
170
  },
171
171
  "peerDependencies": {
172
172
  "@huggingface/transformers": ">=3.0.0 <4.0.0",
@@ -1,150 +0,0 @@
1
- import { balanced } from "../../../../../balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js";
2
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
3
- var escSlash = "\0SLASH" + Math.random() + "\0";
4
- var escOpen = "\0OPEN" + Math.random() + "\0";
5
- var escClose = "\0CLOSE" + Math.random() + "\0";
6
- var escComma = "\0COMMA" + Math.random() + "\0";
7
- var escPeriod = "\0PERIOD" + Math.random() + "\0";
8
- var escSlashPattern = new RegExp(escSlash, "g");
9
- var escOpenPattern = new RegExp(escOpen, "g");
10
- var escClosePattern = new RegExp(escClose, "g");
11
- var escCommaPattern = new RegExp(escComma, "g");
12
- var escPeriodPattern = new RegExp(escPeriod, "g");
13
- var slashPattern = /\\\\/g;
14
- var openPattern = /\\{/g;
15
- var closePattern = /\\}/g;
16
- var commaPattern = /\\,/g;
17
- var periodPattern = /\\\./g;
18
- var EXPANSION_MAX = 1e5;
19
- function numeric(str) {
20
- return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
21
- }
22
- function escapeBraces(str) {
23
- return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
24
- }
25
- function unescapeBraces(str) {
26
- return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
27
- }
28
- /**
29
- * Basically just str.split(","), but handling cases
30
- * where we have nested braced sections, which should be
31
- * treated as individual members, like {a,{b,c},d}
32
- */
33
- function parseCommaParts(str) {
34
- if (!str) return [""];
35
- const parts = [];
36
- const m = balanced("{", "}", str);
37
- if (!m) return str.split(",");
38
- const { pre, body, post } = m;
39
- const p = pre.split(",");
40
- p[p.length - 1] += "{" + body + "}";
41
- const postParts = parseCommaParts(post);
42
- if (post.length) {
43
- p[p.length - 1] += postParts.shift();
44
- p.push.apply(p, postParts);
45
- }
46
- parts.push.apply(parts, p);
47
- return parts;
48
- }
49
- function expand(str, options = {}) {
50
- if (!str) return [];
51
- const { max = EXPANSION_MAX } = options;
52
- if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
53
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
54
- }
55
- function embrace(str) {
56
- return "{" + str + "}";
57
- }
58
- function isPadded(el) {
59
- return /^-?0\d/.test(el);
60
- }
61
- function lte(i, y) {
62
- return i <= y;
63
- }
64
- function gte(i, y) {
65
- return i >= y;
66
- }
67
- function expand_(str, max, isTop) {
68
- /** @type {string[]} */
69
- const expansions = [];
70
- for (;;) {
71
- const m = balanced("{", "}", str);
72
- if (!m) return [str];
73
- const pre = m.pre;
74
- if (/\$$/.test(m.pre)) {
75
- const post = m.post.length ? expand_(m.post, max, false) : [""];
76
- for (let k = 0; k < post.length && k < max; k++) {
77
- const expansion = pre + "{" + m.body + "}" + post[k];
78
- expansions.push(expansion);
79
- }
80
- return expansions;
81
- }
82
- const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
83
- const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
84
- const isSequence = isNumericSequence || isAlphaSequence;
85
- const isOptions = m.body.indexOf(",") >= 0;
86
- if (!isSequence && !isOptions) {
87
- if (m.post.match(/,(?!,).*\}/)) {
88
- str = m.pre + "{" + m.body + escClose + m.post;
89
- isTop = true;
90
- continue;
91
- }
92
- return [str];
93
- }
94
- const post = m.post.length ? expand_(m.post, max, false) : [""];
95
- let n;
96
- if (isSequence) n = m.body.split(/\.\./);
97
- else {
98
- n = parseCommaParts(m.body);
99
- if (n.length === 1 && n[0] !== void 0) {
100
- n = expand_(n[0], max, false).map(embrace);
101
- /* c8 ignore start */
102
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
103
- }
104
- }
105
- let N;
106
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
107
- const x = numeric(n[0]);
108
- const y = numeric(n[1]);
109
- const width = Math.max(n[0].length, n[1].length);
110
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
111
- let test = lte;
112
- if (y < x) {
113
- incr *= -1;
114
- test = gte;
115
- }
116
- const pad = n.some(isPadded);
117
- N = [];
118
- for (let i = x; test(i, y) && N.length < max; i += incr) {
119
- let c;
120
- if (isAlphaSequence) {
121
- c = String.fromCharCode(i);
122
- if (c === "\\") c = "";
123
- } else {
124
- c = String(i);
125
- if (pad) {
126
- const need = width - c.length;
127
- if (need > 0) {
128
- const z = new Array(need + 1).join("0");
129
- if (i < 0) c = "-" + z + c.slice(1);
130
- else c = z + c;
131
- }
132
- }
133
- }
134
- N.push(c);
135
- }
136
- } else {
137
- N = [];
138
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
139
- }
140
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
141
- const expansion = pre + N[j] + post[k];
142
- if (!isTop || isSequence || expansion) expansions.push(expansion);
143
- }
144
- return expansions;
145
- }
146
- }
147
- //#endregion
148
- export { EXPANSION_MAX, expand };
149
-
150
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js"],"sourcesContent":["import { balanced } from 'balanced-match';\nconst escSlash = '\\0SLASH' + Math.random() + '\\0';\nconst escOpen = '\\0OPEN' + Math.random() + '\\0';\nconst escClose = '\\0CLOSE' + Math.random() + '\\0';\nconst escComma = '\\0COMMA' + Math.random() + '\\0';\nconst escPeriod = '\\0PERIOD' + Math.random() + '\\0';\nconst escSlashPattern = new RegExp(escSlash, 'g');\nconst escOpenPattern = new RegExp(escOpen, 'g');\nconst escClosePattern = new RegExp(escClose, 'g');\nconst escCommaPattern = new RegExp(escComma, 'g');\nconst escPeriodPattern = new RegExp(escPeriod, 'g');\nconst slashPattern = /\\\\\\\\/g;\nconst openPattern = /\\\\{/g;\nconst closePattern = /\\\\}/g;\nconst commaPattern = /\\\\,/g;\nconst periodPattern = /\\\\\\./g;\nexport const EXPANSION_MAX = 100_000;\nfunction numeric(str) {\n return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);\n}\nfunction escapeBraces(str) {\n return str\n .replace(slashPattern, escSlash)\n .replace(openPattern, escOpen)\n .replace(closePattern, escClose)\n .replace(commaPattern, escComma)\n .replace(periodPattern, escPeriod);\n}\nfunction unescapeBraces(str) {\n return str\n .replace(escSlashPattern, '\\\\')\n .replace(escOpenPattern, '{')\n .replace(escClosePattern, '}')\n .replace(escCommaPattern, ',')\n .replace(escPeriodPattern, '.');\n}\n/**\n * Basically just str.split(\",\"), but handling cases\n * where we have nested braced sections, which should be\n * treated as individual members, like {a,{b,c},d}\n */\nfunction parseCommaParts(str) {\n if (!str) {\n return [''];\n }\n const parts = [];\n const m = balanced('{', '}', str);\n if (!m) {\n return str.split(',');\n }\n const { pre, body, post } = m;\n const p = pre.split(',');\n p[p.length - 1] += '{' + body + '}';\n const postParts = parseCommaParts(post);\n if (post.length) {\n ;\n p[p.length - 1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n parts.push.apply(parts, p);\n return parts;\n}\nexport function expand(str, options = {}) {\n if (!str) {\n return [];\n }\n const { max = EXPANSION_MAX } = options;\n // I don't know why Bash 4.3 does this, but it does.\n // Anything starting with {} will have the first two bytes preserved\n // but *only* at the top level, so {},a}b will not expand to anything,\n // but a{},b}c will be expanded to [a}c,abc].\n // One could argue that this is a bug in Bash, but since the goal of\n // this module is to match Bash's rules, we escape a leading {}\n if (str.slice(0, 2) === '{}') {\n str = '\\\\{\\\\}' + str.slice(2);\n }\n return expand_(escapeBraces(str), max, true).map(unescapeBraces);\n}\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\nfunction expand_(str, max, isTop) {\n /** @type {string[]} */\n const expansions = [];\n // The `{a},b}` rewrite below restarts expansion on a rewritten string with\n // the same `max` and `isTop = true`. Loop instead of recursing so a long run\n // of non-expanding `{}` groups can't exhaust the call stack.\n for (;;) {\n const m = balanced('{', '}', str);\n if (!m)\n return [str];\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n const pre = m.pre;\n if (/\\$$/.test(m.pre)) {\n const post = m.post.length ? expand_(m.post, max, false) : [''];\n for (let k = 0; k < post.length && k < max; k++) {\n const expansion = pre + '{' + m.body + '}' + post[k];\n expansions.push(expansion);\n }\n return expansions;\n }\n const isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n const isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n const isSequence = isNumericSequence || isAlphaSequence;\n const isOptions = m.body.indexOf(',') >= 0;\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,(?!,).*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n isTop = true;\n continue;\n }\n return [str];\n }\n // Only expand post once we know this brace set actually expands. Computing\n // it before the early returns above expanded post a second time on every\n // non-expanding `{}`, which is what made inputs like `a{},{},{}...` blow up\n // exponentially.\n const post = m.post.length ? expand_(m.post, max, false) : [''];\n let n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n }\n else {\n n = parseCommaParts(m.body);\n if (n.length === 1 && n[0] !== undefined) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand_(n[0], max, false).map(embrace);\n //XXX is this necessary? Can't seem to hit it in tests.\n /* c8 ignore start */\n if (n.length === 1) {\n return post.map(p => m.pre + n[0] + p);\n }\n /* c8 ignore stop */\n }\n }\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n let N;\n if (isSequence && n[0] !== undefined && n[1] !== undefined) {\n const x = numeric(n[0]);\n const y = numeric(n[1]);\n const width = Math.max(n[0].length, n[1].length);\n let incr = n.length === 3 && n[2] !== undefined ?\n Math.max(Math.abs(numeric(n[2])), 1)\n : 1;\n let test = lte;\n const reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n const pad = n.some(isPadded);\n N = [];\n for (let i = x; test(i, y) && N.length < max; i += incr) {\n let c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\') {\n c = '';\n }\n }\n else {\n c = String(i);\n if (pad) {\n const need = width - c.length;\n if (need > 0) {\n const z = new Array(need + 1).join('0');\n if (i < 0) {\n c = '-' + z + c.slice(1);\n }\n else {\n c = z + c;\n }\n }\n }\n }\n N.push(c);\n }\n }\n else {\n N = [];\n for (let j = 0; j < n.length; j++) {\n N.push.apply(N, expand_(n[j], max, false));\n }\n }\n for (let j = 0; j < N.length; j++) {\n for (let k = 0; k < post.length && expansions.length < max; k++) {\n const expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion) {\n expansions.push(expansion);\n }\n }\n }\n return expansions;\n }\n}\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,UAAU,WAAW,KAAK,OAAO,IAAI;AAC3C,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,WAAW,YAAY,KAAK,OAAO,IAAI;AAC7C,IAAM,YAAY,aAAa,KAAK,OAAO,IAAI;AAC/C,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,iBAAiB,IAAI,OAAO,SAAS,GAAG;AAC9C,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,kBAAkB,IAAI,OAAO,UAAU,GAAG;AAChD,IAAM,mBAAmB,IAAI,OAAO,WAAW,GAAG;AAClD,IAAM,eAAe;AACrB,IAAM,cAAc;AACpB,IAAM,eAAe;AACrB,IAAM,eAAe;AACrB,IAAM,gB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