@unbrained/pm-cli 2026.11.17 → 2026.11.19

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.
Files changed (124) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli-bundle/bundle-manifest.json +1 -1
  3. package/dist/cli-bundle/chunks/chunk-2UTJ5QIE.js +71 -0
  4. package/dist/cli-bundle/chunks/{chunk-VLKCFZY6.js → chunk-4FNMPZ7Y.js} +2 -2
  5. package/dist/cli-bundle/chunks/chunk-723PMYNX.js +125 -0
  6. package/dist/cli-bundle/chunks/{chunk-77MGDTK4.js → chunk-AGPFANRX.js} +3 -3
  7. package/dist/cli-bundle/chunks/{chunk-RXNBNF6O.js → chunk-AMHD7WIV.js} +2 -2
  8. package/dist/cli-bundle/chunks/{chunk-7K2RUKMK.js → chunk-AOV5HG3Y.js} +2 -2
  9. package/dist/cli-bundle/chunks/{chunk-36R3JTAD.js → chunk-CNMGGAZO.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-XPBADEUK.js → chunk-CTOE26W4.js} +2 -2
  11. package/dist/cli-bundle/chunks/{chunk-FXSLODOK.js → chunk-GQCMICAL.js} +2 -2
  12. package/dist/cli-bundle/chunks/{chunk-ABFHWRLE.js → chunk-IQKCRLQP.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-QANUQMDL.js → chunk-IUTN67EB.js} +2 -2
  14. package/dist/cli-bundle/chunks/chunk-M76BEWTT.js +31 -0
  15. package/dist/cli-bundle/chunks/{chunk-ADKDFCVT.js → chunk-N2CPCFSN.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-KIQNEOKJ.js → chunk-NMVPQTZI.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-XP35IEHT.js → chunk-O7IFAJ76.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-X5TFNFTS.js → chunk-OESI2ETD.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-ACLBUVQG.js → chunk-P4A5RFLX.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-QZNL5XDT.js → chunk-PRVT7ITI.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-O4ZSIMNC.js → chunk-Q32Q3LRH.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-DXSZL3T6.js → chunk-XPBPGDFW.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-4FIN2XWC.js → chunk-Z5LHCEXG.js} +2 -2
  24. package/dist/cli-bundle/chunks/{item-revision-7RVMVXTE.js → item-revision-YJKGOYBR.js} +2 -2
  25. package/dist/cli-bundle/chunks/item-transaction-K4YZ7GWR.js +2 -0
  26. package/dist/cli-bundle/chunks/{mutation-admission-3PKQOAYK.js → mutation-admission-JLMQJ2M5.js} +2 -2
  27. package/dist/cli-bundle/chunks/{register-list-query-TPZLHFHQ.js → register-list-query-4AXLLXK7.js} +2 -2
  28. package/dist/cli-bundle/chunks/{register-mutation-JG5AEBRJ.js → register-mutation-FJIXGGF4.js} +2 -2
  29. package/dist/cli-bundle/chunks/{register-operations-3CNXP46P.js → register-operations-W4E2KEMA.js} +2 -2
  30. package/dist/cli-bundle/chunks/{register-setup-4N56VL2P.js → register-setup-RYRIBNSN.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/{chunk-VBA4BIHN.js → chunk-2XULTI5B.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/{chunk-2MQNIDKG.js → chunk-4S7I342K.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-GD2YWUAD.js → chunk-77CDWGBW.js} +55 -54
  34. package/dist/cli-bundle/focused-chunks/{chunk-BNLLST32.js → chunk-7A4VIRIU.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-SESMRMEE.js → chunk-D72EQN7Z.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-YWPLBFPC.js → chunk-GAOWBALE.js} +23 -23
  37. package/dist/cli-bundle/focused-chunks/chunk-N64BUB63.js +27 -0
  38. package/dist/cli-bundle/focused-chunks/{chunk-XJS4COL2.js → chunk-OF4UM5B6.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-6JQXDGHM.js → chunk-P4TG4VMJ.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{item-revision-U7GDVAH7.js → item-revision-32HFGFYG.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{item-transaction-7C4BH47O.js → item-transaction-C4VW3SHX.js} +2 -2
  42. package/dist/cli-bundle/focused-chunks/{mutation-admission-SKXVITP5.js → mutation-admission-PNK6ORZR.js} +2 -2
  43. package/dist/cli-bundle/main.js +2 -2
  44. package/dist/cli-bundle/sdk-authoring.js +1 -1
  45. package/dist/cli-bundle/sdk-core.js +1 -1
  46. package/dist/cli-bundle/sdk-governance.js +1 -1
  47. package/dist/cli-bundle/sdk-merge.js +58 -58
  48. package/dist/cli-bundle/sdk-query.js +1 -1
  49. package/dist/cli-bundle/sdk-runtime.js +1 -1
  50. package/dist/cli-bundle/sdk-testing.js +1 -1
  51. package/dist/cli-bundle/sdk.js +11 -11
  52. package/dist/core/fs/file-glob.js +2 -0
  53. package/dist/core/shared/process-tree.js +3 -0
  54. package/dist/core/shared/secret-rules.d.ts +94 -4
  55. package/dist/core/shared/secret-rules.js +5 -4
  56. package/dist/sdk/extension/managed-state.d.ts +3 -1
  57. package/dist/sdk/extension/managed-state.js +1 -1
  58. package/dist/sdk/extension/managed-update-status.js +1 -1
  59. package/dist/sdk/extension/update-check.d.ts +42 -6
  60. package/dist/sdk/extension/update-check.js +1 -1
  61. package/dist/sdk/extension.d.ts +3 -1
  62. package/dist/sdk/extension.js +1 -1
  63. package/dist/sdk/index.d.ts +1 -1
  64. package/dist/sdk/index.js +1 -1
  65. package/dist/sdk/linked-artifacts.js +2 -2
  66. package/dist/sdk/mutation-guard.d.ts +146 -5
  67. package/dist/sdk/mutation-guard.js +1 -1
  68. package/dist/sdk/public-surface.json +1 -1
  69. package/dist/sdk/test/execution.js +2 -2
  70. package/docs/COMMANDS.md +33 -0
  71. package/docs/CONFIGURATION.md +1 -0
  72. package/docs/DEFECT_RECURRENCE.md +3 -2
  73. package/docs/MUTATION_INTEGRITY.md +259 -7
  74. package/docs/PACKAGE_EVIDENCE.md +66 -0
  75. package/marketplace.json +1 -1
  76. package/package.json +1 -3
  77. package/packages/pm-beads/package.json +1 -1
  78. package/packages/pm-calendar/package.json +1 -1
  79. package/packages/pm-command-kit/package.json +1 -1
  80. package/packages/pm-digital-twin/package.json +1 -1
  81. package/packages/pm-governance-audit/package.json +1 -1
  82. package/packages/pm-guide-shell/package.json +1 -1
  83. package/packages/pm-kanban/package.json +1 -1
  84. package/packages/pm-lifecycle-hooks/package.json +1 -1
  85. package/packages/pm-linked-test-adapters/package.json +1 -1
  86. package/packages/pm-search-advanced/package.json +1 -1
  87. package/packages/pm-templates/package.json +1 -1
  88. package/packages/pm-todos/package.json +1 -1
  89. package/packages/pm-vcs/package.json +1 -1
  90. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  91. package/plugins/pm-claude/package.json +1 -1
  92. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  93. package/plugins/pm-codex/package.json +1 -1
  94. package/plugins/pm-codex/plugin.json +1 -1
  95. package/runtime-dependencies.json +1 -1
  96. package/dist/cli-bundle/chunks/chunk-2WHXFKMY.js +0 -31
  97. package/dist/cli-bundle/chunks/chunk-3IU2S5UQ.js +0 -70
  98. package/dist/cli-bundle/chunks/chunk-AM26RAG7.js +0 -124
  99. package/dist/cli-bundle/chunks/item-transaction-NVX6P3FK.js +0 -2
  100. package/dist/cli-bundle/focused-chunks/chunk-ZDY5L2C2.js +0 -26
  101. package/node_modules/fdir/LICENSE +0 -7
  102. package/node_modules/fdir/README.md +0 -91
  103. package/node_modules/fdir/dist/index.cjs +0 -588
  104. package/node_modules/fdir/dist/index.d.cts +0 -155
  105. package/node_modules/fdir/dist/index.d.mts +0 -155
  106. package/node_modules/fdir/dist/index.mjs +0 -570
  107. package/node_modules/fdir/package.json +0 -106
  108. package/node_modules/picomatch/LICENSE +0 -21
  109. package/node_modules/picomatch/README.md +0 -743
  110. package/node_modules/picomatch/index.js +0 -17
  111. package/node_modules/picomatch/lib/constants.js +0 -184
  112. package/node_modules/picomatch/lib/parse.js +0 -1425
  113. package/node_modules/picomatch/lib/picomatch.js +0 -361
  114. package/node_modules/picomatch/lib/scan.js +0 -403
  115. package/node_modules/picomatch/lib/utils.js +0 -72
  116. package/node_modules/picomatch/package.json +0 -83
  117. package/node_modules/picomatch/posix.js +0 -3
  118. package/node_modules/tinyglobby/LICENSE +0 -21
  119. package/node_modules/tinyglobby/README.md +0 -25
  120. package/node_modules/tinyglobby/dist/index.cjs +0 -335
  121. package/node_modules/tinyglobby/dist/index.d.cts +0 -148
  122. package/node_modules/tinyglobby/dist/index.d.mts +0 -148
  123. package/node_modules/tinyglobby/dist/index.mjs +0 -307
  124. package/node_modules/tinyglobby/package.json +0 -70
@@ -1,403 +0,0 @@
1
- 'use strict';
2
-
3
- const utils = require('./utils');
4
- const {
5
- CHAR_ASTERISK, /* * */
6
- CHAR_AT, /* @ */
7
- CHAR_BACKWARD_SLASH, /* \ */
8
- CHAR_COMMA, /* , */
9
- CHAR_DOT, /* . */
10
- CHAR_EXCLAMATION_MARK, /* ! */
11
- CHAR_FORWARD_SLASH, /* / */
12
- CHAR_LEFT_CURLY_BRACE, /* { */
13
- CHAR_LEFT_PARENTHESES, /* ( */
14
- CHAR_LEFT_SQUARE_BRACKET, /* [ */
15
- CHAR_PLUS, /* + */
16
- CHAR_QUESTION_MARK, /* ? */
17
- CHAR_RIGHT_CURLY_BRACE, /* } */
18
- CHAR_RIGHT_PARENTHESES, /* ) */
19
- CHAR_RIGHT_SQUARE_BRACKET /* ] */
20
- } = require('./constants');
21
-
22
- const isPathSeparator = code => {
23
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
24
- };
25
-
26
- const depth = token => {
27
- if (token.isPrefix !== true) {
28
- token.depth = token.isGlobstar ? Infinity : 1;
29
- }
30
- };
31
-
32
- /**
33
- * Quickly scans a glob pattern and returns an object with a handful of
34
- * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
35
- * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
36
- * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
37
- *
38
- * ```js
39
- * const pm = require('picomatch');
40
- * console.log(pm.scan('foo/bar/*.js'));
41
- * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
42
- * ```
43
- * @param {String} `str`
44
- * @param {Object} `options`
45
- * @return {Object} Returns an object with tokens and regex source string.
46
- * @api public
47
- */
48
-
49
- const scan = (input, options) => {
50
- const opts = options || {};
51
-
52
- const length = input.length - 1;
53
- const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
54
- const slashes = [];
55
- const tokens = [];
56
- const parts = [];
57
-
58
- let str = input;
59
- let index = -1;
60
- let start = 0;
61
- let lastIndex = 0;
62
- let isBrace = false;
63
- let isBracket = false;
64
- let isGlob = false;
65
- let isExtglob = false;
66
- let isGlobstar = false;
67
- let braceEscaped = false;
68
- let backslashes = false;
69
- let negated = false;
70
- let negatedExtglob = false;
71
- let finished = false;
72
- let braces = 0;
73
- let prev;
74
- let code;
75
- let token = { value: '', depth: 0, isGlob: false };
76
-
77
- const eos = () => index >= length;
78
- const peek = () => str.charCodeAt(index + 1);
79
- const advance = () => {
80
- prev = code;
81
- return str.charCodeAt(++index);
82
- };
83
-
84
- while (index < length) {
85
- code = advance();
86
- let next;
87
-
88
- if (code === CHAR_BACKWARD_SLASH) {
89
- backslashes = token.backslashes = true;
90
- code = advance();
91
-
92
- if (code === CHAR_LEFT_CURLY_BRACE) {
93
- braceEscaped = true;
94
- }
95
- continue;
96
- }
97
-
98
- if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
99
- braces++;
100
-
101
- while (eos() !== true && (code = advance())) {
102
- if (code === CHAR_BACKWARD_SLASH) {
103
- backslashes = token.backslashes = true;
104
- advance();
105
- continue;
106
- }
107
-
108
- if (code === CHAR_LEFT_CURLY_BRACE) {
109
- braces++;
110
- continue;
111
- }
112
-
113
- if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
114
- isBrace = token.isBrace = true;
115
- isGlob = token.isGlob = true;
116
- finished = true;
117
-
118
- if (scanToEnd === true) {
119
- continue;
120
- }
121
-
122
- break;
123
- }
124
-
125
- if (braceEscaped !== true && code === CHAR_COMMA) {
126
- isBrace = token.isBrace = true;
127
- isGlob = token.isGlob = true;
128
- finished = true;
129
-
130
- if (scanToEnd === true) {
131
- continue;
132
- }
133
-
134
- break;
135
- }
136
-
137
- if (code === CHAR_RIGHT_CURLY_BRACE) {
138
- braces--;
139
-
140
- if (braces === 0) {
141
- braceEscaped = false;
142
- isBrace = token.isBrace = true;
143
- finished = true;
144
- break;
145
- }
146
- }
147
- }
148
-
149
- if (scanToEnd === true) {
150
- continue;
151
- }
152
-
153
- break;
154
- }
155
-
156
- if (code === CHAR_FORWARD_SLASH) {
157
- slashes.push(index);
158
- tokens.push(token);
159
- token = { value: '', depth: 0, isGlob: false };
160
-
161
- if (finished === true) continue;
162
- if (prev === CHAR_DOT && index === (start + 1)) {
163
- start += 2;
164
- continue;
165
- }
166
-
167
- lastIndex = index + 1;
168
- continue;
169
- }
170
-
171
- if (opts.noext !== true) {
172
- const isExtglobChar = code === CHAR_PLUS
173
- || code === CHAR_AT
174
- || code === CHAR_ASTERISK
175
- || code === CHAR_QUESTION_MARK
176
- || code === CHAR_EXCLAMATION_MARK;
177
-
178
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
179
- isGlob = token.isGlob = true;
180
- isExtglob = token.isExtglob = true;
181
- finished = true;
182
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
183
- negatedExtglob = true;
184
- }
185
-
186
- if (scanToEnd === true) {
187
- let parens = 0;
188
-
189
- while (eos() !== true && (code = advance())) {
190
- if (code === CHAR_BACKWARD_SLASH) {
191
- backslashes = token.backslashes = true;
192
- advance();
193
- continue;
194
- }
195
-
196
- if (code === CHAR_LEFT_PARENTHESES) {
197
- parens++;
198
- continue;
199
- }
200
-
201
- if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
202
- finished = true;
203
- break;
204
- }
205
- }
206
- continue;
207
- }
208
- break;
209
- }
210
- }
211
-
212
- if (code === CHAR_ASTERISK) {
213
- if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
214
- isGlob = token.isGlob = true;
215
- finished = true;
216
-
217
- if (scanToEnd === true) {
218
- continue;
219
- }
220
- break;
221
- }
222
-
223
- if (code === CHAR_QUESTION_MARK) {
224
- isGlob = token.isGlob = true;
225
- finished = true;
226
-
227
- if (scanToEnd === true) {
228
- continue;
229
- }
230
- break;
231
- }
232
-
233
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
234
- while (eos() !== true && (next = advance())) {
235
- if (next === CHAR_BACKWARD_SLASH) {
236
- backslashes = token.backslashes = true;
237
- advance();
238
- continue;
239
- }
240
-
241
- if (next === CHAR_RIGHT_SQUARE_BRACKET) {
242
- isBracket = token.isBracket = true;
243
- isGlob = token.isGlob = true;
244
- finished = true;
245
- break;
246
- }
247
- }
248
-
249
- if (scanToEnd === true) {
250
- continue;
251
- }
252
-
253
- break;
254
- }
255
-
256
- if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
257
- negated = token.negated = true;
258
- start++;
259
- continue;
260
- }
261
-
262
- if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
263
- isGlob = token.isGlob = true;
264
-
265
- if (scanToEnd === true) {
266
- let parens = 1;
267
-
268
- while (eos() !== true && (code = advance())) {
269
- if (code === CHAR_BACKWARD_SLASH) {
270
- backslashes = token.backslashes = true;
271
- advance();
272
- continue;
273
- }
274
-
275
- if (code === CHAR_LEFT_PARENTHESES) {
276
- parens++;
277
- continue;
278
- }
279
-
280
- if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
281
- finished = true;
282
- break;
283
- }
284
- }
285
- continue;
286
- }
287
- break;
288
- }
289
-
290
- if (isGlob === true) {
291
- finished = true;
292
-
293
- if (scanToEnd === true) {
294
- continue;
295
- }
296
-
297
- break;
298
- }
299
- }
300
-
301
- if (opts.noext === true) {
302
- isExtglob = false;
303
- isGlob = false;
304
- }
305
-
306
- let base = str;
307
- let prefix = '';
308
- let glob = '';
309
-
310
- if (start > 0) {
311
- prefix = str.slice(0, start);
312
- str = str.slice(start);
313
- lastIndex -= start;
314
- }
315
-
316
- if (base && isGlob === true && lastIndex > 0) {
317
- base = str.slice(0, lastIndex);
318
- glob = str.slice(lastIndex);
319
- } else if (isGlob === true) {
320
- base = '';
321
- glob = str;
322
- } else {
323
- base = str;
324
- }
325
-
326
- if (base && base !== '' && base !== '/' && base !== str) {
327
- if (isPathSeparator(base.charCodeAt(base.length - 1))) {
328
- base = base.slice(0, -1);
329
- }
330
- }
331
-
332
- if (opts.unescape === true) {
333
- if (glob) glob = utils.removeBackslashes(glob);
334
-
335
- if (base && backslashes === true) {
336
- base = utils.removeBackslashes(base);
337
- }
338
- }
339
-
340
- const state = {
341
- prefix,
342
- input,
343
- start,
344
- base,
345
- glob,
346
- isBrace,
347
- isBracket,
348
- isGlob,
349
- isExtglob,
350
- isGlobstar,
351
- negated,
352
- negatedExtglob
353
- };
354
-
355
- if (opts.tokens === true) {
356
- state.maxDepth = 0;
357
- if (!isPathSeparator(code)) {
358
- tokens.push(token);
359
- }
360
- state.tokens = tokens;
361
- }
362
-
363
- if (opts.parts === true || opts.tokens === true) {
364
- let prevIndex;
365
-
366
- for (let idx = 0; idx < slashes.length; idx++) {
367
- const n = prevIndex !== undefined ? prevIndex + 1 : start;
368
- const i = slashes[idx];
369
- const value = input.slice(n, i);
370
- if (opts.tokens) {
371
- if (idx === 0 && start !== 0) {
372
- tokens[idx].isPrefix = true;
373
- tokens[idx].value = prefix;
374
- } else {
375
- tokens[idx].value = value;
376
- }
377
- depth(tokens[idx]);
378
- state.maxDepth += tokens[idx].depth;
379
- }
380
- if (i >= start) {
381
- parts.push(value);
382
- prevIndex = i;
383
- }
384
- }
385
-
386
- const n = prevIndex !== undefined ? prevIndex + 1 : start;
387
- const value = input.slice(n);
388
- parts.push(value);
389
-
390
- if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
391
- tokens[tokens.length - 1].value = value;
392
- depth(tokens[tokens.length - 1]);
393
- state.maxDepth += tokens[tokens.length - 1].depth;
394
- }
395
-
396
- state.slashes = slashes;
397
- state.parts = parts;
398
- }
399
-
400
- return state;
401
- };
402
-
403
- module.exports = scan;
@@ -1,72 +0,0 @@
1
- /*global navigator*/
2
- 'use strict';
3
-
4
- const {
5
- REGEX_BACKSLASH,
6
- REGEX_REMOVE_BACKSLASH,
7
- REGEX_SPECIAL_CHARS,
8
- REGEX_SPECIAL_CHARS_GLOBAL
9
- } = require('./constants');
10
-
11
- exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
12
- exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
13
- exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
14
- exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
15
- exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
16
-
17
- exports.isWindows = () => {
18
- if (typeof navigator !== 'undefined' && navigator.platform) {
19
- const platform = navigator.platform.toLowerCase();
20
- return platform === 'win32' || platform === 'windows';
21
- }
22
-
23
- if (typeof process !== 'undefined' && process.platform) {
24
- return process.platform === 'win32';
25
- }
26
-
27
- return false;
28
- };
29
-
30
- exports.removeBackslashes = str => {
31
- return str.replace(REGEX_REMOVE_BACKSLASH, match => {
32
- return match === '\\' ? '' : match;
33
- });
34
- };
35
-
36
- exports.escapeLast = (input, char, lastIdx) => {
37
- const idx = input.lastIndexOf(char, lastIdx);
38
- if (idx === -1) return input;
39
- if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
40
- return `${input.slice(0, idx)}\\${input.slice(idx)}`;
41
- };
42
-
43
- exports.removePrefix = (input, state = {}) => {
44
- let output = input;
45
- if (output.startsWith('./')) {
46
- output = output.slice(2);
47
- state.prefix = './';
48
- }
49
- return output;
50
- };
51
-
52
- exports.wrapOutput = (input, state = {}, options = {}) => {
53
- const prepend = options.contains ? '' : '^';
54
- const append = options.contains ? '' : '$';
55
-
56
- let output = `${prepend}(?:${input})${append}`;
57
- if (state.negated === true) {
58
- output = `(?:^(?!${output}).*$)`;
59
- }
60
- return output;
61
- };
62
-
63
- exports.basename = (path, { windows } = {}) => {
64
- const segs = path.split(windows ? /[\\/]/ : '/');
65
- const last = segs[segs.length - 1];
66
-
67
- if (last === '') {
68
- return segs[segs.length - 2];
69
- }
70
-
71
- return last;
72
- };
@@ -1,83 +0,0 @@
1
- {
2
- "name": "picomatch",
3
- "description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
4
- "version": "4.0.7",
5
- "homepage": "https://github.com/micromatch/picomatch",
6
- "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
- "funding": "https://github.com/sponsors/jonschlinkert",
8
- "repository": "micromatch/picomatch",
9
- "bugs": {
10
- "url": "https://github.com/micromatch/picomatch/issues"
11
- },
12
- "license": "MIT",
13
- "files": [
14
- "index.js",
15
- "posix.js",
16
- "lib"
17
- ],
18
- "sideEffects": false,
19
- "main": "index.js",
20
- "engines": {
21
- "node": ">=12"
22
- },
23
- "scripts": {
24
- "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
25
- "mocha": "mocha --reporter dot",
26
- "test": "npm run lint && npm run mocha",
27
- "test:ci": "npm run test:cover",
28
- "test:cover": "nyc npm run mocha"
29
- },
30
- "devDependencies": {
31
- "eslint": "^8.57.0",
32
- "fill-range": "^7.0.1",
33
- "gulp-format-md": "^2.0.0",
34
- "mocha": "^10.4.0",
35
- "nyc": "^15.1.0"
36
- },
37
- "keywords": [
38
- "glob",
39
- "match",
40
- "picomatch"
41
- ],
42
- "nyc": {
43
- "reporter": [
44
- "html",
45
- "lcov",
46
- "text-summary",
47
- "cobertura"
48
- ]
49
- },
50
- "verb": {
51
- "toc": {
52
- "render": true,
53
- "method": "preWrite",
54
- "maxdepth": 3
55
- },
56
- "layout": "empty",
57
- "tasks": [
58
- "readme"
59
- ],
60
- "plugins": [
61
- "gulp-format-md"
62
- ],
63
- "lint": {
64
- "reflinks": true
65
- },
66
- "related": {
67
- "list": [
68
- "braces",
69
- "micromatch"
70
- ]
71
- },
72
- "reflinks": [
73
- "braces",
74
- "expand-brackets",
75
- "extglob",
76
- "fill-range",
77
- "micromatch",
78
- "minimatch",
79
- "nanomatch",
80
- "picomatch"
81
- ]
82
- }
83
- }
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = require('./lib/picomatch');
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Madeline Gurriarán
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,25 +0,0 @@
1
- # tinyglobby
2
-
3
- [![npm version](https://img.shields.io/npm/v/tinyglobby.svg?maxAge=3600)](https://npmjs.com/package/tinyglobby)
4
- [![weekly downloads](https://img.shields.io/npm/dw/tinyglobby.svg?maxAge=3600)](https://npmjs.com/package/tinyglobby)
5
-
6
- A fast and minimal alternative to globby and fast-glob, meant to behave the same way.
7
-
8
- Both globby and fast-glob present some behavior no other globbing lib has,
9
- which makes it hard to manually replace with something smaller and better.
10
-
11
- This library uses only two subdependencies, compared to `globby`'s [23](https://npmgraph.js.org/?q=globby@16.2.0)
12
- and `fast-glob`'s [17](https://npmgraph.js.org/?q=fast-glob@3.3.3).
13
-
14
- ## Usage
15
-
16
- ```js
17
- import { glob, globSync } from 'tinyglobby';
18
-
19
- await glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' });
20
- globSync('src/**/*.ts', { ignore: '**/*.d.ts' });
21
- ```
22
-
23
- ## Documentation
24
-
25
- Visit https://superchupu.dev/tinyglobby to read the full documentation.